Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.
feat(registry): register lesson-plan and add previews
Marcos Paulo Diniz92ad33fe7106
diff --git a/apps/web/components/web-mcp/pdf-tool.tsx b/apps/web/components/web-mcp/pdf-tool.tsxindex 966a7af..fbc9e50 100644--- a/apps/web/components/web-mcp/pdf-tool.tsx+++ b/apps/web/components/web-mcp/pdf-tool.tsx@@ -13,6 +13,7 @@ const BLOCK_NAMES = ["invoice-creative","invoice-minimal","invoice-modern",+ "lesson-plan","medical-intake-form","meeting-minutes","packing-slip",diff --git a/apps/web/content/docs/blocks/forme/meta.json b/apps/web/content/docs/blocks/forme/meta.jsonindex ae5f124..8fb97aa 100644--- a/apps/web/content/docs/blocks/forme/meta.json+++ b/apps/web/content/docs/blocks/forme/meta.json@@ -10,6 +10,7 @@"invoice-creative","invoice-minimal","invoice-modern",+ "lesson-plan","medical-intake-form","meeting-minutes","packing-slip",diff --git a/apps/web/content/docs/blocks/takumi/meta.json b/apps/web/content/docs/blocks/takumi/meta.jsonindex e1511a9..732ff5e 100644--- a/apps/web/content/docs/blocks/takumi/meta.json+++ b/apps/web/content/docs/blocks/takumi/meta.json@@ -10,6 +10,7 @@"invoice-creative","invoice-minimal","invoice-modern",+ "lesson-plan","medical-intake-form","meeting-minutes","packing-slip",diff --git a/apps/web/examples/__index__.ts b/apps/web/examples/__index__.tsindex 0fe9cc1..ffe68ba 100644--- a/apps/web/examples/__index__.ts+++ b/apps/web/examples/__index__.ts@@ -19,6 +19,7 @@ import forme_invoice_minimal from "@/examples/forme/invoice-minimal";import forme_invoice_modern from "@/examples/forme/invoice-modern";import forme_keep_together from "@/examples/forme/keep-together";import forme_key_value from "@/examples/forme/key-value";+import forme_lesson_plan from "@/examples/forme/lesson-plan";import forme_link from "@/examples/forme/link";import forme_list from "@/examples/forme/list";import forme_medical_intake_form from "@/examples/forme/medical-intake-form";@@ -62,6 +63,7 @@ import takumi_invoice_minimal from "@/examples/takumi/invoice-minimal";import takumi_invoice_modern from "@/examples/takumi/invoice-modern";import takumi_keep_together from "@/examples/takumi/keep-together";import takumi_key_value from "@/examples/takumi/key-value";+import takumi_lesson_plan from "@/examples/takumi/lesson-plan";import takumi_link from "@/examples/takumi/link";import takumi_list from "@/examples/takumi/list";import takumi_medical_intake_form from "@/examples/takumi/medical-intake-form";@@ -111,6 +113,7 @@ export const demos: Record<BaseName, DemoMap> = {"invoice-modern": forme_invoice_modern,"keep-together": forme_keep_together,"key-value": forme_key_value,+ "lesson-plan": forme_lesson_plan,link: forme_link,list: forme_list,"medical-intake-form": forme_medical_intake_form,@@ -156,6 +159,7 @@ export const demos: Record<BaseName, DemoMap> = {"invoice-modern": takumi_invoice_modern,"keep-together": takumi_keep_together,"key-value": takumi_key_value,+ "lesson-plan": takumi_lesson_plan,link: takumi_link,list: takumi_list,"medical-intake-form": takumi_medical_intake_form,diff --git a/apps/web/examples/forme/lesson-plan.tsx b/apps/web/examples/forme/lesson-plan.tsxnew file mode 100644index 0000000..7997481--- /dev/null+++ b/apps/web/examples/forme/lesson-plan.tsx@@ -0,0 +1,4 @@+import { LessonPlanDocument } from "@/registry/bases/forme/blocks/lesson-plan/lesson-plan";++const Demo = () => <LessonPlanDocument />;+export default Demo;diff --git a/apps/web/examples/preview-config.tsx b/apps/web/examples/preview-config.tsxindex 57629a9..0303333 100644--- a/apps/web/examples/preview-config.tsx+++ b/apps/web/examples/preview-config.tsx@@ -13,6 +13,7 @@ const BLOCK_NAMES = new Set(["invoice-creative","invoice-minimal","invoice-modern",+ "lesson-plan","medical-intake-form","meeting-minutes","packing-slip",diff --git a/apps/web/examples/takumi/lesson-plan.tsx b/apps/web/examples/takumi/lesson-plan.tsxnew file mode 100644index 0000000..841f85b--- /dev/null+++ b/apps/web/examples/takumi/lesson-plan.tsx@@ -0,0 +1,4 @@+import { LessonPlanDocument } from "@/registry/bases/takumi/blocks/lesson-plan/lesson-plan";++const Demo = () => <LessonPlanDocument />;+export default Demo;diff --git a/apps/web/public/r/forme/lesson-plan.json b/apps/web/public/r/forme/lesson-plan.jsonnew file mode 100644index 0000000..9c91e7e--- /dev/null+++ b/apps/web/public/r/forme/lesson-plan.json@@ -0,0 +1,34 @@+{+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",+ "name": "forme/lesson-plan",+ "title": "Lesson Plan",+ "description": "Lesson Plan PDF block (forme)",+ "dependencies": [+ "@formepdf/react",+ "@formepdf/core"+ ],+ "registryDependencies": [+ "@pdfcn/forme/utils",+ "@pdfcn/forme/list",+ "@pdfcn/forme/page-footer",+ "@pdfcn/forme/page-header",+ "@pdfcn/forme/section",+ "@pdfcn/forme/table",+ "@pdfcn/forme/text"+ ],+ "files": [+ {+ "path": "registry/bases/forme/blocks/lesson-plan/lesson-plan.tsx",+ "content": "import { Document, Page, StyleSheet, View } from \"@formepdf/react\";\n\nimport { PdfList } from \"@/registry/bases/forme/components/list/list\";\nimport { PageFooter } from \"@/registry/bases/forme/components/page-footer/page-footer\";\nimport { PageHeader } from \"@/registry/bases/forme/components/page-header/page-header\";\nimport { Section } from \"@/registry/bases/forme/components/section/section\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHeader,\n TableRow,\n} from \"@/registry/bases/forme/components/table/table\";\nimport { Text } from \"@/registry/bases/forme/components/text/text\";\nimport {\n PdfcnThemeProvider,\n usePdfcnTheme,\n} from \"@/registry/bases/forme/components/theme-provider\";\nimport type { PdfcnTheme } from \"@/registry/types/pdf-themes\";\n\nimport type { LessonPlanData } from \"./lesson-plan.types\";\n\n// Sample data — replace with your own props or data source\nconst sampleData: LessonPlanData = {\n accentColor: \"#7c3aed\",\n assessment: {\n formative: [\"Exit ticket\", \"Observation\", \"Guided practice responses\"],\n summative: [\"Chapter quiz\", \"Unit assessment\"],\n },\n date: \"September 15, 2026\",\n differentiation: [\n \"Provide equation mats for visual learners\",\n \"Allow calculator use for students with processing difficulties\",\n \"Offer extension problems for advanced learners\",\n ],\n duration: \"50 minutes\",\n essentialQuestion:\n \"How can we represent real-world relationships using linear equations?\",\n gradeLevel: \"8th Grade\",\n homework: \"Complete worksheet problems 11-20\",\n lessonTitle: \"Introduction to Linear Equations\",\n materials: [\"Graph paper\", \"Rulers\", \"Calculator\", \"Whiteboard markers\"],\n objectives: [\n \"Define linear equations\",\n \"Graph linear equations on a coordinate plane\",\n \"Solve simple linear equations\",\n ],\n reflection:\n \"Note student misconceptions during independent practice and adjust the warm-up for the next lesson.\",\n sequence: [\n {\n activity: \"Warm-up\",\n description: \"Review solving one-step equations\",\n notes: \"5 problems on the board\",\n time: \"5 min\",\n },\n {\n activity: \"Introduction\",\n description: \"Define linear equations, show examples\",\n notes: \"Use real-world context\",\n time: \"10 min\",\n },\n {\n activity: \"Guided Practice\",\n description: \"Work through 3 examples together\",\n notes: \"Check for understanding\",\n time: \"15 min\",\n },\n {\n activity: \"Independent Practice\",\n description: \"Complete worksheet problems 1-10\",\n notes: \"Circulate and support\",\n time: \"15 min\",\n },\n {\n activity: \"Closure\",\n description: \"Exit ticket: solve one linear equation\",\n notes: \"Collect before dismissal\",\n time: \"5 min\",\n },\n ],\n standards: [\"CCSS.MATH.8.EE.B.6\", \"CCSS.MATH.8.EE.C.7\"],\n subject: \"Mathematics\",\n teacherName: \"Ms. Johnson\",\n topic: \"Linear Equations\",\n};\n\nconst LessonPlanContent = ({ data }: { data: LessonPlanData }) => {\n const theme = usePdfcnTheme();\n\n const styles = StyleSheet.create({\n col: {\n flex: 1,\n paddingRight: 10,\n },\n label: {\n fontSize: 9,\n fontWeight: \"bold\",\n marginBottom: 2,\n },\n page: {\n backgroundColor: theme.colors.background,\n },\n row: {\n flexDirection: \"row\",\n },\n section: {\n marginBottom: theme.spacing.componentGap,\n },\n });\n\n return (\n <Document title={`${data.lessonTitle} — Lesson Plan`}>\n <Page\n margin={{\n bottom: theme.spacing.page.marginBottom,\n left: theme.spacing.page.marginLeft,\n right: theme.spacing.page.marginRight,\n top: theme.spacing.page.marginTop,\n }}\n size=\"A4\"\n >\n <PageFooter\n leftText={`${data.subject} — ${data.lessonTitle}`}\n rightText=\"Page 1 of 2\"\n sticky\n pagePadding={25}\n />\n <View style={styles.page as never}>\n <PageHeader\n title={data.lessonTitle}\n subtitle={`${data.subject} \\u2022 ${data.gradeLevel}`}\n rightText={`Teacher: ${data.teacherName}`}\n rightSubText={`Date: ${data.date}`}\n style={styles.section}\n />\n\n <Section\n noWrap\n spacing=\"none\"\n style={{ ...styles.row, ...styles.section }}\n >\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Duration\n </Text>\n <Text noMargin variant=\"xs\">\n {data.duration}\n </Text>\n </View>\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Topic\n </Text>\n <Text noMargin variant=\"xs\">\n {data.topic}\n </Text>\n </View>\n {data.essentialQuestion ? (\n <View style={{ flex: 2 }}>\n <Section\n variant=\"highlight\"\n accentColor={data.accentColor}\n spacing=\"sm\"\n style={{ margin: 0 }}\n >\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Essential Question\n </Text>\n <Text noMargin variant=\"xs\">\n {data.essentialQuestion}\n </Text>\n </Section>\n </View>\n ) : null}\n </Section>\n\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Objectives\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.objectives.map((o) => ({ text: `SWBAT ${o}` }))}\n />\n </Section>\n\n {data.standards ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Standards\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.standards.map((s) => ({ text: s }))}\n />\n </Section>\n ) : null}\n\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Materials\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.materials.map((m) => ({ text: m }))}\n />\n </Section>\n </View>\n </Page>\n\n <Page\n margin={{\n bottom: theme.spacing.page.marginBottom,\n left: theme.spacing.page.marginLeft,\n right: theme.spacing.page.marginRight,\n top: theme.spacing.page.marginTop,\n }}\n size=\"A4\"\n >\n <PageFooter\n leftText={`${data.teacherName}`}\n rightText=\"Page 2 of 2\"\n sticky\n pagePadding={25}\n />\n <View style={styles.page as never}>\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Lesson Sequence\n </Text>\n <Table variant=\"grid\" zebraStripe>\n <TableHeader>\n <TableRow header>\n <TableCell>Time</TableCell>\n <TableCell>Activity</TableCell>\n <TableCell>Description</TableCell>\n <TableCell>Notes</TableCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {data.sequence.map((item, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: sequence items have no stable id\n <TableRow key={index}>\n <TableCell>{item.time}</TableCell>\n <TableCell>{item.activity}</TableCell>\n <TableCell>{item.description}</TableCell>\n <TableCell>{item.notes ?? \"\"}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Section>\n\n {data.differentiation ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Differentiation\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.differentiation.map((d) => ({ text: d }))}\n />\n </Section>\n ) : null}\n\n <Section\n noWrap\n spacing=\"none\"\n style={{ ...styles.row, ...styles.section }}\n >\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Formative Assessment\n </Text>\n {data.assessment.formative ? (\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.assessment.formative.map((a) => ({ text: a }))}\n />\n ) : (\n <Text noMargin variant=\"xs\" color=\"mutedForeground\">\n None\n </Text>\n )}\n </View>\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Summative Assessment\n </Text>\n {data.assessment.summative ? (\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.assessment.summative.map((a) => ({ text: a }))}\n />\n ) : (\n <Text noMargin variant=\"xs\" color=\"mutedForeground\">\n None\n </Text>\n )}\n </View>\n </Section>\n\n {data.homework ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Homework\n </Text>\n <Text noMargin variant=\"xs\">\n {data.homework}\n </Text>\n </Section>\n ) : null}\n\n {data.reflection ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Reflection Notes\n </Text>\n <Text noMargin variant=\"xs\">\n {data.reflection}\n </Text>\n </Section>\n ) : null}\n </View>\n </Page>\n </Document>\n );\n};\n\nexport const LessonPlanDocument = ({\n theme,\n data = sampleData,\n}: {\n theme?: PdfcnTheme;\n data?: LessonPlanData;\n}) => (\n <PdfcnThemeProvider theme={theme}>\n <LessonPlanContent data={data} />\n </PdfcnThemeProvider>\n);\n",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.tsx"+ },+ {+ "path": "registry/bases/forme/blocks/lesson-plan/lesson-plan.types.ts",+ "content": "export interface LessonPlanSequenceItem {\n time: string;\n activity: string;\n description: string;\n notes?: string;\n}\n\nexport interface LessonPlanAssessment {\n formative?: string[];\n summative?: string[];\n}\n\nexport interface LessonPlanData {\n subject: string;\n gradeLevel: string;\n lessonTitle: string;\n date: string;\n teacherName: string;\n duration: string;\n topic: string;\n essentialQuestion?: string;\n objectives: string[];\n standards?: string[];\n materials: string[];\n sequence: LessonPlanSequenceItem[];\n differentiation?: string[];\n assessment: LessonPlanAssessment;\n homework?: string;\n reflection?: string;\n accentColor?: string;\n renderingBase?: \"takumi\" | \"forme\";\n}\n",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.types.ts"+ }+ ],+ "type": "registry:block"+}\ No newline at end of filediff --git a/apps/web/public/r/takumi/lesson-plan.json b/apps/web/public/r/takumi/lesson-plan.jsonnew file mode 100644index 0000000..68911e9--- /dev/null+++ b/apps/web/public/r/takumi/lesson-plan.json@@ -0,0 +1,34 @@+{+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",+ "name": "takumi/lesson-plan",+ "title": "Lesson Plan",+ "description": "Lesson Plan PDF block (takumi)",+ "dependencies": [+ "takumi-pdf",+ "@takumi-rs/helpers"+ ],+ "registryDependencies": [+ "@pdfcn/takumi/utils",+ "@pdfcn/takumi/list",+ "@pdfcn/takumi/page-footer",+ "@pdfcn/takumi/page-header",+ "@pdfcn/takumi/section",+ "@pdfcn/takumi/table",+ "@pdfcn/takumi/text"+ ],+ "files": [+ {+ "path": "registry/bases/takumi/blocks/lesson-plan/lesson-plan.tsx",+ "content": "import { PdfList } from \"@/registry/bases/takumi/components/list/list\";\nimport { PageFooter } from \"@/registry/bases/takumi/components/page-footer/page-footer\";\nimport { PageHeader } from \"@/registry/bases/takumi/components/page-header/page-header\";\nimport { Section } from \"@/registry/bases/takumi/components/section/section\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHeader,\n TableRow,\n} from \"@/registry/bases/takumi/components/table/table\";\nimport { Text } from \"@/registry/bases/takumi/components/text/text\";\nimport {\n PdfcnThemeProvider,\n usePdfcnTheme,\n} from \"@/registry/bases/takumi/components/theme-provider\";\nimport {\n Document,\n Page,\n StyleSheet,\n View,\n} from \"@/registry/bases/takumi/lib/pdf-primitives\";\nimport type { PdfcnTheme } from \"@/registry/types/pdf-themes\";\n\nimport type { LessonPlanData } from \"./lesson-plan.types\";\n\n// Sample data — replace with your own props or data source\nconst sampleData: LessonPlanData = {\n accentColor: \"#7c3aed\",\n assessment: {\n formative: [\"Exit ticket\", \"Observation\", \"Guided practice responses\"],\n summative: [\"Chapter quiz\", \"Unit assessment\"],\n },\n date: \"September 15, 2026\",\n differentiation: [\n \"Provide equation mats for visual learners\",\n \"Allow calculator use for students with processing difficulties\",\n \"Offer extension problems for advanced learners\",\n ],\n duration: \"50 minutes\",\n essentialQuestion:\n \"How can we represent real-world relationships using linear equations?\",\n gradeLevel: \"8th Grade\",\n homework: \"Complete worksheet problems 11-20\",\n lessonTitle: \"Introduction to Linear Equations\",\n materials: [\"Graph paper\", \"Rulers\", \"Calculator\", \"Whiteboard markers\"],\n objectives: [\n \"Define linear equations\",\n \"Graph linear equations on a coordinate plane\",\n \"Solve simple linear equations\",\n ],\n reflection:\n \"Note student misconceptions during independent practice and adjust the warm-up for the next lesson.\",\n sequence: [\n {\n activity: \"Warm-up\",\n description: \"Review solving one-step equations\",\n notes: \"5 problems on the board\",\n time: \"5 min\",\n },\n {\n activity: \"Introduction\",\n description: \"Define linear equations, show examples\",\n notes: \"Use real-world context\",\n time: \"10 min\",\n },\n {\n activity: \"Guided Practice\",\n description: \"Work through 3 examples together\",\n notes: \"Check for understanding\",\n time: \"15 min\",\n },\n {\n activity: \"Independent Practice\",\n description: \"Complete worksheet problems 1-10\",\n notes: \"Circulate and support\",\n time: \"15 min\",\n },\n {\n activity: \"Closure\",\n description: \"Exit ticket: solve one linear equation\",\n notes: \"Collect before dismissal\",\n time: \"5 min\",\n },\n ],\n standards: [\"CCSS.MATH.8.EE.B.6\", \"CCSS.MATH.8.EE.C.7\"],\n subject: \"Mathematics\",\n teacherName: \"Ms. Johnson\",\n topic: \"Linear Equations\",\n};\n\nconst LessonPlanContent = ({ data }: { data: LessonPlanData }) => {\n const theme = usePdfcnTheme();\n\n const styles = StyleSheet.create({\n col: {\n flex: 1,\n paddingRight: 10,\n },\n label: {\n fontSize: 9,\n fontWeight: \"bold\",\n marginBottom: 2,\n },\n page: {\n backgroundColor: theme.colors.background,\n boxSizing: \"border-box\",\n minHeight: 841,\n padding: theme.spacing.page.marginTop,\n paddingBottom: theme.spacing.page.marginBottom,\n position: \"relative\",\n },\n row: {\n flexDirection: \"row\",\n },\n section: {\n marginBottom: theme.spacing.componentGap,\n },\n });\n\n return (\n <Document title={`${data.lessonTitle} — Lesson Plan`}>\n <Page size=\"A4\" style={styles.page}>\n <PageHeader\n title={data.lessonTitle}\n subtitle={`${data.subject} \\u2022 ${data.gradeLevel}`}\n rightText={`Teacher: ${data.teacherName}`}\n rightSubText={`Date: ${data.date}`}\n style={styles.section}\n />\n\n <Section spacing=\"none\" style={{ ...styles.row, ...styles.section }}>\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Duration\n </Text>\n <Text noMargin variant=\"xs\">\n {data.duration}\n </Text>\n </View>\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Topic\n </Text>\n <Text noMargin variant=\"xs\">\n {data.topic}\n </Text>\n </View>\n {data.essentialQuestion ? (\n <View style={{ flex: 2 }}>\n <Section\n variant=\"highlight\"\n accentColor={data.accentColor}\n spacing=\"sm\"\n style={{ margin: 0 }}\n >\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Essential Question\n </Text>\n <Text noMargin variant=\"xs\">\n {data.essentialQuestion}\n </Text>\n </Section>\n </View>\n ) : null}\n </Section>\n\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Objectives\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.objectives.map((o) => ({ text: `SWBAT ${o}` }))}\n />\n </Section>\n\n {data.standards ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Standards\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.standards.map((s) => ({ text: s }))}\n />\n </Section>\n ) : null}\n\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Materials\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.materials.map((m) => ({ text: m }))}\n />\n </Section>\n\n <PageFooter\n leftText={`${data.subject} — ${data.lessonTitle}`}\n rightText=\"Page 1 of 2\"\n sticky\n pagePadding={25}\n />\n </Page>\n\n <Page size=\"A4\" style={styles.page}>\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Lesson Sequence\n </Text>\n <Table variant=\"grid\" zebraStripe>\n <TableHeader>\n <TableRow header>\n <TableCell>Time</TableCell>\n <TableCell>Activity</TableCell>\n <TableCell>Description</TableCell>\n <TableCell>Notes</TableCell>\n </TableRow>\n </TableHeader>\n <TableBody>\n {data.sequence.map((item, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: sequence items have no stable id\n <TableRow key={index}>\n <TableCell>{item.time}</TableCell>\n <TableCell>{item.activity}</TableCell>\n <TableCell>{item.description}</TableCell>\n <TableCell>{item.notes ?? \"\"}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Section>\n\n {data.differentiation ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Differentiation\n </Text>\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.differentiation.map((d) => ({ text: d }))}\n />\n </Section>\n ) : null}\n\n <Section\n noWrap\n spacing=\"none\"\n style={{ ...styles.row, ...styles.section }}\n >\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Formative Assessment\n </Text>\n {data.assessment.formative ? (\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.assessment.formative.map((a) => ({ text: a }))}\n />\n ) : (\n <Text noMargin variant=\"xs\" color=\"mutedForeground\">\n None\n </Text>\n )}\n </View>\n <View style={styles.col}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Summative Assessment\n </Text>\n {data.assessment.summative ? (\n <PdfList\n variant=\"bullet\"\n gap=\"xs\"\n items={data.assessment.summative.map((a) => ({ text: a }))}\n />\n ) : (\n <Text noMargin variant=\"xs\" color=\"mutedForeground\">\n None\n </Text>\n )}\n </View>\n </Section>\n\n {data.homework ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Homework\n </Text>\n <Text noMargin variant=\"xs\">\n {data.homework}\n </Text>\n </Section>\n ) : null}\n\n {data.reflection ? (\n <Section spacing=\"none\" style={styles.section}>\n <Text\n style={styles.label}\n color=\"mutedForeground\"\n transform=\"uppercase\"\n noMargin\n >\n Reflection Notes\n </Text>\n <Text noMargin variant=\"xs\">\n {data.reflection}\n </Text>\n </Section>\n ) : null}\n\n <PageFooter\n leftText={`${data.teacherName}`}\n rightText=\"Page 2 of 2\"\n sticky\n pagePadding={25}\n />\n </Page>\n </Document>\n );\n};\n\nexport const LessonPlanDocument = ({\n theme,\n data = sampleData,\n}: {\n theme?: PdfcnTheme;\n data?: LessonPlanData;\n}) => (\n <PdfcnThemeProvider theme={theme}>\n <LessonPlanContent data={data} />\n </PdfcnThemeProvider>\n);\n",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.tsx"+ },+ {+ "path": "registry/bases/takumi/blocks/lesson-plan/lesson-plan.types.ts",+ "content": "export interface LessonPlanSequenceItem {\n time: string;\n activity: string;\n description: string;\n notes?: string;\n}\n\nexport interface LessonPlanAssessment {\n formative?: string[];\n summative?: string[];\n}\n\nexport interface LessonPlanData {\n subject: string;\n gradeLevel: string;\n lessonTitle: string;\n date: string;\n teacherName: string;\n duration: string;\n topic: string;\n essentialQuestion?: string;\n objectives: string[];\n standards?: string[];\n materials: string[];\n sequence: LessonPlanSequenceItem[];\n differentiation?: string[];\n assessment: LessonPlanAssessment;\n homework?: string;\n reflection?: string;\n accentColor?: string;\n renderingBase?: \"takumi\" | \"forme\";\n}\n",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.types.ts"+ }+ ],+ "type": "registry:block"+}\ No newline at end of filediff --git a/apps/web/registry.json b/apps/web/registry.jsonindex e2997fa..db2d727 100644--- a/apps/web/registry.json+++ b/apps/web/registry.json@@ -1006,6 +1006,34 @@"title": "Work Order","type": "registry:block"},+ {+ "dependencies": ["takumi-pdf", "@takumi-rs/helpers"],+ "description": "Lesson Plan PDF block (takumi)",+ "files": [+ {+ "path": "registry/bases/takumi/blocks/lesson-plan/lesson-plan.tsx",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.tsx"+ },+ {+ "path": "registry/bases/takumi/blocks/lesson-plan/lesson-plan.types.ts",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.types.ts"+ }+ ],+ "name": "takumi/lesson-plan",+ "registryDependencies": [+ "@pdfcn/takumi/utils",+ "@pdfcn/takumi/list",+ "@pdfcn/takumi/page-footer",+ "@pdfcn/takumi/page-header",+ "@pdfcn/takumi/section",+ "@pdfcn/takumi/table",+ "@pdfcn/takumi/text"+ ],+ "title": "Lesson Plan",+ "type": "registry:block"+ },{"description": "professional theme tokens","files": [@@ -2264,6 +2292,34 @@],"title": "Work Order","type": "registry:block"+ },+ {+ "dependencies": ["@formepdf/react", "@formepdf/core"],+ "description": "Lesson Plan PDF block (forme)",+ "files": [+ {+ "path": "registry/bases/forme/blocks/lesson-plan/lesson-plan.tsx",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.tsx"+ },+ {+ "path": "registry/bases/forme/blocks/lesson-plan/lesson-plan.types.ts",+ "type": "registry:block",+ "target": "components/pdf/blocks/lesson-plan/lesson-plan.types.ts"+ }+ ],+ "name": "forme/lesson-plan",+ "registryDependencies": [+ "@pdfcn/forme/utils",+ "@pdfcn/forme/list",+ "@pdfcn/forme/page-footer",+ "@pdfcn/forme/page-header",+ "@pdfcn/forme/section",+ "@pdfcn/forme/table",+ "@pdfcn/forme/text"+ ],+ "title": "Lesson Plan",+ "type": "registry:block"}],"name": "pdfcn"