@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
package/README.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# @publish.os/nextjs
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
pins its exact version in `publish.os.config.json`; the CLI obtains and verifies
|
|
5
|
-
it automatically. Do not install it into the host application.
|
|
3
|
+
> **Beta:** publish.os is in beta. Commands and package interfaces can change before the stable release.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
The publish.os CLI installs and manages this framework package.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
[Read the `@publish.os/cli` README](https://www.npmjs.com/package/@publish.os/cli).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Sidebar } from "@components/blocks/sidebar";
|
|
2
|
+
import type { LayoutProps } from "@publish.os/nextjs/types";
|
|
3
|
+
import { log } from "@source/_internal/logger";
|
|
4
|
+
|
|
5
|
+
export default function GroupLayout(props: LayoutProps) {
|
|
6
|
+
const { children, currentPath, group, node, site, tree } = props;
|
|
7
|
+
log.debug("[default:group-layout]", { currentPath, group });
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<section className="mx-auto grid min-h-[calc(100vh_-_var(--layout-global-nav-height))] w-full max-w-(--layout-site-max-width) grid-cols-1 border-x border-stroke-3 bg-surface-1 md:grid-cols-[var(--layout-sidebar-width)_minmax(0,1fr)] xl:grid-cols-[var(--layout-sidebar-width)_minmax(0,1fr)_var(--layout-toc-width)] supports-[height:100dvh]:min-h-[calc(100dvh_-_var(--layout-global-nav-height))] supports-[top:anchor-size(--global-navbar_height)]:min-h-[calc(100vh_-_anchor-size(--global-navbar_height,3.5rem))] supports-[top:anchor-size(--global-navbar_height)]:supports-[height:100dvh]:min-h-[calc(100dvh_-_anchor-size(--global-navbar_height,3.5rem))]">
|
|
11
|
+
<aside className="fixed top-[var(--layout-global-nav-height)] z-content hidden h-[calc(100vh_-_var(--layout-global-nav-height))] min-h-0 border-l border-stroke-3 bg-surface-1 md:left-[max(0px,calc((100%-var(--layout-site-max-width))/2))] md:flex md:w-(--layout-sidebar-width) supports-[height:100dvh]:h-[calc(100dvh_-_var(--layout-global-nav-height))] supports-[top:anchor-size(--global-navbar_height)]:top-[anchor-size(--global-navbar_height,3.5rem)] supports-[top:anchor-size(--global-navbar_height)]:h-[calc(100vh_-_anchor-size(--global-navbar_height,3.5rem))] supports-[top:anchor-size(--global-navbar_height)]:supports-[height:100dvh]:h-[calc(100dvh_-_anchor-size(--global-navbar_height,3.5rem))]">
|
|
12
|
+
<Sidebar currentPath={currentPath} title={node.title} tree={tree} />
|
|
13
|
+
</aside>
|
|
14
|
+
<main className="flex min-h-0 min-w-0 flex-1 flex-col bg-surface-1 md:col-start-2">
|
|
15
|
+
{children}
|
|
16
|
+
</main>
|
|
17
|
+
<aside
|
|
18
|
+
aria-label={`${site.name} secondary navigation`}
|
|
19
|
+
className="hidden bg-surface-1 xl:block"
|
|
20
|
+
/>
|
|
21
|
+
</section>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AgentActions } from "@components/blocks/AgentActions";
|
|
2
|
+
import { NextPrev } from "@components/blocks/next-prev";
|
|
3
|
+
import { MDX } from "@publish.os/nextjs/mdx";
|
|
4
|
+
import type { PageProps } from "@publish.os/nextjs/types";
|
|
5
|
+
import { log } from "@source/_internal/logger";
|
|
6
|
+
import { mdxComponents } from "@source/_internal/mdx-components.generated";
|
|
7
|
+
|
|
8
|
+
export default async function LeafPage(props: PageProps) {
|
|
9
|
+
log.debug("[default:leaf-page]", props);
|
|
10
|
+
const sourceUrl =
|
|
11
|
+
typeof props.page.meta.sourceUrl === "string"
|
|
12
|
+
? props.page.meta.sourceUrl
|
|
13
|
+
: typeof props.page.meta.githubUrl === "string"
|
|
14
|
+
? props.page.meta.githubUrl
|
|
15
|
+
: undefined;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className="flex min-h-[calc(100vh_-_var(--layout-global-nav-height))] min-w-0 flex-1 flex-col px-6 py-10 text-foreground-1 lg:px-10 supports-[height:100dvh]:min-h-[calc(100dvh_-_var(--layout-global-nav-height))] supports-[top:anchor-size(--global-navbar_height)]:min-h-[calc(100vh_-_anchor-size(--global-navbar_height,3.5rem))] supports-[top:anchor-size(--global-navbar_height)]:supports-[height:100dvh]:min-h-[calc(100dvh_-_anchor-size(--global-navbar_height,3.5rem))]">
|
|
19
|
+
<div className="mx-auto flex w-full max-w-(--layout-content-max-width) flex-1 flex-col">
|
|
20
|
+
<article className="min-h-0 min-w-0 flex-1">
|
|
21
|
+
<h1 className="text-3xl font-semibold tracking-tight text-foreground-1">
|
|
22
|
+
{props.page.title}
|
|
23
|
+
</h1>
|
|
24
|
+
<AgentActions
|
|
25
|
+
className="mt-4"
|
|
26
|
+
markdown={props.page.body}
|
|
27
|
+
pagePath={props.currentPath}
|
|
28
|
+
siteUrl={props.site.url}
|
|
29
|
+
sourceUrl={sourceUrl}
|
|
30
|
+
/>
|
|
31
|
+
<div className="mt-6">
|
|
32
|
+
<MDX
|
|
33
|
+
components={mdxComponents}
|
|
34
|
+
content={props.page.body}
|
|
35
|
+
pageId={props.page.fileID}
|
|
36
|
+
slug={props.page.slug}
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</article>
|
|
40
|
+
<NextPrev
|
|
41
|
+
className="mt-auto pt-12"
|
|
42
|
+
currentPath={props.currentPath}
|
|
43
|
+
tree={props.tree}
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Link } from "@components/ui/link";
|
|
2
|
+
import type {
|
|
3
|
+
IndexPageProps,
|
|
4
|
+
PageNode,
|
|
5
|
+
TreeNode,
|
|
6
|
+
} from "@publish.os/nextjs/types";
|
|
7
|
+
import { log } from "@source/_internal/logger";
|
|
8
|
+
|
|
9
|
+
function pageNodes(nodes: TreeNode[]): PageNode[] {
|
|
10
|
+
return nodes.flatMap((node) => {
|
|
11
|
+
if (node.type === "page") return [node];
|
|
12
|
+
if (node.type === "section" || node.type === "folder") {
|
|
13
|
+
return pageNodes(node.children);
|
|
14
|
+
}
|
|
15
|
+
return [];
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default function GroupPage(props: IndexPageProps) {
|
|
20
|
+
log.debug("[default:group-page]", props);
|
|
21
|
+
const { node, tree } = props;
|
|
22
|
+
const pages = pageNodes(tree);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<main className="flex min-h-[calc(100vh_-_var(--layout-global-nav-height))] min-w-0 items-start justify-center px-6 pb-16 pt-[clamp(5rem,18vh,10rem)] text-foreground-1 lg:px-10 supports-[height:100dvh]:min-h-[calc(100dvh_-_var(--layout-global-nav-height))] supports-[top:anchor-size(--global-navbar_height)]:min-h-[calc(100vh_-_anchor-size(--global-navbar_height,3.5rem))] supports-[top:anchor-size(--global-navbar_height)]:supports-[height:100dvh]:min-h-[calc(100dvh_-_anchor-size(--global-navbar_height,3.5rem))]">
|
|
26
|
+
<div className="w-full max-w-md">
|
|
27
|
+
<p className="mb-6 text-sm font-semibold text-foreground-1">
|
|
28
|
+
{node.title}
|
|
29
|
+
</p>
|
|
30
|
+
<h1 className="max-w-sm text-balance text-xl font-semibold leading-7 tracking-tight text-foreground-1">
|
|
31
|
+
Browse the pages in this section.
|
|
32
|
+
</h1>
|
|
33
|
+
|
|
34
|
+
{pages.length > 0 ? (
|
|
35
|
+
<nav aria-label={`${node.title} pages`} className="mt-8">
|
|
36
|
+
<ul className="flex flex-col gap-2 text-sm">
|
|
37
|
+
{pages.map((page) => (
|
|
38
|
+
<li key={`${page.group}:${page.fileID}`}>
|
|
39
|
+
<Link href={page.path} rightIcon="->" size="sm">
|
|
40
|
+
{page.title}
|
|
41
|
+
</Link>
|
|
42
|
+
</li>
|
|
43
|
+
))}
|
|
44
|
+
</ul>
|
|
45
|
+
</nav>
|
|
46
|
+
) : null}
|
|
47
|
+
</div>
|
|
48
|
+
</main>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Generated by the PublishOS framework - do not edit.
|
|
2
|
+
|
|
3
|
+
import { dirname } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const projectRoot = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
|
|
8
|
+
/** @type {import("next").NextConfig} */
|
|
9
|
+
export default {
|
|
10
|
+
cacheComponents: true,
|
|
11
|
+
turbopack: {
|
|
12
|
+
resolveAlias: {
|
|
13
|
+
"@publish.os/nextjs/kernel/framework-icons":
|
|
14
|
+
"./source/.publishos/framework-icons.generated.tsx",
|
|
15
|
+
},
|
|
16
|
+
root: projectRoot,
|
|
17
|
+
},
|
|
18
|
+
experimental: {
|
|
19
|
+
optimizePackageImports: [
|
|
20
|
+
"@phosphor-icons/react",
|
|
21
|
+
"@tabler/icons-react",
|
|
22
|
+
"lucide-react",
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
images: {
|
|
26
|
+
dangerouslyAllowSVG: false,
|
|
27
|
+
deviceSizes: [640, 828, 1080, 1200, 1600, 1920, 2560, 3840],
|
|
28
|
+
formats: ["image/webp"],
|
|
29
|
+
imageSizes: [32, 48, 64, 96, 128, 256, 384],
|
|
30
|
+
localPatterns: [
|
|
31
|
+
{ pathname: "/_publishos/assets/**/images/**", search: "" },
|
|
32
|
+
{ pathname: "/assets/images/**", search: "" },
|
|
33
|
+
],
|
|
34
|
+
minimumCacheTTL: 2678400,
|
|
35
|
+
qualities: [50, 60, 75, 85, 95, 100],
|
|
36
|
+
},
|
|
37
|
+
cacheLife: {
|
|
38
|
+
// Published content changes with each build, which gets new use-cache keys.
|
|
39
|
+
page: {
|
|
40
|
+
stale: 60 * 5,
|
|
41
|
+
revalidate: 60 * 60 * 24 * 30,
|
|
42
|
+
expire: 60 * 60 * 24 * 365,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"baseUrl": ".",
|
|
17
|
+
"paths": {
|
|
18
|
+
"@app/*": ["./app/*"],
|
|
19
|
+
"@publish.os/nextjs/icons": ["./source/.publishos/icons.generated"],
|
|
20
|
+
"@publish.os/nextjs/kernel/framework-icons": [
|
|
21
|
+
"./source/.publishos/framework-icons.generated"
|
|
22
|
+
],
|
|
23
|
+
"@components/*": [
|
|
24
|
+
"./source/components/*",
|
|
25
|
+
"./node_modules/@publish.os/nextjs/dist/kernel/components/*"
|
|
26
|
+
],
|
|
27
|
+
"@source/*": ["./source/*"],
|
|
28
|
+
"@manifest": ["./manifest.generated"]
|
|
29
|
+
},
|
|
30
|
+
"plugins": [{ "name": "next" }]
|
|
31
|
+
},
|
|
32
|
+
"include": [
|
|
33
|
+
"source/**/*",
|
|
34
|
+
"app/**/*",
|
|
35
|
+
"next-env.d.ts",
|
|
36
|
+
"manifest.generated.ts",
|
|
37
|
+
".next/types/**/*.ts",
|
|
38
|
+
".next/dev/types/**/*.ts"
|
|
39
|
+
],
|
|
40
|
+
"exclude": ["node_modules"]
|
|
41
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
* Motion defaults
|
|
4
|
+
* Keep these short and composited. Components use Base UI data attributes
|
|
5
|
+
* for enter/exit states and animate only opacity/transform by default.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
--animation-duration-fast: 150ms;
|
|
9
|
+
--animation-duration-base: 200ms;
|
|
10
|
+
--animation-duration-slow: 300ms;
|
|
11
|
+
--animation-ease-in: cubic-bezier(0.32, 0, 0.67, 0);
|
|
12
|
+
--animation-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
13
|
+
--animation-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
14
|
+
--animation-ease-progress: cubic-bezier(0.21, 0.65, 0.35, 1);
|
|
15
|
+
--animation-ease-progress-exit: cubic-bezier(0.55, 0.06, 0.68, 0.19);
|
|
16
|
+
--animation-enter-scale: 0.96;
|
|
17
|
+
--animation-enter-y: 0.25rem;
|
|
18
|
+
--animation-exit-scale: 0.98;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@layer utilities {
|
|
22
|
+
.animate-overlay {
|
|
23
|
+
transition-duration: var(--animation-duration-fast);
|
|
24
|
+
transition-property: opacity;
|
|
25
|
+
transition-timing-function: var(--animation-ease-out);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.animate-overlay[data-starting-style],
|
|
29
|
+
.animate-overlay[data-ending-style] {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.animate-dialog-popup {
|
|
34
|
+
transform-origin: center;
|
|
35
|
+
transition-duration: var(--animation-duration-base);
|
|
36
|
+
transition-property: opacity, transform;
|
|
37
|
+
transition-timing-function: var(--animation-ease-out);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.animate-dialog-popup[data-starting-style] {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: scale(var(--animation-enter-scale));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.animate-dialog-popup[data-ending-style] {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transform: scale(var(--animation-exit-scale));
|
|
48
|
+
transition-timing-function: var(--animation-ease-in);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.animate-popup {
|
|
52
|
+
transform-origin: var(--transform-origin);
|
|
53
|
+
transition-duration: var(--animation-duration-base);
|
|
54
|
+
transition-property: opacity, transform;
|
|
55
|
+
transition-timing-function: var(--animation-ease-out);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.animate-popup[data-starting-style] {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
transform: translateY(calc(var(--animation-enter-y) * -0.5))
|
|
61
|
+
scale(var(--animation-enter-scale));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.animate-popup[data-ending-style] {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: translateY(calc(var(--animation-enter-y) * -0.25))
|
|
67
|
+
scale(var(--animation-exit-scale));
|
|
68
|
+
transition-timing-function: var(--animation-ease-in);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.animate-drawer-popup {
|
|
72
|
+
transition-duration: var(--animation-duration-slow);
|
|
73
|
+
transition-property: transform;
|
|
74
|
+
transition-timing-function: var(--animation-ease-out);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.animate-drawer-popup[data-starting-style],
|
|
78
|
+
.animate-drawer-popup[data-ending-style] {
|
|
79
|
+
transform: translateX(100%);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
.animate-overlay,
|
|
84
|
+
.animate-dialog-popup,
|
|
85
|
+
.animate-popup,
|
|
86
|
+
.animate-drawer-popup {
|
|
87
|
+
transition-duration: 1ms;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-dialog-surface-1: var(--dialog-surface-1);
|
|
3
|
+
--color-dialog-surface-3: var(--dialog-surface-3);
|
|
4
|
+
--color-dialog-foreground-1: var(--dialog-foreground-1);
|
|
5
|
+
--color-dialog-foreground-2: var(--dialog-foreground-2);
|
|
6
|
+
--color-dialog-foreground-3: var(--dialog-foreground-3);
|
|
7
|
+
--color-dialog-stroke-2: var(--dialog-stroke-2);
|
|
8
|
+
--color-dialog-backdrop: var(--dialog-backdrop);
|
|
9
|
+
--shadow-dialog: var(--dialog-shadow);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--dialog-surface-1: var(--floating-surface-1);
|
|
14
|
+
--dialog-surface-3: var(--floating-surface-3);
|
|
15
|
+
--dialog-foreground-1: var(--floating-foreground-1);
|
|
16
|
+
--dialog-foreground-2: var(--floating-foreground-2);
|
|
17
|
+
--dialog-foreground-3: var(--floating-foreground-3);
|
|
18
|
+
--dialog-stroke-2: var(--floating-stroke-2);
|
|
19
|
+
--dialog-backdrop: var(--backdrop);
|
|
20
|
+
--dialog-shadow: var(--border-shadow-1);
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-drawer-surface-1: var(--drawer-surface-1);
|
|
3
|
+
--color-drawer-surface-3: var(--drawer-surface-3);
|
|
4
|
+
--color-drawer-foreground-1: var(--drawer-foreground-1);
|
|
5
|
+
--color-drawer-foreground-2: var(--drawer-foreground-2);
|
|
6
|
+
--color-drawer-foreground-3: var(--drawer-foreground-3);
|
|
7
|
+
--color-drawer-stroke-2: var(--drawer-stroke-2);
|
|
8
|
+
--color-drawer-backdrop: var(--drawer-backdrop);
|
|
9
|
+
--shadow-drawer: var(--drawer-shadow);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--drawer-surface-1: var(--floating-surface-1);
|
|
14
|
+
--drawer-surface-3: var(--floating-surface-3);
|
|
15
|
+
--drawer-foreground-1: var(--floating-foreground-1);
|
|
16
|
+
--drawer-foreground-2: var(--floating-foreground-2);
|
|
17
|
+
--drawer-foreground-3: var(--floating-foreground-3);
|
|
18
|
+
--drawer-stroke-2: var(--floating-stroke-2);
|
|
19
|
+
--drawer-backdrop: var(--backdrop);
|
|
20
|
+
--drawer-shadow: var(--border-shadow-1);
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-menu-surface-1: var(--menu-surface-1);
|
|
3
|
+
--color-menu-surface-3: var(--menu-surface-3);
|
|
4
|
+
--color-menu-surface-4: var(--menu-surface-4);
|
|
5
|
+
--color-menu-foreground-1: var(--menu-foreground-1);
|
|
6
|
+
--color-menu-foreground-4: var(--menu-foreground-4);
|
|
7
|
+
--color-menu-stroke-3: var(--menu-stroke-3);
|
|
8
|
+
--color-menu-highlight-surface: var(--menu-highlight-surface);
|
|
9
|
+
--color-menu-highlight-foreground: var(--menu-highlight-foreground);
|
|
10
|
+
--shadow-menu: var(--menu-shadow);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
--menu-surface-1: var(--floating-surface-1);
|
|
15
|
+
--menu-surface-3: var(--floating-surface-3);
|
|
16
|
+
--menu-surface-4: var(--floating-surface-4);
|
|
17
|
+
--menu-foreground-1: var(--floating-foreground-1);
|
|
18
|
+
--menu-foreground-4: var(--floating-foreground-4);
|
|
19
|
+
--menu-stroke-3: var(--floating-stroke-3);
|
|
20
|
+
--menu-highlight-surface: var(--menu-surface-3);
|
|
21
|
+
--menu-highlight-foreground: var(--menu-foreground-1);
|
|
22
|
+
--menu-shadow: var(--border-shadow-2);
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-navigation-menu-surface-1: var(--navigation-menu-surface-1);
|
|
3
|
+
--color-navigation-menu-surface-3: var(--navigation-menu-surface-3);
|
|
4
|
+
--color-navigation-menu-foreground-1: var(--navigation-menu-foreground-1);
|
|
5
|
+
--color-navigation-menu-foreground-4: var(--navigation-menu-foreground-4);
|
|
6
|
+
--color-navigation-menu-stroke-3: var(--navigation-menu-stroke-3);
|
|
7
|
+
--color-navigation-menu-highlight-surface: var(
|
|
8
|
+
--navigation-menu-highlight-surface
|
|
9
|
+
);
|
|
10
|
+
--color-navigation-menu-highlight-foreground: var(
|
|
11
|
+
--navigation-menu-highlight-foreground
|
|
12
|
+
);
|
|
13
|
+
--shadow-navigation-menu: var(--navigation-menu-shadow);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
--navigation-menu-surface-1: var(--floating-surface-1);
|
|
18
|
+
--navigation-menu-surface-3: var(--floating-surface-3);
|
|
19
|
+
--navigation-menu-foreground-1: var(--floating-foreground-1);
|
|
20
|
+
--navigation-menu-foreground-4: var(--floating-foreground-4);
|
|
21
|
+
--navigation-menu-stroke-3: var(--floating-stroke-3);
|
|
22
|
+
--navigation-menu-highlight-surface: var(--navigation-menu-surface-3);
|
|
23
|
+
--navigation-menu-highlight-foreground: var(--navigation-menu-foreground-1);
|
|
24
|
+
--navigation-menu-shadow: var(--border-shadow-2);
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-popover-surface-1: var(--popover-surface-1);
|
|
3
|
+
--color-popover-surface-3: var(--popover-surface-3);
|
|
4
|
+
--color-popover-foreground-1: var(--popover-foreground-1);
|
|
5
|
+
--color-popover-foreground-4: var(--popover-foreground-4);
|
|
6
|
+
--color-popover-stroke-3: var(--popover-stroke-3);
|
|
7
|
+
--shadow-popover: var(--popover-shadow);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--popover-surface-1: var(--floating-surface-1);
|
|
12
|
+
--popover-surface-3: var(--floating-surface-3);
|
|
13
|
+
--popover-foreground-1: var(--floating-foreground-1);
|
|
14
|
+
--popover-foreground-4: var(--floating-foreground-4);
|
|
15
|
+
--popover-stroke-3: var(--floating-stroke-3);
|
|
16
|
+
--popover-shadow: var(--border-shadow-2);
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-select-surface-1: var(--select-surface-1);
|
|
3
|
+
--color-select-surface-3: var(--select-surface-3);
|
|
4
|
+
--color-select-surface-4: var(--select-surface-4);
|
|
5
|
+
--color-select-foreground-1: var(--select-foreground-1);
|
|
6
|
+
--color-select-foreground-4: var(--select-foreground-4);
|
|
7
|
+
--color-select-stroke-3: var(--select-stroke-3);
|
|
8
|
+
--color-select-highlight-surface: var(--select-highlight-surface);
|
|
9
|
+
--color-select-highlight-foreground: var(--select-highlight-foreground);
|
|
10
|
+
--shadow-select: var(--select-shadow);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
--select-surface-1: var(--floating-surface-1);
|
|
15
|
+
--select-surface-3: var(--floating-surface-3);
|
|
16
|
+
--select-surface-4: var(--floating-surface-4);
|
|
17
|
+
--select-foreground-1: var(--floating-foreground-1);
|
|
18
|
+
--select-foreground-4: var(--floating-foreground-4);
|
|
19
|
+
--select-stroke-3: var(--floating-stroke-3);
|
|
20
|
+
--select-highlight-surface: var(--select-surface-3);
|
|
21
|
+
--select-highlight-foreground: var(--select-foreground-1);
|
|
22
|
+
--select-shadow: var(--border-shadow-2);
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-toast-surface-1: var(--toast-surface-1);
|
|
3
|
+
--color-toast-surface-3: var(--toast-surface-3);
|
|
4
|
+
--color-toast-foreground-1: var(--toast-foreground-1);
|
|
5
|
+
--color-toast-foreground-2: var(--toast-foreground-2);
|
|
6
|
+
--color-toast-foreground-3: var(--toast-foreground-3);
|
|
7
|
+
--color-toast-stroke-2: var(--toast-stroke-2);
|
|
8
|
+
--shadow-toast: var(--toast-shadow);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--toast-surface-1: var(--floating-surface-1);
|
|
13
|
+
--toast-surface-3: var(--floating-surface-3);
|
|
14
|
+
--toast-foreground-1: var(--floating-foreground-1);
|
|
15
|
+
--toast-foreground-2: var(--floating-foreground-2);
|
|
16
|
+
--toast-foreground-3: var(--floating-foreground-3);
|
|
17
|
+
--toast-stroke-2: var(--floating-stroke-2);
|
|
18
|
+
--toast-shadow: var(--border-shadow-2);
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--color-tooltip-surface-1: var(--tooltip-surface-1);
|
|
3
|
+
--color-tooltip-foreground-1: var(--tooltip-foreground-1);
|
|
4
|
+
--color-tooltip-foreground-4: var(--tooltip-foreground-4);
|
|
5
|
+
--color-tooltip-stroke-4: var(--tooltip-stroke-4);
|
|
6
|
+
--shadow-tooltip: var(--tooltip-shadow);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--tooltip-surface-1: var(--floating-surface-1);
|
|
11
|
+
--tooltip-foreground-1: var(--floating-foreground-1);
|
|
12
|
+
--tooltip-foreground-4: var(--floating-foreground-4);
|
|
13
|
+
--tooltip-stroke-4: var(--floating-stroke-4);
|
|
14
|
+
--tooltip-shadow: var(--border-shadow-2);
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
* Docs layout constants.
|
|
4
|
+
* Projects can override the resolved variables in theme.css while keeping
|
|
5
|
+
* components on the same primitive contract.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* Defaults */
|
|
9
|
+
--layout-site-max-width-full: 100vw;
|
|
10
|
+
--layout-site-max-width-centered: 1440px;
|
|
11
|
+
--layout-sidebar-width-default: 272px;
|
|
12
|
+
--layout-content-max-width-default: 760px;
|
|
13
|
+
--layout-toc-width-default: 224px;
|
|
14
|
+
--layout-global-nav-height-default: 3.5rem;
|
|
15
|
+
|
|
16
|
+
/* Variables */
|
|
17
|
+
--layout-site-max-width: var(--layout-site-max-width-centered);
|
|
18
|
+
--layout-sidebar-width: var(--layout-sidebar-width-default);
|
|
19
|
+
--layout-content-max-width: var(--layout-content-max-width-default);
|
|
20
|
+
--layout-toc-width: var(--layout-toc-width-default);
|
|
21
|
+
--layout-global-nav-height: var(--layout-global-nav-height-default);
|
|
22
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[data-rmiz] {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-rmiz-ghost] {
|
|
8
|
+
position: absolute;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-rmiz-btn-zoom],
|
|
13
|
+
[data-rmiz-btn-unzoom] {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-rmiz-content="found"] img,
|
|
18
|
+
[data-rmiz-content="found"] svg,
|
|
19
|
+
[data-rmiz-content="found"] [role="img"],
|
|
20
|
+
[data-rmiz-content="found"] [data-zoom] {
|
|
21
|
+
cursor: zoom-in;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-rmiz-modal]::backdrop {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-rmiz-modal][open] {
|
|
29
|
+
position: fixed;
|
|
30
|
+
width: 100dvw;
|
|
31
|
+
height: 100dvh;
|
|
32
|
+
max-width: none;
|
|
33
|
+
max-height: none;
|
|
34
|
+
padding: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
overscroll-behavior: none;
|
|
38
|
+
pointer-events: all;
|
|
39
|
+
background: transparent;
|
|
40
|
+
border: 0;
|
|
41
|
+
z-index: var(--z-modal);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-rmiz-modal-overlay] {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset: 0;
|
|
47
|
+
transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
|
+
backdrop-filter: blur(4px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-rmiz-modal-overlay="hidden"] {
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-rmiz-modal-overlay="visible"] {
|
|
56
|
+
background-color: var(--media-backdrop);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-rmiz-modal-content] {
|
|
60
|
+
position: relative;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-rmiz-modal-img] {
|
|
66
|
+
position: absolute;
|
|
67
|
+
cursor: zoom-out;
|
|
68
|
+
image-rendering: high-quality;
|
|
69
|
+
transform-origin: top left;
|
|
70
|
+
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
71
|
+
border: 1px solid var(--stroke-2) !important;
|
|
72
|
+
border-radius: var(--radius-media) !important;
|
|
73
|
+
box-shadow: var(--border-shadow-2) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
[data-rmiz-modal-overlay],
|
|
78
|
+
[data-rmiz-modal-img] {
|
|
79
|
+
transition-duration: 0.01ms !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
* Presets for --theme-radius in theme.css.
|
|
4
|
+
* Use none, xs, sm, md, lg, xl, 2xl, or full by assigning one of these vars.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
--theme-radius-none: 0px;
|
|
8
|
+
--theme-radius-xs: 2px;
|
|
9
|
+
--theme-radius-sm: 4px;
|
|
10
|
+
--theme-radius-md: 6px;
|
|
11
|
+
--theme-radius-lg: 8px;
|
|
12
|
+
--theme-radius-xl: 12px;
|
|
13
|
+
--theme-radius-2xl: 16px;
|
|
14
|
+
--theme-radius-full: 9999px;
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Component radius aliases.
|
|
18
|
+
* Tailwind exposes these as rounded-button, rounded-card, rounded-popup, etc.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
--radius-button: var(--theme-radius);
|
|
22
|
+
--radius-input: var(--theme-radius);
|
|
23
|
+
--radius-tag: var(--theme-radius);
|
|
24
|
+
--radius-avatar: var(--theme-radius);
|
|
25
|
+
--radius-tooltip: var(--theme-radius);
|
|
26
|
+
|
|
27
|
+
--radius-inline-code: min(var(--theme-radius), 6px);
|
|
28
|
+
--radius-card: min(var(--theme-radius), 16px);
|
|
29
|
+
--radius-callout: min(var(--theme-radius), 16px);
|
|
30
|
+
--radius-codeblock: min(var(--theme-radius), 16px);
|
|
31
|
+
--radius-container: min(var(--theme-radius), 16px);
|
|
32
|
+
--radius-dialog: min(var(--theme-radius), 16px);
|
|
33
|
+
--radius-media: min(var(--theme-radius), 16px);
|
|
34
|
+
--radius-panel: min(var(--theme-radius), 16px);
|
|
35
|
+
--radius-scrollarea: min(var(--theme-radius), 16px);
|
|
36
|
+
--radius-table: min(var(--theme-radius), 16px);
|
|
37
|
+
|
|
38
|
+
--radius-menu: min(var(--theme-radius), 12px);
|
|
39
|
+
--radius-popup: min(var(--theme-radius), 12px);
|
|
40
|
+
--radius-select: min(var(--theme-radius), 12px);
|
|
41
|
+
|
|
42
|
+
--radius-checkbox: clamp(2px, var(--theme-radius), 6px);
|
|
43
|
+
--radius-kbd: clamp(3px, var(--theme-radius), 4.5px);
|
|
44
|
+
--radius-radio: 9999px;
|
|
45
|
+
--radius-spinner: 9999px;
|
|
46
|
+
--radius-switch-thumb: max(calc(var(--theme-radius) - 2px), 0px);
|
|
47
|
+
--radius-switch-track: var(--theme-radius);
|
|
48
|
+
--radius-scrollbar-thumb: min(var(--theme-radius), 4px);
|
|
49
|
+
}
|