fulldev-ui 0.14.5 → 0.15.0
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/CHANGELOG.md +30 -0
- package/package.json +24 -21
- package/public/r/article-2.json +1 -1
- package/public/r/avatar.json +2 -2
- package/public/r/banner-1.json +1 -1
- package/public/r/blocks-1.json +2 -2
- package/public/r/breadcrumb.json +1 -1
- package/public/r/carousel.json +1 -1
- package/public/r/command.json +1 -1
- package/public/r/doc-1.json +2 -2
- package/public/r/footer-1.json +2 -2
- package/public/r/footer-2.json +2 -2
- package/public/r/footer-3.json +2 -2
- package/public/r/input.json +1 -1
- package/public/r/layout.json +1 -1
- package/public/r/native-select.json +1 -1
- package/public/r/navigation-menu.json +1 -1
- package/public/r/pagination.json +1 -1
- package/public/r/registry.json +6 -6
- package/public/r/resizable.json +1 -1
- package/public/r/reviews-3.json +1 -1
- package/public/r/sidebar-1.json +1 -1
- package/public/r/sidebar.json +2 -2
- package/public/r/toggle-group.json +1 -1
- package/registry.json +6 -6
- package/src/components/blocks/article-2.astro +1 -1
- package/src/components/blocks/banner-1.astro +2 -2
- package/src/components/blocks/blocks-1.astro +24 -6
- package/src/components/blocks/doc-1.astro +26 -8
- package/src/components/blocks/footer-1.astro +8 -4
- package/src/components/blocks/footer-2.astro +16 -5
- package/src/components/blocks/footer-3.astro +14 -5
- package/src/components/blocks/reviews-3.astro +1 -0
- package/src/components/blocks/sidebar-1.astro +1 -0
- package/src/components/ui/avatar/avatar-fallback.astro +3 -3
- package/src/components/ui/avatar/avatar.astro +3 -3
- package/src/components/ui/breadcrumb/breadcrumb-page.astro +0 -2
- package/src/components/ui/carousel/carousel.astro +8 -4
- package/src/components/ui/command/command.astro +38 -12
- package/src/components/ui/input/input.astro +5 -0
- package/src/components/ui/native-select/native-select.astro +5 -1
- package/src/components/ui/navigation-menu/navigation-menu.astro +2 -0
- package/src/components/ui/pagination/pagination.astro +6 -3
- package/src/components/ui/resizable/resizable-handle.astro +1 -0
- package/src/components/ui/sidebar/sidebar-menu-button.astro +24 -22
- package/src/components/ui/sidebar/sidebar-menu-sub-button.astro +12 -10
- package/src/components/ui/toggle-group/toggle-group.astro +1 -0
- package/src/lib/analytics-interactions.js +0 -72
- package/src/lib/analytics-privacy.js +0 -46
- package/src/lib/analytics.ts +0 -58
- package/src/lib/integration.ts +0 -66
- package/src/lib/pages.ts +0 -97
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Fulldev UI
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#222](https://github.com/fulldotdev/ui/pull/222) [`d3f0fd0`](https://github.com/fulldotdev/ui/commit/d3f0fd03eba765ad414f04cabaeac23a33b44ce5) Thanks [@silveltman](https://github.com/silveltman)! - - `astro` (`^7.0.0`) and `tailwindcss` (`^4.1.0`) are now peer dependencies instead of dependencies. Sites that install `fulldev-ui` keep their own Astro and Tailwind, so the package no longer adds a second, older Astro to the site's dependency tree. Sites need Astro 7.
|
|
8
|
+
- The package now depends only on what its shipped files import. Tools for the docs site (`@astrojs/mdx`, `@astrojs/sitemap`, `@tailwindcss/vite`, `astro-favicons`, `astro-live-code`, `astro-robots-txt`, `posthog-js` and `typescript`) are no longer installed with it, and the unused `@fontsource-variable/geist` and `@fontsource-variable/geist-mono` are removed.
|
|
9
|
+
- `src/lib` in the package now contains only `utils.ts`, the file the registry installs. The docs site's own helpers (`integration.ts`, `pages.ts` and the analytics files) are no longer published.
|
|
10
|
+
- The `layout` item now installs `@lexingtonthemes/seo@^0.4.0`, which supports Astro 7. Its code is the same as 0.2.0. The package also requires `@lucide/astro` 1.49.0 or later, because versions before 1.30 do not support Astro 7.
|
|
11
|
+
- `banner-1` and `article-2` add explicit spaces between their inline parts. Astro 7 removes whitespace that spans a line break, which made `banner-1` read "titleDescription" on small screens and `article-2` read "Name· date".
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#223](https://github.com/fulldotdev/ui/pull/223) [`080b948`](https://github.com/fulldotdev/ui/commit/080b948acd1a34911e953c394f86b3daf27ebd0c) Thanks [@silveltman](https://github.com/silveltman)! - Fix invalid HTML and accessibility problems that html-validate and `astro check` report in sites:
|
|
16
|
+
|
|
17
|
+
- Brand icons in `footer-1`, `footer-2`, `footer-3`, `doc-1` and `blocks-1` render one `fill` attribute instead of two. The blocks import the SVG files from `simple-icons` instead of the `simple-icons-astro` components, which render `fill` twice, so they now depend on `simple-icons`.
|
|
18
|
+
- `footer-2` and `footer-3` take a `navigationLabel` prop (default `Footer navigation`) that names their link navigation, so it no longer clashes with the header navigation.
|
|
19
|
+
- `NavigationMenu` defaults its `aria-label` to `Main`, as in shadcn/ui.
|
|
20
|
+
- `Pagination` no longer sets the redundant `role="navigation"`, and an `aria-label` you pass replaces the default instead of rendering the attribute twice.
|
|
21
|
+
- `BreadcrumbPage` no longer sets `role="link"` and `aria-disabled` on its text. `aria-current="page"` still marks the current page.
|
|
22
|
+
- `Carousel` renders a `section` instead of a `div` with `role="region"`. With an `aria-label` or `aria-labelledby` it is a named region; without one it gets `role="group"`, so `aria-roledescription="carousel"` stays valid.
|
|
23
|
+
- `ToggleGroup` renders `role="group"` and `ResizableHandle` renders `role="separator"` in the HTML, so an `aria-label` on them is valid before scripts run. Data Slot only added these roles at runtime.
|
|
24
|
+
- `Avatar` and `AvatarFallback` render a `span`, as in shadcn/ui, so an avatar can sit inside a button or link.
|
|
25
|
+
- `Input` and `NativeSelect` render `multiple` as a bare attribute. Astro rendered `multiple="true"`, and `multiple={false}` still turned it on.
|
|
26
|
+
- The `sidebar-1` breadcrumb menu button has the accessible text "Toggle menu".
|
|
27
|
+
- `doc-1` wraps its table of contents in a `div` instead of an unnamed `aside`, so it no longer clashes with other complementary landmarks such as `Banner`.
|
|
28
|
+
- `SidebarMenuButton` and `SidebarMenuSubButton` have typed props again. Astro's compiler did not find their `Props` type, so the props were untyped and `astro check --minimumFailingSeverity hint` reported `Props` as unused.
|
|
29
|
+
- `Command` tracks IME composition with `compositionstart` and `compositionend` instead of the deprecated `keyCode`, and still ignores the Enter that confirms a composition, including in Safari.
|
|
30
|
+
- The Switch, Radio Group, Checkbox and Field docs label controls by wrapping them in `Label` and use only inline content inside labels. `Switch` and `RadioGroupItem` render a `span`, which `Label for` cannot point to.
|
|
31
|
+
- `reviews-3` names its carousel with the block title.
|
|
32
|
+
|
|
3
33
|
## 0.14.5
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fulldev-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"description": "Open-source Astro UI components and blocks",
|
|
6
6
|
"homepage": "https://ui.full.dev",
|
|
7
7
|
"bugs": "https://github.com/fulldotdev/ui/issues",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"public/r",
|
|
38
38
|
"src/components/blocks",
|
|
39
39
|
"src/components/ui",
|
|
40
|
-
"src/lib",
|
|
40
|
+
"src/lib/utils.ts",
|
|
41
41
|
"src/styles/global.css",
|
|
42
42
|
"registry/init"
|
|
43
43
|
],
|
|
@@ -48,8 +48,6 @@
|
|
|
48
48
|
"node": ">=22.12.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@astrojs/mdx": "^5.0.6",
|
|
52
|
-
"@astrojs/sitemap": "^3.7.3",
|
|
53
51
|
"@data-slot/accordion": "^1.0.2",
|
|
54
52
|
"@data-slot/alert-dialog": "^1.0.2",
|
|
55
53
|
"@data-slot/collapsible": "^1.0.2",
|
|
@@ -72,42 +70,47 @@
|
|
|
72
70
|
"@data-slot/toggle": "^1.0.2",
|
|
73
71
|
"@data-slot/toggle-group": "^1.0.2",
|
|
74
72
|
"@data-slot/tooltip": "^1.0.2",
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@lexingtonthemes/seo": "^0.2.0",
|
|
78
|
-
"@lucide/astro": "^1.14.0",
|
|
79
|
-
"@tailwindcss/vite": "^4.3.2",
|
|
80
|
-
"astro": "^6.3.3",
|
|
81
|
-
"astro-favicons": "^3.1.6",
|
|
82
|
-
"astro-live-code": "^0.0.6",
|
|
83
|
-
"astro-robots-txt": "^1.0.0",
|
|
73
|
+
"@lexingtonthemes/seo": "^0.4.0",
|
|
74
|
+
"@lucide/astro": "^1.49.0",
|
|
84
75
|
"class-variance-authority": "^0.7.1",
|
|
85
76
|
"clsx": "^2.1.1",
|
|
86
77
|
"embla-carousel": "8.6.0",
|
|
87
78
|
"lucide-static": "^1.22.0",
|
|
88
|
-
"posthog-js": "1.434.15",
|
|
89
79
|
"shadcn": "^4.12.0",
|
|
90
80
|
"simple-icons": "^16.24.1",
|
|
91
|
-
"simple-icons-astro": "^16.1.0",
|
|
92
81
|
"tailwind-merge": "^3.6.0",
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
"tw-animate-css": "^1.4.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"astro": "^7.0.0",
|
|
86
|
+
"tailwindcss": "^4.1.0"
|
|
96
87
|
},
|
|
97
88
|
"devDependencies": {
|
|
98
89
|
"@astrojs/check": "^0.9.9",
|
|
90
|
+
"@astrojs/markdown-remark": "^7.3.1",
|
|
91
|
+
"@astrojs/mdx": "^8.0.2",
|
|
92
|
+
"@astrojs/sitemap": "^3.7.4",
|
|
99
93
|
"@changesets/changelog-github": "^0.7.0",
|
|
100
94
|
"@changesets/cli": "^2.31.0",
|
|
101
95
|
"@eslint/js": "^10.0.1",
|
|
102
96
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
97
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
98
|
+
"astro": "^7.3.5",
|
|
99
|
+
"astro-favicons": "^3.1.8",
|
|
100
|
+
"astro-live-code": "^0.0.6",
|
|
101
|
+
"astro-robots-txt": "^1.0.0",
|
|
103
102
|
"eslint": "^10.11.0",
|
|
104
103
|
"eslint-plugin-astro": "^3.2.1",
|
|
105
104
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
106
105
|
"globals": "^17.13.0",
|
|
106
|
+
"html-validate": "^11.16.1",
|
|
107
|
+
"posthog-js": "1.434.15",
|
|
107
108
|
"prettier": "3.9.3",
|
|
108
109
|
"prettier-plugin-astro": "0.14.1",
|
|
109
110
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
110
|
-
"sharp": "^0.35.
|
|
111
|
+
"sharp": "^0.35.4",
|
|
112
|
+
"tailwindcss": "^4.3.3",
|
|
113
|
+
"typescript": "^6.0.3",
|
|
111
114
|
"typescript-eslint": "^8.71.0"
|
|
112
115
|
},
|
|
113
116
|
"scripts": {
|
|
@@ -115,8 +118,8 @@
|
|
|
115
118
|
"dev": "pnpm stop && astro dev --host 127.0.0.1 --port 4321",
|
|
116
119
|
"stop": "lsof -tiTCP:4321 -sTCP:LISTEN | xargs kill 2>/dev/null || true",
|
|
117
120
|
"preview": "pnpm stop && pnpm build && astro preview --host 127.0.0.1 --port 4321",
|
|
118
|
-
"typecheck": "tsc --noEmit --noCheck && astro check",
|
|
119
|
-
"check": "pnpm format:check && pnpm typecheck && pnpm lint && pnpm registry:check",
|
|
121
|
+
"typecheck": "tsc --noEmit --noCheck && astro check --minimumFailingSeverity hint",
|
|
122
|
+
"check": "pnpm format:check && pnpm typecheck && pnpm lint && pnpm registry:check && pnpm build && html-validate dist",
|
|
120
123
|
"build": "astro build",
|
|
121
124
|
"registry:build": "pnpm registry:meta && shadcn build && pnpm format:write --log-level warn",
|
|
122
125
|
"registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json public/r",
|
package/public/r/article-2.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
13
13
|
"path": "src/components/blocks/article-2.astro",
|
|
14
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge?: string\n title: string\n description: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n readingTime: string\n }\n image: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n author,\n image,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"mx-auto max-w-2xl items-center gap-8 text-center\">\n <div class=\"mx-auto flex w-full max-w-2xl flex-col items-center gap-6\">\n {badge && <Badge variant=\"secondary\">{badge}</Badge>}\n <div class=\"flex flex-col gap-4\">\n <h1\n class=\"text-4xl leading-tight font-semibold tracking-tight text-balance sm:text-5xl\"\n >\n {title}\n </h1>\n <p class=\"text-muted-foreground text-lg leading-8 text-balance\">\n {description}\n </p>\n </div>\n <div class=\"flex items-center gap-3\">\n <Avatar size=\"lg\">\n <AvatarImage src={author.image} alt={author.name} />\n <AvatarFallback>{author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col text-left\">\n <p class=\"text-sm font-medium\">\n {author.name}\n <span class=\"text-muted-foreground font-normal\">\n · {author.date}\n </span>\n </p>\n <p class=\"text-muted-foreground text-xs\">{author.readingTime}</p>\n </div>\n </div>\n </div>\n\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[16/10] w-full rounded-xl object-cover\"\n widths={[640, 960]}\n sizes=\"(min-width: 42rem) 42rem, 100vw\"\n />\n\n <article\n class=\"mx-auto flex w-full max-w-2xl flex-col gap-6 text-left text-base leading-8\"\n >\n <slot />\n </article>\n </SectionContainer>\n</Section>\n",
|
|
14
|
+
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge?: string\n title: string\n description: string\n author: {\n image?: ImageMetadata\n initials: string\n name: string\n date: string\n readingTime: string\n }\n image: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n author,\n image,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"mx-auto max-w-2xl items-center gap-8 text-center\">\n <div class=\"mx-auto flex w-full max-w-2xl flex-col items-center gap-6\">\n {badge && <Badge variant=\"secondary\">{badge}</Badge>}\n <div class=\"flex flex-col gap-4\">\n <h1\n class=\"text-4xl leading-tight font-semibold tracking-tight text-balance sm:text-5xl\"\n >\n {title}\n </h1>\n <p class=\"text-muted-foreground text-lg leading-8 text-balance\">\n {description}\n </p>\n </div>\n <div class=\"flex items-center gap-3\">\n <Avatar size=\"lg\">\n <AvatarImage src={author.image} alt={author.name} />\n <AvatarFallback>{author.initials}</AvatarFallback>\n </Avatar>\n <div class=\"flex flex-col text-left\">\n <p class=\"text-sm font-medium\">\n {author.name}{\" \"}\n <span class=\"text-muted-foreground font-normal\">\n · {author.date}\n </span>\n </p>\n <p class=\"text-muted-foreground text-xs\">{author.readingTime}</p>\n </div>\n </div>\n </div>\n\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[16/10] w-full rounded-xl object-cover\"\n widths={[640, 960]}\n sizes=\"(min-width: 42rem) 42rem, 100vw\"\n />\n\n <article\n class=\"mx-auto flex w-full max-w-2xl flex-col gap-6 text-left text-base leading-8\"\n >\n <slot />\n </article>\n </SectionContainer>\n</Section>\n",
|
|
15
15
|
"type": "registry:block"
|
|
16
16
|
}
|
|
17
17
|
],
|
package/public/r/avatar.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "src/components/ui/avatar/avatar.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"
|
|
9
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n size?: \"default\" | \"sm\" | \"lg\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<span\n data-slot=\"avatar\"\n data-size={size}\n class={cn(\n \"after:border-border group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
|
|
10
10
|
"type": "registry:ui"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "src/components/ui/avatar/avatar-fallback.astro",
|
|
19
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"
|
|
19
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"avatar-fallback\"\n class={cn(\n \"bg-muted text-muted-foreground absolute inset-0 z-0 flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
|
|
20
20
|
"type": "registry:ui"
|
|
21
21
|
},
|
|
22
22
|
{
|
package/public/r/banner-1.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
14
14
|
"path": "src/components/blocks/banner-1.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Banner, BannerContainer } from \"@/components/ui/banner\"\n\ntype Props = HTMLAttributes<\"aside\"> & {\n title: string\n description: string\n link?: {\n label: string\n href: string\n }\n}\n\nconst { class: className, title, description, link, ...props } = Astro.props\n---\n\n<Banner\n storageKey=\"banner-1\"\n class={cn(\"dark bg-background text-foreground\", className)}\n {...props}\n>\n <BannerContainer class=\"flex-row items-center gap-x-4 gap-y-1\">\n <p class=\"text-sm leading-relaxed\">\n <span class=\"font-semibold\">{title}</span
|
|
15
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Banner, BannerContainer } from \"@/components/ui/banner\"\n\ntype Props = HTMLAttributes<\"aside\"> & {\n title: string\n description: string\n link?: {\n label: string\n href: string\n }\n}\n\nconst { class: className, title, description, link, ...props } = Astro.props\n---\n\n<Banner\n storageKey=\"banner-1\"\n class={cn(\"dark bg-background text-foreground\", className)}\n {...props}\n>\n <BannerContainer class=\"flex-row items-center gap-x-4 gap-y-1\">\n <p class=\"text-sm leading-relaxed\">\n <span class=\"font-semibold\">{title}</span>{\" \"}\n <span class=\"mx-1.5 hidden opacity-50 sm:inline\">—</span>{\" \"}\n <span class=\"opacity-80\">{description}</span>\n </p>\n {\n link && (\n <a\n href={link.href}\n class=\"group/link inline-flex shrink-0 items-center gap-1 text-sm font-medium underline underline-offset-4 transition-opacity hover:opacity-80\"\n >\n {link.label}\n <ArrowRightIcon class=\"size-3.5 transition-transform group-hover/link:translate-x-0.5\" />\n </a>\n )\n }\n </BannerContainer>\n</Banner>\n",
|
|
16
16
|
"type": "registry:block"
|
|
17
17
|
}
|
|
18
18
|
],
|
package/public/r/blocks-1.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Blocks 1",
|
|
5
5
|
"dependencies": [
|
|
6
6
|
"@lucide/astro",
|
|
7
|
-
"simple-icons
|
|
7
|
+
"simple-icons"
|
|
8
8
|
],
|
|
9
9
|
"registryDependencies": [
|
|
10
10
|
"@fulldev/button",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
{
|
|
17
17
|
"path": "src/components/blocks/blocks-1.astro",
|
|
18
|
-
"content": "---\nimport ArrowLeft from \"@lucide/astro/icons/arrow-left\"\nimport ArrowRight from \"@lucide/astro/icons/arrow-right\"\nimport Check from \"@lucide/astro/icons/check\"\nimport ChevronDown from \"@lucide/astro/icons/chevron-down\"\nimport Copy from \"@lucide/astro/icons/copy\"\nimport ExternalLink from \"@lucide/astro/icons/external-link\"\nimport Claude from \"simple-icons
|
|
18
|
+
"content": "---\nimport ArrowLeft from \"@lucide/astro/icons/arrow-left\"\nimport ArrowRight from \"@lucide/astro/icons/arrow-right\"\nimport Check from \"@lucide/astro/icons/check\"\nimport ChevronDown from \"@lucide/astro/icons/chevron-down\"\nimport Copy from \"@lucide/astro/icons/copy\"\nimport ExternalLink from \"@lucide/astro/icons/external-link\"\nimport Claude from \"simple-icons/icons/claude.svg\"\nimport Cursor from \"simple-icons/icons/cursor.svg\"\nimport Markdown from \"simple-icons/icons/markdown.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { buttonVariants } from \"@/components/ui/button/button-variants\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport { SectionContainer } from \"@/components/ui/section\"\nimport {\n Typography,\n TypographyH1,\n TypographyLead,\n} from \"@/components/ui/typography\"\n\ntype Props = {\n class?: string\n title: string\n description?: string\n copyButton?: {\n id: string\n source: string\n }\n markdownUrl?: string\n previousPage?: {\n href: string\n title: string\n }\n nextPage?: {\n href: string\n title: string\n }\n labels: {\n copyMarkdown: string\n openIn: string\n openInMarkdown: string\n openInChatGPT: string\n openInClaude: string\n openInCursor: string\n pagination: {\n previous: string\n next: string\n ariaLabel: string\n }\n }\n}\n\nconst {\n class: className,\n title,\n description,\n copyButton,\n markdownUrl,\n previousPage,\n nextPage,\n labels,\n} = Astro.props\nconst showCopyButton = Boolean(copyButton)\nconst showOpenButton = Boolean(markdownUrl)\nconst showPagination = Boolean(previousPage || nextPage)\nconst assistantPrompt = markdownUrl\n ? `Read ${new URL(markdownUrl, Astro.site ?? Astro.url.origin).href}, I want to ask questions about it.`\n : \"\"\nconst openLinks = markdownUrl\n ? [\n {\n label: labels.openInMarkdown,\n href: markdownUrl,\n icon: \"markdown\",\n },\n {\n label: labels.openInChatGPT,\n href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"chatgpt\",\n },\n {\n label: labels.openInClaude,\n href: `https://claude.ai/new?q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"claude\",\n },\n {\n label: labels.openInCursor,\n href: `https://cursor.com/link/prompt?text=${encodeURIComponent(assistantPrompt)}`,\n icon: \"cursor\",\n },\n ]\n : []\n---\n\n<SectionContainer\n data-slot=\"blocks-page\"\n class={cn(\"gap-10 pt-10 pb-10 sm:pt-12 sm:pb-12\", className)}\n>\n <div class=\"mx-auto flex w-full max-w-[84rem] flex-col gap-10\">\n <header\n class=\"flex flex-col gap-4 border-b pb-8 sm:flex-row sm:items-start sm:justify-between\"\n >\n <div class=\"flex max-w-3xl min-w-0 flex-1 flex-col gap-2\">\n <TypographyH1\n class=\"text-foreground text-left text-3xl tracking-tight sm:text-4xl\"\n >\n {title}\n </TypographyH1>\n {\n description && (\n <TypographyLead class=\"max-w-2xl text-base leading-7\">\n {description}\n </TypographyLead>\n )\n }\n </div>\n <div class=\"flex shrink-0 items-center gap-2 self-start\">\n {\n showCopyButton && (\n <Button\n id={copyButton?.id}\n type=\"button\"\n variant=\"outline\"\n size=\"xs\"\n data-source={copyButton?.source}\n data-blocks-copy\n aria-label={labels.copyMarkdown}\n >\n <Copy class=\"blocks-copy-icon size-3.5\" />\n <Check class=\"blocks-check-icon hidden size-3.5\" />\n <span>{labels.copyMarkdown}</span>\n </Button>\n )\n }\n {\n showOpenButton && (\n <DropdownMenu>\n <DropdownMenuTrigger\n class={buttonVariants({ variant: \"outline\", size: \"xs\" })}\n >\n <span>{labels.openIn}</span>\n <ChevronDown class=\"size-3.5 opacity-70\" />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" sideOffset={6} class=\"w-56\">\n {openLinks.map((link) => (\n <DropdownMenuItem\n href={link.href}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {link.icon === \"markdown\" && (\n <Markdown\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"chatgpt\" && (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"size-4\"\n aria-hidden=\"true\"\n >\n <path d=\"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.182a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .511 4.91 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.989 5.989 0 0 0 3.998-2.9 6.056 6.056 0 0 0-.748-7.073ZM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.142-.081 4.778-2.758a.795.795 0 0 0 .393-.681v-6.737l2.02 1.169a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.495 4.494Zm-9.66-4.125a4.471 4.471 0 0 1-.535-3.014l.142.085 4.783 2.758a.771.771 0 0 0 .781 0l5.843-3.368v2.332a.08.08 0 0 1-.034.062L9.74 19.95a4.499 4.499 0 0 1-6.14-1.646ZM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.677l5.814 3.354-2.02 1.169a.076.076 0 0 1-.071 0l-4.83-2.787A4.504 4.504 0 0 1 2.34 7.872Zm16.596 3.856-5.833-3.388L15.12 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.104v-5.677a.79.79 0 0 0-.407-.667Zm2.011-3.024-.142-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.499 4.499 0 0 1 6.68 4.66ZM8.307 12.863l-2.02-1.164a.08.08 0 0 1-.038-.057V6.074a4.499 4.499 0 0 1 7.376-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681Zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z\" />\n </svg>\n )}\n {link.icon === \"claude\" && (\n <Claude\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"cursor\" && (\n <Cursor\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n <span>{link.label}</span>\n <ExternalLink class=\"text-muted-foreground ml-auto size-3.5\" />\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n }\n </div>\n </header>\n\n <Typography as=\"article\" class=\"w-full max-w-none\">\n <slot />\n </Typography>\n\n {\n showPagination && (\n <nav\n class=\"flex items-center justify-between gap-3\"\n aria-label={labels.pagination.ariaLabel}\n >\n {previousPage ? (\n <Button\n as=\"a\"\n href={previousPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-start gap-2 px-3 py-2 whitespace-normal\"\n >\n <ArrowLeft class=\"size-4\" />\n <span class=\"truncate text-sm font-medium\">\n {previousPage.title}\n </span>\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n\n {nextPage ? (\n <Button\n as=\"a\"\n href={nextPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-end gap-2 px-3 py-2 text-right whitespace-normal\"\n >\n <span class=\"truncate text-sm font-medium\">{nextPage.title}</span>\n <ArrowRight class=\"size-4\" />\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n </nav>\n )\n }\n </div>\n</SectionContainer>\n\n<script>\n document.addEventListener(\"click\", async (event) => {\n if (!(event.target instanceof Element)) return\n const button = event.target.closest(\"[data-blocks-copy]\")\n if (!(button instanceof HTMLButtonElement)) return\n\n const source = button.dataset.source\n if (!source) return\n\n try {\n await navigator.clipboard.writeText(source)\n button.querySelector(\".blocks-copy-icon\")?.classList.add(\"hidden\")\n button.querySelector(\".blocks-check-icon\")?.classList.remove(\"hidden\")\n\n window.setTimeout(() => {\n button.querySelector(\".blocks-copy-icon\")?.classList.remove(\"hidden\")\n button.querySelector(\".blocks-check-icon\")?.classList.add(\"hidden\")\n }, 1200)\n } catch {\n // Keep the copy state unchanged so the action can be retried.\n }\n })\n</script>\n",
|
|
19
19
|
"type": "registry:block"
|
|
20
20
|
}
|
|
21
21
|
],
|
package/public/r/breadcrumb.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"path": "src/components/ui/breadcrumb/breadcrumb-page.astro",
|
|
32
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"breadcrumb-page\"\n
|
|
32
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"breadcrumb-page\"\n aria-current=\"page\"\n class={cn(\"text-foreground font-normal\", className)}\n {...props}\n>\n <slot />\n</span>\n",
|
|
33
33
|
"type": "registry:ui"
|
|
34
34
|
},
|
|
35
35
|
{
|
package/public/r/carousel.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
{
|
|
15
15
|
"path": "src/components/ui/carousel/carousel.astro",
|
|
16
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"
|
|
16
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n ...props\n} = Astro.props\n\n// A named section is a region landmark. Without a name it would have no role,\n// so it becomes a group, the other container role the APG carousel allows.\nconst named = Boolean(props[\"aria-label\"] || props[\"aria-labelledby\"])\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n<section\n data-slot=\"carousel\"\n data-orientation={orientation}\n data-carousel-options={JSON.stringify(resolvedOpts)}\n class={cn(\"group/carousel relative\", className)}\n role={named ? undefined : \"group\"}\n aria-roledescription=\"carousel\"\n {...props}\n>\n <slot />\n</section>\n\n<script>\n import EmblaCarousel, {\n type EmblaCarouselType,\n type EmblaOptionsType,\n } from \"embla-carousel\"\n\n type CarouselRoot = HTMLElement & {\n __fulldevCarouselApi?: EmblaCarouselType\n }\n\n const instances = new Map<CarouselRoot, () => void>()\n const initialize = () => {\n for (const root of document.querySelectorAll<CarouselRoot>(\n '[data-slot=\"carousel\"]'\n )) {\n if (instances.has(root)) continue\n const viewport = root.querySelector<HTMLElement>(\n '[data-slot=\"carousel-content\"]'\n )\n if (!viewport) continue\n const opts: EmblaOptionsType = JSON.parse(\n root.dataset.carouselOptions || \"{}\"\n )\n const api = EmblaCarousel(viewport, opts)\n root.__fulldevCarouselApi = api\n const previous = root.querySelectorAll<HTMLButtonElement>(\n '[data-slot=\"carousel-previous\"]'\n )\n const next = root.querySelectorAll<HTMLButtonElement>(\n '[data-slot=\"carousel-next\"]'\n )\n const emit = (type: \"carousel:init\" | \"carousel:select\") => {\n root.dispatchEvent(\n new CustomEvent(type, {\n detail: {\n api,\n canScrollPrev: api.canScrollPrev(),\n canScrollNext: api.canScrollNext(),\n selectedScrollSnap: api.selectedScrollSnap(),\n scrollSnapList: api.scrollSnapList(),\n },\n })\n )\n }\n const sync = () => {\n root.dataset.canScrollPrev = String(api.canScrollPrev())\n root.dataset.canScrollNext = String(api.canScrollNext())\n root.dataset.selectedScrollSnap = String(api.selectedScrollSnap())\n for (const button of previous)\n if (button.dataset.manualDisabled !== \"true\")\n button.disabled = !api.canScrollPrev()\n for (const button of next)\n if (button.dataset.manualDisabled !== \"true\")\n button.disabled = !api.canScrollNext()\n emit(\"carousel:select\")\n }\n const jump = () =>\n window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n const onPrevious = () => api.scrollPrev(jump())\n const onNext = () => api.scrollNext(jump())\n const onKeyDown = (event: KeyboardEvent) => {\n const target = event.target\n if (\n event.defaultPrevented ||\n !(target instanceof Element) ||\n target.closest('[data-slot=\"carousel\"]') !== root ||\n target.closest(\n 'input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])'\n )\n )\n return\n const vertical = root.dataset.orientation === \"vertical\"\n switch (event.key) {\n case vertical ? \"ArrowUp\" : \"ArrowLeft\":\n onPrevious()\n break\n case vertical ? \"ArrowDown\" : \"ArrowRight\":\n onNext()\n break\n case \"Home\":\n api.scrollTo(0, jump())\n break\n case \"End\":\n api.scrollTo(api.scrollSnapList().length - 1, jump())\n break\n default:\n return\n }\n event.preventDefault()\n }\n for (const button of previous)\n button.addEventListener(\"click\", onPrevious)\n for (const button of next) button.addEventListener(\"click\", onNext)\n root.addEventListener(\"keydown\", onKeyDown)\n api.on(\"select\", sync)\n api.on(\"reInit\", sync)\n sync()\n const frame = requestAnimationFrame(() => emit(\"carousel:init\"))\n instances.set(root, () => {\n cancelAnimationFrame(frame)\n for (const button of previous)\n button.removeEventListener(\"click\", onPrevious)\n for (const button of next) button.removeEventListener(\"click\", onNext)\n root.removeEventListener(\"keydown\", onKeyDown)\n api.off(\"select\", sync)\n api.off(\"reInit\", sync)\n api.destroy()\n delete root.__fulldevCarouselApi\n })\n }\n }\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const cleanup of instances.values()) cleanup()\n instances.clear()\n })\n</script>\n",
|
|
17
17
|
"type": "registry:ui"
|
|
18
18
|
},
|
|
19
19
|
{
|
package/public/r/command.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/ui/command/command.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n label?: string\n defaultValue?: string\n defaultSearch?: string\n shouldFilter?: boolean\n loop?: boolean\n disablePointerSelection?: boolean\n vimBindings?: boolean\n}\n\nconst {\n class: className,\n label,\n defaultValue,\n defaultSearch,\n shouldFilter,\n loop,\n disablePointerSelection,\n vimBindings,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"command\"\n data-label={label}\n data-default-value={defaultValue}\n data-default-search={defaultSearch}\n data-should-filter={shouldFilter}\n data-loop={loop}\n data-disable-pointer-selection={disablePointerSelection}\n data-vim-bindings={vimBindings}\n class={cn(\n \"bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/command\"\n import { getParts } from \"@data-slot/core\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n\n
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n label?: string\n defaultValue?: string\n defaultSearch?: string\n shouldFilter?: boolean\n loop?: boolean\n disablePointerSelection?: boolean\n vimBindings?: boolean\n}\n\nconst {\n class: className,\n label,\n defaultValue,\n defaultSearch,\n shouldFilter,\n loop,\n disablePointerSelection,\n vimBindings,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"command\"\n data-label={label}\n data-default-value={defaultValue}\n data-default-search={defaultSearch}\n data-should-filter={shouldFilter}\n data-loop={loop}\n data-disable-pointer-selection={disablePointerSelection}\n data-vim-bindings={vimBindings}\n class={cn(\n \"bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/command\"\n import { getParts } from \"@data-slot/core\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n\n const isCommandInput = (\n target: EventTarget | null\n ): target is HTMLInputElement =>\n target instanceof HTMLInputElement &&\n target.dataset.slot === \"command-input\"\n\n // Do not act on the Enter that confirms an IME composition. Safari fires\n // that keydown right after compositionend with isComposing set to false, so\n // treat the first keydown after compositionend as the confirming key when it\n // arrives within 50 ms. Any later keydown is a new key press.\n let composing = false\n let compositionEndedAt = -Infinity\n document.addEventListener(\n \"compositionstart\",\n (event) => {\n if (isCommandInput(event.target)) composing = true\n },\n true\n )\n document.addEventListener(\n \"compositionend\",\n (event) => {\n if (!isCommandInput(event.target)) return\n composing = false\n compositionEndedAt = event.timeStamp\n },\n true\n )\n const confirmsComposition = (event: KeyboardEvent) => {\n if (event.isComposing || composing) return true\n const confirming = event.timeStamp - compositionEndedAt < 50\n compositionEndedAt = -Infinity\n return confirming\n }\n\n // Data Slot selection does not activate links. Preserve native navigation.\n document.addEventListener(\n \"keydown\",\n (event) => {\n const input = event.target\n if (!isCommandInput(input)) return\n const confirming = confirmsComposition(event)\n if (event.key !== \"Enter\" || event.defaultPrevented || confirming) return\n const root = input.closest('[data-slot=\"command\"]')\n if (!root) return\n const item = getParts<HTMLAnchorElement>(root, \"command-item\").find(\n (item) =>\n item.hasAttribute(\"data-selected\") &&\n item.hasAttribute(\"href\") &&\n item.getAttribute(\"aria-disabled\") !== \"true\"\n )\n if (!item) return\n event.preventDefault()\n item.click()\n },\n true\n )\n</script>\n",
|
|
18
18
|
"type": "registry:ui"
|
|
19
19
|
},
|
|
20
20
|
{
|
package/public/r/doc-1.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Documentation page shells for component pages with content, table of contents, and contextual links.",
|
|
6
6
|
"dependencies": [
|
|
7
7
|
"@lucide/astro",
|
|
8
|
-
"simple-icons
|
|
8
|
+
"simple-icons"
|
|
9
9
|
],
|
|
10
10
|
"registryDependencies": [
|
|
11
11
|
"@fulldev/button",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
{
|
|
20
20
|
"path": "src/components/blocks/doc-1.astro",
|
|
21
|
-
"content": "---\nimport ArrowLeft from \"@lucide/astro/icons/arrow-left\"\nimport ArrowRight from \"@lucide/astro/icons/arrow-right\"\nimport Check from \"@lucide/astro/icons/check\"\nimport ChevronDown from \"@lucide/astro/icons/chevron-down\"\nimport Copy from \"@lucide/astro/icons/copy\"\nimport ExternalLink from \"@lucide/astro/icons/external-link\"\nimport Claude from \"simple-icons-astro/Claude\"\nimport Cursor from \"simple-icons-astro/Cursor\"\nimport Markdown from \"simple-icons-astro/Markdown\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { buttonVariants } from \"@/components/ui/button/button-variants\"\nimport {\n Card,\n CardDescription,\n CardFooter,\n CardHeader,\n} from \"@/components/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport { SectionContainer } from \"@/components/ui/section\"\nimport {\n Toc,\n TocMenu,\n TocMenuItem,\n TocMenuLink,\n TocTitle,\n} from \"@/components/ui/toc\"\nimport {\n Typography,\n TypographyH1,\n TypographyLead,\n} from \"@/components/ui/typography\"\n\ntype Props = {\n class?: string\n title: string\n description?: string\n copyButton?: {\n id: string\n source: string\n }\n markdownUrl?: string\n tocItems: {\n depth: number\n href: string\n label: string\n }[]\n callout?: {\n description: string\n button: {\n label: string\n href: string\n variant?: \"default\" | \"outline\" | \"secondary\" | \"ghost\"\n }\n }\n previousPage?: {\n href: string\n title: string\n }\n nextPage?: {\n href: string\n title: string\n }\n labels: {\n copyMarkdown: string\n openIn: string\n openInMarkdown: string\n openInChatGPT: string\n openInClaude: string\n openInCursor: string\n pagination: {\n previous: string\n next: string\n ariaLabel: string\n }\n toc: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n copyButton,\n markdownUrl,\n tocItems,\n callout,\n previousPage,\n nextPage,\n labels,\n} = Astro.props\nconst showCopyButton = Boolean(copyButton)\nconst showOpenButton = Boolean(markdownUrl)\nconst showPagination = Boolean(previousPage || nextPage)\nconst assistantPrompt = markdownUrl\n ? `Read ${new URL(markdownUrl, Astro.site ?? Astro.url.origin).href}, I want to ask questions about it.`\n : \"\"\nconst openLinks = markdownUrl\n ? [\n {\n label: labels.openInMarkdown,\n href: markdownUrl,\n icon: \"markdown\",\n },\n {\n label: labels.openInChatGPT,\n href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"chatgpt\",\n },\n {\n label: labels.openInClaude,\n href: `https://claude.ai/new?q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"claude\",\n },\n {\n label: labels.openInCursor,\n href: `https://cursor.com/link/prompt?text=${encodeURIComponent(assistantPrompt)}`,\n icon: \"cursor\",\n },\n ]\n : []\n---\n\n<SectionContainer\n class={cn(\n \"gap-10 pt-10 pb-8 sm:pt-12 sm:pb-10 xl:grid xl:grid-cols-[minmax(0,1fr)_16rem] xl:items-start xl:gap-x-16\",\n className\n )}\n>\n <div class=\"mx-auto flex w-full max-w-3xl min-w-0 flex-col gap-10\">\n <header\n class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col gap-2\">\n <TypographyH1\n size=\"sm\"\n class=\"text-foreground text-left tracking-tight\"\n >\n {title}\n </TypographyH1>\n {\n description && (\n <TypographyLead size=\"sm\" class=\"max-w-2xl leading-7\">\n {description}\n </TypographyLead>\n )\n }\n </div>\n <div class=\"flex shrink-0 items-center gap-2 self-start\">\n {\n showCopyButton && (\n <Button\n id={copyButton?.id}\n type=\"button\"\n variant=\"outline\"\n size=\"xs\"\n data-source={copyButton?.source}\n aria-label={labels.copyMarkdown}\n >\n <Copy data-copy-icon class=\"docs-copy-icon size-3.5\" />\n <Check data-check-icon class=\"docs-check-icon hidden size-3.5\" />\n <span>{labels.copyMarkdown}</span>\n </Button>\n )\n }\n {\n showOpenButton && (\n <DropdownMenu>\n <DropdownMenuTrigger\n class={buttonVariants({ variant: \"outline\", size: \"xs\" })}\n >\n <span>{labels.openIn}</span>\n <ChevronDown class=\"size-3.5 opacity-70\" />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" sideOffset={6} class=\"w-56\">\n {openLinks.map((link) => (\n <DropdownMenuItem\n href={link.href}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {link.icon === \"markdown\" && <Markdown class=\"size-4\" />}\n {link.icon === \"chatgpt\" && (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"size-4\"\n aria-hidden=\"true\"\n >\n <path d=\"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.182a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .511 4.91 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.989 5.989 0 0 0 3.998-2.9 6.056 6.056 0 0 0-.748-7.073ZM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.142-.081 4.778-2.758a.795.795 0 0 0 .393-.681v-6.737l2.02 1.169a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.495 4.494Zm-9.66-4.125a4.471 4.471 0 0 1-.535-3.014l.142.085 4.783 2.758a.771.771 0 0 0 .781 0l5.843-3.368v2.332a.08.08 0 0 1-.034.062L9.74 19.95a4.499 4.499 0 0 1-6.14-1.646ZM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.677l5.814 3.354-2.02 1.169a.076.076 0 0 1-.071 0l-4.83-2.787A4.504 4.504 0 0 1 2.34 7.872Zm16.596 3.856-5.833-3.388L15.12 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.104v-5.677a.79.79 0 0 0-.407-.667Zm2.011-3.024-.142-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.499 4.499 0 0 1 6.68 4.66ZM8.307 12.863l-2.02-1.164a.08.08 0 0 1-.038-.057V6.074a4.499 4.499 0 0 1 7.376-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681Zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z\" />\n </svg>\n )}\n {link.icon === \"claude\" && <Claude class=\"size-4\" />}\n {link.icon === \"cursor\" && <Cursor class=\"size-4\" />}\n <span>{link.label}</span>\n <ExternalLink class=\"text-muted-foreground ml-auto size-3.5\" />\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n }\n </div>\n </header>\n\n <Typography as=\"article\" size=\"sm\">\n <slot />\n </Typography>\n\n {\n showPagination && (\n <nav\n class=\"flex items-center justify-between gap-3\"\n aria-label={labels.pagination.ariaLabel}\n >\n {previousPage ? (\n <Button\n as=\"a\"\n href={previousPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-start gap-2 px-3 py-2 whitespace-normal\"\n >\n <ArrowLeft class=\"size-4\" />\n <span class=\"truncate text-sm font-medium\">\n {previousPage.title}\n </span>\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n\n {nextPage ? (\n <Button\n as=\"a\"\n href={nextPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-end gap-2 px-3 py-2 text-right whitespace-normal\"\n >\n <span class=\"truncate text-sm font-medium\">{nextPage.title}</span>\n <ArrowRight class=\"size-4\" />\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n </nav>\n )\n }\n </div>\n\n {\n (tocItems.length > 0 || callout) && (\n <aside class=\"hidden w-64 xl:sticky xl:top-12 xl:mr-0 xl:ml-auto xl:block xl:self-start\">\n <div class=\"flex flex-col gap-6\">\n {tocItems.length > 0 && (\n <Toc aria-label={labels.toc}>\n <TocTitle>{labels.toc}</TocTitle>\n <TocMenu>\n {tocItems.map((item) => (\n <TocMenuItem>\n <TocMenuLink href={item.href} depth={item.depth}>\n {item.label}\n </TocMenuLink>\n </TocMenuItem>\n ))}\n </TocMenu>\n </Toc>\n )}\n\n {callout && (\n <Card size=\"sm\">\n <CardHeader>\n <CardDescription>{callout.description}</CardDescription>\n </CardHeader>\n <CardFooter>\n <Button\n as=\"a\"\n href={callout.button.href}\n variant={callout.button.variant}\n size=\"sm\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {callout.button.label}\n </Button>\n </CardFooter>\n </Card>\n )}\n </div>\n </aside>\n )\n }\n</SectionContainer>\n\n<style is:global>\n .docs-code-block {\n position: relative;\n overflow: hidden;\n margin-block-start: var(--typeset-flow);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-xl);\n background: color-mix(in oklab, var(--color-muted) 60%, transparent);\n }\n\n .docs-code-block > pre,\n .docs-code-block > pre.astro-code {\n margin: 0;\n overflow-x: auto;\n border: 0;\n border-radius: 0;\n background: transparent !important;\n padding: 1rem 3.5rem 1rem 1rem;\n font-family: var(--font-mono);\n font-size: var(--text-sm);\n line-height: var(--text-sm--line-height);\n }\n\n .docs-code-block > pre.astro-code code {\n color: var(--shiki-light, var(--color-foreground)) !important;\n font: inherit;\n }\n\n .dark .docs-code-block > pre.astro-code code {\n color: var(--shiki-dark, var(--color-foreground)) !important;\n }\n\n .dark .docs-code-block > pre.astro-code span[style*=\"--shiki-dark\"] {\n color: var(--shiki-dark) !important;\n font-style: var(--shiki-dark-font-style, inherit) !important;\n font-weight: var(--shiki-dark-font-weight, inherit) !important;\n text-decoration: var(--shiki-dark-text-decoration, inherit) !important;\n }\n\n .docs-code-copy {\n position: absolute;\n z-index: 10;\n top: 0.75rem;\n right: 0.75rem;\n display: inline-flex;\n width: 2rem;\n height: 2rem;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n background: var(--color-background);\n color: var(--color-muted-foreground);\n box-shadow: var(--shadow-sm);\n transition:\n color 150ms,\n background-color 150ms;\n }\n\n .docs-code-copy:hover {\n background: var(--color-accent);\n color: var(--color-accent-foreground);\n }\n\n .docs-code-copy:focus-visible {\n outline: 2px solid var(--color-ring);\n outline-offset: 2px;\n }\n\n .docs-code-copy svg {\n width: 1rem;\n height: 1rem;\n }\n</style>\n\n<script>\n const copyIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg>`\n const checkIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"></path></svg>`\n const initializeCodeBlocks = () => {\n document\n .querySelectorAll(\"[data-slot='typography'] > pre\")\n .forEach((pre) => {\n if (pre.closest(\".docs-code-block\")) return\n const wrapper = document.createElement(\"div\")\n const button = document.createElement(\"button\")\n wrapper.className = \"docs-code-block\"\n wrapper.dataset.notTypeset = \"\"\n button.type = \"button\"\n button.className = \"docs-code-copy\"\n button.ariaLabel = \"Copy code\"\n button.innerHTML = `<span data-copy-icon>${copyIcon}</span><span data-check-icon class=\"hidden\">${checkIcon}</span>`\n pre.before(wrapper)\n wrapper.append(pre, button)\n })\n }\n\n initializeCodeBlocks()\n document.addEventListener(\"astro:page-load\", initializeCodeBlocks)\n\n document.addEventListener(\"click\", async (event) => {\n if (!(event.target instanceof Element)) return\n const button = event.target.closest(\n \"[id^='docs-copy-page-'], .docs-code-copy\"\n )\n if (!(button instanceof HTMLButtonElement)) return\n const source =\n button.dataset.source ??\n button\n .closest(\".docs-code-block\")\n ?.querySelector(\"pre\")\n ?.textContent?.replace(/\\n$/, \"\")\n\n try {\n await navigator.clipboard.writeText(source ?? \"\")\n button.querySelector(\"[data-copy-icon]\")?.classList.add(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.remove(\"hidden\")\n setTimeout(() => {\n button.querySelector(\"[data-copy-icon]\")?.classList.remove(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.add(\"hidden\")\n }, 1200)\n } catch {\n // Keep the copy state unchanged so the action can be retried.\n }\n })\n</script>\n",
|
|
21
|
+
"content": "---\nimport ArrowLeft from \"@lucide/astro/icons/arrow-left\"\nimport ArrowRight from \"@lucide/astro/icons/arrow-right\"\nimport Check from \"@lucide/astro/icons/check\"\nimport ChevronDown from \"@lucide/astro/icons/chevron-down\"\nimport Copy from \"@lucide/astro/icons/copy\"\nimport ExternalLink from \"@lucide/astro/icons/external-link\"\nimport Claude from \"simple-icons/icons/claude.svg\"\nimport Cursor from \"simple-icons/icons/cursor.svg\"\nimport Markdown from \"simple-icons/icons/markdown.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { buttonVariants } from \"@/components/ui/button/button-variants\"\nimport {\n Card,\n CardDescription,\n CardFooter,\n CardHeader,\n} from \"@/components/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport { SectionContainer } from \"@/components/ui/section\"\nimport {\n Toc,\n TocMenu,\n TocMenuItem,\n TocMenuLink,\n TocTitle,\n} from \"@/components/ui/toc\"\nimport {\n Typography,\n TypographyH1,\n TypographyLead,\n} from \"@/components/ui/typography\"\n\ntype Props = {\n class?: string\n title: string\n description?: string\n copyButton?: {\n id: string\n source: string\n }\n markdownUrl?: string\n tocItems: {\n depth: number\n href: string\n label: string\n }[]\n callout?: {\n description: string\n button: {\n label: string\n href: string\n variant?: \"default\" | \"outline\" | \"secondary\" | \"ghost\"\n }\n }\n previousPage?: {\n href: string\n title: string\n }\n nextPage?: {\n href: string\n title: string\n }\n labels: {\n copyMarkdown: string\n openIn: string\n openInMarkdown: string\n openInChatGPT: string\n openInClaude: string\n openInCursor: string\n pagination: {\n previous: string\n next: string\n ariaLabel: string\n }\n toc: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n copyButton,\n markdownUrl,\n tocItems,\n callout,\n previousPage,\n nextPage,\n labels,\n} = Astro.props\nconst showCopyButton = Boolean(copyButton)\nconst showOpenButton = Boolean(markdownUrl)\nconst showPagination = Boolean(previousPage || nextPage)\nconst assistantPrompt = markdownUrl\n ? `Read ${new URL(markdownUrl, Astro.site ?? Astro.url.origin).href}, I want to ask questions about it.`\n : \"\"\nconst openLinks = markdownUrl\n ? [\n {\n label: labels.openInMarkdown,\n href: markdownUrl,\n icon: \"markdown\",\n },\n {\n label: labels.openInChatGPT,\n href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"chatgpt\",\n },\n {\n label: labels.openInClaude,\n href: `https://claude.ai/new?q=${encodeURIComponent(assistantPrompt)}`,\n icon: \"claude\",\n },\n {\n label: labels.openInCursor,\n href: `https://cursor.com/link/prompt?text=${encodeURIComponent(assistantPrompt)}`,\n icon: \"cursor\",\n },\n ]\n : []\n---\n\n<SectionContainer\n class={cn(\n \"gap-10 pt-10 pb-8 sm:pt-12 sm:pb-10 xl:grid xl:grid-cols-[minmax(0,1fr)_16rem] xl:items-start xl:gap-x-16\",\n className\n )}\n>\n <div class=\"mx-auto flex w-full max-w-3xl min-w-0 flex-col gap-10\">\n <header\n class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\"\n >\n <div class=\"flex min-w-0 flex-1 flex-col gap-2\">\n <TypographyH1\n size=\"sm\"\n class=\"text-foreground text-left tracking-tight\"\n >\n {title}\n </TypographyH1>\n {\n description && (\n <TypographyLead size=\"sm\" class=\"max-w-2xl leading-7\">\n {description}\n </TypographyLead>\n )\n }\n </div>\n <div class=\"flex shrink-0 items-center gap-2 self-start\">\n {\n showCopyButton && (\n <Button\n id={copyButton?.id}\n type=\"button\"\n variant=\"outline\"\n size=\"xs\"\n data-source={copyButton?.source}\n aria-label={labels.copyMarkdown}\n >\n <Copy data-copy-icon class=\"docs-copy-icon size-3.5\" />\n <Check data-check-icon class=\"docs-check-icon hidden size-3.5\" />\n <span>{labels.copyMarkdown}</span>\n </Button>\n )\n }\n {\n showOpenButton && (\n <DropdownMenu>\n <DropdownMenuTrigger\n class={buttonVariants({ variant: \"outline\", size: \"xs\" })}\n >\n <span>{labels.openIn}</span>\n <ChevronDown class=\"size-3.5 opacity-70\" />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" sideOffset={6} class=\"w-56\">\n {openLinks.map((link) => (\n <DropdownMenuItem\n href={link.href}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {link.icon === \"markdown\" && (\n <Markdown\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"chatgpt\" && (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"size-4\"\n aria-hidden=\"true\"\n >\n <path d=\"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.182a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .511 4.91 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.989 5.989 0 0 0 3.998-2.9 6.056 6.056 0 0 0-.748-7.073ZM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.142-.081 4.778-2.758a.795.795 0 0 0 .393-.681v-6.737l2.02 1.169a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.495 4.494Zm-9.66-4.125a4.471 4.471 0 0 1-.535-3.014l.142.085 4.783 2.758a.771.771 0 0 0 .781 0l5.843-3.368v2.332a.08.08 0 0 1-.034.062L9.74 19.95a4.499 4.499 0 0 1-6.14-1.646ZM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.677l5.814 3.354-2.02 1.169a.076.076 0 0 1-.071 0l-4.83-2.787A4.504 4.504 0 0 1 2.34 7.872Zm16.596 3.856-5.833-3.388L15.12 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.104v-5.677a.79.79 0 0 0-.407-.667Zm2.011-3.024-.142-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.499 4.499 0 0 1 6.68 4.66ZM8.307 12.863l-2.02-1.164a.08.08 0 0 1-.038-.057V6.074a4.499 4.499 0 0 1 7.376-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681Zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z\" />\n </svg>\n )}\n {link.icon === \"claude\" && (\n <Claude\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"cursor\" && (\n <Cursor\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n <span>{link.label}</span>\n <ExternalLink class=\"text-muted-foreground ml-auto size-3.5\" />\n </DropdownMenuItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n }\n </div>\n </header>\n\n <Typography as=\"article\" size=\"sm\">\n <slot />\n </Typography>\n\n {\n showPagination && (\n <nav\n class=\"flex items-center justify-between gap-3\"\n aria-label={labels.pagination.ariaLabel}\n >\n {previousPage ? (\n <Button\n as=\"a\"\n href={previousPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-start gap-2 px-3 py-2 whitespace-normal\"\n >\n <ArrowLeft class=\"size-4\" />\n <span class=\"truncate text-sm font-medium\">\n {previousPage.title}\n </span>\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n\n {nextPage ? (\n <Button\n as=\"a\"\n href={nextPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-end gap-2 px-3 py-2 text-right whitespace-normal\"\n >\n <span class=\"truncate text-sm font-medium\">{nextPage.title}</span>\n <ArrowRight class=\"size-4\" />\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n </nav>\n )\n }\n </div>\n\n {\n (tocItems.length > 0 || callout) && (\n <div class=\"hidden w-64 xl:sticky xl:top-12 xl:mr-0 xl:ml-auto xl:block xl:self-start\">\n <div class=\"flex flex-col gap-6\">\n {tocItems.length > 0 && (\n <Toc aria-label={labels.toc}>\n <TocTitle>{labels.toc}</TocTitle>\n <TocMenu>\n {tocItems.map((item) => (\n <TocMenuItem>\n <TocMenuLink href={item.href} depth={item.depth}>\n {item.label}\n </TocMenuLink>\n </TocMenuItem>\n ))}\n </TocMenu>\n </Toc>\n )}\n\n {callout && (\n <Card size=\"sm\">\n <CardHeader>\n <CardDescription>{callout.description}</CardDescription>\n </CardHeader>\n <CardFooter>\n <Button\n as=\"a\"\n href={callout.button.href}\n variant={callout.button.variant}\n size=\"sm\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {callout.button.label}\n </Button>\n </CardFooter>\n </Card>\n )}\n </div>\n </div>\n )\n }\n</SectionContainer>\n\n<style is:global>\n .docs-code-block {\n position: relative;\n overflow: hidden;\n margin-block-start: var(--typeset-flow);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-xl);\n background: color-mix(in oklab, var(--color-muted) 60%, transparent);\n }\n\n .docs-code-block > pre,\n .docs-code-block > pre.astro-code {\n margin: 0;\n overflow-x: auto;\n border: 0;\n border-radius: 0;\n background: transparent !important;\n padding: 1rem 3.5rem 1rem 1rem;\n font-family: var(--font-mono);\n font-size: var(--text-sm);\n line-height: var(--text-sm--line-height);\n }\n\n .docs-code-block > pre.astro-code code {\n color: var(--shiki-light, var(--color-foreground)) !important;\n font: inherit;\n }\n\n .dark .docs-code-block > pre.astro-code code {\n color: var(--shiki-dark, var(--color-foreground)) !important;\n }\n\n .dark .docs-code-block > pre.astro-code span[style*=\"--shiki-dark\"] {\n color: var(--shiki-dark) !important;\n font-style: var(--shiki-dark-font-style, inherit) !important;\n font-weight: var(--shiki-dark-font-weight, inherit) !important;\n text-decoration: var(--shiki-dark-text-decoration, inherit) !important;\n }\n\n .docs-code-copy {\n position: absolute;\n z-index: 10;\n top: 0.75rem;\n right: 0.75rem;\n display: inline-flex;\n width: 2rem;\n height: 2rem;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n background: var(--color-background);\n color: var(--color-muted-foreground);\n box-shadow: var(--shadow-sm);\n transition:\n color 150ms,\n background-color 150ms;\n }\n\n .docs-code-copy:hover {\n background: var(--color-accent);\n color: var(--color-accent-foreground);\n }\n\n .docs-code-copy:focus-visible {\n outline: 2px solid var(--color-ring);\n outline-offset: 2px;\n }\n\n .docs-code-copy svg {\n width: 1rem;\n height: 1rem;\n }\n</style>\n\n<script>\n const copyIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg>`\n const checkIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"></path></svg>`\n const initializeCodeBlocks = () => {\n document\n .querySelectorAll(\"[data-slot='typography'] > pre\")\n .forEach((pre) => {\n if (pre.closest(\".docs-code-block\")) return\n const wrapper = document.createElement(\"div\")\n const button = document.createElement(\"button\")\n wrapper.className = \"docs-code-block\"\n wrapper.dataset.notTypeset = \"\"\n button.type = \"button\"\n button.className = \"docs-code-copy\"\n button.ariaLabel = \"Copy code\"\n button.innerHTML = `<span data-copy-icon>${copyIcon}</span><span data-check-icon class=\"hidden\">${checkIcon}</span>`\n pre.before(wrapper)\n wrapper.append(pre, button)\n })\n }\n\n initializeCodeBlocks()\n document.addEventListener(\"astro:page-load\", initializeCodeBlocks)\n\n document.addEventListener(\"click\", async (event) => {\n if (!(event.target instanceof Element)) return\n const button = event.target.closest(\n \"[id^='docs-copy-page-'], .docs-code-copy\"\n )\n if (!(button instanceof HTMLButtonElement)) return\n const source =\n button.dataset.source ??\n button\n .closest(\".docs-code-block\")\n ?.querySelector(\"pre\")\n ?.textContent?.replace(/\\n$/, \"\")\n\n try {\n await navigator.clipboard.writeText(source ?? \"\")\n button.querySelector(\"[data-copy-icon]\")?.classList.add(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.remove(\"hidden\")\n setTimeout(() => {\n button.querySelector(\"[data-copy-icon]\")?.classList.remove(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.add(\"hidden\")\n }, 1200)\n } catch {\n // Keep the copy state unchanged so the action can be retried.\n }\n })\n</script>\n",
|
|
22
22
|
"type": "registry:block"
|
|
23
23
|
}
|
|
24
24
|
],
|
package/public/r/footer-1.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Footer 1",
|
|
5
5
|
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"simple-icons
|
|
7
|
+
"simple-icons"
|
|
8
8
|
],
|
|
9
9
|
"registryDependencies": [
|
|
10
10
|
"@fulldev/logo",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/blocks/footer-1.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons/icons/discord.svg\"\nimport Github from \"simple-icons/icons/github.svg\"\nimport X from \"simple-icons/icons/x.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n socials?: {\n label: string\n href: string\n icon: string\n }[]\n columns: {\n title: string\n links: {\n label: string\n href: string\n }[]\n }[]\n copyright: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n socials,\n columns,\n copyright,\n ...props\n} = Astro.props\n\nconst iconMap: Record<string, any> = {\n github: Github,\n discord: Discord,\n x: X,\n}\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-16 lg:py-20\">\n <SectionContainer>\n <div class=\"grid gap-10 lg:grid-cols-[1fr_2fr]\">\n <div class=\"flex flex-col gap-5\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-xs text-sm leading-relaxed\">\n {description}\n </p>\n {\n socials && socials.length > 0 && (\n <div class=\"flex items-center gap-3\">\n {socials.map((social) => {\n const IconComp = iconMap[social.icon]\n return (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {IconComp && (\n <IconComp\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n </a>\n )\n })}\n </div>\n )\n }\n </div>\n <div class=\"grid gap-8 sm:grid-cols-3\">\n {\n columns.map((column) => (\n <div class=\"flex flex-col gap-3\">\n <p class=\"text-sm font-medium\">{column.title}</p>\n <ul class=\"flex flex-col gap-2.5\">\n {column.links.map((link) => (\n <li>\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))\n }\n </div>\n </div>\n <Separator />\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
18
18
|
"type": "registry:block"
|
|
19
19
|
}
|
|
20
20
|
],
|
package/public/r/footer-2.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Footer 2",
|
|
5
5
|
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"simple-icons
|
|
7
|
+
"simple-icons"
|
|
8
8
|
],
|
|
9
9
|
"registryDependencies": [
|
|
10
10
|
"@fulldev/logo",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/blocks/footer-2.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons/icons/discord.svg\"\nimport Github from \"simple-icons/icons/github.svg\"\nimport X from \"simple-icons/icons/x.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n links?: {\n label: string\n href: string\n }[]\n socials?: {\n label: string\n href: string\n icon: string\n }[]\n copyright: string\n navigationLabel?: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n links,\n socials,\n copyright,\n navigationLabel = \"Footer navigation\",\n ...props\n} = Astro.props\n\nconst iconMap: Record<string, any> = {\n github: Github,\n discord: Discord,\n x: X,\n}\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-12 lg:py-16\">\n <SectionContainer class=\"items-center text-center\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-md text-sm leading-relaxed\">\n {description}\n </p>\n {\n links && links.length > 0 && (\n <nav\n aria-label={navigationLabel}\n class=\"flex flex-wrap items-center justify-center gap-x-6 gap-y-2\"\n >\n {links.map((link) => (\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n ))}\n </nav>\n )\n }\n {\n socials && socials.length > 0 && (\n <div class=\"flex items-center justify-center gap-3\">\n {socials.map((social) => {\n const IconComp = iconMap[social.icon]\n return (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {IconComp && (\n <IconComp\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n </a>\n )\n })}\n </div>\n )\n }\n <Separator />\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
18
18
|
"type": "registry:block"
|
|
19
19
|
}
|
|
20
20
|
],
|
package/public/r/footer-3.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "Footer 3",
|
|
5
5
|
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
6
|
"dependencies": [
|
|
7
|
-
"simple-icons
|
|
7
|
+
"simple-icons"
|
|
8
8
|
],
|
|
9
9
|
"registryDependencies": [
|
|
10
10
|
"@fulldev/logo",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
{
|
|
16
16
|
"path": "src/components/blocks/footer-3.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons
|
|
17
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport Discord from \"simple-icons/icons/discord.svg\"\nimport Github from \"simple-icons/icons/github.svg\"\nimport X from \"simple-icons/icons/x.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n socials?: {\n label: string\n href: string\n icon: string\n }[]\n columns: {\n title: string\n links: {\n label: string\n href: string\n }[]\n }[]\n copyright: string\n bottomLinks?: {\n label: string\n href: string\n }[]\n navigationLabel?: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n socials,\n columns,\n copyright,\n bottomLinks,\n navigationLabel = \"Footer navigation\",\n ...props\n} = Astro.props\n\nconst iconMap: Record<string, any> = {\n github: Github,\n discord: Discord,\n x: X,\n}\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-16 lg:py-20\">\n <SectionContainer>\n <div class=\"grid gap-10 lg:grid-cols-[1fr_2fr]\">\n <div class=\"flex flex-col gap-5\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-xs text-sm leading-relaxed\">\n {description}\n </p>\n {\n socials && socials.length > 0 && (\n <div class=\"flex items-center gap-3\">\n {socials.map((social) => {\n const IconComp = iconMap[social.icon]\n return (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {IconComp && (\n <IconComp\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n </a>\n )\n })}\n </div>\n )\n }\n </div>\n <div class=\"grid gap-8 sm:grid-cols-3\">\n {\n columns.map((column) => (\n <div class=\"flex flex-col gap-3\">\n <p class=\"text-sm font-medium\">{column.title}</p>\n <ul class=\"flex flex-col gap-2.5\">\n {column.links.map((link) => (\n <li>\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))\n }\n </div>\n </div>\n <Separator />\n <div\n class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\"\n >\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n {\n bottomLinks && bottomLinks.length > 0 && (\n <nav\n aria-label={navigationLabel}\n class=\"flex flex-wrap items-center gap-x-5 gap-y-2\"\n >\n {bottomLinks.map((link) => (\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n ))}\n </nav>\n )\n }\n </div>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
18
18
|
"type": "registry:block"
|
|
19
19
|
}
|
|
20
20
|
],
|
package/public/r/input.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "src/components/ui/input/input.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"input\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input\",\n ...props\n} = Astro.props\n---\n\n<input\n data-slot={dataSlot}\n class={cn(\n \"dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 file:text-foreground placeholder:text-muted-foreground h-9 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm\",\n className\n )}\n {...props}\n/>\n",
|
|
9
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"input\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input\",\n multiple,\n ...props\n} = Astro.props\n\n// Astro renders `multiple` as `multiple=\"true\"` or `multiple=\"false\"`, and both\n// enable it. Render the bare attribute only when it is set.\n---\n\n<input\n data-slot={dataSlot}\n multiple={multiple ? \"\" : undefined}\n class={cn(\n \"dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 file:text-foreground placeholder:text-muted-foreground h-9 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm\",\n className\n )}\n {...props}\n/>\n",
|
|
10
10
|
"type": "registry:ui"
|
|
11
11
|
},
|
|
12
12
|
{
|
package/public/r/layout.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
{
|
|
11
11
|
"path": "src/components/ui/native-select/native-select.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"select\">, \"size\"> & {\n size?: \"sm\" | \"default\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n class={cn(\n \"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n className\n )}\n data-slot=\"native-select-wrapper\"\n data-size={size}\n>\n <select\n data-slot=\"native-select\"\n data-size={size}\n class=\"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:ring-3 data-[size=sm]:h-8\"\n {...props}\n >\n <slot />\n </select>\n <ChevronDownIcon\n class=\"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 select-none\"\n aria-hidden=\"true\"\n data-slot=\"native-select-icon\"\n />\n</div>\n",
|
|
12
|
+
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"select\">, \"size\"> & {\n size?: \"sm\" | \"default\"\n}\n\nconst { class: className, size = \"default\", multiple, ...props } = Astro.props\n\n// Astro renders `multiple` as `multiple=\"true\"` or `multiple=\"false\"`, and both\n// enable it. Render the bare attribute only when it is set.\n---\n\n<div\n class={cn(\n \"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n className\n )}\n data-slot=\"native-select-wrapper\"\n data-size={size}\n>\n <select\n data-slot=\"native-select\"\n data-size={size}\n multiple={multiple ? \"\" : undefined}\n class=\"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:ring-3 data-[size=sm]:h-8\"\n {...props}\n >\n <slot />\n </select>\n <ChevronDownIcon\n class=\"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 select-none\"\n aria-hidden=\"true\"\n data-slot=\"native-select-icon\"\n />\n</div>\n",
|
|
13
13
|
"type": "registry:ui"
|
|
14
14
|
},
|
|
15
15
|
{
|