@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,38 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import { Select as BaseSelect } from "@base-ui/react/select";
|
|
3
|
-
|
|
4
|
-
// src/utils/cn.ts
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
7
|
-
var twMerge = extendTailwindMerge({
|
|
8
|
-
extend: {
|
|
9
|
-
classGroups: {
|
|
10
|
-
z: [
|
|
11
|
-
"z-content",
|
|
12
|
-
"z-nav",
|
|
13
|
-
"z-overlay",
|
|
14
|
-
"z-modal",
|
|
15
|
-
"z-search",
|
|
16
|
-
"z-toast",
|
|
17
|
-
"z-progress"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
function cn(...inputs) {
|
|
23
|
-
return twMerge(clsx(inputs));
|
|
24
|
-
}
|
|
1
|
+
"use client";
|
|
25
2
|
|
|
26
|
-
// src/
|
|
3
|
+
// src/components/ui/select.tsx
|
|
4
|
+
import { Select as BaseSelect } from "@base-ui/react/select";
|
|
5
|
+
import {
|
|
6
|
+
FrameworkCheckIcon as Check,
|
|
7
|
+
FrameworkChevronDownIcon as ChevronDown
|
|
8
|
+
} from "@publish.os/nextjs/kernel/framework-icons";
|
|
9
|
+
import { useThemeScope } from "@publish.os/nextjs/theme-scope";
|
|
10
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
27
11
|
import { cva } from "class-variance-authority";
|
|
28
|
-
import { Check, ChevronDown } from "lucide-react";
|
|
29
12
|
import { jsx } from "react/jsx-runtime";
|
|
30
13
|
var selectTriggerVariants = cva(
|
|
31
14
|
[
|
|
32
15
|
"inline-flex w-full min-w-0 items-center justify-between gap-2 rounded-input border border-stroke-2 bg-surface-1 text-foreground-1 transition-colors",
|
|
33
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
16
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
34
17
|
"disabled:cursor-not-allowed disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
35
|
-
"data-[placeholder]:text-foreground-3 data-[popup-open]:border-focus-
|
|
18
|
+
"data-[placeholder]:text-foreground-3 data-[popup-open]:border-focus-stroke"
|
|
36
19
|
].join(" "),
|
|
37
20
|
{
|
|
38
21
|
variants: {
|
|
@@ -97,7 +80,8 @@ function SelectIcon({ children, className, ...props }) {
|
|
|
97
80
|
);
|
|
98
81
|
}
|
|
99
82
|
function SelectPortal(props) {
|
|
100
|
-
|
|
83
|
+
let themeScope = useThemeScope();
|
|
84
|
+
return /* @__PURE__ */ jsx(BaseSelect.Portal, { ...props, ...themeScope });
|
|
101
85
|
}
|
|
102
86
|
function SelectPositioner({
|
|
103
87
|
className,
|
|
@@ -107,7 +91,7 @@ function SelectPositioner({
|
|
|
107
91
|
return /* @__PURE__ */ jsx(
|
|
108
92
|
BaseSelect.Positioner,
|
|
109
93
|
{
|
|
110
|
-
className: cn("z-
|
|
94
|
+
className: cn("z-overlay outline-none", className),
|
|
111
95
|
sideOffset,
|
|
112
96
|
...props
|
|
113
97
|
}
|
|
@@ -118,7 +102,7 @@ function SelectPopup({ className, ...props }) {
|
|
|
118
102
|
BaseSelect.Popup,
|
|
119
103
|
{
|
|
120
104
|
className: cn(
|
|
121
|
-
"animate-popup max-h-72 w-[min(calc(var(--anchor-width)+2rem),var(--available-width))] min-w-[var(--anchor-width)] overflow-hidden rounded-popup border border-
|
|
105
|
+
"animate-popup max-h-72 w-[min(calc(var(--anchor-width)+2rem),var(--available-width))] min-w-[var(--anchor-width)] overflow-hidden rounded-popup border border-select-stroke-3 bg-select-surface-1 p-1 text-select-foreground-1 shadow-select outline-none [--text-foreground:var(--select-foreground-1)] [--text-muted-foreground:var(--select-foreground-4)]",
|
|
122
106
|
className
|
|
123
107
|
),
|
|
124
108
|
...props
|
|
@@ -133,9 +117,9 @@ function SelectItem({ className, ...props }) {
|
|
|
133
117
|
BaseSelect.Item,
|
|
134
118
|
{
|
|
135
119
|
className: cn(
|
|
136
|
-
"relative flex min-w-0 cursor-default select-none items-center rounded-[max(calc(var(--radius-popup)_-_0.25rem),0px)] py-1.5 pl-8 pr-2 text-sm text-
|
|
137
|
-
"data-[highlighted]:bg-
|
|
138
|
-
"data-disabled:pointer-events-none data-disabled:text-
|
|
120
|
+
"relative flex min-w-0 cursor-default select-none items-center rounded-[max(calc(var(--radius-popup)_-_0.25rem),0px)] py-1.5 pl-8 pr-2 text-sm text-select-foreground-1 outline-none",
|
|
121
|
+
"data-[highlighted]:bg-select-highlight-surface data-[highlighted]:text-select-highlight-foreground data-[selected]:bg-select-surface-4 data-[selected]:text-select-foreground-1 data-[selected]:data-[highlighted]:bg-select-highlight-surface data-[selected]:data-[highlighted]:text-select-highlight-foreground",
|
|
122
|
+
"data-disabled:pointer-events-none data-disabled:text-select-foreground-4",
|
|
139
123
|
className
|
|
140
124
|
),
|
|
141
125
|
...props
|
|
@@ -179,7 +163,7 @@ function SelectGroupLabel({
|
|
|
179
163
|
BaseSelect.GroupLabel,
|
|
180
164
|
{
|
|
181
165
|
className: cn(
|
|
182
|
-
"px-2 py-1 text-xs font-medium text-
|
|
166
|
+
"px-2 py-1 text-xs font-medium text-select-foreground-4",
|
|
183
167
|
className
|
|
184
168
|
),
|
|
185
169
|
...props
|
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/components/ui/separator.tsx
|
|
2
2
|
import { Separator as BaseSeparator } from "@base-ui/react/separator";
|
|
3
|
-
|
|
4
|
-
// src/utils/cn.ts
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
7
|
-
var twMerge = extendTailwindMerge({
|
|
8
|
-
extend: {
|
|
9
|
-
classGroups: {
|
|
10
|
-
z: [
|
|
11
|
-
"z-content",
|
|
12
|
-
"z-nav",
|
|
13
|
-
"z-overlay",
|
|
14
|
-
"z-modal",
|
|
15
|
-
"z-search",
|
|
16
|
-
"z-toast",
|
|
17
|
-
"z-progress"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
function cn(...inputs) {
|
|
23
|
-
return twMerge(clsx(inputs));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// src/kernel/components/ui/separator.tsx
|
|
3
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
27
4
|
import { jsx } from "react/jsx-runtime";
|
|
28
5
|
function Separator({
|
|
29
6
|
className,
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
3
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
-
var twMerge = extendTailwindMerge({
|
|
5
|
-
extend: {
|
|
6
|
-
classGroups: {
|
|
7
|
-
z: [
|
|
8
|
-
"z-content",
|
|
9
|
-
"z-nav",
|
|
10
|
-
"z-overlay",
|
|
11
|
-
"z-modal",
|
|
12
|
-
"z-search",
|
|
13
|
-
"z-toast",
|
|
14
|
-
"z-progress"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
function cn(...inputs) {
|
|
20
|
-
return twMerge(clsx(inputs));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// src/kernel/components/ui/table.tsx
|
|
1
|
+
// src/components/ui/table.tsx
|
|
2
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
24
3
|
import { jsx } from "react/jsx-runtime";
|
|
25
4
|
function Table({
|
|
26
5
|
className,
|
|
@@ -1,31 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
// src/
|
|
3
|
+
// src/components/ui/tabs.tsx
|
|
4
4
|
import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
5
|
-
|
|
6
|
-
// src/utils/cn.ts
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
9
|
-
var twMerge = extendTailwindMerge({
|
|
10
|
-
extend: {
|
|
11
|
-
classGroups: {
|
|
12
|
-
z: [
|
|
13
|
-
"z-content",
|
|
14
|
-
"z-nav",
|
|
15
|
-
"z-overlay",
|
|
16
|
-
"z-modal",
|
|
17
|
-
"z-search",
|
|
18
|
-
"z-toast",
|
|
19
|
-
"z-progress"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
function cn(...inputs) {
|
|
25
|
-
return twMerge(clsx(inputs));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// src/kernel/components/ui/tabs.tsx
|
|
5
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
29
6
|
import { cva } from "class-variance-authority";
|
|
30
7
|
import NextLink from "next/link";
|
|
31
8
|
import {
|
|
@@ -46,12 +23,11 @@ var tabsListVariants = cva("relative inline-flex items-center", {
|
|
|
46
23
|
defaultVariants: {
|
|
47
24
|
variant: "base"
|
|
48
25
|
}
|
|
49
|
-
})
|
|
50
|
-
var tabsTabVariants = cva(
|
|
26
|
+
}), tabsTabVariants = cva(
|
|
51
27
|
[
|
|
52
28
|
"relative inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap text-sm font-medium leading-none outline-none",
|
|
53
29
|
"!no-underline hover:!no-underline active:!no-underline",
|
|
54
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
30
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
55
31
|
"disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
56
32
|
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
57
33
|
].join(" "),
|
|
@@ -69,8 +45,8 @@ var tabsTabVariants = cva(
|
|
|
69
45
|
"h-8 rounded-button border border-transparent bg-transparent px-3 text-foreground-2 transition-[background-color,border-color,color,box-shadow] duration-150 ease-out",
|
|
70
46
|
"hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1",
|
|
71
47
|
"active:not-data-disabled:bg-surface-active",
|
|
72
|
-
"data-active:bg-accent-
|
|
73
|
-
"data-[state=path-active]:bg-accent-
|
|
48
|
+
"data-active:bg-accent-2-hover data-active:text-accent-1",
|
|
49
|
+
"data-[state=path-active]:bg-accent-2-hover data-[state=path-active]:text-accent-1"
|
|
74
50
|
].join(" "),
|
|
75
51
|
underline: [
|
|
76
52
|
"rounded-button px-0 py-2 text-foreground-3 transition-colors duration-150 ease-out",
|
|
@@ -84,8 +60,7 @@ var tabsTabVariants = cva(
|
|
|
84
60
|
variant: "base"
|
|
85
61
|
}
|
|
86
62
|
}
|
|
87
|
-
)
|
|
88
|
-
var tabsIndicatorVariants = cva("pointer-events-none absolute", {
|
|
63
|
+
), tabsIndicatorVariants = cva("pointer-events-none absolute", {
|
|
89
64
|
variants: {
|
|
90
65
|
animation: {
|
|
91
66
|
grow: "",
|
|
@@ -121,13 +96,11 @@ var tabsIndicatorVariants = cva("pointer-events-none absolute", {
|
|
|
121
96
|
animation: "slide",
|
|
122
97
|
variant: "base"
|
|
123
98
|
}
|
|
124
|
-
})
|
|
125
|
-
var tabsGrowIndicatorClassName = [
|
|
99
|
+
}), tabsGrowIndicatorClassName = [
|
|
126
100
|
"absolute rounded-full bg-[var(--tabs-indicator-color,var(--accent-1))]",
|
|
127
101
|
"data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:h-full",
|
|
128
102
|
"data-[orientation=vertical]:right-0 data-[orientation=vertical]:w-full"
|
|
129
|
-
].join(" ");
|
|
130
|
-
var TabsStyleContext = createContext(null);
|
|
103
|
+
].join(" "), TabsStyleContext = createContext(null);
|
|
131
104
|
function useTabsStyle() {
|
|
132
105
|
return use(TabsStyleContext) ?? {
|
|
133
106
|
indicatorAnimation: "slide",
|
|
@@ -138,76 +111,49 @@ function resolveTabsVariant(variant) {
|
|
|
138
111
|
return variant ?? "base";
|
|
139
112
|
}
|
|
140
113
|
function mergeBaseUiClassName(className, ...classes) {
|
|
141
|
-
|
|
142
|
-
return (state) => cn(...classes, className(state));
|
|
143
|
-
}
|
|
144
|
-
return cn(...classes, className);
|
|
114
|
+
return typeof className == "function" ? (state) => cn(...classes, className(state)) : cn(...classes, className);
|
|
145
115
|
}
|
|
146
116
|
function cssColorValue(color) {
|
|
147
|
-
if (
|
|
148
|
-
|
|
149
|
-
if (color === "current") return "currentColor";
|
|
150
|
-
if (color === "foreground") return "var(--foreground-1)";
|
|
151
|
-
if (color.startsWith("var(")) return color;
|
|
152
|
-
if (color.startsWith("--")) return `var(${color})`;
|
|
153
|
-
return color;
|
|
117
|
+
if (color)
|
|
118
|
+
return color === "accent" ? "var(--accent-1)" : color === "current" ? "currentColor" : color === "foreground" ? "var(--foreground-1)" : color.startsWith("var(") ? color : color.startsWith("--") ? `var(${color})` : color;
|
|
154
119
|
}
|
|
155
120
|
function mergeTabsStyle(style, indicatorColor) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"--tabs-indicator-color": color
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
return {
|
|
121
|
+
let color = cssColorValue(indicatorColor);
|
|
122
|
+
return color ? typeof style == "function" ? (state) => ({
|
|
123
|
+
...style(state),
|
|
124
|
+
"--tabs-indicator-color": color
|
|
125
|
+
}) : {
|
|
165
126
|
...style,
|
|
166
127
|
"--tabs-indicator-color": color
|
|
167
|
-
};
|
|
128
|
+
} : style;
|
|
168
129
|
}
|
|
169
130
|
function tabsSlideClipPath(orientation) {
|
|
170
|
-
|
|
171
|
-
return "inset(var(--active-tab-top) 0 calc(100% - var(--active-tab-top) - var(--active-tab-height)) 0)";
|
|
172
|
-
}
|
|
173
|
-
return "inset(0 calc(100% - var(--active-tab-left) - var(--active-tab-width)) 0 var(--active-tab-left))";
|
|
131
|
+
return orientation === "vertical" ? "inset(var(--active-tab-top) 0 calc(100% - var(--active-tab-top) - var(--active-tab-height)) 0)" : "inset(0 calc(100% - var(--active-tab-left) - var(--active-tab-width)) 0 var(--active-tab-left))";
|
|
174
132
|
}
|
|
175
133
|
function mergeTabsIndicatorStyle(style, indicatorColor, indicatorAnimation) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
clipPath: tabsSlideClipPath(state.orientation)
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
return (state) => ({
|
|
134
|
+
let mergedStyle = mergeTabsStyle(style, indicatorColor);
|
|
135
|
+
return indicatorAnimation !== "slide" ? mergedStyle : typeof mergedStyle == "function" ? (state) => ({
|
|
136
|
+
...mergedStyle(state),
|
|
137
|
+
clipPath: tabsSlideClipPath(state.orientation)
|
|
138
|
+
}) : (state) => ({
|
|
185
139
|
...mergedStyle,
|
|
186
140
|
clipPath: tabsSlideClipPath(state.orientation)
|
|
187
141
|
});
|
|
188
142
|
}
|
|
189
143
|
function mergeRel(rel) {
|
|
190
|
-
|
|
191
|
-
values.add("noopener");
|
|
192
|
-
values.add("noreferrer");
|
|
193
|
-
return Array.from(values).join(" ");
|
|
144
|
+
let values = new Set((rel ?? "").split(/\s+/).filter(Boolean));
|
|
145
|
+
return values.add("noopener"), values.add("noreferrer"), Array.from(values).join(" ");
|
|
194
146
|
}
|
|
195
147
|
function TabsGrowIndicator({
|
|
196
148
|
indicatorProps,
|
|
197
149
|
state
|
|
198
150
|
}) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
const activeHeight = state.activeTabSize?.height;
|
|
204
|
-
useLayoutEffect(() => {
|
|
205
|
-
const indicator = indicatorRef.current;
|
|
206
|
-
if (!indicator || activeLeft == null || activeTop == null || activeWidth == null || activeHeight == null || typeof indicator.animate !== "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
151
|
+
let indicatorRef = useRef(null), activeLeft = state.activeTabPosition?.left, activeTop = state.activeTabPosition?.top, activeWidth = state.activeTabSize?.width, activeHeight = state.activeTabSize?.height;
|
|
152
|
+
return useLayoutEffect(() => {
|
|
153
|
+
let indicator = indicatorRef.current;
|
|
154
|
+
if (!indicator || activeLeft == null || activeTop == null || activeWidth == null || activeHeight == null || typeof indicator.animate != "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches)
|
|
207
155
|
return;
|
|
208
|
-
|
|
209
|
-
const isVertical = state.orientation === "vertical";
|
|
210
|
-
const animation = indicator.animate(
|
|
156
|
+
let isVertical = state.orientation === "vertical", animation = indicator.animate(
|
|
211
157
|
[
|
|
212
158
|
{
|
|
213
159
|
opacity: 0.7,
|
|
@@ -226,8 +172,7 @@ function TabsGrowIndicator({
|
|
|
226
172
|
return () => {
|
|
227
173
|
animation.cancel();
|
|
228
174
|
};
|
|
229
|
-
}, [activeHeight, activeLeft, activeTop, activeWidth, state.orientation])
|
|
230
|
-
return /* @__PURE__ */ jsx("span", { ...indicatorProps, children: /* @__PURE__ */ jsx(
|
|
175
|
+
}, [activeHeight, activeLeft, activeTop, activeWidth, state.orientation]), /* @__PURE__ */ jsx("span", { ...indicatorProps, children: /* @__PURE__ */ jsx(
|
|
231
176
|
"span",
|
|
232
177
|
{
|
|
233
178
|
"aria-hidden": "true",
|
|
@@ -255,7 +200,7 @@ function Tabs({
|
|
|
255
200
|
variant = "base",
|
|
256
201
|
...props
|
|
257
202
|
}) {
|
|
258
|
-
|
|
203
|
+
let resolvedVariant = resolveTabsVariant(variant);
|
|
259
204
|
return /* @__PURE__ */ jsx(
|
|
260
205
|
TabsStyleContext,
|
|
261
206
|
{
|
|
@@ -274,8 +219,7 @@ function Tabs({
|
|
|
274
219
|
);
|
|
275
220
|
}
|
|
276
221
|
function TabsList({ className, variant, ...props }) {
|
|
277
|
-
|
|
278
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
222
|
+
let styleContext = useTabsStyle(), resolvedVariant = variant ?? styleContext.variant;
|
|
279
223
|
return /* @__PURE__ */ jsx(
|
|
280
224
|
BaseTabs.List,
|
|
281
225
|
{
|
|
@@ -289,8 +233,7 @@ function TabsList({ className, variant, ...props }) {
|
|
|
289
233
|
);
|
|
290
234
|
}
|
|
291
235
|
function TabsTab({ className, variant, ...props }) {
|
|
292
|
-
|
|
293
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
236
|
+
let styleContext = useTabsStyle(), resolvedVariant = variant ?? styleContext.variant;
|
|
294
237
|
return /* @__PURE__ */ jsx(
|
|
295
238
|
BaseTabs.Tab,
|
|
296
239
|
{
|
|
@@ -309,7 +252,7 @@ function TabsPanel({ className, ...props }) {
|
|
|
309
252
|
{
|
|
310
253
|
className: mergeBaseUiClassName(
|
|
311
254
|
className,
|
|
312
|
-
"outline-none focus-visible:outline-2 focus-visible:outline-focus-
|
|
255
|
+
"outline-none focus-visible:outline-2 focus-visible:outline-focus-stroke"
|
|
313
256
|
),
|
|
314
257
|
"data-slot": "tabs-panel",
|
|
315
258
|
...props
|
|
@@ -325,10 +268,7 @@ function TabsIndicator({
|
|
|
325
268
|
variant,
|
|
326
269
|
...props
|
|
327
270
|
}) {
|
|
328
|
-
|
|
329
|
-
const resolvedVariant = variant ?? styleContext.variant;
|
|
330
|
-
const resolvedAnimation = indicatorAnimation ?? styleContext.indicatorAnimation;
|
|
331
|
-
const indicatorRender = render ?? (resolvedVariant === "underline" && resolvedAnimation === "grow" ? (indicatorProps, state) => /* @__PURE__ */ jsx(TabsGrowIndicator, { indicatorProps, state }) : void 0);
|
|
271
|
+
let styleContext = useTabsStyle(), resolvedVariant = variant ?? styleContext.variant, resolvedAnimation = indicatorAnimation ?? styleContext.indicatorAnimation, indicatorRender = render ?? (resolvedVariant === "underline" && resolvedAnimation === "grow" ? (indicatorProps, state) => /* @__PURE__ */ jsx(TabsGrowIndicator, { indicatorProps, state }) : void 0);
|
|
332
272
|
return /* @__PURE__ */ jsx(
|
|
333
273
|
BaseTabs.Indicator,
|
|
334
274
|
{
|
|
@@ -368,14 +308,14 @@ function NavigationTabsLink({
|
|
|
368
308
|
target,
|
|
369
309
|
...props
|
|
370
310
|
}) {
|
|
371
|
-
|
|
311
|
+
let { "aria-current": ariaCurrent, ...tabProps } = props;
|
|
372
312
|
return /* @__PURE__ */ jsx(
|
|
373
313
|
TabsTab,
|
|
374
314
|
{
|
|
375
315
|
"aria-current": active ? "page" : ariaCurrent,
|
|
376
316
|
"data-slot": "navigation-tabs-link",
|
|
377
317
|
"data-state": active ? "path-active" : void 0,
|
|
378
|
-
nativeButton:
|
|
318
|
+
nativeButton: !1,
|
|
379
319
|
render: render ?? /* @__PURE__ */ jsx(
|
|
380
320
|
NextLink,
|
|
381
321
|
{
|
|
@@ -4,9 +4,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import { HTMLAttributes } from 'react';
|
|
5
5
|
|
|
6
6
|
declare const tagVariants: (props?: ({
|
|
7
|
-
borderStyle?: "
|
|
7
|
+
borderStyle?: "dotted" | "solid" | null | undefined;
|
|
8
8
|
tone?: "accent" | "neutral" | null | undefined;
|
|
9
|
-
variant?: "solid" | "
|
|
9
|
+
variant?: "solid" | "outline" | "soft" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
type TagProps = HTMLAttributes<HTMLSpanElement> & VariantProps<typeof tagVariants>;
|
|
12
12
|
declare function Tag({ borderStyle, className, tone, variant, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
3
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
-
var twMerge = extendTailwindMerge({
|
|
5
|
-
extend: {
|
|
6
|
-
classGroups: {
|
|
7
|
-
z: [
|
|
8
|
-
"z-content",
|
|
9
|
-
"z-nav",
|
|
10
|
-
"z-overlay",
|
|
11
|
-
"z-modal",
|
|
12
|
-
"z-search",
|
|
13
|
-
"z-toast",
|
|
14
|
-
"z-progress"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
function cn(...inputs) {
|
|
20
|
-
return twMerge(clsx(inputs));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// src/kernel/components/ui/tag.tsx
|
|
1
|
+
// src/components/ui/tag.tsx
|
|
2
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
24
3
|
import { cva } from "class-variance-authority";
|
|
25
4
|
import { jsx } from "react/jsx-runtime";
|
|
26
5
|
var tagVariants = cva(
|
|
@@ -32,13 +11,13 @@ var tagVariants = cva(
|
|
|
32
11
|
solid: ""
|
|
33
12
|
},
|
|
34
13
|
tone: {
|
|
35
|
-
accent: "[--tag-color:var(--accent-1)] [--tag-solid-background:var(--accent-
|
|
14
|
+
accent: "[--tag-color:var(--accent-1)] [--tag-solid-background:var(--accent-1)] [--tag-solid-foreground:var(--accent-1-foreground)]",
|
|
36
15
|
neutral: "[--tag-color:var(--foreground-2)] [--tag-solid-background:var(--foreground-1)] [--tag-solid-foreground:var(--surface-1)]"
|
|
37
16
|
},
|
|
38
17
|
variant: {
|
|
39
18
|
outline: "border-[color-mix(in_oklch,var(--tag-color)_48%,transparent)] bg-transparent text-[var(--tag-color)]",
|
|
40
19
|
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)]",
|
|
41
|
-
solid: "border-[color-mix(in_oklch,var(--tag-solid-foreground)_12%,transparent)] bg-[var(--tag-solid-background)] text-[var(--tag-solid-foreground)]
|
|
20
|
+
solid: "border-shadow-4 border-[color-mix(in_oklch,var(--tag-solid-foreground)_12%,transparent)] bg-[var(--tag-solid-background)] text-[var(--tag-solid-foreground)]"
|
|
42
21
|
}
|
|
43
22
|
},
|
|
44
23
|
compoundVariants: [
|
|
@@ -5,8 +5,8 @@ import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
|
5
5
|
|
|
6
6
|
declare const textVariants: (props?: ({
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
8
|
-
variant?: "body" | "
|
|
9
|
-
weight?: "
|
|
8
|
+
variant?: "body" | "headline" | "label" | "overline" | null | undefined;
|
|
9
|
+
weight?: "default" | "medium" | "semibold" | "bold" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
type TextProps<T extends ElementType = "p"> = {
|
|
12
12
|
as?: T;
|