fulldev-ui 0.25.0 → 0.25.2

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 (281) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/liquid/README.md +1 -1
  3. package/liquid/assets/ui-licenses.json +1 -1
  4. package/liquid/assets/ui-manifest.json +1 -1
  5. package/package.json +4 -2
  6. package/public/r/liquid/components.json +1 -1
  7. package/public/r/liquid/init.json +1 -1
  8. package/public/r/styles/base-luma/button-examples.json +2 -2
  9. package/public/r/styles/base-luma/collapsible-examples.json +1 -1
  10. package/public/r/styles/base-luma/combobox-examples.json +1 -1
  11. package/public/r/styles/base-luma/combobox.json +1 -1
  12. package/public/r/styles/base-luma/input-group-examples.json +2 -2
  13. package/public/r/styles/base-luma/item-examples.json +1 -1
  14. package/public/r/styles/base-luma/select.json +1 -1
  15. package/public/r/styles/base-luma/tabs.json +1 -1
  16. package/public/r/styles/base-luma/tooltip-examples.json +1 -1
  17. package/public/r/styles/base-lyra/button-examples.json +2 -2
  18. package/public/r/styles/base-lyra/collapsible-examples.json +1 -1
  19. package/public/r/styles/base-lyra/combobox-examples.json +1 -1
  20. package/public/r/styles/base-lyra/combobox.json +1 -1
  21. package/public/r/styles/base-lyra/input-group-examples.json +2 -2
  22. package/public/r/styles/base-lyra/item-examples.json +1 -1
  23. package/public/r/styles/base-lyra/select.json +1 -1
  24. package/public/r/styles/base-lyra/tabs.json +1 -1
  25. package/public/r/styles/base-lyra/tooltip-examples.json +1 -1
  26. package/public/r/styles/base-maia/button-examples.json +2 -2
  27. package/public/r/styles/base-maia/collapsible-examples.json +1 -1
  28. package/public/r/styles/base-maia/combobox-examples.json +1 -1
  29. package/public/r/styles/base-maia/combobox.json +1 -1
  30. package/public/r/styles/base-maia/input-group-examples.json +2 -2
  31. package/public/r/styles/base-maia/item-examples.json +1 -1
  32. package/public/r/styles/base-maia/select.json +1 -1
  33. package/public/r/styles/base-maia/tabs.json +1 -1
  34. package/public/r/styles/base-maia/tooltip-examples.json +1 -1
  35. package/public/r/styles/base-mira/button-examples.json +2 -2
  36. package/public/r/styles/base-mira/collapsible-examples.json +1 -1
  37. package/public/r/styles/base-mira/combobox-examples.json +1 -1
  38. package/public/r/styles/base-mira/combobox.json +1 -1
  39. package/public/r/styles/base-mira/input-group-examples.json +2 -2
  40. package/public/r/styles/base-mira/item-examples.json +1 -1
  41. package/public/r/styles/base-mira/select.json +1 -1
  42. package/public/r/styles/base-mira/tabs.json +1 -1
  43. package/public/r/styles/base-mira/tooltip-examples.json +1 -1
  44. package/public/r/styles/base-nova/button-examples.json +2 -2
  45. package/public/r/styles/base-nova/collapsible-examples.json +1 -1
  46. package/public/r/styles/base-nova/combobox-examples.json +1 -1
  47. package/public/r/styles/base-nova/combobox.json +1 -1
  48. package/public/r/styles/base-nova/input-group-examples.json +2 -2
  49. package/public/r/styles/base-nova/item-examples.json +1 -1
  50. package/public/r/styles/base-nova/select.json +1 -1
  51. package/public/r/styles/base-nova/tabs.json +1 -1
  52. package/public/r/styles/base-nova/tooltip-examples.json +1 -1
  53. package/public/r/styles/base-rhea/button-examples.json +2 -2
  54. package/public/r/styles/base-rhea/collapsible-examples.json +1 -1
  55. package/public/r/styles/base-rhea/combobox-examples.json +1 -1
  56. package/public/r/styles/base-rhea/combobox.json +1 -1
  57. package/public/r/styles/base-rhea/input-group-examples.json +2 -2
  58. package/public/r/styles/base-rhea/item-examples.json +1 -1
  59. package/public/r/styles/base-rhea/select.json +1 -1
  60. package/public/r/styles/base-rhea/tabs.json +1 -1
  61. package/public/r/styles/base-rhea/tooltip-examples.json +1 -1
  62. package/public/r/styles/base-sera/button-examples.json +2 -2
  63. package/public/r/styles/base-sera/collapsible-examples.json +1 -1
  64. package/public/r/styles/base-sera/combobox-examples.json +1 -1
  65. package/public/r/styles/base-sera/combobox.json +1 -1
  66. package/public/r/styles/base-sera/input-group-examples.json +2 -2
  67. package/public/r/styles/base-sera/item-examples.json +1 -1
  68. package/public/r/styles/base-sera/select.json +1 -1
  69. package/public/r/styles/base-sera/tabs.json +1 -1
  70. package/public/r/styles/base-sera/tooltip-examples.json +1 -1
  71. package/public/r/styles/base-vega/button-examples.json +2 -2
  72. package/public/r/styles/base-vega/collapsible-examples.json +1 -1
  73. package/public/r/styles/base-vega/combobox-examples.json +1 -1
  74. package/public/r/styles/base-vega/combobox.json +1 -1
  75. package/public/r/styles/base-vega/input-group-examples.json +2 -2
  76. package/public/r/styles/base-vega/item-examples.json +1 -1
  77. package/public/r/styles/base-vega/select.json +1 -1
  78. package/public/r/styles/base-vega/tabs.json +1 -1
  79. package/public/r/styles/base-vega/tooltip-examples.json +1 -1
  80. package/liquid/vendor.json +0 -180
  81. package/public/r/accordion-examples.json +0 -49
  82. package/public/r/accordion.json +0 -42
  83. package/public/r/alert-dialog-examples.json +0 -51
  84. package/public/r/alert-dialog.json +0 -84
  85. package/public/r/alert-examples.json +0 -47
  86. package/public/r/alert.json +0 -38
  87. package/public/r/article-1.json +0 -22
  88. package/public/r/article-2.json +0 -22
  89. package/public/r/articles-1.json +0 -22
  90. package/public/r/articles-2.json +0 -23
  91. package/public/r/articles-3.json +0 -22
  92. package/public/r/articles-4.json +0 -22
  93. package/public/r/aspect-ratio-examples.json +0 -33
  94. package/public/r/aspect-ratio.json +0 -23
  95. package/public/r/attachment-examples.json +0 -48
  96. package/public/r/attachment.json +0 -66
  97. package/public/r/avatar-examples.json +0 -68
  98. package/public/r/avatar.json +0 -48
  99. package/public/r/badge-examples.json +0 -52
  100. package/public/r/badge.json +0 -28
  101. package/public/r/banner-1.json +0 -24
  102. package/public/r/banner-2.json +0 -22
  103. package/public/r/banner.json +0 -31
  104. package/public/r/base.json +0 -143
  105. package/public/r/blocks-1.json +0 -27
  106. package/public/r/blocks.json +0 -92
  107. package/public/r/breadcrumb-examples.json +0 -53
  108. package/public/r/breadcrumb.json +0 -56
  109. package/public/r/button-examples.json +0 -87
  110. package/public/r/button-group-examples.json +0 -75
  111. package/public/r/button-group.json +0 -41
  112. package/public/r/button.json +0 -28
  113. package/public/r/card-examples.json +0 -51
  114. package/public/r/card.json +0 -53
  115. package/public/r/carousel-examples.json +0 -49
  116. package/public/r/carousel.json +0 -50
  117. package/public/r/checkbox-examples.json +0 -56
  118. package/public/r/checkbox.json +0 -23
  119. package/public/r/code-block-examples.json +0 -33
  120. package/public/r/code-block.json +0 -65
  121. package/public/r/collapsible-examples.json +0 -51
  122. package/public/r/collapsible.json +0 -36
  123. package/public/r/combobox-examples.json +0 -69
  124. package/public/r/combobox.json +0 -81
  125. package/public/r/command-examples.json +0 -47
  126. package/public/r/command.json +0 -71
  127. package/public/r/components.json +0 -74
  128. package/public/r/contact-1.json +0 -23
  129. package/public/r/contact-2.json +0 -23
  130. package/public/r/contact-3.json +0 -29
  131. package/public/r/content-1.json +0 -31
  132. package/public/r/content-2.json +0 -31
  133. package/public/r/content-3.json +0 -28
  134. package/public/r/content-4.json +0 -31
  135. package/public/r/cta-1.json +0 -24
  136. package/public/r/cta-2.json +0 -30
  137. package/public/r/cta-3.json +0 -24
  138. package/public/r/cta-4.json +0 -30
  139. package/public/r/cta-5.json +0 -31
  140. package/public/r/cta-6.json +0 -30
  141. package/public/r/cta-7.json +0 -23
  142. package/public/r/cta-8.json +0 -22
  143. package/public/r/dialog-examples.json +0 -47
  144. package/public/r/dialog.json +0 -75
  145. package/public/r/doc-1.json +0 -30
  146. package/public/r/drawer-examples.json +0 -54
  147. package/public/r/drawer.json +0 -109
  148. package/public/r/dropdown-menu-examples.json +0 -63
  149. package/public/r/dropdown-menu.json +0 -77
  150. package/public/r/empty-examples.json +0 -55
  151. package/public/r/empty.json +0 -48
  152. package/public/r/faqs-1.json +0 -23
  153. package/public/r/faqs-2.json +0 -23
  154. package/public/r/faqs-3.json +0 -23
  155. package/public/r/faqs-4.json +0 -22
  156. package/public/r/features-1.json +0 -26
  157. package/public/r/features-2.json +0 -22
  158. package/public/r/features-3.json +0 -21
  159. package/public/r/features-4.json +0 -26
  160. package/public/r/features-5.json +0 -22
  161. package/public/r/features-6.json +0 -23
  162. package/public/r/field-examples.json +0 -86
  163. package/public/r/field.json +0 -72
  164. package/public/r/footer-1.json +0 -24
  165. package/public/r/footer-2.json +0 -24
  166. package/public/r/footer-3.json +0 -24
  167. package/public/r/form.json +0 -23
  168. package/public/r/header-1.json +0 -29
  169. package/public/r/header-2.json +0 -29
  170. package/public/r/header-3.json +0 -30
  171. package/public/r/header-4.json +0 -29
  172. package/public/r/header-5.json +0 -30
  173. package/public/r/header.json +0 -40
  174. package/public/r/hero-1.json +0 -23
  175. package/public/r/hero-10.json +0 -24
  176. package/public/r/hero-11.json +0 -24
  177. package/public/r/hero-12.json +0 -22
  178. package/public/r/hero-13.json +0 -22
  179. package/public/r/hero-2.json +0 -24
  180. package/public/r/hero-3.json +0 -22
  181. package/public/r/hero-4.json +0 -25
  182. package/public/r/hero-5.json +0 -27
  183. package/public/r/hero-6.json +0 -27
  184. package/public/r/hero-7.json +0 -27
  185. package/public/r/hero-8.json +0 -22
  186. package/public/r/hero-9.json +0 -27
  187. package/public/r/hover-card-examples.json +0 -29
  188. package/public/r/hover-card.json +0 -37
  189. package/public/r/icon.json +0 -27
  190. package/public/r/init.json +0 -44
  191. package/public/r/input-examples.json +0 -97
  192. package/public/r/input-group-examples.json +0 -91
  193. package/public/r/input-group.json +0 -53
  194. package/public/r/input.json +0 -23
  195. package/public/r/item-examples.json +0 -74
  196. package/public/r/item.json +0 -71
  197. package/public/r/kbd-examples.json +0 -50
  198. package/public/r/kbd.json +0 -28
  199. package/public/r/label-examples.json +0 -24
  200. package/public/r/label.json +0 -23
  201. package/public/r/layout.json +0 -41
  202. package/public/r/links-2.json +0 -24
  203. package/public/r/logo.json +0 -33
  204. package/public/r/logos-1.json +0 -22
  205. package/public/r/logos-2.json +0 -23
  206. package/public/r/logos-3.json +0 -22
  207. package/public/r/marquee.json +0 -46
  208. package/public/r/native-select-examples.json +0 -38
  209. package/public/r/native-select.json +0 -36
  210. package/public/r/navigation-menu-examples.json +0 -26
  211. package/public/r/navigation-menu.json +0 -67
  212. package/public/r/pagination-examples.json +0 -35
  213. package/public/r/pagination.json +0 -59
  214. package/public/r/popover-examples.json +0 -42
  215. package/public/r/popover.json +0 -51
  216. package/public/r/price.json +0 -38
  217. package/public/r/pricing-1.json +0 -29
  218. package/public/r/pricing-2.json +0 -28
  219. package/public/r/pricing-3.json +0 -29
  220. package/public/r/product-1.json +0 -24
  221. package/public/r/products-1.json +0 -24
  222. package/public/r/products-2.json +0 -24
  223. package/public/r/products-3.json +0 -24
  224. package/public/r/products-4.json +0 -24
  225. package/public/r/products-5.json +0 -25
  226. package/public/r/progress-examples.json +0 -33
  227. package/public/r/progress.json +0 -23
  228. package/public/r/radio-group-examples.json +0 -50
  229. package/public/r/radio-group.json +0 -31
  230. package/public/r/rating.json +0 -26
  231. package/public/r/registry.json +0 -6959
  232. package/public/r/resizable-examples.json +0 -33
  233. package/public/r/resizable.json +0 -36
  234. package/public/r/reviews-1.json +0 -27
  235. package/public/r/reviews-2.json +0 -27
  236. package/public/r/reviews-3.json +0 -27
  237. package/public/r/reviews-4.json +0 -25
  238. package/public/r/reviews-5.json +0 -27
  239. package/public/r/section.json +0 -38
  240. package/public/r/select-examples.json +0 -53
  241. package/public/r/select.json +0 -62
  242. package/public/r/separator-examples.json +0 -38
  243. package/public/r/separator.json +0 -23
  244. package/public/r/services-1.json +0 -32
  245. package/public/r/services-2.json +0 -29
  246. package/public/r/services-3.json +0 -29
  247. package/public/r/services-4.json +0 -31
  248. package/public/r/services-5.json +0 -26
  249. package/public/r/services-6.json +0 -32
  250. package/public/r/services-7.json +0 -32
  251. package/public/r/sheet-examples.json +0 -37
  252. package/public/r/sheet.json +0 -66
  253. package/public/r/sidebar-1.json +0 -35
  254. package/public/r/sidebar-examples.json +0 -24
  255. package/public/r/sidebar.json +0 -146
  256. package/public/r/skeleton-examples.json +0 -49
  257. package/public/r/skeleton.json +0 -23
  258. package/public/r/slider-examples.json +0 -44
  259. package/public/r/slider.json +0 -26
  260. package/public/r/spinner-examples.json +0 -61
  261. package/public/r/spinner.json +0 -26
  262. package/public/r/switch-examples.json +0 -50
  263. package/public/r/switch.json +0 -26
  264. package/public/r/table-examples.json +0 -38
  265. package/public/r/table.json +0 -58
  266. package/public/r/tabs-examples.json +0 -47
  267. package/public/r/tabs.json +0 -46
  268. package/public/r/textarea-examples.json +0 -45
  269. package/public/r/textarea.json +0 -23
  270. package/public/r/theme-toggle.json +0 -34
  271. package/public/r/toast-examples.json +0 -29
  272. package/public/r/toast.json +0 -80
  273. package/public/r/toc.json +0 -43
  274. package/public/r/toggle-examples.json +0 -46
  275. package/public/r/toggle-group-examples.json +0 -57
  276. package/public/r/toggle-group.json +0 -34
  277. package/public/r/toggle.json +0 -31
  278. package/public/r/tooltip-examples.json +0 -43
  279. package/public/r/tooltip.json +0 -36
  280. package/public/r/typography.json +0 -103
  281. package/public/r/video.json +0 -23
@@ -1,41 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "button-group",
4
- "title": "Button Group",
5
- "description": "Groups related controls with connected edges and consistent focus behavior.",
6
- "registryDependencies": [
7
- "@fulldev/separator"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/button-group/button-group-separator.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n orientation?: \"horizontal\" | \"vertical\"\n decorative?: boolean\n}\n\nconst {\n class: className,\n orientation = \"vertical\",\n decorative = true,\n ...props\n} = Astro.props\n---\n\n<Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n decorative={decorative}\n class={cn(\n \"bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto\",\n className\n )}\n {...props}\n/>\n",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/button-group/button-group-text.astro",
17
- "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=\"button-group-text\"\n class={cn(\n \"bg-muted gap-2 rounded-md border px-2.5 text-sm font-medium shadow-xs [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n>\n <slot />\n</Tag>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/button-group/button-group-variants.ts",
22
- "content": "import { cva, type VariantProps } from \"class-variance-authority\"\n\nexport const buttonGroupVariants = cva(\n \"has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md! *:data-slot:rounded-r-none [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0\",\n vertical:\n \"[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md! flex-col *:data-slot:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n)\n\nexport type ButtonGroupVariantProps = VariantProps<typeof buttonGroupVariants>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/button-group/button-group.astro",
27
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport {\n buttonGroupVariants,\n type ButtonGroupVariantProps,\n} from \"./button-group-variants\"\n\ntype Props<Tag extends HTMLTag = \"div\"> = Polymorphic<{ as: Tag }> &\n ButtonGroupVariantProps\n\nconst {\n as: Tag = \"div\",\n class: className,\n orientation = \"horizontal\",\n ...props\n} = Astro.props\n---\n\n<Tag\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n class={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n>\n <slot />\n</Tag>\n",
28
- "type": "registry:ui"
29
- },
30
- {
31
- "path": "src/components/ui/button-group/index.ts",
32
- "content": "export { default as ButtonGroup } from \"./button-group.astro\"\nexport { default as ButtonGroupSeparator } from \"./button-group-separator.astro\"\nexport { default as ButtonGroupText } from \"./button-group-text.astro\"\nexport {\n buttonGroupVariants,\n type ButtonGroupVariantProps,\n} from \"./button-group-variants\"\n",
33
- "type": "registry:ui"
34
- }
35
- ],
36
- "docs": "https://ui.full.dev/components/button-group/",
37
- "categories": [
38
- "ui"
39
- ],
40
- "type": "registry:ui"
41
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "button",
4
- "title": "Button",
5
- "description": "Displays a button or a component that looks like a button.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/button/button-variants.ts",
9
- "content": "import { cva, type VariantProps } from \"class-variance-authority\"\n\nexport const buttonVariants = cva(\n \"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n outline: \"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n ghost: \"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground\",\n destructive: \"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n icon: \"size-9\",\n \"icon-xs\": \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\": \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport type ButtonVariantProps = VariantProps<typeof buttonVariants>\n",
10
- "type": "registry:ui"
11
- },
12
- {
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 = \"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
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/button/index.ts",
19
- "content": "export { buttonVariants, type ButtonVariantProps } from \"./button-variants\"\n\nexport { default as Button } from \"./button.astro\"\n",
20
- "type": "registry:ui"
21
- }
22
- ],
23
- "docs": "https://ui.full.dev/components/button/",
24
- "categories": [
25
- "ui"
26
- ],
27
- "type": "registry:ui"
28
- }
@@ -1,51 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "card-examples",
4
- "title": "Card examples",
5
- "description": "The examples from the shadcn/ui Card docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/badge",
11
- "@fulldev/button",
12
- "@fulldev/card",
13
- "@fulldev/input",
14
- "@fulldev/label",
15
- "@fulldev/toggle-group"
16
- ],
17
- "files": [
18
- {
19
- "path": "src/components/examples/card/card-demo.astro",
20
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<Card class=\"w-full max-w-sm\">\n <CardHeader>\n <CardTitle>Login to your account</CardTitle>\n <CardDescription>\n Enter your email below to login to your account\n </CardDescription>\n <CardAction>\n <Button variant=\"link\">Sign Up</Button>\n </CardAction>\n </CardHeader>\n <CardContent>\n <form id=\"card-demo-login\">\n <div class=\"flex flex-col gap-6\">\n <div class=\"grid gap-2\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" placeholder=\"m@example.com\" required />\n </div>\n <div class=\"grid gap-2\">\n <div class=\"flex items-center\">\n <Label for=\"password\">Password</Label>\n <a\n href=\"#\"\n class=\"ml-auto inline-block text-sm underline-offset-4 hover:underline\"\n >\n Forgot your password?\n </a>\n </div>\n <Input id=\"password\" type=\"password\" required />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter class=\"flex-col gap-2\">\n <Button type=\"submit\" form=\"card-demo-login\" class=\"w-full\">\n Login\n </Button>\n <Button variant=\"outline\" class=\"w-full\">\n Login with Google\n </Button>\n </CardFooter>\n</Card>\n",
21
- "type": "registry:component"
22
- },
23
- {
24
- "path": "src/components/examples/card/card-edge-to-edge.astro",
25
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\n---\n\n<Card class=\"mx-auto w-full max-w-sm\">\n <CardHeader>\n <CardTitle>Terms of Service</CardTitle>\n <CardDescription>\n Review the terms before accepting the agreement.\n </CardDescription>\n </CardHeader>\n <CardContent class=\"-mb-(--card-spacing)\">\n <div class=\"-mx-(--card-spacing) max-h-48 space-y-4 overflow-y-scroll border-t bg-muted/50 px-(--card-spacing) py-4 text-sm leading-relaxed\">\n <p>\n These terms govern your use of the workspace, including access to shared\n documents, project files, and collaboration tools.\n </p>\n <p>\n You are responsible for the content you upload and for ensuring that\n your team has the appropriate permissions to view or edit it.\n </p>\n <p>\n We may update features or limits as the service evolves. When those\n changes materially affect your workflow, we will notify your workspace\n administrators.\n </p>\n <p>\n By continuing, you agree to keep your account credentials secure and to\n follow your organization&apos;s acceptable use policies.\n </p>\n </div>\n </CardContent>\n <CardFooter class=\"justify-end gap-2\">\n <Button variant=\"outline\">Decline</Button>\n <Button>Accept</Button>\n </CardFooter>\n</Card>\n",
26
- "type": "registry:component"
27
- },
28
- {
29
- "path": "src/components/examples/card/card-image.astro",
30
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardAction,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\n---\n\n<Card class=\"relative mx-auto w-full max-w-sm pt-0\">\n <div class=\"absolute inset-0 z-30 aspect-video bg-black/35\"></div>\n <img\n src=\"https://avatar.vercel.sh/shadcn1\"\n alt=\"Event cover\"\n class=\"relative z-20 aspect-video w-full object-cover brightness-60 grayscale dark:brightness-40\"\n />\n <CardHeader>\n <CardAction>\n <Badge variant=\"secondary\">Featured</Badge>\n </CardAction>\n <CardTitle>Design systems meetup</CardTitle>\n <CardDescription>\n A practical talk on component APIs, accessibility, and shipping faster.\n </CardDescription>\n </CardHeader>\n <CardFooter>\n <Button class=\"w-full\">View Event</Button>\n </CardFooter>\n</Card>\n",
31
- "type": "registry:component"
32
- },
33
- {
34
- "path": "src/components/examples/card/card-rtl.astro",
35
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n title: \"Login to your account\",\n description: \"Enter your email below to login to your account\",\n signUp: \"Sign Up\",\n email: \"Email\",\n emailPlaceholder: \"m@example.com\",\n password: \"Password\",\n forgotPassword: \"Forgot your password?\",\n login: \"Login\",\n loginWithGoogle: \"Login with Google\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n title: \"تسجيل الدخول إلى حسابك\",\n description: \"أدخل بريدك الإلكتروني أدناه لتسجيل الدخول إلى حسابك\",\n signUp: \"إنشاء حساب\",\n email: \"البريد الإلكتروني\",\n emailPlaceholder: \"m@example.com\",\n password: \"كلمة المرور\",\n forgotPassword: \"نسيت كلمة المرور؟\",\n login: \"تسجيل الدخول\",\n loginWithGoogle: \"تسجيل الدخول باستخدام Google\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n title: \"התחבר לחשבון שלך\",\n description: \"הזן את האימייל שלך למטה כדי להתחבר לחשבון שלך\",\n signUp: \"הירשם\",\n email: \"אימייל\",\n emailPlaceholder: \"m@example.com\",\n password: \"סיסמה\",\n forgotPassword: \"שכחת את הסיסמה?\",\n login: \"התחבר\",\n loginWithGoogle: \"התחבר עם Google\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<Card class=\"w-full max-w-sm\" dir={dir}>\n <CardHeader>\n <CardTitle>{t.title}</CardTitle>\n <CardDescription>{t.description}</CardDescription>\n <CardAction>\n <Button variant=\"link\">{t.signUp}</Button>\n </CardAction>\n </CardHeader>\n <CardContent>\n <form id=\"card-rtl-login\">\n <div class=\"flex flex-col gap-6\">\n <div class=\"grid gap-2\">\n <Label for=\"email-rtl\">{t.email}</Label>\n <Input\n id=\"email-rtl\"\n type=\"email\"\n placeholder={t.emailPlaceholder}\n required\n />\n </div>\n <div class=\"grid gap-2\">\n <div class=\"flex items-center\">\n <Label for=\"password-rtl\">{t.password}</Label>\n <a\n href=\"#\"\n class=\"ms-auto inline-block text-sm underline-offset-4 hover:underline\"\n >\n {t.forgotPassword}\n </a>\n </div>\n <Input id=\"password-rtl\" type=\"password\" required />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter class=\"flex-col gap-2\">\n <Button type=\"submit\" form=\"card-rtl-login\" class=\"w-full\">\n {t.login}\n </Button>\n <Button variant=\"outline\" class=\"w-full\">\n {t.loginWithGoogle}\n </Button>\n </CardFooter>\n</Card>\n",
36
- "type": "registry:component"
37
- },
38
- {
39
- "path": "src/components/examples/card/card-small.astro",
40
- "content": "---\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\n\nconst featureName = \"Scheduled reports\"\n---\n\n<Card size=\"sm\" class=\"mx-auto w-full max-w-xs\">\n <CardHeader>\n <CardTitle>{featureName}</CardTitle>\n <CardDescription>Weekly snapshots. No more manual exports.</CardDescription>\n </CardHeader>\n <CardContent>\n <ul class=\"grid gap-2 py-2 text-sm\">\n <li class=\"flex gap-2\">\n <ChevronRightIcon class=\"mt-0.5 size-4 shrink-0 text-muted-foreground\" />\n <span>Choose a schedule (daily, or weekly).</span>\n </li>\n <li class=\"flex gap-2\">\n <ChevronRightIcon class=\"mt-0.5 size-4 shrink-0 text-muted-foreground\" />\n <span>Send to channels or specific teammates.</span>\n </li>\n <li class=\"flex gap-2\">\n <ChevronRightIcon class=\"mt-0.5 size-4 shrink-0 text-muted-foreground\" />\n <span>Include charts, tables, and key metrics.</span>\n </li>\n </ul>\n </CardContent>\n <CardFooter class=\"flex-col gap-2\">\n <Button size=\"sm\" class=\"w-full\">\n Set up scheduled reports\n </Button>\n <Button variant=\"outline\" size=\"sm\" class=\"w-full\">\n See what&apos;s new\n </Button>\n </CardFooter>\n</Card>\n",
41
- "type": "registry:component"
42
- },
43
- {
44
- "path": "src/components/examples/card/card-spacing.astro",
45
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n\nconst spacingOptions = [\n {\n className: \"[--card-spacing:--spacing(4)]\",\n label: \"16px\",\n value: \"4\",\n },\n {\n className: \"[--card-spacing:--spacing(5)]\",\n label: \"20px\",\n value: \"5\",\n },\n {\n className: \"[--card-spacing:--spacing(6)]\",\n label: \"24px\",\n value: \"6\",\n },\n {\n className: \"[--card-spacing:--spacing(8)]\",\n label: \"32px\",\n value: \"8\",\n },\n]\n\nconst spacing = \"4\"\nconst selectedSpacing = spacingOptions.find(\n (option) => option.value === spacing\n)\n---\n\n<div\n class=\"mx-auto grid w-full max-w-sm gap-4\"\n data-card-spacing={JSON.stringify(spacingOptions)}\n>\n <ToggleGroup\n defaultValue={spacing}\n variant=\"outline\"\n size=\"sm\"\n class=\"justify-center\"\n >\n {spacingOptions.map((option) => (\n <ToggleGroupItem value={option.value}>{option.label}</ToggleGroupItem>\n ))}\n </ToggleGroup>\n <Card class={selectedSpacing?.className} data-value={spacing}>\n <CardHeader>\n <CardTitle>Login to your account</CardTitle>\n <CardDescription>\n Enter your email below to login to your account\n </CardDescription>\n <CardAction>\n <Button variant=\"link\">Sign Up</Button>\n </CardAction>\n </CardHeader>\n <CardContent>\n <form id=\"card-spacing-login\">\n <div class=\"flex flex-col gap-6\">\n <div class=\"grid gap-2\">\n <Label for=\"email-spacing\">Email</Label>\n <Input\n id=\"email-spacing\"\n type=\"email\"\n placeholder=\"m@example.com\"\n required\n />\n </div>\n <div class=\"grid gap-2\">\n <div class=\"flex items-center\">\n <Label for=\"password-spacing\">Password</Label>\n <a\n href=\"#\"\n class=\"ml-auto inline-block text-sm underline-offset-4 hover:underline\"\n >\n Forgot your password?\n </a>\n </div>\n <Input id=\"password-spacing\" type=\"password\" required />\n </div>\n </div>\n </form>\n </CardContent>\n <CardFooter class=\"flex-col gap-2\">\n <Button type=\"submit\" form=\"card-spacing-login\" class=\"w-full\">\n Login\n </Button>\n <Button variant=\"outline\" class=\"w-full\">\n Login with Google\n </Button>\n </CardFooter>\n </Card>\n</div>\n\n<script>\n type SpacingOption = { className: string; value: string }\n\n const initialize = () => {\n for (const root of document.querySelectorAll<HTMLElement>(\n \"[data-card-spacing]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n const options = JSON.parse(root.dataset.cardSpacing!) as SpacingOption[]\n const group = root.querySelector('[data-slot=\"toggle-group\"]')!\n const card = root.querySelector<HTMLElement>('[data-slot=\"card\"]')!\n\n group.addEventListener(\"toggle-group:change\", (event) => {\n const [value] = (event as CustomEvent<{ value: string[] }>).detail.value\n // Keep one spacing selected, as the controlled React example does.\n if (!value) {\n group.dispatchEvent(\n new CustomEvent(\"toggle-group:set\", {\n detail: { value: card.dataset.value },\n })\n )\n return\n }\n for (const option of options) card.classList.remove(option.className)\n const selected = options.find((option) => option.value === value)\n if (selected) card.classList.add(selected.className)\n card.dataset.value = value\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
46
- "type": "registry:component"
47
- }
48
- ],
49
- "docs": "https://ui.full.dev/components/card/",
50
- "type": "registry:example"
51
- }
@@ -1,53 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "card",
4
- "title": "Card",
5
- "description": "Displays a card with header, content, and footer.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/card/card.astro",
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
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/card/card-header.astro",
14
- "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-header\"\n class={cn(\n \"gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/card/card-action.astro",
19
- "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-action\"\n class={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
20
- "type": "registry:ui"
21
- },
22
- {
23
- "path": "src/components/ui/card/card-title.astro",
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
- "type": "registry:ui"
26
- },
27
- {
28
- "path": "src/components/ui/card/card-description.astro",
29
- "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-description\"\n class={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n>\n <slot />\n</div>\n",
30
- "type": "registry:ui"
31
- },
32
- {
33
- "path": "src/components/ui/card/card-content.astro",
34
- "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-content\"\n class={cn(\"flex flex-col gap-3 px-(--card-spacing)\", className)}\n {...props}\n>\n <slot />\n</div>\n",
35
- "type": "registry:ui"
36
- },
37
- {
38
- "path": "src/components/ui/card/card-footer.astro",
39
- "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-footer\"\n class={cn(\"rounded-b-xl px-(--card-spacing) [.border-t]:pt-(--card-spacing) flex items-center\", className)}\n {...props}\n>\n <slot />\n</div>\n",
40
- "type": "registry:ui"
41
- },
42
- {
43
- "path": "src/components/ui/card/index.ts",
44
- "content": "export { default as Card } from \"./card.astro\"\nexport { default as CardAction } from \"./card-action.astro\"\nexport { default as CardContent } from \"./card-content.astro\"\nexport { default as CardDescription } from \"./card-description.astro\"\nexport { default as CardFooter } from \"./card-footer.astro\"\nexport { default as CardHeader } from \"./card-header.astro\"\nexport { default as CardTitle } from \"./card-title.astro\"\n",
45
- "type": "registry:ui"
46
- }
47
- ],
48
- "docs": "https://ui.full.dev/components/card/",
49
- "categories": [
50
- "ui"
51
- ],
52
- "type": "registry:ui"
53
- }
@@ -1,49 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "carousel-examples",
4
- "title": "Carousel examples",
5
- "description": "The examples from the shadcn/ui Carousel docs.",
6
- "registryDependencies": [
7
- "@fulldev/card",
8
- "@fulldev/carousel"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/examples/carousel/carousel-api.astro",
13
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n\nconst count = 5\n---\n\n<div class=\"mx-auto max-w-[10rem] sm:max-w-xs\" data-carousel-api-demo>\n <Carousel class=\"w-full max-w-xs\">\n <CarouselContent>\n {Array.from({ length: count }).map((_, index) => (\n <CarouselItem>\n <Card class=\"m-px\">\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-4xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n </Carousel>\n <div\n class=\"py-2 text-center text-sm text-muted-foreground\"\n data-carousel-api-status\n >\n Slide 1 of {count}\n </div>\n</div>\n\n<script>\n import type { CarouselApi } from \"@/components/ui/carousel\"\n\n type CarouselRoot = HTMLElement & { __fulldevCarouselApi?: CarouselApi }\n\n const initialize = () => {\n for (const root of document.querySelectorAll(\"[data-carousel-api-demo]\")) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n const carousel = root.querySelector<CarouselRoot>(\n '[data-slot=\"carousel\"]'\n )\n const status = root.querySelector(\"[data-carousel-api-status]\")\n if (!carousel || !status) continue\n const update = (api: CarouselApi) => {\n status.textContent = `Slide ${api.selectedScrollSnap() + 1} of ${api.scrollSnapList().length}`\n }\n if (carousel.__fulldevCarouselApi) update(carousel.__fulldevCarouselApi)\n carousel.addEventListener(\"carousel:select\", (event) =>\n update((event as CustomEvent<{ api: CarouselApi }>).detail.api)\n )\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
14
- "type": "registry:component"
15
- },
16
- {
17
- "path": "src/components/examples/carousel/carousel-demo.astro",
18
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n---\n\n<Carousel class=\"w-full max-w-[12rem] sm:max-w-xs\">\n <CarouselContent>\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem>\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-4xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n",
19
- "type": "registry:component"
20
- },
21
- {
22
- "path": "src/components/examples/carousel/carousel-orientation.astro",
23
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n---\n\n<Carousel\n opts={{\n align: \"start\",\n }}\n orientation=\"vertical\"\n class=\"w-full max-w-xs\"\n>\n <CarouselContent class=\"-mt-1 h-[270px]\">\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem class=\"basis-1/2 pt-1\">\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex items-center justify-center p-6\">\n <span class=\"text-3xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n",
24
- "type": "registry:component"
25
- },
26
- {
27
- "path": "src/components/examples/carousel/carousel-plugin.astro",
28
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n---\n\n<Carousel\n data-carousel-autoplay=\"2000\"\n class=\"w-full max-w-[10rem] sm:max-w-xs\"\n>\n <CarouselContent>\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem>\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-4xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n\n<script>\n import type { CarouselApi } from \"@/components/ui/carousel\"\n\n type CarouselRoot = HTMLElement & { __fulldevCarouselApi?: CarouselApi }\n\n // Autoplay with delay 2000 and stopOnInteraction, like\n // embla-carousel-autoplay: hovering, dragging or focusing a slide stops it.\n const autoplay = (root: HTMLElement, api: CarouselApi) => {\n const delay = Number(root.dataset.carouselAutoplay)\n let timer = 0\n let active = false\n const play = () => {\n clearTimeout(timer)\n active = true\n timer = window.setTimeout(() => {\n if (api.canScrollNext()) api.scrollNext()\n else api.scrollTo(0)\n play()\n }, delay)\n }\n const stop = () => {\n clearTimeout(timer)\n active = false\n }\n const reset = () => {\n if (active) play()\n }\n root.addEventListener(\"mouseenter\", stop)\n root.addEventListener(\"mouseleave\", reset)\n api.on(\"pointerDown\", stop)\n api.on(\"slideFocusStart\", stop)\n api.on(\"destroy\", stop)\n if (api.scrollSnapList().length > 1) play()\n }\n\n const initialize = () => {\n for (const root of document.querySelectorAll<CarouselRoot>(\n \"[data-carousel-autoplay]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n if (root.__fulldevCarouselApi) autoplay(root, root.__fulldevCarouselApi)\n else\n root.addEventListener(\n \"carousel:init\",\n (event) =>\n autoplay(\n root,\n (event as CustomEvent<{ api: CarouselApi }>).detail.api\n ),\n { once: true }\n )\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
29
- "type": "registry:component"
30
- },
31
- {
32
- "path": "src/components/examples/carousel/carousel-rtl.astro",
33
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {},\n },\n ar: {\n dir: \"rtl\",\n values: {},\n },\n he: {\n dir: \"rtl\",\n values: {},\n },\n} as const\n\nfunction toArabicNumerals(num: number): string {\n const arabicNumerals = [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"]\n return num\n .toString()\n .split(\"\")\n .map((digit) => arabicNumerals[parseInt(digit, 10)])\n .join(\"\")\n}\n\nconst language = \"ar\"\nconst { dir } = translations[language]\n\nconst formatNumber = (num: number): string => {\n if (language === \"ar\") {\n return toArabicNumerals(num)\n }\n return num.toString()\n}\n---\n\n<Carousel\n dir={dir}\n class=\"w-full max-w-[12rem] sm:max-w-xs\"\n opts={{\n direction: dir,\n }}\n>\n <CarouselContent>\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem>\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-4xl font-semibold\">\n {formatNumber(index + 1)}\n </span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n",
34
- "type": "registry:component"
35
- },
36
- {
37
- "path": "src/components/examples/carousel/carousel-size.astro",
38
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n---\n\n<Carousel\n opts={{\n align: \"start\",\n }}\n class=\"w-full max-w-[12rem] sm:max-w-xs md:max-w-sm\"\n>\n <CarouselContent>\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem class=\"basis-1/2 lg:basis-1/3\">\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-3xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n",
39
- "type": "registry:component"
40
- },
41
- {
42
- "path": "src/components/examples/carousel/carousel-spacing.astro",
43
- "content": "---\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\n---\n\n<Carousel class=\"w-full max-w-[12rem] sm:max-w-xs md:max-w-sm\">\n <CarouselContent class=\"-ml-1\">\n {Array.from({ length: 5 }).map((_, index) => (\n <CarouselItem class=\"basis-1/2 pl-1 lg:basis-1/3\">\n <div class=\"p-1\">\n <Card>\n <CardContent class=\"flex aspect-square items-center justify-center p-6\">\n <span class=\"text-2xl font-semibold\">{index + 1}</span>\n </CardContent>\n </Card>\n </div>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious />\n <CarouselNext />\n</Carousel>\n",
44
- "type": "registry:component"
45
- }
46
- ],
47
- "docs": "https://ui.full.dev/components/carousel/",
48
- "type": "registry:example"
49
- }
@@ -1,50 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "carousel",
4
- "title": "Carousel",
5
- "description": "A carousel with motion, swipe and responsive slides built using Embla.",
6
- "dependencies": [
7
- "embla-carousel@8.6.0",
8
- "@lucide/astro"
9
- ],
10
- "registryDependencies": [
11
- "@fulldev/button"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/ui/carousel/carousel.astro",
16
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { EmblaOptionsType } from \"embla-carousel\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n opts?: EmblaOptionsType\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nconst {\n class: className,\n opts,\n orientation = opts?.axis === \"y\" ? \"vertical\" : \"horizontal\",\n \"aria-roledescription\": roleDescription = \"carousel\",\n \"data-slot\": dataSlot = \"carousel\",\n // A named section is a region landmark. Without a name it would have no\n // role, so it becomes a group, the other container role the APG carousel\n // allows.\n role = Astro.props[\"aria-label\"] || Astro.props[\"aria-labelledby\"]\n ? undefined\n : \"group\",\n ...props\n} = Astro.props\n\nconst resolvedOpts: EmblaOptionsType = {\n ...opts,\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n}\n---\n\n<section\n data-slot={dataSlot}\n data-orientation={orientation}\n data-carousel-options={JSON.stringify(resolvedOpts)}\n class={cn(\"group/carousel relative\", className)}\n role={role}\n aria-roledescription={roleDescription}\n {...props}\n>\n <slot />\n</section>\n\n<script>\n import EmblaCarousel, {\n type EmblaCarouselType,\n type EmblaOptionsType,\n } from \"embla-carousel\"\n\n type CarouselRoot = HTMLElement & {\n __fulldevCarouselApi?: EmblaCarouselType\n }\n\n const instances = new Map<CarouselRoot, () => void>()\n // A nested carousel owns its own parts. The data-carousel-* markers stay\n // in place when a caller overrides data-slot.\n const rootSelector = \"[data-carousel-options]\"\n const getParts = <T extends Element>(root: CarouselRoot, part: string) =>\n [...root.querySelectorAll<T>(`[data-carousel-${part}]`)].filter(\n (element) => element.closest(rootSelector) === root\n )\n const initialize = () => {\n for (const root of document.querySelectorAll<CarouselRoot>(rootSelector)) {\n if (instances.has(root)) continue\n const viewport = getParts<HTMLElement>(root, \"viewport\")[0]\n if (!viewport) continue\n const opts: EmblaOptionsType = JSON.parse(\n root.dataset.carouselOptions || \"{}\"\n )\n const api = EmblaCarousel(viewport, opts)\n root.__fulldevCarouselApi = api\n const previous = getParts<HTMLButtonElement>(root, \"previous\")\n const next = getParts<HTMLButtonElement>(root, \"next\")\n const emit = (type: \"carousel:init\" | \"carousel:select\") => {\n root.dispatchEvent(\n new CustomEvent(type, {\n detail: {\n api,\n canScrollPrev: api.canScrollPrev(),\n canScrollNext: api.canScrollNext(),\n selectedScrollSnap: api.selectedScrollSnap(),\n scrollSnapList: api.scrollSnapList(),\n },\n })\n )\n }\n const sync = () => {\n root.dataset.canScrollPrev = String(api.canScrollPrev())\n root.dataset.canScrollNext = String(api.canScrollNext())\n root.dataset.selectedScrollSnap = String(api.selectedScrollSnap())\n for (const button of previous)\n if (button.dataset.manualDisabled !== \"true\")\n button.disabled = !api.canScrollPrev()\n for (const button of next)\n if (button.dataset.manualDisabled !== \"true\")\n button.disabled = !api.canScrollNext()\n emit(\"carousel:select\")\n }\n const jump = () =>\n window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n const onPrevious = () => api.scrollPrev(jump())\n const onNext = () => api.scrollNext(jump())\n const onKeyDown = (event: KeyboardEvent) => {\n const target = event.target\n if (\n event.defaultPrevented ||\n !(target instanceof Element) ||\n target.closest(rootSelector) !== root ||\n target.closest(\n 'input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])'\n )\n )\n return\n const vertical = root.dataset.orientation === \"vertical\"\n switch (event.key) {\n case vertical ? \"ArrowUp\" : \"ArrowLeft\":\n onPrevious()\n break\n case vertical ? \"ArrowDown\" : \"ArrowRight\":\n onNext()\n break\n case \"Home\":\n api.scrollTo(0, jump())\n break\n case \"End\":\n api.scrollTo(api.scrollSnapList().length - 1, jump())\n break\n default:\n return\n }\n event.preventDefault()\n }\n for (const button of previous)\n button.addEventListener(\"click\", onPrevious)\n for (const button of next) button.addEventListener(\"click\", onNext)\n root.addEventListener(\"keydown\", onKeyDown)\n api.on(\"select\", sync)\n api.on(\"reInit\", sync)\n sync()\n const frame = requestAnimationFrame(() => emit(\"carousel:init\"))\n instances.set(root, () => {\n cancelAnimationFrame(frame)\n for (const button of previous)\n button.removeEventListener(\"click\", onPrevious)\n for (const button of next) button.removeEventListener(\"click\", onNext)\n root.removeEventListener(\"keydown\", onKeyDown)\n api.off(\"select\", sync)\n api.off(\"reInit\", sync)\n api.destroy()\n delete root.__fulldevCarouselApi\n })\n }\n }\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const cleanup of instances.values()) cleanup()\n instances.clear()\n })\n</script>\n",
17
- "type": "registry:ui"
18
- },
19
- {
20
- "path": "src/components/ui/carousel/carousel-content.astro",
21
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"carousel-container\",\n ...props\n} = Astro.props\n---\n\n<div\n class=\"overflow-hidden\"\n data-slot=\"carousel-content\"\n data-carousel-viewport\n>\n <div\n data-slot={dataSlot}\n class={cn(\n \"flex [touch-action:pan-y_pinch-zoom]\",\n \"group-data-[orientation=vertical]/carousel:-mt-4 group-data-[orientation=vertical]/carousel:[touch-action:pan-x_pinch-zoom] group-data-[orientation=vertical]/carousel:flex-col\",\n \"group-data-[orientation=horizontal]/carousel:-ml-4\",\n className\n )}\n {...props}\n >\n <slot />\n </div>\n</div>\n",
22
- "type": "registry:ui"
23
- },
24
- {
25
- "path": "src/components/ui/carousel/carousel-item.astro",
26
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"aria-roledescription\": roleDescription = \"slide\",\n \"data-slot\": dataSlot = \"carousel-item\",\n role = \"group\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n role={role}\n aria-roledescription={roleDescription}\n class={cn(\n \"min-w-0 shrink-0 grow-0 basis-full\",\n \"group-data-[orientation=horizontal]/carousel:pl-4\",\n \"group-data-[orientation=vertical]/carousel:pt-4\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
27
- "type": "registry:ui"
28
- },
29
- {
30
- "path": "src/components/ui/carousel/carousel-next.astro",
31
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit<HTMLAttributes<\"button\">, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-next\",\n ...props\n} = Astro.props\n---\n\n<button\n type=\"button\"\n data-slot={dataSlot}\n data-carousel-next\n data-variant={variant}\n data-size={size}\n data-manual-disabled={disabled ? \"true\" : undefined}\n disabled={disabled}\n class={cn(\n buttonVariants({ variant, size }),\n \"rounded-full absolute touch-manipulation group-data-[orientation=horizontal]/carousel:inset-y-0 group-data-[orientation=horizontal]/carousel:-right-12 group-data-[orientation=horizontal]/carousel:my-auto\",\n \"group-data-[orientation=vertical]/carousel:right-auto group-data-[orientation=vertical]/carousel:-bottom-12 group-data-[orientation=vertical]/carousel:left-1/2 group-data-[orientation=vertical]/carousel:-translate-x-1/2 group-data-[orientation=vertical]/carousel:translate-y-0 group-data-[orientation=vertical]/carousel:rotate-90\",\n className\n )}\n {...props}\n>\n <slot>\n <ChevronRightIcon aria-hidden=\"true\" />\n <span class=\"sr-only\">Next slide</span>\n </slot>\n</button>\n",
32
- "type": "registry:ui"
33
- },
34
- {
35
- "path": "src/components/ui/carousel/carousel-previous.astro",
36
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit<HTMLAttributes<\"button\">, \"type\"> & ButtonVariantProps\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n disabled,\n \"data-slot\": dataSlot = \"carousel-previous\",\n ...props\n} = Astro.props\n---\n\n<button\n type=\"button\"\n data-slot={dataSlot}\n data-carousel-previous\n data-variant={variant}\n data-size={size}\n data-manual-disabled={disabled ? \"true\" : undefined}\n disabled={disabled}\n class={cn(\n buttonVariants({ variant, size }),\n \"rounded-full absolute touch-manipulation group-data-[orientation=horizontal]/carousel:inset-y-0 group-data-[orientation=horizontal]/carousel:-left-12 group-data-[orientation=horizontal]/carousel:my-auto\",\n \"group-data-[orientation=vertical]/carousel:-top-12 group-data-[orientation=vertical]/carousel:left-1/2 group-data-[orientation=vertical]/carousel:-translate-x-1/2 group-data-[orientation=vertical]/carousel:translate-y-0 group-data-[orientation=vertical]/carousel:rotate-90\",\n className\n )}\n {...props}\n>\n <slot>\n <ChevronLeftIcon aria-hidden=\"true\" />\n <span class=\"sr-only\">Previous slide</span>\n </slot>\n</button>\n",
37
- "type": "registry:ui"
38
- },
39
- {
40
- "path": "src/components/ui/carousel/index.ts",
41
- "content": "export type {\n EmblaCarouselType as CarouselApi,\n EmblaOptionsType as CarouselOptions,\n EmblaPluginType as CarouselPlugin,\n} from \"embla-carousel\"\n\nexport { default as Carousel } from \"./carousel.astro\"\nexport { default as CarouselContent } from \"./carousel-content.astro\"\nexport { default as CarouselItem } from \"./carousel-item.astro\"\nexport { default as CarouselPrevious } from \"./carousel-previous.astro\"\nexport { default as CarouselNext } from \"./carousel-next.astro\"\n",
42
- "type": "registry:ui"
43
- }
44
- ],
45
- "docs": "https://ui.full.dev/components/carousel/",
46
- "categories": [
47
- "ui"
48
- ],
49
- "type": "registry:ui"
50
- }
@@ -1,56 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "checkbox-examples",
4
- "title": "Checkbox examples",
5
- "description": "The examples from the shadcn/ui Checkbox docs.",
6
- "registryDependencies": [
7
- "@fulldev/checkbox",
8
- "@fulldev/field",
9
- "@fulldev/label",
10
- "@fulldev/table"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/examples/checkbox/checkbox-basic.astro",
15
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"mx-auto w-56\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox-basic\" name=\"terms-checkbox-basic\" />\n <FieldLabel for=\"terms-checkbox-basic\">\n Accept terms and conditions\n </FieldLabel>\n </Field>\n</FieldGroup>\n",
16
- "type": "registry:component"
17
- },
18
- {
19
- "path": "src/components/examples/checkbox/checkbox-demo.astro",
20
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldTitle,\n} from \"@/components/ui/field\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<FieldGroup class=\"max-w-sm\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox\" name=\"terms-checkbox\" />\n <Label for=\"terms-checkbox\">Accept terms and conditions</Label>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox-2\" name=\"terms-checkbox-2\" checked />\n <FieldContent>\n <FieldLabel for=\"terms-checkbox-2\">\n Accept terms and conditions\n </FieldLabel>\n <FieldDescription>\n By clicking this checkbox, you agree to the terms.\n </FieldDescription>\n </FieldContent>\n </Field>\n <Field orientation=\"horizontal\" data-disabled>\n <Checkbox id=\"toggle-checkbox\" name=\"toggle-checkbox\" disabled />\n <FieldLabel for=\"toggle-checkbox\">Enable notifications</FieldLabel>\n </Field>\n <FieldLabel>\n <Field as=\"span\" orientation=\"horizontal\">\n <Checkbox id=\"toggle-checkbox-2\" name=\"toggle-checkbox-2\" />\n <FieldContent as=\"span\">\n <FieldTitle as=\"span\">Enable notifications</FieldTitle>\n <FieldDescription as=\"span\">\n You can enable or disable notifications at any time.\n </FieldDescription>\n </FieldContent>\n </Field>\n </FieldLabel>\n</FieldGroup>\n",
21
- "type": "registry:component"
22
- },
23
- {
24
- "path": "src/components/examples/checkbox/checkbox-description.astro",
25
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"mx-auto w-72\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox-desc\" name=\"terms-checkbox-desc\" checked />\n <FieldContent>\n <FieldLabel for=\"terms-checkbox-desc\">\n Accept terms and conditions\n </FieldLabel>\n <FieldDescription>\n By clicking this checkbox, you agree to the terms and conditions.\n </FieldDescription>\n </FieldContent>\n </Field>\n</FieldGroup>\n",
26
- "type": "registry:component"
27
- },
28
- {
29
- "path": "src/components/examples/checkbox/checkbox-disabled.astro",
30
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"mx-auto w-56\">\n <Field orientation=\"horizontal\" data-disabled>\n <Checkbox\n id=\"toggle-checkbox-disabled\"\n name=\"toggle-checkbox-disabled\"\n disabled\n />\n <FieldLabel for=\"toggle-checkbox-disabled\">Enable notifications</FieldLabel>\n </Field>\n</FieldGroup>\n",
31
- "type": "registry:component"
32
- },
33
- {
34
- "path": "src/components/examples/checkbox/checkbox-group.astro",
35
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/components/ui/field\"\n---\n\n<FieldSet>\n <FieldLegend variant=\"label\">Show these items on the desktop:</FieldLegend>\n <FieldDescription>\n Select the items you want to show on the desktop.\n </FieldDescription>\n <FieldGroup class=\"gap-3\">\n <Field orientation=\"horizontal\">\n <Checkbox\n id=\"finder-pref-9k2-hard-disks-ljj-checkbox\"\n name=\"finder-pref-9k2-hard-disks-ljj-checkbox\"\n checked\n />\n <FieldLabel\n for=\"finder-pref-9k2-hard-disks-ljj-checkbox\"\n class=\"font-normal\"\n >\n Hard disks\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox\n id=\"finder-pref-9k2-external-disks-1yg-checkbox\"\n name=\"finder-pref-9k2-external-disks-1yg-checkbox\"\n checked\n />\n <FieldLabel\n for=\"finder-pref-9k2-external-disks-1yg-checkbox\"\n class=\"font-normal\"\n >\n External disks\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox\n id=\"finder-pref-9k2-cds-dvds-fzt-checkbox\"\n name=\"finder-pref-9k2-cds-dvds-fzt-checkbox\"\n />\n <FieldLabel\n for=\"finder-pref-9k2-cds-dvds-fzt-checkbox\"\n class=\"font-normal\"\n >\n CDs, DVDs, and iPods\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox\n id=\"finder-pref-9k2-connected-servers-6l2-checkbox\"\n name=\"finder-pref-9k2-connected-servers-6l2-checkbox\"\n />\n <FieldLabel\n for=\"finder-pref-9k2-connected-servers-6l2-checkbox\"\n class=\"font-normal\"\n >\n Connected servers\n </FieldLabel>\n </Field>\n </FieldGroup>\n</FieldSet>\n",
36
- "type": "registry:component"
37
- },
38
- {
39
- "path": "src/components/examples/checkbox/checkbox-invalid.astro",
40
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"mx-auto w-56\">\n <Field orientation=\"horizontal\" data-invalid>\n <Checkbox\n id=\"terms-checkbox-invalid\"\n name=\"terms-checkbox-invalid\"\n aria-invalid=\"true\"\n />\n <FieldLabel for=\"terms-checkbox-invalid\">\n Accept terms and conditions\n </FieldLabel>\n </Field>\n</FieldGroup>\n",
41
- "type": "registry:component"
42
- },
43
- {
44
- "path": "src/components/examples/checkbox/checkbox-rtl.astro",
45
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldTitle,\n} from \"@/components/ui/field\"\nimport { Label } from \"@/components/ui/label\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n acceptTerms: \"Accept terms and conditions\",\n acceptTermsDescription:\n \"By clicking this checkbox, you agree to the terms.\",\n enableNotifications: \"Enable notifications\",\n enableNotificationsDescription:\n \"You can enable or disable notifications at any time.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n acceptTerms: \"قبول الشروط والأحكام\",\n acceptTermsDescription: \"بالنقر على هذا المربع، فإنك توافق على الشروط.\",\n enableNotifications: \"تفعيل الإشعارات\",\n enableNotificationsDescription:\n \"يمكنك تفعيل أو إلغاء تفعيل الإشعارات في أي وقت.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n acceptTerms: \"קבל תנאים והגבלות\",\n acceptTermsDescription:\n \"על ידי לחיצה על תיבת הסימון הזו, אתה מסכים לתנאים.\",\n enableNotifications: \"הפעל התראות\",\n enableNotificationsDescription:\n \"אתה יכול להפעיל או להשבית התראות בכל עת.\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<FieldGroup class=\"max-w-sm\" dir={dir}>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox-rtl\" name=\"terms-checkbox\" />\n <Label for=\"terms-checkbox-rtl\">{t.acceptTerms}</Label>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"terms-checkbox-2-rtl\" name=\"terms-checkbox-2\" checked />\n <FieldContent>\n <FieldLabel for=\"terms-checkbox-2-rtl\">{t.acceptTerms}</FieldLabel>\n <FieldDescription>{t.acceptTermsDescription}</FieldDescription>\n </FieldContent>\n </Field>\n <Field orientation=\"horizontal\" data-disabled>\n <Checkbox id=\"toggle-checkbox-rtl\" name=\"toggle-checkbox\" disabled />\n <FieldLabel for=\"toggle-checkbox-rtl\">{t.enableNotifications}</FieldLabel>\n </Field>\n <FieldLabel>\n <Field as=\"span\" orientation=\"horizontal\">\n <Checkbox id=\"toggle-checkbox-rtl-2\" name=\"toggle-checkbox-2\" />\n <FieldContent as=\"span\">\n <FieldTitle as=\"span\">{t.enableNotifications}</FieldTitle>\n <FieldDescription as=\"span\">\n {t.enableNotificationsDescription}\n </FieldDescription>\n </FieldContent>\n </Field>\n </FieldLabel>\n</FieldGroup>\n",
46
- "type": "registry:component"
47
- },
48
- {
49
- "path": "src/components/examples/checkbox/checkbox-table.astro",
50
- "content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"@/components/ui/table\"\n\nconst tableData = [\n {\n id: \"1\",\n name: \"Sarah Chen\",\n email: \"sarah.chen@example.com\",\n role: \"Admin\",\n },\n {\n id: \"2\",\n name: \"Marcus Rodriguez\",\n email: \"marcus.rodriguez@example.com\",\n role: \"User\",\n },\n {\n id: \"3\",\n name: \"Priya Patel\",\n email: \"priya.patel@example.com\",\n role: \"User\",\n },\n {\n id: \"4\",\n name: \"David Kim\",\n email: \"david.kim@example.com\",\n role: \"Editor\",\n },\n]\n\nconst selectedRows = new Set([\"1\"])\n---\n\n<Table data-checkbox-table>\n <TableHeader>\n <TableRow>\n <TableHead class=\"w-8\">\n <Checkbox\n id=\"select-all-checkbox\"\n name=\"select-all-checkbox\"\n checked={selectedRows.size === tableData.length}\n data-select-all\n />\n </TableHead>\n <TableHead>Name</TableHead>\n <TableHead>Email</TableHead>\n <TableHead>Role</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {tableData.map((row) => (\n <TableRow data-state={selectedRows.has(row.id) ? \"selected\" : undefined}>\n <TableCell>\n <Checkbox\n id={`row-${row.id}-checkbox`}\n name={`row-${row.id}-checkbox`}\n checked={selectedRows.has(row.id)}\n data-select-row\n />\n </TableCell>\n <TableCell class=\"font-medium\">{row.name}</TableCell>\n <TableCell>{row.email}</TableCell>\n <TableCell>{row.role}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n</Table>\n\n<script>\n const initialize = () => {\n for (const table of document.querySelectorAll(\"[data-checkbox-table]\")) {\n if (table.hasAttribute(\"data-bound\")) continue\n table.setAttribute(\"data-bound\", \"\")\n const all = table.querySelector<HTMLInputElement>(\"[data-select-all]\")\n const rows = [\n ...table.querySelectorAll<HTMLInputElement>(\"[data-select-row]\"),\n ]\n const update = () => {\n for (const row of rows) {\n const tr = row.closest(\"tr\")\n if (row.checked) tr?.setAttribute(\"data-state\", \"selected\")\n else tr?.removeAttribute(\"data-state\")\n }\n if (all) all.checked = rows.every((row) => row.checked)\n }\n all?.addEventListener(\"change\", () => {\n for (const row of rows) row.checked = all.checked\n update()\n })\n for (const row of rows) row.addEventListener(\"change\", update)\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
51
- "type": "registry:component"
52
- }
53
- ],
54
- "docs": "https://ui.full.dev/components/checkbox/",
55
- "type": "registry:example"
56
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "checkbox",
4
- "title": "Checkbox",
5
- "description": "A control that allows the user to toggle between checked and not checked.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/checkbox/checkbox.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"input\">, \"type\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<input\n type=\"checkbox\"\n data-slot=\"checkbox\"\n class={cn(\n \"border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border shadow-xs transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-checked:border-input group-has-[:focus-visible]/field-label:checked:border-primary indeterminate:bg-primary indeterminate:border-primary aria-invalid:indeterminate:border-primary peer relative shrink-0 appearance-none outline-none after:absolute after:-inset-x-3 after:-inset-y-2 checked:[color:var(--color-primary-foreground)] indeterminate:[color:var(--color-primary-foreground)] disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n/>\n\n<style>\n [data-slot=\"checkbox\"] {\n color: inherit;\n }\n\n [data-slot=\"checkbox\"]::before {\n content: \"\";\n position: absolute;\n inset: 0;\n margin: auto;\n width: 14px;\n height: 14px;\n opacity: 0;\n background-color: currentColor;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 14px 14px;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 14px 14px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 14px 14px;\n }\n\n [data-slot=\"checkbox\"]:checked,\n [data-slot=\"checkbox\"]:indeterminate {\n color: var(--color-primary-foreground);\n }\n\n [data-slot=\"checkbox\"]:checked::before {\n opacity: 1;\n }\n\n [data-slot=\"checkbox\"]:indeterminate::before {\n opacity: 1;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8h9' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8h9' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E\");\n }\n</style>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/checkbox/index.ts",
14
- "content": "export { default as Checkbox } from \"./checkbox.astro\"\n",
15
- "type": "registry:ui"
16
- }
17
- ],
18
- "docs": "https://ui.full.dev/components/checkbox/",
19
- "categories": [
20
- "ui"
21
- ],
22
- "type": "registry:ui"
23
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "code-block-examples",
4
- "title": "Code Block examples",
5
- "description": "The examples from the shadcn/ui Code Block docs.",
6
- "registryDependencies": [
7
- "@fulldev/code-block"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/examples/code-block/code-block-demo.astro",
12
- "content": "---\nimport {\n CodeBlock,\n CodeBlockActions,\n CodeBlockContent,\n CodeBlockCopyButton,\n CodeBlockHeader,\n CodeBlockTitle,\n} from \"@/components/ui/code-block\"\n\nconst code = `import { Button } from \"@/components/ui/button\"\n\n<Button href=\"/contact/\">Contact us</Button>`\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockHeader>\n <CodeBlockTitle>contact.astro</CodeBlockTitle>\n <CodeBlockActions>\n <CodeBlockCopyButton value={code} />\n </CodeBlockActions>\n </CodeBlockHeader>\n <CodeBlockContent code={code} />\n</CodeBlock>\n",
13
- "type": "registry:component"
14
- },
15
- {
16
- "path": "src/components/examples/code-block/code-block-lines.astro",
17
- "content": "---\nimport {\n CodeBlock,\n CodeBlockContent,\n CodeBlockLine,\n} from \"@/components/ui/code-block\"\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockContent lineNumbers startLine={12}>\n <CodeBlockLine>export const site = &#123;</CodeBlockLine>\n <CodeBlockLine variant=\"removed\">{' title: \"Our website\",'}</CodeBlockLine>\n <CodeBlockLine variant=\"added\">\n {' title: \"Our new website\",'}\n </CodeBlockLine>\n <CodeBlockLine />\n <CodeBlockLine variant=\"highlighted\">{' lang: \"en\",'}</CodeBlockLine>\n <CodeBlockLine>&#125;</CodeBlockLine>\n </CodeBlockContent>\n</CodeBlock>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/code-block/code-block-numbered.astro",
22
- "content": "---\nimport { CodeBlock, CodeBlockContent } from \"@/components/ui/code-block\"\n\nconst code = `{\n \"name\": \"our-website\",\n\n \"private\": true\n}`\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockContent code={code} lineNumbers />\n</CodeBlock>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/code-block/code-block-wrap.astro",
27
- "content": "---\nimport {\n CodeBlock,\n CodeBlockActions,\n CodeBlockContent,\n CodeBlockCopyButton,\n CodeBlockFooter,\n} from \"@/components/ui/code-block\"\n\nconst code =\n \"A long explanation can wrap inside a code block without making the surrounding article or the page scroll horizontally.\"\n---\n\n<CodeBlock size=\"sm\" class=\"max-w-sm\">\n <CodeBlockActions>\n <CodeBlockCopyButton value={code} />\n </CodeBlockActions>\n <CodeBlockContent code={code} wrap />\n <CodeBlockFooter>Plain text, with line wrapping.</CodeBlockFooter>\n</CodeBlock>\n",
28
- "type": "registry:component"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/code-block/",
32
- "type": "registry:example"
33
- }