fulldev-ui 0.18.0 → 0.19.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +2 -2
  3. package/public/r/button.json +1 -1
  4. package/public/r/card.json +2 -2
  5. package/public/r/navigation-menu.json +1 -1
  6. package/public/r/styles/base-luma/button.json +1 -1
  7. package/public/r/styles/base-luma/card.json +2 -2
  8. package/public/r/styles/base-luma/navigation-menu.json +1 -1
  9. package/public/r/styles/base-luma/video.json +1 -1
  10. package/public/r/styles/base-lyra/button.json +1 -1
  11. package/public/r/styles/base-lyra/card.json +2 -2
  12. package/public/r/styles/base-lyra/navigation-menu.json +1 -1
  13. package/public/r/styles/base-lyra/video.json +1 -1
  14. package/public/r/styles/base-maia/button.json +1 -1
  15. package/public/r/styles/base-maia/card.json +2 -2
  16. package/public/r/styles/base-maia/navigation-menu.json +1 -1
  17. package/public/r/styles/base-maia/video.json +1 -1
  18. package/public/r/styles/base-mira/button.json +1 -1
  19. package/public/r/styles/base-mira/card.json +2 -2
  20. package/public/r/styles/base-mira/navigation-menu.json +1 -1
  21. package/public/r/styles/base-mira/video.json +1 -1
  22. package/public/r/styles/base-nova/button.json +1 -1
  23. package/public/r/styles/base-nova/card.json +2 -2
  24. package/public/r/styles/base-nova/navigation-menu.json +1 -1
  25. package/public/r/styles/base-nova/video.json +1 -1
  26. package/public/r/styles/base-rhea/button.json +1 -1
  27. package/public/r/styles/base-rhea/card.json +2 -2
  28. package/public/r/styles/base-rhea/navigation-menu.json +1 -1
  29. package/public/r/styles/base-rhea/video.json +1 -1
  30. package/public/r/styles/base-sera/button.json +1 -1
  31. package/public/r/styles/base-sera/card.json +2 -2
  32. package/public/r/styles/base-sera/navigation-menu.json +1 -1
  33. package/public/r/styles/base-sera/video.json +1 -1
  34. package/public/r/styles/base-vega/button.json +1 -1
  35. package/public/r/styles/base-vega/card.json +2 -2
  36. package/public/r/styles/base-vega/navigation-menu.json +1 -1
  37. package/public/r/styles/base-vega/video.json +1 -1
  38. package/public/r/video.json +1 -1
  39. package/src/components/ui/button/button.astro +4 -2
  40. package/src/components/ui/card/card-title.astro +5 -5
  41. package/src/components/ui/card/card.astro +12 -6
  42. package/src/components/ui/navigation-menu/navigation-menu-content.astro +1 -1
  43. package/src/components/ui/video/video.astro +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Fulldev UI
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#262](https://github.com/fulldotdev/ui/pull/262) [`ac31d53`](https://github.com/fulldotdev/ui/commit/ac31d535756fb844b7e09c70ee597f03076a963b) Thanks [@silveltman](https://github.com/silveltman)! - - `Button` writes `data-variant` and `data-size` on its root element, as shadcn/ui's Button does. Without a `variant` or `size`, both are `default`. Classes and props are unchanged.
8
+ - `Card` takes a polymorphic `as` prop, so a card can render as an `article`, `section`, `a`, `li`, `dl` or any other element, with that element's attributes. It keeps `data-slot="card"` and `data-size`, and still renders a `div` by default.
9
+ - `CardTitle` takes a polymorphic `as` prop, so a title can be a heading such as `h2` or `h3`. It still renders a `div` by default.
10
+
11
+ ## 0.18.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#256](https://github.com/fulldotdev/ui/pull/256) [`3ac9a53`](https://github.com/fulldotdev/ui/commit/3ac9a530dec89c07ea381da932dea517a074936b) Thanks [@silveltman](https://github.com/silveltman)! - Embed YouTube videos from the privacy-enhanced `youtube-nocookie.com` domain, and show the focus ring on navigation menu links inside menu content for keyboard users.
16
+
3
17
  ## 0.18.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
3
  "type": "module",
4
- "version": "0.18.0",
4
+ "version": "0.19.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",
@@ -124,7 +124,7 @@
124
124
  "test": "node --test tests/*.test.mjs",
125
125
  "fix": "prettier --write . && eslint . --fix",
126
126
  "build": "astro build && html-validate dist",
127
- "registry:build": "pnpm registry:meta && node scripts/registry-adapt.mjs && shadcn build --output node_modules/.cache/fulldev-registry && node scripts/registry-styles.mjs && prettier --write . --log-level warn",
127
+ "registry:build": "pnpm registry:meta && node scripts/registry-adapt.mjs && shadcn build --output node_modules/.cache/fulldev-registry && node scripts/registry-styles.mjs && prettier --write registry.json public/r registry/styles/adapted --log-level warn",
128
128
  "registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json public/r registry/styles/adapted",
129
129
  "registry:validate": "node scripts/registry-validate.mjs",
130
130
  "release": "changeset version && pnpm install --lockfile-only",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base leading-normal font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base leading-normal font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-4xl py-(--card-spacing) text-sm shadow-md ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-4xl *:[img:last-child]:rounded-b-4xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-4xl py-(--card-spacing) text-sm shadow-md ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-4xl *:[img:last-child]:rounded-b-4xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-3xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-3xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-3xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-3xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-none py-(--card-spacing) text-xs/relaxed ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-none py-(--card-spacing) text-xs/relaxed ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-sm font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-sm font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-none border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-none border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-2xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-2xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-2xl group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 isolate z-50 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-2xl group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 isolate z-50 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-2xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-2xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-lg py-(--card-spacing) text-xs/relaxed ring-1 [--card-spacing:--spacing(4)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-lg py-(--card-spacing) text-xs/relaxed ring-1 [--card-spacing:--spacing(4)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-sm font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-sm font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-xl group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-md border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-md border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base leading-snug font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base leading-snug font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-[min(var(--radius-4xl),24px)] py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(5)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-[min(var(--radius-4xl),24px)] *:[img:last-child]:rounded-b-[min(var(--radius-4xl),24px)] group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-[min(var(--radius-4xl),24px)] py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(5)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-[min(var(--radius-4xl),24px)] *:[img:last-child]:rounded-b-[min(var(--radius-4xl),24px)] group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 p-1.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-2xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-2xl border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 gap-(--card-spacing) overflow-hidden py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(8)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(5)] *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"bg-card text-card-foreground ring-foreground/5 gap-(--card-spacing) overflow-hidden py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(8)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(5)] *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-lg font-semibold tracking-wider uppercase font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-lg font-semibold tracking-wider uppercase font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:shadow-md group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-none border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-none border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  {
13
13
  "path": "src/components/ui/button/button.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant,\n size,\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
14
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n\nconst attributes: Record<string, unknown> = { ...props }\nif (Tag === \"button\") attributes.type ??= \"button\"\n---\n\n<Tag\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n class={cn(buttonVariants({ variant, size }), className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
15
15
  "type": "registry:ui"
16
16
  },
17
17
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/card/card.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n size?: \"default\" | \"sm\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
9
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{\n as: Tag\n size?: \"default\" | \"sm\"\n}>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"card\"\n data-size={size}\n class={cn(\"ring-foreground/10 bg-card text-card-foreground gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "path": "src/components/ui/card/card-title.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"card-title\"\n class={cn(\"text-base leading-normal font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</div>\n",
24
+ "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"card-title\"\n class={cn(\"text-base leading-normal font-medium group-data-[size=sm]/card:text-sm font-heading\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
25
25
  "type": "registry:ui"
26
26
  },
27
27
  {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "path": "src/components/ui/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none\",\n className\n )}\n>\n <slot />\n</div>\n",
18
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
19
  "type": "registry:ui"
20
20
  },
21
21
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -6,7 +6,7 @@
6
6
  "files": [
7
7
  {
8
8
  "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
9
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"div\">, \"src\"> & {\n src?: string\n}\n\nconst { class: className, src, ...props } = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{\n embedSrc && (\n <iframe\n src={embedSrc}\n title=\"Embedded video\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n allowfullscreen\n class={cn(\n \"bg-muted rounded-lg border w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n {...props}\n />\n )\n}\n",
10
10
  "type": "registry:ui"
11
11
  },
12
12
  {
@@ -11,8 +11,8 @@ type Props<Tag extends HTMLTag = "button"> = Polymorphic<{ as: Tag }> &
11
11
  const {
12
12
  as: Tag = "href" in Astro.props ? "a" : "button",
13
13
  class: className,
14
- variant,
15
- size,
14
+ variant = "default",
15
+ size = "default",
16
16
  ...props
17
17
  } = Astro.props
18
18
 
@@ -22,6 +22,8 @@ if (Tag === "button") attributes.type ??= "button"
22
22
 
23
23
  <Tag
24
24
  data-slot="button"
25
+ data-variant={variant}
26
+ data-size={size}
25
27
  class={cn(buttonVariants({ variant, size }), className)}
26
28
  {...attributes}
27
29
  >
@@ -1,17 +1,17 @@
1
1
  ---
2
- import type { HTMLAttributes } from "astro/types"
2
+ import type { HTMLTag, Polymorphic } from "astro/types"
3
3
 
4
4
  import { cn } from "@/lib/utils"
5
5
 
6
- type Props = HTMLAttributes<"div">
6
+ type Props<Tag extends HTMLTag = "div"> = Polymorphic<{ as: Tag }>
7
7
 
8
- const { class: className, ...props } = Astro.props
8
+ const { as: Tag = "div", class: className, ...props } = Astro.props
9
9
  ---
10
10
 
11
- <div
11
+ <Tag
12
12
  data-slot="card-title"
13
13
  class={cn("cn-card-title font-heading", className)}
14
14
  {...props}
15
15
  >
16
16
  <slot />
17
- </div>
17
+ </Tag>
@@ -1,20 +1,26 @@
1
1
  ---
2
- import type { HTMLAttributes } from "astro/types"
2
+ import type { HTMLTag, Polymorphic } from "astro/types"
3
3
 
4
4
  import { cn } from "@/lib/utils"
5
5
 
6
- type Props = HTMLAttributes<"div"> & {
6
+ type Props<Tag extends HTMLTag = "div"> = Polymorphic<{
7
+ as: Tag
7
8
  size?: "default" | "sm"
8
- }
9
+ }>
9
10
 
10
- const { class: className, size = "default", ...props } = Astro.props
11
+ const {
12
+ as: Tag = "div",
13
+ class: className,
14
+ size = "default",
15
+ ...props
16
+ } = Astro.props
11
17
  ---
12
18
 
13
- <div
19
+ <Tag
14
20
  data-slot="card"
15
21
  data-size={size}
16
22
  class={cn("cn-card group/card flex flex-col", className)}
17
23
  {...props}
18
24
  >
19
25
  <slot />
20
- </div>
26
+ </Tag>
@@ -31,7 +31,7 @@ const {
31
31
  data-side={side}
32
32
  data-side-offset={sideOffset}
33
33
  class={cn(
34
- "cn-navigation-menu-content h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
34
+ "cn-navigation-menu-content h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]",
35
35
  className
36
36
  )}
37
37
  >
@@ -18,17 +18,17 @@ const getEmbedSrc = (value?: string) => {
18
18
 
19
19
  if (host === "youtube.com" && url.pathname === "/watch") {
20
20
  const id = url.searchParams.get("v")
21
- return id ? `https://www.youtube.com/embed/${id}` : undefined
21
+ return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined
22
22
  }
23
23
 
24
24
  if (host === "youtube.com" && url.pathname.startsWith("/shorts/")) {
25
25
  const id = url.pathname.split("/")[2]
26
- return id ? `https://www.youtube.com/embed/${id}` : undefined
26
+ return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined
27
27
  }
28
28
 
29
29
  if (host === "youtu.be") {
30
30
  const id = url.pathname.slice(1)
31
- return id ? `https://www.youtube.com/embed/${id}` : undefined
31
+ return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined
32
32
  }
33
33
  } catch {
34
34
  return undefined