@publish.os/nextjs 0.0.1-alpha.2 → 0.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -9
- package/dist/cache/tags.cjs +3 -0
- package/dist/cache/tags.d.cts +1 -0
- package/dist/cache/tags.d.ts +1 -0
- package/dist/cache/tags.js +3 -0
- package/dist/config.cjs +78 -0
- package/dist/config.d.cts +101 -0
- package/dist/config.d.ts +101 -0
- package/dist/config.js +48 -0
- package/dist/index.cjs +1043 -124
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +1031 -111
- package/dist/kernel/components/blocks/AgentActions.cjs +425 -0
- package/dist/kernel/components/blocks/AgentActions.d.cts +52 -0
- package/dist/kernel/components/blocks/AgentActions.d.ts +52 -0
- package/dist/kernel/components/blocks/AgentActions.js +429 -0
- package/dist/kernel/components/blocks/animated-icon-swap.cjs +101 -0
- package/dist/kernel/components/blocks/animated-icon-swap.d.cts +16 -0
- package/dist/kernel/components/blocks/animated-icon-swap.d.ts +16 -0
- package/dist/kernel/components/blocks/animated-icon-swap.js +74 -0
- package/dist/kernel/components/blocks/color-palette.cjs +413 -0
- package/dist/kernel/components/blocks/color-palette.d.cts +7 -0
- package/dist/kernel/components/blocks/color-palette.d.ts +7 -0
- package/dist/kernel/components/blocks/color-palette.js +407 -0
- package/dist/kernel/components/blocks/design-system-preview.cjs +592 -0
- package/dist/kernel/components/blocks/design-system-preview.d.cts +29 -0
- package/dist/kernel/components/blocks/design-system-preview.d.ts +29 -0
- package/dist/kernel/components/blocks/design-system-preview.js +655 -0
- package/dist/kernel/components/blocks/link-playground.cjs +816 -0
- package/dist/kernel/components/blocks/link-playground.d.cts +5 -0
- package/dist/kernel/components/blocks/link-playground.d.ts +5 -0
- package/dist/kernel/components/blocks/link-playground.js +792 -0
- package/dist/kernel/components/blocks/logo-block.cjs +156 -0
- package/dist/kernel/components/blocks/logo-block.d.cts +21 -0
- package/dist/kernel/components/blocks/logo-block.d.ts +21 -0
- package/dist/kernel/components/blocks/logo-block.js +129 -0
- package/dist/{components → kernel/components/blocks}/nav-breadcrumb.cjs +19 -38
- package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +11 -0
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +11 -0
- package/dist/{components → kernel/components/blocks}/nav-breadcrumb.js +22 -30
- package/dist/kernel/components/blocks/navbar.cjs +154 -0
- package/dist/kernel/components/blocks/navbar.d.cts +16 -0
- package/dist/kernel/components/blocks/navbar.d.ts +16 -0
- package/dist/kernel/components/blocks/navbar.js +122 -0
- package/dist/kernel/components/blocks/navigation-progress-playground.cjs +735 -0
- package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +5 -0
- package/dist/kernel/components/blocks/navigation-progress-playground.d.ts +5 -0
- package/dist/kernel/components/blocks/navigation-progress-playground.js +722 -0
- package/dist/kernel/components/blocks/navigation-progress.cjs +270 -0
- package/dist/kernel/components/blocks/navigation-progress.d.cts +16 -0
- package/dist/kernel/components/blocks/navigation-progress.d.ts +16 -0
- package/dist/kernel/components/blocks/navigation-progress.js +249 -0
- package/dist/kernel/components/blocks/next-prev.cjs +142 -0
- package/dist/kernel/components/blocks/next-prev.d.cts +11 -0
- package/dist/kernel/components/blocks/next-prev.d.ts +11 -0
- package/dist/kernel/components/blocks/next-prev.js +105 -0
- package/dist/{components → kernel/components/blocks}/page-list.cjs +7 -16
- package/dist/{components → kernel/components/blocks}/page-list.d.cts +1 -1
- package/dist/{components → kernel/components/blocks}/page-list.d.ts +1 -1
- package/dist/{components → kernel/components/blocks}/page-list.js +6 -5
- package/dist/kernel/components/blocks/search.cjs +717 -0
- package/dist/kernel/components/blocks/search.d.cts +77 -0
- package/dist/kernel/components/blocks/search.d.ts +77 -0
- package/dist/kernel/components/blocks/search.js +697 -0
- package/dist/kernel/components/blocks/sidebar-node.cjs +309 -0
- package/dist/kernel/components/blocks/sidebar-node.d.cts +8 -0
- package/dist/kernel/components/blocks/sidebar-node.d.ts +8 -0
- package/dist/kernel/components/blocks/sidebar-node.js +272 -0
- package/dist/kernel/components/blocks/sidebar.cjs +317 -0
- package/dist/kernel/components/blocks/sidebar.d.cts +33 -0
- package/dist/kernel/components/blocks/sidebar.d.ts +33 -0
- package/dist/kernel/components/blocks/sidebar.js +302 -0
- package/dist/kernel/components/blocks/theme-toggle.cjs +31 -0
- package/dist/kernel/components/blocks/theme-toggle.d.cts +6 -0
- package/dist/kernel/components/blocks/theme-toggle.d.ts +6 -0
- package/dist/kernel/components/blocks/theme-toggle.js +7 -0
- package/dist/kernel/components/blocks/toc.cjs +356 -0
- package/dist/kernel/components/blocks/toc.d.cts +10 -0
- package/dist/kernel/components/blocks/toc.d.ts +10 -0
- package/dist/kernel/components/blocks/toc.js +330 -0
- package/dist/kernel/components/mdx/components/blockquote.cjs +66 -0
- package/dist/kernel/components/mdx/components/blockquote.d.cts +6 -0
- package/dist/kernel/components/mdx/components/blockquote.d.ts +6 -0
- package/dist/kernel/components/mdx/components/blockquote.js +39 -0
- package/dist/kernel/components/mdx/components/callout.cjs +137 -0
- package/dist/kernel/components/mdx/components/callout.d.cts +18 -0
- package/dist/kernel/components/mdx/components/callout.d.ts +18 -0
- package/dist/kernel/components/mdx/components/callout.js +109 -0
- package/dist/kernel/components/mdx/components/code-block.cjs +39 -0
- package/dist/kernel/components/mdx/components/code-block.d.cts +9 -0
- package/dist/kernel/components/mdx/components/code-block.d.ts +9 -0
- package/dist/kernel/components/mdx/components/code-block.js +14 -0
- package/dist/kernel/components/mdx/components/figure-caption.cjs +63 -0
- package/dist/kernel/components/mdx/components/figure-caption.d.cts +6 -0
- package/dist/kernel/components/mdx/components/figure-caption.d.ts +6 -0
- package/dist/kernel/components/mdx/components/figure-caption.js +36 -0
- package/dist/kernel/components/mdx/components/figure.cjs +78 -0
- package/dist/kernel/components/mdx/components/figure.d.cts +10 -0
- package/dist/kernel/components/mdx/components/figure.d.ts +10 -0
- package/dist/kernel/components/mdx/components/figure.js +53 -0
- package/dist/kernel/components/mdx/components/footnotes.cjs +66 -0
- package/dist/kernel/components/mdx/components/footnotes.d.cts +6 -0
- package/dist/kernel/components/mdx/components/footnotes.d.ts +6 -0
- package/dist/kernel/components/mdx/components/footnotes.js +39 -0
- package/dist/kernel/components/mdx/components/heading-copy-link.cjs +108 -0
- package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +23 -0
- package/dist/kernel/components/mdx/components/heading-copy-link.d.ts +23 -0
- package/dist/kernel/components/mdx/components/heading-copy-link.js +81 -0
- package/dist/kernel/components/mdx/components/heading.cjs +166 -0
- package/dist/kernel/components/mdx/components/heading.d.cts +8 -0
- package/dist/kernel/components/mdx/components/heading.d.ts +8 -0
- package/dist/kernel/components/mdx/components/heading.js +144 -0
- package/dist/kernel/components/mdx/components/hr.cjs +34 -0
- package/dist/kernel/components/mdx/components/hr.d.cts +9 -0
- package/dist/kernel/components/mdx/components/hr.d.ts +9 -0
- package/dist/kernel/components/mdx/components/hr.js +9 -0
- package/dist/kernel/components/mdx/components/image-zoom.cjs +49 -0
- package/dist/kernel/components/mdx/components/image-zoom.d.cts +10 -0
- package/dist/kernel/components/mdx/components/image-zoom.d.ts +10 -0
- package/dist/kernel/components/mdx/components/image-zoom.js +15 -0
- package/dist/kernel/components/mdx/components/image.cjs +192 -0
- package/dist/kernel/components/mdx/components/image.d.cts +21 -0
- package/dist/kernel/components/mdx/components/image.d.ts +21 -0
- package/dist/kernel/components/mdx/components/image.js +157 -0
- package/dist/kernel/components/mdx/components/inline-code.cjs +66 -0
- package/dist/kernel/components/mdx/components/inline-code.d.cts +6 -0
- package/dist/kernel/components/mdx/components/inline-code.d.ts +6 -0
- package/dist/kernel/components/mdx/components/inline-code.js +39 -0
- package/dist/kernel/components/mdx/components/kbd.cjs +34 -0
- package/dist/kernel/components/mdx/components/kbd.d.cts +10 -0
- package/dist/kernel/components/mdx/components/kbd.d.ts +10 -0
- package/dist/kernel/components/mdx/components/kbd.js +9 -0
- package/dist/{components/providers.cjs → kernel/components/mdx/components/link.cjs} +20 -15
- package/dist/kernel/components/mdx/components/link.d.cts +11 -0
- package/dist/kernel/components/mdx/components/link.d.ts +11 -0
- package/dist/kernel/components/mdx/components/link.js +26 -0
- package/dist/kernel/components/mdx/components/paragraph.cjs +87 -0
- package/dist/kernel/components/mdx/components/paragraph.d.cts +5 -0
- package/dist/kernel/components/mdx/components/paragraph.d.ts +5 -0
- package/dist/kernel/components/mdx/components/paragraph.js +60 -0
- package/dist/kernel/components/mdx/components/pre.cjs +66 -0
- package/dist/kernel/components/mdx/components/pre.d.cts +6 -0
- package/dist/kernel/components/mdx/components/pre.d.ts +6 -0
- package/dist/kernel/components/mdx/components/pre.js +39 -0
- package/dist/kernel/components/mdx/components/strikethrough.cjs +63 -0
- package/dist/kernel/components/mdx/components/strikethrough.d.cts +6 -0
- package/dist/kernel/components/mdx/components/strikethrough.d.ts +6 -0
- package/dist/kernel/components/mdx/components/strikethrough.js +36 -0
- package/dist/kernel/components/mdx/components/table.cjs +59 -0
- package/dist/kernel/components/mdx/components/table.d.cts +10 -0
- package/dist/kernel/components/mdx/components/table.d.ts +10 -0
- package/dist/kernel/components/mdx/components/table.js +36 -0
- package/dist/kernel/components/mdx/components/task-list.cjs +88 -0
- package/dist/kernel/components/mdx/components/task-list.d.cts +8 -0
- package/dist/kernel/components/mdx/components/task-list.d.ts +8 -0
- package/dist/kernel/components/mdx/components/task-list.js +60 -0
- package/dist/kernel/components/mdx/components/video-player.cjs +173 -0
- package/dist/kernel/components/mdx/components/video-player.d.cts +18 -0
- package/dist/kernel/components/mdx/components/video-player.d.ts +18 -0
- package/dist/kernel/components/mdx/components/video-player.js +147 -0
- package/dist/kernel/components/mdx/components/video.cjs +185 -0
- package/dist/kernel/components/mdx/components/video.d.cts +15 -0
- package/dist/kernel/components/mdx/components/video.d.ts +15 -0
- package/dist/kernel/components/mdx/components/video.js +162 -0
- package/dist/kernel/components/mdx/error-boundary.cjs +62 -0
- package/dist/{mdx → kernel/components/mdx}/error-boundary.d.cts +3 -8
- package/dist/{mdx → kernel/components/mdx}/error-boundary.d.ts +3 -8
- package/dist/kernel/components/mdx/error-boundary.js +38 -0
- package/dist/{mdx → kernel/components/mdx}/error-fallback.cjs +8 -8
- package/dist/{mdx → kernel/components/mdx}/error-fallback.js +8 -8
- package/dist/kernel/components/mdx/mdx.cjs +141 -0
- package/dist/kernel/components/mdx/mdx.d.cts +22 -0
- package/dist/kernel/components/mdx/mdx.d.ts +22 -0
- package/dist/kernel/components/mdx/mdx.js +109 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.cjs +113 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +10 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.d.ts +10 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.js +86 -0
- package/dist/kernel/components/mdx/types.cjs +18 -0
- package/dist/kernel/components/mdx/types.d.cts +18 -0
- package/dist/kernel/components/mdx/types.d.ts +18 -0
- package/dist/kernel/components/mdx/types.js +0 -0
- package/dist/kernel/components/ui/accordion.cjs +104 -0
- package/dist/kernel/components/ui/accordion.d.cts +16 -0
- package/dist/kernel/components/ui/accordion.d.ts +16 -0
- package/dist/kernel/components/ui/accordion.js +76 -0
- package/dist/kernel/components/ui/badge.cjs +75 -0
- package/dist/kernel/components/ui/badge.d.cts +12 -0
- package/dist/kernel/components/ui/badge.d.ts +12 -0
- package/dist/kernel/components/ui/badge.js +47 -0
- package/dist/kernel/components/ui/breadcrumb-trail.cjs +238 -0
- package/dist/kernel/components/ui/breadcrumb-trail.d.cts +13 -0
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +13 -0
- package/dist/kernel/components/ui/breadcrumb-trail.js +225 -0
- package/dist/kernel/components/ui/breadcrumb.cjs +399 -0
- package/dist/kernel/components/ui/breadcrumb.d.cts +52 -0
- package/dist/kernel/components/ui/breadcrumb.d.ts +52 -0
- package/dist/kernel/components/ui/breadcrumb.js +365 -0
- package/dist/kernel/components/ui/button-group.cjs +144 -0
- package/dist/kernel/components/ui/button-group.d.cts +19 -0
- package/dist/kernel/components/ui/button-group.d.ts +19 -0
- package/dist/kernel/components/ui/button-group.js +116 -0
- package/dist/kernel/components/ui/button.cjs +147 -0
- package/dist/kernel/components/ui/button.d.cts +23 -0
- package/dist/kernel/components/ui/button.d.ts +23 -0
- package/dist/kernel/components/ui/button.js +121 -0
- package/dist/kernel/components/ui/card.cjs +133 -0
- package/dist/kernel/components/ui/card.d.cts +17 -0
- package/dist/kernel/components/ui/card.d.ts +17 -0
- package/dist/kernel/components/ui/card.js +101 -0
- package/dist/kernel/components/ui/dialog.cjs +149 -0
- package/dist/kernel/components/ui/dialog.d.cts +22 -0
- package/dist/kernel/components/ui/dialog.d.ts +22 -0
- package/dist/kernel/components/ui/dialog.js +118 -0
- package/dist/kernel/components/ui/drawer.cjs +163 -0
- package/dist/kernel/components/ui/drawer.d.cts +24 -0
- package/dist/kernel/components/ui/drawer.d.ts +24 -0
- package/dist/kernel/components/ui/drawer.js +131 -0
- package/dist/kernel/components/ui/input.cjs +96 -0
- package/dist/kernel/components/ui/input.d.cts +18 -0
- package/dist/kernel/components/ui/input.d.ts +18 -0
- package/dist/kernel/components/ui/input.js +70 -0
- package/dist/kernel/components/ui/kbd.cjs +105 -0
- package/dist/kernel/components/ui/kbd.d.cts +13 -0
- package/dist/kernel/components/ui/kbd.d.ts +13 -0
- package/dist/kernel/components/ui/kbd.js +77 -0
- package/dist/kernel/components/ui/link.cjs +253 -0
- package/dist/kernel/components/ui/link.d.cts +31 -0
- package/dist/kernel/components/ui/link.d.ts +31 -0
- package/dist/kernel/components/ui/link.js +217 -0
- package/dist/kernel/components/ui/menu.cjs +301 -0
- package/dist/kernel/components/ui/menu.d.cts +70 -0
- package/dist/kernel/components/ui/menu.d.ts +70 -0
- package/dist/kernel/components/ui/menu.js +256 -0
- package/dist/kernel/components/ui/meta-key.cjs +34 -0
- package/dist/kernel/components/ui/meta-key.d.cts +12 -0
- package/dist/kernel/components/ui/meta-key.d.ts +12 -0
- package/dist/kernel/components/ui/meta-key.js +9 -0
- package/dist/kernel/components/ui/navigation-menu.cjs +253 -0
- package/dist/kernel/components/ui/navigation-menu.d.cts +47 -0
- package/dist/kernel/components/ui/navigation-menu.d.ts +47 -0
- package/dist/kernel/components/ui/navigation-menu.js +216 -0
- package/dist/kernel/components/ui/popover.cjs +168 -0
- package/dist/kernel/components/ui/popover.d.cts +24 -0
- package/dist/kernel/components/ui/popover.d.ts +24 -0
- package/dist/kernel/components/ui/popover.js +136 -0
- package/dist/kernel/components/ui/progress.cjs +112 -0
- package/dist/kernel/components/ui/progress.d.cts +16 -0
- package/dist/kernel/components/ui/progress.d.ts +16 -0
- package/dist/kernel/components/ui/progress.js +84 -0
- package/dist/kernel/components/ui/scroll-area.cjs +413 -0
- package/dist/kernel/components/ui/scroll-area.d.cts +58 -0
- package/dist/kernel/components/ui/scroll-area.d.ts +58 -0
- package/dist/kernel/components/ui/scroll-area.js +390 -0
- package/dist/kernel/components/ui/select.cjs +244 -0
- package/dist/kernel/components/ui/select.d.cts +40 -0
- package/dist/kernel/components/ui/select.d.ts +40 -0
- package/dist/kernel/components/ui/select.js +205 -0
- package/dist/kernel/components/ui/separator.cjs +73 -0
- package/dist/kernel/components/ui/separator.d.cts +8 -0
- package/dist/kernel/components/ui/separator.d.ts +8 -0
- package/dist/kernel/components/ui/separator.js +48 -0
- package/dist/kernel/components/ui/table.cjs +131 -0
- package/dist/kernel/components/ui/table.d.cts +11 -0
- package/dist/kernel/components/ui/table.d.ts +11 -0
- package/dist/kernel/components/ui/table.js +99 -0
- package/dist/kernel/components/ui/tabs.cjs +450 -0
- package/dist/kernel/components/ui/tabs.d.cts +82 -0
- package/dist/kernel/components/ui/tabs.d.ts +82 -0
- package/dist/kernel/components/ui/tabs.js +409 -0
- package/dist/kernel/components/ui/text.cjs +184 -0
- package/dist/kernel/components/ui/text.d.cts +17 -0
- package/dist/kernel/components/ui/text.d.ts +17 -0
- package/dist/kernel/components/ui/text.js +156 -0
- package/dist/kernel/components/ui/theme-toggle.cjs +108 -0
- package/dist/kernel/components/ui/theme-toggle.d.cts +10 -0
- package/dist/kernel/components/ui/theme-toggle.d.ts +10 -0
- package/dist/kernel/components/ui/theme-toggle.js +84 -0
- package/dist/kernel/components/ui/toast.cjs +154 -0
- package/dist/kernel/components/ui/toast.d.cts +26 -0
- package/dist/kernel/components/ui/toast.d.ts +26 -0
- package/dist/kernel/components/ui/toast.js +120 -0
- package/dist/kernel/components/ui/tooltip.cjs +127 -0
- package/dist/kernel/components/ui/tooltip.d.cts +20 -0
- package/dist/kernel/components/ui/tooltip.d.ts +20 -0
- package/dist/kernel/components/ui/tooltip.js +97 -0
- package/dist/kernel/defaults.registry.cjs +541 -0
- package/dist/kernel/defaults.registry.d.cts +469 -0
- package/dist/kernel/defaults.registry.d.ts +469 -0
- package/dist/kernel/defaults.registry.js +516 -0
- package/dist/kernel/routes/agent/markdown.cjs +202 -0
- package/dist/kernel/routes/agent/markdown.d.cts +58 -0
- package/dist/kernel/routes/agent/markdown.d.ts +58 -0
- package/dist/kernel/routes/agent/markdown.js +174 -0
- package/dist/{layouts → kernel/routes/layouts}/group.cjs +39 -15
- package/dist/kernel/routes/layouts/group.d.cts +20 -0
- package/dist/kernel/routes/layouts/group.d.ts +20 -0
- package/dist/{layouts → kernel/routes/layouts}/group.js +39 -15
- package/dist/kernel/routes/metadata/feed.cjs +293 -0
- package/dist/kernel/routes/metadata/feed.d.cts +20 -0
- package/dist/kernel/routes/metadata/feed.d.ts +20 -0
- package/dist/kernel/routes/metadata/feed.js +265 -0
- package/dist/kernel/routes/metadata/llms.cjs +239 -0
- package/dist/kernel/routes/metadata/llms.d.cts +26 -0
- package/dist/kernel/routes/metadata/llms.d.ts +26 -0
- package/dist/kernel/routes/metadata/llms.js +211 -0
- package/dist/kernel/routes/metadata/og-image.cjs +630 -0
- package/dist/kernel/routes/metadata/og-image.d.cts +62 -0
- package/dist/kernel/routes/metadata/og-image.d.ts +62 -0
- package/dist/kernel/routes/metadata/og-image.js +604 -0
- package/dist/{routes → kernel/routes/metadata}/robots.cjs +59 -5
- package/dist/{routes → kernel/routes/metadata}/robots.d.cts +2 -1
- package/dist/{routes → kernel/routes/metadata}/robots.d.ts +2 -1
- package/dist/kernel/routes/metadata/robots.js +123 -0
- package/dist/kernel/routes/metadata/sitemap.cjs +192 -0
- package/dist/kernel/routes/metadata/sitemap.d.cts +8 -0
- package/dist/kernel/routes/metadata/sitemap.d.ts +8 -0
- package/dist/kernel/routes/metadata/sitemap.js +166 -0
- package/dist/{pages → kernel/routes/pages}/group.cjs +107 -6
- package/dist/{pages → kernel/routes/pages}/group.d.cts +4 -2
- package/dist/{pages → kernel/routes/pages}/group.d.ts +4 -2
- package/dist/{pages → kernel/routes/pages}/group.js +107 -6
- package/dist/kernel/routes/pages/leaf.cjs +421 -0
- package/dist/kernel/routes/pages/leaf.d.cts +36 -0
- package/dist/kernel/routes/pages/leaf.d.ts +36 -0
- package/dist/kernel/routes/pages/leaf.js +397 -0
- package/dist/{pages → kernel/routes/pages}/root.cjs +108 -6
- package/dist/{pages → kernel/routes/pages}/root.d.cts +4 -2
- package/dist/{pages → kernel/routes/pages}/root.d.ts +4 -2
- package/dist/kernel/routes/pages/root.js +203 -0
- package/dist/keyboard-shortcuts.cjs +345 -0
- package/dist/keyboard-shortcuts.d.cts +34 -0
- package/dist/keyboard-shortcuts.d.ts +34 -0
- package/dist/keyboard-shortcuts.js +326 -0
- package/dist/resolvers/manifest-resolver.cjs +7 -3
- package/dist/resolvers/manifest-resolver.d.cts +2 -2
- package/dist/resolvers/manifest-resolver.d.ts +2 -2
- package/dist/resolvers/manifest-resolver.js +7 -3
- package/dist/search.cjs +411 -0
- package/dist/search.d.cts +20 -0
- package/dist/search.d.ts +20 -0
- package/dist/search.js +393 -0
- package/dist/types.cjs +12 -0
- package/dist/types.d.cts +132 -7
- package/dist/types.d.ts +132 -7
- package/dist/types.js +5 -0
- package/dist/utils/heading-ids.cjs +119 -0
- package/dist/utils/heading-ids.d.cts +15 -0
- package/dist/utils/heading-ids.d.ts +15 -0
- package/dist/utils/heading-ids.js +90 -0
- package/package.json +59 -38
- package/release/package.json +23 -0
- package/release/pnpm-lock.yaml +1192 -0
- package/release/release.json +39 -0
- package/dist/components/color-palette.cjs +0 -408
- package/dist/components/color-palette.d.cts +0 -5
- package/dist/components/color-palette.d.ts +0 -5
- package/dist/components/color-palette.js +0 -388
- package/dist/components/nav-breadcrumb.d.cts +0 -9
- package/dist/components/nav-breadcrumb.d.ts +0 -9
- package/dist/components/providers.d.cts +0 -8
- package/dist/components/providers.d.ts +0 -8
- package/dist/components/providers.js +0 -20
- package/dist/components/site-header.cjs +0 -302
- package/dist/components/site-header.d.cts +0 -12
- package/dist/components/site-header.d.ts +0 -12
- package/dist/components/site-header.js +0 -268
- package/dist/components/theme-toggle.cjs +0 -147
- package/dist/components/theme-toggle.d.cts +0 -5
- package/dist/components/theme-toggle.d.ts +0 -5
- package/dist/components/theme-toggle.js +0 -123
- package/dist/layouts/group.d.cts +0 -15
- package/dist/layouts/group.d.ts +0 -15
- package/dist/mdx/error-boundary.cjs +0 -94
- package/dist/mdx/error-boundary.js +0 -70
- package/dist/mdx/mdx.cjs +0 -182
- package/dist/mdx/mdx.d.cts +0 -10
- package/dist/mdx/mdx.d.ts +0 -10
- package/dist/mdx/mdx.js +0 -147
- package/dist/pages/leaf.cjs +0 -203
- package/dist/pages/leaf.d.cts +0 -23
- package/dist/pages/leaf.d.ts +0 -23
- package/dist/pages/leaf.js +0 -176
- package/dist/pages/root.js +0 -101
- package/dist/routes/llms.cjs +0 -101
- package/dist/routes/llms.d.cts +0 -7
- package/dist/routes/llms.d.ts +0 -7
- package/dist/routes/llms.js +0 -76
- package/dist/routes/robots.js +0 -69
- package/dist/routes/sitemap.cjs +0 -108
- package/dist/routes/sitemap.d.cts +0 -5
- package/dist/routes/sitemap.d.ts +0 -5
- package/dist/routes/sitemap.js +0 -83
- /package/dist/{mdx → kernel/components/mdx}/error-fallback.d.cts +0 -0
- /package/dist/{mdx → kernel/components/mdx}/error-fallback.d.ts +0 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/kernel/components/ui/tabs.tsx
|
|
4
|
+
import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
5
|
+
|
|
6
|
+
// src/utils/cn.ts
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
9
|
+
var twMerge = extendTailwindMerge({
|
|
10
|
+
extend: {
|
|
11
|
+
classGroups: {
|
|
12
|
+
z: [
|
|
13
|
+
"z-content",
|
|
14
|
+
"z-nav",
|
|
15
|
+
"z-overlay",
|
|
16
|
+
"z-modal",
|
|
17
|
+
"z-search",
|
|
18
|
+
"z-toast",
|
|
19
|
+
"z-progress"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
function cn(...inputs) {
|
|
25
|
+
return twMerge(clsx(inputs));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// src/kernel/components/ui/tabs.tsx
|
|
29
|
+
import { cva } from "class-variance-authority";
|
|
30
|
+
import NextLink from "next/link";
|
|
31
|
+
import {
|
|
32
|
+
createContext,
|
|
33
|
+
use,
|
|
34
|
+
useLayoutEffect,
|
|
35
|
+
useRef
|
|
36
|
+
} from "react";
|
|
37
|
+
import { jsx } from "react/jsx-runtime";
|
|
38
|
+
var tabsListVariants = cva("relative inline-flex items-center", {
|
|
39
|
+
variants: {
|
|
40
|
+
variant: {
|
|
41
|
+
base: "flex-wrap gap-1 rounded-button border border-stroke-2 bg-surface-2 p-1",
|
|
42
|
+
button: "flex-wrap gap-1 rounded-button",
|
|
43
|
+
underline: "gap-5 border-stroke-3 data-[orientation=horizontal]:border-b data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[orientation=vertical]:border-r"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "base"
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var tabsTabVariants = cva(
|
|
51
|
+
[
|
|
52
|
+
"relative inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap text-sm font-medium leading-none outline-none",
|
|
53
|
+
"!no-underline hover:!no-underline active:!no-underline",
|
|
54
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
55
|
+
"disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
56
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
57
|
+
].join(" "),
|
|
58
|
+
{
|
|
59
|
+
variants: {
|
|
60
|
+
variant: {
|
|
61
|
+
base: [
|
|
62
|
+
"rounded-[max(calc(var(--radius-button)_-_0.25rem),0px)] px-3 py-1.5 text-foreground-2 transition-colors duration-150 ease-out",
|
|
63
|
+
"hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1",
|
|
64
|
+
"active:not-data-disabled:bg-surface-active",
|
|
65
|
+
"data-active:bg-surface-active data-active:text-foreground-1",
|
|
66
|
+
"data-[state=path-active]:bg-surface-active data-[state=path-active]:text-foreground-1"
|
|
67
|
+
].join(" "),
|
|
68
|
+
button: [
|
|
69
|
+
"h-8 rounded-button border border-transparent bg-transparent px-3 text-foreground-2 transition-[background-color,border-color,color,box-shadow] duration-150 ease-out",
|
|
70
|
+
"hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1",
|
|
71
|
+
"active:not-data-disabled:bg-surface-active",
|
|
72
|
+
"data-active:bg-accent-soft-hover data-active:text-accent-1",
|
|
73
|
+
"data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1"
|
|
74
|
+
].join(" "),
|
|
75
|
+
underline: [
|
|
76
|
+
"rounded-button px-0 py-2 text-foreground-3 transition-colors duration-150 ease-out",
|
|
77
|
+
"hover:not-data-disabled:text-foreground-1 active:not-data-disabled:text-foreground-1",
|
|
78
|
+
"data-active:text-foreground-1 data-[state=path-active]:text-foreground-1",
|
|
79
|
+
"data-[orientation=vertical]:justify-start data-[orientation=vertical]:py-1.5 data-[orientation=vertical]:pr-4"
|
|
80
|
+
].join(" ")
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
variant: "base"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
var tabsIndicatorVariants = cva("pointer-events-none absolute", {
|
|
89
|
+
variants: {
|
|
90
|
+
animation: {
|
|
91
|
+
grow: "",
|
|
92
|
+
slide: ""
|
|
93
|
+
},
|
|
94
|
+
variant: {
|
|
95
|
+
base: "hidden",
|
|
96
|
+
button: "hidden",
|
|
97
|
+
underline: "overflow-hidden rounded-full"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
compoundVariants: [
|
|
101
|
+
{
|
|
102
|
+
animation: "slide",
|
|
103
|
+
className: [
|
|
104
|
+
"bg-[var(--tabs-indicator-color,var(--accent-1))]",
|
|
105
|
+
"transition-[clip-path] duration-200 ease-[cubic-bezier(0.77,0,0.175,1)] motion-reduce:transition-none",
|
|
106
|
+
"data-[orientation=horizontal]:inset-x-0 data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-0.5",
|
|
107
|
+
"data-[orientation=vertical]:inset-y-0 data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-0.5"
|
|
108
|
+
].join(" "),
|
|
109
|
+
variant: "underline"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
animation: "grow",
|
|
113
|
+
className: [
|
|
114
|
+
"data-[orientation=horizontal]:inset-x-0 data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-0.5",
|
|
115
|
+
"data-[orientation=vertical]:inset-y-0 data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-0.5"
|
|
116
|
+
].join(" "),
|
|
117
|
+
variant: "underline"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
defaultVariants: {
|
|
121
|
+
animation: "slide",
|
|
122
|
+
variant: "base"
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
var tabsGrowIndicatorClassName = [
|
|
126
|
+
"absolute rounded-full bg-[var(--tabs-indicator-color,var(--accent-1))]",
|
|
127
|
+
"data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-full",
|
|
128
|
+
"data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-full"
|
|
129
|
+
].join(" ");
|
|
130
|
+
var TabsStyleContext = createContext(null);
|
|
131
|
+
function useTabsStyle() {
|
|
132
|
+
return use(TabsStyleContext) ?? {
|
|
133
|
+
indicatorAnimation: "slide",
|
|
134
|
+
variant: "base"
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function resolveTabsVariant(variant) {
|
|
138
|
+
return variant ?? "base";
|
|
139
|
+
}
|
|
140
|
+
function mergeBaseUiClassName(className, ...classes) {
|
|
141
|
+
if (typeof className === "function") {
|
|
142
|
+
return (state) => cn(...classes, className(state));
|
|
143
|
+
}
|
|
144
|
+
return cn(...classes, className);
|
|
145
|
+
}
|
|
146
|
+
function cssColorValue(color) {
|
|
147
|
+
if (!color) return void 0;
|
|
148
|
+
if (color === "accent") return "var(--accent-1)";
|
|
149
|
+
if (color === "current") return "currentColor";
|
|
150
|
+
if (color === "foreground") return "var(--foreground-1)";
|
|
151
|
+
if (color.startsWith("var(")) return color;
|
|
152
|
+
if (color.startsWith("--")) return `var(${color})`;
|
|
153
|
+
return color;
|
|
154
|
+
}
|
|
155
|
+
function mergeTabsStyle(style, indicatorColor) {
|
|
156
|
+
const color = cssColorValue(indicatorColor);
|
|
157
|
+
if (!color) return style;
|
|
158
|
+
if (typeof style === "function") {
|
|
159
|
+
return (state) => ({
|
|
160
|
+
...style(state),
|
|
161
|
+
"--tabs-indicator-color": color
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
...style,
|
|
166
|
+
"--tabs-indicator-color": color
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function tabsSlideClipPath(orientation) {
|
|
170
|
+
if (orientation === "vertical") {
|
|
171
|
+
return "inset(var(--active-tab-top) 0 calc(100% - var(--active-tab-top) - var(--active-tab-height)) 0)";
|
|
172
|
+
}
|
|
173
|
+
return "inset(0 calc(100% - var(--active-tab-left) - var(--active-tab-width)) 0 var(--active-tab-left))";
|
|
174
|
+
}
|
|
175
|
+
function mergeTabsIndicatorStyle(style, indicatorColor, indicatorAnimation) {
|
|
176
|
+
const mergedStyle = mergeTabsStyle(style, indicatorColor);
|
|
177
|
+
if (indicatorAnimation !== "slide") return mergedStyle;
|
|
178
|
+
if (typeof mergedStyle === "function") {
|
|
179
|
+
return (state) => ({
|
|
180
|
+
...mergedStyle(state),
|
|
181
|
+
clipPath: tabsSlideClipPath(state.orientation)
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
return (state) => ({
|
|
185
|
+
...mergedStyle,
|
|
186
|
+
clipPath: tabsSlideClipPath(state.orientation)
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function mergeRel(rel) {
|
|
190
|
+
const values = new Set((rel ?? "").split(/\s+/).filter(Boolean));
|
|
191
|
+
values.add("noopener");
|
|
192
|
+
values.add("noreferrer");
|
|
193
|
+
return Array.from(values).join(" ");
|
|
194
|
+
}
|
|
195
|
+
function TabsGrowIndicator({
|
|
196
|
+
indicatorProps,
|
|
197
|
+
state
|
|
198
|
+
}) {
|
|
199
|
+
const indicatorRef = useRef(null);
|
|
200
|
+
const activeLeft = state.activeTabPosition?.left;
|
|
201
|
+
const activeTop = state.activeTabPosition?.top;
|
|
202
|
+
const activeWidth = state.activeTabSize?.width;
|
|
203
|
+
const activeHeight = state.activeTabSize?.height;
|
|
204
|
+
useLayoutEffect(() => {
|
|
205
|
+
const indicator = indicatorRef.current;
|
|
206
|
+
if (!indicator || activeLeft == null || activeTop == null || activeWidth == null || activeHeight == null || typeof indicator.animate !== "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const isVertical = state.orientation === "vertical";
|
|
210
|
+
const animation = indicator.animate(
|
|
211
|
+
[
|
|
212
|
+
{
|
|
213
|
+
opacity: 0.7,
|
|
214
|
+
transform: isVertical ? "scaleY(0.35)" : "scaleX(0.35)"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
opacity: 1,
|
|
218
|
+
transform: isVertical ? "scaleY(1)" : "scaleX(1)"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
{
|
|
222
|
+
duration: 180,
|
|
223
|
+
easing: "cubic-bezier(0.23, 1, 0.32, 1)"
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
return () => {
|
|
227
|
+
animation.cancel();
|
|
228
|
+
};
|
|
229
|
+
}, [activeHeight, activeLeft, activeTop, activeWidth, state.orientation]);
|
|
230
|
+
return /* @__PURE__ */ jsx("span", { ...indicatorProps, children: /* @__PURE__ */ jsx(
|
|
231
|
+
"span",
|
|
232
|
+
{
|
|
233
|
+
"aria-hidden": "true",
|
|
234
|
+
className: tabsGrowIndicatorClassName,
|
|
235
|
+
"data-orientation": state.orientation,
|
|
236
|
+
ref: indicatorRef,
|
|
237
|
+
style: state.orientation === "vertical" ? {
|
|
238
|
+
height: "var(--active-tab-height)",
|
|
239
|
+
top: "var(--active-tab-top)",
|
|
240
|
+
transformOrigin: "center"
|
|
241
|
+
} : {
|
|
242
|
+
left: "var(--active-tab-left)",
|
|
243
|
+
transformOrigin: "center",
|
|
244
|
+
width: "var(--active-tab-width)"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
) });
|
|
248
|
+
}
|
|
249
|
+
function Tabs({
|
|
250
|
+
children,
|
|
251
|
+
className,
|
|
252
|
+
indicatorAnimation = "slide",
|
|
253
|
+
indicatorColor,
|
|
254
|
+
style,
|
|
255
|
+
variant = "base",
|
|
256
|
+
...props
|
|
257
|
+
}) {
|
|
258
|
+
const resolvedVariant = resolveTabsVariant(variant);
|
|
259
|
+
return /* @__PURE__ */ jsx(
|
|
260
|
+
TabsStyleContext,
|
|
261
|
+
{
|
|
262
|
+
value: { indicatorAnimation, indicatorColor, variant: resolvedVariant },
|
|
263
|
+
children: /* @__PURE__ */ jsx(
|
|
264
|
+
BaseTabs.Root,
|
|
265
|
+
{
|
|
266
|
+
className: mergeBaseUiClassName(className, "min-w-0"),
|
|
267
|
+
"data-slot": "tabs",
|
|
268
|
+
style: mergeTabsStyle(style, indicatorColor),
|
|
269
|
+
...props,
|
|
270
|
+
children
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
function TabsList({ className, variant, ...props }) {
|
|
277
|
+
const styleContext = useTabsStyle();
|
|
278
|
+
const resolvedVariant = variant ?? styleContext.variant;
|
|
279
|
+
return /* @__PURE__ */ jsx(
|
|
280
|
+
BaseTabs.List,
|
|
281
|
+
{
|
|
282
|
+
className: mergeBaseUiClassName(
|
|
283
|
+
className,
|
|
284
|
+
tabsListVariants({ variant: resolvedVariant })
|
|
285
|
+
),
|
|
286
|
+
"data-slot": "tabs-list",
|
|
287
|
+
...props
|
|
288
|
+
}
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
function TabsTab({ className, variant, ...props }) {
|
|
292
|
+
const styleContext = useTabsStyle();
|
|
293
|
+
const resolvedVariant = variant ?? styleContext.variant;
|
|
294
|
+
return /* @__PURE__ */ jsx(
|
|
295
|
+
BaseTabs.Tab,
|
|
296
|
+
{
|
|
297
|
+
className: mergeBaseUiClassName(
|
|
298
|
+
className,
|
|
299
|
+
tabsTabVariants({ variant: resolvedVariant })
|
|
300
|
+
),
|
|
301
|
+
"data-slot": "tabs-tab",
|
|
302
|
+
...props
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
function TabsPanel({ className, ...props }) {
|
|
307
|
+
return /* @__PURE__ */ jsx(
|
|
308
|
+
BaseTabs.Panel,
|
|
309
|
+
{
|
|
310
|
+
className: mergeBaseUiClassName(
|
|
311
|
+
className,
|
|
312
|
+
"outline-none focus-visible:outline-2 focus-visible:outline-focus-ring"
|
|
313
|
+
),
|
|
314
|
+
"data-slot": "tabs-panel",
|
|
315
|
+
...props
|
|
316
|
+
}
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
function TabsIndicator({
|
|
320
|
+
className,
|
|
321
|
+
indicatorAnimation,
|
|
322
|
+
indicatorColor,
|
|
323
|
+
render,
|
|
324
|
+
style,
|
|
325
|
+
variant,
|
|
326
|
+
...props
|
|
327
|
+
}) {
|
|
328
|
+
const styleContext = useTabsStyle();
|
|
329
|
+
const resolvedVariant = variant ?? styleContext.variant;
|
|
330
|
+
const resolvedAnimation = indicatorAnimation ?? styleContext.indicatorAnimation;
|
|
331
|
+
const indicatorRender = render ?? (resolvedVariant === "underline" && resolvedAnimation === "grow" ? (indicatorProps, state) => /* @__PURE__ */ jsx(TabsGrowIndicator, { indicatorProps, state }) : void 0);
|
|
332
|
+
return /* @__PURE__ */ jsx(
|
|
333
|
+
BaseTabs.Indicator,
|
|
334
|
+
{
|
|
335
|
+
className: mergeBaseUiClassName(
|
|
336
|
+
className,
|
|
337
|
+
tabsIndicatorVariants({
|
|
338
|
+
animation: resolvedAnimation,
|
|
339
|
+
variant: resolvedVariant
|
|
340
|
+
})
|
|
341
|
+
),
|
|
342
|
+
"data-slot": "tabs-indicator",
|
|
343
|
+
render: indicatorRender,
|
|
344
|
+
style: mergeTabsIndicatorStyle(
|
|
345
|
+
style,
|
|
346
|
+
indicatorColor ?? styleContext.indicatorColor,
|
|
347
|
+
resolvedAnimation
|
|
348
|
+
),
|
|
349
|
+
...props
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
function NavigationTabs(props) {
|
|
354
|
+
return /* @__PURE__ */ jsx(Tabs, { "data-slot": "navigation-tabs", ...props });
|
|
355
|
+
}
|
|
356
|
+
function NavigationTabsList(props) {
|
|
357
|
+
return /* @__PURE__ */ jsx(TabsList, { "data-slot": "navigation-tabs-list", ...props });
|
|
358
|
+
}
|
|
359
|
+
function NavigationTabsIndicator(props) {
|
|
360
|
+
return /* @__PURE__ */ jsx(TabsIndicator, { "data-slot": "navigation-tabs-indicator", ...props });
|
|
361
|
+
}
|
|
362
|
+
function NavigationTabsLink({
|
|
363
|
+
active,
|
|
364
|
+
children,
|
|
365
|
+
href,
|
|
366
|
+
rel,
|
|
367
|
+
render,
|
|
368
|
+
target,
|
|
369
|
+
...props
|
|
370
|
+
}) {
|
|
371
|
+
const { "aria-current": ariaCurrent, ...tabProps } = props;
|
|
372
|
+
return /* @__PURE__ */ jsx(
|
|
373
|
+
TabsTab,
|
|
374
|
+
{
|
|
375
|
+
"aria-current": active ? "page" : ariaCurrent,
|
|
376
|
+
"data-slot": "navigation-tabs-link",
|
|
377
|
+
"data-state": active ? "path-active" : void 0,
|
|
378
|
+
nativeButton: false,
|
|
379
|
+
render: render ?? /* @__PURE__ */ jsx(
|
|
380
|
+
NextLink,
|
|
381
|
+
{
|
|
382
|
+
href,
|
|
383
|
+
rel: target === "_blank" ? mergeRel(rel) : rel,
|
|
384
|
+
target
|
|
385
|
+
}
|
|
386
|
+
),
|
|
387
|
+
...tabProps,
|
|
388
|
+
children
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
function NavigationTabsTab(props) {
|
|
393
|
+
return /* @__PURE__ */ jsx(NavigationTabsLink, { ...props });
|
|
394
|
+
}
|
|
395
|
+
export {
|
|
396
|
+
NavigationTabs,
|
|
397
|
+
NavigationTabsIndicator,
|
|
398
|
+
NavigationTabsLink,
|
|
399
|
+
NavigationTabsList,
|
|
400
|
+
NavigationTabsTab,
|
|
401
|
+
Tabs,
|
|
402
|
+
TabsIndicator,
|
|
403
|
+
TabsList,
|
|
404
|
+
TabsPanel,
|
|
405
|
+
TabsTab,
|
|
406
|
+
tabsIndicatorVariants,
|
|
407
|
+
tabsListVariants,
|
|
408
|
+
tabsTabVariants
|
|
409
|
+
};
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/kernel/components/ui/text.tsx
|
|
21
|
+
var text_exports = {};
|
|
22
|
+
__export(text_exports, {
|
|
23
|
+
Text: () => Text,
|
|
24
|
+
textVariants: () => textVariants
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(text_exports);
|
|
27
|
+
|
|
28
|
+
// src/utils/cn.ts
|
|
29
|
+
var import_clsx = require("clsx");
|
|
30
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
31
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
32
|
+
extend: {
|
|
33
|
+
classGroups: {
|
|
34
|
+
z: [
|
|
35
|
+
"z-content",
|
|
36
|
+
"z-nav",
|
|
37
|
+
"z-overlay",
|
|
38
|
+
"z-modal",
|
|
39
|
+
"z-search",
|
|
40
|
+
"z-toast",
|
|
41
|
+
"z-progress"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
function cn(...inputs) {
|
|
47
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// src/kernel/components/ui/text.tsx
|
|
51
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
52
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
53
|
+
var textVariants = (0, import_class_variance_authority.cva)("text-foreground-1", {
|
|
54
|
+
variants: {
|
|
55
|
+
size: {
|
|
56
|
+
xs: "",
|
|
57
|
+
sm: "",
|
|
58
|
+
md: "",
|
|
59
|
+
lg: "",
|
|
60
|
+
xl: "",
|
|
61
|
+
"2xl": "",
|
|
62
|
+
"3xl": "",
|
|
63
|
+
"4xl": "",
|
|
64
|
+
"5xl": "",
|
|
65
|
+
"6xl": "",
|
|
66
|
+
"7xl": "",
|
|
67
|
+
"8xl": "",
|
|
68
|
+
"9xl": ""
|
|
69
|
+
},
|
|
70
|
+
variant: {
|
|
71
|
+
body: "",
|
|
72
|
+
headline: "",
|
|
73
|
+
label: "",
|
|
74
|
+
overline: ""
|
|
75
|
+
},
|
|
76
|
+
weight: {
|
|
77
|
+
default: "font-normal",
|
|
78
|
+
medium: "font-medium",
|
|
79
|
+
semibold: "font-semibold",
|
|
80
|
+
bold: "font-bold"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
compoundVariants: [
|
|
84
|
+
{ className: "text-xs leading-5", size: "xs", variant: "body" },
|
|
85
|
+
{ className: "text-sm leading-6", size: "sm", variant: "body" },
|
|
86
|
+
{ className: "text-base leading-7", size: "md", variant: "body" },
|
|
87
|
+
{ className: "text-lg leading-8", size: "lg", variant: "body" },
|
|
88
|
+
{ className: "text-xl leading-8", size: "xl", variant: "body" },
|
|
89
|
+
{ className: "text-xs leading-4", size: "xs", variant: "label" },
|
|
90
|
+
{ className: "text-sm leading-5", size: "sm", variant: "label" },
|
|
91
|
+
{ className: "text-base leading-6", size: "md", variant: "label" },
|
|
92
|
+
{ className: "text-lg leading-7", size: "lg", variant: "label" },
|
|
93
|
+
{ className: "text-xl leading-8", size: "xl", variant: "label" },
|
|
94
|
+
{
|
|
95
|
+
className: "text-xs uppercase leading-4 tracking-wide text-foreground-3",
|
|
96
|
+
size: "xs",
|
|
97
|
+
variant: "overline"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
className: "text-sm uppercase leading-5 tracking-wide text-foreground-3",
|
|
101
|
+
size: "sm",
|
|
102
|
+
variant: "overline"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
className: "text-base uppercase leading-6 tracking-wide text-foreground-3",
|
|
106
|
+
size: "md",
|
|
107
|
+
variant: "overline"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
className: "text-lg uppercase leading-7 tracking-wide text-foreground-3",
|
|
111
|
+
size: "lg",
|
|
112
|
+
variant: "overline"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
className: "text-xl uppercase leading-8 tracking-wide text-foreground-3",
|
|
116
|
+
size: "xl",
|
|
117
|
+
variant: "overline"
|
|
118
|
+
},
|
|
119
|
+
{ className: "text-xl leading-8", size: "xl", variant: "headline" },
|
|
120
|
+
{ className: "text-2xl leading-9", size: "2xl", variant: "headline" },
|
|
121
|
+
{
|
|
122
|
+
className: "text-3xl leading-10 tracking-tight",
|
|
123
|
+
size: "3xl",
|
|
124
|
+
variant: "headline"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
className: "text-4xl leading-none tracking-tight",
|
|
128
|
+
size: "4xl",
|
|
129
|
+
variant: "headline"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
className: "text-5xl leading-none tracking-tight",
|
|
133
|
+
size: "5xl",
|
|
134
|
+
variant: "headline"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
className: "text-6xl leading-none tracking-tight",
|
|
138
|
+
size: "6xl",
|
|
139
|
+
variant: "headline"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
className: "text-7xl leading-none tracking-tight",
|
|
143
|
+
size: "7xl",
|
|
144
|
+
variant: "headline"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
className: "text-8xl leading-none tracking-tight",
|
|
148
|
+
size: "8xl",
|
|
149
|
+
variant: "headline"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
className: "text-9xl leading-none tracking-tight",
|
|
153
|
+
size: "9xl",
|
|
154
|
+
variant: "headline"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
defaultVariants: {
|
|
158
|
+
size: "md",
|
|
159
|
+
variant: "body",
|
|
160
|
+
weight: "default"
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
function Text({
|
|
164
|
+
as,
|
|
165
|
+
className,
|
|
166
|
+
size,
|
|
167
|
+
variant,
|
|
168
|
+
weight,
|
|
169
|
+
...props
|
|
170
|
+
}) {
|
|
171
|
+
const Component = as ?? "p";
|
|
172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
Component,
|
|
174
|
+
{
|
|
175
|
+
className: cn(textVariants({ size, variant, weight }), className),
|
|
176
|
+
...props
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
181
|
+
0 && (module.exports = {
|
|
182
|
+
Text,
|
|
183
|
+
textVariants
|
|
184
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
5
|
+
|
|
6
|
+
declare const textVariants: (props?: ({
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
8
|
+
variant?: "body" | "label" | "overline" | "headline" | null | undefined;
|
|
9
|
+
weight?: "default" | "bold" | "medium" | "semibold" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
type TextProps<T extends ElementType = "p"> = {
|
|
12
|
+
as?: T;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & VariantProps<typeof textVariants> & Omit<ComponentPropsWithoutRef<T>, "as" | "className" | "color">;
|
|
15
|
+
declare function Text<T extends ElementType = "p">({ as, className, size, variant, weight, ...props }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { Text, type TextProps, textVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
5
|
+
|
|
6
|
+
declare const textVariants: (props?: ({
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
8
|
+
variant?: "body" | "label" | "overline" | "headline" | null | undefined;
|
|
9
|
+
weight?: "default" | "bold" | "medium" | "semibold" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
type TextProps<T extends ElementType = "p"> = {
|
|
12
|
+
as?: T;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & VariantProps<typeof textVariants> & Omit<ComponentPropsWithoutRef<T>, "as" | "className" | "color">;
|
|
15
|
+
declare function Text<T extends ElementType = "p">({ as, className, size, variant, weight, ...props }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { Text, type TextProps, textVariants };
|