@publish.os/nextjs 0.0.1-alpha.2 → 0.0.1-alpha.3
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/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 +1039 -123
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +1027 -110
- 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 +208 -0
- package/dist/kernel/routes/agent/markdown.d.cts +59 -0
- package/dist/kernel/routes/agent/markdown.d.ts +59 -0
- package/dist/kernel/routes/agent/markdown.js +180 -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 +297 -0
- package/dist/kernel/routes/metadata/feed.d.cts +21 -0
- package/dist/kernel/routes/metadata/feed.d.ts +21 -0
- package/dist/kernel/routes/metadata/feed.js +269 -0
- package/dist/kernel/routes/metadata/llms.cjs +234 -0
- package/dist/kernel/routes/metadata/llms.d.cts +27 -0
- package/dist/kernel/routes/metadata/llms.d.ts +27 -0
- package/dist/kernel/routes/metadata/llms.js +206 -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 +48 -4
- 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 +113 -0
- package/dist/kernel/routes/metadata/sitemap.cjs +182 -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 +156 -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 +36 -39
- 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,156 @@
|
|
|
1
|
+
// src/utils/cn.ts
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
+
var twMerge = extendTailwindMerge({
|
|
5
|
+
extend: {
|
|
6
|
+
classGroups: {
|
|
7
|
+
z: [
|
|
8
|
+
"z-content",
|
|
9
|
+
"z-nav",
|
|
10
|
+
"z-overlay",
|
|
11
|
+
"z-modal",
|
|
12
|
+
"z-search",
|
|
13
|
+
"z-toast",
|
|
14
|
+
"z-progress"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
function cn(...inputs) {
|
|
20
|
+
return twMerge(clsx(inputs));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/kernel/components/ui/text.tsx
|
|
24
|
+
import { cva } from "class-variance-authority";
|
|
25
|
+
import { jsx } from "react/jsx-runtime";
|
|
26
|
+
var textVariants = cva("text-foreground-1", {
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
xs: "",
|
|
30
|
+
sm: "",
|
|
31
|
+
md: "",
|
|
32
|
+
lg: "",
|
|
33
|
+
xl: "",
|
|
34
|
+
"2xl": "",
|
|
35
|
+
"3xl": "",
|
|
36
|
+
"4xl": "",
|
|
37
|
+
"5xl": "",
|
|
38
|
+
"6xl": "",
|
|
39
|
+
"7xl": "",
|
|
40
|
+
"8xl": "",
|
|
41
|
+
"9xl": ""
|
|
42
|
+
},
|
|
43
|
+
variant: {
|
|
44
|
+
body: "",
|
|
45
|
+
headline: "",
|
|
46
|
+
label: "",
|
|
47
|
+
overline: ""
|
|
48
|
+
},
|
|
49
|
+
weight: {
|
|
50
|
+
default: "font-normal",
|
|
51
|
+
medium: "font-medium",
|
|
52
|
+
semibold: "font-semibold",
|
|
53
|
+
bold: "font-bold"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
compoundVariants: [
|
|
57
|
+
{ className: "text-xs leading-5", size: "xs", variant: "body" },
|
|
58
|
+
{ className: "text-sm leading-6", size: "sm", variant: "body" },
|
|
59
|
+
{ className: "text-base leading-7", size: "md", variant: "body" },
|
|
60
|
+
{ className: "text-lg leading-8", size: "lg", variant: "body" },
|
|
61
|
+
{ className: "text-xl leading-8", size: "xl", variant: "body" },
|
|
62
|
+
{ className: "text-xs leading-4", size: "xs", variant: "label" },
|
|
63
|
+
{ className: "text-sm leading-5", size: "sm", variant: "label" },
|
|
64
|
+
{ className: "text-base leading-6", size: "md", variant: "label" },
|
|
65
|
+
{ className: "text-lg leading-7", size: "lg", variant: "label" },
|
|
66
|
+
{ className: "text-xl leading-8", size: "xl", variant: "label" },
|
|
67
|
+
{
|
|
68
|
+
className: "text-xs uppercase leading-4 tracking-wide text-foreground-3",
|
|
69
|
+
size: "xs",
|
|
70
|
+
variant: "overline"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
className: "text-sm uppercase leading-5 tracking-wide text-foreground-3",
|
|
74
|
+
size: "sm",
|
|
75
|
+
variant: "overline"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
className: "text-base uppercase leading-6 tracking-wide text-foreground-3",
|
|
79
|
+
size: "md",
|
|
80
|
+
variant: "overline"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
className: "text-lg uppercase leading-7 tracking-wide text-foreground-3",
|
|
84
|
+
size: "lg",
|
|
85
|
+
variant: "overline"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
className: "text-xl uppercase leading-8 tracking-wide text-foreground-3",
|
|
89
|
+
size: "xl",
|
|
90
|
+
variant: "overline"
|
|
91
|
+
},
|
|
92
|
+
{ className: "text-xl leading-8", size: "xl", variant: "headline" },
|
|
93
|
+
{ className: "text-2xl leading-9", size: "2xl", variant: "headline" },
|
|
94
|
+
{
|
|
95
|
+
className: "text-3xl leading-10 tracking-tight",
|
|
96
|
+
size: "3xl",
|
|
97
|
+
variant: "headline"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
className: "text-4xl leading-none tracking-tight",
|
|
101
|
+
size: "4xl",
|
|
102
|
+
variant: "headline"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
className: "text-5xl leading-none tracking-tight",
|
|
106
|
+
size: "5xl",
|
|
107
|
+
variant: "headline"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
className: "text-6xl leading-none tracking-tight",
|
|
111
|
+
size: "6xl",
|
|
112
|
+
variant: "headline"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
className: "text-7xl leading-none tracking-tight",
|
|
116
|
+
size: "7xl",
|
|
117
|
+
variant: "headline"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
className: "text-8xl leading-none tracking-tight",
|
|
121
|
+
size: "8xl",
|
|
122
|
+
variant: "headline"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
className: "text-9xl leading-none tracking-tight",
|
|
126
|
+
size: "9xl",
|
|
127
|
+
variant: "headline"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
defaultVariants: {
|
|
131
|
+
size: "md",
|
|
132
|
+
variant: "body",
|
|
133
|
+
weight: "default"
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
function Text({
|
|
137
|
+
as,
|
|
138
|
+
className,
|
|
139
|
+
size,
|
|
140
|
+
variant,
|
|
141
|
+
weight,
|
|
142
|
+
...props
|
|
143
|
+
}) {
|
|
144
|
+
const Component = as ?? "p";
|
|
145
|
+
return /* @__PURE__ */ jsx(
|
|
146
|
+
Component,
|
|
147
|
+
{
|
|
148
|
+
className: cn(textVariants({ size, variant, weight }), className),
|
|
149
|
+
...props
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
Text,
|
|
155
|
+
textVariants
|
|
156
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/kernel/components/ui/theme-toggle.tsx
|
|
22
|
+
var theme_toggle_exports = {};
|
|
23
|
+
__export(theme_toggle_exports, {
|
|
24
|
+
ThemeToggle: () => ThemeToggle
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(theme_toggle_exports);
|
|
27
|
+
var import_button = require("./button.js");
|
|
28
|
+
|
|
29
|
+
// src/utils/cn.ts
|
|
30
|
+
var import_clsx = require("clsx");
|
|
31
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
32
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
33
|
+
extend: {
|
|
34
|
+
classGroups: {
|
|
35
|
+
z: [
|
|
36
|
+
"z-content",
|
|
37
|
+
"z-nav",
|
|
38
|
+
"z-overlay",
|
|
39
|
+
"z-modal",
|
|
40
|
+
"z-search",
|
|
41
|
+
"z-toast",
|
|
42
|
+
"z-progress"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function cn(...inputs) {
|
|
48
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// src/kernel/components/ui/theme-toggle.tsx
|
|
52
|
+
var import_lucide_react = require("lucide-react");
|
|
53
|
+
var import_next_themes = require("next-themes");
|
|
54
|
+
var import_react = require("react");
|
|
55
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
|
+
var themeOrder = ["system", "light", "dark"];
|
|
57
|
+
function Icon({ theme }) {
|
|
58
|
+
if (theme === "light") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sun, { "aria-hidden": "true", size: 16 });
|
|
59
|
+
if (theme === "dark") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Moon, { "aria-hidden": "true", size: 16 });
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Monitor, { "aria-hidden": "true", size: 16 });
|
|
61
|
+
}
|
|
62
|
+
function normalizeTheme(theme) {
|
|
63
|
+
if (theme === "light" || theme === "dark") return theme;
|
|
64
|
+
return "system";
|
|
65
|
+
}
|
|
66
|
+
function ThemeToggle({
|
|
67
|
+
className,
|
|
68
|
+
onClick,
|
|
69
|
+
size = "sm",
|
|
70
|
+
title,
|
|
71
|
+
type = "button",
|
|
72
|
+
variant = "secondary",
|
|
73
|
+
...props
|
|
74
|
+
}) {
|
|
75
|
+
const { theme, setTheme } = (0, import_next_themes.useTheme)();
|
|
76
|
+
const [mounted, setMounted] = (0, import_react.useState)(false);
|
|
77
|
+
const activeTheme = normalizeTheme(theme);
|
|
78
|
+
const nextTheme = (0, import_react.useMemo)(() => {
|
|
79
|
+
const index = themeOrder.indexOf(activeTheme);
|
|
80
|
+
return themeOrder[(index + 1) % themeOrder.length] ?? "system";
|
|
81
|
+
}, [activeTheme]);
|
|
82
|
+
(0, import_react.useEffect)(() => {
|
|
83
|
+
setMounted(true);
|
|
84
|
+
}, []);
|
|
85
|
+
const label = mounted ? `Switch to ${nextTheme} theme` : "Theme preference";
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
import_button.Button,
|
|
88
|
+
{
|
|
89
|
+
"aria-label": props["aria-label"] ?? label,
|
|
90
|
+
className: cn("hover:border-stroke-1", className),
|
|
91
|
+
iconOnly: true,
|
|
92
|
+
onClick: (event) => {
|
|
93
|
+
onClick?.(event);
|
|
94
|
+
if (!event.defaultPrevented) setTheme(nextTheme);
|
|
95
|
+
},
|
|
96
|
+
size,
|
|
97
|
+
title: title ?? label,
|
|
98
|
+
type,
|
|
99
|
+
variant,
|
|
100
|
+
...props,
|
|
101
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { theme: mounted ? activeTheme : "system" })
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
+
0 && (module.exports = {
|
|
107
|
+
ThemeToggle
|
|
108
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps } from './button.cjs';
|
|
3
|
+
import 'class-variance-authority/types';
|
|
4
|
+
import 'class-variance-authority';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
type ThemeToggleProps = Omit<ButtonProps, "children" | "iconOnly" | "leftIcon" | "loading" | "rightIcon">;
|
|
8
|
+
declare function ThemeToggle({ className, onClick, size, title, type, variant, ...props }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { ThemeToggle, type ThemeToggleProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps } from './button.js';
|
|
3
|
+
import 'class-variance-authority/types';
|
|
4
|
+
import 'class-variance-authority';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
type ThemeToggleProps = Omit<ButtonProps, "children" | "iconOnly" | "leftIcon" | "loading" | "rightIcon">;
|
|
8
|
+
declare function ThemeToggle({ className, onClick, size, title, type, variant, ...props }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { ThemeToggle, type ThemeToggleProps };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/kernel/components/ui/theme-toggle.tsx
|
|
4
|
+
import { Button } from "./button.js";
|
|
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/theme-toggle.tsx
|
|
29
|
+
import { Monitor, Moon, Sun } from "lucide-react";
|
|
30
|
+
import { useTheme } from "next-themes";
|
|
31
|
+
import { useEffect, useMemo, useState } from "react";
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
var themeOrder = ["system", "light", "dark"];
|
|
34
|
+
function Icon({ theme }) {
|
|
35
|
+
if (theme === "light") return /* @__PURE__ */ jsx(Sun, { "aria-hidden": "true", size: 16 });
|
|
36
|
+
if (theme === "dark") return /* @__PURE__ */ jsx(Moon, { "aria-hidden": "true", size: 16 });
|
|
37
|
+
return /* @__PURE__ */ jsx(Monitor, { "aria-hidden": "true", size: 16 });
|
|
38
|
+
}
|
|
39
|
+
function normalizeTheme(theme) {
|
|
40
|
+
if (theme === "light" || theme === "dark") return theme;
|
|
41
|
+
return "system";
|
|
42
|
+
}
|
|
43
|
+
function ThemeToggle({
|
|
44
|
+
className,
|
|
45
|
+
onClick,
|
|
46
|
+
size = "sm",
|
|
47
|
+
title,
|
|
48
|
+
type = "button",
|
|
49
|
+
variant = "secondary",
|
|
50
|
+
...props
|
|
51
|
+
}) {
|
|
52
|
+
const { theme, setTheme } = useTheme();
|
|
53
|
+
const [mounted, setMounted] = useState(false);
|
|
54
|
+
const activeTheme = normalizeTheme(theme);
|
|
55
|
+
const nextTheme = useMemo(() => {
|
|
56
|
+
const index = themeOrder.indexOf(activeTheme);
|
|
57
|
+
return themeOrder[(index + 1) % themeOrder.length] ?? "system";
|
|
58
|
+
}, [activeTheme]);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
setMounted(true);
|
|
61
|
+
}, []);
|
|
62
|
+
const label = mounted ? `Switch to ${nextTheme} theme` : "Theme preference";
|
|
63
|
+
return /* @__PURE__ */ jsx(
|
|
64
|
+
Button,
|
|
65
|
+
{
|
|
66
|
+
"aria-label": props["aria-label"] ?? label,
|
|
67
|
+
className: cn("hover:border-stroke-1", className),
|
|
68
|
+
iconOnly: true,
|
|
69
|
+
onClick: (event) => {
|
|
70
|
+
onClick?.(event);
|
|
71
|
+
if (!event.defaultPrevented) setTheme(nextTheme);
|
|
72
|
+
},
|
|
73
|
+
size,
|
|
74
|
+
title: title ?? label,
|
|
75
|
+
type,
|
|
76
|
+
variant,
|
|
77
|
+
...props,
|
|
78
|
+
children: /* @__PURE__ */ jsx(Icon, { theme: mounted ? activeTheme : "system" })
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
ThemeToggle
|
|
84
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/kernel/components/ui/toast.tsx
|
|
22
|
+
var toast_exports = {};
|
|
23
|
+
__export(toast_exports, {
|
|
24
|
+
Toast: () => Toast,
|
|
25
|
+
ToastClose: () => ToastClose,
|
|
26
|
+
ToastContent: () => ToastContent,
|
|
27
|
+
ToastDescription: () => ToastDescription,
|
|
28
|
+
ToastPortal: () => ToastPortal,
|
|
29
|
+
ToastPositioner: () => ToastPositioner,
|
|
30
|
+
ToastProvider: () => ToastProvider,
|
|
31
|
+
ToastTitle: () => ToastTitle,
|
|
32
|
+
ToastViewport: () => ToastViewport,
|
|
33
|
+
createToastManager: () => createToastManager,
|
|
34
|
+
useToastManager: () => useToastManager
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(toast_exports);
|
|
37
|
+
var import_toast = require("@base-ui/react/toast");
|
|
38
|
+
|
|
39
|
+
// src/utils/cn.ts
|
|
40
|
+
var import_clsx = require("clsx");
|
|
41
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
42
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
43
|
+
extend: {
|
|
44
|
+
classGroups: {
|
|
45
|
+
z: [
|
|
46
|
+
"z-content",
|
|
47
|
+
"z-nav",
|
|
48
|
+
"z-overlay",
|
|
49
|
+
"z-modal",
|
|
50
|
+
"z-search",
|
|
51
|
+
"z-toast",
|
|
52
|
+
"z-progress"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
function cn(...inputs) {
|
|
58
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// src/kernel/components/ui/toast.tsx
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
|
+
var createToastManager = import_toast.Toast.createToastManager;
|
|
64
|
+
var useToastManager = import_toast.Toast.useToastManager;
|
|
65
|
+
function ToastProvider(props) {
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Provider, { ...props });
|
|
67
|
+
}
|
|
68
|
+
function ToastViewport({ className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
70
|
+
import_toast.Toast.Viewport,
|
|
71
|
+
{
|
|
72
|
+
className: cn(
|
|
73
|
+
"fixed bottom-4 right-4 z-50 grid w-[min(92vw,24rem)] gap-2",
|
|
74
|
+
className
|
|
75
|
+
),
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function Toast({ className, ...props }) {
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
import_toast.Toast.Root,
|
|
83
|
+
{
|
|
84
|
+
className: cn(
|
|
85
|
+
"rounded-dialog border border-stroke-2 bg-surface-1 p-4 text-foreground-1 shadow-lg outline-none",
|
|
86
|
+
className
|
|
87
|
+
),
|
|
88
|
+
...props
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function ToastContent({ className, ...props }) {
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Content, { className: cn("grid gap-1", className), ...props });
|
|
94
|
+
}
|
|
95
|
+
function ToastTitle({ className, ...props }) {
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
+
import_toast.Toast.Title,
|
|
98
|
+
{
|
|
99
|
+
className: cn("text-sm font-semibold text-foreground-1", className),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function ToastDescription({
|
|
105
|
+
className,
|
|
106
|
+
...props
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
109
|
+
import_toast.Toast.Description,
|
|
110
|
+
{
|
|
111
|
+
className: cn("text-sm leading-6 text-foreground-2", className),
|
|
112
|
+
...props
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
function ToastClose({ className, ...props }) {
|
|
117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
+
import_toast.Toast.Close,
|
|
119
|
+
{
|
|
120
|
+
className: cn(
|
|
121
|
+
"inline-flex size-8 items-center justify-center rounded-button text-foreground-3 transition-colors hover:bg-surface-hover hover:text-foreground-1",
|
|
122
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
123
|
+
className
|
|
124
|
+
),
|
|
125
|
+
...props
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function ToastPortal(props) {
|
|
130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Portal, { ...props });
|
|
131
|
+
}
|
|
132
|
+
function ToastPositioner({ className, ...props }) {
|
|
133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
|
+
import_toast.Toast.Positioner,
|
|
135
|
+
{
|
|
136
|
+
className: cn("z-50 outline-none", className),
|
|
137
|
+
...props
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
143
|
+
Toast,
|
|
144
|
+
ToastClose,
|
|
145
|
+
ToastContent,
|
|
146
|
+
ToastDescription,
|
|
147
|
+
ToastPortal,
|
|
148
|
+
ToastPositioner,
|
|
149
|
+
ToastProvider,
|
|
150
|
+
ToastTitle,
|
|
151
|
+
ToastViewport,
|
|
152
|
+
createToastManager,
|
|
153
|
+
useToastManager
|
|
154
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Toast as Toast$1 } from '@base-ui/react/toast';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const createToastManager: typeof Toast$1.createToastManager;
|
|
6
|
+
declare const useToastManager: typeof Toast$1.useToastManager;
|
|
7
|
+
type ToastProviderProps = ComponentPropsWithoutRef<typeof Toast$1.Provider>;
|
|
8
|
+
type ToastViewportProps = ComponentPropsWithoutRef<typeof Toast$1.Viewport>;
|
|
9
|
+
type ToastProps = ComponentPropsWithoutRef<typeof Toast$1.Root>;
|
|
10
|
+
type ToastContentProps = ComponentPropsWithoutRef<typeof Toast$1.Content>;
|
|
11
|
+
type ToastTitleProps = ComponentPropsWithoutRef<typeof Toast$1.Title>;
|
|
12
|
+
type ToastDescriptionProps = ComponentPropsWithoutRef<typeof Toast$1.Description>;
|
|
13
|
+
type ToastCloseProps = ComponentPropsWithoutRef<typeof Toast$1.Close>;
|
|
14
|
+
type ToastPortalProps = ComponentPropsWithoutRef<typeof Toast$1.Portal>;
|
|
15
|
+
type ToastPositionerProps = ComponentPropsWithoutRef<typeof Toast$1.Positioner>;
|
|
16
|
+
declare function ToastProvider(props: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ToastViewport({ className, ...props }: ToastViewportProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function Toast({ className, ...props }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function ToastContent({ className, ...props }: ToastContentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function ToastTitle({ className, ...props }: ToastTitleProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function ToastDescription({ className, ...props }: ToastDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function ToastClose({ className, ...props }: ToastCloseProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function ToastPortal(props: ToastPortalProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function ToastPositioner({ className, ...props }: ToastPositionerProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Toast, ToastClose, type ToastCloseProps, ToastContent, type ToastContentProps, ToastDescription, type ToastDescriptionProps, ToastPortal, type ToastPortalProps, ToastPositioner, type ToastPositionerProps, type ToastProps, ToastProvider, type ToastProviderProps, ToastTitle, type ToastTitleProps, ToastViewport, type ToastViewportProps, createToastManager, useToastManager };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Toast as Toast$1 } from '@base-ui/react/toast';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const createToastManager: typeof Toast$1.createToastManager;
|
|
6
|
+
declare const useToastManager: typeof Toast$1.useToastManager;
|
|
7
|
+
type ToastProviderProps = ComponentPropsWithoutRef<typeof Toast$1.Provider>;
|
|
8
|
+
type ToastViewportProps = ComponentPropsWithoutRef<typeof Toast$1.Viewport>;
|
|
9
|
+
type ToastProps = ComponentPropsWithoutRef<typeof Toast$1.Root>;
|
|
10
|
+
type ToastContentProps = ComponentPropsWithoutRef<typeof Toast$1.Content>;
|
|
11
|
+
type ToastTitleProps = ComponentPropsWithoutRef<typeof Toast$1.Title>;
|
|
12
|
+
type ToastDescriptionProps = ComponentPropsWithoutRef<typeof Toast$1.Description>;
|
|
13
|
+
type ToastCloseProps = ComponentPropsWithoutRef<typeof Toast$1.Close>;
|
|
14
|
+
type ToastPortalProps = ComponentPropsWithoutRef<typeof Toast$1.Portal>;
|
|
15
|
+
type ToastPositionerProps = ComponentPropsWithoutRef<typeof Toast$1.Positioner>;
|
|
16
|
+
declare function ToastProvider(props: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ToastViewport({ className, ...props }: ToastViewportProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function Toast({ className, ...props }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function ToastContent({ className, ...props }: ToastContentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function ToastTitle({ className, ...props }: ToastTitleProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function ToastDescription({ className, ...props }: ToastDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function ToastClose({ className, ...props }: ToastCloseProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function ToastPortal(props: ToastPortalProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function ToastPositioner({ className, ...props }: ToastPositionerProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Toast, ToastClose, type ToastCloseProps, ToastContent, type ToastContentProps, ToastDescription, type ToastDescriptionProps, ToastPortal, type ToastPortalProps, ToastPositioner, type ToastPositionerProps, type ToastProps, ToastProvider, type ToastProviderProps, ToastTitle, type ToastTitleProps, ToastViewport, type ToastViewportProps, createToastManager, useToastManager };
|