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,47 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "dialog-examples",
4
- "title": "Dialog examples",
5
- "description": "The examples from the shadcn/ui Dialog docs.",
6
- "registryDependencies": [
7
- "@fulldev/button",
8
- "@fulldev/dialog",
9
- "@fulldev/field",
10
- "@fulldev/input",
11
- "@fulldev/label"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/examples/dialog/dialog-close-button.astro",
16
- "content": "---\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<Dialog>\n <DialogTrigger variant=\"outline\">Share</DialogTrigger>\n <DialogContent class=\"sm:max-w-md\">\n <DialogHeader>\n <DialogTitle>Share link</DialogTitle>\n <DialogDescription>\n Anyone who has this link will be able to view this.\n </DialogDescription>\n </DialogHeader>\n <div class=\"flex items-center gap-2\">\n <div class=\"grid flex-1 gap-2\">\n <Label for=\"link\" class=\"sr-only\">\n Link\n </Label>\n <Input\n id=\"link\"\n value=\"https://ui.shadcn.com/docs/installation\"\n readonly\n />\n </div>\n </div>\n <DialogFooter class=\"sm:justify-start\">\n <DialogClose>Close</DialogClose>\n </DialogFooter>\n </DialogContent>\n</Dialog>\n",
17
- "type": "registry:component"
18
- },
19
- {
20
- "path": "src/components/examples/dialog/dialog-demo.astro",
21
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport { Field, FieldGroup } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<Dialog>\n <form>\n <DialogTrigger variant=\"outline\">Open Dialog</DialogTrigger>\n <DialogContent class=\"sm:max-w-sm\">\n <DialogHeader>\n <DialogTitle>Edit profile</DialogTitle>\n <DialogDescription>\n Make changes to your profile here. Click save when you&apos;re done.\n </DialogDescription>\n </DialogHeader>\n <FieldGroup>\n <Field>\n <Label for=\"name-1\">Name</Label>\n <Input id=\"name-1\" name=\"name\" value=\"Pedro Duarte\" />\n </Field>\n <Field>\n <Label for=\"username-1\">Username</Label>\n <Input id=\"username-1\" name=\"username\" value=\"@peduarte\" />\n </Field>\n </FieldGroup>\n <DialogFooter>\n <DialogClose variant=\"outline\">Cancel</DialogClose>\n <Button type=\"submit\">Save changes</Button>\n </DialogFooter>\n </DialogContent>\n </form>\n</Dialog>\n",
22
- "type": "registry:component"
23
- },
24
- {
25
- "path": "src/components/examples/dialog/dialog-no-close-button.astro",
26
- "content": "---\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\n---\n\n<Dialog>\n <DialogTrigger variant=\"outline\">No Close Button</DialogTrigger>\n <DialogContent showCloseButton={false}>\n <DialogHeader>\n <DialogTitle>No Close Button</DialogTitle>\n <DialogDescription>\n This dialog doesn&apos;t have a close button in the top-right corner.\n </DialogDescription>\n </DialogHeader>\n </DialogContent>\n</Dialog>\n",
27
- "type": "registry:component"
28
- },
29
- {
30
- "path": "src/components/examples/dialog/dialog-rtl.astro",
31
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport { Field, FieldGroup } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n openDialog: \"Open Dialog\",\n editProfile: \"Edit profile\",\n description:\n \"Make changes to your profile here. Click save when you're done.\",\n name: \"Name\",\n username: \"Username\",\n cancel: \"Cancel\",\n saveChanges: \"Save changes\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n openDialog: \"فتح الحوار\",\n editProfile: \"تعديل الملف الشخصي\",\n description:\n \"قم بإجراء تغييرات على ملفك الشخصي هنا. انقر فوق حفظ عند الانتهاء.\",\n name: \"الاسم\",\n username: \"اسم المستخدم\",\n cancel: \"إلغاء\",\n saveChanges: \"حفظ التغييرات\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n openDialog: \"פתח דיאלוג\",\n editProfile: \"ערוך פרופיל\",\n description: \"בצע שינויים בפרופיל שלך כאן. לחץ על שמור כשתסיים.\",\n name: \"שם\",\n username: \"שם משתמש\",\n cancel: \"בטל\",\n saveChanges: \"שמור שינויים\",\n },\n },\n} as const\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n---\n\n<Dialog>\n <form>\n <DialogTrigger variant=\"outline\">{t.openDialog}</DialogTrigger>\n <DialogContent\n class=\"sm:max-w-sm\"\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <DialogHeader>\n <DialogTitle>{t.editProfile}</DialogTitle>\n <DialogDescription>{t.description}</DialogDescription>\n </DialogHeader>\n <FieldGroup>\n <Field>\n <Label for=\"name-rtl-1\">{t.name}</Label>\n <Input id=\"name-rtl-1\" name=\"name\" value=\"Pedro Duarte\" />\n </Field>\n <Field>\n <Label for=\"username-rtl-1\">{t.username}</Label>\n <Input id=\"username-rtl-1\" name=\"username\" value=\"@peduarte\" />\n </Field>\n </FieldGroup>\n <DialogFooter>\n <DialogClose variant=\"outline\">{t.cancel}</DialogClose>\n <Button type=\"submit\">{t.saveChanges}</Button>\n </DialogFooter>\n </DialogContent>\n </form>\n</Dialog>\n",
32
- "type": "registry:component"
33
- },
34
- {
35
- "path": "src/components/examples/dialog/dialog-scrollable-content.astro",
36
- "content": "---\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\n---\n\n<Dialog>\n <DialogTrigger variant=\"outline\">Scrollable Content</DialogTrigger>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Scrollable Content</DialogTitle>\n <DialogDescription>\n This is a dialog with scrollable content.\n </DialogDescription>\n </DialogHeader>\n <div class=\"-mx-4 no-scrollbar max-h-[50vh] overflow-y-auto px-4\">\n {Array.from({ length: 10 }).map(() => (\n <p class=\"mb-4 leading-normal\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad\n minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\n culpa qui officia deserunt mollit anim id est laborum.\n </p>\n ))}\n </div>\n </DialogContent>\n</Dialog>\n",
37
- "type": "registry:component"
38
- },
39
- {
40
- "path": "src/components/examples/dialog/dialog-sticky-footer.astro",
41
- "content": "---\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\n---\n\n<Dialog>\n <DialogTrigger variant=\"outline\">Sticky Footer</DialogTrigger>\n <DialogContent>\n <DialogHeader>\n <DialogTitle>Sticky Footer</DialogTitle>\n <DialogDescription>\n This dialog has a sticky footer that stays visible while the content\n scrolls.\n </DialogDescription>\n </DialogHeader>\n <div class=\"-mx-4 no-scrollbar max-h-[50vh] overflow-y-auto px-4\">\n {Array.from({ length: 10 }).map(() => (\n <p class=\"mb-4 leading-normal\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad\n minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\n culpa qui officia deserunt mollit anim id est laborum.\n </p>\n ))}\n </div>\n <DialogFooter>\n <DialogClose variant=\"outline\">Close</DialogClose>\n </DialogFooter>\n </DialogContent>\n</Dialog>\n",
42
- "type": "registry:component"
43
- }
44
- ],
45
- "docs": "https://ui.full.dev/components/dialog/",
46
- "type": "registry:example"
47
- }
@@ -1,75 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "dialog",
4
- "title": "Dialog",
5
- "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.",
6
- "dependencies": [
7
- "@data-slot/dialog@^1.1.2",
8
- "@lucide/astro"
9
- ],
10
- "registryDependencies": [
11
- "@fulldev/button"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/ui/dialog/dialog.astro",
16
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultOpen?: boolean\n closeOnClickOutside?: boolean\n closeOnEscape?: boolean\n lockScroll?: boolean\n alertDialog?: boolean\n}\n\nconst {\n class: className,\n defaultOpen,\n closeOnClickOutside,\n closeOnEscape,\n lockScroll,\n alertDialog,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"dialog\"\n data-default-open={defaultOpen}\n data-close-on-click-outside={closeOnClickOutside}\n data-close-on-escape={closeOnEscape}\n data-lock-scroll={lockScroll}\n data-alert-dialog={alertDialog}\n class={className}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/dialog\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
17
- "type": "registry:ui"
18
- },
19
- {
20
- "path": "src/components/ui/dialog/dialog-trigger.astro",
21
- "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"dialog-trigger\" {...props}>\n <slot />\n</Button>\n",
22
- "type": "registry:ui"
23
- },
24
- {
25
- "path": "src/components/ui/dialog/dialog-portal.astro",
26
- "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 data-slot=\"dialog-portal\" class={cn(className)} {...props}>\n <slot />\n</div>\n",
27
- "type": "registry:ui"
28
- },
29
- {
30
- "path": "src/components/ui/dialog/dialog-overlay.astro",
31
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, style, ...props } = Astro.props\n---\n\n<div\n data-slot=\"dialog-overlay\"\n hidden\n class={cn(\"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50\", className)}\n style={`z-index: calc(var(--dialog-overlay-stack-index, 0) * 2 + 100);${style ? ` ${style}` : \"\"}`}\n {...props}\n>\n <slot />\n</div>\n",
32
- "type": "registry:ui"
33
- },
34
- {
35
- "path": "src/components/ui/dialog/dialog-content.astro",
36
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\nimport DialogOverlay from \"./dialog-overlay.astro\"\nimport DialogPortal from \"./dialog-portal.astro\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n showCloseButton?: boolean\n}\n\nconst {\n class: className,\n showCloseButton = true,\n style,\n ...props\n} = Astro.props\n---\n\n<DialogPortal>\n <DialogOverlay />\n <div\n data-slot=\"dialog-content\"\n hidden\n class={cn(\n \"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n className\n )}\n style={`z-index: calc(var(--dialog-content-stack-index, 0) * 2 + 101);${style ? ` ${style}` : \"\"}`}\n {...props}\n >\n {showCloseButton && (\n <Button\n type=\"button\"\n data-slot=\"dialog-close\"\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"absolute top-4 right-4\"\n >\n <XIcon />\n <span class=\"sr-only\">Close</span>\n </Button>\n )}\n <slot />\n </div>\n</DialogPortal>\n",
37
- "type": "registry:ui"
38
- },
39
- {
40
- "path": "src/components/ui/dialog/dialog-header.astro",
41
- "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=\"dialog-header\"\n class={cn(\"gap-2 flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
42
- "type": "registry:ui"
43
- },
44
- {
45
- "path": "src/components/ui/dialog/dialog-footer.astro",
46
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport DialogClose from \"./dialog-close.astro\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n showCloseButton?: boolean\n}\n\nconst { class: className, showCloseButton = false, ...props } = Astro.props\n---\n\n<div\n data-slot=\"dialog-footer\"\n class={cn(\n \"gap-2 flex flex-col-reverse sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n>\n <slot />\n {showCloseButton && <DialogClose variant=\"outline\">Close</DialogClose>}\n</div>\n",
47
- "type": "registry:ui"
48
- },
49
- {
50
- "path": "src/components/ui/dialog/dialog-title.astro",
51
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"h2\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<h2\n data-slot=\"dialog-title\"\n class={cn(\"leading-none font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</h2>\n",
52
- "type": "registry:ui"
53
- },
54
- {
55
- "path": "src/components/ui/dialog/dialog-description.astro",
56
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n data-slot=\"dialog-description\"\n class={cn(\"text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3\", className)}\n {...props}\n>\n <slot />\n</p>\n",
57
- "type": "registry:ui"
58
- },
59
- {
60
- "path": "src/components/ui/dialog/dialog-close.astro",
61
- "content": "---\nimport type { ComponentProps } from \"astro/types\"\nimport X from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Button class={cn(className)} data-slot=\"dialog-close\" {...props}>\n <slot>\n <X />\n <span class=\"sr-only\">Close</span>\n </slot>\n</Button>\n",
62
- "type": "registry:ui"
63
- },
64
- {
65
- "path": "src/components/ui/dialog/index.ts",
66
- "content": "export { default as Dialog } from \"./dialog.astro\"\nexport { default as DialogPortal } from \"./dialog-portal.astro\"\nexport { default as DialogOverlay } from \"./dialog-overlay.astro\"\nexport { default as DialogContent } from \"./dialog-content.astro\"\nexport { default as DialogTrigger } from \"./dialog-trigger.astro\"\nexport { default as DialogHeader } from \"./dialog-header.astro\"\nexport { default as DialogTitle } from \"./dialog-title.astro\"\nexport { default as DialogDescription } from \"./dialog-description.astro\"\nexport { default as DialogFooter } from \"./dialog-footer.astro\"\nexport { default as DialogClose } from \"./dialog-close.astro\"\n",
67
- "type": "registry:ui"
68
- }
69
- ],
70
- "docs": "https://ui.full.dev/components/dialog/",
71
- "categories": [
72
- "ui"
73
- ],
74
- "type": "registry:ui"
75
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "doc-1",
4
- "title": "Doc 1",
5
- "description": "Documentation page shells for component pages with content, table of contents, and contextual links.",
6
- "dependencies": [
7
- "@lucide/astro",
8
- "simple-icons"
9
- ],
10
- "registryDependencies": [
11
- "@fulldev/button",
12
- "@fulldev/card",
13
- "@fulldev/dropdown-menu",
14
- "@fulldev/section",
15
- "@fulldev/toc",
16
- "@fulldev/typography"
17
- ],
18
- "files": [
19
- {
20
- "path": "src/components/blocks/doc-1.astro",
21
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowLeft from \"@lucide/astro/icons/arrow-left\"\nimport ArrowRight from \"@lucide/astro/icons/arrow-right\"\nimport Check from \"@lucide/astro/icons/check\"\nimport ChevronDown from \"@lucide/astro/icons/chevron-down\"\nimport Copy from \"@lucide/astro/icons/copy\"\nimport ExternalLink from \"@lucide/astro/icons/external-link\"\nimport Claude from \"simple-icons/icons/claude.svg\"\nimport Cursor from \"simple-icons/icons/cursor.svg\"\nimport Markdown from \"simple-icons/icons/markdown.svg\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/components/ui/button\"\nimport {\n Card,\n CardDescription,\n CardFooter,\n CardHeader,\n} from \"@/components/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport { SectionContainer } from \"@/components/ui/section\"\nimport {\n Toc,\n TocMenu,\n TocMenuItem,\n TocMenuLink,\n TocTitle,\n} from \"@/components/ui/toc\"\nimport {\n Typography,\n TypographyH1,\n TypographyLead,\n} from \"@/components/ui/typography\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n title: string\n description: string\n copyButton?: {\n id: string\n source: string\n }\n markdownUrl?: string\n tocItems: {\n depth: number\n href: string\n label: string\n }[]\n callout?: {\n description: string\n button: {\n label: string\n href: string\n }\n }\n previousPage?: {\n href: string\n title: string\n }\n nextPage?: {\n href: string\n title: string\n }\n labels: {\n copyMarkdown: string\n openIn: string\n openInMarkdown: string\n openInChatGPT: string\n openInClaude: string\n openInCursor: string\n assistantPrompt: string\n copyCode: string\n pagination: string\n toc: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n copyButton,\n markdownUrl,\n tocItems,\n callout,\n previousPage,\n nextPage,\n labels,\n ...props\n} = Astro.props\nconst showCopyButton = Boolean(copyButton)\nconst showOpenButton = Boolean(markdownUrl)\nconst showPagination = Boolean(previousPage || nextPage)\nconst openLinks = markdownUrl\n ? [\n {\n label: labels.openInMarkdown,\n href: markdownUrl,\n icon: \"markdown\",\n },\n {\n label: labels.openInChatGPT,\n href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(labels.assistantPrompt)}`,\n icon: \"chatgpt\",\n },\n {\n label: labels.openInClaude,\n href: `https://claude.ai/new?q=${encodeURIComponent(labels.assistantPrompt)}`,\n icon: \"claude\",\n },\n {\n label: labels.openInCursor,\n href: `https://cursor.com/link/prompt?text=${encodeURIComponent(labels.assistantPrompt)}`,\n icon: \"cursor\",\n },\n ]\n : []\n---\n\n<SectionContainer\n class={cn(\n \"flex flex-col gap-10 pt-10 pb-8 sm:pt-12 sm:pb-10 xl:grid xl:grid-cols-[minmax(0,1fr)_16rem] xl:items-start xl:gap-x-16\",\n className\n )}\n {...props}\n>\n <div class=\"mx-auto flex w-full max-w-160 min-w-0 flex-col gap-10\">\n <header class=\"flex flex-col gap-2\">\n <div class=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n <TypographyH1\n size=\"sm\"\n class=\"text-foreground min-w-0 text-left tracking-tight\"\n >\n {title}\n </TypographyH1>\n <div class=\"flex shrink-0 items-center gap-2 self-start\">\n {showCopyButton && (\n <Button\n id={copyButton?.id}\n type=\"button\"\n variant=\"outline\"\n size=\"xs\"\n data-source={copyButton?.source}\n data-doc-copy\n aria-label={labels.copyMarkdown}\n >\n <Copy data-copy-icon class=\"docs-copy-icon size-3.5\" />\n <Check data-check-icon class=\"docs-check-icon hidden size-3.5\" />\n <span>{labels.copyMarkdown}</span>\n </Button>\n )}\n {showOpenButton && (\n <DropdownMenu>\n <DropdownMenuTrigger\n class={buttonVariants({ variant: \"outline\", size: \"xs\" })}\n >\n <span>{labels.openIn}</span>\n <ChevronDown class=\"size-3.5 opacity-70\" />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" sideOffset={6} class=\"w-56\">\n <DropdownMenuGroup>\n {openLinks.map((link) => (\n <DropdownMenuItem\n href={link.href}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n >\n {link.icon === \"markdown\" && (\n <Markdown\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"chatgpt\" && (\n <svg\n role=\"img\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n class=\"size-4\"\n aria-hidden=\"true\"\n >\n <path d=\"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.182a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .511 4.91 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.989 5.989 0 0 0 3.998-2.9 6.056 6.056 0 0 0-.748-7.073ZM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.142-.081 4.778-2.758a.795.795 0 0 0 .393-.681v-6.737l2.02 1.169a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.495 4.494Zm-9.66-4.125a4.471 4.471 0 0 1-.535-3.014l.142.085 4.783 2.758a.771.771 0 0 0 .781 0l5.843-3.368v2.332a.08.08 0 0 1-.034.062L9.74 19.95a4.499 4.499 0 0 1-6.14-1.646ZM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.677l5.814 3.354-2.02 1.169a.076.076 0 0 1-.071 0l-4.83-2.787A4.504 4.504 0 0 1 2.34 7.872Zm16.596 3.856-5.833-3.388L15.12 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.104v-5.677a.79.79 0 0 0-.407-.667Zm2.011-3.024-.142-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.499 4.499 0 0 1 6.68 4.66ZM8.307 12.863l-2.02-1.164a.08.08 0 0 1-.038-.057V6.074a4.499 4.499 0 0 1 7.376-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681Zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z\" />\n </svg>\n )}\n {link.icon === \"claude\" && (\n <Claude\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n {link.icon === \"cursor\" && (\n <Cursor\n class=\"size-4\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n />\n )}\n <span>{link.label}</span>\n <ExternalLink class=\"text-muted-foreground ml-auto size-3.5\" />\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n </div>\n </div>\n <TypographyLead size=\"sm\" class=\"max-w-2xl leading-7\">\n {description}\n </TypographyLead>\n </header>\n\n <Typography\n as=\"article\"\n size=\"sm\"\n data-doc-content\n data-copy-label={labels.copyCode}\n >\n <slot />\n </Typography>\n\n {showPagination && (\n <nav\n class=\"flex items-center justify-between gap-3\"\n aria-label={labels.pagination}\n >\n {previousPage ? (\n <Button\n as=\"a\"\n href={previousPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-start gap-2 px-3 py-2 whitespace-normal\"\n >\n <ArrowLeft class=\"size-4\" />\n <span class=\"truncate text-sm font-medium\">\n {previousPage.title}\n </span>\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n\n {nextPage ? (\n <Button\n as=\"a\"\n href={nextPage.href}\n variant=\"outline\"\n class=\"h-auto min-w-0 items-center justify-end gap-2 px-3 py-2 text-right whitespace-normal\"\n >\n <span class=\"truncate text-sm font-medium\">{nextPage.title}</span>\n <ArrowRight class=\"size-4\" />\n </Button>\n ) : (\n <div aria-hidden=\"true\" />\n )}\n </nav>\n )}\n </div>\n\n {(tocItems.length > 0 || callout) && (\n <div class=\"hidden w-64 xl:sticky xl:top-12 xl:mr-0 xl:ml-auto xl:block xl:self-start\">\n <div class=\"flex flex-col gap-6\">\n {tocItems.length > 0 && (\n <Toc aria-label={labels.toc}>\n <TocTitle>{labels.toc}</TocTitle>\n <TocMenu>\n {tocItems.map((item) => (\n <TocMenuItem>\n <TocMenuLink href={item.href} depth={item.depth}>\n {item.label}\n </TocMenuLink>\n </TocMenuItem>\n ))}\n </TocMenu>\n </Toc>\n )}\n\n {callout && (\n <Card size=\"sm\">\n <CardHeader>\n <CardDescription>{callout.description}</CardDescription>\n </CardHeader>\n <CardFooter>\n <Button\n as=\"a\"\n href={callout.button.href}\n variant=\"outline\"\n size=\"sm\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {callout.button.label}\n </Button>\n </CardFooter>\n </Card>\n )}\n </div>\n </div>\n )}\n</SectionContainer>\n\n<style is:global>\n .docs-code-block {\n position: relative;\n overflow: hidden;\n margin-block-start: var(--typeset-flow);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-xl);\n background: color-mix(in oklab, var(--color-muted) 60%, transparent);\n }\n\n .docs-code-block > pre,\n .docs-code-block > pre.astro-code {\n margin: 0;\n overflow-x: auto;\n border: 0;\n border-radius: 0;\n background: transparent !important;\n padding: 1rem 4rem 1rem 1rem;\n /* Long lines fade out before the copy button instead of running under\n it; the end padding scrolls the last characters past the fade. */\n mask-image: linear-gradient(to left, transparent 2.75rem, #000 3.75rem);\n font-family: var(--font-mono);\n font-size: var(--text-sm);\n line-height: var(--text-sm--line-height);\n }\n\n .docs-code-block > pre.astro-code code {\n color: var(--shiki-light, var(--color-foreground)) !important;\n font: inherit;\n }\n\n .dark .docs-code-block > pre.astro-code code {\n color: var(--shiki-dark, var(--color-foreground)) !important;\n }\n\n .dark .docs-code-block > pre.astro-code span[style*=\"--shiki-dark\"] {\n color: var(--shiki-dark) !important;\n font-style: var(--shiki-dark-font-style, inherit) !important;\n font-weight: var(--shiki-dark-font-weight, inherit) !important;\n text-decoration: var(--shiki-dark-text-decoration, inherit) !important;\n }\n\n .docs-code-copy {\n position: absolute;\n z-index: 10;\n top: 0.75rem;\n right: 0.75rem;\n display: inline-flex;\n width: 2rem;\n height: 2rem;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n background: var(--color-background);\n color: var(--color-muted-foreground);\n box-shadow: var(--shadow-sm);\n transition:\n color 150ms,\n background-color 150ms;\n }\n\n .docs-code-copy:hover {\n background: var(--color-accent);\n color: var(--color-accent-foreground);\n }\n\n .docs-code-copy:focus-visible {\n outline: 2px solid var(--color-ring);\n outline-offset: 2px;\n }\n\n .docs-code-copy svg {\n width: 1rem;\n height: 1rem;\n }\n</style>\n\n<script>\n const copyIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg>`\n const checkIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"></path></svg>`\n const initializeCodeBlocks = () => {\n document\n .querySelectorAll<HTMLElement>(\"[data-doc-content]\")\n .forEach((content) => {\n content.querySelectorAll(\":scope > pre\").forEach((pre) => {\n if (pre.closest(\".docs-code-block\")) return\n const wrapper = document.createElement(\"div\")\n const button = document.createElement(\"button\")\n wrapper.className = \"docs-code-block\"\n wrapper.dataset.notTypeset = \"\"\n button.type = \"button\"\n button.className = \"docs-code-copy\"\n button.ariaLabel = content.dataset.copyLabel ?? null\n button.innerHTML = `<span data-copy-icon>${copyIcon}</span><span data-check-icon class=\"hidden\">${checkIcon}</span>`\n pre.before(wrapper)\n wrapper.append(pre, button)\n })\n })\n }\n\n initializeCodeBlocks()\n document.addEventListener(\"astro:page-load\", initializeCodeBlocks)\n\n document.addEventListener(\"click\", async (event) => {\n if (!(event.target instanceof Element)) return\n const button = event.target.closest(\n \"[data-doc-copy], [data-doc-content] .docs-code-copy\"\n )\n if (!(button instanceof HTMLButtonElement)) return\n const source =\n button.dataset.source ??\n button\n .closest(\".docs-code-block\")\n ?.querySelector(\"pre\")\n ?.textContent?.replace(/\\n$/, \"\")\n\n try {\n await navigator.clipboard.writeText(source ?? \"\")\n button.querySelector(\"[data-copy-icon]\")?.classList.add(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.remove(\"hidden\")\n setTimeout(() => {\n button.querySelector(\"[data-copy-icon]\")?.classList.remove(\"hidden\")\n button.querySelector(\"[data-check-icon]\")?.classList.add(\"hidden\")\n }, 1200)\n } catch {\n // Keep the copy state unchanged so the action can be retried.\n }\n })\n</script>\n",
22
- "type": "registry:block"
23
- }
24
- ],
25
- "docs": "https://ui.full.dev/blocks/doc/",
26
- "categories": [
27
- "doc"
28
- ],
29
- "type": "registry:block"
30
- }
@@ -1,54 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "drawer-examples",
4
- "title": "Drawer examples",
5
- "description": "The examples from the shadcn/ui Drawer docs.",
6
- "dependencies": [
7
- "@data-slot/drawer"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/badge",
11
- "@fulldev/button",
12
- "@fulldev/dialog",
13
- "@fulldev/drawer",
14
- "@fulldev/field",
15
- "@fulldev/input",
16
- "@fulldev/label",
17
- "@fulldev/radio-group",
18
- "@fulldev/toast"
19
- ],
20
- "files": [
21
- {
22
- "path": "src/components/examples/drawer/drawer-demo.astro",
23
- "content": "---\nimport { Badge } from \"@/components/ui/badge\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldLabel,\n FieldTitle,\n} from \"@/components/ui/field\"\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\"\nimport { Toaster } from \"@/components/ui/toast\"\n\nconst deliveryTimes = [\n {\n value: \"asap\",\n id: \"delivery-asap\",\n label: \"Standard delivery\",\n description: \"25–35 min · Driver assigned now\",\n badge: \"Fastest\",\n },\n {\n value: \"5-00\",\n id: \"delivery-5-00\",\n label: \"5:00 PM – 5:15 PM\",\n description: \"Prep starts at 4:45 PM\",\n },\n {\n value: \"5-30\",\n id: \"delivery-5-30\",\n label: \"5:30 PM – 5:45 PM\",\n description: \"Good if you're heading home\",\n },\n {\n value: \"6-00\",\n id: \"delivery-6-00\",\n label: \"6:00 PM – 6:15 PM\",\n description: \"Most popular · High demand\",\n },\n {\n value: \"6-30\",\n id: \"delivery-6-30\",\n label: \"6:30 PM – 6:45 PM\",\n description: \"Last slot before kitchen closes\",\n },\n]\n---\n\n<Drawer swipeDirection=\"right\" data-drawer-demo data-drawer-responsive>\n <DrawerTrigger variant=\"secondary\">Open Drawer</DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Pick a delivery time</DrawerTitle>\n <DrawerDescription>\n We&apos;ll prepare your order as soon as possible.\n </DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 scroll-fade overflow-y-auto p-4\">\n <RadioGroup defaultValue=\"asap\" class=\"gap-2\">\n {deliveryTimes.map((time) => (\n <FieldLabel>\n <Field as=\"span\" orientation=\"horizontal\">\n <FieldContent as=\"span\">\n <FieldTitle as=\"span\" class=\"flex items-center gap-2\">\n {time.label}\n {time.badge ? (\n <Badge variant=\"secondary\">{time.badge}</Badge>\n ) : null}\n </FieldTitle>\n <FieldDescription as=\"span\">\n {time.description}\n </FieldDescription>\n </FieldContent>\n <RadioGroupItem\n value={time.value}\n id={time.id}\n data-label={time.label}\n />\n </Field>\n </FieldLabel>\n ))}\n </RadioGroup>\n </div>\n <DrawerFooter>\n <DrawerClose class=\"h-[34px]\" data-drawer-demo-confirm>\n Confirm Delivery Time\n </DrawerClose>\n <DrawerClose variant=\"outline\">Cancel</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n <Toaster portal />\n</Drawer>\n\n<script>\n import { createDrawer } from \"@data-slot/drawer\"\n\n // Like useIsMobile: a bottom drawer with a swipe handle below 768px.\n const query = matchMedia(\"(max-width: 767px)\")\n const triggerOf = (root: HTMLElement) =>\n [...root.querySelectorAll('[data-slot=\"drawer-trigger\"]')].find(\n (element) => element.closest('[data-slot=\"drawer\"]') === root\n )\n const update = () => {\n const direction = query.matches ? \"down\" : \"right\"\n const roots = [\n ...document.querySelectorAll<HTMLElement>(\"[data-drawer-responsive]\"),\n ]\n for (const root of roots) {\n // An open popup lives in the body, outside its root.\n const popup = document.getElementById(\n triggerOf(root)?.getAttribute(\"aria-controls\") ?? \"\"\n )\n for (const parent of [root, popup])\n parent\n ?.querySelectorAll('[data-slot=\"drawer-handle\"]')\n .forEach((handle) => handle.toggleAttribute(\"hidden\", !query.matches))\n }\n // Data Slot reads the direction when it binds, and restores it when\n // destroyed, so rebind. Open drawers stay open: nested ones unbind first\n // and bind last.\n const stale = roots.filter(\n (root) => root.dataset.swipeDirection !== direction\n )\n const open = stale.map((root) => createDrawer(root).isOpen)\n for (const root of [...stale].reverse()) createDrawer(root).destroy()\n stale.forEach((root, index) => {\n root.dataset.swipeDirection = direction\n const drawer = createDrawer(root, { open: open[index] })\n // Reselect the trigger, which gets aria-expanded back.\n const trigger = triggerOf(root)\n if (open[index] && trigger?.id) drawer.open(trigger.id)\n })\n }\n\n update()\n document.addEventListener(\"astro:page-load\", update)\n query.addEventListener(\"change\", update)\n</script>\n\n<script>\n const initialize = () => {\n for (const root of document.querySelectorAll<HTMLElement>(\n \"[data-drawer-demo]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n root.addEventListener(\"drawer:change\", (event) => {\n const { open, originalEvent } = (event as CustomEvent).detail\n const target = originalEvent?.target\n const confirm =\n target instanceof Element\n ? target.closest(\"[data-drawer-demo-confirm]\")\n : null\n if (open || !confirm) return\n const selected = confirm\n .closest('[data-slot=\"drawer-popup\"]')\n ?.querySelector<HTMLElement>(\n '[data-slot=\"radio-group-item\"][aria-checked=\"true\"]'\n )\n if (!selected) return\n root.querySelector('[data-slot=\"toast\"]')?.dispatchEvent(\n new CustomEvent(\"toast:show\", {\n detail: {\n title: \"Delivery time confirmed\",\n description: selected.dataset.label,\n },\n })\n )\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
24
- "type": "registry:component"
25
- },
26
- {
27
- "path": "src/components/examples/drawer/drawer-dialog.astro",
28
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/components/ui/dialog\"\nimport {\n Drawer,\n DrawerContent,\n DrawerDescription,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<!-- A Dialog from 768px (md), a Drawer below it. -->\n<Dialog class=\"hidden md:block\">\n <DialogTrigger variant=\"outline\">Edit Profile</DialogTrigger>\n <DialogContent class=\"sm:max-w-[425px]\">\n <DialogHeader>\n <DialogTitle>Edit profile</DialogTitle>\n <DialogDescription>\n Make changes to your profile here. Click save when you&apos;re done.\n </DialogDescription>\n </DialogHeader>\n <form class=\"grid items-start gap-6\">\n <div class=\"grid gap-3\">\n <Label for=\"email\">Email</Label>\n <Input type=\"email\" id=\"email\" value=\"shadcn@example.com\" />\n </div>\n <div class=\"grid gap-3\">\n <Label for=\"username\">Username</Label>\n <Input id=\"username\" value=\"@shadcn\" />\n </div>\n <Button type=\"submit\">Save changes</Button>\n </form>\n </DialogContent>\n</Dialog>\n\n<Drawer class=\"md:hidden\">\n <DrawerTrigger variant=\"outline\">Edit Profile</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader class=\"text-left\">\n <DrawerTitle>Edit profile</DrawerTitle>\n <DrawerDescription>\n Make changes to your profile here. Click save when you&apos;re done.\n </DrawerDescription>\n </DrawerHeader>\n <form class=\"grid items-start gap-6 p-4\">\n <div class=\"grid gap-3\">\n <Label for=\"email-drawer\">Email</Label>\n <Input type=\"email\" id=\"email-drawer\" value=\"shadcn@example.com\" />\n </div>\n <div class=\"grid gap-3\">\n <Label for=\"username-drawer\">Username</Label>\n <Input id=\"username-drawer\" value=\"@shadcn\" />\n </div>\n <Button type=\"submit\">Save changes</Button>\n </form>\n </DrawerContent>\n</Drawer>\n",
29
- "type": "registry:component"
30
- },
31
- {
32
- "path": "src/components/examples/drawer/drawer-nested.astro",
33
- "content": "---\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\n\nconst swipeDirection = \"right\"\nconst placeholder =\n \"bg-muted group-data-[swipe-direction=right]/drawer-popup:size-full group-data-[swipe-direction=down]/drawer-popup:aspect-video group-data-[swipe-direction=down]/drawer-popup:w-full\"\n---\n\n<Drawer swipeDirection={swipeDirection} data-drawer-responsive>\n <DrawerTrigger variant=\"secondary\">Open Drawer</DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Drawer</DrawerTitle>\n <DrawerDescription>\n Open another drawer from the same direction.\n </DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class={placeholder}></div>\n </div>\n <DrawerFooter>\n <Drawer swipeDirection={swipeDirection} data-drawer-responsive>\n <DrawerTrigger variant=\"outline\">Open Nested Drawer</DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Nested Drawer</DrawerTitle>\n <DrawerDescription>\n The parent drawer stays mounted behind this one.\n </DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class={placeholder}></div>\n </div>\n <DrawerFooter>\n <Drawer swipeDirection={swipeDirection} data-drawer-responsive>\n <DrawerTrigger variant=\"outline\">Open Third Drawer</DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Third Drawer</DrawerTitle>\n <DrawerDescription>\n Two drawers are stacked behind this one.\n </DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class={placeholder}></div>\n </div>\n <DrawerFooter>\n <Drawer\n swipeDirection={swipeDirection}\n data-drawer-responsive\n >\n <DrawerTrigger variant=\"outline\">\n Open Fourth Drawer\n </DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Fourth Drawer</DrawerTitle>\n <DrawerDescription>\n This is the frontmost drawer in the stack.\n </DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class={placeholder}></div>\n </div>\n <DrawerFooter>\n <DrawerClose variant=\"outline\">Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n <DrawerClose variant=\"outline\">Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n <DrawerClose variant=\"outline\">Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n <DrawerClose variant=\"outline\">Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n</Drawer>\n\n<script>\n import { createDrawer } from \"@data-slot/drawer\"\n\n // Like useIsMobile: bottom drawers with a swipe handle below 768px.\n const query = matchMedia(\"(max-width: 767px)\")\n const triggerOf = (root: HTMLElement) =>\n [...root.querySelectorAll('[data-slot=\"drawer-trigger\"]')].find(\n (element) => element.closest('[data-slot=\"drawer\"]') === root\n )\n const update = () => {\n const direction = query.matches ? \"down\" : \"right\"\n const roots = [\n ...document.querySelectorAll<HTMLElement>(\"[data-drawer-responsive]\"),\n ]\n for (const root of roots) {\n // An open popup lives in the body, outside its root.\n const popup = document.getElementById(\n triggerOf(root)?.getAttribute(\"aria-controls\") ?? \"\"\n )\n for (const parent of [root, popup])\n parent\n ?.querySelectorAll('[data-slot=\"drawer-handle\"]')\n .forEach((handle) => handle.toggleAttribute(\"hidden\", !query.matches))\n }\n // Data Slot reads the direction when it binds, and restores it when\n // destroyed, so rebind. Open drawers stay open: nested ones unbind first\n // and bind last.\n const stale = roots.filter(\n (root) => root.dataset.swipeDirection !== direction\n )\n const open = stale.map((root) => createDrawer(root).isOpen)\n for (const root of [...stale].reverse()) createDrawer(root).destroy()\n stale.forEach((root, index) => {\n root.dataset.swipeDirection = direction\n const drawer = createDrawer(root, { open: open[index] })\n // Reselect the trigger, which gets aria-expanded back.\n const trigger = triggerOf(root)\n if (open[index] && trigger?.id) drawer.open(trigger.id)\n })\n }\n\n update()\n document.addEventListener(\"astro:page-load\", update)\n query.addEventListener(\"change\", update)\n</script>\n",
34
- "type": "registry:component"
35
- },
36
- {
37
- "path": "src/components/examples/drawer/drawer-non-modal.astro",
38
- "content": "---\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\n---\n\n<Drawer modal={false} disablePointerDismissal swipeDirection=\"right\">\n <DrawerTrigger variant=\"outline\">Non Modal</DrawerTrigger>\n <DrawerContent showOverlay={false}>\n <DrawerHeader>\n <DrawerTitle>Non Modal Drawer</DrawerTitle>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class=\"rounded-2xl bg-muted group-data-[swipe-direction=right]/drawer-popup:size-full\"></div>\n </div>\n <DrawerFooter>\n <DrawerClose>Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n</Drawer>\n",
39
- "type": "registry:component"
40
- },
41
- {
42
- "path": "src/components/examples/drawer/drawer-sides.astro",
43
- "content": "---\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\n---\n\n<Drawer swipeDirection=\"left\">\n <DrawerTrigger variant=\"secondary\">Open Left Drawer</DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerTitle>Move Goal</DrawerTitle>\n <DrawerDescription>Set your daily activity goal.</DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class=\"size-full rounded-2xl bg-muted\"></div>\n </div>\n <DrawerFooter>\n <DrawerClose>Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n</Drawer>\n",
44
- "type": "registry:component"
45
- },
46
- {
47
- "path": "src/components/examples/drawer/drawer-swipe-handle.astro",
48
- "content": "---\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/components/ui/drawer\"\n---\n\n<Drawer>\n <DrawerTrigger variant=\"secondary\">Open Drawer</DrawerTrigger>\n <DrawerContent showSwipeHandle>\n <DrawerHeader>\n <DrawerTitle>Drawer</DrawerTitle>\n <DrawerDescription>Drawer with a swipe handle.</DrawerDescription>\n </DrawerHeader>\n <div class=\"flex-1 p-4\">\n <div class=\"rounded-2xl bg-muted group-data-[swipe-direction=down]/drawer-popup:h-80 group-data-[swipe-direction=down]/drawer-popup:w-full\"></div>\n </div>\n <DrawerFooter>\n <DrawerClose>Close</DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n</Drawer>\n",
49
- "type": "registry:component"
50
- }
51
- ],
52
- "docs": "https://ui.full.dev/components/drawer/",
53
- "type": "registry:example"
54
- }
@@ -1,109 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "drawer",
4
- "title": "Drawer",
5
- "description": "A drawer component that slides in from any edge of the screen.",
6
- "dependencies": [
7
- "@data-slot/drawer@^1.1.2"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/button"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/ui/drawer/drawer-close.astro",
15
- "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"drawer-close\" {...props}>\n <slot />\n</Button>\n",
16
- "type": "registry:ui"
17
- },
18
- {
19
- "path": "src/components/ui/drawer/drawer-content.astro",
20
- "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport DrawerOverlay from \"./drawer-overlay.astro\"\nimport DrawerPopup from \"./drawer-popup.astro\"\nimport DrawerPortal from \"./drawer-portal.astro\"\nimport DrawerSwipeHandle from \"./drawer-swipe-handle.astro\"\nimport DrawerViewport from \"./drawer-viewport.astro\"\n\ntype Props = ComponentProps<typeof DrawerPopup> & {\n showOverlay?: boolean\n showSwipeHandle?: boolean\n container?: string\n keepMounted?: boolean\n overlayClass?: string\n viewportClass?: string\n}\n\nconst {\n showOverlay = true,\n showSwipeHandle = false,\n container,\n keepMounted,\n overlayClass,\n viewportClass,\n ...props\n} = Astro.props\n---\n\n<DrawerPortal container={container} keepMounted={keepMounted}>\n {showOverlay && <DrawerOverlay class={overlayClass} />}\n <DrawerViewport class={viewportClass}>\n <DrawerPopup {...props}>\n {showSwipeHandle && <DrawerSwipeHandle />}\n <div\n data-slot=\"drawer-content\"\n class=\"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain rounded-[inherit] transition-opacity duration-300 select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none\"\n >\n <slot />\n </div>\n </DrawerPopup>\n </DrawerViewport>\n</DrawerPortal>\n",
21
- "type": "registry:ui"
22
- },
23
- {
24
- "path": "src/components/ui/drawer/drawer-description.astro",
25
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n data-slot=\"drawer-description\"\n class={cn(\"text-muted-foreground text-sm text-balance\", className)}\n {...props}\n>\n <slot />\n</p>\n",
26
- "type": "registry:ui"
27
- },
28
- {
29
- "path": "src/components/ui/drawer/drawer-footer.astro",
30
- "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=\"drawer-footer\"\n class={cn(\"gap-2 p-4 mt-auto flex shrink-0 flex-col pt-0\", className)}\n {...props}\n>\n <slot />\n</div>\n",
31
- "type": "registry:ui"
32
- },
33
- {
34
- "path": "src/components/ui/drawer/drawer-header.astro",
35
- "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=\"drawer-header\"\n class={cn(\"flex shrink-0 flex-col gap-1.5 p-4 pb-0\", className)}\n {...props}\n>\n <slot />\n</div>\n",
36
- "type": "registry:ui"
37
- },
38
- {
39
- "path": "src/components/ui/drawer/drawer-indent-background.astro",
40
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"drawer-indent-background\" class={className} {...props}>\n <slot />\n</div>\n",
41
- "type": "registry:ui"
42
- },
43
- {
44
- "path": "src/components/ui/drawer/drawer-indent.astro",
45
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"drawer-indent\" class={className} {...props}>\n <slot />\n</div>\n",
46
- "type": "registry:ui"
47
- },
48
- {
49
- "path": "src/components/ui/drawer/drawer-overlay.astro",
50
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, hidden = true, ...props } = Astro.props\n---\n\n<div\n data-slot=\"drawer-backdrop\"\n hidden={hidden}\n class={cn(\n \"bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50 min-h-dvh opacity-[calc(1-var(--drawer-swipe-progress,0))] transition-opacity duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-starting-style:opacity-0 data-swiping:duration-0\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
51
- "type": "registry:ui"
52
- },
53
- {
54
- "path": "src/components/ui/drawer/drawer-popup.astro",
55
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n initialFocus?: boolean | string\n finalFocus?: boolean | string\n}\n\nconst {\n class: className,\n initialFocus,\n finalFocus,\n hidden = true,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"drawer-popup\"\n data-initial-focus={initialFocus}\n data-final-focus={finalFocus}\n hidden={hidden}\n class={cn(\n \"bg-popover text-popover-foreground text-sm data-[swipe-direction=down]:rounded-t-xl data-[swipe-direction=down]:border-t data-[swipe-direction=left]:rounded-r-xl data-[swipe-direction=left]:border-r data-[swipe-direction=right]:rounded-l-xl data-[swipe-direction=right]:border-l data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:border-b shadow-lg group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex min-h-0 transform-gpu flex-col transition-[transform,height,opacity,filter] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none data-ending-style:duration-[calc(var(--drawer-swipe-strength,1)*400ms)] data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95 data-swiping:duration-0\",\n \"data-[swipe-direction=down]:inset-x-0 data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:max-h-[calc(100dvh-3rem)] data-[swipe-direction=down]:[transform:translate3d(0,calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-amount-y,0px)),0)] data-[swipe-direction=down]:data-ending-style:[transform:translate3d(0,calc(100%+2px),0)] data-[swipe-direction=down]:data-starting-style:[transform:translate3d(0,calc(100%+2px),0)]\",\n \"data-[swipe-direction=up]:inset-x-0 data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:max-h-[calc(100dvh-3rem)] data-[swipe-direction=up]:[transform:translate3d(0,calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-amount-y,0px)),0)] data-[swipe-direction=up]:data-ending-style:[transform:translate3d(0,calc(-100%-2px),0)] data-[swipe-direction=up]:data-starting-style:[transform:translate3d(0,calc(-100%-2px),0)]\",\n \"data-[swipe-direction=left]:inset-y-0 data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:h-full data-[swipe-direction=left]:w-3/4 data-[swipe-direction=left]:max-w-sm data-[swipe-direction=left]:[transform:translate3d(calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-amount-x,0px)),0,0)] data-[swipe-direction=left]:flex-row data-[swipe-direction=left]:data-ending-style:[transform:translate3d(calc(-100%-2px),0,0)] data-[swipe-direction=left]:data-starting-style:[transform:translate3d(calc(-100%-2px),0,0)]\",\n \"data-[swipe-direction=right]:inset-y-0 data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:h-full data-[swipe-direction=right]:w-3/4 data-[swipe-direction=right]:max-w-sm data-[swipe-direction=right]:[transform:translate3d(calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-amount-x,0px)),0,0)] data-[swipe-direction=right]:flex-row data-[swipe-direction=right]:data-ending-style:[transform:translate3d(calc(100%+2px),0,0)] data-[swipe-direction=right]:data-starting-style:[transform:translate3d(calc(100%+2px),0,0)]\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
56
- "type": "registry:ui"
57
- },
58
- {
59
- "path": "src/components/ui/drawer/drawer-portal.astro",
60
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n container?: string\n keepMounted?: boolean\n}\n\nconst {\n class: className,\n container,\n keepMounted,\n hidden = true,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"drawer-portal\"\n data-container={container}\n data-keep-mounted={keepMounted}\n class={className}\n hidden={hidden}\n {...props}\n>\n <slot />\n</div>\n",
61
- "type": "registry:ui"
62
- },
63
- {
64
- "path": "src/components/ui/drawer/drawer-provider.astro",
65
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"drawer-provider\" class={className} {...props}>\n <slot />\n</div>\n",
66
- "type": "registry:ui"
67
- },
68
- {
69
- "path": "src/components/ui/drawer/drawer-swipe-handle.astro",
70
- "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=\"drawer-handle\"\n aria-hidden=\"true\"\n class={cn(\n \"after:bg-muted relative z-10 flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-swiping/drawer-popup:opacity-100 group-data-[swipe-direction=down]/drawer-popup:h-3 group-data-[swipe-direction=down]/drawer-popup:w-full group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=down]/drawer-popup:justify-center group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:h-full group-data-[swipe-direction=left]/drawer-popup:w-3 group-data-[swipe-direction=left]/drawer-popup:items-center group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:h-full group-data-[swipe-direction=right]/drawer-popup:w-3 group-data-[swipe-direction=right]/drawer-popup:items-center group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:h-3 group-data-[swipe-direction=up]/drawer-popup:w-full group-data-[swipe-direction=up]/drawer-popup:items-start group-data-[swipe-direction=up]/drawer-popup:justify-center after:block after:shrink-0 after:rounded-full group-data-[swipe-direction=down]/drawer-popup:after:h-1.5 group-data-[swipe-direction=down]/drawer-popup:after:w-24 group-data-[swipe-direction=left]/drawer-popup:after:h-24 group-data-[swipe-direction=left]/drawer-popup:after:w-1.5 group-data-[swipe-direction=right]/drawer-popup:after:h-24 group-data-[swipe-direction=right]/drawer-popup:after:w-1.5 group-data-[swipe-direction=up]/drawer-popup:after:h-1.5 group-data-[swipe-direction=up]/drawer-popup:after:w-24 active:cursor-grabbing\",\n className\n )}\n {...props}\n></div>\n",
71
- "type": "registry:ui"
72
- },
73
- {
74
- "path": "src/components/ui/drawer/drawer-title.astro",
75
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"h2\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<h2\n data-slot=\"drawer-title\"\n class={cn(\"text-foreground font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</h2>\n",
76
- "type": "registry:ui"
77
- },
78
- {
79
- "path": "src/components/ui/drawer/drawer-trigger.astro",
80
- "content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button> & {\n drawerTarget?: string\n payload?: string\n}\n\nconst { drawerTarget, payload, ...props } = Astro.props\n---\n\n<Button\n data-slot=\"drawer-trigger\"\n data-drawer-target={drawerTarget}\n data-payload={payload}\n {...props}\n>\n <slot />\n</Button>\n",
81
- "type": "registry:ui"
82
- },
83
- {
84
- "path": "src/components/ui/drawer/drawer-viewport.astro",
85
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, hidden = true, ...props } = Astro.props\n---\n\n<div\n data-slot=\"drawer-viewport\"\n hidden={hidden}\n class={cn(\n \"pointer-events-none fixed inset-0 z-50 min-h-dvh select-none\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
86
- "type": "registry:ui"
87
- },
88
- {
89
- "path": "src/components/ui/drawer/drawer-virtual-keyboard-provider.astro",
90
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"drawer-virtual-keyboard-provider\" class={className} {...props}>\n <slot />\n</div>\n",
91
- "type": "registry:ui"
92
- },
93
- {
94
- "path": "src/components/ui/drawer/drawer.astro",
95
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { DrawerSnapPoint, DrawerSwipeDirection } from \"@data-slot/drawer\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultOpen?: boolean\n modal?: boolean | \"trap-focus\"\n disablePointerDismissal?: boolean\n closeOnEscape?: boolean\n swipeDirection?: DrawerSwipeDirection\n snapPoint?: DrawerSnapPoint | null\n defaultSnapPoint?: DrawerSnapPoint | null\n triggerId?: string | null\n defaultTriggerId?: string | null\n}\n\nconst {\n class: className,\n defaultOpen,\n modal,\n disablePointerDismissal,\n closeOnEscape,\n swipeDirection,\n snapPoint,\n defaultSnapPoint,\n triggerId,\n defaultTriggerId,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"drawer\"\n data-default-open={defaultOpen}\n data-modal={modal}\n data-disable-pointer-dismissal={disablePointerDismissal}\n data-close-on-escape={closeOnEscape}\n data-swipe-direction={swipeDirection}\n data-snap-point={snapPoint}\n data-default-snap-point={defaultSnapPoint}\n data-trigger-id={triggerId}\n data-default-trigger-id={defaultTriggerId}\n class={className}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/drawer\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
96
- "type": "registry:ui"
97
- },
98
- {
99
- "path": "src/components/ui/drawer/index.ts",
100
- "content": "export { default as Drawer } from \"./drawer.astro\"\nexport { default as DrawerTrigger } from \"./drawer-trigger.astro\"\nexport { default as DrawerClose } from \"./drawer-close.astro\"\nexport { default as DrawerPortal } from \"./drawer-portal.astro\"\nexport { default as DrawerOverlay } from \"./drawer-overlay.astro\"\nexport { default as DrawerBackdrop } from \"./drawer-overlay.astro\"\nexport { default as DrawerViewport } from \"./drawer-viewport.astro\"\nexport { default as DrawerPopup } from \"./drawer-popup.astro\"\nexport { default as DrawerContent } from \"./drawer-content.astro\"\nexport { default as DrawerSwipeHandle } from \"./drawer-swipe-handle.astro\"\nexport { default as DrawerHeader } from \"./drawer-header.astro\"\nexport { default as DrawerFooter } from \"./drawer-footer.astro\"\nexport { default as DrawerTitle } from \"./drawer-title.astro\"\nexport { default as DrawerDescription } from \"./drawer-description.astro\"\nexport { default as DrawerProvider } from \"./drawer-provider.astro\"\nexport { default as DrawerIndent } from \"./drawer-indent.astro\"\nexport { default as DrawerIndentBackground } from \"./drawer-indent-background.astro\"\nexport { default as DrawerVirtualKeyboardProvider } from \"./drawer-virtual-keyboard-provider.astro\"\n\nexport type {\n DrawerChangeDetails,\n DrawerChangeReason,\n DrawerController,\n DrawerOptions,\n DrawerSnapChangeDetails,\n DrawerSnapPoint,\n DrawerSwipeDirection,\n} from \"@data-slot/drawer\"\n",
101
- "type": "registry:ui"
102
- }
103
- ],
104
- "docs": "https://ui.full.dev/components/drawer/",
105
- "categories": [
106
- "ui"
107
- ],
108
- "type": "registry:ui"
109
- }
@@ -1,63 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "dropdown-menu-examples",
4
- "title": "Dropdown Menu examples",
5
- "description": "The examples from the shadcn/ui Dropdown Menu 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/dropdown-menu/dropdown-menu-avatar.astro",
17
- "content": "---\nimport BadgeCheckIcon from \"@lucide/astro/icons/badge-check\"\nimport BellIcon from \"@lucide/astro/icons/bell\"\nimport CreditCardIcon from \"@lucide/astro/icons/credit-card\"\nimport LogOutIcon from \"@lucide/astro/icons/log-out\"\n\nimport { cn } from \"@/lib/utils\"\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={cn(\n buttonVariants({ variant: \"ghost\", size: \"icon\" }),\n \"rounded-full\"\n )}\n >\n <Avatar>\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"shadcn\" />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <BadgeCheckIcon />\n Account\n </DropdownMenuItem>\n <DropdownMenuItem>\n <CreditCardIcon />\n Billing\n </DropdownMenuItem>\n <DropdownMenuItem>\n <BellIcon />\n Notifications\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <LogOutIcon />\n Sign Out\n </DropdownMenuItem>\n </DropdownMenuContent>\n</DropdownMenu>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/dropdown-menu/dropdown-menu-basic.astro",
22
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open\n </DropdownMenuTrigger>\n <DropdownMenuContent>\n <DropdownMenuGroup>\n <DropdownMenuLabel>My Account</DropdownMenuLabel>\n <DropdownMenuItem>Profile</DropdownMenuItem>\n <DropdownMenuItem>Billing</DropdownMenuItem>\n <DropdownMenuItem>Settings</DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem>GitHub</DropdownMenuItem>\n <DropdownMenuItem>Support</DropdownMenuItem>\n <DropdownMenuItem disabled>API</DropdownMenuItem>\n </DropdownMenuContent>\n</DropdownMenu>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/dropdown-menu/dropdown-menu-checkboxes-icons.astro",
27
- "content": "---\nimport BellIcon from \"@lucide/astro/icons/bell\"\nimport MailIcon from \"@lucide/astro/icons/mail\"\nimport MessageSquareIcon from \"@lucide/astro/icons/message-square\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu defaultValues={[\"email\", \"push\"]} closeOnSelect={false}>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Notifications\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"w-48\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>Notification Preferences</DropdownMenuLabel>\n <DropdownMenuCheckboxItem value=\"email\">\n <MailIcon />\n Email notifications\n </DropdownMenuCheckboxItem>\n <DropdownMenuCheckboxItem value=\"sms\">\n <MessageSquareIcon />\n SMS notifications\n </DropdownMenuCheckboxItem>\n <DropdownMenuCheckboxItem value=\"push\">\n <BellIcon />\n Push notifications\n </DropdownMenuCheckboxItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/dropdown-menu/dropdown-menu-checkboxes.astro",
32
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu defaultValues={[\"status-bar\"]} closeOnSelect={false}>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"w-40\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>Appearance</DropdownMenuLabel>\n <DropdownMenuCheckboxItem value=\"status-bar\">\n Status Bar\n </DropdownMenuCheckboxItem>\n <DropdownMenuCheckboxItem value=\"activity-bar\" disabled>\n Activity Bar\n </DropdownMenuCheckboxItem>\n <DropdownMenuCheckboxItem value=\"panel\">Panel</DropdownMenuCheckboxItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
33
- "type": "registry:component"
34
- },
35
- {
36
- "path": "src/components/examples/dropdown-menu/dropdown-menu-destructive.astro",
37
- "content": "---\nimport PencilIcon from \"@lucide/astro/icons/pencil\"\nimport ShareIcon from \"@lucide/astro/icons/share\"\nimport TrashIcon from \"@lucide/astro/icons/trash\"\n\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 class={buttonVariants({ variant: \"outline\" })}>\n Actions\n </DropdownMenuTrigger>\n <DropdownMenuContent>\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <PencilIcon />\n Edit\n </DropdownMenuItem>\n <DropdownMenuItem>\n <ShareIcon />\n Share\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem variant=\"destructive\">\n <TrashIcon />\n Delete\n </DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
38
- "type": "registry:component"
39
- },
40
- {
41
- "path": "src/components/examples/dropdown-menu/dropdown-menu-icons.astro",
42
- "content": "---\nimport CreditCardIcon from \"@lucide/astro/icons/credit-card\"\nimport LogOutIcon from \"@lucide/astro/icons/log-out\"\nimport SettingsIcon from \"@lucide/astro/icons/settings\"\nimport UserIcon from \"@lucide/astro/icons/user\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open\n </DropdownMenuTrigger>\n <DropdownMenuContent>\n <DropdownMenuItem>\n <UserIcon />\n Profile\n </DropdownMenuItem>\n <DropdownMenuItem>\n <CreditCardIcon />\n Billing\n </DropdownMenuItem>\n <DropdownMenuItem>\n <SettingsIcon />\n Settings\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem variant=\"destructive\">\n <LogOutIcon />\n Log out\n </DropdownMenuItem>\n </DropdownMenuContent>\n</DropdownMenu>\n",
43
- "type": "registry:component"
44
- },
45
- {
46
- "path": "src/components/examples/dropdown-menu/dropdown-menu-radio-group.astro",
47
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuRadioItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu defaultValue=\"bottom\" closeOnSelect={false}>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"w-32\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>Panel Position</DropdownMenuLabel>\n <DropdownMenuRadioItem value=\"top\">Top</DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"bottom\">Bottom</DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"right\">Right</DropdownMenuRadioItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
48
- "type": "registry:component"
49
- },
50
- {
51
- "path": "src/components/examples/dropdown-menu/dropdown-menu-radio-icons.astro",
52
- "content": "---\nimport BuildingComplexIcon from \"@lucide/astro/icons/building-complex\"\nimport CreditCardIcon from \"@lucide/astro/icons/credit-card\"\nimport WalletIcon from \"@lucide/astro/icons/wallet\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuLabel,\n DropdownMenuRadioItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu defaultValue=\"card\" closeOnSelect={false}>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Payment Method\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"min-w-56\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>Select Payment Method</DropdownMenuLabel>\n <DropdownMenuRadioItem value=\"card\">\n <CreditCardIcon />\n Credit Card\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"paypal\">\n <WalletIcon />\n PayPal\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem value=\"bank\">\n <BuildingComplexIcon />\n Bank Transfer\n </DropdownMenuRadioItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
53
- "type": "registry:component"
54
- },
55
- {
56
- "path": "src/components/examples/dropdown-menu/dropdown-menu-shortcuts.astro",
57
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n---\n\n<DropdownMenu>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open\n </DropdownMenuTrigger>\n <DropdownMenuContent>\n <DropdownMenuGroup>\n <DropdownMenuLabel>My Account</DropdownMenuLabel>\n <DropdownMenuItem>\n Profile\n <DropdownMenuShortcut>⇧⌘P</DropdownMenuShortcut>\n </DropdownMenuItem>\n <DropdownMenuItem>\n Billing\n <DropdownMenuShortcut>⌘B</DropdownMenuShortcut>\n </DropdownMenuItem>\n <DropdownMenuItem>\n Settings\n <DropdownMenuShortcut>⌘S</DropdownMenuShortcut>\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n Log out\n <DropdownMenuShortcut>⇧⌘Q</DropdownMenuShortcut>\n </DropdownMenuItem>\n </DropdownMenuContent>\n</DropdownMenu>\n",
58
- "type": "registry:component"
59
- }
60
- ],
61
- "docs": "https://ui.full.dev/components/dropdown-menu/",
62
- "type": "registry:example"
63
- }