@publish.os/nextjs 0.0.1-alpha.81 → 0.0.1-alpha.91
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/compiler-assets/nextjs/defaults/app/globals.css +1 -0
- package/compiler-assets/nextjs/defaults/group/index.tsx +50 -0
- package/compiler-assets/nextjs/defaults/group/layout.tsx +8 -8
- package/compiler-assets/nextjs/defaults/group/page.tsx +44 -43
- package/compiler-assets/nextjs/defaults/project/next.config.mjs +33 -13
- package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +10 -3
- package/compiler-assets/nextjs/defaults/root/css/animation.css +131 -0
- package/compiler-assets/nextjs/defaults/root/css/components/code-block.css +18 -0
- package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +4 -1
- package/compiler-assets/nextjs/defaults/root/css/components/menu.css +1 -1
- package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +1 -1
- package/compiler-assets/nextjs/defaults/root/css/components/popover.css +1 -1
- package/compiler-assets/nextjs/defaults/root/css/components/select.css +1 -1
- package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +1 -1
- package/compiler-assets/nextjs/defaults/root/css/shadow.css +6 -25
- package/compiler-assets/nextjs/defaults/root/css/typography.css +51 -68
- package/compiler-assets/nextjs/defaults/root/globals.css +25 -0
- package/compiler-assets/nextjs/defaults/root/{page.tsx → index.tsx} +6 -2
- package/compiler-assets/nextjs/defaults/root/layout.tsx +7 -1
- package/compiler-assets/nextjs/defaults/root/theme.css +22 -22
- package/compiler-assets/nextjs/shims/document.tsx +38 -0
- package/compiler-assets/nextjs/shims/generated-group-page.tsx +19 -2
- package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +18 -2
- package/compiler-assets/nextjs/shims/global-layout.tsx +19 -85
- package/compiler-assets/nextjs/shims/global-not-found.tsx +69 -0
- package/compiler-assets/nextjs/shims/markdown-route.ts +2 -0
- package/compiler-assets/nextjs/shims/metadata-icons.tsx +39 -0
- package/compiler-assets/nextjs/shims/not-found-content.tsx +53 -0
- package/compiler-assets/nextjs/shims/not-found-navigation.tsx +60 -0
- package/compiler-assets/nextjs/shims/proxy.ts +143 -65
- package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +76 -15
- package/compiler-assets/nextjs/shims/root-page.tsx +7 -1
- package/compiler-assets/nextjs/shims/site-fenced-code-block.tsx +30 -0
- package/compiler-assets/nextjs/shims/site-heading-level.tsx +14 -0
- package/compiler-assets/nextjs/shims/site-mdx-components.tsx +112 -0
- package/compiler-assets/nextjs/shims/site-mdx.tsx +17 -0
- package/compiler-assets/nextjs/shims/theme-defaults.css +41 -25
- package/dist/build-operation-5QMLXF7N.js +89 -0
- package/dist/{button-CFdx-ohV.d.ts → button-BdCScEKi.d.ts} +6 -6
- package/dist/capture-local-source-WGGDIUU2.js +258 -0
- package/dist/chunk-22RSSUNV.js +13 -0
- package/dist/chunk-4BC2L2KA.js +620 -0
- package/dist/chunk-5J3YUNRY.js +121 -0
- package/dist/chunk-5KAD7W53.js +248 -0
- package/dist/chunk-6C65KV7O.js +142 -0
- package/dist/chunk-6D2E6UMD.js +695 -0
- package/dist/chunk-7NY22B5U.js +161 -0
- package/dist/chunk-AI2UULNX.js +9 -0
- package/dist/chunk-EFO6AWXN.js +19 -0
- package/dist/chunk-F3AGNDF4.js +2377 -0
- package/dist/chunk-GBPLER5H.js +426 -0
- package/dist/chunk-IL4RJOKI.js +186 -0
- package/dist/chunk-NNBJZPFM.js +193 -0
- package/dist/chunk-ORIUWJBQ.js +58 -0
- package/dist/chunk-OXOFRXEI.js +7129 -0
- package/dist/chunk-UYGCOWRF.js +1709 -0
- package/dist/chunk-WL75GQ5M.js +80 -0
- package/dist/compiler.d.ts +54 -7
- package/dist/compiler.js +121 -13147
- package/dist/components/blocks/agent-actions.d.ts +81 -0
- package/dist/components/blocks/agent-actions.js +594 -0
- package/dist/components/blocks/toc.d.ts +43 -0
- package/dist/components/blocks/toc.js +136 -0
- package/dist/components/ui/button.d.ts +5 -0
- package/dist/components/ui/button.js +94 -0
- package/dist/compose-CVBJRAF6.js +16 -0
- package/dist/config/createNextConfig.js +27 -0
- package/dist/dev-operation-OSHHWRWK.js +1095 -0
- package/dist/framework-selection-ZVO323PK.js +11 -0
- package/dist/ide-support-CU6Z5PVR.js +16 -0
- package/dist/index.d.ts +55 -4
- package/dist/jsx-dev-runtime.d.ts +6 -0
- package/dist/jsx-dev-runtime.js +100 -0
- package/dist/jsx-runtime.d.ts +7 -0
- package/dist/jsx-runtime.js +97 -0
- package/dist/kernel/components/blocks/AgentActions.d.ts +35 -6
- package/dist/kernel/components/blocks/AgentActions.js +401 -150
- package/dist/kernel/components/blocks/agent-actions.d.ts +5 -0
- package/dist/kernel/components/blocks/agent-actions.js +594 -0
- package/dist/kernel/components/blocks/animated-icon-swap.js +1 -1
- package/dist/kernel/components/blocks/color-palette.js +4 -4
- package/dist/kernel/components/blocks/logo-block.js +3 -3
- package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +10 -2
- package/dist/kernel/components/blocks/nav-breadcrumb.js +22 -7
- package/dist/kernel/components/blocks/navbar.d.ts +2 -2
- package/dist/kernel/components/blocks/navbar.js +406 -65
- package/dist/kernel/components/blocks/navigation-progress.js +6 -3
- package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
- package/dist/kernel/components/blocks/next-prev.js +12 -24
- package/dist/kernel/components/blocks/page-list.d.ts +1 -1
- package/dist/kernel/components/blocks/page-list.js +7 -6
- package/dist/kernel/components/blocks/search.d.ts +83 -58
- package/dist/kernel/components/blocks/search.js +554 -428
- package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
- package/dist/kernel/components/blocks/sidebar-node.js +12 -10
- package/dist/kernel/components/blocks/sidebar.d.ts +3 -3
- package/dist/kernel/components/blocks/sidebar.js +24 -14
- package/dist/kernel/components/blocks/theme-toggle.d.ts +2 -2
- package/dist/kernel/components/blocks/theme-toggle.js +47 -1
- package/dist/kernel/components/blocks/toc-client.d.ts +40 -0
- package/dist/kernel/components/blocks/toc-client.js +495 -0
- package/dist/kernel/components/blocks/toc.d.ts +19 -1
- package/dist/kernel/components/blocks/toc.js +122 -180
- package/dist/kernel/components/mdx/components/blockquote.js +2 -2
- package/dist/kernel/components/mdx/components/callout.d.ts +5 -7
- package/dist/kernel/components/mdx/components/callout.js +67 -36
- package/dist/kernel/components/mdx/components/code-block.d.ts +5 -2
- package/dist/kernel/components/mdx/components/code-block.js +106 -5
- package/dist/kernel/components/mdx/components/copy-code-button.d.ts +8 -0
- package/dist/kernel/components/mdx/components/copy-code-button.js +61 -0
- package/dist/kernel/components/mdx/components/figure-caption.d.ts +1 -1
- package/dist/kernel/components/mdx/components/figure-caption.js +4 -3
- package/dist/kernel/components/mdx/components/figure.d.ts +6 -2
- package/dist/kernel/components/mdx/components/figure.js +24 -14
- package/dist/kernel/components/mdx/components/footnotes.js +1 -1
- package/dist/kernel/components/mdx/components/heading-copy-link.js +4 -4
- package/dist/kernel/components/mdx/components/heading.js +6 -3
- package/dist/kernel/components/mdx/components/hr.js +2 -2
- package/dist/kernel/components/mdx/components/image-zoom.js +2 -2
- package/dist/kernel/components/mdx/components/image.d.ts +1 -1
- package/dist/kernel/components/mdx/components/image.js +94 -68
- package/dist/kernel/components/mdx/components/inline-code.js +2 -2
- package/dist/kernel/components/mdx/components/kbd.d.ts +2 -2
- package/dist/kernel/components/mdx/components/kbd.js +5 -4
- package/dist/kernel/components/mdx/components/link.d.ts +35 -4
- package/dist/kernel/components/mdx/components/link.js +3 -3
- package/dist/kernel/components/mdx/components/paragraph.js +2 -5
- package/dist/kernel/components/mdx/components/strikethrough.js +1 -1
- package/dist/kernel/components/mdx/components/table.js +2 -2
- package/dist/kernel/components/mdx/components/task-list.js +2 -2
- package/dist/kernel/components/mdx/components/video-player.d.ts +6 -2
- package/dist/kernel/components/mdx/components/video-player.js +8 -4
- package/dist/kernel/components/mdx/components/video.d.ts +5 -3
- package/dist/kernel/components/mdx/components/video.js +8 -6
- package/dist/kernel/components/mdx/error-boundary.js +2 -2
- package/dist/kernel/components/mdx/error-fallback.js +1 -1
- package/dist/kernel/components/mdx/mdx.d.ts +28 -14
- package/dist/kernel/components/mdx/mdx.js +336 -63
- package/dist/kernel/components/mdx/rehype-heading-ids.d.ts +1 -0
- package/dist/kernel/components/mdx/rehype-heading-ids.js +6 -4
- package/dist/kernel/components/next-image.d.ts +12 -0
- package/dist/kernel/components/next-image.js +61 -0
- package/dist/kernel/components/ui/accordion.js +1 -1
- package/dist/kernel/components/ui/breadcrumb-trail.d.ts +6 -23
- package/dist/kernel/components/ui/breadcrumb-trail.js +2 -2
- package/dist/kernel/components/ui/breadcrumb.d.ts +11 -3
- package/dist/kernel/components/ui/breadcrumb.js +10 -8
- package/dist/kernel/components/ui/button-group.js +8 -7
- package/dist/kernel/components/ui/button.d.ts +58 -6
- package/dist/kernel/components/ui/button.js +43 -39
- package/dist/kernel/components/ui/card.d.ts +2 -2
- package/dist/kernel/components/ui/card.js +1 -1
- package/dist/kernel/components/ui/dialog.js +1 -1
- package/dist/kernel/components/ui/drawer.d.ts +3 -1
- package/dist/kernel/components/ui/drawer.js +6 -2
- package/dist/kernel/components/ui/input.d.ts +2 -2
- package/dist/kernel/components/ui/input.js +1 -1
- package/dist/kernel/components/ui/kbd.js +10 -17
- package/dist/kernel/components/ui/link.d.ts +11 -3
- package/dist/kernel/components/ui/link.js +12 -11
- package/dist/kernel/components/ui/menu.js +6 -6
- package/dist/kernel/components/ui/mod-key.d.ts +10 -0
- package/dist/kernel/components/ui/mod-key.js +36 -0
- package/dist/kernel/components/ui/navigation-menu.js +3 -3
- package/dist/kernel/components/ui/popover.js +1 -1
- package/dist/kernel/components/ui/progress.js +2 -2
- package/dist/kernel/components/ui/scroll-area.js +5 -5
- package/dist/kernel/components/ui/select.js +8 -11
- package/dist/kernel/components/ui/separator.js +1 -1
- package/dist/kernel/components/ui/table.js +1 -1
- package/dist/kernel/components/ui/tabs.js +1 -1
- package/dist/kernel/components/ui/tag.js +1 -1
- package/dist/kernel/components/ui/text.d.ts +2 -2
- package/dist/kernel/components/ui/text.js +1 -1
- package/dist/kernel/components/ui/toast.js +1 -1
- package/dist/kernel/components/ui/tooltip.js +1 -1
- package/dist/kernel/defaults.registry.d.ts +11 -24
- package/dist/kernel/defaults.registry.js +11 -26
- package/dist/kernel/routes/agent/markdown.d.ts +3 -1
- package/dist/kernel/routes/agent/markdown.js +219 -48
- package/dist/kernel/routes/layouts/group.d.ts +1 -1
- package/dist/kernel/routes/layouts/group.js +5 -7
- package/dist/kernel/routes/metadata/feed.d.ts +1 -1
- package/dist/kernel/routes/metadata/feed.js +111 -81
- package/dist/kernel/routes/metadata/llms.d.ts +12 -3
- package/dist/kernel/routes/metadata/llms.js +156 -59
- package/dist/kernel/routes/metadata/og-image.js +1 -1
- package/dist/kernel/routes/metadata/robots.d.ts +1 -1
- package/dist/kernel/routes/metadata/robots.js +2 -2
- package/dist/kernel/routes/metadata/sitemap.d.ts +26 -4
- package/dist/kernel/routes/metadata/sitemap.js +206 -38
- package/dist/kernel/routes/not-found.d.ts +34 -0
- package/dist/kernel/routes/not-found.js +213 -0
- package/dist/kernel/routes/pages/group.d.ts +2 -2
- package/dist/kernel/routes/pages/group.js +21 -13
- package/dist/kernel/routes/pages/leaf.d.ts +28 -1
- package/dist/kernel/routes/pages/leaf.js +25 -16
- package/dist/kernel/routes/pages/root.js +19 -13
- package/dist/keyboard-shortcuts.js +1 -1
- package/dist/resolvers/manifest-resolver.js +29 -6
- package/dist/search.d.ts +6 -7
- package/dist/search.js +52 -29
- package/dist/{sidebar-types-Bgchdfd6.d.ts → sidebar-types-DKpR27II.d.ts} +1 -1
- package/dist/theme-scope.js +1 -1
- package/dist/{types-DHBm7-j6.d.ts → types-CJWRG05y.d.ts} +20 -1
- package/dist/{types-B_b3C0U6.d.ts → types-CUtrppxt.d.ts} +8 -2
- package/dist/{types-CIwwieNw.d.ts → types-J2w_puPF.d.ts} +11 -10
- package/dist/types.d.ts +15 -6
- package/dist/utils/heading-ids.js +30 -11
- package/dist/utils/toc-selection.d.ts +7 -0
- package/dist/utils/toc-selection.js +14 -0
- package/dist/validate-local-source-SV44DBQT.js +16 -0
- package/dist/validate-publish-os-source-NZJF3TB2.js +14 -0
- package/init/seed/minimal/.gitignore +1 -0
- package/init/seed/minimal/publish.os/assets/blog/hello-world.svg +13 -0
- package/init/seed/minimal/publish.os/assets/favicon.dark.svg +13 -0
- package/init/seed/minimal/publish.os/assets/favicon.svg +13 -0
- package/init/seed/minimal/publish.os/blog/content/hello-world.mdx +48 -0
- package/init/seed/minimal/publish.os/blog/content/series-a.mdx +11 -0
- package/init/seed/minimal/publish.os/blog/index.tsx +82 -0
- package/init/seed/minimal/publish.os/blog/layout.tsx +13 -0
- package/init/seed/minimal/publish.os/blog/page.tsx +76 -0
- package/init/seed/minimal/publish.os/components/blog/copy-link.tsx +64 -0
- package/init/seed/minimal/publish.os/docs/content/get-started.mdx +6 -11
- package/init/seed/minimal/publish.os/docs/content/groups.mdx +6 -7
- package/init/seed/minimal/publish.os/docs/content/{theme.mdx → themes.mdx} +14 -12
- package/init/seed/minimal/publish.os/publish.os.config.json +7 -7
- package/init/seed/minimal/publish.os/theme.css +52 -24
- package/init/seed/minimal/publish.os/tsconfig.json +3 -0
- package/init/seed/minimal/seed.json +12 -2
- package/init/seed/scratch/publish.os/docs/content/get-started.mdx +6 -0
- package/init/seed/scratch/publish.os/publish.os.config.json +4 -0
- package/init/seed/scratch/seed.json +5 -0
- package/package.json +55 -44
- package/release/app/phosphor/package.json +5 -5
- package/release/app/phosphor/pnpm-lock.yaml.template +553 -377
- package/release/app/phosphor/pnpm-workspace.yaml +3 -0
- package/release/compiler/package.json +5 -3
- package/release/compiler/pnpm-lock.yaml.template +500 -303
- package/release/compiler/pnpm-workspace.yaml +3 -0
- package/release/release.json +8 -37
- package/compiler-assets/nextjs/defaults/group/leaf.tsx +0 -48
- package/dist/icons.d.ts +0 -1
- package/dist/icons.js +0 -2
- package/dist/kernel/components/blocks/design-system-preview.d.ts +0 -61
- package/dist/kernel/components/blocks/design-system-preview.js +0 -648
- package/dist/kernel/components/blocks/link-playground.d.ts +0 -5
- package/dist/kernel/components/blocks/link-playground.js +0 -744
- package/dist/kernel/components/blocks/navigation-progress-playground.d.ts +0 -5
- package/dist/kernel/components/blocks/navigation-progress-playground.js +0 -629
- package/dist/kernel/components/mdx/components/pre.d.ts +0 -6
- package/dist/kernel/components/mdx/components/pre.js +0 -18
- package/dist/kernel/components/ui/meta-key.d.ts +0 -17
- package/dist/kernel/components/ui/meta-key.js +0 -9
- package/dist/kernel/components/ui/theme-toggle.d.ts +0 -24
- package/dist/kernel/components/ui/theme-toggle.js +0 -58
- package/dist/kernel/framework-icons.d.ts +0 -1
- package/dist/kernel/framework-icons.js +0 -39
- package/dist/link-CYaCRDb6.d.ts +0 -35
- package/release/app/lucide/package.json +0 -30
- package/release/app/lucide/pnpm-lock.yaml.template +0 -2905
- package/release/app/lucide/pnpm-workspace.yaml +0 -11
- package/release/app/tabler/package.json +0 -30
- package/release/app/tabler/pnpm-lock.yaml.template +0 -2911
- package/release/app/tabler/pnpm-workspace.yaml +0 -11
|
@@ -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
|
+
<div 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
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -3,21 +3,21 @@ import type { LayoutProps } from "@publish.os/nextjs/types";
|
|
|
3
3
|
import { log } from "@source/_internal/logger";
|
|
4
4
|
|
|
5
5
|
export default function GroupLayout(props: LayoutProps) {
|
|
6
|
-
const { children, currentPath, group, node,
|
|
6
|
+
const { children, currentPath, group, node, tree } = props;
|
|
7
7
|
log.debug("[default:group-layout]", { currentPath, group });
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
|
-
<section className="mx-auto grid min-h-[calc(
|
|
11
|
-
<aside className="fixed top-
|
|
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-(--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
12
|
<Sidebar currentPath={currentPath} title={node.title} tree={tree} />
|
|
13
13
|
</aside>
|
|
14
|
-
<main
|
|
14
|
+
<main
|
|
15
|
+
className="flex min-h-0 min-w-0 flex-1 scroll-mt-[calc(var(--layout-global-nav-height)+1rem)] flex-col bg-surface-1 md:col-start-2"
|
|
16
|
+
id="main-content"
|
|
17
|
+
tabIndex={-1}
|
|
18
|
+
>
|
|
15
19
|
{children}
|
|
16
20
|
</main>
|
|
17
|
-
<aside
|
|
18
|
-
aria-label={`${site.name} secondary navigation`}
|
|
19
|
-
className="hidden bg-surface-1 xl:block"
|
|
20
|
-
/>
|
|
21
21
|
</section>
|
|
22
22
|
);
|
|
23
23
|
}
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "@publish.os/nextjs/types";
|
|
1
|
+
import { AgentActions } from "@components/blocks/agent-actions";
|
|
2
|
+
import { NextPrev } from "@components/blocks/next-prev";
|
|
3
|
+
import { Toc } from "@components/blocks/toc";
|
|
4
|
+
import { MDX } from "@publish.os/nextjs/mdx";
|
|
5
|
+
import type { PageProps } from "@publish.os/nextjs/types";
|
|
7
6
|
import { log } from "@source/_internal/logger";
|
|
8
7
|
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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);
|
|
8
|
+
export default async function ContentPage(props: PageProps) {
|
|
9
|
+
log.debug("[default:content-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;
|
|
23
16
|
|
|
24
17
|
return (
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
18
|
+
<div className="relative flex min-h-[calc(100vh-var(--layout-global-nav-height))] min-w-0 flex-1 flex-col text-foreground-1 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
|
+
<Toc
|
|
20
|
+
content={props.page.body}
|
|
21
|
+
desktopClassName="xl:absolute xl:inset-y-0 xl:start-full xl:w-(--layout-toc-width) xl:px-3 xl:py-10"
|
|
22
|
+
desktopListClassName="xl:sticky xl:top-[calc(var(--layout-global-nav-height)_+_1.5rem)] xl:max-h-[calc(100dvh-var(--layout-global-nav-height)-3rem)] xl:overflow-y-auto supports-[top:anchor-size(--global-navbar_height)]:xl:top-[calc(anchor-size(--global-navbar_height,3.5rem)_+_1.5rem)] supports-[top:anchor-size(--global-navbar_height)]:xl:max-h-[calc(100dvh-anchor-size(--global-navbar_height,3.5rem)-3rem)]"
|
|
23
|
+
mobileQuery="(max-width: 1279px)"
|
|
24
|
+
/>
|
|
25
|
+
<div className="flex min-w-0 flex-1 flex-col px-6 py-10 lg:px-10">
|
|
26
|
+
<div className="mx-auto flex w-full max-w-(--layout-content-max-width) flex-1 flex-col">
|
|
27
|
+
<article className="min-h-0 min-w-0 flex-1">
|
|
28
|
+
<h1 className="text-3xl font-semibold tracking-tight text-foreground-1">
|
|
29
|
+
{props.page.title}
|
|
30
|
+
</h1>
|
|
31
|
+
<AgentActions
|
|
32
|
+
className="mt-4"
|
|
33
|
+
markdownRevision={props.markdownRevision}
|
|
34
|
+
pagePath={props.currentPath}
|
|
35
|
+
siteUrl={props.site.origin}
|
|
36
|
+
sourceUrl={sourceUrl}
|
|
37
|
+
/>
|
|
38
|
+
<div className="mt-6">
|
|
39
|
+
<MDX page={props.page} />
|
|
40
|
+
</div>
|
|
41
|
+
</article>
|
|
42
|
+
<NextPrev
|
|
43
|
+
className="mt-auto pt-12"
|
|
44
|
+
currentPath={props.currentPath}
|
|
45
|
+
tree={props.tree}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
47
48
|
</div>
|
|
48
|
-
</
|
|
49
|
+
</div>
|
|
49
50
|
);
|
|
50
51
|
}
|
|
@@ -4,36 +4,56 @@ import { dirname } from "node:path";
|
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
6
6
|
const projectRoot = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const INTERNAL_PREFIX = "__PUBLISHOS_INTERNAL_PREFIX__";
|
|
8
|
+
const SOURCE_ASSET_PREFIX = "__PUBLISHOS_SOURCE_ASSET_PREFIX__";
|
|
9
|
+
const IMAGE_OPTIMIZER_PATH = "__PUBLISHOS_IMAGE_PATH__";
|
|
10
|
+
const NEXT_IMAGE_OPTIMIZER_PATH = "__PUBLISHOS_NEXT_IMAGE_PATH__";
|
|
7
11
|
|
|
8
12
|
/** @type {import("next").NextConfig} */
|
|
9
13
|
export default {
|
|
14
|
+
assetPrefix: INTERNAL_PREFIX,
|
|
10
15
|
cacheComponents: true,
|
|
16
|
+
// Preserve loopback origins so internal rewrites do not proxy back into this app.
|
|
17
|
+
skipProxyUrlNormalize: true,
|
|
18
|
+
experimental: { globalNotFound: true },
|
|
19
|
+
partialPrefetching: false,
|
|
20
|
+
// macOS native notifications can delay preview updates. Use Next's fallback.
|
|
21
|
+
watchOptions:
|
|
22
|
+
process.platform === "darwin" ? { pollIntervalMs: 1_000 } : undefined,
|
|
23
|
+
// Relocating Shiki as an external loses its pnpm-owned dependencies.
|
|
24
|
+
transpilePackages: ["shiki"],
|
|
11
25
|
turbopack: {
|
|
12
26
|
resolveAlias: {
|
|
13
|
-
"@publish.os/nextjs/
|
|
14
|
-
|
|
27
|
+
"@publish.os/nextjs/mdx": "./source/.publishos/mdx.tsx",
|
|
28
|
+
"next/image": "@publish.os/nextjs/kernel/components/next-image",
|
|
29
|
+
...__PUBLISHOS_COMPONENT_ALIASES__,
|
|
15
30
|
},
|
|
16
31
|
root: projectRoot,
|
|
17
32
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"@
|
|
21
|
-
|
|
22
|
-
"lucide-react",
|
|
23
|
-
],
|
|
33
|
+
webpack(config) {
|
|
34
|
+
config.resolve.alias["next/image"] =
|
|
35
|
+
"@publish.os/nextjs/kernel/components/next-image";
|
|
36
|
+
return config;
|
|
24
37
|
},
|
|
25
38
|
images: {
|
|
26
39
|
dangerouslyAllowSVG: false,
|
|
27
40
|
deviceSizes: [640, 828, 1080, 1200, 1600, 1920, 2560, 3840],
|
|
28
41
|
formats: ["image/webp"],
|
|
29
42
|
imageSizes: [32, 48, 64, 96, 128, 256, 384],
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
minimumCacheTTL: 2678400,
|
|
43
|
+
path: IMAGE_OPTIMIZER_PATH,
|
|
44
|
+
localPatterns: [{ pathname: `${SOURCE_ASSET_PREFIX}/**` }],
|
|
45
|
+
remotePatterns: [],
|
|
46
|
+
minimumCacheTTL: 0,
|
|
35
47
|
qualities: [50, 60, 75, 85, 95, 100],
|
|
36
48
|
},
|
|
49
|
+
async rewrites() {
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
source: IMAGE_OPTIMIZER_PATH,
|
|
53
|
+
destination: NEXT_IMAGE_OPTIMIZER_PATH,
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
},
|
|
37
57
|
cacheLife: {
|
|
38
58
|
// Published content changes with each build, which gets new use-cache keys.
|
|
39
59
|
page: {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
5
|
"module": "esnext",
|
|
6
6
|
"moduleResolution": "bundler",
|
|
7
|
+
"jsxImportSource": "@publish.os/nextjs",
|
|
7
8
|
"jsx": "react-jsx",
|
|
8
9
|
"allowJs": true,
|
|
9
10
|
"strict": true,
|
|
@@ -16,9 +17,15 @@
|
|
|
16
17
|
"baseUrl": ".",
|
|
17
18
|
"paths": {
|
|
18
19
|
"@app/*": ["./app/*"],
|
|
19
|
-
"@publish.os/nextjs/
|
|
20
|
-
"@publish.os/nextjs/
|
|
21
|
-
"./
|
|
20
|
+
"@publish.os/nextjs/mdx": ["./source/.publishos/mdx"],
|
|
21
|
+
"@publish.os/nextjs/components/ui/button": [
|
|
22
|
+
"./node_modules/@publish.os/nextjs/dist/kernel/components/ui/button"
|
|
23
|
+
],
|
|
24
|
+
"@publish.os/nextjs/components/blocks/toc": [
|
|
25
|
+
"./node_modules/@publish.os/nextjs/dist/kernel/components/blocks/toc"
|
|
26
|
+
],
|
|
27
|
+
"@publish.os/nextjs/components/blocks/agent-actions": [
|
|
28
|
+
"./node_modules/@publish.os/nextjs/dist/kernel/components/blocks/agent-actions"
|
|
22
29
|
],
|
|
23
30
|
"@components/*": [
|
|
24
31
|
"./source/components/*",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
--animation-enter-scale: 0.96;
|
|
17
17
|
--animation-enter-y: 0.25rem;
|
|
18
18
|
--animation-exit-scale: 0.98;
|
|
19
|
+
--animation-duration-search-close: 80ms;
|
|
20
|
+
--animation-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
@layer utilities {
|
|
@@ -79,12 +81,141 @@
|
|
|
79
81
|
transform: translateX(100%);
|
|
80
82
|
}
|
|
81
83
|
|
|
84
|
+
.animate-mobile-navigation {
|
|
85
|
+
transform: none;
|
|
86
|
+
transition-property: opacity;
|
|
87
|
+
transition-duration: 100ms;
|
|
88
|
+
transition-timing-function: var(--animation-ease-out);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.animate-mobile-navigation[data-starting-style],
|
|
92
|
+
.animate-mobile-navigation[data-ending-style] {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.animate-mobile-navigation[data-ending-style] {
|
|
98
|
+
transition-duration: 60ms;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.animate-search-dialog {
|
|
102
|
+
transform-origin: center;
|
|
103
|
+
transition-property: opacity, transform;
|
|
104
|
+
transition-duration: var(--animation-duration-fast);
|
|
105
|
+
transition-timing-function: var(--animation-ease-out);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.animate-search-dialog[data-starting-style] {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
transform: scale(var(--animation-enter-scale));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.animate-search-dialog[data-ending-style] {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: scale(var(--animation-exit-scale));
|
|
116
|
+
transition-duration: var(--animation-duration-search-close);
|
|
117
|
+
transition-timing-function: var(--animation-ease-out);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.animate-search-backdrop[data-ending-style] {
|
|
121
|
+
transition-duration: var(--animation-duration-search-close);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.animate-search-drawer {
|
|
125
|
+
transform: translateY(var(--drawer-swipe-movement-y, 0px));
|
|
126
|
+
transition-property: transform, opacity;
|
|
127
|
+
transition-duration: var(--animation-duration-base);
|
|
128
|
+
transition-timing-function: var(--animation-ease-drawer);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.animate-search-drawer[data-starting-style] {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transform: translateY(100%);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.animate-search-drawer[data-ending-style] {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
transform: translateY(100%);
|
|
139
|
+
transition-duration: var(--animation-duration-search-close);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.animate-search-drawer[data-swiping] {
|
|
143
|
+
transition-duration: 0ms;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.animate-search-backdrop {
|
|
147
|
+
opacity: calc(1 - var(--drawer-swipe-progress, 0));
|
|
148
|
+
transition-property: opacity;
|
|
149
|
+
transition-duration: var(--animation-duration-fast);
|
|
150
|
+
transition-timing-function: var(--animation-ease-out);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.animate-search-backdrop[data-starting-style],
|
|
154
|
+
.animate-search-backdrop[data-ending-style] {
|
|
155
|
+
opacity: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.animate-search-results {
|
|
159
|
+
grid-template-rows: 0fr;
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transition:
|
|
162
|
+
grid-template-rows 180ms var(--animation-ease-out),
|
|
163
|
+
opacity 180ms var(--animation-ease-out);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.animate-search-results[data-expanded="true"] {
|
|
167
|
+
grid-template-rows: 1fr;
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.animate-search-progress {
|
|
172
|
+
transform: scaleX(var(--search-progress));
|
|
173
|
+
transform-origin: left;
|
|
174
|
+
transition: transform 200ms var(--animation-ease-progress);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.animate-search-progress[data-state="exiting"] {
|
|
178
|
+
transform: scaleX(0);
|
|
179
|
+
transform-origin: right;
|
|
180
|
+
transition-duration: 150ms;
|
|
181
|
+
transition-timing-function: var(--animation-ease-progress-exit);
|
|
182
|
+
}
|
|
183
|
+
|
|
82
184
|
@media (prefers-reduced-motion: reduce) {
|
|
185
|
+
.animate-mobile-navigation,
|
|
186
|
+
.animate-mobile-navigation[data-ending-style] {
|
|
187
|
+
transition-duration: 0ms;
|
|
188
|
+
}
|
|
189
|
+
|
|
83
190
|
.animate-overlay,
|
|
84
191
|
.animate-dialog-popup,
|
|
85
192
|
.animate-popup,
|
|
86
193
|
.animate-drawer-popup {
|
|
87
194
|
transition-duration: 1ms;
|
|
88
195
|
}
|
|
196
|
+
|
|
197
|
+
.animate-search-dialog,
|
|
198
|
+
.animate-search-drawer,
|
|
199
|
+
.animate-search-backdrop {
|
|
200
|
+
transition-property: opacity;
|
|
201
|
+
transition-duration: var(--animation-duration-search-close);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.animate-search-dialog[data-starting-style],
|
|
205
|
+
.animate-search-dialog[data-ending-style],
|
|
206
|
+
.animate-search-drawer[data-starting-style],
|
|
207
|
+
.animate-search-drawer[data-ending-style] {
|
|
208
|
+
transform: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.animate-search-results,
|
|
212
|
+
.animate-search-progress {
|
|
213
|
+
transition: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.animate-search-progress[data-state="exiting"] {
|
|
217
|
+
transform: none;
|
|
218
|
+
opacity: 0;
|
|
219
|
+
}
|
|
89
220
|
}
|
|
90
221
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[data-slot="copy-code-button"] {
|
|
2
|
+
transition: opacity 150ms ease-out;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@media (hover: hover) and (pointer: fine) and (any-pointer: fine) and (
|
|
6
|
+
any-hover: hover
|
|
7
|
+
) and (not (any-pointer: coarse)) {
|
|
8
|
+
[data-slot="code-block"]:not(:hover):not(:focus-within)
|
|
9
|
+
[data-slot="copy-code-button"]:not([data-copied="true"]) {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (prefers-reduced-motion: reduce) {
|
|
15
|
+
[data-slot="copy-code-button"] {
|
|
16
|
+
transition: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
--dialog-foreground-2: var(--floating-foreground-2);
|
|
17
17
|
--dialog-foreground-3: var(--floating-foreground-3);
|
|
18
18
|
--dialog-stroke-2: var(--floating-stroke-2);
|
|
19
|
-
--dialog-backdrop:
|
|
19
|
+
--dialog-backdrop: light-dark(
|
|
20
|
+
color-mix(in oklab, var(--backdrop) 30%, transparent),
|
|
21
|
+
color-mix(in oklab, var(--backdrop) 50%, transparent)
|
|
22
|
+
);
|
|
20
23
|
--dialog-shadow: var(--border-shadow-1);
|
|
21
24
|
}
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
--navigation-menu-stroke-3: var(--floating-stroke-3);
|
|
22
22
|
--navigation-menu-highlight-surface: var(--navigation-menu-surface-3);
|
|
23
23
|
--navigation-menu-highlight-foreground: var(--navigation-menu-foreground-1);
|
|
24
|
-
--navigation-menu-shadow: var(--
|
|
24
|
+
--navigation-menu-shadow: var(--floating-shadow);
|
|
25
25
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--shadow-edge-color: rgb(0 0 0);
|
|
3
3
|
--shadow-color: rgb(0 0 0);
|
|
4
|
-
--shadow-inset-opacity: 0%;
|
|
5
4
|
--shadow-edge-1-opacity: 12%;
|
|
6
5
|
--shadow-edge-2-opacity: 10%;
|
|
7
6
|
--shadow-edge-3-opacity: 8%;
|
|
8
7
|
--shadow-edge-4-opacity: 6%;
|
|
9
8
|
|
|
9
|
+
/* Floating surfaces already draw their own translucent border. */
|
|
10
|
+
--floating-shadow:
|
|
11
|
+
0 2px 6px rgb(from var(--shadow-color) r g b / 8%),
|
|
12
|
+
0 12px 24px -8px rgb(from var(--shadow-color) r g b / 12%);
|
|
13
|
+
|
|
14
|
+
/* Inset edges blend with the surface fill, not the surrounding page. */
|
|
10
15
|
--border-shadow-1:
|
|
11
16
|
inset 0 0 0 1px rgb(
|
|
12
|
-
from var(--shadow-edge-color) r g b /
|
|
13
|
-
var(--shadow-inset-opacity)
|
|
14
|
-
),
|
|
15
|
-
0 0 0 1px rgb(
|
|
16
17
|
from var(--shadow-edge-color) r g b /
|
|
17
18
|
var(--shadow-edge-1-opacity)
|
|
18
19
|
),
|
|
@@ -25,10 +26,6 @@
|
|
|
25
26
|
0 40px 48px -32px rgb(from var(--shadow-color) r g b / 4%);
|
|
26
27
|
--border-shadow-1-hover:
|
|
27
28
|
inset 0 0 0 1px rgb(
|
|
28
|
-
from var(--shadow-edge-color) r g b /
|
|
29
|
-
var(--shadow-inset-opacity)
|
|
30
|
-
),
|
|
31
|
-
0 0 0 1px rgb(
|
|
32
29
|
from var(--shadow-edge-color) r g b /
|
|
33
30
|
calc(var(--shadow-edge-1-opacity) + 2%)
|
|
34
31
|
),
|
|
@@ -42,10 +39,6 @@
|
|
|
42
39
|
|
|
43
40
|
--border-shadow-2:
|
|
44
41
|
inset 0 0 0 1px rgb(
|
|
45
|
-
from var(--shadow-edge-color) r g b /
|
|
46
|
-
var(--shadow-inset-opacity)
|
|
47
|
-
),
|
|
48
|
-
0 0 0 1px rgb(
|
|
49
42
|
from var(--shadow-edge-color) r g b /
|
|
50
43
|
var(--shadow-edge-2-opacity)
|
|
51
44
|
),
|
|
@@ -55,10 +48,6 @@
|
|
|
55
48
|
0 12px 24px -8px rgb(from var(--shadow-color) r g b / 6%);
|
|
56
49
|
--border-shadow-2-hover:
|
|
57
50
|
inset 0 0 0 1px rgb(
|
|
58
|
-
from var(--shadow-edge-color) r g b /
|
|
59
|
-
var(--shadow-inset-opacity)
|
|
60
|
-
),
|
|
61
|
-
0 0 0 1px rgb(
|
|
62
51
|
from var(--shadow-edge-color) r g b /
|
|
63
52
|
calc(var(--shadow-edge-2-opacity) + 2%)
|
|
64
53
|
),
|
|
@@ -69,15 +58,11 @@
|
|
|
69
58
|
|
|
70
59
|
--border-shadow-3:
|
|
71
60
|
inset 0 0 0 1px
|
|
72
|
-
rgb(from var(--shadow-edge-color) r g b / var(--shadow-inset-opacity)),
|
|
73
|
-
0 0 0 1px
|
|
74
61
|
rgb(from var(--shadow-edge-color) r g b / var(--shadow-edge-3-opacity)),
|
|
75
62
|
0 0.5px 1px rgb(from var(--shadow-color) r g b / 10%),
|
|
76
63
|
0 2px 4px -2px rgb(from var(--shadow-color) r g b / 6%);
|
|
77
64
|
--border-shadow-3-hover:
|
|
78
65
|
inset 0 0 0 1px
|
|
79
|
-
rgb(from var(--shadow-edge-color) r g b / var(--shadow-inset-opacity)),
|
|
80
|
-
0 0 0 1px
|
|
81
66
|
rgb(
|
|
82
67
|
from var(--shadow-edge-color) r g b /
|
|
83
68
|
calc(var(--shadow-edge-3-opacity) + 2%)
|
|
@@ -87,15 +72,11 @@
|
|
|
87
72
|
|
|
88
73
|
--border-shadow-4:
|
|
89
74
|
inset 0 0 0 1px
|
|
90
|
-
rgb(from var(--shadow-edge-color) r g b / var(--shadow-inset-opacity)),
|
|
91
|
-
0 0 0 1px
|
|
92
75
|
rgb(from var(--shadow-edge-color) r g b / var(--shadow-edge-4-opacity)),
|
|
93
76
|
0 0.5px 1px rgb(from var(--shadow-color) r g b / 6%),
|
|
94
77
|
0 1px 2px -1px rgb(from var(--shadow-color) r g b / 4%);
|
|
95
78
|
--border-shadow-4-hover:
|
|
96
79
|
inset 0 0 0 1px
|
|
97
|
-
rgb(from var(--shadow-edge-color) r g b / var(--shadow-inset-opacity)),
|
|
98
|
-
0 0 0 1px
|
|
99
80
|
rgb(
|
|
100
81
|
from var(--shadow-edge-color) r g b /
|
|
101
82
|
calc(var(--shadow-edge-4-opacity) + 2%)
|