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,38 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "native-select-examples",
4
- "title": "Native Select examples",
5
- "description": "The examples from the shadcn/ui Native Select docs.",
6
- "registryDependencies": [
7
- "@fulldev/native-select"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/examples/native-select/native-select-demo.astro",
12
- "content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect>\n <NativeSelectOption value=\"\">Select status</NativeSelectOption>\n <NativeSelectOption value=\"todo\">Todo</NativeSelectOption>\n <NativeSelectOption value=\"in-progress\">In Progress</NativeSelectOption>\n <NativeSelectOption value=\"done\">Done</NativeSelectOption>\n <NativeSelectOption value=\"cancelled\">Cancelled</NativeSelectOption>\n</NativeSelect>\n",
13
- "type": "registry:component"
14
- },
15
- {
16
- "path": "src/components/examples/native-select/native-select-disabled.astro",
17
- "content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect disabled>\n <NativeSelectOption value=\"\">Disabled</NativeSelectOption>\n <NativeSelectOption value=\"apple\">Apple</NativeSelectOption>\n <NativeSelectOption value=\"banana\">Banana</NativeSelectOption>\n <NativeSelectOption value=\"blueberry\">Blueberry</NativeSelectOption>\n</NativeSelect>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/native-select/native-select-groups.astro",
22
- "content": "---\nimport {\n NativeSelect,\n NativeSelectOptGroup,\n NativeSelectOption,\n} from \"@/components/ui/native-select\"\n---\n\n<NativeSelect>\n <NativeSelectOption value=\"\">Select department</NativeSelectOption>\n <NativeSelectOptGroup label=\"Engineering\">\n <NativeSelectOption value=\"frontend\">Frontend</NativeSelectOption>\n <NativeSelectOption value=\"backend\">Backend</NativeSelectOption>\n <NativeSelectOption value=\"devops\">DevOps</NativeSelectOption>\n </NativeSelectOptGroup>\n <NativeSelectOptGroup label=\"Sales\">\n <NativeSelectOption value=\"sales-rep\">Sales Rep</NativeSelectOption>\n <NativeSelectOption value=\"account-manager\">\n Account Manager\n </NativeSelectOption>\n <NativeSelectOption value=\"sales-director\">\n Sales Director\n </NativeSelectOption>\n </NativeSelectOptGroup>\n <NativeSelectOptGroup label=\"Operations\">\n <NativeSelectOption value=\"support\">Customer Support</NativeSelectOption>\n <NativeSelectOption value=\"product-manager\">\n Product Manager\n </NativeSelectOption>\n <NativeSelectOption value=\"ops-manager\">\n Operations Manager\n </NativeSelectOption>\n </NativeSelectOptGroup>\n</NativeSelect>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/native-select/native-select-invalid.astro",
27
- "content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect aria-invalid=\"true\">\n <NativeSelectOption value=\"\">Error state</NativeSelectOption>\n <NativeSelectOption value=\"apple\">Apple</NativeSelectOption>\n <NativeSelectOption value=\"banana\">Banana</NativeSelectOption>\n <NativeSelectOption value=\"blueberry\">Blueberry</NativeSelectOption>\n</NativeSelect>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/native-select/native-select-rtl.astro",
32
- "content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n placeholder: \"Select status\",\n todo: \"Todo\",\n inProgress: \"In Progress\",\n done: \"Done\",\n cancelled: \"Cancelled\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n placeholder: \"اختر الحالة\",\n todo: \"مهام\",\n inProgress: \"قيد التنفيذ\",\n done: \"منجز\",\n cancelled: \"ملغي\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n placeholder: \"בחר סטטוס\",\n todo: \"לעשות\",\n inProgress: \"בתהליך\",\n done: \"הושלם\",\n cancelled: \"בוטל\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<NativeSelect dir={dir}>\n <NativeSelectOption value=\"\">{t.placeholder}</NativeSelectOption>\n <NativeSelectOption value=\"todo\">{t.todo}</NativeSelectOption>\n <NativeSelectOption value=\"in-progress\">{t.inProgress}</NativeSelectOption>\n <NativeSelectOption value=\"done\">{t.done}</NativeSelectOption>\n <NativeSelectOption value=\"cancelled\">{t.cancelled}</NativeSelectOption>\n</NativeSelect>\n",
33
- "type": "registry:component"
34
- }
35
- ],
36
- "docs": "https://ui.full.dev/components/native-select/",
37
- "type": "registry:example"
38
- }
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "native-select",
4
- "title": "Native Select",
5
- "description": "A styled native HTML select element with consistent design system integration.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/native-select/native-select.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"select\">, \"size\"> & {\n size?: \"sm\" | \"default\"\n}\n\nconst { class: className, size = \"default\", multiple, ...props } = Astro.props\n\n// Astro renders `multiple` as `multiple=\"true\"` or `multiple=\"false\"`, and both\n// enable it. Render the bare attribute only when it is set.\n---\n\n<div\n class={cn(\n \"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n className\n )}\n data-slot=\"native-select-wrapper\"\n data-size={size}\n>\n <select\n data-slot=\"native-select\"\n data-size={size}\n multiple={multiple ? \"\" : undefined}\n class=\"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-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 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8 outline-none disabled:pointer-events-none disabled:cursor-not-allowed\"\n {...props}\n >\n <slot />\n </select>\n <ChevronDownIcon\n class=\"text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2 pointer-events-none absolute select-none\"\n aria-hidden=\"true\"\n data-slot=\"native-select-icon\"\n />\n</div>\n",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/native-select/native-select-option.astro",
17
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"option\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<option\n data-slot=\"native-select-option\"\n class={cn(\"bg-[Canvas] text-[CanvasText]\", className)}\n {...props}\n>\n <slot />\n</option>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/native-select/native-select-optgroup.astro",
22
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"optgroup\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<optgroup\n data-slot=\"native-select-optgroup\"\n class={cn(\"bg-[Canvas] text-[CanvasText]\", className)}\n {...props}\n>\n <slot />\n</optgroup>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/native-select/index.ts",
27
- "content": "export { default as NativeSelect } from \"./native-select.astro\"\nexport { default as NativeSelectOption } from \"./native-select-option.astro\"\nexport { default as NativeSelectOptGroup } from \"./native-select-optgroup.astro\"\n",
28
- "type": "registry:ui"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/native-select/",
32
- "categories": [
33
- "ui"
34
- ],
35
- "type": "registry:ui"
36
- }
@@ -1,26 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "navigation-menu-examples",
4
- "title": "Navigation Menu examples",
5
- "description": "The examples from the shadcn/ui Navigation Menu docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/navigation-menu"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/examples/navigation-menu/navigation-menu-demo.astro",
15
- "content": "---\nimport CircleAlertIcon from \"@lucide/astro/icons/circle-alert\"\nimport CircleCheckIcon from \"@lucide/astro/icons/circle-check\"\nimport CircleDashedIcon from \"@lucide/astro/icons/circle-dashed\"\n\nimport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n} from \"@/components/ui/navigation-menu\"\n\nconst gettingStarted = [\n {\n title: \"Introduction\",\n href: \"/docs\",\n description: \"Re-usable components built with Tailwind CSS.\",\n },\n {\n title: \"Installation\",\n href: \"/docs/installation\",\n description: \"How to install dependencies and structure your app.\",\n },\n {\n title: \"Typography\",\n href: \"https://ui.shadcn.com/docs/typeset\",\n description: \"Styles for headings, paragraphs, lists...etc\",\n },\n]\n\nconst components: { title: string; href: string; description: string }[] = [\n {\n title: \"Alert Dialog\",\n href: \"https://ui.shadcn.com/docs/components/base/alert-dialog\",\n description:\n \"A modal dialog that interrupts the user with important content and expects a response.\",\n },\n {\n title: \"Hover Card\",\n href: \"https://ui.shadcn.com/docs/components/base/hover-card\",\n description:\n \"For sighted users to preview content available behind a link.\",\n },\n {\n title: \"Progress\",\n href: \"https://ui.shadcn.com/docs/components/base/progress\",\n description:\n \"Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.\",\n },\n {\n title: \"Scroll-area\",\n href: \"https://ui.shadcn.com/docs/components/base/scroll-area\",\n description: \"Visually or semantically separates content.\",\n },\n {\n title: \"Tabs\",\n href: \"https://ui.shadcn.com/docs/components/base/tabs\",\n description:\n \"A set of layered sections of content, known as tab panels, that are displayed one at a time.\",\n },\n {\n title: \"Tooltip\",\n href: \"https://ui.shadcn.com/docs/components/base/tooltip\",\n description:\n \"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\",\n },\n]\n---\n\n<NavigationMenu>\n <NavigationMenuList>\n <NavigationMenuItem value=\"getting-started\">\n <NavigationMenuTrigger>Getting started</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"w-96\">\n {gettingStarted.map((item) => (\n <li>\n <NavigationMenuLink href={item.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{item.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {item.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"components\" class=\"hidden md:flex\">\n <NavigationMenuTrigger>Components</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"grid w-[400px] gap-2 md:w-[500px] md:grid-cols-2 lg:w-[600px]\">\n {components.map((component) => (\n <li>\n <NavigationMenuLink href={component.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{component.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {component.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"with-icon\">\n <NavigationMenuTrigger>With Icon</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"grid w-[200px]\">\n <li>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleAlertIcon />\n Backlog\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleDashedIcon />\n To Do\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleCheckIcon />\n Done\n </NavigationMenuLink>\n </li>\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"docs\">\n <NavigationMenuLink href=\"/docs\" class={navigationMenuTriggerStyle()}>\n Docs\n </NavigationMenuLink>\n </NavigationMenuItem>\n </NavigationMenuList>\n</NavigationMenu>\n",
16
- "type": "registry:component"
17
- },
18
- {
19
- "path": "src/components/examples/navigation-menu/navigation-menu-rtl.astro",
20
- "content": "---\nimport CircleAlertIcon from \"@lucide/astro/icons/circle-alert\"\nimport CircleCheckIcon from \"@lucide/astro/icons/circle-check\"\nimport CircleDashedIcon from \"@lucide/astro/icons/circle-dashed\"\n\nimport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n} from \"@/components/ui/navigation-menu\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n gettingStarted: \"Getting started\",\n introduction: \"Introduction\",\n introductionDesc: \"Re-usable components built with Tailwind CSS.\",\n installation: \"Installation\",\n installationDesc: \"How to install dependencies and structure your app.\",\n typography: \"Typography\",\n typographyDesc: \"Styles for headings, paragraphs, lists...etc\",\n components: \"Components\",\n alertDialog: \"Alert Dialog\",\n alertDialogDesc:\n \"A modal dialog that interrupts the user with important content and expects a response.\",\n hoverCard: \"Hover Card\",\n hoverCardDesc:\n \"For sighted users to preview content available behind a link.\",\n progress: \"Progress\",\n progressDesc:\n \"Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.\",\n scrollArea: \"Scroll-area\",\n scrollAreaDesc: \"Visually or semantically separates content.\",\n tabs: \"Tabs\",\n tabsDesc:\n \"A set of layered sections of content, known as tab panels, that are displayed one at a time.\",\n tooltip: \"Tooltip\",\n tooltipDesc:\n \"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\",\n withIcon: \"With Icon\",\n backlog: \"Backlog\",\n toDo: \"To Do\",\n done: \"Done\",\n docs: \"Docs\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n gettingStarted: \"البدء\",\n introduction: \"مقدمة\",\n introductionDesc:\n \"مكونات قابلة لإعادة الاستخدام مبنية باستخدام Tailwind CSS.\",\n installation: \"التثبيت\",\n installationDesc: \"كيفية تثبيت التبعيات وتنظيم تطبيقك.\",\n typography: \"الطباعة\",\n typographyDesc: \"أنماط للعناوين والفقرات والقوائم...إلخ\",\n components: \"المكونات\",\n alertDialog: \"حوار التنبيه\",\n alertDialogDesc: \"حوار نافذة يقطع المستخدم بمحتوى مهم ويتوقع استجابة.\",\n hoverCard: \"بطاقة التحويم\",\n hoverCardDesc: \"للمستخدمين المبصرين لمعاينة المحتوى المتاح خلف الرابط.\",\n progress: \"التقدم\",\n progressDesc:\n \"يعرض مؤشرًا يوضح تقدم إتمام المهمة، عادةً يتم عرضه كشريط تقدم.\",\n scrollArea: \"منطقة التمرير\",\n scrollAreaDesc: \"يفصل المحتوى بصريًا أو دلاليًا.\",\n tabs: \"التبويبات\",\n tabsDesc:\n \"مجموعة من أقسام المحتوى المتعددة الطبقات، المعروفة بألواح التبويب، التي يتم عرضها واحدة في كل مرة.\",\n tooltip: \"تلميح\",\n tooltipDesc:\n \"نافذة منبثقة تعرض معلومات متعلقة بعنصر عندما يتلقى العنصر التركيز على لوحة المفاتيح أو عند تحويم الماوس فوقه.\",\n withIcon: \"مع أيقونة\",\n backlog: \"قائمة الانتظار\",\n toDo: \"المهام\",\n done: \"منجز\",\n docs: \"الوثائق\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n gettingStarted: \"התחלה\",\n introduction: \"הקדמה\",\n introductionDesc: \"רכיבים לשימוש חוזר שנבנו עם Tailwind CSS.\",\n installation: \"התקנה\",\n installationDesc: \"כיצד להתקין תלויות ולבנות את האפליקציה שלך.\",\n typography: \"טיפוגרפיה\",\n typographyDesc: \"סגנונות לכותרות, פסקאות, רשימות...וכו'\",\n components: \"רכיבים\",\n alertDialog: \"דיאלוג התראה\",\n alertDialogDesc: \"דיאלוג מודאלי שמפריע למשתמש עם תוכן חשוב ומצפה לתגובה.\",\n hoverCard: \"כרטיס ריחוף\",\n hoverCardDesc:\n \"למשתמשים רואים כדי להציג תצוגה מקדימה של תוכן זמין מאחורי קישור.\",\n progress: \"התקדמות\",\n progressDesc:\n \"מציג אינדיקטור המציג את התקדמות ההשלמה של משימה, בדרך כלל מוצג כסרגל התקדמות.\",\n scrollArea: \"אזור גלילה\",\n scrollAreaDesc: \"מפריד תוכן חזותית או סמנטית.\",\n tabs: \"כרטיסיות\",\n tabsDesc:\n \"קבוצה של חלקי תוכן מרובדים, המכונים לוחות כרטיסיות, המוצגים אחד בכל פעם.\",\n tooltip: \"טולטיפ\",\n tooltipDesc:\n \"חלון קופץ המציג מידע הקשור לאלמנט כאשר האלמנט מקבל מיקוד מקלדת או כאשר העכבר מרחף מעליו.\",\n withIcon: \"עם אייקון\",\n backlog: \"רשימת המתנה\",\n toDo: \"לעשות\",\n done: \"הושלם\",\n docs: \"תיעוד\",\n },\n },\n} as const\n\nconst components = [\n {\n titleKey: \"alertDialog\",\n descriptionKey: \"alertDialogDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/alert-dialog\",\n },\n {\n titleKey: \"hoverCard\",\n descriptionKey: \"hoverCardDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/hover-card\",\n },\n {\n titleKey: \"progress\",\n descriptionKey: \"progressDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/progress\",\n },\n {\n titleKey: \"scrollArea\",\n descriptionKey: \"scrollAreaDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/scroll-area\",\n },\n {\n titleKey: \"tabs\",\n descriptionKey: \"tabsDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/tabs\",\n },\n {\n titleKey: \"tooltip\",\n descriptionKey: \"tooltipDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/tooltip\",\n },\n] as const\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n\nconst gettingStarted = [\n { title: t.introduction, href: \"/docs\", description: t.introductionDesc },\n {\n title: t.installation,\n href: \"/docs/installation\",\n description: t.installationDesc,\n },\n {\n title: t.typography,\n href: \"https://ui.shadcn.com/docs/typeset\",\n description: t.typographyDesc,\n },\n]\n---\n\n<NavigationMenu dir={dir} align={dir === \"rtl\" ? \"end\" : \"start\"}>\n <NavigationMenuList>\n <NavigationMenuItem value=\"getting-started\">\n <NavigationMenuTrigger>{t.gettingStarted}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"w-96\">\n {gettingStarted.map((item) => (\n <li>\n <NavigationMenuLink href={item.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{item.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {item.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"components\" class=\"hidden md:flex\">\n <NavigationMenuTrigger>{t.components}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"grid w-[400px] gap-2 md:w-[500px] md:grid-cols-2 lg:w-[600px]\">\n {components.map((component) => (\n <li>\n <NavigationMenuLink href={component.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">\n {t[component.titleKey]}\n </div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {t[component.descriptionKey]}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"with-icon\">\n <NavigationMenuTrigger>{t.withIcon}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"grid w-[200px]\">\n <li>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleAlertIcon />\n {t.backlog}\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleDashedIcon />\n {t.toDo}\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleCheckIcon />\n {t.done}\n </NavigationMenuLink>\n </li>\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"docs\">\n <NavigationMenuLink\n href=\"/docs\"\n class={navigationMenuTriggerStyle()}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n {t.docs}\n </NavigationMenuLink>\n </NavigationMenuItem>\n </NavigationMenuList>\n</NavigationMenu>\n",
21
- "type": "registry:component"
22
- }
23
- ],
24
- "docs": "https://ui.full.dev/components/navigation-menu/",
25
- "type": "registry:example"
26
- }
@@ -1,67 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "navigation-menu",
4
- "title": "Navigation Menu",
5
- "description": "A collection of links for navigating websites.",
6
- "dependencies": [
7
- "@data-slot/navigation-menu@^1.1.2",
8
- "@lucide/astro"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/ui/navigation-menu/navigation-menu.astro",
13
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport NavigationMenuPositioner from \"./navigation-menu-positioner.astro\"\n\ntype Props = HTMLAttributes<\"nav\"> & {\n mountStrategy?: \"lazy\" | \"eager\"\n delayOpen?: number\n delayClose?: number\n openOnFocus?: boolean\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n align?: \"start\" | \"center\" | \"end\"\n sideOffset?: number\n alignOffset?: number\n positionMethod?: \"absolute\" | \"fixed\"\n safeTriangle?: boolean\n debugSafeTriangle?: boolean\n}\n\nconst {\n mountStrategy,\n class: className = \"\",\n delayOpen = 0,\n delayClose = 0,\n openOnFocus,\n side = \"bottom\",\n align = \"start\",\n sideOffset = 8,\n alignOffset = 0,\n positionMethod = \"absolute\",\n safeTriangle,\n debugSafeTriangle,\n \"aria-label\": ariaLabel = \"Main\",\n ...props\n} = Astro.props\n---\n\n<nav\n {...props}\n aria-label={ariaLabel}\n data-slot=\"navigation-menu\"\n data-mount-strategy={mountStrategy}\n data-delay-open={delayOpen}\n data-delay-close={delayClose}\n data-open-on-focus={openOnFocus}\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-position-method={positionMethod}\n data-safe-triangle={safeTriangle}\n data-debug-safe-triangle={debugSafeTriangle}\n class={cn(\n \"max-w-max group/navigation-menu relative flex flex-1 items-center justify-center\",\n className\n )}\n>\n <slot />\n <NavigationMenuPositioner {side} {sideOffset} {align} {alignOffset} />\n</nav>\n\n<script>\n import { create } from \"@data-slot/navigation-menu\"\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/navigation-menu/navigation-menu-content.astro",
18
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = {\n class?: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n} & HTMLAttributes<\"div\">\n\nconst {\n class: className = \"\",\n hidden = true,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<div\n {...props}\n data-slot=\"navigation-menu-content\"\n hidden={hidden}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 h-full w-auto transition-[opacity,transform,translate] duration-[0.35s] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]\",\n className\n )}\n>\n <slot />\n</div>\n",
19
- "type": "registry:ui"
20
- },
21
- {
22
- "path": "src/components/ui/navigation-menu/navigation-menu-item.astro",
23
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"li\"> & {\n value: string\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n}\n\nconst {\n class: className,\n value,\n align,\n alignOffset,\n side,\n sideOffset,\n ...props\n} = Astro.props\n---\n\n<li\n data-slot=\"navigation-menu-item\"\n data-value={value}\n data-align={align}\n data-align-offset={alignOffset}\n data-side={side}\n data-side-offset={sideOffset}\n class={cn(\"relative list-none\", className)}\n {...props}\n>\n <slot />\n</li>\n",
24
- "type": "registry:ui"
25
- },
26
- {
27
- "path": "src/components/ui/navigation-menu/navigation-menu-link.astro",
28
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n active?: boolean\n}\n\nconst {\n class: className,\n active,\n \"aria-current\": ariaCurrent = active ? \"page\" : undefined,\n ...props\n} = Astro.props\n---\n\n<a\n data-slot=\"navigation-menu-link\"\n data-active={active ? \"true\" : undefined}\n aria-current={ariaCurrent}\n class={cn(\"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-md p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 in-data-[slot=navigation-menu-content]:rounded-sm\", className)}\n {...props}\n>\n <slot />\n</a>\n",
29
- "type": "registry:ui"
30
- },
31
- {
32
- "path": "src/components/ui/navigation-menu/navigation-menu-list.astro",
33
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"ul\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<ul\n data-slot=\"navigation-menu-list\"\n class={cn(\n \"gap-0 group relative flex flex-1 list-none items-center justify-center\",\n className\n )}\n {...props}\n>\n <slot />\n</ul>\n",
34
- "type": "registry:ui"
35
- },
36
- {
37
- "path": "src/components/ui/navigation-menu/navigation-menu-indicator.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=\"navigation-menu-indicator\"\n data-state=\"hidden\"\n class={cn(\n \"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in absolute top-full left-(--indicator-left) z-1 flex h-1.5 w-(--indicator-width) items-end justify-center overflow-hidden data-[state=hidden]:invisible\",\n className\n )}\n {...props}\n>\n <div class=\"bg-border rounded-tl-sm shadow-md relative top-[60%] h-2 w-2 rotate-45\"></div>\n</div>\n",
39
- "type": "registry:ui"
40
- },
41
- {
42
- "path": "src/components/ui/navigation-menu/navigation-menu-trigger.astro",
43
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport navigationMenuTriggerStyle from \"./navigation-menu-trigger-style\"\n\ntype Props = HTMLAttributes<\"button\">\n\nconst { class: className, type = \"button\", ...props } = Astro.props\n---\n\n<button\n data-slot=\"navigation-menu-trigger\"\n type={type}\n class={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n>\n <slot />{\" \"}\n <ChevronDownIcon\n class=\"relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-[state=open]/navigation-menu-trigger:rotate-180\"\n aria-hidden=\"true\"\n />\n</button>\n",
44
- "type": "registry:ui"
45
- },
46
- {
47
- "path": "src/components/ui/navigation-menu/navigation-menu-trigger-style.ts",
48
- "content": "import { cva } from \"class-variance-authority\"\n\nconst navigationMenuTriggerStyle = cva(\n \"hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-md px-4 py-2 text-sm font-medium transition-all focus-visible:ring-3 focus-visible:outline-1 disabled:opacity-50 group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center outline-none disabled:pointer-events-none data-[state=open]:bg-muted/50 data-[state=open]:hover:bg-muted data-[state=open]:focus:bg-muted\"\n)\n\nexport default navigationMenuTriggerStyle\n",
49
- "type": "registry:ui"
50
- },
51
- {
52
- "path": "src/components/ui/navigation-menu/navigation-menu-positioner.astro",
53
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n sideOffset?: number\n align?: \"start\" | \"center\" | \"end\"\n alignOffset?: number\n}\n\nconst {\n class: className,\n side = \"bottom\",\n sideOffset = 8,\n align = \"start\",\n alignOffset = 0,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"navigation-menu-portal\">\n <div\n {...props}\n data-slot=\"navigation-menu-positioner\"\n data-side={side}\n data-side-offset={sideOffset}\n data-align={align}\n data-align-offset={alignOffset}\n class={cn(\n \"isolate z-[1000] h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0\",\n className\n )}\n >\n <div\n data-slot=\"navigation-menu-popup\"\n hidden\n class=\"bg-popover text-popover-foreground ring-foreground/10 rounded-lg shadow ring-1 ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0 relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] data-ending-style:ease-[ease]\"\n >\n <div\n data-slot=\"navigation-menu-viewport\"\n hidden\n class=\"relative size-full overflow-hidden\"\n ></div>\n </div>\n </div>\n</div>\n",
54
- "type": "registry:ui"
55
- },
56
- {
57
- "path": "src/components/ui/navigation-menu/index.ts",
58
- "content": "export { default as NavigationMenu } from \"./navigation-menu.astro\"\nexport { default as NavigationMenuContent } from \"./navigation-menu-content.astro\"\nexport { default as NavigationMenuIndicator } from \"./navigation-menu-indicator.astro\"\nexport { default as NavigationMenuItem } from \"./navigation-menu-item.astro\"\nexport { default as NavigationMenuLink } from \"./navigation-menu-link.astro\"\nexport { default as NavigationMenuList } from \"./navigation-menu-list.astro\"\nexport { default as NavigationMenuPositioner } from \"./navigation-menu-positioner.astro\"\nexport { default as NavigationMenuTrigger } from \"./navigation-menu-trigger.astro\"\nexport { default as navigationMenuTriggerStyle } from \"./navigation-menu-trigger-style\"\n",
59
- "type": "registry:ui"
60
- }
61
- ],
62
- "docs": "https://ui.full.dev/components/navigation-menu/",
63
- "categories": [
64
- "ui"
65
- ],
66
- "type": "registry:ui"
67
- }
@@ -1,35 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "pagination-examples",
4
- "title": "Pagination examples",
5
- "description": "The examples from the shadcn/ui Pagination docs.",
6
- "registryDependencies": [
7
- "@fulldev/field",
8
- "@fulldev/pagination",
9
- "@fulldev/select"
10
- ],
11
- "files": [
12
- {
13
- "path": "src/components/examples/pagination/pagination-demo.astro",
14
- "content": "---\nimport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n} from \"@/components/ui/pagination\"\n---\n\n<Pagination>\n <PaginationContent>\n <PaginationItem>\n <PaginationPrevious href=\"#\" />\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">1</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\" isActive>\n 2\n </PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">3</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n <PaginationItem>\n <PaginationNext href=\"#\" />\n </PaginationItem>\n </PaginationContent>\n</Pagination>\n",
15
- "type": "registry:component"
16
- },
17
- {
18
- "path": "src/components/examples/pagination/pagination-icons-only.astro",
19
- "content": "---\nimport { Field, FieldLabel } from \"@/components/ui/field\"\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationNext,\n PaginationPrevious,\n} from \"@/components/ui/pagination\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n---\n\n<div class=\"flex items-center justify-between gap-4\">\n <Field orientation=\"horizontal\" class=\"w-fit\">\n <FieldLabel for=\"select-rows-per-page\">Rows per page</FieldLabel>\n <Select defaultValue=\"25\">\n <SelectTrigger class=\"w-20\" id=\"select-rows-per-page\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent align=\"start\">\n <SelectGroup>\n <SelectItem value=\"10\">10</SelectItem>\n <SelectItem value=\"25\">25</SelectItem>\n <SelectItem value=\"50\">50</SelectItem>\n <SelectItem value=\"100\">100</SelectItem>\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n <Pagination class=\"mx-0 w-auto\">\n <PaginationContent>\n <PaginationItem>\n <PaginationPrevious href=\"#\" />\n </PaginationItem>\n <PaginationItem>\n <PaginationNext href=\"#\" />\n </PaginationItem>\n </PaginationContent>\n </Pagination>\n</div>\n",
20
- "type": "registry:component"
21
- },
22
- {
23
- "path": "src/components/examples/pagination/pagination-rtl.astro",
24
- "content": "---\nimport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n} from \"@/components/ui/pagination\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n previous: \"Previous\",\n next: \"Next\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n previous: \"السابق\",\n next: \"التالي\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n previous: \"הקודם\",\n next: \"הבא\",\n },\n },\n} as const\n\nfunction toArabicNumerals(num: number): string {\n const arabicNumerals = [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"]\n return num\n .toString()\n .split(\"\")\n .map((digit) => arabicNumerals[parseInt(digit, 10)])\n .join(\"\")\n}\n\nconst language: keyof typeof translations = \"ar\"\nconst { dir, values: t } = translations[language]\n\nconst formatNumber = (num: number): string => {\n if (language === \"ar\") {\n return toArabicNumerals(num)\n }\n return num.toString()\n}\n---\n\n<Pagination dir={dir}>\n <PaginationContent>\n <PaginationItem>\n <PaginationPrevious href=\"#\" text={t.previous} />\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">{formatNumber(1)}</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\" isActive>\n {formatNumber(2)}\n </PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">{formatNumber(3)}</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n <PaginationItem>\n <PaginationNext href=\"#\" text={t.next} />\n </PaginationItem>\n </PaginationContent>\n</Pagination>\n",
25
- "type": "registry:component"
26
- },
27
- {
28
- "path": "src/components/examples/pagination/pagination-simple.astro",
29
- "content": "---\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n} from \"@/components/ui/pagination\"\n---\n\n<Pagination>\n <PaginationContent>\n <PaginationItem>\n <PaginationLink href=\"#\">1</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\" isActive>\n 2\n </PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">3</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">4</PaginationLink>\n </PaginationItem>\n <PaginationItem>\n <PaginationLink href=\"#\">5</PaginationLink>\n </PaginationItem>\n </PaginationContent>\n</Pagination>\n",
30
- "type": "registry:component"
31
- }
32
- ],
33
- "docs": "https://ui.full.dev/components/pagination/",
34
- "type": "registry:example"
35
- }
@@ -1,59 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "pagination",
4
- "title": "Pagination",
5
- "description": "Page navigation with previous, next, numbered, and overflow links.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/button"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/ui/pagination/index.ts",
15
- "content": "export { default as Pagination } from \"./pagination.astro\"\nexport { default as PaginationContent } from \"./pagination-content.astro\"\nexport { default as PaginationEllipsis } from \"./pagination-ellipsis.astro\"\nexport { default as PaginationItem } from \"./pagination-item.astro\"\nexport { default as PaginationLink } from \"./pagination-link.astro\"\nexport { default as PaginationNext } from \"./pagination-next.astro\"\nexport { default as PaginationPrevious } from \"./pagination-previous.astro\"\n",
16
- "type": "registry:ui"
17
- },
18
- {
19
- "path": "src/components/ui/pagination/pagination-content.astro",
20
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"ul\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<ul\n data-slot=\"pagination-content\"\n class={cn(\"gap-1 flex items-center\", className)}\n {...props}\n>\n <slot />\n</ul>\n",
21
- "type": "registry:ui"
22
- },
23
- {
24
- "path": "src/components/ui/pagination/pagination-ellipsis.astro",
25
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport EllipsisIcon from \"@lucide/astro/icons/ellipsis\"\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=\"pagination-ellipsis\"\n class={cn(\"size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4 flex\", className)}\n {...props}\n>\n <EllipsisIcon aria-hidden=\"true\" />\n <span class=\"sr-only\">More pages</span>\n</span>\n",
26
- "type": "registry:ui"
27
- },
28
- {
29
- "path": "src/components/ui/pagination/pagination-item.astro",
30
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"li\">\n\nconst { ...props } = Astro.props\n---\n\n<li data-slot=\"pagination-item\" {...props}>\n <slot />\n</li>\n",
31
- "type": "registry:ui"
32
- },
33
- {
34
- "path": "src/components/ui/pagination/pagination-link.astro",
35
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n isActive?: boolean\n disabled?: boolean\n size?: ButtonVariantProps[\"size\"]\n}\n\nconst {\n class: className,\n href,\n isActive,\n disabled,\n size = \"icon\",\n tabindex,\n ...props\n} = Astro.props\n---\n\n<Button\n as=\"a\"\n data-slot=\"pagination-link\"\n data-active={isActive ? \"true\" : undefined}\n href={disabled ? undefined : href}\n aria-current={isActive ? \"page\" : undefined}\n aria-disabled={disabled ? \"true\" : undefined}\n tabindex={disabled ? -1 : tabindex}\n variant={isActive ? \"outline\" : \"ghost\"}\n size={size}\n class={cn(\n \"aria-disabled:pointer-events-none aria-disabled:opacity-50\",\n className\n )}\n {...props}\n>\n <slot />\n</Button>\n",
36
- "type": "registry:ui"
37
- },
38
- {
39
- "path": "src/components/ui/pagination/pagination-next.astro",
40
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport type { ButtonVariantProps } from \"@/components/ui/button\"\n\nimport PaginationLink from \"./pagination-link.astro\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n text?: string\n disabled?: boolean\n size?: ButtonVariantProps[\"size\"]\n}\n\nconst { class: className, text = \"Next\", ...props } = Astro.props\n---\n\n<PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n class={cn(\"pr-2!\", className)}\n {...props}\n>\n <span class=\"hidden sm:block\">{text}</span>\n <ChevronRightIcon data-icon=\"inline-end\" class=\"rtl:rotate-180\" />\n</PaginationLink>\n",
41
- "type": "registry:ui"
42
- },
43
- {
44
- "path": "src/components/ui/pagination/pagination-previous.astro",
45
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronLeftIcon from \"@lucide/astro/icons/chevron-left\"\n\nimport { cn } from \"@/lib/utils\"\nimport type { ButtonVariantProps } from \"@/components/ui/button\"\n\nimport PaginationLink from \"./pagination-link.astro\"\n\ntype Props = HTMLAttributes<\"a\"> & {\n text?: string\n disabled?: boolean\n size?: ButtonVariantProps[\"size\"]\n}\n\nconst { class: className, text = \"Previous\", ...props } = Astro.props\n---\n\n<PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n class={cn(\"pl-2!\", className)}\n {...props}\n>\n <ChevronLeftIcon data-icon=\"inline-start\" class=\"rtl:rotate-180\" />\n <span class=\"hidden sm:block\">{text}</span>\n</PaginationLink>\n",
46
- "type": "registry:ui"
47
- },
48
- {
49
- "path": "src/components/ui/pagination/pagination.astro",
50
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"nav\">\n\nconst {\n class: className,\n \"aria-label\": ariaLabel = \"pagination\",\n ...props\n} = Astro.props\n---\n\n<nav\n aria-label={ariaLabel}\n data-slot=\"pagination\"\n class={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n>\n <slot />\n</nav>\n",
51
- "type": "registry:ui"
52
- }
53
- ],
54
- "docs": "https://ui.full.dev/components/pagination/",
55
- "categories": [
56
- "ui"
57
- ],
58
- "type": "registry:ui"
59
- }
@@ -1,42 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "popover-examples",
4
- "title": "Popover examples",
5
- "description": "The examples from the shadcn/ui Popover docs.",
6
- "registryDependencies": [
7
- "@fulldev/button",
8
- "@fulldev/field",
9
- "@fulldev/input",
10
- "@fulldev/label",
11
- "@fulldev/popover"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/examples/popover/popover-alignments.astro",
16
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n---\n\n<div class=\"flex gap-6\">\n <Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\", size: \"sm\" })}>\n Start\n </PopoverTrigger>\n <PopoverContent align=\"start\" class=\"w-40\">\n Aligned to start\n </PopoverContent>\n </Popover>\n <Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\", size: \"sm\" })}>\n Center\n </PopoverTrigger>\n <PopoverContent align=\"center\" class=\"w-40\">\n Aligned to center\n </PopoverContent>\n </Popover>\n <Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\", size: \"sm\" })}>\n End\n </PopoverTrigger>\n <PopoverContent align=\"end\" class=\"w-40\">\n Aligned to end\n </PopoverContent>\n </Popover>\n</div>\n",
17
- "type": "registry:component"
18
- },
19
- {
20
- "path": "src/components/examples/popover/popover-basic.astro",
21
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n---\n\n<Popover>\n <PopoverTrigger\n class={buttonVariants({ variant: \"outline\", class: \"w-fit\" })}\n >\n Open Popover\n </PopoverTrigger>\n <PopoverContent align=\"start\">\n <PopoverHeader>\n <PopoverTitle>Dimensions</PopoverTitle>\n <PopoverDescription>Set the dimensions for the layer.</PopoverDescription>\n </PopoverHeader>\n </PopoverContent>\n</Popover>\n",
22
- "type": "registry:component"
23
- },
24
- {
25
- "path": "src/components/examples/popover/popover-demo.astro",
26
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n---\n\n<Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open popover\n </PopoverTrigger>\n <PopoverContent class=\"w-80\">\n <div class=\"grid gap-4\">\n <div class=\"space-y-2\">\n <p class=\"leading-none font-medium\">Dimensions</p>\n <p class=\"text-sm text-muted-foreground\">\n Set the dimensions for the layer.\n </p>\n </div>\n <div class=\"grid gap-2\">\n <div class=\"grid grid-cols-3 items-center gap-4\">\n <Label for=\"width\">Width</Label>\n <Input id=\"width\" value=\"100%\" class=\"col-span-2 h-8\" />\n </div>\n <div class=\"grid grid-cols-3 items-center gap-4\">\n <Label for=\"maxWidth\">Max. width</Label>\n <Input id=\"maxWidth\" value=\"300px\" class=\"col-span-2 h-8\" />\n </div>\n <div class=\"grid grid-cols-3 items-center gap-4\">\n <Label for=\"height\">Height</Label>\n <Input id=\"height\" value=\"25px\" class=\"col-span-2 h-8\" />\n </div>\n <div class=\"grid grid-cols-3 items-center gap-4\">\n <Label for=\"maxHeight\">Max. height</Label>\n <Input id=\"maxHeight\" value=\"none\" class=\"col-span-2 h-8\" />\n </div>\n </div>\n </div>\n </PopoverContent>\n</Popover>\n",
27
- "type": "registry:component"
28
- },
29
- {
30
- "path": "src/components/examples/popover/popover-form.astro",
31
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n---\n\n<Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\" })}>\n Open Popover\n </PopoverTrigger>\n <PopoverContent class=\"w-64\" align=\"start\">\n <PopoverHeader>\n <PopoverTitle>Dimensions</PopoverTitle>\n <PopoverDescription>Set the dimensions for the layer.</PopoverDescription>\n </PopoverHeader>\n <FieldGroup class=\"gap-4\">\n <Field orientation=\"horizontal\">\n <FieldLabel for=\"form-width\" class=\"w-1/2\">\n Width\n </FieldLabel>\n <Input id=\"form-width\" value=\"100%\" />\n </Field>\n <Field orientation=\"horizontal\">\n <FieldLabel for=\"form-height\" class=\"w-1/2\">\n Height\n </FieldLabel>\n <Input id=\"form-height\" value=\"25px\" />\n </Field>\n </FieldGroup>\n </PopoverContent>\n</Popover>\n",
32
- "type": "registry:component"
33
- },
34
- {
35
- "path": "src/components/examples/popover/popover-rtl.astro",
36
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n title: \"Dimensions\",\n description: \"Set the dimensions for the layer.\",\n \"inline-start\": \"Inline Start\",\n left: \"Left\",\n top: \"Top\",\n bottom: \"Bottom\",\n right: \"Right\",\n \"inline-end\": \"Inline End\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n title: \"الأبعاد\",\n description: \"تعيين الأبعاد للطبقة.\",\n \"inline-start\": \"بداية السطر\",\n left: \"يسار\",\n top: \"أعلى\",\n bottom: \"أسفل\",\n right: \"يمين\",\n \"inline-end\": \"نهاية السطر\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n title: \"מימדים\",\n description: \"הגדר את המימדים לשכבה.\",\n \"inline-start\": \"תחילת השורה\",\n left: \"שמאל\",\n top: \"למעלה\",\n bottom: \"למטה\",\n right: \"ימין\",\n \"inline-end\": \"סוף השורה\",\n },\n },\n}\n\nconst physicalSides = [\"left\", \"top\", \"bottom\", \"right\"] as const\nconst logicalSides = [\"inline-start\", \"inline-end\"] as const\n\nconst { dir, values: t } = translations.ar\n\n// PopoverContent takes physical sides, so resolve the logical ones for `dir`.\nconst resolvedSides = {\n \"inline-start\": dir === \"rtl\" ? \"right\" : \"left\",\n \"inline-end\": dir === \"rtl\" ? \"left\" : \"right\",\n} as const\n---\n\n<div class=\"grid gap-4\">\n <div class=\"flex flex-wrap justify-center gap-2\">\n {physicalSides.map((side) => (\n <Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </PopoverTrigger>\n <PopoverContent side={side} dir={dir}>\n <PopoverHeader>\n <PopoverTitle>{t.title}</PopoverTitle>\n <PopoverDescription>{t.description}</PopoverDescription>\n </PopoverHeader>\n </PopoverContent>\n </Popover>\n ))}\n </div>\n <div class=\"flex flex-wrap justify-center gap-2\">\n {logicalSides.map((side) => (\n <Popover>\n <PopoverTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </PopoverTrigger>\n <PopoverContent side={resolvedSides[side]} dir={dir}>\n <PopoverHeader>\n <PopoverTitle>{t.title}</PopoverTitle>\n <PopoverDescription>{t.description}</PopoverDescription>\n </PopoverHeader>\n </PopoverContent>\n </Popover>\n ))}\n </div>\n</div>\n",
37
- "type": "registry:component"
38
- }
39
- ],
40
- "docs": "https://ui.full.dev/components/popover/",
41
- "type": "registry:example"
42
- }
@@ -1,51 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "popover",
4
- "title": "Popover",
5
- "description": "Displays rich content in a floating layer, triggered by a button.",
6
- "dependencies": [
7
- "@data-slot/popover@^1.1.2"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/popover/popover.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { PopoverAlign, PopoverSide } from \"@data-slot/popover\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultOpen?: boolean\n side?: PopoverSide\n align?: PopoverAlign\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n portal?: boolean\n /** Compatibility alias. Prefer `side`. */\n position?: PopoverSide\n closeOnClickOutside?: boolean\n closeOnEscape?: boolean\n}\n\nconst {\n class: className,\n defaultOpen,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n portal,\n position,\n closeOnClickOutside,\n closeOnEscape,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"popover\"\n data-default-open={defaultOpen}\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-portal={portal}\n data-position={position}\n data-close-on-click-outside={closeOnClickOutside}\n data-close-on-escape={closeOnEscape}\n class={className}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/popover\"\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",
13
- "type": "registry:ui"
14
- },
15
- {
16
- "path": "src/components/ui/popover/popover-trigger.astro",
17
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"button\">\n\nconst { class: className, type = \"button\", ...props } = Astro.props\n---\n\n<button data-slot=\"popover-trigger\" type={type} class={className} {...props}>\n <slot />\n</button>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/popover/popover-content.astro",
22
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { PopoverAlign, PopoverSide } from \"@data-slot/popover\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: PopoverSide\n align?: PopoverAlign\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n /** Compatibility alias. Prefer `side`. */\n position?: PopoverSide\n}\n\nconst {\n class: className,\n hidden = true,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n position,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"popover-portal\">\n <div\n data-slot=\"popover-positioner\"\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-position={position}\n class=\"isolate z-[1000]\"\n >\n <div\n data-slot=\"popover-content\"\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-position={position}\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 flex flex-col gap-4 rounded-md p-4 text-sm shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-72 origin-(--transform-origin) outline-hidden\",\n className\n )}\n {...props}\n >\n <slot />\n </div>\n </div>\n</div>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/popover/popover-description.astro",
27
- "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=\"popover-description\"\n class={cn(\"text-muted-foreground\", className)}\n {...props}\n>\n <slot />\n</p>\n",
28
- "type": "registry:ui"
29
- },
30
- {
31
- "path": "src/components/ui/popover/popover-header.astro",
32
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"popover-header\"\n class={cn(\"flex flex-col gap-1 text-sm\", className)}\n {...props}\n>\n <slot />\n</div>\n",
33
- "type": "registry:ui"
34
- },
35
- {
36
- "path": "src/components/ui/popover/popover-title.astro",
37
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"h3\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<h3\n data-slot=\"popover-title\"\n class={cn(\"font-medium\", className)}\n {...props}\n>\n <slot />\n</h3>\n",
38
- "type": "registry:ui"
39
- },
40
- {
41
- "path": "src/components/ui/popover/index.ts",
42
- "content": "export { default as Popover } from \"./popover.astro\"\nexport { default as PopoverContent } from \"./popover-content.astro\"\nexport { default as PopoverDescription } from \"./popover-description.astro\"\nexport { default as PopoverHeader } from \"./popover-header.astro\"\nexport { default as PopoverTitle } from \"./popover-title.astro\"\nexport { default as PopoverTrigger } from \"./popover-trigger.astro\"\n",
43
- "type": "registry:ui"
44
- }
45
- ],
46
- "docs": "https://ui.full.dev/components/popover/",
47
- "categories": [
48
- "ui"
49
- ],
50
- "type": "registry:ui"
51
- }
@@ -1,38 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "price",
4
- "title": "Price",
5
- "description": "A flexible price display component for showing pricing information.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/price/price.astro",
9
- "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 = \"price\",\n ...props\n} = Astro.props\n---\n\n<div\n class={cn(\"flex flex-wrap items-center gap-x-2\", className)}\n data-slot={dataSlot}\n {...props}\n>\n <slot />\n</div>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/price/price-unit.astro",
14
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"price-unit\",\n ...props\n} = Astro.props\n---\n\n<span\n class={cn(\"text-muted-foreground text-sm leading-tight\", className)}\n data-slot={dataSlot}\n {...props}\n>\n / <slot />\n</span>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/price/price-value.astro",
19
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport {\n formatPriceDiscount,\n formatPriceValue,\n parseSinglePriceValue,\n type DiscountFormat,\n type PriceValue,\n} from \"./format-price-value\"\n\ntype Props = VariantProps<typeof variants> &\n HTMLAttributes<\"span\"> & {\n price?: PriceValue\n compareAt?: PriceValue\n currency?: string\n locale?: string\n variant?: \"default\" | \"sale\"\n discountFormat?: DiscountFormat\n showDiscount?: boolean\n discountLabel?: string\n }\n\nconst variants = cva(\"leading-tight\", {\n variants: {\n variant: {\n default: \"text-foreground\",\n sale: \"text-muted-foreground line-through\",\n },\n },\n})\n\nconst {\n class: className,\n price,\n compareAt,\n currency = \"USD\",\n locale = \"en-US\",\n variant = \"default\",\n discountFormat = \"percentage\",\n showDiscount = true,\n discountLabel = \"Save\",\n \"data-slot\": dataSlot = \"price-value\",\n ...props\n} = Astro.props\n\nconst formattedPrice = formatPriceValue(price, { currency, locale })\nconst currentValue = parseSinglePriceValue(price)\nconst compareAtValue = parseSinglePriceValue(compareAt)\n// A compare-at price only shows when it is higher than the price.\nconst formattedCompareAt =\n currentValue !== null &&\n compareAtValue !== null &&\n compareAtValue <= currentValue\n ? null\n : formatPriceValue(compareAt, { currency, locale })\nconst formattedDiscount =\n showDiscount && formattedCompareAt !== null\n ? formatPriceDiscount(price, compareAt, {\n currency,\n locale,\n format: discountFormat,\n })\n : null\n---\n\n{formattedPrice !== null && (\n <span\n class={cn(\"inline-flex flex-wrap items-center gap-x-2 gap-y-1\", className)}\n data-slot={dataSlot}\n data-variant={variant}\n {...props}\n >\n <span class={cn(variants({ variant }))}>{formattedPrice}</span>\n {formattedCompareAt !== null && (\n <del class=\"text-muted-foreground text-sm leading-tight line-through\">\n {formattedCompareAt}\n </del>\n )}\n {formattedDiscount !== null && (\n <span class=\"rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-foreground\">\n {discountLabel} {formattedDiscount}\n </span>\n )}\n </span>\n)}\n",
20
- "type": "registry:ui"
21
- },
22
- {
23
- "path": "src/components/ui/price/format-price-value.ts",
24
- "content": "export interface FormatPriceValueOptions {\n currency: string\n locale: string\n}\n\nexport type PriceValue = number | string | [number, number]\nexport type DiscountFormat = \"percentage\" | \"amount\"\n\nfunction formatCurrency(value: number, options: FormatPriceValueOptions) {\n return new Intl.NumberFormat(options.locale, {\n style: \"currency\",\n currency: options.currency,\n }).format(value)\n}\n\nexport function parseSinglePriceValue(price: PriceValue | null | undefined) {\n if (price === null || price === undefined || price === \"\") {\n return null\n }\n\n if (typeof price === \"number\") {\n return Number.isFinite(price) ? price : null\n }\n\n if (Array.isArray(price)) {\n return null\n }\n\n const numericValue = Number(price)\n\n if (!Number.isNaN(numericValue) && Number.isFinite(numericValue)) {\n return numericValue\n }\n\n return null\n}\n\nexport function formatPriceDiscount(\n price: PriceValue | null | undefined,\n compareAt: PriceValue | null | undefined,\n options: FormatPriceValueOptions & {\n format?: DiscountFormat\n }\n) {\n const currentPrice = parseSinglePriceValue(price)\n const originalPrice = parseSinglePriceValue(compareAt)\n\n if (\n currentPrice === null ||\n originalPrice === null ||\n originalPrice <= currentPrice ||\n originalPrice <= 0\n ) {\n return null\n }\n\n if (options.format === \"amount\") {\n return formatCurrency(originalPrice - currentPrice, options)\n }\n\n return `${Math.round(((originalPrice - currentPrice) / originalPrice) * 100)}%`\n}\n\nexport function formatPriceValue(\n price: PriceValue | null | undefined,\n options: FormatPriceValueOptions\n) {\n if (price === null || price === undefined || price === \"\") {\n return null\n }\n\n if (typeof price === \"number\") {\n return formatCurrency(price, options)\n }\n\n if (Array.isArray(price)) {\n const [minimum, maximum] = price\n return `${formatCurrency(minimum, options)} - ${formatCurrency(maximum, options)}`\n }\n\n const rangeMatch = price.match(\n /^\\s*(-?\\d+(?:\\.\\d+)?)\\s*-\\s*(-?\\d+(?:\\.\\d+)?)\\s*$/\n )\n\n if (!rangeMatch) {\n return price\n }\n\n const [, minimum, maximum] = rangeMatch\n return `${formatCurrency(Number(minimum), options)} - ${formatCurrency(Number(maximum), options)}`\n}\n",
25
- "type": "registry:ui"
26
- },
27
- {
28
- "path": "src/components/ui/price/index.ts",
29
- "content": "export { default as Price } from \"./price.astro\"\nexport { default as PriceUnit } from \"./price-unit.astro\"\nexport { default as PriceValue } from \"./price-value.astro\"\n",
30
- "type": "registry:ui"
31
- }
32
- ],
33
- "docs": "https://ui.full.dev/components/price/",
34
- "categories": [
35
- "ui"
36
- ],
37
- "type": "registry:ui"
38
- }
@@ -1,29 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "pricing-1",
4
- "title": "Pricing 1",
5
- "description": "Pricing sections for plan grids, featured offers, and concise offer presentation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/badge",
11
- "@fulldev/button",
12
- "@fulldev/card",
13
- "@fulldev/price",
14
- "@fulldev/section",
15
- "@fulldev/separator"
16
- ],
17
- "files": [
18
- {
19
- "path": "src/components/blocks/pricing-1.astro",
20
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { CheckIcon } from \"@lucide/astro\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Price, PriceUnit, PriceValue } from \"@/components/ui/price\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n featuredLabel: string\n locale?: string\n discountLabel?: string\n plans: {\n name: string\n description: string\n price: {\n value: number\n compareAt?: number\n currency: string\n unit: string\n }\n featured?: boolean\n features: string[]\n button: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n featuredLabel,\n locale,\n discountLabel,\n plans,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-8 text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription>{description}</SectionDescription>\n </div>\n </SectionContainer>\n <SectionContainer>\n <div class=\"mx-auto grid w-full grid-cols-1 justify-center gap-6 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(16rem,18rem))]\">\n {plans.map((plan) => (\n <Card\n class={cn(\"flex flex-col\", plan.featured && \"ring-primary ring-2\")}\n >\n <CardHeader>\n <div class=\"flex items-center gap-2\">\n <CardTitle as=\"h3\">{plan.name}</CardTitle>\n {plan.featured && <Badge>{featuredLabel}</Badge>}\n </div>\n <CardDescription>{plan.description}</CardDescription>\n </CardHeader>\n <CardContent class=\"flex flex-col gap-6\">\n <Price>\n <PriceValue\n price={plan.price.value}\n compareAt={plan.price.compareAt}\n currency={plan.price.currency}\n locale={locale}\n discountLabel={discountLabel}\n />\n <PriceUnit>{plan.price.unit}</PriceUnit>\n </Price>\n <Separator />\n <ul class=\"flex flex-col gap-3\">\n {plan.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 </CardContent>\n <CardFooter class=\"mt-auto\">\n <Button\n as=\"a\"\n href={plan.button.href}\n variant={plan.featured ? \"default\" : \"outline\"}\n class=\"w-full\"\n >\n {plan.button.label}\n </Button>\n </CardFooter>\n </Card>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
21
- "type": "registry:block"
22
- }
23
- ],
24
- "docs": "https://ui.full.dev/blocks/pricing/",
25
- "categories": [
26
- "pricing"
27
- ],
28
- "type": "registry:block"
29
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "pricing-2",
4
- "title": "Pricing 2",
5
- "description": "Pricing sections for plan grids, featured offers, and concise offer presentation.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/button",
11
- "@fulldev/card",
12
- "@fulldev/price",
13
- "@fulldev/section",
14
- "@fulldev/separator"
15
- ],
16
- "files": [
17
- {
18
- "path": "src/components/blocks/pricing-2.astro",
19
- "content": "---\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 Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Price, PriceUnit, PriceValue } from \"@/components/ui/price\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n locale?: string\n discountLabel?: string\n plans: {\n name: string\n description: string\n price: {\n value: number\n compareAt?: number\n currency: string\n unit: string\n }\n featured?: boolean\n features: string[]\n button: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n locale,\n discountLabel,\n plans,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"mt-4\">{description}</SectionDescription>\n </div>\n <div class=\"mx-auto grid w-full justify-center gap-6 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(16rem,18rem))]\">\n {plans.map((plan) => (\n <Card class=\"flex flex-col border-none shadow-none\">\n <CardHeader>\n <CardTitle as=\"h3\">{plan.name}</CardTitle>\n <CardDescription>{plan.description}</CardDescription>\n </CardHeader>\n <CardContent class=\"flex flex-col gap-6\">\n <Price>\n <PriceValue\n price={plan.price.value}\n compareAt={plan.price.compareAt}\n currency={plan.price.currency}\n locale={locale}\n discountLabel={discountLabel}\n />\n <PriceUnit>{plan.price.unit}</PriceUnit>\n </Price>\n <Separator />\n <ul class=\"flex flex-col gap-3\">\n {plan.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 </CardContent>\n <CardFooter class=\"mt-auto\">\n <Button\n as=\"a\"\n href={plan.button.href}\n variant={plan.featured ? \"default\" : \"outline\"}\n class=\"w-full\"\n >\n {plan.button.label}\n </Button>\n </CardFooter>\n </Card>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
20
- "type": "registry:block"
21
- }
22
- ],
23
- "docs": "https://ui.full.dev/blocks/pricing/",
24
- "categories": [
25
- "pricing"
26
- ],
27
- "type": "registry:block"
28
- }