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,33 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "aspect-ratio-examples",
4
- "title": "Aspect Ratio examples",
5
- "description": "The examples from the shadcn/ui Aspect Ratio docs.",
6
- "registryDependencies": [
7
- "@fulldev/aspect-ratio"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/examples/aspect-ratio/aspect-ratio-demo.astro",
12
- "content": "---\nimport { AspectRatio } from \"@/components/ui/aspect-ratio\"\n---\n\n<AspectRatio ratio={16 / 9} class=\"bg-muted w-full max-w-sm rounded-lg\">\n <img\n src=\"https://avatar.vercel.sh/shadcn1\"\n alt=\"Photo\"\n class=\"absolute inset-0 size-full rounded-lg object-cover grayscale dark:brightness-20\"\n />\n</AspectRatio>\n",
13
- "type": "registry:component"
14
- },
15
- {
16
- "path": "src/components/examples/aspect-ratio/aspect-ratio-portrait.astro",
17
- "content": "---\nimport { AspectRatio } from \"@/components/ui/aspect-ratio\"\n---\n\n<AspectRatio ratio={9 / 16} class=\"bg-muted w-full max-w-[10rem] rounded-lg\">\n <img\n src=\"https://avatar.vercel.sh/shadcn1\"\n alt=\"Photo\"\n class=\"absolute inset-0 size-full rounded-lg object-cover grayscale dark:brightness-20\"\n />\n</AspectRatio>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/aspect-ratio/aspect-ratio-rtl.astro",
22
- "content": "---\nimport { AspectRatio } from \"@/components/ui/aspect-ratio\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n caption: \"Beautiful landscape\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n caption: \"منظر طبيعي جميل\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n caption: \"נוף יפה\",\n },\n },\n} as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<figure class=\"w-full max-w-sm\" dir={dir}>\n <AspectRatio ratio={16 / 9} class=\"bg-muted rounded-lg\">\n <img\n src=\"https://avatar.vercel.sh/shadcn1\"\n alt=\"Photo\"\n class=\"absolute inset-0 size-full rounded-lg object-cover grayscale dark:brightness-20\"\n />\n </AspectRatio>\n <figcaption class=\"text-muted-foreground mt-2 text-center text-sm\">\n {t.caption}\n </figcaption>\n</figure>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/aspect-ratio/aspect-ratio-square.astro",
27
- "content": "---\nimport { AspectRatio } from \"@/components/ui/aspect-ratio\"\n---\n\n<AspectRatio ratio={1 / 1} class=\"bg-muted w-full max-w-[12rem] rounded-lg\">\n <img\n src=\"https://avatar.vercel.sh/shadcn1\"\n alt=\"Photo\"\n class=\"absolute inset-0 size-full rounded-lg object-cover grayscale dark:brightness-20\"\n />\n</AspectRatio>\n",
28
- "type": "registry:component"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/aspect-ratio/",
32
- "type": "registry:example"
33
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "aspect-ratio",
4
- "title": "Aspect Ratio",
5
- "description": "Displays content within a desired ratio.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/aspect-ratio/aspect-ratio.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n ratio: number\n}\n\nconst { class: className, ratio, style, ...props } = Astro.props\n\nconst resolvedStyle =\n typeof style === \"string\"\n ? `--ratio: ${ratio}; ${style}`\n : { \"--ratio\": ratio, ...(style ?? {}) }\n---\n\n<div\n data-slot=\"aspect-ratio\"\n style={resolvedStyle}\n class={cn(\"relative aspect-(--ratio)\", className)}\n {...props}\n>\n <slot />\n</div>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/aspect-ratio/index.ts",
14
- "content": "export { default as AspectRatio } from \"./aspect-ratio.astro\"\n",
15
- "type": "registry:ui"
16
- }
17
- ],
18
- "docs": "https://ui.full.dev/components/aspect-ratio/",
19
- "categories": [
20
- "ui"
21
- ],
22
- "type": "registry:ui"
23
- }
@@ -1,48 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "attachment-examples",
4
- "title": "Attachment examples",
5
- "description": "The examples from the shadcn/ui Attachment docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/attachment",
11
- "@fulldev/dialog",
12
- "@fulldev/spinner"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/examples/attachment/attachment-demo.astro",
17
- "content": "---\nimport FileCodeIcon from \"@lucide/astro/icons/file-code\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentGroup,\n AttachmentMedia,\n AttachmentTitle,\n} from \"@/components/ui/attachment\"\nimport { Spinner } from \"@/components/ui/spinner\"\n\nconst images = [\n {\n name: \"workspace.png\",\n meta: \"PNG · 820 KB\",\n src: \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=900&auto=format&fit=crop&q=80\",\n alt: \"Workspace\",\n },\n {\n name: \"desk-reference.jpg\",\n meta: \"JPG · 1.1 MB\",\n src: \"https://images.unsplash.com/photo-1497215728101-856f4ea42174?w=900&auto=format&fit=crop&q=80\",\n alt: \"Desk\",\n },\n {\n name: \"office-reference.jpg\",\n meta: \"JPG · 940 KB\",\n src: \"https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=900&auto=format&fit=crop&q=80\",\n alt: \"Office\",\n },\n]\n---\n\n<div class=\"mx-auto flex w-full max-w-sm flex-col gap-3 py-12\">\n <AttachmentGroup>\n {images.map((image) => (\n <Attachment orientation=\"vertical\">\n <AttachmentMedia variant=\"image\">\n <img src={image.src} alt={image.alt} />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>{image.name}</AttachmentTitle>\n <AttachmentDescription>{image.meta}</AttachmentDescription>\n </AttachmentContent>\n </Attachment>\n ))}\n </AttachmentGroup>\n <Attachment state=\"uploading\" class=\"w-full\">\n <AttachmentMedia>\n <Spinner />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>sales-dashboard.pdf</AttachmentTitle>\n <AttachmentDescription>Uploading · 64%</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Cancel upload\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n <Attachment class=\"w-full\">\n <AttachmentMedia>\n <FileCodeIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>message-renderer.tsx</AttachmentTitle>\n <AttachmentDescription>TypeScript · 12 KB</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Remove message-renderer.tsx\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n</div>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/attachment/attachment-group.astro",
22
- "content": "---\nimport FileCodeIcon from \"@lucide/astro/icons/file-code\"\nimport FileTextIcon from \"@lucide/astro/icons/file-text\"\nimport TableIcon from \"@lucide/astro/icons/table\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentGroup,\n AttachmentMedia,\n AttachmentTitle,\n} from \"@/components/ui/attachment\"\n\ntype Item = {\n name: string\n meta: string\n icon?: typeof FileTextIcon\n src?: string\n}\n\nconst items: Item[] = [\n { name: \"briefing-notes.pdf\", meta: \"PDF · 1.4 MB\", icon: FileTextIcon },\n {\n name: \"workspace.png\",\n meta: \"PNG · 820 KB\",\n src: \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=900&auto=format&fit=crop&q=80\",\n },\n { name: \"customers.csv\", meta: \"CSV · 18 KB\", icon: TableIcon },\n { name: \"renderer.tsx\", meta: \"TSX · 12 KB\", icon: FileCodeIcon },\n]\n---\n\n<div class=\"mx-auto w-full max-w-sm py-12\">\n <AttachmentGroup class=\"w-full\">\n {items.map((item) => {\n const Icon = item.icon\n\n return (\n <Attachment class=\"w-64\">\n {item.src ? (\n <AttachmentMedia variant=\"image\">\n <img src={item.src} alt={item.name} />\n </AttachmentMedia>\n ) : Icon ? (\n <AttachmentMedia>\n <Icon />\n </AttachmentMedia>\n ) : null}\n <AttachmentContent>\n <AttachmentTitle>{item.name}</AttachmentTitle>\n <AttachmentDescription>{item.meta}</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label={`Remove ${item.name}`}>\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n )\n })}\n </AttachmentGroup>\n</div>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/attachment/attachment-image.astro",
27
- "content": "---\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentGroup,\n AttachmentMedia,\n AttachmentTitle,\n AttachmentTrigger,\n} from \"@/components/ui/attachment\"\n\nconst images = [\n {\n name: \"workspace.png\",\n meta: \"PNG · 820 KB\",\n src: \"https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=900&auto=format&fit=crop&q=80\",\n alt: \"Workspace\",\n },\n {\n name: \"desk-reference.jpg\",\n meta: \"JPG · 1.1 MB\",\n src: \"https://images.unsplash.com/photo-1497215728101-856f4ea42174?w=900&auto=format&fit=crop&q=80\",\n alt: \"Desk\",\n },\n {\n name: \"office-reference.jpg\",\n meta: \"JPG · 940 KB\",\n src: \"https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=900&auto=format&fit=crop&q=80\",\n alt: \"Office\",\n },\n]\n---\n\n<div class=\"mx-auto w-full max-w-sm py-12\">\n <AttachmentGroup class=\"w-full\">\n {images.map((image) => (\n <Attachment orientation=\"vertical\">\n <AttachmentMedia variant=\"image\">\n <img src={image.src} alt={image.alt} />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>{image.name}</AttachmentTitle>\n <AttachmentDescription>{image.meta}</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label={`Remove ${image.name}`}>\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n <AttachmentTrigger\n as=\"a\"\n href={image.src}\n target=\"_blank\"\n rel=\"noreferrer\"\n aria-label={`Open ${image.name}`}\n />\n </Attachment>\n ))}\n </AttachmentGroup>\n</div>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/attachment/attachment-sizes.astro",
32
- "content": "---\nimport FileTextIcon from \"@lucide/astro/icons/file-text\"\n\nimport {\n Attachment,\n AttachmentContent,\n AttachmentDescription,\n AttachmentMedia,\n AttachmentTitle,\n} from \"@/components/ui/attachment\"\n---\n\n<div class=\"mx-auto flex w-full max-w-sm flex-col gap-3 py-12\">\n <Attachment size=\"default\" class=\"w-full\">\n <AttachmentMedia>\n <FileTextIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>Default attachment</AttachmentTitle>\n <AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>\n </AttachmentContent>\n </Attachment>\n <Attachment size=\"sm\" class=\"w-full\">\n <AttachmentMedia>\n <FileTextIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>Small attachment</AttachmentTitle>\n <AttachmentDescription>PDF · 2.4 MB</AttachmentDescription>\n </AttachmentContent>\n </Attachment>\n <Attachment size=\"xs\" class=\"w-full\">\n <AttachmentMedia>\n <FileTextIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>Extra small attachment</AttachmentTitle>\n </AttachmentContent>\n </Attachment>\n</div>\n",
33
- "type": "registry:component"
34
- },
35
- {
36
- "path": "src/components/examples/attachment/attachment-states.astro",
37
- "content": "---\nimport CheckIcon from \"@lucide/astro/icons/check\"\nimport ClockIcon from \"@lucide/astro/icons/clock\"\nimport FileWarningIcon from \"@lucide/astro/icons/file-exclamation-point\"\nimport FileTextIcon from \"@lucide/astro/icons/file-text\"\nimport RefreshCwIcon from \"@lucide/astro/icons/refresh-cw\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentMedia,\n AttachmentTitle,\n} from \"@/components/ui/attachment\"\nimport { Spinner } from \"@/components/ui/spinner\"\n---\n\n<div class=\"mx-auto flex w-full max-w-sm flex-col gap-2 py-12\">\n <Attachment state=\"idle\" class=\"w-full\">\n <AttachmentMedia>\n <ClockIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>selected-file.pdf</AttachmentTitle>\n <AttachmentDescription>Ready to upload</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Remove selected-file.pdf\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n <Attachment state=\"uploading\" class=\"w-full\">\n <AttachmentMedia>\n <Spinner />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>design-system.zip</AttachmentTitle>\n <AttachmentDescription>Uploading · 64%</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Cancel upload\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n <Attachment state=\"processing\" class=\"w-full\">\n <AttachmentMedia>\n <FileTextIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>market-research.pdf</AttachmentTitle>\n <AttachmentDescription>Processing document</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Remove market-research.pdf\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n <Attachment state=\"error\" class=\"w-full\">\n <AttachmentMedia>\n <FileWarningIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>financial-model.xlsx</AttachmentTitle>\n <AttachmentDescription>Upload failed. Try again.</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Retry upload\">\n <RefreshCwIcon />\n </AttachmentAction>\n <AttachmentAction aria-label=\"Remove financial-model.xlsx\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n <Attachment state=\"done\" class=\"w-full\">\n <AttachmentMedia>\n <CheckIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>uploaded-report.pdf</AttachmentTitle>\n <AttachmentDescription>Uploaded · 1.8 MB</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Remove uploaded-report.pdf\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n </Attachment>\n</div>\n",
38
- "type": "registry:component"
39
- },
40
- {
41
- "path": "src/components/examples/attachment/attachment-trigger.astro",
42
- "content": "---\nimport CopyIcon from \"@lucide/astro/icons/copy\"\nimport FileSearchIcon from \"@lucide/astro/icons/file-search\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport {\n Attachment,\n AttachmentAction,\n AttachmentActions,\n AttachmentContent,\n AttachmentDescription,\n AttachmentMedia,\n AttachmentTitle,\n AttachmentTrigger,\n} from \"@/components/ui/attachment\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\"\n---\n\n<div class=\"mx-auto w-full max-w-sm py-12\">\n <Dialog>\n <Attachment class=\"w-full\">\n <AttachmentMedia>\n <FileSearchIcon />\n </AttachmentMedia>\n <AttachmentContent>\n <AttachmentTitle>research-summary.pdf</AttachmentTitle>\n <AttachmentDescription>Open preview dialog</AttachmentDescription>\n </AttachmentContent>\n <AttachmentActions>\n <AttachmentAction aria-label=\"Copy link\">\n <CopyIcon />\n </AttachmentAction>\n <AttachmentAction aria-label=\"Remove research-summary.pdf\">\n <XIcon />\n </AttachmentAction>\n </AttachmentActions>\n <AttachmentTrigger\n data-slot=\"dialog-trigger\"\n aria-label=\"Preview research-summary.pdf\"\n />\n </Attachment>\n <DialogContent class=\"sm:max-w-md\">\n <DialogHeader>\n <DialogTitle>research-summary.pdf</DialogTitle>\n <DialogDescription>\n The attachment trigger fills the card and opens the dialog, while the\n actions stay independently clickable above it.\n </DialogDescription>\n </DialogHeader>\n </DialogContent>\n </Dialog>\n</div>\n",
43
- "type": "registry:component"
44
- }
45
- ],
46
- "docs": "https://ui.full.dev/components/attachment/",
47
- "type": "registry:example"
48
- }
@@ -1,66 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "attachment",
4
- "title": "Attachment",
5
- "description": "Displays a file or image attachment with media, metadata, state, and actions.",
6
- "registryDependencies": [
7
- "@fulldev/button"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/attachment/attachment-action.astro",
12
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { Button, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst { as, variant = \"ghost\", size = \"icon-xs\", ...props } = Astro.props\n---\n\n<Button\n as={as}\n data-slot=\"attachment-action\"\n variant={variant}\n size={size}\n {...props}\n>\n <slot />\n</Button>\n",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/attachment/attachment-actions.astro",
17
- "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=\"attachment-actions\"\n class={cn(\"group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 relative z-20 group-data-[orientation=vertical]/attachment:gap-1 flex shrink-0 items-center\", className)}\n {...props}\n>\n <slot />\n</div>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/attachment/attachment-content.astro",
22
- "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=\"attachment-content\"\n class={cn(\"leading-tight group-data-[orientation=vertical]/attachment:px-1 max-w-full min-w-0 flex-1\", className)}\n {...props}\n>\n <slot />\n</div>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/attachment/attachment-description.astro",
27
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"attachment-description\"\n class={cn(\n \"mt-0.5 text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80 block max-w-full min-w-0 truncate\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
28
- "type": "registry:ui"
29
- },
30
- {
31
- "path": "src/components/ui/attachment/attachment-group.astro",
32
- "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=\"attachment-group\"\n class={cn(\n \"gap-3 scroll-px-1 py-1 flex min-w-0 snap-x snap-mandatory overflow-x-auto overscroll-x-contain *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
33
- "type": "registry:ui"
34
- },
35
- {
36
- "path": "src/components/ui/attachment/attachment-media.astro",
37
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst attachmentMediaVariants = cva(\n \"bg-muted text-foreground w-10 rounded-lg group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! relative flex aspect-square shrink-0 items-center justify-center overflow-hidden group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive [&_svg]:pointer-events-none\",\n {\n variants: {\n variant: {\n icon: \"\",\n image:\n \"opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover\",\n },\n },\n defaultVariants: {\n variant: \"icon\",\n },\n }\n)\n\ntype Props = HTMLAttributes<\"div\"> &\n VariantProps<typeof attachmentMediaVariants>\n\nconst { class: className, variant = \"icon\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"attachment-media\"\n data-variant={variant}\n class={cn(attachmentMediaVariants({ variant }), className)}\n {...props}\n>\n <slot />\n</div>\n",
38
- "type": "registry:ui"
39
- },
40
- {
41
- "path": "src/components/ui/attachment/attachment-title.astro",
42
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"attachment-title\"\n class={cn(\n \"font-medium block max-w-full min-w-0 truncate group-data-[state=processing]/attachment:animate-pulse group-data-[state=uploading]/attachment:animate-pulse\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
43
- "type": "registry:ui"
44
- },
45
- {
46
- "path": "src/components/ui/attachment/attachment-trigger.astro",
47
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }>\n\nconst {\n as: Tag = \"href\" in Astro.props ? \"a\" : \"button\",\n class: className,\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=\"attachment-trigger\"\n class={cn(\"absolute inset-0 z-10 outline-none\", className)}\n {...attributes}\n>\n <slot />\n</Tag>\n",
48
- "type": "registry:ui"
49
- },
50
- {
51
- "path": "src/components/ui/attachment/attachment.astro",
52
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst attachmentVariants = cva(\n \"rounded-xl w-fit focus-within:ring-1 focus-within:ring-ring/50 group/attachment relative flex max-w-full min-w-0 shrink-0 flex-wrap border bg-card text-card-foreground transition-colors has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed\",\n {\n variants: {\n size: {\n default: \"gap-2 has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2 text-sm\",\n sm: \"gap-2.5 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs\",\n xs: \"gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-lg\",\n },\n orientation: {\n horizontal: \"min-w-40 items-center\",\n vertical: \"w-24 has-data-[slot=attachment-content]:w-30 flex-col\",\n },\n },\n defaultVariants: {\n size: \"default\",\n orientation: \"horizontal\",\n },\n }\n)\n\ntype Props = HTMLAttributes<\"div\"> &\n VariantProps<typeof attachmentVariants> & {\n state?: \"idle\" | \"uploading\" | \"processing\" | \"error\" | \"done\"\n }\n\nconst {\n class: className,\n state = \"done\",\n size = \"default\",\n orientation = \"horizontal\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"attachment\"\n data-state={state}\n data-size={size}\n data-orientation={orientation}\n class={cn(attachmentVariants({ size, orientation }), className)}\n {...props}\n>\n <slot />\n</div>\n",
53
- "type": "registry:ui"
54
- },
55
- {
56
- "path": "src/components/ui/attachment/index.ts",
57
- "content": "export { default as Attachment } from \"./attachment.astro\"\nexport { default as AttachmentAction } from \"./attachment-action.astro\"\nexport { default as AttachmentActions } from \"./attachment-actions.astro\"\nexport { default as AttachmentContent } from \"./attachment-content.astro\"\nexport { default as AttachmentDescription } from \"./attachment-description.astro\"\nexport { default as AttachmentGroup } from \"./attachment-group.astro\"\nexport { default as AttachmentMedia } from \"./attachment-media.astro\"\nexport { default as AttachmentTitle } from \"./attachment-title.astro\"\nexport { default as AttachmentTrigger } from \"./attachment-trigger.astro\"\n",
58
- "type": "registry:ui"
59
- }
60
- ],
61
- "docs": "https://ui.full.dev/components/attachment/",
62
- "categories": [
63
- "ui"
64
- ],
65
- "type": "registry:ui"
66
- }
@@ -1,68 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "avatar-examples",
4
- "title": "Avatar examples",
5
- "description": "The examples from the shadcn/ui Avatar docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/avatar",
11
- "@fulldev/button",
12
- "@fulldev/dropdown-menu"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/examples/avatar/avatar-badge-icon.astro",
17
- "content": "---\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport {\n Avatar,\n AvatarBadge,\n AvatarFallback,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<Avatar class=\"grayscale\">\n <AvatarImage src=\"https://github.com/pranathip.png\" alt=\"@pranathip\" />\n <AvatarFallback>PP</AvatarFallback>\n <AvatarBadge>\n <PlusIcon />\n </AvatarBadge>\n</Avatar>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/avatar/avatar-badge.astro",
22
- "content": "---\nimport {\n Avatar,\n AvatarBadge,\n AvatarFallback,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n <AvatarBadge class=\"bg-green-600 dark:bg-green-800\" />\n</Avatar>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/avatar/avatar-basic.astro",
27
- "content": "---\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\n---\n\n<Avatar>\n <AvatarImage\n src=\"https://github.com/shadcn.png\"\n alt=\"@shadcn\"\n class=\"grayscale\"\n />\n <AvatarFallback>CN</AvatarFallback>\n</Avatar>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/avatar/avatar-demo.astro",
32
- "content": "---\nimport {\n Avatar,\n AvatarBadge,\n AvatarFallback,\n AvatarGroup,\n AvatarGroupCount,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<div class=\"flex flex-row flex-wrap items-center gap-6 md:gap-12\">\n <Avatar>\n <AvatarImage\n src=\"https://github.com/shadcn.png\"\n alt=\"@shadcn\"\n class=\"grayscale\"\n />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n <AvatarBadge class=\"bg-green-600 dark:bg-green-800\" />\n </Avatar>\n <AvatarGroup class=\"grayscale\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/maxleiter.png\" alt=\"@maxleiter\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n <AvatarGroupCount>+3</AvatarGroupCount>\n </AvatarGroup>\n</div>\n",
33
- "type": "registry:component"
34
- },
35
- {
36
- "path": "src/components/examples/avatar/avatar-dropdown.astro",
37
- "content": "---\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu>\n <DropdownMenuTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"icon\",\n class: \"rounded-full\",\n })}\n >\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"w-32\">\n <DropdownMenuGroup>\n <DropdownMenuItem>Profile</DropdownMenuItem>\n <DropdownMenuItem>Billing</DropdownMenuItem>\n <DropdownMenuItem>Settings</DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem variant=\"destructive\">Log out</DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
38
- "type": "registry:component"
39
- },
40
- {
41
- "path": "src/components/examples/avatar/avatar-group-count-icon.astro",
42
- "content": "---\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarGroupCount,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<AvatarGroup class=\"grayscale\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/maxleiter.png\" alt=\"@maxleiter\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n <AvatarGroupCount>\n <PlusIcon />\n </AvatarGroupCount>\n</AvatarGroup>\n",
43
- "type": "registry:component"
44
- },
45
- {
46
- "path": "src/components/examples/avatar/avatar-group-count.astro",
47
- "content": "---\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarGroupCount,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<AvatarGroup class=\"grayscale\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/maxleiter.png\" alt=\"@maxleiter\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n <AvatarGroupCount>+3</AvatarGroupCount>\n</AvatarGroup>\n",
48
- "type": "registry:component"
49
- },
50
- {
51
- "path": "src/components/examples/avatar/avatar-group.astro",
52
- "content": "---\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n---\n\n<AvatarGroup class=\"grayscale\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/maxleiter.png\" alt=\"@maxleiter\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n</AvatarGroup>\n",
53
- "type": "registry:component"
54
- },
55
- {
56
- "path": "src/components/examples/avatar/avatar-rtl.astro",
57
- "content": "---\nimport {\n Avatar,\n AvatarBadge,\n AvatarFallback,\n AvatarGroup,\n AvatarGroupCount,\n AvatarImage,\n} from \"@/components/ui/avatar\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n moreUsers: \"+3\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n moreUsers: \"+٣\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n moreUsers: \"+3\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"flex flex-row flex-wrap items-center gap-6 md:gap-12\" dir={dir}>\n <Avatar>\n <AvatarImage\n src=\"https://github.com/shadcn.png\"\n alt=\"@shadcn\"\n class=\"grayscale\"\n />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n <AvatarBadge class=\"bg-green-600 dark:bg-green-800\" />\n </Avatar>\n <AvatarGroup class=\"grayscale\">\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/maxleiter.png\" alt=\"@maxleiter\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/evilrabbit.png\" alt=\"@evilrabbit\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n <AvatarGroupCount>{t.moreUsers}</AvatarGroupCount>\n </AvatarGroup>\n</div>\n",
58
- "type": "registry:component"
59
- },
60
- {
61
- "path": "src/components/examples/avatar/avatar-size.astro",
62
- "content": "---\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\n---\n\n<div class=\"flex flex-wrap items-center gap-2 grayscale\">\n <Avatar size=\"sm\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar size=\"lg\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n</div>\n",
63
- "type": "registry:component"
64
- }
65
- ],
66
- "docs": "https://ui.full.dev/components/avatar/",
67
- "type": "registry:example"
68
- }
@@ -1,48 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "avatar",
4
- "title": "Avatar",
5
- "description": "An image element with a fallback for representing the user.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/avatar/avatar.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\"> & {\n size?: \"default\" | \"sm\" | \"lg\"\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n---\n\n<span\n data-slot=\"avatar\"\n data-size={size}\n class={cn(\n \"size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/avatar/avatar-badge.astro",
14
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"avatar-badge\"\n class={cn(\n \"bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none\",\n \"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden\",\n \"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n \"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/avatar/avatar-fallback.astro",
19
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"avatar-fallback\"\n class={cn(\n \"bg-muted text-muted-foreground rounded-full absolute inset-0 z-0 flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
20
- "type": "registry:ui"
21
- },
22
- {
23
- "path": "src/components/ui/avatar/avatar-group-count.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=\"avatar-group-count\"\n class={cn(\n \"bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
25
- "type": "registry:ui"
26
- },
27
- {
28
- "path": "src/components/ui/avatar/avatar-group.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=\"avatar-group\"\n class={cn(\n \"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
30
- "type": "registry:ui"
31
- },
32
- {
33
- "path": "src/components/ui/avatar/avatar-image.astro",
34
- "content": "---\nimport { Image } from \"astro:assets\"\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Partial<ComponentProps<typeof Image>>\n\nconst {\n class: className,\n alt = \"\",\n width = 44,\n height = 44,\n sizes = \"44px\",\n widths = [44, 88, 176],\n ...props\n} = Astro.props\n---\n\n{props.src && (\n <Image\n data-slot=\"avatar-image\"\n class={cn(\n \"rounded-full absolute inset-0 z-10 aspect-square size-full object-cover\",\n className\n )}\n alt={alt}\n width={width}\n height={height}\n sizes={sizes}\n widths={widths}\n {...(props as any)}\n />\n)}\n",
35
- "type": "registry:ui"
36
- },
37
- {
38
- "path": "src/components/ui/avatar/index.ts",
39
- "content": "export { default as Avatar } from \"./avatar.astro\"\nexport { default as AvatarBadge } from \"./avatar-badge.astro\"\nexport { default as AvatarFallback } from \"./avatar-fallback.astro\"\nexport { default as AvatarGroup } from \"./avatar-group.astro\"\nexport { default as AvatarGroupCount } from \"./avatar-group-count.astro\"\nexport { default as AvatarImage } from \"./avatar-image.astro\"\n",
40
- "type": "registry:ui"
41
- }
42
- ],
43
- "docs": "https://ui.full.dev/components/avatar/",
44
- "categories": [
45
- "ui"
46
- ],
47
- "type": "registry:ui"
48
- }
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "badge-examples",
4
- "title": "Badge examples",
5
- "description": "The examples from the shadcn/ui Badge docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/badge",
11
- "@fulldev/spinner"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/examples/badge/badge-colors.astro",
16
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\n---\n\n<div class=\"flex flex-wrap gap-2\">\n <Badge class=\"bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300\">\n Blue\n </Badge>\n <Badge class=\"bg-green-50 text-green-700 dark:bg-green-950 dark:text-green-300\">\n Green\n </Badge>\n <Badge class=\"bg-sky-50 text-sky-700 dark:bg-sky-950 dark:text-sky-300\">\n Sky\n </Badge>\n <Badge class=\"bg-purple-50 text-purple-700 dark:bg-purple-950 dark:text-purple-300\">\n Purple\n </Badge>\n <Badge class=\"bg-red-50 text-red-700 dark:bg-red-950 dark:text-red-300\">\n Red\n </Badge>\n</div>\n",
17
- "type": "registry:component"
18
- },
19
- {
20
- "path": "src/components/examples/badge/badge-demo.astro",
21
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\n---\n\n<div class=\"flex w-full flex-wrap justify-center gap-2\">\n <Badge>Badge</Badge>\n <Badge variant=\"secondary\">Secondary</Badge>\n <Badge variant=\"destructive\">Destructive</Badge>\n <Badge variant=\"outline\">Outline</Badge>\n</div>\n",
22
- "type": "registry:component"
23
- },
24
- {
25
- "path": "src/components/examples/badge/badge-icon.astro",
26
- "content": "---\nimport BadgeCheck from \"@lucide/astro/icons/badge-check\"\nimport BookmarkIcon from \"@lucide/astro/icons/bookmark\"\n\nimport { Badge } from \"@/components/ui/badge\"\n---\n\n<div class=\"flex flex-wrap gap-2\">\n <Badge variant=\"secondary\">\n <BadgeCheck data-icon=\"inline-start\" />\n Verified\n </Badge>\n <Badge variant=\"outline\">\n Bookmark\n <BookmarkIcon data-icon=\"inline-end\" />\n </Badge>\n</div>\n",
27
- "type": "registry:component"
28
- },
29
- {
30
- "path": "src/components/examples/badge/badge-link.astro",
31
- "content": "---\nimport ArrowUpRightIcon from \"@lucide/astro/icons/arrow-up-right\"\n\nimport { Badge } from \"@/components/ui/badge\"\n---\n\n<Badge as=\"a\" href=\"#link\">\n Open Link <ArrowUpRightIcon data-icon=\"inline-end\" />\n</Badge>\n",
32
- "type": "registry:component"
33
- },
34
- {
35
- "path": "src/components/examples/badge/badge-rtl.astro",
36
- "content": "---\nimport BadgeCheck from \"@lucide/astro/icons/badge-check\"\nimport BookmarkIcon from \"@lucide/astro/icons/bookmark\"\n\nimport { Badge } from \"@/components/ui/badge\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n badge: \"Badge\",\n secondary: \"Secondary\",\n destructive: \"Destructive\",\n outline: \"Outline\",\n verified: \"Verified\",\n bookmark: \"Bookmark\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n badge: \"شارة\",\n secondary: \"ثانوي\",\n destructive: \"مدمر\",\n outline: \"مخطط\",\n verified: \"متحقق\",\n bookmark: \"إشارة مرجعية\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n badge: \"תג\",\n secondary: \"משני\",\n destructive: \"הרסני\",\n outline: \"קווי מתאר\",\n verified: \"מאומת\",\n bookmark: \"סימנייה\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"flex w-full flex-wrap justify-center gap-2\" dir={dir}>\n <Badge>{t.badge}</Badge>\n <Badge variant=\"secondary\">{t.secondary}</Badge>\n <Badge variant=\"destructive\">{t.destructive}</Badge>\n <Badge variant=\"outline\">{t.outline}</Badge>\n <Badge variant=\"secondary\">\n <BadgeCheck data-icon=\"inline-start\" />\n {t.verified}\n </Badge>\n <Badge variant=\"outline\">\n {t.bookmark}\n <BookmarkIcon data-icon=\"inline-end\" />\n </Badge>\n</div>\n",
37
- "type": "registry:component"
38
- },
39
- {
40
- "path": "src/components/examples/badge/badge-spinner.astro",
41
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\nimport { Spinner } from \"@/components/ui/spinner\"\n---\n\n<div class=\"flex flex-wrap gap-2\">\n <Badge variant=\"destructive\">\n <Spinner data-icon=\"inline-start\" />\n Deleting\n </Badge>\n <Badge variant=\"secondary\">\n Generating\n <Spinner data-icon=\"inline-end\" />\n </Badge>\n</div>\n",
42
- "type": "registry:component"
43
- },
44
- {
45
- "path": "src/components/examples/badge/badge-variants.astro",
46
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\n---\n\n<div class=\"flex flex-wrap gap-2\">\n <Badge>Default</Badge>\n <Badge variant=\"secondary\">Secondary</Badge>\n <Badge variant=\"destructive\">Destructive</Badge>\n <Badge variant=\"outline\">Outline</Badge>\n <Badge variant=\"ghost\">Ghost</Badge>\n</div>\n",
47
- "type": "registry:component"
48
- }
49
- ],
50
- "docs": "https://ui.full.dev/components/badge/",
51
- "type": "registry:example"
52
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "badge",
4
- "title": "Badge",
5
- "description": "Displays a badge or a component that looks like a badge.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/badge/badge-variants.ts",
9
- "content": "import { cva, type VariantProps } from \"class-variance-authority\"\n\nexport const badgeVariants = cva(\n \"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n secondary: \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n destructive: \"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20\",\n outline: \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n ghost: \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nexport type BadgeVariantProps = VariantProps<typeof badgeVariants>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/badge/badge.astro",
14
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { badgeVariants, type BadgeVariantProps } from \"./badge-variants\"\n\ntype Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag }> & BadgeVariantProps\n\nconst {\n as: Tag = \"span\",\n class: className,\n variant = \"default\",\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"badge\"\n data-variant={variant}\n class={cn(badgeVariants({ variant }), className)}\n {...props}\n>\n <slot />\n</Tag>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/badge/index.ts",
19
- "content": "export { badgeVariants, type BadgeVariantProps } from \"./badge-variants\"\n\nexport { default as Badge } from \"./badge.astro\"\n",
20
- "type": "registry:ui"
21
- }
22
- ],
23
- "docs": "https://ui.full.dev/components/badge/",
24
- "categories": [
25
- "ui"
26
- ],
27
- "type": "registry:ui"
28
- }
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "banner-1",
4
- "title": "Banner 1",
5
- "description": "Announcement and promo bars that sit above or inside page content.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/banner"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/banner-1.astro",
15
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Banner, BannerContainer } from \"@/components/ui/banner\"\n\ntype Props = HTMLAttributes<\"aside\"> & {\n title: string\n description: string\n link: {\n label: string\n href: string\n }\n closeLabel: string\n storageKey?: string\n}\n\nconst {\n class: className,\n title,\n description,\n link,\n closeLabel,\n storageKey,\n ...props\n} = Astro.props\n---\n\n<Banner\n storageKey={storageKey}\n class={cn(\"dark bg-background text-foreground\", className)}\n {...props}\n>\n <BannerContainer\n class=\"flex-row items-center gap-x-4 gap-y-1\"\n closeLabel={closeLabel}\n >\n <p class=\"text-sm leading-relaxed\">\n <span class=\"font-semibold\">{title}</span>{\" \"}\n <span class=\"mx-1.5 hidden opacity-50 sm:inline\">&middot;</span>{\" \"}\n <span class=\"opacity-80\">{description}</span>\n </p>\n <a\n href={link.href}\n class=\"group/link inline-flex shrink-0 items-center gap-1 text-sm font-medium underline underline-offset-4 transition-opacity hover:opacity-80\"\n >\n {link.label}\n <ArrowRightIcon class=\"size-3.5 transition-transform group-hover/link:translate-x-0.5\" />\n </a>\n </BannerContainer>\n</Banner>\n",
16
- "type": "registry:block"
17
- }
18
- ],
19
- "docs": "https://ui.full.dev/blocks/banner/",
20
- "categories": [
21
- "banner"
22
- ],
23
- "type": "registry:block"
24
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "banner-2",
4
- "title": "Banner 2",
5
- "description": "Announcement and promo bars that sit above or inside page content.",
6
- "registryDependencies": [
7
- "@fulldev/banner",
8
- "@fulldev/button"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/blocks/banner-2.astro",
13
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Banner, BannerContainer } from \"@/components/ui/banner\"\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = HTMLAttributes<\"aside\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n}\n\nconst { class: className, title, description, buttons, ...props } = Astro.props\n---\n\n<Banner variant=\"floating\" class={cn(\"@container\", className)} {...props}>\n <BannerContainer\n class=\"flex-col items-start gap-4 py-1 @2xl:flex-row @2xl:items-center\"\n showClose={false}\n >\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5 @5xl:flex-row @5xl:items-center @5xl:gap-x-4\">\n <p class=\"text-sm font-semibold\">{title}</p>\n <p class=\"text-muted-foreground text-sm\">{description}</p>\n </div>\n <div class=\"flex flex-wrap items-center gap-2\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"sm\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n </BannerContainer>\n</Banner>\n",
14
- "type": "registry:block"
15
- }
16
- ],
17
- "docs": "https://ui.full.dev/blocks/banner/",
18
- "categories": [
19
- "banner"
20
- ],
21
- "type": "registry:block"
22
- }
@@ -1,31 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "banner",
4
- "title": "Banner",
5
- "description": "A full-width container for important messages or announcements.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/banner/banner.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"aside\"> &\n VariantProps<typeof variants> & {\n storageKey?: string\n }\n\nconst variants = cva(\"py-2 relative flex items-center\", {\n variants: {\n variant: {\n default: \"bg-foreground text-background w-full\",\n floating:\n \"my-2 rounded-lg border bg-background shadow-sm mx-auto w-[calc(100%-2*var(--gutter,--spacing(4)))] max-w-[calc(var(--container,var(--container-7xl))-2*var(--gutter,--spacing(4)))] overflow-hidden\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\nconst {\n class: className,\n variant = \"default\",\n storageKey,\n ...props\n} = Astro.props\n---\n\n<aside\n class={cn(variants({ variant }), className)}\n data-slot=\"banner\"\n data-banner-storage-key={storageKey}\n data-variant={variant}\n {...props}\n>\n <slot />\n</aside>\n\n<script>\n const getStorageToken = (key: string) => `banner:${key}`\n\n const syncBanners = () => {\n document.querySelectorAll(\"[data-slot='banner']\").forEach((banner) => {\n if (!(banner instanceof HTMLElement)) return\n const storageKey = banner.dataset.bannerStorageKey\n if (\n storageKey &&\n sessionStorage.getItem(getStorageToken(storageKey)) === \"hidden\"\n ) {\n banner.hidden = true\n }\n })\n }\n\n syncBanners()\n document.addEventListener(\"astro:page-load\", syncBanners)\n\n document.addEventListener(\"click\", (event) => {\n if (!(event.target instanceof Element)) return\n const closeButton = event.target.closest(\"[data-slot='banner-close']\")\n const banner = closeButton?.closest(\"[data-slot='banner']\")\n if (!(banner instanceof HTMLElement)) return\n banner.hidden = true\n const storageKey = banner.dataset.bannerStorageKey\n if (storageKey)\n sessionStorage.setItem(getStorageToken(storageKey), \"hidden\")\n })\n</script>\n",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/banner/banner-container.astro",
17
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n showClose?: boolean\n closeLabel?: string\n}\n\nconst {\n class: className,\n showClose = true,\n closeLabel = \"Close\",\n \"data-slot\": dataSlot = \"banner-container\",\n ...props\n} = Astro.props\n---\n\n<div\n class={cn(\n \"relative mx-auto flex w-full max-w-[var(--container,var(--container-7xl))] gap-4 px-[var(--gutter,--spacing(4))]\",\n showClose && \"pr-10\",\n className\n )}\n data-slot={dataSlot}\n {...props}\n>\n <slot />\n {showClose && (\n <button\n type=\"button\"\n class=\"rounded-sm text-current/65 hover:text-current focus-visible:text-current focus-visible:ring-2 focus-visible:ring-ring/50 absolute top-1/2 right-4 z-20 inline-flex shrink-0 -translate-y-1/2 items-center justify-center transition-colors outline-none disabled:pointer-events-none disabled:opacity-50 in-[[data-variant=floating]]:right-5\"\n aria-label={closeLabel}\n data-slot=\"banner-close\"\n >\n <XIcon class=\"size-4\" />\n <span class=\"sr-only\">{closeLabel}</span>\n </button>\n )}\n</div>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/banner/index.ts",
22
- "content": "export { default as Banner } from \"./banner.astro\"\nexport { default as BannerContainer } from \"./banner-container.astro\"\n",
23
- "type": "registry:ui"
24
- }
25
- ],
26
- "docs": "https://ui.full.dev/components/banner/",
27
- "categories": [
28
- "ui"
29
- ],
30
- "type": "registry:ui"
31
- }