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,33 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "resizable-examples",
4
- "title": "Resizable examples",
5
- "description": "The examples from the shadcn/ui Resizable docs.",
6
- "registryDependencies": [
7
- "@fulldev/resizable"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/examples/resizable/resizable-demo.astro",
12
- "content": "---\nimport {\n ResizableHandle,\n ResizablePanel,\n ResizablePanelGroup,\n} from \"@/components/ui/resizable\"\n---\n\n<ResizablePanelGroup direction=\"horizontal\" class=\"max-w-sm rounded-lg border\">\n <ResizablePanel defaultSize={50}>\n <div class=\"flex h-[200px] items-center justify-center p-6\">\n <span class=\"font-semibold\">One</span>\n </div>\n </ResizablePanel>\n <ResizableHandle withHandle />\n <ResizablePanel defaultSize={50}>\n <ResizablePanelGroup direction=\"vertical\">\n <ResizablePanel defaultSize={25}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Two</span>\n </div>\n </ResizablePanel>\n <ResizableHandle withHandle />\n <ResizablePanel defaultSize={75}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Three</span>\n </div>\n </ResizablePanel>\n </ResizablePanelGroup>\n </ResizablePanel>\n</ResizablePanelGroup>\n",
13
- "type": "registry:component"
14
- },
15
- {
16
- "path": "src/components/examples/resizable/resizable-handle.astro",
17
- "content": "---\nimport {\n ResizableHandle,\n ResizablePanel,\n ResizablePanelGroup,\n} from \"@/components/ui/resizable\"\n---\n\n<ResizablePanelGroup\n direction=\"horizontal\"\n class=\"min-h-[200px] max-w-sm rounded-lg border\"\n>\n <ResizablePanel defaultSize={25}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Sidebar</span>\n </div>\n </ResizablePanel>\n <ResizableHandle withHandle />\n <ResizablePanel defaultSize={75}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Content</span>\n </div>\n </ResizablePanel>\n</ResizablePanelGroup>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/resizable/resizable-rtl.astro",
22
- "content": "---\nimport {\n ResizableHandle,\n ResizablePanel,\n ResizablePanelGroup,\n} from \"@/components/ui/resizable\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n one: \"One\",\n two: \"Two\",\n three: \"Three\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n one: \"واحد\",\n two: \"اثنان\",\n three: \"ثلاثة\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n one: \"אחד\",\n two: \"שניים\",\n three: \"שלושה\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<ResizablePanelGroup\n direction=\"horizontal\"\n class=\"max-w-sm rounded-lg border\"\n dir={dir}\n>\n <ResizablePanel defaultSize={50}>\n <div class=\"flex h-[200px] items-center justify-center p-6\">\n <span class=\"font-semibold\">{t.one}</span>\n </div>\n </ResizablePanel>\n <ResizableHandle withHandle />\n <ResizablePanel defaultSize={50}>\n <ResizablePanelGroup direction=\"vertical\" dir={dir}>\n <ResizablePanel defaultSize={25}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">{t.two}</span>\n </div>\n </ResizablePanel>\n <ResizableHandle withHandle />\n <ResizablePanel defaultSize={75}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">{t.three}</span>\n </div>\n </ResizablePanel>\n </ResizablePanelGroup>\n </ResizablePanel>\n</ResizablePanelGroup>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/resizable/resizable-vertical.astro",
27
- "content": "---\nimport {\n ResizableHandle,\n ResizablePanel,\n ResizablePanelGroup,\n} from \"@/components/ui/resizable\"\n---\n\n<ResizablePanelGroup\n direction=\"vertical\"\n class=\"min-h-[200px] max-w-sm rounded-lg border\"\n>\n <ResizablePanel defaultSize={25}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Header</span>\n </div>\n </ResizablePanel>\n <ResizableHandle />\n <ResizablePanel defaultSize={75}>\n <div class=\"flex h-full items-center justify-center p-6\">\n <span class=\"font-semibold\">Content</span>\n </div>\n </ResizablePanel>\n</ResizablePanelGroup>\n",
28
- "type": "registry:component"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/resizable/",
32
- "type": "registry:example"
33
- }
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "resizable",
4
- "title": "Resizable",
5
- "description": "Accessible panel groups with pointer and keyboard resizing.",
6
- "dependencies": [
7
- "@data-slot/resizable@^1.1.2"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/resizable/index.ts",
12
- "content": "export { default as Resizable } from \"./resizable.astro\"\nexport { default as ResizablePanelGroup } from \"./resizable.astro\"\nexport { default as ResizablePanel } from \"./resizable-panel.astro\"\nexport { default as ResizableHandle } from \"./resizable-handle.astro\"\n",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/resizable/resizable-handle.astro",
17
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n withHandle?: boolean\n disabled?: boolean\n}\n\nconst { class: className, withHandle, disabled, ...props } = Astro.props\n---\n\n<div\n role=\"separator\"\n data-slot=\"resizable-handle\"\n data-disabled={disabled ? \"true\" : undefined}\n class={cn(\n \"bg-border ring-offset-background focus-visible:ring-ring data-active:bg-ring relative flex w-px shrink-0 items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:top-1/2 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&[aria-orientation=horizontal]>div]:rotate-90\",\n className\n )}\n {...props}\n>\n {withHandle && (\n <div\n data-slot=\"resizable-handle-indicator\"\n aria-hidden=\"true\"\n class=\"bg-border h-6 w-1 rounded-lg z-10 flex shrink-0\"\n />\n )}\n</div>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/resizable/resizable-panel.astro",
22
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultSize?: number\n minSize?: number\n maxSize?: number\n collapsible?: boolean\n collapsedSize?: number\n}\n\nconst {\n class: className,\n defaultSize,\n minSize,\n maxSize,\n collapsible,\n collapsedSize,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"resizable-panel\"\n data-default-size={defaultSize}\n data-min-size={minSize}\n data-max-size={maxSize}\n data-collapsible={collapsible}\n data-collapsed-size={collapsedSize}\n class={cn(\"min-h-0 min-w-0\", className)}\n {...props}\n>\n <slot />\n</div>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/resizable/resizable.astro",
27
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n direction?: \"horizontal\" | \"vertical\"\n keyboardResizeBy?: number\n}\n\nconst {\n class: className,\n direction = \"horizontal\",\n keyboardResizeBy,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"resizable\"\n data-direction={direction}\n data-keyboard-resize-by={keyboardResizeBy}\n class={cn(\n \"group/resizable flex h-full w-full data-[direction=vertical]:flex-col\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/resizable\"\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",
28
- "type": "registry:ui"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/resizable/",
32
- "categories": [
33
- "ui"
34
- ],
35
- "type": "registry:ui"
36
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "reviews-1",
4
- "title": "Reviews 1",
5
- "description": "Testimonial and review sections for social proof, trust, and product validation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/avatar",
11
- "@fulldev/card",
12
- "@fulldev/rating",
13
- "@fulldev/section"
14
- ],
15
- "files": [
16
- {
17
- "path": "src/components/blocks/reviews-1.astro",
18
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport QuoteIcon from \"@lucide/astro/icons/quote\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Card, CardContent } from \"@/components/ui/card\"\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 reviews: {\n rating: number\n ratingLabel: string\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n }[]\n}\n\nconst { class: className, title, description, reviews, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-4 text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </SectionContainer>\n <SectionContainer>\n <div class=\"grid gap-6 md:grid-cols-3\">\n {reviews.map((item) => (\n <Card>\n <CardContent class=\"flex flex-1 flex-col\">\n <figure class=\"flex flex-1 flex-col gap-4\">\n <div class=\"flex items-center justify-between\">\n <Rating value={item.rating} aria-label={item.ratingLabel} />\n <QuoteIcon class=\"text-muted-foreground/20 size-6\" />\n </div>\n <blockquote class=\"text-muted-foreground text-sm leading-relaxed\">\n <p>{item.quote}</p>\n </blockquote>\n <figcaption class=\"mt-auto flex items-center gap-3 pt-2\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={item.image} />\n <AvatarFallback>{item.initials}</AvatarFallback>\n </Avatar>\n <div>\n <p class=\"text-foreground text-sm font-medium\">{item.name}</p>\n <p class=\"text-muted-foreground text-xs\">{item.role}</p>\n </div>\n </figcaption>\n </figure>\n </CardContent>\n </Card>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
19
- "type": "registry:block"
20
- }
21
- ],
22
- "docs": "https://ui.full.dev/blocks/reviews/",
23
- "categories": [
24
- "reviews"
25
- ],
26
- "type": "registry:block"
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "reviews-2",
4
- "title": "Reviews 2",
5
- "description": "Testimonial and review sections for social proof, trust, and product validation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/avatar",
11
- "@fulldev/rating",
12
- "@fulldev/section",
13
- "@fulldev/separator"
14
- ],
15
- "files": [
16
- {
17
- "path": "src/components/blocks/reviews-2.astro",
18
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport QuoteIcon from \"@lucide/astro/icons/quote\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Rating } from \"@/components/ui/rating\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n featured: {\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n }\n reviews: {\n rating: number\n ratingLabel: string\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n }[]\n}\n\nconst { class: className, featured, reviews, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"grid gap-10 lg:grid-cols-[minmax(0,1.3fr)_minmax(0,1fr)] lg:items-start\">\n <figure class=\"flex flex-col gap-6 rounded-xl border p-8\">\n <QuoteIcon class=\"text-primary size-8\" />\n <blockquote class=\"text-foreground text-2xl leading-snug font-semibold text-balance sm:text-3xl\">\n <p>{featured.quote}</p>\n </blockquote>\n <figcaption class=\"flex items-center gap-3 pt-2\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={featured.image} />\n <AvatarFallback>{featured.initials}</AvatarFallback>\n </Avatar>\n <div>\n <p class=\"text-foreground text-sm font-medium\">{featured.name}</p>\n <p class=\"text-muted-foreground text-xs\">{featured.role}</p>\n </div>\n </figcaption>\n </figure>\n <div class=\"grid gap-6\">\n {reviews.map((item) => (\n <div class=\"flex flex-col\">\n <Separator />\n <figure class=\"flex flex-col gap-3 pt-6\">\n <Rating value={item.rating} aria-label={item.ratingLabel} />\n <blockquote class=\"text-muted-foreground text-sm leading-relaxed\">\n <p>{item.quote}</p>\n </blockquote>\n <figcaption class=\"flex items-center gap-3 pt-1\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={item.image} />\n <AvatarFallback>{item.initials}</AvatarFallback>\n </Avatar>\n <div>\n <p class=\"text-foreground text-sm font-medium\">{item.name}</p>\n <p class=\"text-muted-foreground text-xs\">{item.role}</p>\n </div>\n </figcaption>\n </figure>\n </div>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
19
- "type": "registry:block"
20
- }
21
- ],
22
- "docs": "https://ui.full.dev/blocks/reviews/",
23
- "categories": [
24
- "reviews"
25
- ],
26
- "type": "registry:block"
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "reviews-3",
4
- "title": "Reviews 3",
5
- "description": "Testimonial and review sections for social proof, trust, and product validation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/avatar",
11
- "@fulldev/carousel",
12
- "@fulldev/rating",
13
- "@fulldev/section"
14
- ],
15
- "files": [
16
- {
17
- "path": "src/components/blocks/reviews-3.astro",
18
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\nimport QuoteIcon from \"@lucide/astro/icons/quote\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport {\n Carousel,\n CarouselContent,\n CarouselItem,\n CarouselNext,\n CarouselPrevious,\n} from \"@/components/ui/carousel\"\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 labels: {\n previous: string\n next: string\n carousel: string\n slide: string\n }\n reviews: {\n rating: number\n ratingLabel: string\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n labels,\n reviews,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-4 text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </SectionContainer>\n <SectionContainer>\n <Carousel\n aria-label={title}\n aria-roledescription={labels.carousel}\n opts={{ loop: true }}\n class=\"mx-auto w-[calc(100%-6rem)] max-w-3xl\"\n >\n <CarouselContent>\n {reviews.map((item) => (\n <CarouselItem aria-roledescription={labels.slide}>\n <figure class=\"flex flex-col items-center gap-6 px-4 py-8 text-center\">\n <QuoteIcon class=\"text-primary size-10\" />\n <Rating value={item.rating} aria-label={item.ratingLabel} />\n <blockquote class=\"text-foreground text-xl leading-relaxed font-medium text-balance sm:text-2xl\">\n <p>{item.quote}</p>\n </blockquote>\n <figcaption class=\"flex items-center gap-3 pt-2\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={item.image} />\n <AvatarFallback>{item.initials}</AvatarFallback>\n </Avatar>\n <div class=\"text-left\">\n <p class=\"text-foreground text-sm font-medium\">{item.name}</p>\n <p class=\"text-muted-foreground text-xs\">{item.role}</p>\n </div>\n </figcaption>\n </figure>\n </CarouselItem>\n ))}\n </CarouselContent>\n <CarouselPrevious>\n <ChevronLeftIcon aria-hidden=\"true\" />\n <span class=\"sr-only\">{labels.previous}</span>\n </CarouselPrevious>\n <CarouselNext>\n <ChevronRightIcon aria-hidden=\"true\" />\n <span class=\"sr-only\">{labels.next}</span>\n </CarouselNext>\n </Carousel>\n </SectionContainer>\n</Section>\n",
19
- "type": "registry:block"
20
- }
21
- ],
22
- "docs": "https://ui.full.dev/blocks/reviews/",
23
- "categories": [
24
- "reviews"
25
- ],
26
- "type": "registry:block"
27
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "reviews-4",
4
- "title": "Reviews 4",
5
- "description": "Testimonial and review sections for social proof, trust, and product validation.",
6
- "registryDependencies": [
7
- "@fulldev/avatar",
8
- "@fulldev/card",
9
- "@fulldev/marquee",
10
- "@fulldev/rating",
11
- "@fulldev/section"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/blocks/reviews-4.astro",
16
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Card, CardContent } from \"@/components/ui/card\"\nimport {\n Marquee,\n MarqueeContent,\n MarqueeItem,\n MarqueeToggle,\n} from \"@/components/ui/marquee\"\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 labels: {\n play: string\n pause: string\n }\n reviews: {\n rating: number\n ratingLabel: string\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n labels,\n reviews,\n ...props\n} = Astro.props\n\nconst half = Math.ceil(reviews.length / 2)\nconst rows = [reviews.slice(0, half), reviews.slice(half)]\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-4 text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </SectionContainer>\n <Marquee class=\"flex flex-col gap-6\">\n <SectionContainer class=\"flex justify-end\">\n <MarqueeToggle playLabel={labels.play} pauseLabel={labels.pause} />\n </SectionContainer>\n {rows\n .filter((row) => row.length > 0)\n .map((row, index) => (\n <MarqueeContent reverse={index % 2 === 1} class=\"py-1\">\n {row.map((item) => (\n <MarqueeItem class=\"flex\">\n <Card class=\"w-[22rem]\">\n <CardContent class=\"flex flex-1 flex-col\">\n <figure class=\"flex flex-1 flex-col gap-3\">\n <Rating value={item.rating} aria-label={item.ratingLabel} />\n <blockquote class=\"text-muted-foreground text-sm leading-relaxed\">\n <p>{item.quote}</p>\n </blockquote>\n <figcaption class=\"mt-auto flex items-center gap-3 pt-1\">\n <Avatar aria-hidden=\"true\">\n <AvatarImage src={item.image} />\n <AvatarFallback>{item.initials}</AvatarFallback>\n </Avatar>\n <div>\n <p class=\"text-foreground text-sm font-medium\">\n {item.name}\n </p>\n <p class=\"text-muted-foreground text-xs\">{item.role}</p>\n </div>\n </figcaption>\n </figure>\n </CardContent>\n </Card>\n </MarqueeItem>\n ))}\n </MarqueeContent>\n ))}\n </Marquee>\n</Section>\n",
17
- "type": "registry:block"
18
- }
19
- ],
20
- "docs": "https://ui.full.dev/blocks/reviews/",
21
- "categories": [
22
- "reviews"
23
- ],
24
- "type": "registry:block"
25
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "reviews-5",
4
- "title": "Reviews 5",
5
- "description": "Testimonial and review sections for social proof, trust, and product validation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/avatar",
11
- "@fulldev/marquee",
12
- "@fulldev/rating",
13
- "@fulldev/section"
14
- ],
15
- "files": [
16
- {
17
- "path": "src/components/blocks/reviews-5.astro",
18
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport QuoteIcon from \"@lucide/astro/icons/quote\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport {\n Marquee,\n MarqueeContent,\n MarqueeItem,\n MarqueeToggle,\n} from \"@/components/ui/marquee\"\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 labels: {\n play: string\n pause: string\n }\n reviews: {\n quote: string\n image?: ImageMetadata\n initials: string\n name: string\n role: string\n rating: number\n ratingLabel: string\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n labels,\n reviews,\n ...props\n} = Astro.props\n\nconst third = Math.ceil(reviews.length / 3)\nconst rows = [\n reviews.slice(0, third),\n reviews.slice(third, third * 2),\n reviews.slice(third * 2),\n]\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-4 text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </SectionContainer>\n <Marquee class=\"flex flex-col gap-5\">\n <SectionContainer class=\"flex justify-end\">\n <MarqueeToggle playLabel={labels.play} pauseLabel={labels.pause} />\n </SectionContainer>\n {rows\n .filter((row) => row.length > 0)\n .map((row, index) => (\n <MarqueeContent reverse={index % 2 === 1} class=\"py-1\">\n {row.map((item) => (\n <MarqueeItem class=\"flex\">\n <figure class=\"bg-muted/50 flex w-[26rem] flex-col gap-4 rounded-2xl p-6\">\n <figcaption class=\"flex items-center justify-between gap-3\">\n <div class=\"flex items-center gap-3\">\n <Avatar size=\"lg\" aria-hidden=\"true\">\n <AvatarImage src={item.image} />\n <AvatarFallback>{item.initials}</AvatarFallback>\n </Avatar>\n <div>\n <p class=\"text-foreground text-sm font-semibold\">\n {item.name}\n </p>\n <p class=\"text-muted-foreground text-xs\">{item.role}</p>\n </div>\n </div>\n <Rating value={item.rating} aria-label={item.ratingLabel} />\n </figcaption>\n <div class=\"flex gap-2.5\">\n <QuoteIcon class=\"text-primary/30 mt-0.5 size-5 shrink-0\" />\n <blockquote class=\"text-foreground/80 text-sm leading-relaxed\">\n <p>{item.quote}</p>\n </blockquote>\n </div>\n </figure>\n </MarqueeItem>\n ))}\n </MarqueeContent>\n ))}\n </Marquee>\n</Section>\n",
19
- "type": "registry:block"
20
- }
21
- ],
22
- "docs": "https://ui.full.dev/blocks/reviews/",
23
- "categories": [
24
- "reviews"
25
- ],
26
- "type": "registry:block"
27
- }
@@ -1,38 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "section",
4
- "title": "Section",
5
- "description": "A layout component for organizing page content into sections.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/section/section.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"section\"> & VariantProps<typeof variants>\n\nconst variants = cva(\"gap-16 py-[var(--section-padding,--spacing(16))] relative flex scroll-mt-12 flex-col\", {\n variants: {\n variant: {\n default: \"w-full bg-background\",\n floating:\n \"my-16 rounded-xl border bg-background shadow-md mx-auto w-[calc(100%-2*var(--gutter,--spacing(4)))] max-w-[calc(var(--container,var(--container-7xl))-2*var(--gutter,--spacing(4)))] overflow-hidden\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\nconst {\n class: className,\n variant = \"default\",\n \"data-slot\": dataSlot = \"section\",\n ...props\n} = Astro.props\n---\n\n<section\n class={cn(variants({ variant }), className)}\n data-slot={dataSlot}\n data-variant={variant}\n {...props}\n>\n <slot />\n</section>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/section/section-container.astro",
14
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"section-container\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n class={cn(\n \"relative mx-auto w-full max-w-[var(--container,var(--container-7xl))] px-[var(--gutter,--spacing(4))]\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/section/index.ts",
19
- "content": "export { default as Section } from \"./section.astro\"\nexport { default as SectionContainer } from \"./section-container.astro\"\nexport { default as SectionDescription } from \"./section-description.astro\"\nexport { default as SectionTitle } from \"./section-title.astro\"\n",
20
- "type": "registry:ui"
21
- },
22
- {
23
- "path": "src/components/ui/section/section-title.astro",
24
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props<Tag extends HTMLTag = \"h2\"> = Polymorphic<{ as: Tag }>\n\nconst { as: Tag = \"h2\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"section-title\"\n class={cn(\n \"text-3xl font-semibold tracking-tight sm:text-4xl font-heading text-foreground text-balance\",\n className\n )}\n {...props}\n>\n <slot />\n</Tag>\n",
25
- "type": "registry:ui"
26
- },
27
- {
28
- "path": "src/components/ui/section/section-description.astro",
29
- "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=\"section-description\"\n class={cn(\n \"text-lg leading-relaxed text-muted-foreground text-balance\",\n className\n )}\n {...props}\n>\n <slot />\n</p>\n",
30
- "type": "registry:ui"
31
- }
32
- ],
33
- "docs": "https://ui.full.dev/components/section/",
34
- "categories": [
35
- "ui"
36
- ],
37
- "type": "registry:ui"
38
- }
@@ -1,53 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "select-examples",
4
- "title": "Select examples",
5
- "description": "The examples from the shadcn/ui Select docs.",
6
- "dependencies": [
7
- "@data-slot/select"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/field",
11
- "@fulldev/select",
12
- "@fulldev/switch"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/examples/select/select-align-item.astro",
17
- "content": "---\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\nimport { Switch } from \"@/components/ui/switch\"\n\nconst items = [\n { label: \"Select a fruit\", value: null },\n { label: \"Apple\", value: \"apple\" },\n { label: \"Banana\", value: \"banana\" },\n { label: \"Blueberry\", value: \"blueberry\" },\n { label: \"Grapes\", value: \"grapes\" },\n { label: \"Pineapple\", value: \"pineapple\" },\n]\n---\n\n<FieldGroup class=\"w-full max-w-xs\" data-select-align-item>\n <Field orientation=\"horizontal\">\n <FieldContent>\n <FieldLabel for=\"align-item\">Align Item</FieldLabel>\n <FieldDescription>\n Toggle to align the item with the trigger.\n </FieldDescription>\n </FieldContent>\n <Switch id=\"align-item\" defaultChecked />\n </Field>\n <Field>\n <Select placeholder=\"Select a fruit\" defaultValue=\"banana\">\n <SelectTrigger>\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {items.map((item) => (\n <SelectItem value={item.value ?? \"\"}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n</FieldGroup>\n\n<script>\n import { createSelect } from \"@data-slot/select\"\n\n // Data Slot reads the position when it binds, so rebind on a toggle.\n const initialize = () => {\n for (const root of document.querySelectorAll(\"[data-select-align-item]\")) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n const select = root.querySelector('[data-slot=\"select\"]')\n root\n .querySelector('[data-slot=\"switch\"]')\n ?.addEventListener(\"switch:change\", (event) => {\n if (!select) return\n const { checked } = (event as CustomEvent<{ checked: boolean }>)\n .detail\n const current = createSelect(select)\n const value = current.value ?? undefined\n current.destroy()\n createSelect(select, {\n defaultValue: value,\n position: checked ? \"item-aligned\" : \"popper\",\n })\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/select/select-demo.astro",
22
- "content": "---\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst items = [\n { label: \"Select a fruit\", value: null },\n { label: \"Apple\", value: \"apple\" },\n { label: \"Banana\", value: \"banana\" },\n { label: \"Blueberry\", value: \"blueberry\" },\n { label: \"Grapes\", value: \"grapes\" },\n { label: \"Pineapple\", value: \"pineapple\" },\n]\n---\n\n<Select placeholder=\"Select a fruit\" class=\"w-full max-w-48\">\n <SelectTrigger class=\"w-full max-w-48\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n <SelectLabel>Fruits</SelectLabel>\n {items.map((item) => (\n <SelectItem value={item.value ?? \"\"}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n</Select>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/select/select-disabled.astro",
27
- "content": "---\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst items = [\n { label: \"Select a fruit\", value: null },\n { label: \"Apple\", value: \"apple\" },\n { label: \"Banana\", value: \"banana\" },\n { label: \"Blueberry\", value: \"blueberry\" },\n { label: \"Grapes\", value: \"grapes\", disabled: true },\n { label: \"Pineapple\", value: \"pineapple\" },\n]\n---\n\n<Select placeholder=\"Select a fruit\" disabled class=\"w-full max-w-48\">\n <SelectTrigger class=\"w-full max-w-48\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {items.map((item) => (\n <SelectItem value={item.value ?? \"\"} disabled={item.disabled}>\n {item.label}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n</Select>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/select/select-groups.astro",
32
- "content": "---\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst fruits = [\n { label: \"Apple\", value: \"apple\" },\n { label: \"Banana\", value: \"banana\" },\n { label: \"Blueberry\", value: \"blueberry\" },\n]\nconst vegetables = [\n { label: \"Carrot\", value: \"carrot\" },\n { label: \"Broccoli\", value: \"broccoli\" },\n { label: \"Spinach\", value: \"spinach\" },\n]\n---\n\n<Select placeholder=\"Select a fruit\" class=\"w-full max-w-48\">\n <SelectTrigger class=\"w-full max-w-48\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n <SelectLabel>Fruits</SelectLabel>\n {fruits.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectSeparator />\n <SelectGroup>\n <SelectLabel>Vegetables</SelectLabel>\n {vegetables.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n</Select>\n",
33
- "type": "registry:component"
34
- },
35
- {
36
- "path": "src/components/examples/select/select-invalid.astro",
37
- "content": "---\nimport { Field, FieldError, FieldLabel } from \"@/components/ui/field\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst items = [\n { label: \"Select a fruit\", value: null },\n { label: \"Apple\", value: \"apple\" },\n { label: \"Banana\", value: \"banana\" },\n { label: \"Blueberry\", value: \"blueberry\" },\n]\n---\n\n<Field data-invalid class=\"w-full max-w-48\">\n <FieldLabel>Fruit</FieldLabel>\n <Select placeholder=\"Select a fruit\">\n <SelectTrigger aria-invalid=\"true\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {items.map((item) => (\n <SelectItem value={item.value ?? \"\"}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n <FieldError>Please select a fruit.</FieldError>\n</Field>\n",
38
- "type": "registry:component"
39
- },
40
- {
41
- "path": "src/components/examples/select/select-rtl.astro",
42
- "content": "---\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n selectFruit: \"Select a fruit\",\n fruits: \"Fruits\",\n apple: \"Apple\",\n banana: \"Banana\",\n blueberry: \"Blueberry\",\n grapes: \"Grapes\",\n pineapple: \"Pineapple\",\n vegetables: \"Vegetables\",\n carrot: \"Carrot\",\n broccoli: \"Broccoli\",\n spinach: \"Spinach\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n selectFruit: \"اختر فاكهة\",\n fruits: \"الفواكه\",\n apple: \"تفاح\",\n banana: \"موز\",\n blueberry: \"توت أزرق\",\n grapes: \"عنب\",\n pineapple: \"أناناس\",\n vegetables: \"الخضروات\",\n carrot: \"جزر\",\n broccoli: \"بروكلي\",\n spinach: \"سبانخ\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n selectFruit: \"בחר פרי\",\n fruits: \"פירות\",\n apple: \"תפוח\",\n banana: \"בננה\",\n blueberry: \"אוכמניה\",\n grapes: \"ענבים\",\n pineapple: \"אננס\",\n vegetables: \"ירקות\",\n carrot: \"גזר\",\n broccoli: \"ברוקולי\",\n spinach: \"תרד\",\n },\n },\n}\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n\nconst fruits = [\n { label: t.apple, value: \"apple\" },\n { label: t.banana, value: \"banana\" },\n { label: t.blueberry, value: \"blueberry\" },\n { label: t.grapes, value: \"grapes\" },\n { label: t.pineapple, value: \"pineapple\" },\n]\n\nconst vegetables = [\n { label: t.carrot, value: \"carrot\" },\n { label: t.broccoli, value: \"broccoli\" },\n { label: t.spinach, value: \"spinach\" },\n]\n---\n\n<Select placeholder={t.selectFruit}>\n <SelectTrigger class=\"w-32\" dir={dir}>\n <SelectValue />\n </SelectTrigger>\n <SelectContent dir={dir} data-lang={dir === \"rtl\" ? language : undefined}>\n <SelectGroup>\n <SelectLabel>{t.fruits}</SelectLabel>\n {fruits.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectSeparator />\n <SelectGroup>\n <SelectLabel>{t.vegetables}</SelectLabel>\n {vegetables.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n</Select>\n",
43
- "type": "registry:component"
44
- },
45
- {
46
- "path": "src/components/examples/select/select-scrollable.astro",
47
- "content": "---\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst northAmerica = [\n { label: \"Eastern Standard Time\", value: \"est\" },\n { label: \"Central Standard Time\", value: \"cst\" },\n { label: \"Mountain Standard Time\", value: \"mst\" },\n { label: \"Pacific Standard Time\", value: \"pst\" },\n { label: \"Alaska Standard Time\", value: \"akst\" },\n { label: \"Hawaii Standard Time\", value: \"hst\" },\n]\n\nconst europeAfrica = [\n { label: \"Greenwich Mean Time\", value: \"gmt\" },\n { label: \"Central European Time\", value: \"cet\" },\n { label: \"Eastern European Time\", value: \"eet\" },\n { label: \"Western European Summer Time\", value: \"west\" },\n { label: \"Central Africa Time\", value: \"cat\" },\n { label: \"East Africa Time\", value: \"eat\" },\n]\n\nconst asia = [\n { label: \"Moscow Time\", value: \"msk\" },\n { label: \"India Standard Time\", value: \"ist\" },\n { label: \"China Standard Time\", value: \"cst_china\" },\n { label: \"Japan Standard Time\", value: \"jst\" },\n { label: \"Korea Standard Time\", value: \"kst\" },\n { label: \"Indonesia Central Standard Time\", value: \"ist_indonesia\" },\n]\n\nconst australiaPacific = [\n { label: \"Australian Western Standard Time\", value: \"awst\" },\n { label: \"Australian Central Standard Time\", value: \"acst\" },\n { label: \"Australian Eastern Standard Time\", value: \"aest\" },\n { label: \"New Zealand Standard Time\", value: \"nzst\" },\n { label: \"Fiji Time\", value: \"fjt\" },\n]\n\nconst southAmerica = [\n { label: \"Argentina Time\", value: \"art\" },\n { label: \"Bolivia Time\", value: \"bot\" },\n { label: \"Brasilia Time\", value: \"brt\" },\n { label: \"Chile Standard Time\", value: \"clt\" },\n]\n---\n\n<Select placeholder=\"Select a timezone\" class=\"w-full max-w-64\">\n <SelectTrigger class=\"w-full max-w-64\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n <SelectLabel>North America</SelectLabel>\n {northAmerica.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectGroup>\n <SelectLabel>Europe & Africa</SelectLabel>\n {europeAfrica.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectGroup>\n <SelectLabel>Asia</SelectLabel>\n {asia.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectGroup>\n <SelectLabel>Australia & Pacific</SelectLabel>\n {australiaPacific.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n <SelectGroup>\n <SelectLabel>South America</SelectLabel>\n {southAmerica.map((item) => (\n <SelectItem value={item.value}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n</Select>\n",
48
- "type": "registry:component"
49
- }
50
- ],
51
- "docs": "https://ui.full.dev/components/select/",
52
- "type": "registry:example"
53
- }
@@ -1,62 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "select",
4
- "title": "Select",
5
- "description": "Displays a list of options for the user to pick from, triggered by a button.",
6
- "dependencies": [
7
- "@data-slot/select@^1.1.2",
8
- "@lucide/astro"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/ui/select/select.astro",
13
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { Align, Position, Side } from \"@data-slot/select\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n mountStrategy?: \"lazy\" | \"eager\"\n defaultValue?: string\n defaultOpen?: boolean\n placeholder?: string\n disabled?: boolean\n required?: boolean\n name?: string\n position?: Position\n side?: Side\n align?: Align\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n highlightItemOnHover?: boolean\n lockScroll?: boolean\n}\n\nconst {\n mountStrategy,\n class: className,\n defaultValue,\n defaultOpen,\n placeholder,\n disabled,\n required,\n name,\n position,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n highlightItemOnHover,\n lockScroll,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"select\"\n data-mount-strategy={mountStrategy}\n data-default-value={defaultValue}\n data-default-open={defaultOpen}\n data-placeholder={placeholder}\n data-disabled={disabled}\n data-required={required}\n data-name={name}\n data-position={position}\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-avoid-collisions={avoidCollisions}\n data-collision-padding={collisionPadding}\n data-highlight-item-on-hover={highlightItemOnHover}\n data-lock-scroll={lockScroll}\n class={cn(\n \"group/select relative inline-flex w-fit flex-col gap-1.5\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/select\"\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",
14
- "type": "registry:ui"
15
- },
16
- {
17
- "path": "src/components/ui/select/select-trigger.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"button\"> & {\n size?: \"sm\" | \"default\"\n showIcon?: boolean\n}\n\nconst {\n class: className,\n type = \"button\",\n size = \"default\",\n showIcon = true,\n ...props\n} = Astro.props\n---\n\n<button\n data-slot=\"select-trigger\"\n data-size={size}\n type={type}\n class={cn(\n \"border-input data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n {...props}\n>\n <slot />\n {showIcon && (\n <ChevronDownIcon class=\"text-muted-foreground size-4 pointer-events-none\" />\n )}\n</button>\n",
19
- "type": "registry:ui"
20
- },
21
- {
22
- "path": "src/components/ui/select/select-value.astro",
23
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"select-value\"\n class={cn(\"flex flex-1 text-left\", className)}\n {...props}\n>\n <slot />\n</span>\n",
24
- "type": "registry:ui"
25
- },
26
- {
27
- "path": "src/components/ui/select/select-content.astro",
28
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { Align, Position, Side } from \"@data-slot/select\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n position?: Position\n side?: Side\n align?: Align\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n}\n\nconst {\n class: className,\n hidden = true,\n position,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"select-portal\">\n <div\n data-slot=\"select-positioner\"\n data-position={position}\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-avoid-collisions={avoidCollisions}\n data-collision-padding={collisionPadding}\n class=\"isolate z-[1000]\"\n >\n <div\n data-slot=\"select-content\"\n data-position={position}\n data-align-trigger={position === \"item-aligned\" ? \"true\" : undefined}\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-avoid-collisions={avoidCollisions}\n data-collision-padding={collisionPadding}\n hidden={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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-md shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 relative isolate z-[1000] max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-[align-trigger=true]:animate-none\",\n className\n )}\n {...props}\n >\n <div\n data-slot=\"select-viewport\"\n data-position={position}\n class=\"max-h-[min(24rem,calc(100svh-2rem))] overflow-y-auto data-[position=item-aligned]:w-full data-[position=popper]:min-w-36\"\n >\n <slot />\n </div>\n </div>\n </div>\n</div>\n",
29
- "type": "registry:ui"
30
- },
31
- {
32
- "path": "src/components/ui/select/select-group.astro",
33
- "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=\"select-group\"\n class={cn(\"scroll-my-1 p-1\", className)}\n {...props}\n>\n <slot />\n</div>\n",
34
- "type": "registry:ui"
35
- },
36
- {
37
- "path": "src/components/ui/select/select-label.astro",
38
- "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=\"select-label\"\n class={cn(\"text-muted-foreground px-2 py-1.5 text-xs\", className)}\n {...props}\n>\n <slot />\n</div>\n",
39
- "type": "registry:ui"
40
- },
41
- {
42
- "path": "src/components/ui/select/select-item.astro",
43
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport CheckIcon from \"@lucide/astro/icons/check\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n value?: string\n disabled?: boolean\n label?: string\n}\n\nconst { class: className, value, disabled, label, ...props } = Astro.props\n---\n\n<div\n data-slot=\"select-item\"\n data-value={value}\n data-disabled={disabled ? \"true\" : undefined}\n data-label={label}\n class={cn(\n \"data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:data-[slot=select-item-text]:flex *:data-[slot=select-item-text]:items-center *:data-[slot=select-item-text]:gap-2 group/select-item data-highlighted:**:[svg]:text-accent-foreground relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 *:data-[slot=select-item-text]:shrink-0 *:data-[slot=select-item-text]:whitespace-nowrap [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className\n )}\n {...props}\n>\n <span\n data-slot=\"select-item-text\"\n class=\"flex flex-1 gap-2 shrink-0 items-center whitespace-nowrap\"\n >\n <slot />\n </span>\n <span\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center opacity-0 group-data-selected/select-item:opacity-100\"\n >\n <CheckIcon />\n </span>\n</div>\n",
44
- "type": "registry:ui"
45
- },
46
- {
47
- "path": "src/components/ui/select/select-separator.astro",
48
- "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=\"select-separator\"\n class={cn(\"bg-border -mx-1 my-1 h-px pointer-events-none\", className)}\n {...props}\n></div>\n",
49
- "type": "registry:ui"
50
- },
51
- {
52
- "path": "src/components/ui/select/index.ts",
53
- "content": "export { default as Select } from \"./select.astro\"\nexport { default as SelectContent } from \"./select-content.astro\"\nexport { default as SelectGroup } from \"./select-group.astro\"\nexport { default as SelectItem } from \"./select-item.astro\"\nexport { default as SelectLabel } from \"./select-label.astro\"\nexport { default as SelectSeparator } from \"./select-separator.astro\"\nexport { default as SelectTrigger } from \"./select-trigger.astro\"\nexport { default as SelectValue } from \"./select-value.astro\"\n",
54
- "type": "registry:ui"
55
- }
56
- ],
57
- "docs": "https://ui.full.dev/components/select/",
58
- "categories": [
59
- "ui"
60
- ],
61
- "type": "registry:ui"
62
- }
@@ -1,38 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "separator-examples",
4
- "title": "Separator examples",
5
- "description": "The examples from the shadcn/ui Separator docs.",
6
- "registryDependencies": [
7
- "@fulldev/separator"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/examples/separator/separator-demo.astro",
12
- "content": "---\nimport { Separator } from \"@/components/ui/separator\"\n---\n\n<div class=\"flex max-w-sm flex-col gap-4 text-sm\">\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"leading-none font-medium\">shadcn/ui</div>\n <div class=\"text-muted-foreground\">\n The Foundation for your Design System\n </div>\n </div>\n <Separator />\n <div>\n A set of beautifully designed components that you can customize, extend, and\n build on.\n </div>\n</div>\n",
13
- "type": "registry:component"
14
- },
15
- {
16
- "path": "src/components/examples/separator/separator-list.astro",
17
- "content": "---\nimport { Separator } from \"@/components/ui/separator\"\n---\n\n<div class=\"flex w-full max-w-sm flex-col gap-2 text-sm\">\n <dl class=\"flex items-center justify-between\">\n <dt>Item 1</dt>\n <dd class=\"text-muted-foreground\">Value 1</dd>\n </dl>\n <Separator />\n <dl class=\"flex items-center justify-between\">\n <dt>Item 2</dt>\n <dd class=\"text-muted-foreground\">Value 2</dd>\n </dl>\n <Separator />\n <dl class=\"flex items-center justify-between\">\n <dt>Item 3</dt>\n <dd class=\"text-muted-foreground\">Value 3</dd>\n </dl>\n</div>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/separator/separator-menu.astro",
22
- "content": "---\nimport { Separator } from \"@/components/ui/separator\"\n---\n\n<div class=\"flex items-center gap-2 text-sm md:gap-4\">\n <div class=\"flex flex-col gap-1\">\n <span class=\"font-medium\">Settings</span>\n <span class=\"text-xs text-muted-foreground\">Manage preferences</span>\n </div>\n <Separator orientation=\"vertical\" />\n <div class=\"flex flex-col gap-1\">\n <span class=\"font-medium\">Account</span>\n <span class=\"text-xs text-muted-foreground\">Profile & security</span>\n </div>\n <Separator orientation=\"vertical\" class=\"hidden md:block\" />\n <div class=\"hidden flex-col gap-1 md:flex\">\n <span class=\"font-medium\">Help</span>\n <span class=\"text-xs text-muted-foreground\">Support & docs</span>\n </div>\n</div>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/separator/separator-rtl.astro",
27
- "content": "---\nimport { Separator } from \"@/components/ui/separator\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n title: \"shadcn/ui\",\n subtitle: \"The Foundation for your Design System\",\n description:\n \"A set of beautifully designed components that you can customize, extend, and build on.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n title: \"shadcn/ui\",\n subtitle: \"الأساس لنظام التصميم الخاص بك\",\n description:\n \"مجموعة من المكونات المصممة بشكل جميل يمكنك تخصيصها وتوسيعها والبناء عليها.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n title: \"shadcn/ui\",\n subtitle: \"הבסיס למערכת העיצוב שלך\",\n description:\n \"סט של רכיבים מעוצבים בצורה יפה שאתה יכול להתאים אישית, להרחיב ולבנות עליהם.\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"flex max-w-sm flex-col gap-4 text-sm\" dir={dir}>\n <div class=\"flex flex-col gap-1.5\">\n <div class=\"leading-none font-medium\">{t.title}</div>\n <div class=\"text-muted-foreground\">{t.subtitle}</div>\n </div>\n <Separator />\n <div>{t.description}</div>\n</div>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/separator/separator-vertical.astro",
32
- "content": "---\nimport { Separator } from \"@/components/ui/separator\"\n---\n\n<div class=\"flex h-5 items-center gap-4 text-sm\">\n <div>Blog</div>\n <Separator orientation=\"vertical\" />\n <div>Docs</div>\n <Separator orientation=\"vertical\" />\n <div>Source</div>\n</div>\n",
33
- "type": "registry:component"
34
- }
35
- ],
36
- "docs": "https://ui.full.dev/components/separator/",
37
- "type": "registry:example"
38
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "separator",
4
- "title": "Separator",
5
- "description": "Visually or semantically separates content.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/separator/separator.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n orientation?: \"horizontal\" | \"vertical\"\n decorative?: boolean\n}\n\nconst {\n class: className,\n orientation = \"horizontal\",\n decorative = true,\n \"data-slot\": dataSlot = \"separator\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n data-orientation={orientation}\n data-horizontal={orientation === \"horizontal\" ? \"\" : undefined}\n data-vertical={orientation === \"vertical\" ? \"\" : undefined}\n role={decorative ? \"none\" : \"separator\"}\n aria-orientation={decorative ? undefined : orientation}\n class={cn(\n \"bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch\",\n className\n )}\n {...props}\n></div>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/separator/index.ts",
14
- "content": "export { default as Separator } from \"./separator.astro\"\n",
15
- "type": "registry:ui"
16
- }
17
- ],
18
- "docs": "https://ui.full.dev/components/separator/",
19
- "categories": [
20
- "ui"
21
- ],
22
- "type": "registry:ui"
23
- }
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "services-1",
4
- "title": "Services 1",
5
- "description": "Service section layouts for agencies, consultancies, and internal platform teams.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/badge",
11
- "@fulldev/button",
12
- "@fulldev/section"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/blocks/services-1.astro",
17
- "content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\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 badge: string\n title: string\n buttons: {\n label: string\n href: string\n }[]\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n label: string\n title: string\n description: string\n href?: string\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n buttons,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-4 md:flex-row md:items-end md:justify-between\">\n <div class=\"max-w-2xl\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <SectionTitle class=\"mt-4\">{title}</SectionTitle>\n </div>\n <div class=\"flex flex-wrap gap-3\">\n {buttons.map(({ href, label }) => (\n <Button as=\"a\" href={href} variant=\"outline\">\n {label}\n </Button>\n ))}\n </div>\n </div>\n <div class=\"grid gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n {services.map((service) => {\n const Wrapper = service.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={service.href}\n class={cn(\n \"group/service flex flex-col gap-4 overflow-hidden rounded-xl border shadow-xs\",\n service.href != null && \"transition-shadow hover:shadow-md\"\n )}\n >\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class=\"aspect-[4/3] w-full object-cover\"\n widths={[320, 480, 640]}\n sizes=\"(min-width: 80rem) 294px, (min-width: 64rem) 25vw, (min-width: 40rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-1 flex-col gap-2 px-5 pb-5\">\n <span class=\"text-primary text-xs font-medium\">\n {service.label}\n </span>\n <h3 class=\"text-base font-medium\">{service.title}</h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {service.description}\n </p>\n {service.href != null && (\n <span class=\"mt-auto pt-2\">\n <ArrowRightIcon class=\"text-muted-foreground size-4 transition-transform group-hover/service:translate-x-1\" />\n </span>\n )}\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
18
- "type": "registry:block"
19
- },
20
- {
21
- "path": "src/assets/placeholder.svg",
22
- "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",
23
- "type": "registry:file",
24
- "target": "src/assets/placeholder.svg"
25
- }
26
- ],
27
- "docs": "https://ui.full.dev/blocks/services/",
28
- "categories": [
29
- "services"
30
- ],
31
- "type": "registry:block"
32
- }