fulldev-ui 0.25.0 → 0.25.1

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 (209) hide show
  1. package/CHANGELOG.md +8 -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 +2 -1
  6. package/public/r/liquid/components.json +1 -1
  7. package/public/r/liquid/init.json +1 -1
  8. package/liquid/vendor.json +0 -180
  9. package/public/r/accordion-examples.json +0 -49
  10. package/public/r/accordion.json +0 -42
  11. package/public/r/alert-dialog-examples.json +0 -51
  12. package/public/r/alert-dialog.json +0 -84
  13. package/public/r/alert-examples.json +0 -47
  14. package/public/r/alert.json +0 -38
  15. package/public/r/article-1.json +0 -22
  16. package/public/r/article-2.json +0 -22
  17. package/public/r/articles-1.json +0 -22
  18. package/public/r/articles-2.json +0 -23
  19. package/public/r/articles-3.json +0 -22
  20. package/public/r/articles-4.json +0 -22
  21. package/public/r/aspect-ratio-examples.json +0 -33
  22. package/public/r/aspect-ratio.json +0 -23
  23. package/public/r/attachment-examples.json +0 -48
  24. package/public/r/attachment.json +0 -66
  25. package/public/r/avatar-examples.json +0 -68
  26. package/public/r/avatar.json +0 -48
  27. package/public/r/badge-examples.json +0 -52
  28. package/public/r/badge.json +0 -28
  29. package/public/r/banner-1.json +0 -24
  30. package/public/r/banner-2.json +0 -22
  31. package/public/r/banner.json +0 -31
  32. package/public/r/base.json +0 -143
  33. package/public/r/blocks-1.json +0 -27
  34. package/public/r/blocks.json +0 -92
  35. package/public/r/breadcrumb-examples.json +0 -53
  36. package/public/r/breadcrumb.json +0 -56
  37. package/public/r/button-examples.json +0 -87
  38. package/public/r/button-group-examples.json +0 -75
  39. package/public/r/button-group.json +0 -41
  40. package/public/r/button.json +0 -28
  41. package/public/r/card-examples.json +0 -51
  42. package/public/r/card.json +0 -53
  43. package/public/r/carousel-examples.json +0 -49
  44. package/public/r/carousel.json +0 -50
  45. package/public/r/checkbox-examples.json +0 -56
  46. package/public/r/checkbox.json +0 -23
  47. package/public/r/code-block-examples.json +0 -33
  48. package/public/r/code-block.json +0 -65
  49. package/public/r/collapsible-examples.json +0 -51
  50. package/public/r/collapsible.json +0 -36
  51. package/public/r/combobox-examples.json +0 -69
  52. package/public/r/combobox.json +0 -81
  53. package/public/r/command-examples.json +0 -47
  54. package/public/r/command.json +0 -71
  55. package/public/r/components.json +0 -74
  56. package/public/r/contact-1.json +0 -23
  57. package/public/r/contact-2.json +0 -23
  58. package/public/r/contact-3.json +0 -29
  59. package/public/r/content-1.json +0 -31
  60. package/public/r/content-2.json +0 -31
  61. package/public/r/content-3.json +0 -28
  62. package/public/r/content-4.json +0 -31
  63. package/public/r/cta-1.json +0 -24
  64. package/public/r/cta-2.json +0 -30
  65. package/public/r/cta-3.json +0 -24
  66. package/public/r/cta-4.json +0 -30
  67. package/public/r/cta-5.json +0 -31
  68. package/public/r/cta-6.json +0 -30
  69. package/public/r/cta-7.json +0 -23
  70. package/public/r/cta-8.json +0 -22
  71. package/public/r/dialog-examples.json +0 -47
  72. package/public/r/dialog.json +0 -75
  73. package/public/r/doc-1.json +0 -30
  74. package/public/r/drawer-examples.json +0 -54
  75. package/public/r/drawer.json +0 -109
  76. package/public/r/dropdown-menu-examples.json +0 -63
  77. package/public/r/dropdown-menu.json +0 -77
  78. package/public/r/empty-examples.json +0 -55
  79. package/public/r/empty.json +0 -48
  80. package/public/r/faqs-1.json +0 -23
  81. package/public/r/faqs-2.json +0 -23
  82. package/public/r/faqs-3.json +0 -23
  83. package/public/r/faqs-4.json +0 -22
  84. package/public/r/features-1.json +0 -26
  85. package/public/r/features-2.json +0 -22
  86. package/public/r/features-3.json +0 -21
  87. package/public/r/features-4.json +0 -26
  88. package/public/r/features-5.json +0 -22
  89. package/public/r/features-6.json +0 -23
  90. package/public/r/field-examples.json +0 -86
  91. package/public/r/field.json +0 -72
  92. package/public/r/footer-1.json +0 -24
  93. package/public/r/footer-2.json +0 -24
  94. package/public/r/footer-3.json +0 -24
  95. package/public/r/form.json +0 -23
  96. package/public/r/header-1.json +0 -29
  97. package/public/r/header-2.json +0 -29
  98. package/public/r/header-3.json +0 -30
  99. package/public/r/header-4.json +0 -29
  100. package/public/r/header-5.json +0 -30
  101. package/public/r/header.json +0 -40
  102. package/public/r/hero-1.json +0 -23
  103. package/public/r/hero-10.json +0 -24
  104. package/public/r/hero-11.json +0 -24
  105. package/public/r/hero-12.json +0 -22
  106. package/public/r/hero-13.json +0 -22
  107. package/public/r/hero-2.json +0 -24
  108. package/public/r/hero-3.json +0 -22
  109. package/public/r/hero-4.json +0 -25
  110. package/public/r/hero-5.json +0 -27
  111. package/public/r/hero-6.json +0 -27
  112. package/public/r/hero-7.json +0 -27
  113. package/public/r/hero-8.json +0 -22
  114. package/public/r/hero-9.json +0 -27
  115. package/public/r/hover-card-examples.json +0 -29
  116. package/public/r/hover-card.json +0 -37
  117. package/public/r/icon.json +0 -27
  118. package/public/r/init.json +0 -44
  119. package/public/r/input-examples.json +0 -97
  120. package/public/r/input-group-examples.json +0 -91
  121. package/public/r/input-group.json +0 -53
  122. package/public/r/input.json +0 -23
  123. package/public/r/item-examples.json +0 -74
  124. package/public/r/item.json +0 -71
  125. package/public/r/kbd-examples.json +0 -50
  126. package/public/r/kbd.json +0 -28
  127. package/public/r/label-examples.json +0 -24
  128. package/public/r/label.json +0 -23
  129. package/public/r/layout.json +0 -41
  130. package/public/r/links-2.json +0 -24
  131. package/public/r/logo.json +0 -33
  132. package/public/r/logos-1.json +0 -22
  133. package/public/r/logos-2.json +0 -23
  134. package/public/r/logos-3.json +0 -22
  135. package/public/r/marquee.json +0 -46
  136. package/public/r/native-select-examples.json +0 -38
  137. package/public/r/native-select.json +0 -36
  138. package/public/r/navigation-menu-examples.json +0 -26
  139. package/public/r/navigation-menu.json +0 -67
  140. package/public/r/pagination-examples.json +0 -35
  141. package/public/r/pagination.json +0 -59
  142. package/public/r/popover-examples.json +0 -42
  143. package/public/r/popover.json +0 -51
  144. package/public/r/price.json +0 -38
  145. package/public/r/pricing-1.json +0 -29
  146. package/public/r/pricing-2.json +0 -28
  147. package/public/r/pricing-3.json +0 -29
  148. package/public/r/product-1.json +0 -24
  149. package/public/r/products-1.json +0 -24
  150. package/public/r/products-2.json +0 -24
  151. package/public/r/products-3.json +0 -24
  152. package/public/r/products-4.json +0 -24
  153. package/public/r/products-5.json +0 -25
  154. package/public/r/progress-examples.json +0 -33
  155. package/public/r/progress.json +0 -23
  156. package/public/r/radio-group-examples.json +0 -50
  157. package/public/r/radio-group.json +0 -31
  158. package/public/r/rating.json +0 -26
  159. package/public/r/registry.json +0 -6959
  160. package/public/r/resizable-examples.json +0 -33
  161. package/public/r/resizable.json +0 -36
  162. package/public/r/reviews-1.json +0 -27
  163. package/public/r/reviews-2.json +0 -27
  164. package/public/r/reviews-3.json +0 -27
  165. package/public/r/reviews-4.json +0 -25
  166. package/public/r/reviews-5.json +0 -27
  167. package/public/r/section.json +0 -38
  168. package/public/r/select-examples.json +0 -53
  169. package/public/r/select.json +0 -62
  170. package/public/r/separator-examples.json +0 -38
  171. package/public/r/separator.json +0 -23
  172. package/public/r/services-1.json +0 -32
  173. package/public/r/services-2.json +0 -29
  174. package/public/r/services-3.json +0 -29
  175. package/public/r/services-4.json +0 -31
  176. package/public/r/services-5.json +0 -26
  177. package/public/r/services-6.json +0 -32
  178. package/public/r/services-7.json +0 -32
  179. package/public/r/sheet-examples.json +0 -37
  180. package/public/r/sheet.json +0 -66
  181. package/public/r/sidebar-1.json +0 -35
  182. package/public/r/sidebar-examples.json +0 -24
  183. package/public/r/sidebar.json +0 -146
  184. package/public/r/skeleton-examples.json +0 -49
  185. package/public/r/skeleton.json +0 -23
  186. package/public/r/slider-examples.json +0 -44
  187. package/public/r/slider.json +0 -26
  188. package/public/r/spinner-examples.json +0 -61
  189. package/public/r/spinner.json +0 -26
  190. package/public/r/switch-examples.json +0 -50
  191. package/public/r/switch.json +0 -26
  192. package/public/r/table-examples.json +0 -38
  193. package/public/r/table.json +0 -58
  194. package/public/r/tabs-examples.json +0 -47
  195. package/public/r/tabs.json +0 -46
  196. package/public/r/textarea-examples.json +0 -45
  197. package/public/r/textarea.json +0 -23
  198. package/public/r/theme-toggle.json +0 -34
  199. package/public/r/toast-examples.json +0 -29
  200. package/public/r/toast.json +0 -80
  201. package/public/r/toc.json +0 -43
  202. package/public/r/toggle-examples.json +0 -46
  203. package/public/r/toggle-group-examples.json +0 -57
  204. package/public/r/toggle-group.json +0 -34
  205. package/public/r/toggle.json +0 -31
  206. package/public/r/tooltip-examples.json +0 -43
  207. package/public/r/tooltip.json +0 -36
  208. package/public/r/typography.json +0 -103
  209. package/public/r/video.json +0 -23
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-1",
4
- "title": "CTA 1",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/rating",
10
- "@fulldev/section"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/cta-1.astro",
15
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Rating } from \"@/components/ui/rating\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof?: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n rating: number\n ratingLabel: string\n text: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n ...props\n} = Astro.props\n---\n\n<Section variant=\"floating\" class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8 items-center text-center\">\n {socialProof && (\n <div class=\"flex flex-col items-center gap-3\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-background size-11 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n </AvatarGroup>\n <div class=\"flex items-center gap-2\">\n <Rating\n value={socialProof.rating}\n aria-label={socialProof.ratingLabel}\n />\n <span class=\"text-muted-foreground text-sm\">{socialProof.text}</span>\n </div>\n </div>\n )}\n <div class=\"flex max-w-2xl flex-col items-center gap-5\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <SectionDescription>{description}</SectionDescription>\n </div>\n <div class=\"flex flex-wrap justify-center gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"secondary\"}\n >\n {label}\n </Button>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
16
- "type": "registry:block"
17
- }
18
- ],
19
- "docs": "https://ui.full.dev/blocks/cta/",
20
- "categories": [
21
- "cta"
22
- ],
23
- "type": "registry:block"
24
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-2",
4
- "title": "CTA 2",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/rating",
10
- "@fulldev/section"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/cta-2.astro",
15
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Rating } from \"@/components/ui/rating\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n rating: number\n ratingLabel: string\n text: string\n }\n image?: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n image = { src: PlaceholderImage, alt: \"\" },\n ...props\n} = Astro.props\n---\n\n<Section variant=\"floating\" class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"grid gap-12 lg:grid-cols-2 lg:items-center\">\n <div class=\"flex flex-col gap-6\">\n <div class=\"flex flex-col gap-4\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <p class=\"text-muted-foreground text-lg leading-relaxed\">\n {description}\n </p>\n </div>\n <div class=\"flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n <div class=\"flex items-center gap-3\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-background size-10 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n </AvatarGroup>\n <div class=\"flex flex-col gap-0.5\">\n <Rating\n value={socialProof.rating}\n aria-label={socialProof.ratingLabel}\n />\n <span class=\"text-muted-foreground text-xs\">{socialProof.text}</span>\n </div>\n </div>\n </div>\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[4/3] w-full rounded-xl border object-cover\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 80rem) 600px, (min-width: 64rem) 50vw, 100vw\"\n />\n </SectionContainer>\n</Section>\n",
16
- "type": "registry:block"
17
- },
18
- {
19
- "path": "src/assets/placeholder.svg",
20
- "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
21
- "type": "registry:file",
22
- "target": "src/assets/placeholder.svg"
23
- }
24
- ],
25
- "docs": "https://ui.full.dev/blocks/cta/",
26
- "categories": [
27
- "cta"
28
- ],
29
- "type": "registry:block"
30
- }
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-3",
4
- "title": "CTA 3",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/rating",
10
- "@fulldev/section"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/cta-3.astro",
15
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Rating } from \"@/components/ui/rating\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n rating: number\n ratingLabel: string\n text: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n ...props\n} = Astro.props\n---\n\n<Section\n variant=\"floating\"\n class={cn(\"bg-accent/50 shadow-none\", className)}\n {...props}\n>\n <SectionContainer class=\"grid gap-8 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center\">\n <div class=\"flex flex-col gap-5\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <p class=\"text-muted-foreground max-w-2xl text-lg leading-relaxed\">\n {description}\n </p>\n </div>\n <div class=\"flex flex-col gap-6 lg:items-end\">\n <div class=\"flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"secondary\"}\n >\n {label}\n </Button>\n ))}\n </div>\n <div class=\"flex items-center gap-3\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-background size-11 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n </AvatarGroup>\n <div class=\"flex flex-col gap-0.5\">\n <Rating\n value={socialProof.rating}\n aria-label={socialProof.ratingLabel}\n />\n <span class=\"text-muted-foreground text-xs\">{socialProof.text}</span>\n </div>\n </div>\n </div>\n </SectionContainer>\n</Section>\n",
16
- "type": "registry:block"
17
- }
18
- ],
19
- "docs": "https://ui.full.dev/blocks/cta/",
20
- "categories": [
21
- "cta"
22
- ],
23
- "type": "registry:block"
24
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-4",
4
- "title": "CTA 4",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/rating",
10
- "@fulldev/section"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/cta-4.astro",
15
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Rating } from \"@/components/ui/rating\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n rating: number\n ratingLabel: string\n text: string\n }\n image?: {\n src: ImageMetadata\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n image = { src: PlaceholderImage },\n ...props\n} = Astro.props\n---\n\n<Section\n variant=\"floating\"\n class={cn(\"dark bg-background text-foreground overflow-hidden\", className)}\n {...props}\n>\n <Image\n src={image.src}\n alt=\"\"\n class=\"absolute inset-0 size-full object-cover opacity-50\"\n widths={[640, 960, 1280, 1536]}\n sizes=\"(min-width: 80rem) 80rem, 100vw\"\n />\n <SectionContainer class=\"flex flex-col gap-8 items-center text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-5\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <SectionDescription>{description}</SectionDescription>\n </div>\n <div class=\"flex flex-wrap justify-center gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n <div class=\"flex items-center gap-3\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-background size-11 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n </AvatarGroup>\n <div class=\"flex flex-col gap-0.5\">\n <Rating\n value={socialProof.rating}\n aria-label={socialProof.ratingLabel}\n />\n <span class=\"text-muted-foreground text-sm\">{socialProof.text}</span>\n </div>\n </div>\n </SectionContainer>\n</Section>\n",
16
- "type": "registry:block"
17
- },
18
- {
19
- "path": "src/assets/placeholder.svg",
20
- "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
21
- "type": "registry:file",
22
- "target": "src/assets/placeholder.svg"
23
- }
24
- ],
25
- "docs": "https://ui.full.dev/blocks/cta/",
26
- "categories": [
27
- "cta"
28
- ],
29
- "type": "registry:block"
30
- }
@@ -1,31 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-5",
4
- "title": "CTA 5",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/button",
11
- "@fulldev/section"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/blocks/cta-5.astro",
16
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport { CheckIcon } from \"@lucide/astro\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n features: string[]\n buttons: {\n label: string\n href: string\n }[]\n image?: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n features,\n buttons,\n image = { src: PlaceholderImage, alt: \"\" },\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"grid gap-12 lg:grid-cols-2 lg:items-center\">\n <div class=\"flex flex-col gap-6\">\n <div class=\"flex flex-col gap-4\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <p class=\"text-muted-foreground text-lg leading-relaxed\">\n {description}\n </p>\n </div>\n {features.length > 0 && (\n <ul class=\"flex flex-col gap-3\">\n {features.map((feature) => (\n <li class=\"flex items-start gap-3 text-sm\">\n <CheckIcon class=\"text-primary mt-0.5 size-4 shrink-0\" />\n {feature}\n </li>\n ))}\n </ul>\n )}\n {buttons.length > 0 && (\n <div class=\"flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n )}\n </div>\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[4/3] w-full rounded-xl border object-cover\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 80rem) 600px, (min-width: 64rem) 50vw, 100vw\"\n />\n </SectionContainer>\n</Section>\n",
17
- "type": "registry:block"
18
- },
19
- {
20
- "path": "src/assets/placeholder.svg",
21
- "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
22
- "type": "registry:file",
23
- "target": "src/assets/placeholder.svg"
24
- }
25
- ],
26
- "docs": "https://ui.full.dev/blocks/cta/",
27
- "categories": [
28
- "cta"
29
- ],
30
- "type": "registry:block"
31
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-6",
4
- "title": "CTA 6",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/rating",
10
- "@fulldev/section"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/blocks/cta-6.astro",
15
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Rating } from \"@/components/ui/rating\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n rating: number\n ratingLabel: string\n text: string\n }\n image?: {\n src: ImageMetadata\n alt: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n image = { src: PlaceholderImage, alt: \"\" },\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"grid gap-12 lg:grid-cols-2 lg:items-center\">\n <Image\n src={image.src}\n alt={image.alt}\n class=\"aspect-[4/3] w-full rounded-xl border object-cover\"\n widths={[640, 960, 1280]}\n sizes=\"(min-width: 80rem) 600px, (min-width: 64rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-col gap-6\">\n <div class=\"flex flex-col gap-4\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <p class=\"text-muted-foreground text-lg leading-relaxed\">\n {description}\n </p>\n </div>\n <div class=\"flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n <div class=\"flex items-center gap-3\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-background size-10 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n </AvatarGroup>\n <div class=\"flex flex-col gap-0.5\">\n <Rating\n value={socialProof.rating}\n aria-label={socialProof.ratingLabel}\n />\n <span class=\"text-muted-foreground text-xs\">{socialProof.text}</span>\n </div>\n </div>\n </div>\n </SectionContainer>\n</Section>\n",
16
- "type": "registry:block"
17
- },
18
- {
19
- "path": "src/assets/placeholder.svg",
20
- "content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
21
- "type": "registry:file",
22
- "target": "src/assets/placeholder.svg"
23
- }
24
- ],
25
- "docs": "https://ui.full.dev/blocks/cta/",
26
- "categories": [
27
- "cta"
28
- ],
29
- "type": "registry:block"
30
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-7",
4
- "title": "CTA 7",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/button",
9
- "@fulldev/section"
10
- ],
11
- "files": [
12
- {
13
- "path": "src/components/blocks/cta-7.astro",
14
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarGroup,\n AvatarGroupCount,\n AvatarImage,\n} from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n socialProof: {\n avatars: {\n image?: ImageMetadata\n initials: string\n }[]\n count?: string | number\n text: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n socialProof,\n ...props\n} = Astro.props\n---\n\n<Section\n class={cn(\"bg-primary/10 border-primary/15 border-y\", className)}\n {...props}\n>\n <SectionContainer class=\"flex flex-col gap-8 items-center text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-5\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <SectionDescription class=\"text-foreground/80\">\n {description}\n </SectionDescription>\n </div>\n <div class=\"flex flex-wrap justify-center gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"secondary\"}\n >\n {label}\n </Button>\n ))}\n </div>\n <div class=\"flex flex-col items-center gap-4\">\n <AvatarGroup aria-hidden=\"true\">\n {socialProof.avatars.map((avatar) => (\n <Avatar class=\"ring-primary/10 bg-background size-11 ring\">\n <AvatarImage src={avatar.image} />\n <AvatarFallback>{avatar.initials}</AvatarFallback>\n </Avatar>\n ))}\n {socialProof.count != null && (\n <AvatarGroupCount class=\"bg-background text-foreground ring-primary/10 size-11 ring\">\n {socialProof.count}\n </AvatarGroupCount>\n )}\n </AvatarGroup>\n <span class=\"text-foreground/80 text-sm leading-snug\">\n {socialProof.text}\n </span>\n </div>\n </SectionContainer>\n</Section>\n",
15
- "type": "registry:block"
16
- }
17
- ],
18
- "docs": "https://ui.full.dev/blocks/cta/",
19
- "categories": [
20
- "cta"
21
- ],
22
- "type": "registry:block"
23
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-8",
4
- "title": "CTA 8",
5
- "description": "Call-to-action sections that close pages, bridge sections, or reinforce a launch moment.",
6
- "registryDependencies": [
7
- "@fulldev/button",
8
- "@fulldev/section"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/blocks/cta-8.astro",
13
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\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<Section\n variant=\"floating\"\n class={cn(\"border-primary/20 shadow-none\", className)}\n {...props}\n>\n <SectionContainer class=\"flex flex-col gap-8 before:from-primary/20 relative items-center before:absolute before:top-full before:left-1/2 before:-z-10 before:h-[200%] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-to-b before:to-transparent before:blur-3xl\">\n <div class=\"flex max-w-2xl flex-col items-center gap-5 text-center\">\n <SectionTitle class=\"leading-[1.1]\">{title}</SectionTitle>\n <SectionDescription>{description}</SectionDescription>\n </div>\n <div class=\"flex flex-wrap justify-center gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n size=\"lg\"\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
14
- "type": "registry:block"
15
- }
16
- ],
17
- "docs": "https://ui.full.dev/blocks/cta/",
18
- "categories": [
19
- "cta"
20
- ],
21
- "type": "registry:block"
22
- }
@@ -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
- }