@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,184 +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/text.tsx
|
|
21
|
-
var text_exports = {};
|
|
22
|
-
__export(text_exports, {
|
|
23
|
-
Text: () => Text,
|
|
24
|
-
textVariants: () => textVariants
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(text_exports);
|
|
27
|
-
|
|
28
|
-
// src/utils/cn.ts
|
|
29
|
-
var import_clsx = require("clsx");
|
|
30
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
31
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
32
|
-
extend: {
|
|
33
|
-
classGroups: {
|
|
34
|
-
z: [
|
|
35
|
-
"z-content",
|
|
36
|
-
"z-nav",
|
|
37
|
-
"z-overlay",
|
|
38
|
-
"z-modal",
|
|
39
|
-
"z-search",
|
|
40
|
-
"z-toast",
|
|
41
|
-
"z-progress"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
function cn(...inputs) {
|
|
47
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// src/kernel/components/ui/text.tsx
|
|
51
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
52
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
53
|
-
var textVariants = (0, import_class_variance_authority.cva)("text-foreground-1", {
|
|
54
|
-
variants: {
|
|
55
|
-
size: {
|
|
56
|
-
xs: "",
|
|
57
|
-
sm: "",
|
|
58
|
-
md: "",
|
|
59
|
-
lg: "",
|
|
60
|
-
xl: "",
|
|
61
|
-
"2xl": "",
|
|
62
|
-
"3xl": "",
|
|
63
|
-
"4xl": "",
|
|
64
|
-
"5xl": "",
|
|
65
|
-
"6xl": "",
|
|
66
|
-
"7xl": "",
|
|
67
|
-
"8xl": "",
|
|
68
|
-
"9xl": ""
|
|
69
|
-
},
|
|
70
|
-
variant: {
|
|
71
|
-
body: "",
|
|
72
|
-
headline: "",
|
|
73
|
-
label: "",
|
|
74
|
-
overline: ""
|
|
75
|
-
},
|
|
76
|
-
weight: {
|
|
77
|
-
default: "font-normal",
|
|
78
|
-
medium: "font-medium",
|
|
79
|
-
semibold: "font-semibold",
|
|
80
|
-
bold: "font-bold"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
compoundVariants: [
|
|
84
|
-
{ className: "text-xs leading-5", size: "xs", variant: "body" },
|
|
85
|
-
{ className: "text-sm leading-6", size: "sm", variant: "body" },
|
|
86
|
-
{ className: "text-base leading-7", size: "md", variant: "body" },
|
|
87
|
-
{ className: "text-lg leading-8", size: "lg", variant: "body" },
|
|
88
|
-
{ className: "text-xl leading-8", size: "xl", variant: "body" },
|
|
89
|
-
{ className: "text-xs leading-4", size: "xs", variant: "label" },
|
|
90
|
-
{ className: "text-sm leading-5", size: "sm", variant: "label" },
|
|
91
|
-
{ className: "text-base leading-6", size: "md", variant: "label" },
|
|
92
|
-
{ className: "text-lg leading-7", size: "lg", variant: "label" },
|
|
93
|
-
{ className: "text-xl leading-8", size: "xl", variant: "label" },
|
|
94
|
-
{
|
|
95
|
-
className: "text-xs uppercase leading-4 tracking-wide text-foreground-3",
|
|
96
|
-
size: "xs",
|
|
97
|
-
variant: "overline"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
className: "text-sm uppercase leading-5 tracking-wide text-foreground-3",
|
|
101
|
-
size: "sm",
|
|
102
|
-
variant: "overline"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
className: "text-base uppercase leading-6 tracking-wide text-foreground-3",
|
|
106
|
-
size: "md",
|
|
107
|
-
variant: "overline"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
className: "text-lg uppercase leading-7 tracking-wide text-foreground-3",
|
|
111
|
-
size: "lg",
|
|
112
|
-
variant: "overline"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
className: "text-xl uppercase leading-8 tracking-wide text-foreground-3",
|
|
116
|
-
size: "xl",
|
|
117
|
-
variant: "overline"
|
|
118
|
-
},
|
|
119
|
-
{ className: "text-xl leading-8", size: "xl", variant: "headline" },
|
|
120
|
-
{ className: "text-2xl leading-9", size: "2xl", variant: "headline" },
|
|
121
|
-
{
|
|
122
|
-
className: "text-3xl leading-10 tracking-tight",
|
|
123
|
-
size: "3xl",
|
|
124
|
-
variant: "headline"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
className: "text-4xl leading-none tracking-tight",
|
|
128
|
-
size: "4xl",
|
|
129
|
-
variant: "headline"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
className: "text-5xl leading-none tracking-tight",
|
|
133
|
-
size: "5xl",
|
|
134
|
-
variant: "headline"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
className: "text-6xl leading-none tracking-tight",
|
|
138
|
-
size: "6xl",
|
|
139
|
-
variant: "headline"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
className: "text-7xl leading-none tracking-tight",
|
|
143
|
-
size: "7xl",
|
|
144
|
-
variant: "headline"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
className: "text-8xl leading-none tracking-tight",
|
|
148
|
-
size: "8xl",
|
|
149
|
-
variant: "headline"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
className: "text-9xl leading-none tracking-tight",
|
|
153
|
-
size: "9xl",
|
|
154
|
-
variant: "headline"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
defaultVariants: {
|
|
158
|
-
size: "md",
|
|
159
|
-
variant: "body",
|
|
160
|
-
weight: "default"
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
function Text({
|
|
164
|
-
as,
|
|
165
|
-
className,
|
|
166
|
-
size,
|
|
167
|
-
variant,
|
|
168
|
-
weight,
|
|
169
|
-
...props
|
|
170
|
-
}) {
|
|
171
|
-
const Component = as ?? "p";
|
|
172
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
-
Component,
|
|
174
|
-
{
|
|
175
|
-
className: cn(textVariants({ size, variant, weight }), className),
|
|
176
|
-
...props
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
181
|
-
0 && (module.exports = {
|
|
182
|
-
Text,
|
|
183
|
-
textVariants
|
|
184
|
-
});
|
|
@@ -1,17 +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 { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
5
|
-
|
|
6
|
-
declare const textVariants: (props?: ({
|
|
7
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
8
|
-
variant?: "body" | "label" | "overline" | "headline" | null | undefined;
|
|
9
|
-
weight?: "bold" | "medium" | "default" | "semibold" | null | undefined;
|
|
10
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
type TextProps<T extends ElementType = "p"> = {
|
|
12
|
-
as?: T;
|
|
13
|
-
className?: string;
|
|
14
|
-
} & VariantProps<typeof textVariants> & Omit<ComponentPropsWithoutRef<T>, "as" | "className" | "color">;
|
|
15
|
-
declare function Text<T extends ElementType = "p">({ as, className, size, variant, weight, ...props }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { Text, type TextProps, textVariants };
|
|
@@ -1,108 +0,0 @@
|
|
|
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 = "soft",
|
|
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
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
|
@@ -1,154 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
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 };
|
|
@@ -1,127 +0,0 @@
|
|
|
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/tooltip.tsx
|
|
22
|
-
var tooltip_exports = {};
|
|
23
|
-
__export(tooltip_exports, {
|
|
24
|
-
Tooltip: () => Tooltip,
|
|
25
|
-
TooltipArrow: () => TooltipArrow,
|
|
26
|
-
TooltipPopup: () => TooltipPopup,
|
|
27
|
-
TooltipPortal: () => TooltipPortal,
|
|
28
|
-
TooltipPositioner: () => TooltipPositioner,
|
|
29
|
-
TooltipProvider: () => TooltipProvider,
|
|
30
|
-
TooltipTrigger: () => TooltipTrigger
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(tooltip_exports);
|
|
33
|
-
var import_tooltip = require("@base-ui/react/tooltip");
|
|
34
|
-
|
|
35
|
-
// src/utils/cn.ts
|
|
36
|
-
var import_clsx = require("clsx");
|
|
37
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
38
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
39
|
-
extend: {
|
|
40
|
-
classGroups: {
|
|
41
|
-
z: [
|
|
42
|
-
"z-content",
|
|
43
|
-
"z-nav",
|
|
44
|
-
"z-overlay",
|
|
45
|
-
"z-modal",
|
|
46
|
-
"z-search",
|
|
47
|
-
"z-toast",
|
|
48
|
-
"z-progress"
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
function cn(...inputs) {
|
|
54
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// src/kernel/components/ui/tooltip.tsx
|
|
58
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
|
-
function TooltipProvider(props) {
|
|
60
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Provider, { ...props });
|
|
61
|
-
}
|
|
62
|
-
function Tooltip(props) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Root, { ...props });
|
|
64
|
-
}
|
|
65
|
-
function TooltipTrigger({ className, ...props }) {
|
|
66
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
-
import_tooltip.Tooltip.Trigger,
|
|
68
|
-
{
|
|
69
|
-
className: cn(
|
|
70
|
-
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-ring",
|
|
71
|
-
className
|
|
72
|
-
),
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
function TooltipPortal(props) {
|
|
78
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.Tooltip.Portal, { ...props });
|
|
79
|
-
}
|
|
80
|
-
function TooltipPositioner({
|
|
81
|
-
className,
|
|
82
|
-
sideOffset = 6,
|
|
83
|
-
...props
|
|
84
|
-
}) {
|
|
85
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
-
import_tooltip.Tooltip.Positioner,
|
|
87
|
-
{
|
|
88
|
-
className: cn("z-50 outline-none", className),
|
|
89
|
-
sideOffset,
|
|
90
|
-
...props
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
function TooltipPopup({ className, ...props }) {
|
|
95
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
-
import_tooltip.Tooltip.Popup,
|
|
97
|
-
{
|
|
98
|
-
className: cn(
|
|
99
|
-
"max-w-xs rounded-tooltip border border-stroke-2 bg-surface-3 px-2.5 py-1.5 text-xs leading-5 text-foreground-1 shadow-lg outline-none",
|
|
100
|
-
className
|
|
101
|
-
),
|
|
102
|
-
...props
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
function TooltipArrow({ className, ...props }) {
|
|
107
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
-
import_tooltip.Tooltip.Arrow,
|
|
109
|
-
{
|
|
110
|
-
className: cn(
|
|
111
|
-
"size-2 rotate-45 border border-stroke-2 bg-surface-3",
|
|
112
|
-
className
|
|
113
|
-
),
|
|
114
|
-
...props
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
-
0 && (module.exports = {
|
|
120
|
-
Tooltip,
|
|
121
|
-
TooltipArrow,
|
|
122
|
-
TooltipPopup,
|
|
123
|
-
TooltipPortal,
|
|
124
|
-
TooltipPositioner,
|
|
125
|
-
TooltipProvider,
|
|
126
|
-
TooltipTrigger
|
|
127
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
3
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
|
|
5
|
-
type TooltipProviderProps = ComponentPropsWithoutRef<typeof Tooltip$1.Provider>;
|
|
6
|
-
type TooltipProps = ComponentPropsWithoutRef<typeof Tooltip$1.Root>;
|
|
7
|
-
type TooltipTriggerProps = ComponentPropsWithoutRef<typeof Tooltip$1.Trigger>;
|
|
8
|
-
type TooltipPortalProps = ComponentPropsWithoutRef<typeof Tooltip$1.Portal>;
|
|
9
|
-
type TooltipPositionerProps = ComponentPropsWithoutRef<typeof Tooltip$1.Positioner>;
|
|
10
|
-
type TooltipPopupProps = ComponentPropsWithoutRef<typeof Tooltip$1.Popup>;
|
|
11
|
-
type TooltipArrowProps = ComponentPropsWithoutRef<typeof Tooltip$1.Arrow>;
|
|
12
|
-
declare function TooltipProvider(props: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function TooltipTrigger({ className, ...props }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare function TooltipPortal(props: TooltipPortalProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare function TooltipPositioner({ className, sideOffset, ...props }: TooltipPositionerProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function TooltipPopup({ className, ...props }: TooltipPopupProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function TooltipArrow({ className, ...props }: TooltipArrowProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
|
|
20
|
-
export { Tooltip, TooltipArrow, type TooltipArrowProps, TooltipPopup, type TooltipPopupProps, TooltipPortal, type TooltipPortalProps, TooltipPositioner, type TooltipPositionerProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };
|