@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,9 +1,8 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
3
|
-
import { buttonVariants } from "./button.js";
|
|
1
|
+
// src/components/ui/breadcrumb.tsx
|
|
2
|
+
import { buttonVariants } from "@publish.os/nextjs/kernel/components/ui/button";
|
|
4
3
|
import {
|
|
5
4
|
linkVariants
|
|
6
|
-
} from "
|
|
5
|
+
} from "@publish.os/nextjs/kernel/components/ui/link";
|
|
7
6
|
import {
|
|
8
7
|
Menu,
|
|
9
8
|
MenuLinkItem,
|
|
@@ -11,31 +10,8 @@ import {
|
|
|
11
10
|
MenuPortal,
|
|
12
11
|
MenuPositioner,
|
|
13
12
|
MenuTrigger
|
|
14
|
-
} from "
|
|
15
|
-
|
|
16
|
-
// src/utils/cn.ts
|
|
17
|
-
import { clsx } from "clsx";
|
|
18
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
19
|
-
var twMerge = extendTailwindMerge({
|
|
20
|
-
extend: {
|
|
21
|
-
classGroups: {
|
|
22
|
-
z: [
|
|
23
|
-
"z-content",
|
|
24
|
-
"z-nav",
|
|
25
|
-
"z-overlay",
|
|
26
|
-
"z-modal",
|
|
27
|
-
"z-search",
|
|
28
|
-
"z-toast",
|
|
29
|
-
"z-progress"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
function cn(...inputs) {
|
|
35
|
-
return twMerge(clsx(inputs));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// src/kernel/components/ui/breadcrumb.tsx
|
|
13
|
+
} from "@publish.os/nextjs/kernel/components/ui/menu";
|
|
14
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
39
15
|
import { cva } from "class-variance-authority";
|
|
40
16
|
import NextLink from "next/link";
|
|
41
17
|
import {
|
|
@@ -58,8 +34,7 @@ var breadcrumbVariants = cva(
|
|
|
58
34
|
size: "md"
|
|
59
35
|
}
|
|
60
36
|
}
|
|
61
|
-
)
|
|
62
|
-
var breadcrumbItemVariants = cva("inline-flex min-w-0 items-center", {
|
|
37
|
+
), breadcrumbItemVariants = cva("inline-flex min-w-0 items-center", {
|
|
63
38
|
variants: {
|
|
64
39
|
size: {
|
|
65
40
|
xs: "gap-1",
|
|
@@ -72,8 +47,7 @@ var breadcrumbItemVariants = cva("inline-flex min-w-0 items-center", {
|
|
|
72
47
|
defaultVariants: {
|
|
73
48
|
size: "md"
|
|
74
49
|
}
|
|
75
|
-
})
|
|
76
|
-
var breadcrumbTextVariants = cva("", {
|
|
50
|
+
}), breadcrumbTextVariants = cva("", {
|
|
77
51
|
variants: {
|
|
78
52
|
size: {
|
|
79
53
|
xs: "text-xs",
|
|
@@ -83,11 +57,10 @@ var breadcrumbTextVariants = cva("", {
|
|
|
83
57
|
xl: "text-base"
|
|
84
58
|
}
|
|
85
59
|
}
|
|
86
|
-
})
|
|
87
|
-
var breadcrumbDefaultVariants = cva(
|
|
60
|
+
}), breadcrumbDefaultVariants = cva(
|
|
88
61
|
[
|
|
89
62
|
"inline-flex min-w-0 max-w-full truncate rounded-button text-foreground-2 opacity-100 transition-[color,opacity] hover:text-foreground-1 hover:opacity-90",
|
|
90
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
63
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
91
64
|
"data-[state=path-active]:text-foreground-1 data-[state=path-active]:opacity-100"
|
|
92
65
|
].join(" "),
|
|
93
66
|
{
|
|
@@ -101,8 +74,7 @@ var breadcrumbDefaultVariants = cva(
|
|
|
101
74
|
}
|
|
102
75
|
}
|
|
103
76
|
}
|
|
104
|
-
)
|
|
105
|
-
var breadcrumbPageVariants = cva("", {
|
|
77
|
+
), breadcrumbPageVariants = cva("", {
|
|
106
78
|
variants: {
|
|
107
79
|
size: {
|
|
108
80
|
xs: "text-xs",
|
|
@@ -112,8 +84,7 @@ var breadcrumbPageVariants = cva("", {
|
|
|
112
84
|
xl: "text-base"
|
|
113
85
|
}
|
|
114
86
|
}
|
|
115
|
-
})
|
|
116
|
-
var breadcrumbEllipsisVariants = cva(
|
|
87
|
+
}), breadcrumbEllipsisVariants = cva(
|
|
117
88
|
"inline-flex items-center justify-center",
|
|
118
89
|
{
|
|
119
90
|
variants: {
|
|
@@ -131,19 +102,13 @@ var breadcrumbEllipsisVariants = cva(
|
|
|
131
102
|
}
|
|
132
103
|
);
|
|
133
104
|
function resolveBreadcrumbVariant(variant) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return {
|
|
142
|
-
buttonVariant: null,
|
|
143
|
-
linkVariant: variant.slice("link.".length)
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
return {
|
|
105
|
+
return variant?.startsWith("button.") ? {
|
|
106
|
+
buttonVariant: variant.slice(7),
|
|
107
|
+
linkVariant: null
|
|
108
|
+
} : variant?.startsWith("link.") ? {
|
|
109
|
+
buttonVariant: null,
|
|
110
|
+
linkVariant: variant.slice(5)
|
|
111
|
+
} : {
|
|
147
112
|
buttonVariant: null,
|
|
148
113
|
linkVariant: null
|
|
149
114
|
};
|
|
@@ -154,7 +119,7 @@ function breadcrumbLinkClasses({
|
|
|
154
119
|
size,
|
|
155
120
|
variant = "default"
|
|
156
121
|
}) {
|
|
157
|
-
|
|
122
|
+
let { buttonVariant, linkVariant } = resolveBreadcrumbVariant(variant);
|
|
158
123
|
return cn(
|
|
159
124
|
buttonVariant ? buttonVariants({ size, variant: buttonVariant }) : linkVariant ? linkVariants({ color: "default", size, variant: linkVariant }) : breadcrumbDefaultVariants({ size }),
|
|
160
125
|
active ? "font-medium" : void 0,
|
|
@@ -226,7 +191,7 @@ function BreadcrumbPage({
|
|
|
226
191
|
{
|
|
227
192
|
"aria-current": "page",
|
|
228
193
|
className: cn(
|
|
229
|
-
variant ? breadcrumbLinkClasses({ active:
|
|
194
|
+
variant ? breadcrumbLinkClasses({ active: !0, size, variant }) : "max-w-full truncate font-medium text-foreground-1 opacity-100",
|
|
230
195
|
breadcrumbPageVariants({ size }),
|
|
231
196
|
className
|
|
232
197
|
),
|
|
@@ -268,7 +233,7 @@ function BreadcrumbEllipsis({
|
|
|
268
233
|
role: "presentation",
|
|
269
234
|
...props,
|
|
270
235
|
children: [
|
|
271
|
-
"
|
|
236
|
+
"\u2026",
|
|
272
237
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
273
238
|
]
|
|
274
239
|
}
|
|
@@ -327,24 +292,10 @@ function BreadcrumbTrailMenu({
|
|
|
327
292
|
}
|
|
328
293
|
function BreadcrumbTrail({
|
|
329
294
|
className,
|
|
330
|
-
collapsed = false,
|
|
331
295
|
items,
|
|
332
|
-
menuLabel = "Show hidden breadcrumb links",
|
|
333
296
|
size,
|
|
334
297
|
variant
|
|
335
298
|
}) {
|
|
336
|
-
if (collapsed) {
|
|
337
|
-
return /* @__PURE__ */ jsx(
|
|
338
|
-
CollapsibleBreadcrumbTrail,
|
|
339
|
-
{
|
|
340
|
-
className,
|
|
341
|
-
items,
|
|
342
|
-
menuLabel,
|
|
343
|
-
size,
|
|
344
|
-
variant
|
|
345
|
-
}
|
|
346
|
-
);
|
|
347
|
-
}
|
|
348
299
|
return /* @__PURE__ */ jsx(Breadcrumb, { className, children: /* @__PURE__ */ jsx(BreadcrumbList, { className: "flex-nowrap overflow-hidden", size, children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
349
300
|
index > 0 ? /* @__PURE__ */ jsx(BreadcrumbSeparator, { className: "shrink-0", size }) : null,
|
|
350
301
|
/* @__PURE__ */ jsx(BreadcrumbTrailEntry, { item, size, variant })
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { ButtonVariantProps } from './button.js';
|
|
4
|
-
import {
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { Separator } from '@base-ui/react/separator';
|
|
6
5
|
import { ComponentPropsWithoutRef } from 'react';
|
|
7
|
-
import '
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
|
|
8
|
+
type SeparatorProps = ComponentPropsWithoutRef<typeof Separator>;
|
|
8
9
|
|
|
9
10
|
declare const buttonGroupVariants: (props?: ({
|
|
10
11
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -1,37 +1,14 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import { buttonVariants } from "
|
|
3
|
-
import { Separator } from "
|
|
4
|
-
|
|
5
|
-
// src/utils/cn.ts
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
8
|
-
var twMerge = extendTailwindMerge({
|
|
9
|
-
extend: {
|
|
10
|
-
classGroups: {
|
|
11
|
-
z: [
|
|
12
|
-
"z-content",
|
|
13
|
-
"z-nav",
|
|
14
|
-
"z-overlay",
|
|
15
|
-
"z-modal",
|
|
16
|
-
"z-search",
|
|
17
|
-
"z-toast",
|
|
18
|
-
"z-progress"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
function cn(...inputs) {
|
|
24
|
-
return twMerge(clsx(inputs));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// src/kernel/components/ui/button-group.tsx
|
|
1
|
+
// src/components/ui/button-group.tsx
|
|
2
|
+
import { buttonVariants } from "@publish.os/nextjs/kernel/components/ui/button";
|
|
3
|
+
import { Separator } from "@publish.os/nextjs/kernel/components/ui/separator";
|
|
4
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
28
5
|
import { cva } from "class-variance-authority";
|
|
29
6
|
import { jsx } from "react/jsx-runtime";
|
|
30
7
|
var buttonGroupVariants = cva(
|
|
31
8
|
[
|
|
32
9
|
"inline-flex w-fit items-stretch",
|
|
33
10
|
"has-[>[data-slot=button-group]]:gap-2",
|
|
34
|
-
"[&>*]:focus-visible:relative [&>*]:focus-visible:z-
|
|
11
|
+
"[&>*]:focus-visible:relative [&>*]:focus-visible:z-content",
|
|
35
12
|
"[&>input]:flex-1",
|
|
36
13
|
"[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit"
|
|
37
14
|
].join(" "),
|
|
@@ -52,7 +29,7 @@ function ButtonGroup({
|
|
|
52
29
|
orientation,
|
|
53
30
|
...props
|
|
54
31
|
}) {
|
|
55
|
-
|
|
32
|
+
let resolvedOrientation = orientation ?? "horizontal";
|
|
56
33
|
return (
|
|
57
34
|
// biome-ignore lint/a11y/useSemanticElements: ButtonGroup can wrap buttons, links, inputs, and composite triggers; fieldset semantics would be too narrow.
|
|
58
35
|
/* @__PURE__ */ jsx(
|
|
@@ -80,7 +57,7 @@ function ButtonGroupText({
|
|
|
80
57
|
"div",
|
|
81
58
|
{
|
|
82
59
|
className: cn(
|
|
83
|
-
buttonVariants({ iconOnly:
|
|
60
|
+
buttonVariants({ iconOnly: !1, size, variant }),
|
|
84
61
|
"pointer-events-none",
|
|
85
62
|
className
|
|
86
63
|
),
|
|
@@ -1,45 +1,22 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/components/ui/button.tsx
|
|
2
2
|
import { Button as BaseButton } from "@base-ui/react/button";
|
|
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/button.tsx
|
|
3
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
27
4
|
import { cva } from "class-variance-authority";
|
|
28
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
6
|
var buttonVariants = cva(
|
|
30
7
|
[
|
|
31
8
|
"inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-button border font-medium leading-none",
|
|
32
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
9
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
33
10
|
"disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
34
11
|
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
35
12
|
].join(" "),
|
|
36
13
|
{
|
|
37
14
|
variants: {
|
|
38
15
|
variant: {
|
|
39
|
-
solid: "border-accent-
|
|
40
|
-
soft: "border-0 bg-accent-
|
|
41
|
-
outline: "border-stroke-2 bg-transparent text-foreground-1 hover:not-data-disabled:bg-surface-hover active:not-data-disabled:bg-surface-active data-[state=path-active]:border-accent-
|
|
42
|
-
ghost: "border-transparent bg-transparent text-foreground-2 hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1 active:not-data-disabled:bg-surface-active data-[state=path-active]:bg-accent-
|
|
16
|
+
solid: "border-accent-1 bg-accent-1 text-accent-1-foreground shadow-sm hover:not-data-disabled:border-accent-1-hover hover:not-data-disabled:bg-accent-1-hover active:not-data-disabled:border-accent-1-active active:not-data-disabled:bg-accent-1-active data-[state=path-active]:border-accent-1-hover data-[state=path-active]:bg-accent-1-hover",
|
|
17
|
+
soft: "border-0 bg-accent-2 text-accent-1 hover:not-data-disabled:bg-accent-2-hover active:not-data-disabled:bg-accent-2-active data-[state=path-active]:bg-accent-2-active",
|
|
18
|
+
outline: "border-stroke-2 bg-transparent text-foreground-1 hover:not-data-disabled:bg-surface-hover active:not-data-disabled:bg-surface-active data-[state=path-active]:border-accent-2-stroke data-[state=path-active]:bg-accent-2-hover data-[state=path-active]:text-accent-1",
|
|
19
|
+
ghost: "border-transparent bg-transparent text-foreground-2 hover:not-data-disabled:bg-surface-hover hover:not-data-disabled:text-foreground-1 active:not-data-disabled:bg-surface-active data-[state=path-active]:bg-accent-2-hover data-[state=path-active]:text-accent-1"
|
|
43
20
|
},
|
|
44
21
|
size: {
|
|
45
22
|
xs: "h-7 gap-1.5 px-2 text-xs",
|
|
@@ -54,14 +31,14 @@ var buttonVariants = cva(
|
|
|
54
31
|
}
|
|
55
32
|
},
|
|
56
33
|
compoundVariants: [
|
|
57
|
-
{ className: "size-7 p-0", iconOnly:
|
|
58
|
-
{ className: "size-8 p-0", iconOnly:
|
|
59
|
-
{ className: "size-10 p-0", iconOnly:
|
|
60
|
-
{ className: "size-11 p-0", iconOnly:
|
|
61
|
-
{ className: "size-12 p-0", iconOnly:
|
|
34
|
+
{ className: "size-7 p-0", iconOnly: !0, size: "xs" },
|
|
35
|
+
{ className: "size-8 p-0", iconOnly: !0, size: "sm" },
|
|
36
|
+
{ className: "size-10 p-0", iconOnly: !0, size: "md" },
|
|
37
|
+
{ className: "size-11 p-0", iconOnly: !0, size: "lg" },
|
|
38
|
+
{ className: "size-12 p-0", iconOnly: !0, size: "xl" }
|
|
62
39
|
],
|
|
63
40
|
defaultVariants: {
|
|
64
|
-
iconOnly:
|
|
41
|
+
iconOnly: !1,
|
|
65
42
|
size: "md",
|
|
66
43
|
variant: "solid"
|
|
67
44
|
}
|
|
@@ -4,8 +4,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import { HTMLAttributes } from 'react';
|
|
5
5
|
|
|
6
6
|
declare const cardVariants: (props?: ({
|
|
7
|
-
variant?: "ghost" | "
|
|
8
|
-
padding?: "
|
|
7
|
+
variant?: "ghost" | "default" | "elevated" | "inset" | null | undefined;
|
|
8
|
+
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
type CardProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
|
|
11
11
|
declare function Card({ className, padding, variant, ...props }: CardProps): 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/card.tsx
|
|
1
|
+
// src/components/ui/card.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 cardVariants = cva("rounded-card border text-foreground-1", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentPropsWithRef } from 'react';
|
|
4
4
|
|
|
5
|
-
type DialogProps =
|
|
6
|
-
type DialogTriggerProps =
|
|
7
|
-
type DialogPortalProps =
|
|
8
|
-
type DialogBackdropProps =
|
|
9
|
-
type DialogPopupProps =
|
|
10
|
-
type DialogTitleProps =
|
|
11
|
-
type DialogDescriptionProps =
|
|
12
|
-
type DialogCloseProps =
|
|
5
|
+
type DialogProps = ComponentPropsWithRef<typeof Dialog$1.Root>;
|
|
6
|
+
type DialogTriggerProps = ComponentPropsWithRef<typeof Dialog$1.Trigger>;
|
|
7
|
+
type DialogPortalProps = ComponentPropsWithRef<typeof Dialog$1.Portal>;
|
|
8
|
+
type DialogBackdropProps = ComponentPropsWithRef<typeof Dialog$1.Backdrop>;
|
|
9
|
+
type DialogPopupProps = ComponentPropsWithRef<typeof Dialog$1.Popup>;
|
|
10
|
+
type DialogTitleProps = ComponentPropsWithRef<typeof Dialog$1.Title>;
|
|
11
|
+
type DialogDescriptionProps = ComponentPropsWithRef<typeof Dialog$1.Description>;
|
|
12
|
+
type DialogCloseProps = ComponentPropsWithRef<typeof Dialog$1.Close>;
|
|
13
13
|
declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
14
14
|
declare function DialogTrigger({ className, ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
15
15
|
declare function DialogPortal(props: DialogPortalProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
// src/
|
|
3
|
+
// src/components/ui/dialog.tsx
|
|
4
4
|
import { Dialog as BaseDialog } from "@base-ui/react/dialog";
|
|
5
|
-
|
|
6
|
-
|
|
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/dialog.tsx
|
|
5
|
+
import { useThemeScope } from "@publish.os/nextjs/theme-scope";
|
|
6
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
29
7
|
import { jsx } from "react/jsx-runtime";
|
|
30
8
|
function Dialog(props) {
|
|
31
9
|
return /* @__PURE__ */ jsx(BaseDialog.Root, { ...props });
|
|
@@ -35,7 +13,7 @@ function DialogTrigger({ className, ...props }) {
|
|
|
35
13
|
BaseDialog.Trigger,
|
|
36
14
|
{
|
|
37
15
|
className: cn(
|
|
38
|
-
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
16
|
+
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
39
17
|
className
|
|
40
18
|
),
|
|
41
19
|
...props
|
|
@@ -43,14 +21,15 @@ function DialogTrigger({ className, ...props }) {
|
|
|
43
21
|
);
|
|
44
22
|
}
|
|
45
23
|
function DialogPortal(props) {
|
|
46
|
-
|
|
24
|
+
let themeScope = useThemeScope();
|
|
25
|
+
return /* @__PURE__ */ jsx(BaseDialog.Portal, { ...props, ...themeScope });
|
|
47
26
|
}
|
|
48
27
|
function DialogBackdrop({ className, ...props }) {
|
|
49
28
|
return /* @__PURE__ */ jsx(
|
|
50
29
|
BaseDialog.Backdrop,
|
|
51
30
|
{
|
|
52
31
|
className: cn(
|
|
53
|
-
"animate-overlay fixed inset-0 z-modal h-dvh w-dvw bg-
|
|
32
|
+
"animate-overlay fixed inset-0 z-modal h-dvh w-dvw bg-dialog-backdrop",
|
|
54
33
|
className
|
|
55
34
|
),
|
|
56
35
|
...props
|
|
@@ -62,7 +41,7 @@ function DialogPopup({ className, ...props }) {
|
|
|
62
41
|
BaseDialog.Popup,
|
|
63
42
|
{
|
|
64
43
|
className: cn(
|
|
65
|
-
"animate-dialog-popup fixed left-1/2 top-1/2 z-modal w-[min(92vw,32rem)] -translate-x-1/2 -translate-y-1/2 rounded-dialog border border-stroke-2 bg-surface-1 p-6 text-foreground-1 shadow-
|
|
44
|
+
"animate-dialog-popup fixed left-1/2 top-1/2 z-modal w-[min(92vw,32rem)] -translate-x-1/2 -translate-y-1/2 rounded-dialog border border-dialog-stroke-2 bg-dialog-surface-1 p-6 text-dialog-foreground-1 shadow-dialog outline-none",
|
|
66
45
|
className
|
|
67
46
|
),
|
|
68
47
|
...props
|
|
@@ -74,7 +53,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
74
53
|
BaseDialog.Title,
|
|
75
54
|
{
|
|
76
55
|
className: cn(
|
|
77
|
-
"text-lg font-semibold tracking-tight text-foreground-1",
|
|
56
|
+
"text-lg font-semibold tracking-tight text-dialog-foreground-1",
|
|
78
57
|
className
|
|
79
58
|
),
|
|
80
59
|
...props
|
|
@@ -88,7 +67,10 @@ function DialogDescription({
|
|
|
88
67
|
return /* @__PURE__ */ jsx(
|
|
89
68
|
BaseDialog.Description,
|
|
90
69
|
{
|
|
91
|
-
className: cn(
|
|
70
|
+
className: cn(
|
|
71
|
+
"mt-2 text-sm leading-6 text-dialog-foreground-2",
|
|
72
|
+
className
|
|
73
|
+
),
|
|
92
74
|
...props
|
|
93
75
|
}
|
|
94
76
|
);
|
|
@@ -98,8 +80,8 @@ function DialogClose({ className, ...props }) {
|
|
|
98
80
|
BaseDialog.Close,
|
|
99
81
|
{
|
|
100
82
|
className: cn(
|
|
101
|
-
"inline-flex size-8 items-center justify-center rounded-button text-foreground-3 transition-colors hover:bg-surface-
|
|
102
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
83
|
+
"inline-flex size-8 items-center justify-center rounded-button text-dialog-foreground-3 transition-colors hover:bg-dialog-surface-3 hover:text-dialog-foreground-1",
|
|
84
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
103
85
|
className
|
|
104
86
|
),
|
|
105
87
|
...props
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentPropsWithRef } from 'react';
|
|
4
4
|
|
|
5
|
-
type DrawerProps =
|
|
6
|
-
type DrawerTriggerProps =
|
|
7
|
-
type DrawerPortalProps =
|
|
8
|
-
type DrawerBackdropProps =
|
|
9
|
-
type DrawerViewportProps =
|
|
10
|
-
type DrawerPopupProps =
|
|
11
|
-
type DrawerTitleProps =
|
|
12
|
-
type DrawerDescriptionProps =
|
|
13
|
-
type DrawerCloseProps =
|
|
5
|
+
type DrawerProps = ComponentPropsWithRef<typeof Drawer$1.Root>;
|
|
6
|
+
type DrawerTriggerProps = ComponentPropsWithRef<typeof Drawer$1.Trigger>;
|
|
7
|
+
type DrawerPortalProps = ComponentPropsWithRef<typeof Drawer$1.Portal>;
|
|
8
|
+
type DrawerBackdropProps = ComponentPropsWithRef<typeof Drawer$1.Backdrop>;
|
|
9
|
+
type DrawerViewportProps = ComponentPropsWithRef<typeof Drawer$1.Viewport>;
|
|
10
|
+
type DrawerPopupProps = ComponentPropsWithRef<typeof Drawer$1.Popup>;
|
|
11
|
+
type DrawerTitleProps = ComponentPropsWithRef<typeof Drawer$1.Title>;
|
|
12
|
+
type DrawerDescriptionProps = ComponentPropsWithRef<typeof Drawer$1.Description>;
|
|
13
|
+
type DrawerCloseProps = ComponentPropsWithRef<typeof Drawer$1.Close>;
|
|
14
14
|
declare function Drawer(props: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
15
15
|
declare function DrawerTrigger({ className, ...props }: DrawerTriggerProps): react_jsx_runtime.JSX.Element;
|
|
16
16
|
declare function DrawerPortal(props: DrawerPortalProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
// src/
|
|
3
|
+
// src/components/ui/drawer.tsx
|
|
4
4
|
import { Drawer as BaseDrawer } from "@base-ui/react/drawer";
|
|
5
|
-
|
|
6
|
-
|
|
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/drawer.tsx
|
|
5
|
+
import { useThemeScope } from "@publish.os/nextjs/theme-scope";
|
|
6
|
+
import { cn } from "@publish.os/nextjs/utils/cn";
|
|
29
7
|
import { jsx } from "react/jsx-runtime";
|
|
30
8
|
function Drawer(props) {
|
|
31
9
|
return /* @__PURE__ */ jsx(BaseDrawer.Root, { ...props });
|
|
@@ -35,7 +13,7 @@ function DrawerTrigger({ className, ...props }) {
|
|
|
35
13
|
BaseDrawer.Trigger,
|
|
36
14
|
{
|
|
37
15
|
className: cn(
|
|
38
|
-
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
16
|
+
"rounded-button focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
39
17
|
className
|
|
40
18
|
),
|
|
41
19
|
...props
|
|
@@ -43,14 +21,15 @@ function DrawerTrigger({ className, ...props }) {
|
|
|
43
21
|
);
|
|
44
22
|
}
|
|
45
23
|
function DrawerPortal(props) {
|
|
46
|
-
|
|
24
|
+
let themeScope = useThemeScope();
|
|
25
|
+
return /* @__PURE__ */ jsx(BaseDrawer.Portal, { ...props, ...themeScope });
|
|
47
26
|
}
|
|
48
27
|
function DrawerBackdrop({ className, ...props }) {
|
|
49
28
|
return /* @__PURE__ */ jsx(
|
|
50
29
|
BaseDrawer.Backdrop,
|
|
51
30
|
{
|
|
52
31
|
className: cn(
|
|
53
|
-
"animate-overlay fixed inset-0 z-modal h-dvh w-dvw bg-
|
|
32
|
+
"animate-overlay fixed inset-0 z-modal h-dvh w-dvw bg-drawer-backdrop",
|
|
54
33
|
className
|
|
55
34
|
),
|
|
56
35
|
...props
|
|
@@ -74,7 +53,7 @@ function DrawerPopup({ className, ...props }) {
|
|
|
74
53
|
BaseDrawer.Popup,
|
|
75
54
|
{
|
|
76
55
|
className: cn(
|
|
77
|
-
"animate-drawer-popup pointer-events-auto fixed bottom-0 right-0 top-0 w-[min(100vw,20rem)] border-l border-stroke-2 bg-surface-1 p-6 text-foreground-1 shadow-
|
|
56
|
+
"animate-drawer-popup pointer-events-auto fixed bottom-0 right-0 top-0 w-[min(100vw,20rem)] border-l border-drawer-stroke-2 bg-drawer-surface-1 p-6 text-drawer-foreground-1 shadow-drawer outline-none",
|
|
78
57
|
className
|
|
79
58
|
),
|
|
80
59
|
...props
|
|
@@ -86,7 +65,7 @@ function DrawerTitle({ className, ...props }) {
|
|
|
86
65
|
BaseDrawer.Title,
|
|
87
66
|
{
|
|
88
67
|
className: cn(
|
|
89
|
-
"text-lg font-semibold tracking-tight text-foreground-1",
|
|
68
|
+
"text-lg font-semibold tracking-tight text-drawer-foreground-1",
|
|
90
69
|
className
|
|
91
70
|
),
|
|
92
71
|
...props
|
|
@@ -100,7 +79,10 @@ function DrawerDescription({
|
|
|
100
79
|
return /* @__PURE__ */ jsx(
|
|
101
80
|
BaseDrawer.Description,
|
|
102
81
|
{
|
|
103
|
-
className: cn(
|
|
82
|
+
className: cn(
|
|
83
|
+
"mt-2 text-sm leading-6 text-drawer-foreground-2",
|
|
84
|
+
className
|
|
85
|
+
),
|
|
104
86
|
...props
|
|
105
87
|
}
|
|
106
88
|
);
|
|
@@ -110,8 +92,8 @@ function DrawerClose({ className, ...props }) {
|
|
|
110
92
|
BaseDrawer.Close,
|
|
111
93
|
{
|
|
112
94
|
className: cn(
|
|
113
|
-
"inline-flex size-8 items-center justify-center rounded-button text-foreground-3 transition-colors hover:bg-surface-
|
|
114
|
-
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-
|
|
95
|
+
"inline-flex size-8 items-center justify-center rounded-button text-drawer-foreground-3 transition-colors hover:bg-drawer-surface-3 hover:text-drawer-foreground-1",
|
|
96
|
+
"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-focus-stroke",
|
|
115
97
|
className
|
|
116
98
|
),
|
|
117
99
|
...props
|