@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,52 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { LinkStyleVariant, LinkButtonVariant } from './link.js';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import NextLink from 'next/link';
|
|
6
|
+
import { ReactNode, ComponentPropsWithoutRef, HTMLAttributes } from 'react';
|
|
7
|
+
import './button.js';
|
|
8
|
+
|
|
9
|
+
declare const breadcrumbVariants: (props?: ({
|
|
10
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
type BreadcrumbVariantProps = VariantProps<typeof breadcrumbVariants>;
|
|
13
|
+
type BreadcrumbStyleVariant = "default" | `link.${LinkStyleVariant}` | LinkButtonVariant;
|
|
14
|
+
type BreadcrumbSizeProps = Pick<BreadcrumbVariantProps, "size">;
|
|
15
|
+
type BreadcrumbStyleProps = {
|
|
16
|
+
variant?: BreadcrumbStyleVariant;
|
|
17
|
+
};
|
|
18
|
+
declare function Breadcrumb({ className, ...props }: ComponentPropsWithoutRef<"nav">): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function BreadcrumbList({ className, size, ...props }: BreadcrumbSizeProps & ComponentPropsWithoutRef<"ol">): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function BreadcrumbItem({ className, size, ...props }: BreadcrumbSizeProps & ComponentPropsWithoutRef<"li">): react_jsx_runtime.JSX.Element;
|
|
21
|
+
type BreadcrumbLinkProps = {
|
|
22
|
+
active?: boolean;
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
href: string;
|
|
25
|
+
} & BreadcrumbSizeProps & BreadcrumbStyleProps & Omit<ComponentPropsWithoutRef<typeof NextLink>, "href">;
|
|
26
|
+
declare function BreadcrumbLink({ active, children, className, href, size, variant, ...props }: BreadcrumbLinkProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
declare function BreadcrumbPage({ className, size, variant, ...props }: BreadcrumbSizeProps & BreadcrumbStyleProps & ComponentPropsWithoutRef<"span">): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare function BreadcrumbSeparator({ children, className, size, ...props }: BreadcrumbSizeProps & HTMLAttributes<HTMLLIElement>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function BreadcrumbEllipsis({ className, size, ...props }: BreadcrumbSizeProps & ComponentPropsWithoutRef<"span">): react_jsx_runtime.JSX.Element;
|
|
30
|
+
type BreadcrumbTrailItem = {
|
|
31
|
+
current?: boolean;
|
|
32
|
+
href: string;
|
|
33
|
+
title: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
type BreadcrumbTrailProps = {
|
|
36
|
+
className?: string;
|
|
37
|
+
collapseAfter?: number;
|
|
38
|
+
collapseBefore?: number;
|
|
39
|
+
collapsed?: boolean;
|
|
40
|
+
items: BreadcrumbTrailItem[];
|
|
41
|
+
menuLabel?: string;
|
|
42
|
+
} & BreadcrumbSizeProps & BreadcrumbStyleProps;
|
|
43
|
+
declare function BreadcrumbTrailEntry({ item, size, variant, }: {
|
|
44
|
+
item: BreadcrumbTrailItem;
|
|
45
|
+
} & BreadcrumbSizeProps & BreadcrumbStyleProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
declare function BreadcrumbTrailMenu({ hidden, menuLabel, size, }: {
|
|
47
|
+
hidden: BreadcrumbTrailItem[];
|
|
48
|
+
menuLabel: string;
|
|
49
|
+
} & BreadcrumbSizeProps & BreadcrumbStyleProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
declare function BreadcrumbTrail({ className, collapsed, items, menuLabel, size, variant, }: BreadcrumbTrailProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbStyleVariant, BreadcrumbTrail, BreadcrumbTrailEntry, type BreadcrumbTrailItem, BreadcrumbTrailMenu, type BreadcrumbTrailProps, type BreadcrumbVariantProps, breadcrumbVariants };
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
// src/kernel/components/ui/breadcrumb.tsx
|
|
2
|
+
import { CollapsibleBreadcrumbTrail } from "./breadcrumb-trail.js";
|
|
3
|
+
import { buttonVariants } from "./button.js";
|
|
4
|
+
import {
|
|
5
|
+
linkVariants
|
|
6
|
+
} from "./link.js";
|
|
7
|
+
import {
|
|
8
|
+
Menu,
|
|
9
|
+
MenuLinkItem,
|
|
10
|
+
MenuPopup,
|
|
11
|
+
MenuPortal,
|
|
12
|
+
MenuPositioner,
|
|
13
|
+
MenuTrigger
|
|
14
|
+
} from "./menu.js";
|
|
15
|
+
|
|
16
|
+
// src/utils/cn.ts
|
|
17
|
+
import { clsx } from "clsx";
|
|
18
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
19
|
+
var twMerge = extendTailwindMerge({
|
|
20
|
+
extend: {
|
|
21
|
+
classGroups: {
|
|
22
|
+
z: [
|
|
23
|
+
"z-content",
|
|
24
|
+
"z-nav",
|
|
25
|
+
"z-overlay",
|
|
26
|
+
"z-modal",
|
|
27
|
+
"z-search",
|
|
28
|
+
"z-toast",
|
|
29
|
+
"z-progress"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
function cn(...inputs) {
|
|
35
|
+
return twMerge(clsx(inputs));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/kernel/components/ui/breadcrumb.tsx
|
|
39
|
+
import { cva } from "class-variance-authority";
|
|
40
|
+
import NextLink from "next/link";
|
|
41
|
+
import {
|
|
42
|
+
Fragment
|
|
43
|
+
} from "react";
|
|
44
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
45
|
+
var breadcrumbVariants = cva(
|
|
46
|
+
"flex min-w-0 flex-wrap items-center text-foreground-3",
|
|
47
|
+
{
|
|
48
|
+
variants: {
|
|
49
|
+
size: {
|
|
50
|
+
xs: "gap-1 text-xs",
|
|
51
|
+
sm: "gap-1.5 text-sm",
|
|
52
|
+
md: "gap-1.5 text-sm",
|
|
53
|
+
lg: "gap-2 text-base",
|
|
54
|
+
xl: "gap-2 text-base"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
size: "md"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
var breadcrumbItemVariants = cva("inline-flex min-w-0 items-center", {
|
|
63
|
+
variants: {
|
|
64
|
+
size: {
|
|
65
|
+
xs: "gap-1",
|
|
66
|
+
sm: "gap-1.5",
|
|
67
|
+
md: "gap-1.5",
|
|
68
|
+
lg: "gap-2",
|
|
69
|
+
xl: "gap-2"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: "md"
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var breadcrumbTextVariants = cva("", {
|
|
77
|
+
variants: {
|
|
78
|
+
size: {
|
|
79
|
+
xs: "text-xs",
|
|
80
|
+
sm: "text-sm",
|
|
81
|
+
md: "text-sm",
|
|
82
|
+
lg: "text-base",
|
|
83
|
+
xl: "text-base"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var breadcrumbDefaultVariants = cva(
|
|
88
|
+
[
|
|
89
|
+
"inline-flex min-w-0 max-w-full truncate rounded-button text-foreground-2 opacity-100 transition-[color,opacity] hover:text-foreground-1 hover:opacity-90",
|
|
90
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
91
|
+
"data-[state=path-active]:text-foreground-1 data-[state=path-active]:opacity-100"
|
|
92
|
+
].join(" "),
|
|
93
|
+
{
|
|
94
|
+
variants: {
|
|
95
|
+
size: {
|
|
96
|
+
xs: "text-xs",
|
|
97
|
+
sm: "text-sm",
|
|
98
|
+
md: "text-sm",
|
|
99
|
+
lg: "text-base",
|
|
100
|
+
xl: "text-base"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
var breadcrumbPageVariants = cva("", {
|
|
106
|
+
variants: {
|
|
107
|
+
size: {
|
|
108
|
+
xs: "text-xs",
|
|
109
|
+
sm: "text-sm",
|
|
110
|
+
md: "text-sm",
|
|
111
|
+
lg: "text-base",
|
|
112
|
+
xl: "text-base"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
var breadcrumbEllipsisVariants = cva(
|
|
117
|
+
"inline-flex items-center justify-center",
|
|
118
|
+
{
|
|
119
|
+
variants: {
|
|
120
|
+
size: {
|
|
121
|
+
xs: "size-5 text-xs",
|
|
122
|
+
sm: "size-6 text-sm",
|
|
123
|
+
md: "size-6 text-sm",
|
|
124
|
+
lg: "size-7 text-base",
|
|
125
|
+
xl: "size-7 text-base"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
defaultVariants: {
|
|
129
|
+
size: "md"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
function resolveBreadcrumbVariant(variant) {
|
|
134
|
+
if (variant?.startsWith("button.")) {
|
|
135
|
+
return {
|
|
136
|
+
buttonVariant: variant.slice("button.".length),
|
|
137
|
+
linkVariant: null
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
if (variant?.startsWith("link.")) {
|
|
141
|
+
return {
|
|
142
|
+
buttonVariant: null,
|
|
143
|
+
linkVariant: variant.slice("link.".length)
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
buttonVariant: null,
|
|
148
|
+
linkVariant: null
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function breadcrumbLinkClasses({
|
|
152
|
+
active,
|
|
153
|
+
className,
|
|
154
|
+
size,
|
|
155
|
+
variant = "default"
|
|
156
|
+
}) {
|
|
157
|
+
const { buttonVariant, linkVariant } = resolveBreadcrumbVariant(variant);
|
|
158
|
+
return cn(
|
|
159
|
+
buttonVariant ? buttonVariants({ size, variant: buttonVariant }) : linkVariant ? linkVariants({ color: "default", size, variant: linkVariant }) : breadcrumbDefaultVariants({ size }),
|
|
160
|
+
active ? "font-medium" : void 0,
|
|
161
|
+
className
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
function Breadcrumb({
|
|
165
|
+
className,
|
|
166
|
+
...props
|
|
167
|
+
}) {
|
|
168
|
+
return /* @__PURE__ */ jsx(
|
|
169
|
+
"nav",
|
|
170
|
+
{
|
|
171
|
+
"aria-label": "Breadcrumb",
|
|
172
|
+
className: cn("min-w-0", className),
|
|
173
|
+
...props
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
function BreadcrumbList({
|
|
178
|
+
className,
|
|
179
|
+
size,
|
|
180
|
+
...props
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ jsx("ol", { className: cn(breadcrumbVariants({ size }), className), ...props });
|
|
183
|
+
}
|
|
184
|
+
function BreadcrumbItem({
|
|
185
|
+
className,
|
|
186
|
+
size,
|
|
187
|
+
...props
|
|
188
|
+
}) {
|
|
189
|
+
return /* @__PURE__ */ jsx(
|
|
190
|
+
"li",
|
|
191
|
+
{
|
|
192
|
+
className: cn(breadcrumbItemVariants({ size }), className),
|
|
193
|
+
...props
|
|
194
|
+
}
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
function BreadcrumbLink({
|
|
198
|
+
active,
|
|
199
|
+
children,
|
|
200
|
+
className,
|
|
201
|
+
href,
|
|
202
|
+
size,
|
|
203
|
+
variant,
|
|
204
|
+
...props
|
|
205
|
+
}) {
|
|
206
|
+
return /* @__PURE__ */ jsx(
|
|
207
|
+
NextLink,
|
|
208
|
+
{
|
|
209
|
+
"aria-current": active ? "page" : void 0,
|
|
210
|
+
className: breadcrumbLinkClasses({ active, className, size, variant }),
|
|
211
|
+
"data-state": active ? "path-active" : void 0,
|
|
212
|
+
href,
|
|
213
|
+
...props,
|
|
214
|
+
children
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function BreadcrumbPage({
|
|
219
|
+
className,
|
|
220
|
+
size,
|
|
221
|
+
variant,
|
|
222
|
+
...props
|
|
223
|
+
}) {
|
|
224
|
+
return /* @__PURE__ */ jsx(
|
|
225
|
+
"span",
|
|
226
|
+
{
|
|
227
|
+
"aria-current": "page",
|
|
228
|
+
className: cn(
|
|
229
|
+
variant ? breadcrumbLinkClasses({ active: true, size, variant }) : "max-w-full truncate font-medium text-foreground-1 opacity-100",
|
|
230
|
+
breadcrumbPageVariants({ size }),
|
|
231
|
+
className
|
|
232
|
+
),
|
|
233
|
+
"data-state": "path-active",
|
|
234
|
+
...props
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
function BreadcrumbSeparator({
|
|
239
|
+
children,
|
|
240
|
+
className,
|
|
241
|
+
size,
|
|
242
|
+
...props
|
|
243
|
+
}) {
|
|
244
|
+
return /* @__PURE__ */ jsx(
|
|
245
|
+
"li",
|
|
246
|
+
{
|
|
247
|
+
"aria-hidden": "true",
|
|
248
|
+
className: cn(
|
|
249
|
+
"text-stroke-1",
|
|
250
|
+
breadcrumbTextVariants({ size }),
|
|
251
|
+
className
|
|
252
|
+
),
|
|
253
|
+
role: "presentation",
|
|
254
|
+
...props,
|
|
255
|
+
children: children ?? "/"
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
function BreadcrumbEllipsis({
|
|
260
|
+
className,
|
|
261
|
+
size,
|
|
262
|
+
...props
|
|
263
|
+
}) {
|
|
264
|
+
return /* @__PURE__ */ jsxs(
|
|
265
|
+
"span",
|
|
266
|
+
{
|
|
267
|
+
className: cn(breadcrumbEllipsisVariants({ size }), className),
|
|
268
|
+
role: "presentation",
|
|
269
|
+
...props,
|
|
270
|
+
children: [
|
|
271
|
+
"...",
|
|
272
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
function BreadcrumbTrailEntry({
|
|
278
|
+
item,
|
|
279
|
+
size,
|
|
280
|
+
variant
|
|
281
|
+
}) {
|
|
282
|
+
return /* @__PURE__ */ jsx(
|
|
283
|
+
BreadcrumbItem,
|
|
284
|
+
{
|
|
285
|
+
className: item.current ? "min-w-0 shrink" : "shrink-0",
|
|
286
|
+
size,
|
|
287
|
+
children: item.current ? /* @__PURE__ */ jsx(
|
|
288
|
+
BreadcrumbPage,
|
|
289
|
+
{
|
|
290
|
+
className: "block min-w-0 max-w-full truncate whitespace-nowrap",
|
|
291
|
+
size,
|
|
292
|
+
variant,
|
|
293
|
+
children: item.title
|
|
294
|
+
}
|
|
295
|
+
) : /* @__PURE__ */ jsx(
|
|
296
|
+
BreadcrumbLink,
|
|
297
|
+
{
|
|
298
|
+
className: "whitespace-nowrap",
|
|
299
|
+
href: item.href,
|
|
300
|
+
size,
|
|
301
|
+
variant,
|
|
302
|
+
children: item.title
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
}
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
function BreadcrumbTrailMenu({
|
|
309
|
+
hidden,
|
|
310
|
+
menuLabel,
|
|
311
|
+
size
|
|
312
|
+
}) {
|
|
313
|
+
return /* @__PURE__ */ jsx(BreadcrumbItem, { className: "shrink-0", size, children: /* @__PURE__ */ jsxs(Menu, { children: [
|
|
314
|
+
/* @__PURE__ */ jsx(
|
|
315
|
+
MenuTrigger,
|
|
316
|
+
{
|
|
317
|
+
"aria-label": menuLabel,
|
|
318
|
+
className: cn(
|
|
319
|
+
"inline-flex items-center justify-center text-foreground-3 transition-colors hover:text-foreground-1",
|
|
320
|
+
breadcrumbEllipsisVariants({ size })
|
|
321
|
+
),
|
|
322
|
+
children: /* @__PURE__ */ jsx(BreadcrumbEllipsis, { size })
|
|
323
|
+
}
|
|
324
|
+
),
|
|
325
|
+
/* @__PURE__ */ jsx(MenuPortal, { children: /* @__PURE__ */ jsx(MenuPositioner, { align: "start", children: /* @__PURE__ */ jsx(MenuPopup, { children: hidden.map((item) => /* @__PURE__ */ jsx(MenuLinkItem, { href: item.href, children: item.title }, item.href)) }) }) })
|
|
326
|
+
] }) });
|
|
327
|
+
}
|
|
328
|
+
function BreadcrumbTrail({
|
|
329
|
+
className,
|
|
330
|
+
collapsed = false,
|
|
331
|
+
items,
|
|
332
|
+
menuLabel = "Show hidden breadcrumb links",
|
|
333
|
+
size,
|
|
334
|
+
variant
|
|
335
|
+
}) {
|
|
336
|
+
if (collapsed) {
|
|
337
|
+
return /* @__PURE__ */ jsx(
|
|
338
|
+
CollapsibleBreadcrumbTrail,
|
|
339
|
+
{
|
|
340
|
+
className,
|
|
341
|
+
items,
|
|
342
|
+
menuLabel,
|
|
343
|
+
size,
|
|
344
|
+
variant
|
|
345
|
+
}
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
return /* @__PURE__ */ jsx(Breadcrumb, { className, children: /* @__PURE__ */ jsx(BreadcrumbList, { className: "flex-nowrap overflow-hidden", size, children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
349
|
+
index > 0 ? /* @__PURE__ */ jsx(BreadcrumbSeparator, { className: "shrink-0", size }) : null,
|
|
350
|
+
/* @__PURE__ */ jsx(BreadcrumbTrailEntry, { item, size, variant })
|
|
351
|
+
] }, item.href)) }) });
|
|
352
|
+
}
|
|
353
|
+
export {
|
|
354
|
+
Breadcrumb,
|
|
355
|
+
BreadcrumbEllipsis,
|
|
356
|
+
BreadcrumbItem,
|
|
357
|
+
BreadcrumbLink,
|
|
358
|
+
BreadcrumbList,
|
|
359
|
+
BreadcrumbPage,
|
|
360
|
+
BreadcrumbSeparator,
|
|
361
|
+
BreadcrumbTrail,
|
|
362
|
+
BreadcrumbTrailEntry,
|
|
363
|
+
BreadcrumbTrailMenu,
|
|
364
|
+
breadcrumbVariants
|
|
365
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
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/button-group.tsx
|
|
21
|
+
var button_group_exports = {};
|
|
22
|
+
__export(button_group_exports, {
|
|
23
|
+
ButtonGroup: () => ButtonGroup,
|
|
24
|
+
ButtonGroupSeparator: () => ButtonGroupSeparator,
|
|
25
|
+
ButtonGroupText: () => ButtonGroupText,
|
|
26
|
+
buttonGroupVariants: () => buttonGroupVariants
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(button_group_exports);
|
|
29
|
+
var import_button = require("./button.js");
|
|
30
|
+
var import_separator = require("./separator.js");
|
|
31
|
+
|
|
32
|
+
// src/utils/cn.ts
|
|
33
|
+
var import_clsx = require("clsx");
|
|
34
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
35
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
36
|
+
extend: {
|
|
37
|
+
classGroups: {
|
|
38
|
+
z: [
|
|
39
|
+
"z-content",
|
|
40
|
+
"z-nav",
|
|
41
|
+
"z-overlay",
|
|
42
|
+
"z-modal",
|
|
43
|
+
"z-search",
|
|
44
|
+
"z-toast",
|
|
45
|
+
"z-progress"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function cn(...inputs) {
|
|
51
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// src/kernel/components/ui/button-group.tsx
|
|
55
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
56
|
+
var import_jsx_runtime = (
|
|
57
|
+
// biome-ignore lint/a11y/useSemanticElements: ButtonGroup can wrap buttons, links, inputs, and composite triggers; fieldset semantics would be too narrow.
|
|
58
|
+
require("react/jsx-runtime")
|
|
59
|
+
);
|
|
60
|
+
var buttonGroupVariants = (0, import_class_variance_authority.cva)(
|
|
61
|
+
[
|
|
62
|
+
"inline-flex w-fit items-stretch",
|
|
63
|
+
"has-[>[data-slot=button-group]]:gap-2",
|
|
64
|
+
"[&>*]:focus-visible:relative [&>*]:focus-visible:z-10",
|
|
65
|
+
"[&>input]:flex-1",
|
|
66
|
+
"[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit"
|
|
67
|
+
].join(" "),
|
|
68
|
+
{
|
|
69
|
+
variants: {
|
|
70
|
+
orientation: {
|
|
71
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>*:has(+[data-slot=button-group-separator])]:border-r-0",
|
|
72
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>*:has(+[data-slot=button-group-separator])]:border-b-0"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
orientation: "horizontal"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
function ButtonGroup({
|
|
81
|
+
className,
|
|
82
|
+
orientation,
|
|
83
|
+
...props
|
|
84
|
+
}) {
|
|
85
|
+
const resolvedOrientation = orientation ?? "horizontal";
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: cn(
|
|
90
|
+
buttonGroupVariants({ orientation: resolvedOrientation }),
|
|
91
|
+
className
|
|
92
|
+
),
|
|
93
|
+
"data-orientation": resolvedOrientation,
|
|
94
|
+
"data-slot": "button-group",
|
|
95
|
+
role: "group",
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function ButtonGroupText({
|
|
101
|
+
className,
|
|
102
|
+
color,
|
|
103
|
+
size,
|
|
104
|
+
variant = "secondary",
|
|
105
|
+
...props
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: cn(
|
|
111
|
+
(0, import_button.buttonVariants)({ color, iconOnly: false, size, variant }),
|
|
112
|
+
"pointer-events-none",
|
|
113
|
+
className
|
|
114
|
+
),
|
|
115
|
+
"data-slot": "button-group-text",
|
|
116
|
+
...props
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function ButtonGroupSeparator({
|
|
121
|
+
className,
|
|
122
|
+
orientation = "vertical",
|
|
123
|
+
...props
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
126
|
+
import_separator.Separator,
|
|
127
|
+
{
|
|
128
|
+
className: cn(
|
|
129
|
+
"relative !m-0 shrink-0 self-stretch bg-stroke-3 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px",
|
|
130
|
+
className
|
|
131
|
+
),
|
|
132
|
+
"data-slot": "button-group-separator",
|
|
133
|
+
orientation,
|
|
134
|
+
...props
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
139
|
+
0 && (module.exports = {
|
|
140
|
+
ButtonGroup,
|
|
141
|
+
ButtonGroupSeparator,
|
|
142
|
+
ButtonGroupText,
|
|
143
|
+
buttonGroupVariants
|
|
144
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { ButtonVariantProps } from './button.cjs';
|
|
4
|
+
import { SeparatorProps } from './separator.cjs';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
7
|
+
import '@base-ui/react/separator';
|
|
8
|
+
|
|
9
|
+
declare const buttonGroupVariants: (props?: ({
|
|
10
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & VariantProps<typeof buttonGroupVariants>;
|
|
13
|
+
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
type ButtonGroupTextProps = Omit<ComponentPropsWithoutRef<"div">, "color"> & Pick<ButtonVariantProps, "color" | "size" | "variant">;
|
|
15
|
+
declare function ButtonGroupText({ className, color, size, variant, ...props }: ButtonGroupTextProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
type ButtonGroupSeparatorProps = SeparatorProps;
|
|
17
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, buttonGroupVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { ButtonVariantProps } from './button.js';
|
|
4
|
+
import { SeparatorProps } from './separator.js';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
7
|
+
import '@base-ui/react/separator';
|
|
8
|
+
|
|
9
|
+
declare const buttonGroupVariants: (props?: ({
|
|
10
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & VariantProps<typeof buttonGroupVariants>;
|
|
13
|
+
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
type ButtonGroupTextProps = Omit<ComponentPropsWithoutRef<"div">, "color"> & Pick<ButtonVariantProps, "color" | "size" | "variant">;
|
|
15
|
+
declare function ButtonGroupText({ className, color, size, variant, ...props }: ButtonGroupTextProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
type ButtonGroupSeparatorProps = SeparatorProps;
|
|
17
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, buttonGroupVariants };
|