@publish.os/nextjs 0.0.1-alpha.5 → 0.0.1-alpha.7
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 -5
- package/compiler-assets/nextjs/defaults/app/globals.css +6 -0
- package/compiler-assets/nextjs/defaults/group/layout.tsx +23 -0
- package/compiler-assets/nextjs/defaults/group/leaf.tsx +48 -0
- package/compiler-assets/nextjs/defaults/group/page.tsx +50 -0
- package/compiler-assets/nextjs/defaults/project/next.config.mjs +45 -0
- package/compiler-assets/nextjs/defaults/project/postcss.config.mjs +5 -0
- package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +41 -0
- package/compiler-assets/nextjs/defaults/root/css/animation.css +90 -0
- package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +21 -0
- package/compiler-assets/nextjs/defaults/root/css/components/drawer.css +21 -0
- package/compiler-assets/nextjs/defaults/root/css/components/menu.css +23 -0
- package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +25 -0
- package/compiler-assets/nextjs/defaults/root/css/components/popover.css +17 -0
- package/compiler-assets/nextjs/defaults/root/css/components/select.css +23 -0
- package/compiler-assets/nextjs/defaults/root/css/components/toast.css +19 -0
- package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +15 -0
- package/compiler-assets/nextjs/defaults/root/css/layout.css +22 -0
- package/compiler-assets/nextjs/defaults/root/css/media.css +81 -0
- package/compiler-assets/nextjs/defaults/root/css/radius.css +49 -0
- package/compiler-assets/nextjs/defaults/root/css/scrollbar.css +43 -0
- package/compiler-assets/nextjs/defaults/root/css/shadow.css +145 -0
- package/compiler-assets/nextjs/defaults/root/css/typography.css +607 -0
- package/compiler-assets/nextjs/defaults/root/css/zindex.css +39 -0
- package/compiler-assets/nextjs/defaults/root/globals.css +191 -0
- package/compiler-assets/nextjs/defaults/root/layout.tsx +19 -0
- package/compiler-assets/nextjs/defaults/root/page.tsx +61 -0
- package/compiler-assets/nextjs/defaults/root/theme.css +50 -0
- package/compiler-assets/nextjs/defaults/source/_internal/logger.ts +21 -0
- package/compiler-assets/nextjs/shims/generated-group-layout.tsx +19 -0
- package/compiler-assets/nextjs/shims/generated-group-page.tsx +18 -0
- package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +21 -0
- package/compiler-assets/nextjs/shims/global-layout.tsx +134 -0
- package/compiler-assets/nextjs/shims/markdown-route.ts +29 -0
- package/compiler-assets/nextjs/shims/og-image-route.ts +18 -0
- package/compiler-assets/nextjs/shims/powered-by-footer.tsx +40 -0
- package/compiler-assets/nextjs/shims/providers.tsx +13 -0
- package/compiler-assets/nextjs/shims/proxy.ts +317 -0
- package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +77 -0
- package/compiler-assets/nextjs/shims/root-page.tsx +13 -0
- package/compiler-assets/nextjs/shims/theme-defaults.css +177 -0
- package/dist/{kernel/components/ui/button.d.cts → button-CFdx-ohV.d.ts} +1 -3
- package/dist/cache/tags.js +6 -14
- package/dist/compiler.d.ts +100 -0
- package/dist/compiler.js +13379 -0
- package/dist/config/createNextConfig.d.ts +2 -1
- package/dist/config/createNextConfig.js +16 -12
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +2 -0
- package/dist/index.d.ts +303 -15
- package/dist/index.js +30 -1196
- package/dist/kernel/components/blocks/AgentActions.d.ts +9 -3
- package/dist/kernel/components/blocks/AgentActions.js +114 -200
- package/dist/kernel/components/blocks/animated-icon-swap.js +4 -25
- package/dist/kernel/components/blocks/color-palette.js +107 -157
- package/dist/kernel/components/blocks/design-system-preview.d.ts +38 -6
- package/dist/kernel/components/blocks/design-system-preview.js +44 -52
- package/dist/kernel/components/blocks/link-playground.js +23 -71
- package/dist/kernel/components/blocks/logo-block.js +19 -48
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +1 -1
- package/dist/kernel/components/blocks/nav-breadcrumb.js +28 -52
- package/dist/kernel/components/blocks/navbar.d.ts +1 -1
- package/dist/kernel/components/blocks/navbar.js +14 -41
- package/dist/kernel/components/blocks/navigation-progress-playground.js +56 -149
- package/dist/kernel/components/blocks/navigation-progress.js +53 -157
- package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
- package/dist/kernel/components/blocks/next-prev.js +16 -42
- package/dist/kernel/components/blocks/page-list.d.ts +1 -1
- package/dist/kernel/components/blocks/page-list.js +11 -16
- package/dist/kernel/components/blocks/search.d.ts +13 -2
- package/dist/kernel/components/blocks/search.js +116 -247
- package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
- package/dist/kernel/components/blocks/sidebar-node.js +56 -95
- package/dist/kernel/components/blocks/sidebar.d.ts +5 -23
- package/dist/kernel/components/blocks/sidebar.js +35 -103
- package/dist/kernel/components/blocks/theme-toggle.d.ts +7 -3
- package/dist/kernel/components/blocks/theme-toggle.js +2 -2
- package/dist/kernel/components/blocks/toc.js +42 -178
- package/dist/kernel/components/mdx/components/blockquote.js +3 -24
- package/dist/kernel/components/mdx/components/callout.d.ts +1 -1
- package/dist/kernel/components/mdx/components/callout.js +15 -47
- package/dist/kernel/components/mdx/components/code-block.js +2 -2
- package/dist/kernel/components/mdx/components/figure-caption.js +6 -24
- package/dist/kernel/components/mdx/components/figure.js +9 -36
- package/dist/kernel/components/mdx/components/footnotes.js +3 -24
- package/dist/kernel/components/mdx/components/heading-copy-link.js +13 -37
- package/dist/kernel/components/mdx/components/heading.d.ts +8 -3
- package/dist/kernel/components/mdx/components/heading.js +32 -116
- package/dist/kernel/components/mdx/components/hr.d.ts +5 -3
- package/dist/kernel/components/mdx/components/hr.js +2 -2
- package/dist/kernel/components/mdx/components/image-zoom.js +2 -3
- package/dist/kernel/components/mdx/components/image.js +23 -63
- package/dist/kernel/components/mdx/components/inline-code.js +3 -24
- package/dist/kernel/components/mdx/components/kbd.d.ts +9 -4
- package/dist/kernel/components/mdx/components/kbd.js +2 -2
- package/dist/kernel/components/mdx/components/link.d.ts +1 -2
- package/dist/kernel/components/mdx/components/link.js +2 -2
- package/dist/kernel/components/mdx/components/paragraph.js +13 -41
- package/dist/kernel/components/mdx/components/pre.js +3 -24
- package/dist/kernel/components/mdx/components/strikethrough.js +6 -24
- package/dist/kernel/components/mdx/components/table.js +2 -2
- package/dist/kernel/components/mdx/components/task-list.js +6 -28
- package/dist/kernel/components/mdx/components/video-player.js +53 -88
- package/dist/kernel/components/mdx/components/video.js +27 -75
- package/dist/kernel/components/mdx/error-boundary.d.ts +1 -1
- package/dist/kernel/components/mdx/error-boundary.js +12 -15
- package/dist/kernel/components/mdx/error-fallback.js +4 -4
- package/dist/kernel/components/mdx/mdx.d.ts +68 -11
- package/dist/kernel/components/mdx/mdx.js +29 -29
- package/dist/kernel/components/mdx/rehype-heading-ids.js +11 -67
- package/dist/kernel/components/mdx/types.d.ts +1 -1
- package/dist/kernel/components/ui/accordion.js +3 -26
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +26 -8
- package/dist/kernel/components/ui/breadcrumb-trail.js +32 -79
- package/dist/kernel/components/ui/breadcrumb.d.ts +2 -6
- package/dist/kernel/components/ui/breadcrumb.js +21 -70
- package/dist/kernel/components/ui/button-group.d.ts +4 -3
- package/dist/kernel/components/ui/button-group.js +7 -30
- package/dist/kernel/components/ui/button.js +13 -36
- package/dist/kernel/components/ui/card.d.ts +2 -2
- package/dist/kernel/components/ui/card.js +2 -23
- package/dist/kernel/components/ui/dialog.d.ts +9 -9
- package/dist/kernel/components/ui/dialog.js +15 -33
- package/dist/kernel/components/ui/drawer.d.ts +10 -10
- package/dist/kernel/components/ui/drawer.js +15 -33
- package/dist/kernel/components/ui/input.js +6 -30
- package/dist/kernel/components/ui/kbd.js +10 -31
- package/dist/kernel/components/ui/link.d.ts +1 -1
- package/dist/kernel/components/ui/link.js +53 -104
- package/dist/kernel/components/ui/menu.d.ts +21 -21
- package/dist/kernel/components/ui/menu.js +14 -36
- package/dist/kernel/components/ui/meta-key.d.ts +9 -4
- package/dist/kernel/components/ui/meta-key.js +2 -2
- package/dist/kernel/components/ui/navigation-menu.d.ts +14 -14
- package/dist/kernel/components/ui/navigation-menu.js +9 -30
- package/dist/kernel/components/ui/popover.d.ts +10 -10
- package/dist/kernel/components/ui/popover.js +13 -34
- package/dist/kernel/components/ui/progress.js +2 -25
- package/dist/kernel/components/ui/scroll-area.js +39 -118
- package/dist/kernel/components/ui/select.d.ts +15 -15
- package/dist/kernel/components/ui/select.js +19 -35
- package/dist/kernel/components/ui/separator.js +2 -25
- package/dist/kernel/components/ui/table.js +2 -23
- package/dist/kernel/components/ui/tabs.js +39 -99
- package/dist/kernel/components/ui/tag.d.ts +2 -2
- package/dist/kernel/components/ui/tag.js +4 -25
- package/dist/kernel/components/ui/text.d.ts +2 -2
- package/dist/kernel/components/ui/text.js +112 -131
- package/dist/kernel/components/ui/theme-toggle.d.ts +18 -4
- package/dist/kernel/components/ui/theme-toggle.js +18 -44
- package/dist/kernel/components/ui/toast.d.ts +10 -10
- package/dist/kernel/components/ui/toast.js +13 -35
- package/dist/kernel/components/ui/tooltip.d.ts +8 -8
- package/dist/kernel/components/ui/tooltip.js +9 -30
- package/dist/kernel/defaults.registry.d.ts +61 -70
- package/dist/kernel/defaults.registry.js +61 -69
- package/dist/kernel/framework-icons.d.ts +1 -0
- package/dist/kernel/framework-icons.js +39 -0
- package/dist/kernel/routes/agent/markdown.js +36 -65
- package/dist/kernel/routes/layouts/group.d.ts +1 -1
- package/dist/kernel/routes/layouts/group.js +20 -109
- package/dist/kernel/routes/metadata/feed.d.ts +1 -2
- package/dist/kernel/routes/metadata/feed.js +46 -127
- package/dist/kernel/routes/metadata/llms.d.ts +1 -2
- package/dist/kernel/routes/metadata/llms.js +42 -120
- package/dist/kernel/routes/metadata/og-image.d.ts +11 -1
- package/dist/kernel/routes/metadata/og-image.js +264 -198
- package/dist/kernel/routes/metadata/robots.d.ts +1 -2
- package/dist/kernel/routes/metadata/robots.js +21 -90
- package/dist/kernel/routes/metadata/sitemap.d.ts +1 -2
- package/dist/kernel/routes/metadata/sitemap.js +36 -102
- package/dist/kernel/routes/pages/group.d.ts +1 -1
- package/dist/kernel/routes/pages/group.js +42 -137
- package/dist/kernel/routes/pages/leaf.d.ts +1 -1
- package/dist/kernel/routes/pages/leaf.js +74 -213
- package/dist/kernel/routes/pages/root.d.ts +1 -1
- package/dist/kernel/routes/pages/root.js +37 -108
- package/dist/keyboard-shortcuts.js +69 -141
- package/dist/{kernel/components/ui/link.d.cts → link-CYaCRDb6.d.ts} +9 -5
- package/dist/resolvers/manifest-resolver.d.ts +3 -3
- package/dist/resolvers/manifest-resolver.js +15 -21
- package/dist/{kernel/routes/metadata/og-image.d.cts → route-metadata-og-image-BeKKFHg7.d.ts} +12 -16
- package/dist/search.d.ts +81 -4
- package/dist/search.js +124 -195
- package/dist/{kernel/components/blocks/sidebar.d.cts → sidebar-types-Bgchdfd6.d.ts} +2 -10
- package/dist/theme-scope.d.ts +15 -0
- package/dist/theme-scope.js +23 -0
- package/dist/types-B_b3C0U6.d.ts +63 -0
- package/dist/types-CIwwieNw.d.ts +127 -0
- package/dist/types-DHBm7-j6.d.ts +57 -0
- package/dist/types-sM2g9nW0.d.ts +12 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.js +1 -1
- package/dist/utils/cn.d.ts +5 -9
- package/dist/utils/cn.js +13 -7
- package/dist/utils/heading-ids.js +20 -47
- package/dist/utils/pretty-date.js +7 -13
- package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.dark.png +0 -0
- package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.png +0 -0
- package/init/seed/minimal/publish.os/docs/content/get-started.mdx +54 -0
- package/init/seed/minimal/publish.os/docs/content/groups.mdx +31 -0
- package/init/seed/minimal/publish.os/docs/content/theme.mdx +64 -0
- package/init/seed/minimal/publish.os/publish.os.config.json +21 -0
- package/init/seed/minimal/publish.os/theme.css +47 -0
- package/init/seed/minimal/seed.json +13 -0
- package/package.json +470 -40
- package/release/{package.json → app/lucide/package.json} +14 -7
- package/release/app/lucide/pnpm-lock.yaml.template +2905 -0
- package/release/app/lucide/pnpm-workspace.yaml +11 -0
- package/release/app/phosphor/package.json +30 -0
- package/release/app/phosphor/pnpm-lock.yaml.template +2908 -0
- package/release/app/phosphor/pnpm-workspace.yaml +11 -0
- package/release/app/tabler/package.json +30 -0
- package/release/app/tabler/pnpm-lock.yaml.template +2911 -0
- package/release/app/tabler/pnpm-workspace.yaml +11 -0
- package/release/compiler/package.json +20 -0
- package/release/compiler/pnpm-lock.yaml.template +2432 -0
- package/release/compiler/pnpm-workspace.yaml +11 -0
- package/release/release.json +31 -7
- package/dist/cache/tags.cjs +0 -79
- package/dist/cache/tags.d.cts +0 -13
- package/dist/config/createNextConfig.cjs +0 -52
- package/dist/config/createNextConfig.d.cts +0 -8
- package/dist/config.cjs +0 -78
- package/dist/config.d.cts +0 -101
- package/dist/config.d.ts +0 -101
- package/dist/config.js +0 -48
- package/dist/index.cjs +0 -1266
- package/dist/index.d.cts +0 -18
- package/dist/kernel/components/blocks/AgentActions.cjs +0 -425
- package/dist/kernel/components/blocks/AgentActions.d.cts +0 -52
- package/dist/kernel/components/blocks/animated-icon-swap.cjs +0 -101
- package/dist/kernel/components/blocks/animated-icon-swap.d.cts +0 -16
- package/dist/kernel/components/blocks/color-palette.cjs +0 -413
- package/dist/kernel/components/blocks/color-palette.d.cts +0 -7
- package/dist/kernel/components/blocks/design-system-preview.cjs +0 -593
- package/dist/kernel/components/blocks/design-system-preview.d.cts +0 -29
- package/dist/kernel/components/blocks/link-playground.cjs +0 -816
- package/dist/kernel/components/blocks/link-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/logo-block.cjs +0 -156
- package/dist/kernel/components/blocks/logo-block.d.cts +0 -21
- package/dist/kernel/components/blocks/nav-breadcrumb.cjs +0 -122
- package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +0 -11
- package/dist/kernel/components/blocks/navbar.cjs +0 -154
- package/dist/kernel/components/blocks/navbar.d.cts +0 -16
- package/dist/kernel/components/blocks/navigation-progress-playground.cjs +0 -735
- package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +0 -5
- package/dist/kernel/components/blocks/navigation-progress.cjs +0 -270
- package/dist/kernel/components/blocks/navigation-progress.d.cts +0 -16
- package/dist/kernel/components/blocks/next-prev.cjs +0 -142
- package/dist/kernel/components/blocks/next-prev.d.cts +0 -11
- package/dist/kernel/components/blocks/page-list.cjs +0 -59
- package/dist/kernel/components/blocks/page-list.d.cts +0 -11
- package/dist/kernel/components/blocks/search.cjs +0 -717
- package/dist/kernel/components/blocks/search.d.cts +0 -77
- package/dist/kernel/components/blocks/sidebar-node.cjs +0 -309
- package/dist/kernel/components/blocks/sidebar-node.d.cts +0 -8
- package/dist/kernel/components/blocks/sidebar.cjs +0 -317
- package/dist/kernel/components/blocks/theme-toggle.cjs +0 -31
- package/dist/kernel/components/blocks/theme-toggle.d.cts +0 -6
- package/dist/kernel/components/blocks/toc.cjs +0 -356
- package/dist/kernel/components/blocks/toc.d.cts +0 -10
- package/dist/kernel/components/mdx/components/blockquote.cjs +0 -66
- package/dist/kernel/components/mdx/components/blockquote.d.cts +0 -6
- package/dist/kernel/components/mdx/components/callout.cjs +0 -137
- package/dist/kernel/components/mdx/components/callout.d.cts +0 -18
- package/dist/kernel/components/mdx/components/code-block.cjs +0 -39
- package/dist/kernel/components/mdx/components/code-block.d.cts +0 -9
- package/dist/kernel/components/mdx/components/figure-caption.cjs +0 -63
- package/dist/kernel/components/mdx/components/figure-caption.d.cts +0 -6
- package/dist/kernel/components/mdx/components/figure.cjs +0 -78
- package/dist/kernel/components/mdx/components/figure.d.cts +0 -10
- package/dist/kernel/components/mdx/components/footnotes.cjs +0 -66
- package/dist/kernel/components/mdx/components/footnotes.d.cts +0 -6
- package/dist/kernel/components/mdx/components/heading-copy-link.cjs +0 -108
- package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +0 -23
- package/dist/kernel/components/mdx/components/heading.cjs +0 -166
- package/dist/kernel/components/mdx/components/heading.d.cts +0 -8
- package/dist/kernel/components/mdx/components/hr.cjs +0 -34
- package/dist/kernel/components/mdx/components/hr.d.cts +0 -9
- package/dist/kernel/components/mdx/components/image-zoom.cjs +0 -49
- package/dist/kernel/components/mdx/components/image-zoom.d.cts +0 -10
- package/dist/kernel/components/mdx/components/image.cjs +0 -192
- package/dist/kernel/components/mdx/components/image.d.cts +0 -21
- package/dist/kernel/components/mdx/components/inline-code.cjs +0 -66
- package/dist/kernel/components/mdx/components/inline-code.d.cts +0 -6
- package/dist/kernel/components/mdx/components/kbd.cjs +0 -34
- package/dist/kernel/components/mdx/components/kbd.d.cts +0 -10
- package/dist/kernel/components/mdx/components/link.cjs +0 -49
- package/dist/kernel/components/mdx/components/link.d.cts +0 -11
- package/dist/kernel/components/mdx/components/paragraph.cjs +0 -87
- package/dist/kernel/components/mdx/components/paragraph.d.cts +0 -5
- package/dist/kernel/components/mdx/components/pre.cjs +0 -66
- package/dist/kernel/components/mdx/components/pre.d.cts +0 -6
- package/dist/kernel/components/mdx/components/strikethrough.cjs +0 -63
- package/dist/kernel/components/mdx/components/strikethrough.d.cts +0 -6
- package/dist/kernel/components/mdx/components/table.cjs +0 -59
- package/dist/kernel/components/mdx/components/table.d.cts +0 -10
- package/dist/kernel/components/mdx/components/task-list.cjs +0 -88
- package/dist/kernel/components/mdx/components/task-list.d.cts +0 -8
- package/dist/kernel/components/mdx/components/video-player.cjs +0 -173
- package/dist/kernel/components/mdx/components/video-player.d.cts +0 -18
- package/dist/kernel/components/mdx/components/video.cjs +0 -185
- package/dist/kernel/components/mdx/components/video.d.cts +0 -15
- package/dist/kernel/components/mdx/error-boundary.cjs +0 -62
- package/dist/kernel/components/mdx/error-boundary.d.cts +0 -8
- package/dist/kernel/components/mdx/error-fallback.cjs +0 -58
- package/dist/kernel/components/mdx/error-fallback.d.cts +0 -9
- package/dist/kernel/components/mdx/mdx.cjs +0 -141
- package/dist/kernel/components/mdx/mdx.d.cts +0 -22
- package/dist/kernel/components/mdx/rehype-heading-ids.cjs +0 -113
- package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +0 -10
- package/dist/kernel/components/mdx/types.cjs +0 -18
- package/dist/kernel/components/mdx/types.d.cts +0 -18
- package/dist/kernel/components/ui/accordion.cjs +0 -104
- package/dist/kernel/components/ui/accordion.d.cts +0 -16
- package/dist/kernel/components/ui/breadcrumb-trail.cjs +0 -238
- package/dist/kernel/components/ui/breadcrumb-trail.d.cts +0 -13
- package/dist/kernel/components/ui/breadcrumb.cjs +0 -399
- package/dist/kernel/components/ui/breadcrumb.d.cts +0 -52
- package/dist/kernel/components/ui/button-group.cjs +0 -143
- package/dist/kernel/components/ui/button-group.d.cts +0 -19
- package/dist/kernel/components/ui/button.cjs +0 -139
- package/dist/kernel/components/ui/card.cjs +0 -133
- package/dist/kernel/components/ui/card.d.cts +0 -17
- package/dist/kernel/components/ui/dialog.cjs +0 -149
- package/dist/kernel/components/ui/dialog.d.cts +0 -22
- package/dist/kernel/components/ui/drawer.cjs +0 -163
- package/dist/kernel/components/ui/drawer.d.cts +0 -24
- package/dist/kernel/components/ui/input.cjs +0 -96
- package/dist/kernel/components/ui/input.d.cts +0 -18
- package/dist/kernel/components/ui/kbd.cjs +0 -105
- package/dist/kernel/components/ui/kbd.d.cts +0 -13
- package/dist/kernel/components/ui/link.cjs +0 -253
- package/dist/kernel/components/ui/menu.cjs +0 -301
- package/dist/kernel/components/ui/menu.d.cts +0 -70
- package/dist/kernel/components/ui/meta-key.cjs +0 -34
- package/dist/kernel/components/ui/meta-key.d.cts +0 -12
- package/dist/kernel/components/ui/navigation-menu.cjs +0 -253
- package/dist/kernel/components/ui/navigation-menu.d.cts +0 -47
- package/dist/kernel/components/ui/popover.cjs +0 -168
- package/dist/kernel/components/ui/popover.d.cts +0 -24
- package/dist/kernel/components/ui/progress.cjs +0 -112
- package/dist/kernel/components/ui/progress.d.cts +0 -16
- package/dist/kernel/components/ui/scroll-area.cjs +0 -413
- package/dist/kernel/components/ui/scroll-area.d.cts +0 -58
- package/dist/kernel/components/ui/select.cjs +0 -244
- package/dist/kernel/components/ui/select.d.cts +0 -40
- package/dist/kernel/components/ui/separator.cjs +0 -73
- package/dist/kernel/components/ui/separator.d.cts +0 -8
- package/dist/kernel/components/ui/table.cjs +0 -131
- package/dist/kernel/components/ui/table.d.cts +0 -11
- package/dist/kernel/components/ui/tabs.cjs +0 -450
- package/dist/kernel/components/ui/tabs.d.cts +0 -82
- package/dist/kernel/components/ui/tag.cjs +0 -104
- package/dist/kernel/components/ui/tag.d.cts +0 -14
- package/dist/kernel/components/ui/text.cjs +0 -184
- package/dist/kernel/components/ui/text.d.cts +0 -17
- package/dist/kernel/components/ui/theme-toggle.cjs +0 -108
- package/dist/kernel/components/ui/theme-toggle.d.cts +0 -10
- package/dist/kernel/components/ui/toast.cjs +0 -154
- package/dist/kernel/components/ui/toast.d.cts +0 -26
- package/dist/kernel/components/ui/tooltip.cjs +0 -127
- package/dist/kernel/components/ui/tooltip.d.cts +0 -20
- package/dist/kernel/defaults.registry.cjs +0 -541
- package/dist/kernel/defaults.registry.d.cts +0 -469
- package/dist/kernel/routes/agent/markdown.cjs +0 -202
- package/dist/kernel/routes/agent/markdown.d.cts +0 -58
- package/dist/kernel/routes/layouts/group.cjs +0 -181
- package/dist/kernel/routes/layouts/group.d.cts +0 -20
- package/dist/kernel/routes/metadata/feed.cjs +0 -293
- package/dist/kernel/routes/metadata/feed.d.cts +0 -20
- package/dist/kernel/routes/metadata/llms.cjs +0 -239
- package/dist/kernel/routes/metadata/llms.d.cts +0 -26
- package/dist/kernel/routes/metadata/og-image.cjs +0 -630
- package/dist/kernel/routes/metadata/robots.cjs +0 -148
- package/dist/kernel/routes/metadata/robots.d.cts +0 -6
- package/dist/kernel/routes/metadata/sitemap.cjs +0 -192
- package/dist/kernel/routes/metadata/sitemap.d.cts +0 -8
- package/dist/kernel/routes/pages/group.cjs +0 -263
- package/dist/kernel/routes/pages/group.d.cts +0 -17
- package/dist/kernel/routes/pages/leaf.cjs +0 -421
- package/dist/kernel/routes/pages/leaf.d.cts +0 -36
- package/dist/kernel/routes/pages/root.cjs +0 -229
- package/dist/kernel/routes/pages/root.d.cts +0 -16
- package/dist/keyboard-shortcuts.cjs +0 -345
- package/dist/keyboard-shortcuts.d.cts +0 -34
- package/dist/resolvers/manifest-resolver.cjs +0 -111
- package/dist/resolvers/manifest-resolver.d.cts +0 -13
- package/dist/search.cjs +0 -411
- package/dist/search.d.cts +0 -20
- package/dist/types.cjs +0 -30
- package/dist/types.d.cts +0 -269
- package/dist/utils/cn.cjs +0 -49
- package/dist/utils/cn.d.cts +0 -15
- package/dist/utils/heading-ids.cjs +0 -119
- package/dist/utils/heading-ids.d.cts +0 -15
- package/dist/utils/pretty-date.cjs +0 -55
- package/dist/utils/pretty-date.d.cts +0 -6
- package/release/pnpm-lock.yaml +0 -1215
|
@@ -1,450 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/kernel/components/ui/tabs.tsx
|
|
32
|
-
var tabs_exports = {};
|
|
33
|
-
__export(tabs_exports, {
|
|
34
|
-
NavigationTabs: () => NavigationTabs,
|
|
35
|
-
NavigationTabsIndicator: () => NavigationTabsIndicator,
|
|
36
|
-
NavigationTabsLink: () => NavigationTabsLink,
|
|
37
|
-
NavigationTabsList: () => NavigationTabsList,
|
|
38
|
-
NavigationTabsTab: () => NavigationTabsTab,
|
|
39
|
-
Tabs: () => Tabs,
|
|
40
|
-
TabsIndicator: () => TabsIndicator,
|
|
41
|
-
TabsList: () => TabsList,
|
|
42
|
-
TabsPanel: () => TabsPanel,
|
|
43
|
-
TabsTab: () => TabsTab,
|
|
44
|
-
tabsIndicatorVariants: () => tabsIndicatorVariants,
|
|
45
|
-
tabsListVariants: () => tabsListVariants,
|
|
46
|
-
tabsTabVariants: () => tabsTabVariants
|
|
47
|
-
});
|
|
48
|
-
module.exports = __toCommonJS(tabs_exports);
|
|
49
|
-
var import_tabs = require("@base-ui/react/tabs");
|
|
50
|
-
|
|
51
|
-
// src/utils/cn.ts
|
|
52
|
-
var import_clsx = require("clsx");
|
|
53
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
54
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
55
|
-
extend: {
|
|
56
|
-
classGroups: {
|
|
57
|
-
z: [
|
|
58
|
-
"z-content",
|
|
59
|
-
"z-nav",
|
|
60
|
-
"z-overlay",
|
|
61
|
-
"z-modal",
|
|
62
|
-
"z-search",
|
|
63
|
-
"z-toast",
|
|
64
|
-
"z-progress"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
function cn(...inputs) {
|
|
70
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// src/kernel/components/ui/tabs.tsx
|
|
74
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
75
|
-
var import_link = __toESM(require("next/link"), 1);
|
|
76
|
-
var import_react = require("react");
|
|
77
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
78
|
-
var tabsListVariants = (0, import_class_variance_authority.cva)("relative inline-flex items-center", {
|
|
79
|
-
variants: {
|
|
80
|
-
variant: {
|
|
81
|
-
base: "flex-wrap gap-1 rounded-button border border-stroke-2 bg-surface-2 p-1",
|
|
82
|
-
button: "flex-wrap gap-1 rounded-button",
|
|
83
|
-
underline: "gap-5 border-stroke-3 data-[orientation=horizontal]:border-b data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch data-[orientation=vertical]:border-r"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
defaultVariants: {
|
|
87
|
-
variant: "base"
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var tabsTabVariants = (0, import_class_variance_authority.cva)(
|
|
91
|
-
[
|
|
92
|
-
"relative inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap text-sm font-medium leading-none outline-none",
|
|
93
|
-
"!no-underline hover:!no-underline active:!no-underline",
|
|
94
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
95
|
-
"disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
96
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
97
|
-
].join(" "),
|
|
98
|
-
{
|
|
99
|
-
variants: {
|
|
100
|
-
variant: {
|
|
101
|
-
base: [
|
|
102
|
-
"rounded-[max(calc(var(--radius-button)_-_0.25rem),0px)] px-3 py-1.5 text-foreground-2 transition-colors duration-150 ease-out",
|
|
103
|
-
"hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1",
|
|
104
|
-
"active:not-data-disabled:bg-surface-active",
|
|
105
|
-
"data-active:bg-surface-active data-active:text-foreground-1",
|
|
106
|
-
"data-[state=path-active]:bg-surface-active data-[state=path-active]:text-foreground-1"
|
|
107
|
-
].join(" "),
|
|
108
|
-
button: [
|
|
109
|
-
"h-8 rounded-button border border-transparent bg-transparent px-3 text-foreground-2 transition-[background-color,border-color,color,box-shadow] duration-150 ease-out",
|
|
110
|
-
"hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1",
|
|
111
|
-
"active:not-data-disabled:bg-surface-active",
|
|
112
|
-
"data-active:bg-accent-soft-hover data-active:text-accent-1",
|
|
113
|
-
"data-[state=path-active]:bg-accent-soft-hover data-[state=path-active]:text-accent-1"
|
|
114
|
-
].join(" "),
|
|
115
|
-
underline: [
|
|
116
|
-
"rounded-button px-0 py-2 text-foreground-3 transition-colors duration-150 ease-out",
|
|
117
|
-
"hover:not-data-disabled:text-foreground-1 active:not-data-disabled:text-foreground-1",
|
|
118
|
-
"data-active:text-foreground-1 data-[state=path-active]:text-foreground-1",
|
|
119
|
-
"data-[orientation=vertical]:justify-start data-[orientation=vertical]:py-1.5 data-[orientation=vertical]:pr-4"
|
|
120
|
-
].join(" ")
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
defaultVariants: {
|
|
124
|
-
variant: "base"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
var tabsIndicatorVariants = (0, import_class_variance_authority.cva)("pointer-events-none absolute", {
|
|
129
|
-
variants: {
|
|
130
|
-
animation: {
|
|
131
|
-
grow: "",
|
|
132
|
-
slide: ""
|
|
133
|
-
},
|
|
134
|
-
variant: {
|
|
135
|
-
base: "hidden",
|
|
136
|
-
button: "hidden",
|
|
137
|
-
underline: "overflow-hidden rounded-full"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
compoundVariants: [
|
|
141
|
-
{
|
|
142
|
-
animation: "slide",
|
|
143
|
-
className: [
|
|
144
|
-
"bg-[var(--tabs-indicator-color,var(--accent-1))]",
|
|
145
|
-
"transition-[clip-path] duration-200 ease-[cubic-bezier(0.77,0,0.175,1)] motion-reduce:transition-none",
|
|
146
|
-
"data-[orientation=horizontal]:inset-x-0 data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-0.5",
|
|
147
|
-
"data-[orientation=vertical]:inset-y-0 data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-0.5"
|
|
148
|
-
].join(" "),
|
|
149
|
-
variant: "underline"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
animation: "grow",
|
|
153
|
-
className: [
|
|
154
|
-
"data-[orientation=horizontal]:inset-x-0 data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-0.5",
|
|
155
|
-
"data-[orientation=vertical]:inset-y-0 data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-0.5"
|
|
156
|
-
].join(" "),
|
|
157
|
-
variant: "underline"
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
defaultVariants: {
|
|
161
|
-
animation: "slide",
|
|
162
|
-
variant: "base"
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
var tabsGrowIndicatorClassName = [
|
|
166
|
-
"absolute rounded-full bg-[var(--tabs-indicator-color,var(--accent-1))]",
|
|
167
|
-
"data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-full",
|
|
168
|
-
"data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-full"
|
|
169
|
-
].join(" ");
|
|
170
|
-
var TabsStyleContext = (0, import_react.createContext)(null);
|
|
171
|
-
function useTabsStyle() {
|
|
172
|
-
return (0, import_react.use)(TabsStyleContext) ?? {
|
|
173
|
-
indicatorAnimation: "slide",
|
|
174
|
-
variant: "base"
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function resolveTabsVariant(variant) {
|
|
178
|
-
return variant ?? "base";
|
|
179
|
-
}
|
|
180
|
-
function mergeBaseUiClassName(className, ...classes) {
|
|
181
|
-
if (typeof className === "function") {
|
|
182
|
-
return (state) => cn(...classes, className(state));
|
|
183
|
-
}
|
|
184
|
-
return cn(...classes, className);
|
|
185
|
-
}
|
|
186
|
-
function cssColorValue(color) {
|
|
187
|
-
if (!color) return void 0;
|
|
188
|
-
if (color === "accent") return "var(--accent-1)";
|
|
189
|
-
if (color === "current") return "currentColor";
|
|
190
|
-
if (color === "foreground") return "var(--foreground-1)";
|
|
191
|
-
if (color.startsWith("var(")) return color;
|
|
192
|
-
if (color.startsWith("--")) return `var(${color})`;
|
|
193
|
-
return color;
|
|
194
|
-
}
|
|
195
|
-
function mergeTabsStyle(style, indicatorColor) {
|
|
196
|
-
const color = cssColorValue(indicatorColor);
|
|
197
|
-
if (!color) return style;
|
|
198
|
-
if (typeof style === "function") {
|
|
199
|
-
return (state) => ({
|
|
200
|
-
...style(state),
|
|
201
|
-
"--tabs-indicator-color": color
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
return {
|
|
205
|
-
...style,
|
|
206
|
-
"--tabs-indicator-color": color
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function tabsSlideClipPath(orientation) {
|
|
210
|
-
if (orientation === "vertical") {
|
|
211
|
-
return "inset(var(--active-tab-top) 0 calc(100% - var(--active-tab-top) - var(--active-tab-height)) 0)";
|
|
212
|
-
}
|
|
213
|
-
return "inset(0 calc(100% - var(--active-tab-left) - var(--active-tab-width)) 0 var(--active-tab-left))";
|
|
214
|
-
}
|
|
215
|
-
function mergeTabsIndicatorStyle(style, indicatorColor, indicatorAnimation) {
|
|
216
|
-
const mergedStyle = mergeTabsStyle(style, indicatorColor);
|
|
217
|
-
if (indicatorAnimation !== "slide") return mergedStyle;
|
|
218
|
-
if (typeof mergedStyle === "function") {
|
|
219
|
-
return (state) => ({
|
|
220
|
-
...mergedStyle(state),
|
|
221
|
-
clipPath: tabsSlideClipPath(state.orientation)
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
return (state) => ({
|
|
225
|
-
...mergedStyle,
|
|
226
|
-
clipPath: tabsSlideClipPath(state.orientation)
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
function mergeRel(rel) {
|
|
230
|
-
const values = new Set((rel ?? "").split(/\s+/).filter(Boolean));
|
|
231
|
-
values.add("noopener");
|
|
232
|
-
values.add("noreferrer");
|
|
233
|
-
return Array.from(values).join(" ");
|
|
234
|
-
}
|
|
235
|
-
function TabsGrowIndicator({
|
|
236
|
-
indicatorProps,
|
|
237
|
-
state
|
|
238
|
-
}) {
|
|
239
|
-
const indicatorRef = (0, import_react.useRef)(null);
|
|
240
|
-
const activeLeft = state.activeTabPosition?.left;
|
|
241
|
-
const activeTop = state.activeTabPosition?.top;
|
|
242
|
-
const activeWidth = state.activeTabSize?.width;
|
|
243
|
-
const activeHeight = state.activeTabSize?.height;
|
|
244
|
-
(0, import_react.useLayoutEffect)(() => {
|
|
245
|
-
const indicator = indicatorRef.current;
|
|
246
|
-
if (!indicator || activeLeft == null || activeTop == null || activeWidth == null || activeHeight == null || typeof indicator.animate !== "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
const isVertical = state.orientation === "vertical";
|
|
250
|
-
const animation = indicator.animate(
|
|
251
|
-
[
|
|
252
|
-
{
|
|
253
|
-
opacity: 0.7,
|
|
254
|
-
transform: isVertical ? "scaleY(0.35)" : "scaleX(0.35)"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
opacity: 1,
|
|
258
|
-
transform: isVertical ? "scaleY(1)" : "scaleX(1)"
|
|
259
|
-
}
|
|
260
|
-
],
|
|
261
|
-
{
|
|
262
|
-
duration: 180,
|
|
263
|
-
easing: "cubic-bezier(0.23, 1, 0.32, 1)"
|
|
264
|
-
}
|
|
265
|
-
);
|
|
266
|
-
return () => {
|
|
267
|
-
animation.cancel();
|
|
268
|
-
};
|
|
269
|
-
}, [activeHeight, activeLeft, activeTop, activeWidth, state.orientation]);
|
|
270
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ...indicatorProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
271
|
-
"span",
|
|
272
|
-
{
|
|
273
|
-
"aria-hidden": "true",
|
|
274
|
-
className: tabsGrowIndicatorClassName,
|
|
275
|
-
"data-orientation": state.orientation,
|
|
276
|
-
ref: indicatorRef,
|
|
277
|
-
style: state.orientation === "vertical" ? {
|
|
278
|
-
height: "var(--active-tab-height)",
|
|
279
|
-
top: "var(--active-tab-top)",
|
|
280
|
-
transformOrigin: "center"
|
|
281
|
-
} : {
|
|
282
|
-
left: "var(--active-tab-left)",
|
|
283
|
-
transformOrigin: "center",
|
|
284
|
-
width: "var(--active-tab-width)"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
) });
|
|
288
|
-
}
|
|
289
|
-
function Tabs({
|
|
290
|
-
children,
|
|
291
|
-
className,
|
|
292
|
-
indicatorAnimation = "slide",
|
|
293
|
-
indicatorColor,
|
|
294
|
-
style,
|
|
295
|
-
variant = "base",
|
|
296
|
-
...props
|
|
297
|
-
}) {
|
|
298
|
-
const resolvedVariant = resolveTabsVariant(variant);
|
|
299
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
300
|
-
TabsStyleContext,
|
|
301
|
-
{
|
|
302
|
-
value: { indicatorAnimation, indicatorColor, variant: resolvedVariant },
|
|
303
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
304
|
-
import_tabs.Tabs.Root,
|
|
305
|
-
{
|
|
306
|
-
className: mergeBaseUiClassName(className, "min-w-0"),
|
|
307
|
-
"data-slot": "tabs",
|
|
308
|
-
style: mergeTabsStyle(style, indicatorColor),
|
|
309
|
-
...props,
|
|
310
|
-
children
|
|
311
|
-
}
|
|
312
|
-
)
|
|
313
|
-
}
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
function TabsList({ className, variant, ...props }) {
|
|
317
|
-
const styleContext = useTabsStyle();
|
|
318
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
319
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
320
|
-
import_tabs.Tabs.List,
|
|
321
|
-
{
|
|
322
|
-
className: mergeBaseUiClassName(
|
|
323
|
-
className,
|
|
324
|
-
tabsListVariants({ variant: resolvedVariant })
|
|
325
|
-
),
|
|
326
|
-
"data-slot": "tabs-list",
|
|
327
|
-
...props
|
|
328
|
-
}
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
function TabsTab({ className, variant, ...props }) {
|
|
332
|
-
const styleContext = useTabsStyle();
|
|
333
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
334
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
335
|
-
import_tabs.Tabs.Tab,
|
|
336
|
-
{
|
|
337
|
-
className: mergeBaseUiClassName(
|
|
338
|
-
className,
|
|
339
|
-
tabsTabVariants({ variant: resolvedVariant })
|
|
340
|
-
),
|
|
341
|
-
"data-slot": "tabs-tab",
|
|
342
|
-
...props
|
|
343
|
-
}
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
function TabsPanel({ className, ...props }) {
|
|
347
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
348
|
-
import_tabs.Tabs.Panel,
|
|
349
|
-
{
|
|
350
|
-
className: mergeBaseUiClassName(
|
|
351
|
-
className,
|
|
352
|
-
"outline-none focus-visible:outline-2 focus-visible:outline-focus-ring"
|
|
353
|
-
),
|
|
354
|
-
"data-slot": "tabs-panel",
|
|
355
|
-
...props
|
|
356
|
-
}
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
function TabsIndicator({
|
|
360
|
-
className,
|
|
361
|
-
indicatorAnimation,
|
|
362
|
-
indicatorColor,
|
|
363
|
-
render,
|
|
364
|
-
style,
|
|
365
|
-
variant,
|
|
366
|
-
...props
|
|
367
|
-
}) {
|
|
368
|
-
const styleContext = useTabsStyle();
|
|
369
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
370
|
-
const resolvedAnimation = indicatorAnimation ?? styleContext.indicatorAnimation;
|
|
371
|
-
const indicatorRender = render ?? (resolvedVariant === "underline" && resolvedAnimation === "grow" ? (indicatorProps, state) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsGrowIndicator, { indicatorProps, state }) : void 0);
|
|
372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
373
|
-
import_tabs.Tabs.Indicator,
|
|
374
|
-
{
|
|
375
|
-
className: mergeBaseUiClassName(
|
|
376
|
-
className,
|
|
377
|
-
tabsIndicatorVariants({
|
|
378
|
-
animation: resolvedAnimation,
|
|
379
|
-
variant: resolvedVariant
|
|
380
|
-
})
|
|
381
|
-
),
|
|
382
|
-
"data-slot": "tabs-indicator",
|
|
383
|
-
render: indicatorRender,
|
|
384
|
-
style: mergeTabsIndicatorStyle(
|
|
385
|
-
style,
|
|
386
|
-
indicatorColor ?? styleContext.indicatorColor,
|
|
387
|
-
resolvedAnimation
|
|
388
|
-
),
|
|
389
|
-
...props
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
}
|
|
393
|
-
function NavigationTabs(props) {
|
|
394
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tabs, { "data-slot": "navigation-tabs", ...props });
|
|
395
|
-
}
|
|
396
|
-
function NavigationTabsList(props) {
|
|
397
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsList, { "data-slot": "navigation-tabs-list", ...props });
|
|
398
|
-
}
|
|
399
|
-
function NavigationTabsIndicator(props) {
|
|
400
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsIndicator, { "data-slot": "navigation-tabs-indicator", ...props });
|
|
401
|
-
}
|
|
402
|
-
function NavigationTabsLink({
|
|
403
|
-
active,
|
|
404
|
-
children,
|
|
405
|
-
href,
|
|
406
|
-
rel,
|
|
407
|
-
render,
|
|
408
|
-
target,
|
|
409
|
-
...props
|
|
410
|
-
}) {
|
|
411
|
-
const { "aria-current": ariaCurrent, ...tabProps } = props;
|
|
412
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
413
|
-
TabsTab,
|
|
414
|
-
{
|
|
415
|
-
"aria-current": active ? "page" : ariaCurrent,
|
|
416
|
-
"data-slot": "navigation-tabs-link",
|
|
417
|
-
"data-state": active ? "path-active" : void 0,
|
|
418
|
-
nativeButton: false,
|
|
419
|
-
render: render ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
420
|
-
import_link.default,
|
|
421
|
-
{
|
|
422
|
-
href,
|
|
423
|
-
rel: target === "_blank" ? mergeRel(rel) : rel,
|
|
424
|
-
target
|
|
425
|
-
}
|
|
426
|
-
),
|
|
427
|
-
...tabProps,
|
|
428
|
-
children
|
|
429
|
-
}
|
|
430
|
-
);
|
|
431
|
-
}
|
|
432
|
-
function NavigationTabsTab(props) {
|
|
433
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NavigationTabsLink, { ...props });
|
|
434
|
-
}
|
|
435
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
436
|
-
0 && (module.exports = {
|
|
437
|
-
NavigationTabs,
|
|
438
|
-
NavigationTabsIndicator,
|
|
439
|
-
NavigationTabsLink,
|
|
440
|
-
NavigationTabsList,
|
|
441
|
-
NavigationTabsTab,
|
|
442
|
-
Tabs,
|
|
443
|
-
TabsIndicator,
|
|
444
|
-
TabsList,
|
|
445
|
-
TabsPanel,
|
|
446
|
-
TabsTab,
|
|
447
|
-
tabsIndicatorVariants,
|
|
448
|
-
tabsListVariants,
|
|
449
|
-
tabsTabVariants
|
|
450
|
-
});
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import { LinkProps } from 'next/link';
|
|
6
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
7
|
-
|
|
8
|
-
declare const tabsListVariants: (props?: ({
|
|
9
|
-
variant?: "base" | "button" | "underline" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
declare const tabsTabVariants: (props?: ({
|
|
12
|
-
variant?: "base" | "button" | "underline" | null | undefined;
|
|
13
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
14
|
-
declare const tabsIndicatorVariants: (props?: ({
|
|
15
|
-
animation?: "grow" | "slide" | null | undefined;
|
|
16
|
-
variant?: "base" | "button" | "underline" | null | undefined;
|
|
17
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
-
type TabsVariantProps = VariantProps<typeof tabsListVariants>;
|
|
19
|
-
type TabsVariant = NonNullable<TabsVariantProps["variant"]>;
|
|
20
|
-
type TabsIndicatorAnimation = "grow" | "slide";
|
|
21
|
-
type TabsIndicatorColor = "accent" | "current" | "foreground" | (string & {});
|
|
22
|
-
type TabsProps = ComponentPropsWithoutRef<typeof Tabs$1.Root> & TabsVariantProps & {
|
|
23
|
-
/**
|
|
24
|
-
* Sets the underline indicator animation.
|
|
25
|
-
*
|
|
26
|
-
* `slide` tracks the active tab with a clipped underline.
|
|
27
|
-
* `grow` redraws the underline from the active tab center.
|
|
28
|
-
*
|
|
29
|
-
* @default "slide"
|
|
30
|
-
*/
|
|
31
|
-
indicatorAnimation?: TabsIndicatorAnimation;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the underline indicator color for this tabs tree.
|
|
34
|
-
*
|
|
35
|
-
* Pass a CSS color, a CSS variable name like `--accent-1`, or one of the
|
|
36
|
-
* named design tokens.
|
|
37
|
-
*
|
|
38
|
-
* @default "accent"
|
|
39
|
-
*/
|
|
40
|
-
indicatorColor?: TabsIndicatorColor;
|
|
41
|
-
};
|
|
42
|
-
type TabsListProps = ComponentPropsWithoutRef<typeof Tabs$1.List> & TabsVariantProps;
|
|
43
|
-
type TabsTabProps = ComponentPropsWithoutRef<typeof Tabs$1.Tab> & TabsVariantProps;
|
|
44
|
-
type TabsPanelProps = ComponentPropsWithoutRef<typeof Tabs$1.Panel>;
|
|
45
|
-
type TabsIndicatorProps = ComponentPropsWithoutRef<typeof Tabs$1.Indicator> & TabsVariantProps & {
|
|
46
|
-
/**
|
|
47
|
-
* Overrides the underline indicator animation for this indicator.
|
|
48
|
-
*
|
|
49
|
-
* @default inherited from `Tabs`
|
|
50
|
-
*/
|
|
51
|
-
indicatorAnimation?: TabsIndicatorAnimation;
|
|
52
|
-
/**
|
|
53
|
-
* Overrides the underline indicator color for this indicator.
|
|
54
|
-
*
|
|
55
|
-
* @default inherited from `Tabs`
|
|
56
|
-
*/
|
|
57
|
-
indicatorColor?: TabsIndicatorColor;
|
|
58
|
-
};
|
|
59
|
-
declare function Tabs({ children, className, indicatorAnimation, indicatorColor, style, variant, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
60
|
-
declare function TabsList({ className, variant, ...props }: TabsListProps): react_jsx_runtime.JSX.Element;
|
|
61
|
-
declare function TabsTab({ className, variant, ...props }: TabsTabProps): react_jsx_runtime.JSX.Element;
|
|
62
|
-
declare function TabsPanel({ className, ...props }: TabsPanelProps): react_jsx_runtime.JSX.Element;
|
|
63
|
-
declare function TabsIndicator({ className, indicatorAnimation, indicatorColor, render, style, variant, ...props }: TabsIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
64
|
-
type NavigationTabsProps = TabsProps;
|
|
65
|
-
type NavigationTabsListProps = TabsListProps;
|
|
66
|
-
type NavigationTabsIndicatorProps = TabsIndicatorProps;
|
|
67
|
-
type NavigationTabsLinkProps = Omit<TabsTabProps, "nativeButton" | "render"> & Pick<ComponentPropsWithoutRef<"a">, "rel" | "target"> & {
|
|
68
|
-
active?: boolean;
|
|
69
|
-
href: LinkProps["href"];
|
|
70
|
-
/**
|
|
71
|
-
* Override the rendered link element. Use this for router links that are not
|
|
72
|
-
* covered by Next.js `Link`.
|
|
73
|
-
*/
|
|
74
|
-
render?: TabsTabProps["render"];
|
|
75
|
-
};
|
|
76
|
-
declare function NavigationTabs(props: NavigationTabsProps): react_jsx_runtime.JSX.Element;
|
|
77
|
-
declare function NavigationTabsList(props: NavigationTabsListProps): react_jsx_runtime.JSX.Element;
|
|
78
|
-
declare function NavigationTabsIndicator(props: NavigationTabsIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
79
|
-
declare function NavigationTabsLink({ active, children, href, rel, render, target, ...props }: NavigationTabsLinkProps): react_jsx_runtime.JSX.Element;
|
|
80
|
-
declare function NavigationTabsTab(props: NavigationTabsLinkProps): react_jsx_runtime.JSX.Element;
|
|
81
|
-
|
|
82
|
-
export { NavigationTabs, NavigationTabsIndicator, type NavigationTabsIndicatorProps, NavigationTabsLink, type NavigationTabsLinkProps, NavigationTabsList, type NavigationTabsListProps, type NavigationTabsProps, NavigationTabsTab, Tabs, TabsIndicator, type TabsIndicatorAnimation, type TabsIndicatorColor, type TabsIndicatorProps, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps, type TabsVariant, type TabsVariantProps, tabsIndicatorVariants, tabsListVariants, tabsTabVariants };
|
|
@@ -1,104 +0,0 @@
|
|
|
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/tag.tsx
|
|
21
|
-
var tag_exports = {};
|
|
22
|
-
__export(tag_exports, {
|
|
23
|
-
Tag: () => Tag,
|
|
24
|
-
tagVariants: () => tagVariants
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(tag_exports);
|
|
27
|
-
|
|
28
|
-
// src/utils/cn.ts
|
|
29
|
-
var import_clsx = require("clsx");
|
|
30
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
31
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
32
|
-
extend: {
|
|
33
|
-
classGroups: {
|
|
34
|
-
z: [
|
|
35
|
-
"z-content",
|
|
36
|
-
"z-nav",
|
|
37
|
-
"z-overlay",
|
|
38
|
-
"z-modal",
|
|
39
|
-
"z-search",
|
|
40
|
-
"z-toast",
|
|
41
|
-
"z-progress"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
function cn(...inputs) {
|
|
47
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// src/kernel/components/ui/tag.tsx
|
|
51
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
52
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
53
|
-
var tagVariants = (0, import_class_variance_authority.cva)(
|
|
54
|
-
"inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-tag border px-2 py-0.5 text-xs font-medium leading-5 [&_svg]:shrink-0",
|
|
55
|
-
{
|
|
56
|
-
variants: {
|
|
57
|
-
borderStyle: {
|
|
58
|
-
dotted: "",
|
|
59
|
-
solid: ""
|
|
60
|
-
},
|
|
61
|
-
tone: {
|
|
62
|
-
accent: "[--tag-color:var(--accent-1)] [--tag-solid-background:var(--accent-solid)] [--tag-solid-foreground:var(--accent-foreground)]",
|
|
63
|
-
neutral: "[--tag-color:var(--foreground-2)] [--tag-solid-background:var(--foreground-1)] [--tag-solid-foreground:var(--surface-1)]"
|
|
64
|
-
},
|
|
65
|
-
variant: {
|
|
66
|
-
outline: "border-[color-mix(in_oklch,var(--tag-color)_48%,transparent)] bg-transparent text-[var(--tag-color)]",
|
|
67
|
-
soft: "border-[color-mix(in_oklch,var(--tag-color)_20%,transparent)] bg-[color-mix(in_oklch,var(--tag-color)_9%,transparent)] text-[var(--tag-color)]",
|
|
68
|
-
solid: "border-[color-mix(in_oklch,var(--tag-solid-foreground)_12%,transparent)] bg-[var(--tag-solid-background)] text-[var(--tag-solid-foreground)] shadow-[inset_0_1px_0_rgb(255_255_255_/_0.035),0_1px_1px_rgb(0_0_0_/_0.025)]"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
compoundVariants: [
|
|
72
|
-
{
|
|
73
|
-
borderStyle: "dotted",
|
|
74
|
-
className: "border-dotted",
|
|
75
|
-
variant: ["solid", "soft", "outline"]
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
defaultVariants: {
|
|
79
|
-
borderStyle: "solid",
|
|
80
|
-
tone: "neutral",
|
|
81
|
-
variant: "solid"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
function Tag({
|
|
86
|
-
borderStyle,
|
|
87
|
-
className,
|
|
88
|
-
tone,
|
|
89
|
-
variant,
|
|
90
|
-
...props
|
|
91
|
-
}) {
|
|
92
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
|
-
"span",
|
|
94
|
-
{
|
|
95
|
-
className: cn(tagVariants({ borderStyle, tone, variant }), className),
|
|
96
|
-
...props
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
-
0 && (module.exports = {
|
|
102
|
-
Tag,
|
|
103
|
-
tagVariants
|
|
104
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { HTMLAttributes } from 'react';
|
|
5
|
-
|
|
6
|
-
declare const tagVariants: (props?: ({
|
|
7
|
-
borderStyle?: "solid" | "dotted" | null | undefined;
|
|
8
|
-
tone?: "accent" | "neutral" | null | undefined;
|
|
9
|
-
variant?: "solid" | "soft" | "outline" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
type TagProps = HTMLAttributes<HTMLSpanElement> & VariantProps<typeof tagVariants>;
|
|
12
|
-
declare function Tag({ borderStyle, className, tone, variant, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
export { Tag, type TagProps, tagVariants };
|