fulldev-ui 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/liquid/README.md +1 -1
  3. package/liquid/assets/ui-licenses.json +1 -1
  4. package/liquid/assets/ui-manifest.json +1 -1
  5. package/package.json +4 -2
  6. package/public/r/liquid/components.json +1 -1
  7. package/public/r/liquid/init.json +1 -1
  8. package/public/r/styles/base-luma/button-examples.json +2 -2
  9. package/public/r/styles/base-luma/collapsible-examples.json +1 -1
  10. package/public/r/styles/base-luma/combobox-examples.json +1 -1
  11. package/public/r/styles/base-luma/combobox.json +1 -1
  12. package/public/r/styles/base-luma/input-group-examples.json +2 -2
  13. package/public/r/styles/base-luma/item-examples.json +1 -1
  14. package/public/r/styles/base-luma/select.json +1 -1
  15. package/public/r/styles/base-luma/tabs.json +1 -1
  16. package/public/r/styles/base-luma/tooltip-examples.json +1 -1
  17. package/public/r/styles/base-lyra/button-examples.json +2 -2
  18. package/public/r/styles/base-lyra/collapsible-examples.json +1 -1
  19. package/public/r/styles/base-lyra/combobox-examples.json +1 -1
  20. package/public/r/styles/base-lyra/combobox.json +1 -1
  21. package/public/r/styles/base-lyra/input-group-examples.json +2 -2
  22. package/public/r/styles/base-lyra/item-examples.json +1 -1
  23. package/public/r/styles/base-lyra/select.json +1 -1
  24. package/public/r/styles/base-lyra/tabs.json +1 -1
  25. package/public/r/styles/base-lyra/tooltip-examples.json +1 -1
  26. package/public/r/styles/base-maia/button-examples.json +2 -2
  27. package/public/r/styles/base-maia/collapsible-examples.json +1 -1
  28. package/public/r/styles/base-maia/combobox-examples.json +1 -1
  29. package/public/r/styles/base-maia/combobox.json +1 -1
  30. package/public/r/styles/base-maia/input-group-examples.json +2 -2
  31. package/public/r/styles/base-maia/item-examples.json +1 -1
  32. package/public/r/styles/base-maia/select.json +1 -1
  33. package/public/r/styles/base-maia/tabs.json +1 -1
  34. package/public/r/styles/base-maia/tooltip-examples.json +1 -1
  35. package/public/r/styles/base-mira/button-examples.json +2 -2
  36. package/public/r/styles/base-mira/collapsible-examples.json +1 -1
  37. package/public/r/styles/base-mira/combobox-examples.json +1 -1
  38. package/public/r/styles/base-mira/combobox.json +1 -1
  39. package/public/r/styles/base-mira/input-group-examples.json +2 -2
  40. package/public/r/styles/base-mira/item-examples.json +1 -1
  41. package/public/r/styles/base-mira/select.json +1 -1
  42. package/public/r/styles/base-mira/tabs.json +1 -1
  43. package/public/r/styles/base-mira/tooltip-examples.json +1 -1
  44. package/public/r/styles/base-nova/button-examples.json +2 -2
  45. package/public/r/styles/base-nova/collapsible-examples.json +1 -1
  46. package/public/r/styles/base-nova/combobox-examples.json +1 -1
  47. package/public/r/styles/base-nova/combobox.json +1 -1
  48. package/public/r/styles/base-nova/input-group-examples.json +2 -2
  49. package/public/r/styles/base-nova/item-examples.json +1 -1
  50. package/public/r/styles/base-nova/select.json +1 -1
  51. package/public/r/styles/base-nova/tabs.json +1 -1
  52. package/public/r/styles/base-nova/tooltip-examples.json +1 -1
  53. package/public/r/styles/base-rhea/button-examples.json +2 -2
  54. package/public/r/styles/base-rhea/collapsible-examples.json +1 -1
  55. package/public/r/styles/base-rhea/combobox-examples.json +1 -1
  56. package/public/r/styles/base-rhea/combobox.json +1 -1
  57. package/public/r/styles/base-rhea/input-group-examples.json +2 -2
  58. package/public/r/styles/base-rhea/item-examples.json +1 -1
  59. package/public/r/styles/base-rhea/select.json +1 -1
  60. package/public/r/styles/base-rhea/tabs.json +1 -1
  61. package/public/r/styles/base-rhea/tooltip-examples.json +1 -1
  62. package/public/r/styles/base-sera/button-examples.json +2 -2
  63. package/public/r/styles/base-sera/collapsible-examples.json +1 -1
  64. package/public/r/styles/base-sera/combobox-examples.json +1 -1
  65. package/public/r/styles/base-sera/combobox.json +1 -1
  66. package/public/r/styles/base-sera/input-group-examples.json +2 -2
  67. package/public/r/styles/base-sera/item-examples.json +1 -1
  68. package/public/r/styles/base-sera/select.json +1 -1
  69. package/public/r/styles/base-sera/tabs.json +1 -1
  70. package/public/r/styles/base-sera/tooltip-examples.json +1 -1
  71. package/public/r/styles/base-vega/button-examples.json +2 -2
  72. package/public/r/styles/base-vega/collapsible-examples.json +1 -1
  73. package/public/r/styles/base-vega/combobox-examples.json +1 -1
  74. package/public/r/styles/base-vega/combobox.json +1 -1
  75. package/public/r/styles/base-vega/input-group-examples.json +2 -2
  76. package/public/r/styles/base-vega/item-examples.json +1 -1
  77. package/public/r/styles/base-vega/select.json +1 -1
  78. package/public/r/styles/base-vega/tabs.json +1 -1
  79. package/public/r/styles/base-vega/tooltip-examples.json +1 -1
  80. package/liquid/vendor.json +0 -180
  81. package/public/r/accordion-examples.json +0 -49
  82. package/public/r/accordion.json +0 -42
  83. package/public/r/alert-dialog-examples.json +0 -51
  84. package/public/r/alert-dialog.json +0 -84
  85. package/public/r/alert-examples.json +0 -47
  86. package/public/r/alert.json +0 -38
  87. package/public/r/article-1.json +0 -22
  88. package/public/r/article-2.json +0 -22
  89. package/public/r/articles-1.json +0 -22
  90. package/public/r/articles-2.json +0 -23
  91. package/public/r/articles-3.json +0 -22
  92. package/public/r/articles-4.json +0 -22
  93. package/public/r/aspect-ratio-examples.json +0 -33
  94. package/public/r/aspect-ratio.json +0 -23
  95. package/public/r/attachment-examples.json +0 -48
  96. package/public/r/attachment.json +0 -66
  97. package/public/r/avatar-examples.json +0 -68
  98. package/public/r/avatar.json +0 -48
  99. package/public/r/badge-examples.json +0 -52
  100. package/public/r/badge.json +0 -28
  101. package/public/r/banner-1.json +0 -24
  102. package/public/r/banner-2.json +0 -22
  103. package/public/r/banner.json +0 -31
  104. package/public/r/base.json +0 -143
  105. package/public/r/blocks-1.json +0 -27
  106. package/public/r/blocks.json +0 -92
  107. package/public/r/breadcrumb-examples.json +0 -53
  108. package/public/r/breadcrumb.json +0 -56
  109. package/public/r/button-examples.json +0 -87
  110. package/public/r/button-group-examples.json +0 -75
  111. package/public/r/button-group.json +0 -41
  112. package/public/r/button.json +0 -28
  113. package/public/r/card-examples.json +0 -51
  114. package/public/r/card.json +0 -53
  115. package/public/r/carousel-examples.json +0 -49
  116. package/public/r/carousel.json +0 -50
  117. package/public/r/checkbox-examples.json +0 -56
  118. package/public/r/checkbox.json +0 -23
  119. package/public/r/code-block-examples.json +0 -33
  120. package/public/r/code-block.json +0 -65
  121. package/public/r/collapsible-examples.json +0 -51
  122. package/public/r/collapsible.json +0 -36
  123. package/public/r/combobox-examples.json +0 -69
  124. package/public/r/combobox.json +0 -81
  125. package/public/r/command-examples.json +0 -47
  126. package/public/r/command.json +0 -71
  127. package/public/r/components.json +0 -74
  128. package/public/r/contact-1.json +0 -23
  129. package/public/r/contact-2.json +0 -23
  130. package/public/r/contact-3.json +0 -29
  131. package/public/r/content-1.json +0 -31
  132. package/public/r/content-2.json +0 -31
  133. package/public/r/content-3.json +0 -28
  134. package/public/r/content-4.json +0 -31
  135. package/public/r/cta-1.json +0 -24
  136. package/public/r/cta-2.json +0 -30
  137. package/public/r/cta-3.json +0 -24
  138. package/public/r/cta-4.json +0 -30
  139. package/public/r/cta-5.json +0 -31
  140. package/public/r/cta-6.json +0 -30
  141. package/public/r/cta-7.json +0 -23
  142. package/public/r/cta-8.json +0 -22
  143. package/public/r/dialog-examples.json +0 -47
  144. package/public/r/dialog.json +0 -75
  145. package/public/r/doc-1.json +0 -30
  146. package/public/r/drawer-examples.json +0 -54
  147. package/public/r/drawer.json +0 -109
  148. package/public/r/dropdown-menu-examples.json +0 -63
  149. package/public/r/dropdown-menu.json +0 -77
  150. package/public/r/empty-examples.json +0 -55
  151. package/public/r/empty.json +0 -48
  152. package/public/r/faqs-1.json +0 -23
  153. package/public/r/faqs-2.json +0 -23
  154. package/public/r/faqs-3.json +0 -23
  155. package/public/r/faqs-4.json +0 -22
  156. package/public/r/features-1.json +0 -26
  157. package/public/r/features-2.json +0 -22
  158. package/public/r/features-3.json +0 -21
  159. package/public/r/features-4.json +0 -26
  160. package/public/r/features-5.json +0 -22
  161. package/public/r/features-6.json +0 -23
  162. package/public/r/field-examples.json +0 -86
  163. package/public/r/field.json +0 -72
  164. package/public/r/footer-1.json +0 -24
  165. package/public/r/footer-2.json +0 -24
  166. package/public/r/footer-3.json +0 -24
  167. package/public/r/form.json +0 -23
  168. package/public/r/header-1.json +0 -29
  169. package/public/r/header-2.json +0 -29
  170. package/public/r/header-3.json +0 -30
  171. package/public/r/header-4.json +0 -29
  172. package/public/r/header-5.json +0 -30
  173. package/public/r/header.json +0 -40
  174. package/public/r/hero-1.json +0 -23
  175. package/public/r/hero-10.json +0 -24
  176. package/public/r/hero-11.json +0 -24
  177. package/public/r/hero-12.json +0 -22
  178. package/public/r/hero-13.json +0 -22
  179. package/public/r/hero-2.json +0 -24
  180. package/public/r/hero-3.json +0 -22
  181. package/public/r/hero-4.json +0 -25
  182. package/public/r/hero-5.json +0 -27
  183. package/public/r/hero-6.json +0 -27
  184. package/public/r/hero-7.json +0 -27
  185. package/public/r/hero-8.json +0 -22
  186. package/public/r/hero-9.json +0 -27
  187. package/public/r/hover-card-examples.json +0 -29
  188. package/public/r/hover-card.json +0 -37
  189. package/public/r/icon.json +0 -27
  190. package/public/r/init.json +0 -44
  191. package/public/r/input-examples.json +0 -97
  192. package/public/r/input-group-examples.json +0 -91
  193. package/public/r/input-group.json +0 -53
  194. package/public/r/input.json +0 -23
  195. package/public/r/item-examples.json +0 -74
  196. package/public/r/item.json +0 -71
  197. package/public/r/kbd-examples.json +0 -50
  198. package/public/r/kbd.json +0 -28
  199. package/public/r/label-examples.json +0 -24
  200. package/public/r/label.json +0 -23
  201. package/public/r/layout.json +0 -41
  202. package/public/r/links-2.json +0 -24
  203. package/public/r/logo.json +0 -33
  204. package/public/r/logos-1.json +0 -22
  205. package/public/r/logos-2.json +0 -23
  206. package/public/r/logos-3.json +0 -22
  207. package/public/r/marquee.json +0 -46
  208. package/public/r/native-select-examples.json +0 -38
  209. package/public/r/native-select.json +0 -36
  210. package/public/r/navigation-menu-examples.json +0 -26
  211. package/public/r/navigation-menu.json +0 -67
  212. package/public/r/pagination-examples.json +0 -35
  213. package/public/r/pagination.json +0 -59
  214. package/public/r/popover-examples.json +0 -42
  215. package/public/r/popover.json +0 -51
  216. package/public/r/price.json +0 -38
  217. package/public/r/pricing-1.json +0 -29
  218. package/public/r/pricing-2.json +0 -28
  219. package/public/r/pricing-3.json +0 -29
  220. package/public/r/product-1.json +0 -24
  221. package/public/r/products-1.json +0 -24
  222. package/public/r/products-2.json +0 -24
  223. package/public/r/products-3.json +0 -24
  224. package/public/r/products-4.json +0 -24
  225. package/public/r/products-5.json +0 -25
  226. package/public/r/progress-examples.json +0 -33
  227. package/public/r/progress.json +0 -23
  228. package/public/r/radio-group-examples.json +0 -50
  229. package/public/r/radio-group.json +0 -31
  230. package/public/r/rating.json +0 -26
  231. package/public/r/registry.json +0 -6959
  232. package/public/r/resizable-examples.json +0 -33
  233. package/public/r/resizable.json +0 -36
  234. package/public/r/reviews-1.json +0 -27
  235. package/public/r/reviews-2.json +0 -27
  236. package/public/r/reviews-3.json +0 -27
  237. package/public/r/reviews-4.json +0 -25
  238. package/public/r/reviews-5.json +0 -27
  239. package/public/r/section.json +0 -38
  240. package/public/r/select-examples.json +0 -53
  241. package/public/r/select.json +0 -62
  242. package/public/r/separator-examples.json +0 -38
  243. package/public/r/separator.json +0 -23
  244. package/public/r/services-1.json +0 -32
  245. package/public/r/services-2.json +0 -29
  246. package/public/r/services-3.json +0 -29
  247. package/public/r/services-4.json +0 -31
  248. package/public/r/services-5.json +0 -26
  249. package/public/r/services-6.json +0 -32
  250. package/public/r/services-7.json +0 -32
  251. package/public/r/sheet-examples.json +0 -37
  252. package/public/r/sheet.json +0 -66
  253. package/public/r/sidebar-1.json +0 -35
  254. package/public/r/sidebar-examples.json +0 -24
  255. package/public/r/sidebar.json +0 -146
  256. package/public/r/skeleton-examples.json +0 -49
  257. package/public/r/skeleton.json +0 -23
  258. package/public/r/slider-examples.json +0 -44
  259. package/public/r/slider.json +0 -26
  260. package/public/r/spinner-examples.json +0 -61
  261. package/public/r/spinner.json +0 -26
  262. package/public/r/switch-examples.json +0 -50
  263. package/public/r/switch.json +0 -26
  264. package/public/r/table-examples.json +0 -38
  265. package/public/r/table.json +0 -58
  266. package/public/r/tabs-examples.json +0 -47
  267. package/public/r/tabs.json +0 -46
  268. package/public/r/textarea-examples.json +0 -45
  269. package/public/r/textarea.json +0 -23
  270. package/public/r/theme-toggle.json +0 -34
  271. package/public/r/toast-examples.json +0 -29
  272. package/public/r/toast.json +0 -80
  273. package/public/r/toc.json +0 -43
  274. package/public/r/toggle-examples.json +0 -46
  275. package/public/r/toggle-group-examples.json +0 -57
  276. package/public/r/toggle-group.json +0 -34
  277. package/public/r/toggle.json +0 -31
  278. package/public/r/tooltip-examples.json +0 -43
  279. package/public/r/tooltip.json +0 -36
  280. package/public/r/typography.json +0 -103
  281. package/public/r/video.json +0 -23
@@ -1,46 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "toggle-examples",
4
- "title": "Toggle examples",
5
- "description": "The examples from the shadcn/ui Toggle docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/toggle"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/examples/toggle/toggle-demo.astro",
15
- "content": "---\nimport BookmarkIcon from \"@lucide/astro/icons/bookmark\"\n\nimport { Toggle } from \"@/components/ui/toggle\"\n---\n\n<Toggle aria-label=\"Toggle bookmark\" size=\"sm\" variant=\"outline\">\n <BookmarkIcon class=\"group-aria-pressed/toggle:fill-foreground\" />\n Bookmark\n</Toggle>\n",
16
- "type": "registry:component"
17
- },
18
- {
19
- "path": "src/components/examples/toggle/toggle-disabled.astro",
20
- "content": "---\nimport { Toggle } from \"@/components/ui/toggle\"\n---\n\n<div class=\"flex flex-wrap items-center gap-2\">\n <Toggle aria-label=\"Toggle disabled\" disabled>\n Disabled\n </Toggle>\n <Toggle variant=\"outline\" aria-label=\"Toggle disabled outline\" disabled>\n Disabled\n </Toggle>\n</div>\n",
21
- "type": "registry:component"
22
- },
23
- {
24
- "path": "src/components/examples/toggle/toggle-outline.astro",
25
- "content": "---\nimport BoldIcon from \"@lucide/astro/icons/bold\"\nimport ItalicIcon from \"@lucide/astro/icons/italic\"\n\nimport { Toggle } from \"@/components/ui/toggle\"\n---\n\n<div class=\"flex flex-wrap items-center gap-2\">\n <Toggle variant=\"outline\" aria-label=\"Toggle italic\">\n <ItalicIcon />\n Italic\n </Toggle>\n <Toggle variant=\"outline\" aria-label=\"Toggle bold\">\n <BoldIcon />\n Bold\n </Toggle>\n</div>\n",
26
- "type": "registry:component"
27
- },
28
- {
29
- "path": "src/components/examples/toggle/toggle-rtl.astro",
30
- "content": "---\nimport BookmarkIcon from \"@lucide/astro/icons/bookmark\"\n\nimport { Toggle } from \"@/components/ui/toggle\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n label: \"Bookmark\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n label: \"إشارة مرجعية\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n label: \"סימנייה\",\n },\n },\n} as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<Toggle aria-label=\"Toggle bookmark\" size=\"sm\" variant=\"outline\" dir={dir}>\n <BookmarkIcon class=\"group-aria-pressed/toggle:fill-foreground\" />\n {t.label}\n</Toggle>\n",
31
- "type": "registry:component"
32
- },
33
- {
34
- "path": "src/components/examples/toggle/toggle-sizes.astro",
35
- "content": "---\nimport { Toggle } from \"@/components/ui/toggle\"\n---\n\n<div class=\"flex flex-wrap items-center gap-2\">\n <Toggle variant=\"outline\" aria-label=\"Toggle small\" size=\"sm\">\n Small\n </Toggle>\n <Toggle variant=\"outline\" aria-label=\"Toggle default\" size=\"default\">\n Default\n </Toggle>\n <Toggle variant=\"outline\" aria-label=\"Toggle large\" size=\"lg\">\n Large\n </Toggle>\n</div>\n",
36
- "type": "registry:component"
37
- },
38
- {
39
- "path": "src/components/examples/toggle/toggle-text.astro",
40
- "content": "---\nimport ItalicIcon from \"@lucide/astro/icons/italic\"\n\nimport { Toggle } from \"@/components/ui/toggle\"\n---\n\n<Toggle aria-label=\"Toggle italic\">\n <ItalicIcon />\n Italic\n</Toggle>\n",
41
- "type": "registry:component"
42
- }
43
- ],
44
- "docs": "https://ui.full.dev/components/toggle/",
45
- "type": "registry:example"
46
- }
@@ -1,57 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "toggle-group-examples",
4
- "title": "Toggle Group examples",
5
- "description": "The examples from the shadcn/ui Toggle Group docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/field",
11
- "@fulldev/toggle-group"
12
- ],
13
- "files": [
14
- {
15
- "path": "src/components/examples/toggle-group/toggle-group-demo.astro",
16
- "content": "---\nimport Bold from \"@lucide/astro/icons/bold\"\nimport Italic from \"@lucide/astro/icons/italic\"\nimport Underline from \"@lucide/astro/icons/underline\"\n\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<ToggleGroup variant=\"outline\" multiple>\n <ToggleGroupItem value=\"bold\" aria-label=\"Toggle bold\">\n <Bold />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"italic\" aria-label=\"Toggle italic\">\n <Italic />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"strikethrough\" aria-label=\"Toggle strikethrough\">\n <Underline />\n </ToggleGroupItem>\n</ToggleGroup>\n",
17
- "type": "registry:component"
18
- },
19
- {
20
- "path": "src/components/examples/toggle-group/toggle-group-disabled.astro",
21
- "content": "---\nimport Bold from \"@lucide/astro/icons/bold\"\nimport Italic from \"@lucide/astro/icons/italic\"\nimport Underline from \"@lucide/astro/icons/underline\"\n\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<ToggleGroup disabled>\n <ToggleGroupItem value=\"bold\" aria-label=\"Toggle bold\">\n <Bold />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"italic\" aria-label=\"Toggle italic\">\n <Italic />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"strikethrough\" aria-label=\"Toggle strikethrough\">\n <Underline />\n </ToggleGroupItem>\n</ToggleGroup>\n",
22
- "type": "registry:component"
23
- },
24
- {
25
- "path": "src/components/examples/toggle-group/toggle-group-font-weight-selector.astro",
26
- "content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n\nconst fontWeight = \"normal\"\n---\n\n<Field data-font-weight-selector>\n <FieldLabel>Font Weight</FieldLabel>\n <ToggleGroup\n defaultValue={[fontWeight]}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n <ToggleGroupItem\n value=\"light\"\n aria-label=\"Light\"\n class=\"flex size-16 flex-col items-center justify-center rounded-xl\"\n >\n <span class=\"text-2xl leading-none font-light\">Aa</span>\n <span class=\"text-xs text-muted-foreground\">Light</span>\n </ToggleGroupItem>\n <ToggleGroupItem\n value=\"normal\"\n aria-label=\"Normal\"\n class=\"flex size-16 flex-col items-center justify-center rounded-xl\"\n >\n <span class=\"text-2xl leading-none font-normal\">Aa</span>\n <span class=\"text-xs text-muted-foreground\">Normal</span>\n </ToggleGroupItem>\n <ToggleGroupItem\n value=\"medium\"\n aria-label=\"Medium\"\n class=\"flex size-16 flex-col items-center justify-center rounded-xl\"\n >\n <span class=\"text-2xl leading-none font-medium\">Aa</span>\n <span class=\"text-xs text-muted-foreground\">Medium</span>\n </ToggleGroupItem>\n <ToggleGroupItem\n value=\"bold\"\n aria-label=\"Bold\"\n class=\"flex size-16 flex-col items-center justify-center rounded-xl\"\n >\n <span class=\"text-2xl leading-none font-bold\">Aa</span>\n <span class=\"text-xs text-muted-foreground\">Bold</span>\n </ToggleGroupItem>\n </ToggleGroup>\n <FieldDescription>\n Use{\" \"}\n <code\n class=\"rounded-md bg-muted px-1 py-0.5 font-mono\"\n data-font-weight-class\n >\n font-{fontWeight}\n </code>{\" \"}\n to set the font weight.\n </FieldDescription>\n</Field>\n\n<script>\n const initialize = () => {\n for (const root of document.querySelectorAll(\n \"[data-font-weight-selector]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n const output = root.querySelector(\"[data-font-weight-class]\")\n root\n .querySelector('[data-slot=\"toggle-group\"]')\n ?.addEventListener(\"toggle-group:change\", (event) => {\n const { value } = (event as CustomEvent<{ value: string[] }>).detail\n if (output) output.textContent = `font-${value[0] ?? \"\"}`\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
27
- "type": "registry:component"
28
- },
29
- {
30
- "path": "src/components/examples/toggle-group/toggle-group-outline.astro",
31
- "content": "---\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<ToggleGroup variant=\"outline\" defaultValue={[\"all\"]}>\n <ToggleGroupItem value=\"all\" aria-label=\"Toggle all\">\n All\n </ToggleGroupItem>\n <ToggleGroupItem value=\"missed\" aria-label=\"Toggle missed\">\n Missed\n </ToggleGroupItem>\n</ToggleGroup>\n",
32
- "type": "registry:component"
33
- },
34
- {
35
- "path": "src/components/examples/toggle-group/toggle-group-rtl.astro",
36
- "content": "---\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n list: \"List\",\n grid: \"Grid\",\n cards: \"Cards\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n list: \"قائمة\",\n grid: \"شبكة\",\n cards: \"بطاقات\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n list: \"רשימה\",\n grid: \"רשת\",\n cards: \"כרטיסים\",\n },\n },\n} as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<ToggleGroup variant=\"outline\" defaultValue={[\"list\"]} dir={dir}>\n <ToggleGroupItem value=\"list\" aria-label={t.list}>\n {t.list}\n </ToggleGroupItem>\n <ToggleGroupItem value=\"grid\" aria-label={t.grid}>\n {t.grid}\n </ToggleGroupItem>\n <ToggleGroupItem value=\"cards\" aria-label={t.cards}>\n {t.cards}\n </ToggleGroupItem>\n</ToggleGroup>\n",
37
- "type": "registry:component"
38
- },
39
- {
40
- "path": "src/components/examples/toggle-group/toggle-group-sizes.astro",
41
- "content": "---\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<div class=\"flex flex-col gap-4\">\n <ToggleGroup size=\"sm\" defaultValue={[\"top\"]} variant=\"outline\">\n <ToggleGroupItem value=\"top\" aria-label=\"Toggle top\">\n Top\n </ToggleGroupItem>\n <ToggleGroupItem value=\"bottom\" aria-label=\"Toggle bottom\">\n Bottom\n </ToggleGroupItem>\n <ToggleGroupItem value=\"left\" aria-label=\"Toggle left\">\n Left\n </ToggleGroupItem>\n <ToggleGroupItem value=\"right\" aria-label=\"Toggle right\">\n Right\n </ToggleGroupItem>\n </ToggleGroup>\n <ToggleGroup defaultValue={[\"top\"]} variant=\"outline\">\n <ToggleGroupItem value=\"top\" aria-label=\"Toggle top\">\n Top\n </ToggleGroupItem>\n <ToggleGroupItem value=\"bottom\" aria-label=\"Toggle bottom\">\n Bottom\n </ToggleGroupItem>\n <ToggleGroupItem value=\"left\" aria-label=\"Toggle left\">\n Left\n </ToggleGroupItem>\n <ToggleGroupItem value=\"right\" aria-label=\"Toggle right\">\n Right\n </ToggleGroupItem>\n </ToggleGroup>\n</div>\n",
42
- "type": "registry:component"
43
- },
44
- {
45
- "path": "src/components/examples/toggle-group/toggle-group-spacing.astro",
46
- "content": "---\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<ToggleGroup size=\"sm\" defaultValue={[\"top\"]} variant=\"outline\" spacing={2}>\n <ToggleGroupItem value=\"top\" aria-label=\"Toggle top\">\n Top\n </ToggleGroupItem>\n <ToggleGroupItem value=\"bottom\" aria-label=\"Toggle bottom\">\n Bottom\n </ToggleGroupItem>\n <ToggleGroupItem value=\"left\" aria-label=\"Toggle left\">\n Left\n </ToggleGroupItem>\n <ToggleGroupItem value=\"right\" aria-label=\"Toggle right\">\n Right\n </ToggleGroupItem>\n</ToggleGroup>\n",
47
- "type": "registry:component"
48
- },
49
- {
50
- "path": "src/components/examples/toggle-group/toggle-group-vertical.astro",
51
- "content": "---\nimport BoldIcon from \"@lucide/astro/icons/bold\"\nimport ItalicIcon from \"@lucide/astro/icons/italic\"\nimport UnderlineIcon from \"@lucide/astro/icons/underline\"\n\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\"\n---\n\n<ToggleGroup\n multiple\n orientation=\"vertical\"\n spacing={1}\n defaultValue={[\"bold\", \"italic\"]}\n>\n <ToggleGroupItem value=\"bold\" aria-label=\"Toggle bold\">\n <BoldIcon />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"italic\" aria-label=\"Toggle italic\">\n <ItalicIcon />\n </ToggleGroupItem>\n <ToggleGroupItem value=\"underline\" aria-label=\"Toggle underline\">\n <UnderlineIcon />\n </ToggleGroupItem>\n</ToggleGroup>\n",
52
- "type": "registry:component"
53
- }
54
- ],
55
- "docs": "https://ui.full.dev/components/toggle-group/",
56
- "type": "registry:example"
57
- }
@@ -1,34 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "toggle-group",
4
- "title": "Toggle Group",
5
- "description": "A set of two-state buttons that can be toggled independently or as a single choice.",
6
- "dependencies": [
7
- "@data-slot/toggle-group@^1.1.2"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/toggle"
11
- ],
12
- "files": [
13
- {
14
- "path": "src/components/ui/toggle-group/index.ts",
15
- "content": "export { default as ToggleGroup } from \"./toggle-group.astro\"\nexport { default as ToggleGroupItem } from \"./toggle-group-item.astro\"\n",
16
- "type": "registry:ui"
17
- },
18
- {
19
- "path": "src/components/ui/toggle-group/toggle-group-item.astro",
20
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants, type ToggleVariantProps } from \"@/components/ui/toggle\"\n\ntype Props = HTMLAttributes<\"button\"> &\n ToggleVariantProps & {\n value: string\n disabled?: boolean\n }\n\nconst {\n class: className,\n value,\n disabled,\n variant = \"default\",\n size = \"default\",\n type = \"button\",\n ...props\n} = Astro.props\n---\n\n<button\n data-slot=\"toggle-group-item\"\n data-value={value}\n data-disabled={disabled ? \"\" : undefined}\n type={type}\n disabled={disabled}\n aria-pressed=\"false\"\n class={cn(\n \"data-[state=on]:bg-muted group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:group-data-[spacing=0]/toggle-group:first:rounded-l-md group-data-vertical/toggle-group:group-data-[spacing=0]/toggle-group:first:rounded-t-md group-data-horizontal/toggle-group:group-data-[spacing=0]/toggle-group:last:rounded-r-md group-data-vertical/toggle-group:group-data-[spacing=0]/toggle-group:last:rounded-b-md shrink-0 group-aria-disabled/toggle-group:pointer-events-none group-aria-disabled/toggle-group:opacity-50 focus:z-10 focus-visible:z-10\",\n \"group-data-[variant=outline]/toggle-group:border-input group-data-[variant=outline]/toggle-group:hover:bg-muted group-data-[variant=outline]/toggle-group:border group-data-[variant=outline]/toggle-group:bg-transparent group-data-[variant=outline]/toggle-group:shadow-xs group-data-[variant=default]/toggle-group:border-0 group-data-[variant=default]/toggle-group:shadow-none group-data-[variant=default]/toggle-group:data-[state=off]:bg-transparent group-data-[variant=outline]/toggle-group:data-[state=off]:bg-transparent\",\n \"group-data-[size=default]/toggle-group:h-9 group-data-[size=default]/toggle-group:min-w-9 group-data-[size=default]/toggle-group:px-2.5 group-data-[size=default]/toggle-group:has-data-[icon=inline-end]:pr-2 group-data-[size=default]/toggle-group:has-data-[icon=inline-start]:pl-2 group-data-[size=sm]/toggle-group:h-8 group-data-[size=sm]/toggle-group:min-w-8 group-data-[size=sm]/toggle-group:px-2.5 group-data-[size=sm]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[size=sm]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-[size=lg]/toggle-group:h-10 group-data-[size=lg]/toggle-group:min-w-10 group-data-[size=lg]/toggle-group:px-2.5 group-data-[size=lg]/toggle-group:has-data-[icon=inline-end]:pr-2 group-data-[size=lg]/toggle-group:has-data-[icon=inline-start]:pl-2\",\n toggleVariants({ variant, size }),\n className\n )}\n {...props}\n>\n <slot />\n</button>\n",
21
- "type": "registry:ui"
22
- },
23
- {
24
- "path": "src/components/ui/toggle-group/toggle-group.astro",
25
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport type { ToggleVariantProps } from \"@/components/ui/toggle\"\n\ntype Props = HTMLAttributes<\"div\"> &\n ToggleVariantProps & {\n defaultValue?: string | string[]\n multiple?: boolean\n orientation?: \"horizontal\" | \"vertical\"\n loop?: boolean\n disabled?: boolean\n spacing?: number\n }\n\nconst {\n class: className,\n style,\n defaultValue,\n multiple,\n orientation = \"horizontal\",\n loop,\n disabled,\n variant,\n size,\n spacing = 2,\n ...props\n} = Astro.props\n\nconst serializedDefaultValue = Array.isArray(defaultValue)\n ? defaultValue.join(\" \")\n : defaultValue\n\nconst resolvedStyle =\n typeof style === \"string\"\n ? `--gap: ${spacing}; ${style}`\n : { \"--gap\": spacing, ...(style ?? {}) }\n---\n\n<div\n role=\"group\"\n data-slot=\"toggle-group\"\n data-default-value={serializedDefaultValue}\n data-multiple={multiple ? \"\" : undefined}\n data-orientation={orientation}\n data-horizontal={orientation === \"horizontal\" ? \"\" : undefined}\n data-vertical={orientation === \"vertical\" ? \"\" : undefined}\n data-loop={loop}\n data-disabled={disabled ? \"\" : undefined}\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n style={resolvedStyle}\n class={cn(\n \"rounded-md data-[spacing=0]:data-[variant=outline]:shadow-xs group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-vertical:flex-col data-vertical:items-stretch [&[data-orientation=horizontal][data-spacing='0'][data-variant=outline]>[data-slot=toggle-group-item]:not(:first-child)]:border-l-0 [&[data-orientation=vertical][data-spacing='0'][data-variant=outline]>[data-slot=toggle-group-item]:not(:first-child)]:border-t-0 [&[data-spacing='0']>[data-slot=toggle-group-item]]:shadow-none\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/toggle-group\"\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",
26
- "type": "registry:ui"
27
- }
28
- ],
29
- "docs": "https://ui.full.dev/components/toggle-group/",
30
- "categories": [
31
- "ui"
32
- ],
33
- "type": "registry:ui"
34
- }
@@ -1,31 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "toggle",
4
- "title": "Toggle",
5
- "description": "A two-state button that can be either on or off.",
6
- "dependencies": [
7
- "@data-slot/toggle@^1.1.2"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/toggle/toggle.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { toggleVariants, type ToggleVariantProps } from \"./toggle-variants\"\n\ntype Props = HTMLAttributes<\"button\"> &\n ToggleVariantProps & {\n defaultPressed?: boolean\n disabled?: boolean\n }\n\nconst {\n class: className,\n variant = \"default\",\n size = \"default\",\n defaultPressed,\n disabled,\n type = \"button\",\n ...props\n} = Astro.props\n---\n\n<button\n data-slot=\"toggle\"\n data-default-pressed={defaultPressed}\n data-disabled={disabled}\n type={type}\n disabled={disabled}\n aria-pressed={defaultPressed === true ? \"true\" : \"false\"}\n class={cn(toggleVariants({ variant, size }), className)}\n {...props}\n>\n <slot />\n</button>\n\n<script>\n import { create } from \"@data-slot/toggle\"\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/toggle/toggle-variants.ts",
17
- "content": "import { cva, type VariantProps } from \"class-variance-authority\"\n\nexport const toggleVariants = cva(\n \"hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_svg:not([class*='size-'])]:size-4 group/toggle inline-flex items-center justify-center whitespace-nowrap outline-none hover:bg-muted focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline: \"border-input hover:bg-muted border bg-transparent shadow-xs\",\n },\n size: {\n default: \"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n sm: \"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n lg: \"h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport type ToggleVariantProps = VariantProps<typeof toggleVariants>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/toggle/index.ts",
22
- "content": "export { default as Toggle } from \"./toggle.astro\"\nexport { toggleVariants } from \"./toggle-variants\"\nexport type { ToggleVariantProps } from \"./toggle-variants\"\n",
23
- "type": "registry:ui"
24
- }
25
- ],
26
- "docs": "https://ui.full.dev/components/toggle/",
27
- "categories": [
28
- "ui"
29
- ],
30
- "type": "registry:ui"
31
- }
@@ -1,43 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "tooltip-examples",
4
- "title": "Tooltip examples",
5
- "description": "The examples from the shadcn/ui Tooltip docs.",
6
- "dependencies": [
7
- "@lucide/astro"
8
- ],
9
- "registryDependencies": [
10
- "@fulldev/button",
11
- "@fulldev/kbd",
12
- "@fulldev/tooltip"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/examples/tooltip/tooltip-demo.astro",
17
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n---\n\n<Tooltip>\n <TooltipTrigger class={buttonVariants({ variant: \"outline\" })}>\n Hover\n </TooltipTrigger>\n <TooltipContent>\n <p>Add to library</p>\n </TooltipContent>\n</Tooltip>\n",
18
- "type": "registry:component"
19
- },
20
- {
21
- "path": "src/components/examples/tooltip/tooltip-disabled.astro",
22
- "content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n---\n\n<Tooltip>\n <TooltipTrigger as=\"span\" class=\"inline-block w-fit\">\n <Button variant=\"outline\" disabled>\n Disabled\n </Button>\n </TooltipTrigger>\n <TooltipContent>\n <p>This feature is currently unavailable</p>\n </TooltipContent>\n</Tooltip>\n",
23
- "type": "registry:component"
24
- },
25
- {
26
- "path": "src/components/examples/tooltip/tooltip-keyboard.astro",
27
- "content": "---\nimport SaveIcon from \"@lucide/astro/icons/save\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport { Kbd } from \"@/components/ui/kbd\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n---\n\n<Tooltip>\n <TooltipTrigger\n class={buttonVariants({ variant: \"outline\", size: \"icon-sm\" })}\n >\n <SaveIcon />\n </TooltipTrigger>\n <TooltipContent>\n Save Changes <Kbd>S</Kbd>\n </TooltipContent>\n</Tooltip>\n",
28
- "type": "registry:component"
29
- },
30
- {
31
- "path": "src/components/examples/tooltip/tooltip-rtl.astro",
32
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n content: \"Add to library\",\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 content: \"إضافة إلى المكتبة\",\n \"inline-start\": \"بداية السطر\",\n left: \"يسار\",\n top: \"أعلى\",\n bottom: \"أسفل\",\n right: \"يمين\",\n \"inline-end\": \"نهاية السطر\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n content: \"הוסף לספרייה\",\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\n<div class=\"grid gap-4\">\n <div class=\"flex flex-wrap justify-center gap-2\">\n {physicalSides.map((side) => (\n <Tooltip>\n <TooltipTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </TooltipTrigger>\n <TooltipContent side={side} dir={dir}>\n {t.content}\n </TooltipContent>\n </Tooltip>\n ))}\n </div>\n <div class=\"flex flex-wrap justify-center gap-2\">\n {logicalSides.map((side) => (\n <Tooltip>\n <TooltipTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </TooltipTrigger>\n <TooltipContent side={side} dir={dir}>\n {t.content}\n </TooltipContent>\n </Tooltip>\n ))}\n </div>\n</div>\n",
33
- "type": "registry:component"
34
- },
35
- {
36
- "path": "src/components/examples/tooltip/tooltip-sides.astro",
37
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n---\n\n<div class=\"flex flex-wrap gap-2\">\n {([\"left\", \"top\", \"bottom\", \"right\"] as const).map((side) => (\n <Tooltip>\n <TooltipTrigger\n class={buttonVariants({\n variant: \"outline\",\n class: \"w-fit capitalize\",\n })}\n >\n {side}\n </TooltipTrigger>\n <TooltipContent side={side}>\n <p>Add to library</p>\n </TooltipContent>\n </Tooltip>\n ))}\n</div>\n",
38
- "type": "registry:component"
39
- }
40
- ],
41
- "docs": "https://ui.full.dev/components/tooltip/",
42
- "type": "registry:example"
43
- }
@@ -1,36 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "tooltip",
4
- "title": "Tooltip",
5
- "description": "Displays contextual information when a user hovers or focuses a trigger.",
6
- "dependencies": [
7
- "@data-slot/tooltip@^1.1.2"
8
- ],
9
- "files": [
10
- {
11
- "path": "src/components/ui/tooltip/tooltip.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { TooltipAlign, TooltipSide } from \"@data-slot/tooltip\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n mountStrategy?: \"lazy\" | \"eager\"\n delay?: number\n skipDelayDuration?: number\n side?: TooltipSide\n align?: TooltipAlign\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n portal?: boolean\n}\n\nconst {\n mountStrategy,\n class: className,\n delay = 300,\n skipDelayDuration = 300,\n side = \"top\",\n align = \"center\",\n sideOffset = 4,\n alignOffset = 0,\n avoidCollisions = true,\n collisionPadding = 8,\n portal = true,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"tooltip\"\n data-mount-strategy={mountStrategy}\n data-delay={delay}\n data-skip-delay-duration={skipDelayDuration}\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 class={cn(className)}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/tooltip\"\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/tooltip/tooltip-trigger.astro",
17
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"button\"> &\n HTMLAttributes<\"a\"> &\n HTMLAttributes<\"div\"> &\n HTMLAttributes<\"span\"> & {\n as?: \"a\" | \"button\" | \"div\" | \"span\"\n href?: string\n }\n\nconst { as: explicitTag, class: className, type, ...props } = Astro.props\n\nconst Tag = explicitTag || (\"href\" in Astro.props ? \"a\" : \"button\")\n---\n\n<Tag\n data-slot=\"tooltip-trigger\"\n type={Tag === \"button\" ? type || \"button\" : undefined}\n class={cn(className)}\n {...props}\n>\n <slot />\n</Tag>\n",
18
- "type": "registry:ui"
19
- },
20
- {
21
- "path": "src/components/ui/tooltip/tooltip-content.astro",
22
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport type { TooltipAlign, TooltipSide } from \"@data-slot/tooltip\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: TooltipSide\n align?: TooltipAlign\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n}\n\nconst {\n class: className,\n hidden = true,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"tooltip-portal\">\n <div\n data-slot=\"tooltip-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 class=\"isolate z-[1000]\"\n >\n <div\n data-slot=\"tooltip-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 hidden={hidden}\n class={cn(\n \"data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin) data-instant:animate-none data-instant:transition-none\",\n className\n )}\n {...props}\n >\n <slot />\n <div\n data-slot=\"tooltip-arrow\"\n aria-hidden=\"true\"\n class=\"size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:-top-1 data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-x-[1.5px] data-[side=left]:-right-1 data-[side=left]:-translate-x-[1.5px] data-[side=right]:-left-1 data-[side=right]:translate-x-[1.5px] data-[side=top]:-bottom-1\"\n ></div>\n </div>\n </div>\n</div>\n",
23
- "type": "registry:ui"
24
- },
25
- {
26
- "path": "src/components/ui/tooltip/index.ts",
27
- "content": "export { default as Tooltip } from \"./tooltip.astro\"\nexport { default as TooltipContent } from \"./tooltip-content.astro\"\nexport { default as TooltipTrigger } from \"./tooltip-trigger.astro\"\n",
28
- "type": "registry:ui"
29
- }
30
- ],
31
- "docs": "https://ui.full.dev/components/tooltip/",
32
- "categories": [
33
- "ui"
34
- ],
35
- "type": "registry:ui"
36
- }
@@ -1,103 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "typography",
4
- "title": "Typography",
5
- "description": "Automatic prose styling and semantic text primitives for documentation and content-heavy interfaces.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/typography/typography.astro",
9
- "content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport \"./typeset.css\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props<Tag extends HTMLTag> = Polymorphic<{ as: Tag; size?: Size }>\n\nconst {\n as: Tag = \"div\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n\nconst sizeClass =\n size === \"sm\"\n ? \"[--typeset-flow:1.125em] [--typeset-leading:1.7] [--typeset-size:0.875rem]\"\n : size === \"lg\"\n ? \"[--typeset-flow:1.5em] [--typeset-leading:1.8] [--typeset-size:1.125rem]\"\n : \"[--typeset-flow:1.25em] [--typeset-leading:1.75] [--typeset-size:1rem]\"\n---\n\n<Tag\n data-slot=\"typography\"\n data-size={size}\n class={cn(\"typeset\", sizeClass, className)}\n {...props}\n>\n <slot />\n</Tag>\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/typography/typography-a.astro",
14
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"a\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<a\n data-slot=\"typography-a\"\n data-size={size}\n class={cn(\n \"text-primary font-medium underline underline-offset-4\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</a>\n",
15
- "type": "registry:ui"
16
- },
17
- {
18
- "path": "src/components/ui/typography/typography-blockquote.astro",
19
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"blockquote\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<blockquote\n data-slot=\"typography-blockquote\"\n data-size={size}\n class={cn(\"mt-6 border-s-2 ps-6 italic\", sizeClass, className)}\n {...props}\n>\n <slot />\n</blockquote>\n",
20
- "type": "registry:ui"
21
- },
22
- {
23
- "path": "src/components/ui/typography/typography-h1.astro",
24
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h1\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-3xl\" : size === \"lg\" ? \"text-5xl\" : \"text-4xl\"\n---\n\n<h1\n data-slot=\"typography-h1\"\n data-size={size}\n class={cn(\n \"font-semibold tracking-tight font-heading scroll-m-20 text-balance\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</h1>\n",
25
- "type": "registry:ui"
26
- },
27
- {
28
- "path": "src/components/ui/typography/typography-h2.astro",
29
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h2\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-2xl\" : size === \"lg\" ? \"text-4xl\" : \"text-3xl\"\n---\n\n<h2\n data-slot=\"typography-h2\"\n data-size={size}\n class={cn(\n \"font-semibold tracking-tight font-heading scroll-m-20 first:mt-0\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</h2>\n",
30
- "type": "registry:ui"
31
- },
32
- {
33
- "path": "src/components/ui/typography/typography-h3.astro",
34
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h3\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-xl\" : size === \"lg\" ? \"text-3xl\" : \"text-2xl\"\n---\n\n<h3\n data-slot=\"typography-h3\"\n data-size={size}\n class={cn(\"font-semibold tracking-tight font-heading scroll-m-20\", sizeClass, className)}\n {...props}\n>\n <slot />\n</h3>\n",
35
- "type": "registry:ui"
36
- },
37
- {
38
- "path": "src/components/ui/typography/typography-h4.astro",
39
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"h4\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-lg\" : size === \"lg\" ? \"text-2xl\" : \"text-xl\"\n---\n\n<h4\n data-slot=\"typography-h4\"\n data-size={size}\n class={cn(\"font-semibold tracking-tight font-heading scroll-m-20\", sizeClass, className)}\n {...props}\n>\n <slot />\n</h4>\n",
40
- "type": "registry:ui"
41
- },
42
- {
43
- "path": "src/components/ui/typography/typography-inline-code.astro",
44
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"code\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-xs\" : size === \"lg\" ? \"text-base\" : \"text-sm\"\n---\n\n<code\n data-slot=\"typography-inline-code\"\n data-size={size}\n class={cn(\n \"rounded bg-muted font-mono font-semibold relative px-[0.3rem] py-[0.2rem]\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</code>\n",
45
- "type": "registry:ui"
46
- },
47
- {
48
- "path": "src/components/ui/typography/typography-lead.astro",
49
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"p\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-base\" : size === \"lg\" ? \"text-xl\" : \"text-lg\"\n---\n\n<p\n data-slot=\"typography-lead\"\n data-size={size}\n class={cn(\"text-muted-foreground\", sizeClass, className)}\n {...props}\n>\n <slot />\n</p>\n",
50
- "type": "registry:ui"
51
- },
52
- {
53
- "path": "src/components/ui/typography/typography-list.astro",
54
- "content": "---\nimport type { Polymorphic } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props<Tag extends \"ul\" | \"ol\"> = Polymorphic<{ as: Tag; size?: Size }>\n\nconst {\n as: Tag = \"ul\",\n class: className,\n size = \"default\",\n ...props\n} = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<Tag\n data-slot=\"typography-list\"\n data-size={size}\n data-ordered={Tag === \"ol\" ? \"\" : undefined}\n class={cn(\n \"my-6 ms-6\",\n Tag === \"ol\" ? \"list-decimal\" : \"list-disc\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</Tag>\n",
55
- "type": "registry:ui"
56
- },
57
- {
58
- "path": "src/components/ui/typography/typography-list-item.astro",
59
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"li\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<li\n data-slot=\"typography-list-item\"\n data-size={size}\n class={cn(\"mt-2\", sizeClass, className)}\n {...props}\n>\n <slot />\n</li>\n",
60
- "type": "registry:ui"
61
- },
62
- {
63
- "path": "src/components/ui/typography/typography-p.astro",
64
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"p\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<p\n data-slot=\"typography-p\"\n data-size={size}\n class={cn(\"leading-7 [&:not(:first-child)]:mt-6\", sizeClass, className)}\n {...props}\n>\n <slot />\n</p>\n",
65
- "type": "registry:ui"
66
- },
67
- {
68
- "path": "src/components/ui/typography/typography-table.astro",
69
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"table\"> & {\n containerClass?: string\n size?: Size\n}\n\nconst {\n class: className,\n containerClass,\n size = \"default\",\n ...props\n} = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<div\n data-slot=\"typography-table-container\"\n data-size={size}\n class={cn(\"rounded-xl border border-border my-6 w-full overflow-x-auto\", containerClass)}\n>\n <table\n data-slot=\"typography-table\"\n data-size={size}\n class={cn(\"w-full border-collapse\", sizeClass, className)}\n {...props}\n >\n <slot />\n </table>\n</div>\n",
70
- "type": "registry:ui"
71
- },
72
- {
73
- "path": "src/components/ui/typography/typography-table-row.astro",
74
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"tr\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<tr\n data-slot=\"typography-table-row\"\n data-size={size}\n class={cn(\"even:bg-muted m-0 border-t p-0\", sizeClass, className)}\n {...props}\n>\n <slot />\n</tr>\n",
75
- "type": "registry:ui"
76
- },
77
- {
78
- "path": "src/components/ui/typography/typography-table-head.astro",
79
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"th\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<th\n data-slot=\"typography-table-head\"\n data-size={size}\n class={cn(\n \"border-border border-b px-4 py-3 text-start font-semibold\",\n \"[&[align=left]]:text-left [&[align=center]]:text-center [&[align=right]]:text-right\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</th>\n",
80
- "type": "registry:ui"
81
- },
82
- {
83
- "path": "src/components/ui/typography/typography-table-cell.astro",
84
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Size = \"sm\" | \"default\" | \"lg\"\ntype Props = HTMLAttributes<\"td\"> & {\n size?: Size\n}\n\nconst { class: className, size = \"default\", ...props } = Astro.props\n\nconst sizeClass =\n size === \"sm\" ? \"text-sm\" : size === \"lg\" ? \"text-lg\" : \"text-base\"\n---\n\n<td\n data-slot=\"typography-table-cell\"\n data-size={size}\n class={cn(\n \"border-border border-t px-4 py-3 text-start align-middle\",\n \"[&[align=left]]:text-left [&[align=center]]:text-center [&[align=right]]:text-right\",\n sizeClass,\n className\n )}\n {...props}\n>\n <slot />\n</td>\n",
85
- "type": "registry:ui"
86
- },
87
- {
88
- "path": "src/components/ui/typography/index.ts",
89
- "content": "export { default as Typography } from \"./typography.astro\"\nexport { default as TypographyA } from \"./typography-a.astro\"\nexport { default as TypographyBlockquote } from \"./typography-blockquote.astro\"\nexport { default as TypographyH1 } from \"./typography-h1.astro\"\nexport { default as TypographyH2 } from \"./typography-h2.astro\"\nexport { default as TypographyH3 } from \"./typography-h3.astro\"\nexport { default as TypographyH4 } from \"./typography-h4.astro\"\nexport { default as TypographyInlineCode } from \"./typography-inline-code.astro\"\nexport { default as TypographyLead } from \"./typography-lead.astro\"\nexport { default as TypographyList } from \"./typography-list.astro\"\nexport { default as TypographyListItem } from \"./typography-list-item.astro\"\nexport { default as TypographyP } from \"./typography-p.astro\"\nexport { default as TypographyTable } from \"./typography-table.astro\"\nexport { default as TypographyTableCell } from \"./typography-table-cell.astro\"\nexport { default as TypographyTableHead } from \"./typography-table-head.astro\"\nexport { default as TypographyTableRow } from \"./typography-table-row.astro\"\n",
90
- "type": "registry:ui"
91
- },
92
- {
93
- "path": "src/components/ui/typography/typeset.css",
94
- "content": "@layer components {\n /*\n * shadcn/typeset\n * https://ui.shadcn.com/docs/typeset.\n */\n .typeset {\n --typeset-font-body: inherit;\n --typeset-font-heading: var(--font-heading);\n --typeset-font-mono: var(--font-mono);\n --typeset-size: 1em;\n --typeset-leading: 1.75;\n --typeset-flow: 1.25em;\n }\n}\n\n@layer components {\n .typeset {\n font-family: var(--typeset-font-body);\n font-size: calc(var(--typeset-size) * 1.125);\n line-height: var(--typeset-leading);\n color: var(--color-foreground, currentColor);\n overflow-wrap: break-word;\n margin-trim: block-start;\n\n @media (min-width: 48rem), print {\n font-size: var(--typeset-size);\n }\n\n --typeset-muted: var(\n --color-muted-foreground,\n color-mix(in oklab, currentColor 60%, transparent)\n );\n --typeset-rule: var(\n --color-border,\n color-mix(in oklab, currentColor 20%, transparent)\n );\n }\n\n .typeset\n *:not(\n :where(\n .not-typeset,\n [data-not-typeset],\n .not-typeset *,\n [data-not-typeset] *\n )\n ) {\n &:where(p) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n }\n &:where(h1, h2, h3, h4, h5, h6) {\n color: var(--color-foreground, currentColor);\n font-family: var(--typeset-font-heading);\n font-weight: 600;\n margin-block-end: 0;\n }\n &:where(h1) {\n font-size: 1.75em;\n line-height: 1.3;\n margin-block-start: var(--typeset-flow);\n }\n &:where(h2) {\n font-size: 1.25em;\n line-height: 1.4;\n margin-block-start: calc(var(--typeset-flow) * 1.4);\n }\n &:where(h3) {\n font-size: 1.125em;\n line-height: 1.45;\n margin-block-start: var(--typeset-flow);\n }\n &:where(h4) {\n font-size: 1em;\n line-height: 1.5;\n margin-block-start: var(--typeset-flow);\n }\n &:where(h5) {\n font-size: 0.875em;\n line-height: 1.5;\n font-weight: 500;\n color: var(--typeset-muted);\n margin-block-start: calc(var(--typeset-flow) / 0.875);\n }\n &:where(h6) {\n font-size: 0.8125em;\n line-height: 1.5;\n font-weight: 500;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--typeset-muted);\n margin-block-start: calc(var(--typeset-flow) / 0.8125);\n }\n &:where([id]) {\n scroll-margin-block-start: var(--typeset-flow);\n }\n &:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {\n margin-block-start: 1em;\n }\n &:where(:is(h1, h2, h3, h4) :is(code)) {\n font-size: 0.9em;\n }\n &:where(a) {\n color: inherit;\n font-weight: 500;\n text-decoration-line: underline;\n text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);\n }\n &:where(a:hover) {\n text-decoration-color: currentColor;\n }\n &:where(a:focus-visible) {\n outline: 2px solid var(--color-ring, currentColor);\n outline-offset: 2px;\n border-radius: 0.125em;\n }\n &:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {\n font-weight: inherit;\n }\n &:where(strong, b) {\n font-weight: 600;\n }\n &:where(:is(h1, h2, h3, h4) :is(strong, b)) {\n font-weight: 600;\n }\n &:where(mark) {\n background-color: color-mix(\n in oklab,\n oklch(0.86 0.17 95) 40%,\n transparent\n );\n color: inherit;\n padding: 0.05em 0.15em;\n border-radius: 0.2em;\n }\n &:where(abbr[title]) {\n text-decoration-line: underline;\n text-decoration-style: dotted;\n text-underline-offset: 0.2em;\n cursor: help;\n }\n &:where(del, s) {\n color: var(--typeset-muted);\n text-decoration-line: line-through;\n }\n &:where(sup, sub) {\n font-size: 0.75em;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n &:where(sup) {\n top: -0.5em;\n }\n &:where(sub) {\n bottom: -0.25em;\n }\n &:where(sup a) {\n text-decoration-line: none;\n font-weight: 500;\n }\n &:where(ul) {\n list-style-type: disc;\n }\n &:where(ol) {\n list-style-type: decimal;\n }\n &:where(ul ul) {\n list-style-type: circle;\n }\n &:where(ul ul ul) {\n list-style-type: square;\n }\n &:where(ol[type=\"a\" i]) {\n list-style-type: lower-alpha;\n }\n &:where(ol[type=\"i\" i]) {\n list-style-type: lower-roman;\n }\n &:where(ol[type=\"A\" s]) {\n list-style-type: upper-alpha;\n }\n &:where(ol[type=\"I\" s]) {\n list-style-type: upper-roman;\n }\n &:where(ul, ol) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n padding-inline-start: 1.5em;\n }\n &:where(li) {\n margin-block-start: 0.5em;\n padding-inline-start: 0.4em;\n }\n &:where(li > p, li > ul, li > ol) {\n margin-block-start: 0.5em;\n }\n &:where(ul > li)::marker,\n &:where(ol > li)::marker {\n color: var(--typeset-muted);\n }\n &:where(ul.contains-task-list) {\n list-style-type: none;\n padding-inline-start: 0.25em;\n }\n &:where(li.task-list-item > input[type=\"checkbox\"]) {\n margin-inline-end: 0.5em;\n vertical-align: -0.1em;\n accent-color: var(--color-primary, currentColor);\n }\n &:where(details) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n }\n &:where(summary) {\n cursor: pointer;\n font-weight: 500;\n }\n &:where(summary)::marker {\n color: var(--typeset-muted);\n }\n &:where(kbd) {\n font-family: inherit;\n font-size: 0.85em;\n font-weight: 500;\n border: 1px solid var(--typeset-rule);\n border-block-end-width: 2px;\n border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);\n padding: 0.0625em 0.35em;\n }\n &:where(dl) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n }\n &:where(dt) {\n font-weight: 500;\n margin-block-start: 1em;\n }\n &:where(dt + dt) {\n margin-block-start: 0.25em;\n }\n &:where(dd) {\n margin-block-start: 0.25em;\n margin-inline-start: 0;\n padding-inline-start: 1em;\n color: var(--typeset-muted);\n }\n &:where(:not(pre) > code) {\n background-color: var(\n --color-muted,\n color-mix(in oklab, currentColor 8%, transparent)\n );\n font-family: var(--typeset-font-mono);\n font-size: 0.85em;\n border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);\n padding: 0.125em 0.3em;\n }\n &:where(pre) {\n background-color: var(\n --color-muted,\n color-mix(in oklab, currentColor 8%, transparent)\n );\n font-family: var(--typeset-font-mono);\n font-size: 0.875em;\n line-height: 1.5;\n tab-size: 2;\n direction: ltr;\n border-radius: var(--radius, 0.5em);\n padding: 0.75em 1em;\n overflow-x: auto;\n margin-block-start: calc(var(--typeset-flow) / 0.875);\n margin-block-end: 0;\n }\n &:where(pre code) {\n background-color: transparent;\n font-family: inherit;\n font-size: inherit;\n padding: 0;\n border-radius: 0;\n }\n &:where(blockquote) {\n border-inline-start: 2px solid var(--typeset-rule);\n padding-inline-start: 1em;\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n margin-inline: 0;\n }\n &:where(hr) {\n border: 0;\n border-block-start: 1px solid var(--typeset-rule);\n margin-block-start: calc(var(--typeset-flow) * 2.4);\n margin-block-end: 0;\n }\n &:where(hr + h1, hr + h2, hr + h3, hr + h4) {\n margin-block-start: var(--typeset-flow);\n }\n &:where(.footnotes, [data-footnotes]) {\n margin-block-start: calc(var(--typeset-flow) * 2);\n border-block-start: 1px solid var(--typeset-rule);\n padding-block-start: var(--typeset-flow);\n font-size: 0.875em;\n color: var(--typeset-muted);\n }\n &:where(math[display=\"block\"]) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n overflow-x: auto;\n overflow-y: hidden;\n padding-block: 0.25em;\n }\n &:where(img, video) {\n border-radius: var(--radius, 0.5em);\n max-width: 100%;\n height: auto;\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n }\n &:where(p img) {\n margin-block-start: 0;\n }\n &:where(figure) {\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n margin-inline: 0;\n }\n &:where(figcaption, caption) {\n color: var(--typeset-muted);\n font-size: 0.875em;\n text-align: center;\n margin-block-start: calc(0.75em / 0.875);\n }\n &:where(caption) {\n caption-side: bottom;\n }\n &:where(table) {\n max-width: 100%;\n font-size: 1em;\n line-height: 1.5;\n font-variant-numeric: tabular-nums;\n border-collapse: separate;\n border-spacing: 0;\n border-block-end: 1px solid var(--typeset-rule);\n margin-block-start: var(--typeset-flow);\n margin-block-end: 0;\n }\n &:where(.typeset-scroll) {\n overflow-x: auto;\n margin-block-start: var(--typeset-flow);\n }\n &:where(.typeset-scroll > *) {\n margin-block-start: 0;\n }\n &:where(.typeset-scroll table) {\n width: max-content;\n max-width: none;\n }\n &:where(thead th) {\n font-weight: 500;\n text-align: start;\n white-space: nowrap;\n padding: 0.65em 1em;\n }\n &:where(:is(tbody, tfoot) :is(td, th)) {\n padding: 0.75em 1em;\n text-align: start;\n vertical-align: top;\n border-block-start: 1px solid var(--typeset-rule);\n }\n &:where(tbody th, tfoot th) {\n font-weight: 500;\n }\n &:where(th:first-child, td:first-child) {\n padding-inline-start: 0;\n }\n &:where(th[align=\"center\"], td[align=\"center\"]) {\n text-align: center;\n }\n &:where(th[align=\"right\"], td[align=\"right\"]) {\n text-align: end;\n }\n &:where(li > blockquote, li > table, li > figure) {\n margin-block-start: 0.5em;\n }\n &:where(li > pre) {\n margin-block-start: calc(0.5em / 0.875);\n }\n @media print {\n &:where(pre, table, blockquote, figure) {\n break-inside: avoid;\n }\n &:where(h1, h2, h3, h4) {\n break-after: avoid;\n }\n }\n @media (forced-colors: active) {\n &:where(:not(pre) > code) {\n border: 1px solid;\n }\n }\n }\n\n .typeset\n > :where(:first-child):not(\n :where(\n .not-typeset,\n [data-not-typeset],\n .not-typeset *,\n [data-not-typeset] *\n )\n ),\n .typeset\n > :where(:first-child)\n > :where(:first-child):not(\n :where(\n .not-typeset,\n [data-not-typeset],\n .not-typeset *,\n [data-not-typeset] *\n )\n ),\n .typeset\n :where(\n li > :first-child,\n blockquote > :first-child,\n td > :first-child,\n th > :first-child,\n dd > :first-child,\n figure > :first-child,\n figure > picture > img\n ):not(\n :where(\n .not-typeset,\n [data-not-typeset],\n .not-typeset *,\n [data-not-typeset] *\n )\n ) {\n margin-block-start: 0;\n }\n}\n",
95
- "type": "registry:ui"
96
- }
97
- ],
98
- "docs": "https://ui.full.dev/components/typography/",
99
- "categories": [
100
- "ui"
101
- ],
102
- "type": "registry:ui"
103
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "video",
4
- "title": "Video",
5
- "description": "A responsive video component that supports YouTube videos and shorts.",
6
- "files": [
7
- {
8
- "path": "src/components/ui/video/video.astro",
9
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"iframe\">, \"src\"> & {\n src?: string\n}\n\nconst {\n class: className,\n src,\n title = \"Embedded video\",\n allow = \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",\n allowfullscreen = true,\n \"data-slot\": dataSlot = \"video\",\n ...props\n} = Astro.props\n\nconst getEmbedSrc = (value?: string) => {\n if (!value) return undefined\n\n try {\n const url = new URL(value)\n const host = url.hostname.replace(/^www\\./, \"\")\n\n if (host === \"youtube.com\" && url.pathname === \"/watch\") {\n const id = url.searchParams.get(\"v\")\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtube.com\" && url.pathname.startsWith(\"/shorts/\")) {\n const id = url.pathname.split(\"/\")[2]\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n\n if (host === \"youtu.be\") {\n const id = url.pathname.slice(1)\n return id ? `https://www.youtube-nocookie.com/embed/${id}` : undefined\n }\n } catch {\n return undefined\n }\n}\n\nconst embedSrc = getEmbedSrc(src)\nconst isShort = src?.includes(\"/shorts/\")\n---\n\n{embedSrc && (\n <iframe\n src={embedSrc}\n title={title}\n allow={allow}\n allowfullscreen={allowfullscreen}\n class={cn(\n \"rounded-lg border bg-muted w-full\",\n isShort ? \"aspect-9/16 max-w-xs\" : \"aspect-video\",\n className\n )}\n data-slot={dataSlot}\n {...props}\n />\n)}\n",
10
- "type": "registry:ui"
11
- },
12
- {
13
- "path": "src/components/ui/video/index.ts",
14
- "content": "export { default as Video } from \"./video.astro\"\n",
15
- "type": "registry:ui"
16
- }
17
- ],
18
- "docs": "https://ui.full.dev/components/video/",
19
- "categories": [
20
- "ui"
21
- ],
22
- "type": "registry:ui"
23
- }