fulldev-ui 0.23.0 → 0.24.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 (322) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +7 -5
  3. package/liquid/examples/accordion.liquid +2 -2
  4. package/package.json +28 -27
  5. package/public/r/accordion.json +1 -1
  6. package/public/r/alert-dialog.json +1 -1
  7. package/public/r/code-block-examples.json +33 -0
  8. package/public/r/code-block.json +65 -0
  9. package/public/r/collapsible-examples.json +7 -2
  10. package/public/r/collapsible.json +2 -2
  11. package/public/r/combobox.json +3 -3
  12. package/public/r/command.json +2 -2
  13. package/public/r/components.json +2 -0
  14. package/public/r/dialog.json +1 -1
  15. package/public/r/drawer.json +1 -1
  16. package/public/r/dropdown-menu.json +1 -1
  17. package/public/r/hover-card-examples.json +1 -1
  18. package/public/r/hover-card.json +2 -2
  19. package/public/r/navigation-menu.json +1 -1
  20. package/public/r/popover-examples.json +1 -1
  21. package/public/r/popover.json +1 -1
  22. package/public/r/progress-examples.json +33 -0
  23. package/public/r/progress.json +23 -0
  24. package/public/r/radio-group.json +1 -1
  25. package/public/r/registry.json +164 -27
  26. package/public/r/resizable.json +1 -1
  27. package/public/r/select.json +1 -1
  28. package/public/r/sheet.json +1 -1
  29. package/public/r/sidebar.json +1 -1
  30. package/public/r/slider.json +1 -1
  31. package/public/r/styles/base-luma/accordion.json +1 -1
  32. package/public/r/styles/base-luma/alert-dialog.json +1 -1
  33. package/public/r/styles/base-luma/code-block-examples.json +33 -0
  34. package/public/r/styles/base-luma/code-block.json +65 -0
  35. package/public/r/styles/base-luma/collapsible-examples.json +7 -2
  36. package/public/r/styles/base-luma/collapsible.json +2 -2
  37. package/public/r/styles/base-luma/combobox.json +3 -3
  38. package/public/r/styles/base-luma/command.json +2 -2
  39. package/public/r/styles/base-luma/components.json +2 -0
  40. package/public/r/styles/base-luma/dialog.json +1 -1
  41. package/public/r/styles/base-luma/drawer.json +1 -1
  42. package/public/r/styles/base-luma/dropdown-menu.json +1 -1
  43. package/public/r/styles/base-luma/hover-card-examples.json +1 -1
  44. package/public/r/styles/base-luma/hover-card.json +2 -2
  45. package/public/r/styles/base-luma/navigation-menu.json +1 -1
  46. package/public/r/styles/base-luma/popover-examples.json +1 -1
  47. package/public/r/styles/base-luma/popover.json +1 -1
  48. package/public/r/styles/base-luma/progress-examples.json +33 -0
  49. package/public/r/styles/base-luma/progress.json +23 -0
  50. package/public/r/styles/base-luma/radio-group.json +1 -1
  51. package/public/r/styles/base-luma/registry.json +164 -27
  52. package/public/r/styles/base-luma/resizable.json +1 -1
  53. package/public/r/styles/base-luma/select.json +1 -1
  54. package/public/r/styles/base-luma/sheet.json +1 -1
  55. package/public/r/styles/base-luma/sidebar.json +1 -1
  56. package/public/r/styles/base-luma/slider.json +1 -1
  57. package/public/r/styles/base-luma/switch.json +2 -2
  58. package/public/r/styles/base-luma/tabs.json +1 -1
  59. package/public/r/styles/base-luma/toast.json +3 -3
  60. package/public/r/styles/base-luma/toggle-group.json +1 -1
  61. package/public/r/styles/base-luma/toggle.json +1 -1
  62. package/public/r/styles/base-luma/tooltip.json +1 -1
  63. package/public/r/styles/base-lyra/accordion.json +1 -1
  64. package/public/r/styles/base-lyra/alert-dialog.json +1 -1
  65. package/public/r/styles/base-lyra/code-block-examples.json +33 -0
  66. package/public/r/styles/base-lyra/code-block.json +65 -0
  67. package/public/r/styles/base-lyra/collapsible-examples.json +7 -2
  68. package/public/r/styles/base-lyra/collapsible.json +2 -2
  69. package/public/r/styles/base-lyra/combobox.json +3 -3
  70. package/public/r/styles/base-lyra/command.json +2 -2
  71. package/public/r/styles/base-lyra/components.json +2 -0
  72. package/public/r/styles/base-lyra/dialog.json +1 -1
  73. package/public/r/styles/base-lyra/drawer.json +1 -1
  74. package/public/r/styles/base-lyra/dropdown-menu.json +1 -1
  75. package/public/r/styles/base-lyra/hover-card-examples.json +1 -1
  76. package/public/r/styles/base-lyra/hover-card.json +2 -2
  77. package/public/r/styles/base-lyra/navigation-menu.json +1 -1
  78. package/public/r/styles/base-lyra/popover-examples.json +1 -1
  79. package/public/r/styles/base-lyra/popover.json +1 -1
  80. package/public/r/styles/base-lyra/progress-examples.json +33 -0
  81. package/public/r/styles/base-lyra/progress.json +23 -0
  82. package/public/r/styles/base-lyra/radio-group.json +1 -1
  83. package/public/r/styles/base-lyra/registry.json +164 -27
  84. package/public/r/styles/base-lyra/resizable.json +1 -1
  85. package/public/r/styles/base-lyra/select.json +1 -1
  86. package/public/r/styles/base-lyra/sheet.json +1 -1
  87. package/public/r/styles/base-lyra/sidebar.json +1 -1
  88. package/public/r/styles/base-lyra/slider.json +1 -1
  89. package/public/r/styles/base-lyra/switch.json +2 -2
  90. package/public/r/styles/base-lyra/tabs.json +1 -1
  91. package/public/r/styles/base-lyra/toast.json +3 -3
  92. package/public/r/styles/base-lyra/toggle-group.json +1 -1
  93. package/public/r/styles/base-lyra/toggle.json +1 -1
  94. package/public/r/styles/base-lyra/tooltip.json +1 -1
  95. package/public/r/styles/base-maia/accordion.json +1 -1
  96. package/public/r/styles/base-maia/alert-dialog.json +1 -1
  97. package/public/r/styles/base-maia/code-block-examples.json +33 -0
  98. package/public/r/styles/base-maia/code-block.json +65 -0
  99. package/public/r/styles/base-maia/collapsible-examples.json +7 -2
  100. package/public/r/styles/base-maia/collapsible.json +2 -2
  101. package/public/r/styles/base-maia/combobox.json +3 -3
  102. package/public/r/styles/base-maia/command.json +2 -2
  103. package/public/r/styles/base-maia/components.json +2 -0
  104. package/public/r/styles/base-maia/dialog.json +1 -1
  105. package/public/r/styles/base-maia/drawer.json +1 -1
  106. package/public/r/styles/base-maia/dropdown-menu.json +1 -1
  107. package/public/r/styles/base-maia/hover-card-examples.json +1 -1
  108. package/public/r/styles/base-maia/hover-card.json +2 -2
  109. package/public/r/styles/base-maia/navigation-menu.json +1 -1
  110. package/public/r/styles/base-maia/popover-examples.json +1 -1
  111. package/public/r/styles/base-maia/popover.json +1 -1
  112. package/public/r/styles/base-maia/progress-examples.json +33 -0
  113. package/public/r/styles/base-maia/progress.json +23 -0
  114. package/public/r/styles/base-maia/radio-group.json +1 -1
  115. package/public/r/styles/base-maia/registry.json +164 -27
  116. package/public/r/styles/base-maia/resizable.json +1 -1
  117. package/public/r/styles/base-maia/select.json +1 -1
  118. package/public/r/styles/base-maia/sheet.json +1 -1
  119. package/public/r/styles/base-maia/sidebar.json +1 -1
  120. package/public/r/styles/base-maia/slider.json +1 -1
  121. package/public/r/styles/base-maia/switch.json +2 -2
  122. package/public/r/styles/base-maia/tabs.json +1 -1
  123. package/public/r/styles/base-maia/toast.json +3 -3
  124. package/public/r/styles/base-maia/toggle-group.json +1 -1
  125. package/public/r/styles/base-maia/toggle.json +1 -1
  126. package/public/r/styles/base-maia/tooltip.json +1 -1
  127. package/public/r/styles/base-mira/accordion.json +1 -1
  128. package/public/r/styles/base-mira/alert-dialog.json +1 -1
  129. package/public/r/styles/base-mira/code-block-examples.json +33 -0
  130. package/public/r/styles/base-mira/code-block.json +65 -0
  131. package/public/r/styles/base-mira/collapsible-examples.json +7 -2
  132. package/public/r/styles/base-mira/collapsible.json +2 -2
  133. package/public/r/styles/base-mira/combobox.json +3 -3
  134. package/public/r/styles/base-mira/command.json +2 -2
  135. package/public/r/styles/base-mira/components.json +2 -0
  136. package/public/r/styles/base-mira/dialog.json +1 -1
  137. package/public/r/styles/base-mira/drawer.json +1 -1
  138. package/public/r/styles/base-mira/dropdown-menu.json +1 -1
  139. package/public/r/styles/base-mira/hover-card-examples.json +1 -1
  140. package/public/r/styles/base-mira/hover-card.json +2 -2
  141. package/public/r/styles/base-mira/navigation-menu.json +1 -1
  142. package/public/r/styles/base-mira/popover-examples.json +1 -1
  143. package/public/r/styles/base-mira/popover.json +1 -1
  144. package/public/r/styles/base-mira/progress-examples.json +33 -0
  145. package/public/r/styles/base-mira/progress.json +23 -0
  146. package/public/r/styles/base-mira/radio-group.json +1 -1
  147. package/public/r/styles/base-mira/registry.json +164 -27
  148. package/public/r/styles/base-mira/resizable.json +1 -1
  149. package/public/r/styles/base-mira/select.json +1 -1
  150. package/public/r/styles/base-mira/sheet.json +1 -1
  151. package/public/r/styles/base-mira/sidebar.json +1 -1
  152. package/public/r/styles/base-mira/slider.json +1 -1
  153. package/public/r/styles/base-mira/switch.json +2 -2
  154. package/public/r/styles/base-mira/tabs.json +1 -1
  155. package/public/r/styles/base-mira/toast.json +3 -3
  156. package/public/r/styles/base-mira/toggle-group.json +1 -1
  157. package/public/r/styles/base-mira/toggle.json +1 -1
  158. package/public/r/styles/base-mira/tooltip.json +1 -1
  159. package/public/r/styles/base-nova/accordion.json +1 -1
  160. package/public/r/styles/base-nova/alert-dialog.json +1 -1
  161. package/public/r/styles/base-nova/code-block-examples.json +33 -0
  162. package/public/r/styles/base-nova/code-block.json +65 -0
  163. package/public/r/styles/base-nova/collapsible-examples.json +7 -2
  164. package/public/r/styles/base-nova/collapsible.json +2 -2
  165. package/public/r/styles/base-nova/combobox.json +3 -3
  166. package/public/r/styles/base-nova/command.json +2 -2
  167. package/public/r/styles/base-nova/components.json +2 -0
  168. package/public/r/styles/base-nova/dialog.json +1 -1
  169. package/public/r/styles/base-nova/drawer.json +1 -1
  170. package/public/r/styles/base-nova/dropdown-menu.json +1 -1
  171. package/public/r/styles/base-nova/hover-card-examples.json +1 -1
  172. package/public/r/styles/base-nova/hover-card.json +2 -2
  173. package/public/r/styles/base-nova/navigation-menu.json +1 -1
  174. package/public/r/styles/base-nova/popover-examples.json +1 -1
  175. package/public/r/styles/base-nova/popover.json +1 -1
  176. package/public/r/styles/base-nova/progress-examples.json +33 -0
  177. package/public/r/styles/base-nova/progress.json +23 -0
  178. package/public/r/styles/base-nova/radio-group.json +1 -1
  179. package/public/r/styles/base-nova/registry.json +164 -27
  180. package/public/r/styles/base-nova/resizable.json +1 -1
  181. package/public/r/styles/base-nova/select.json +1 -1
  182. package/public/r/styles/base-nova/sheet.json +1 -1
  183. package/public/r/styles/base-nova/sidebar.json +1 -1
  184. package/public/r/styles/base-nova/slider.json +1 -1
  185. package/public/r/styles/base-nova/switch.json +2 -2
  186. package/public/r/styles/base-nova/tabs.json +1 -1
  187. package/public/r/styles/base-nova/toast.json +3 -3
  188. package/public/r/styles/base-nova/toggle-group.json +1 -1
  189. package/public/r/styles/base-nova/toggle.json +1 -1
  190. package/public/r/styles/base-nova/tooltip.json +1 -1
  191. package/public/r/styles/base-rhea/accordion.json +1 -1
  192. package/public/r/styles/base-rhea/alert-dialog.json +1 -1
  193. package/public/r/styles/base-rhea/code-block-examples.json +33 -0
  194. package/public/r/styles/base-rhea/code-block.json +65 -0
  195. package/public/r/styles/base-rhea/collapsible-examples.json +7 -2
  196. package/public/r/styles/base-rhea/collapsible.json +2 -2
  197. package/public/r/styles/base-rhea/combobox.json +3 -3
  198. package/public/r/styles/base-rhea/command.json +2 -2
  199. package/public/r/styles/base-rhea/components.json +2 -0
  200. package/public/r/styles/base-rhea/dialog.json +1 -1
  201. package/public/r/styles/base-rhea/drawer.json +1 -1
  202. package/public/r/styles/base-rhea/dropdown-menu.json +1 -1
  203. package/public/r/styles/base-rhea/hover-card-examples.json +1 -1
  204. package/public/r/styles/base-rhea/hover-card.json +2 -2
  205. package/public/r/styles/base-rhea/navigation-menu.json +1 -1
  206. package/public/r/styles/base-rhea/popover-examples.json +1 -1
  207. package/public/r/styles/base-rhea/popover.json +1 -1
  208. package/public/r/styles/base-rhea/progress-examples.json +33 -0
  209. package/public/r/styles/base-rhea/progress.json +23 -0
  210. package/public/r/styles/base-rhea/radio-group.json +1 -1
  211. package/public/r/styles/base-rhea/registry.json +164 -27
  212. package/public/r/styles/base-rhea/resizable.json +1 -1
  213. package/public/r/styles/base-rhea/select.json +1 -1
  214. package/public/r/styles/base-rhea/sheet.json +1 -1
  215. package/public/r/styles/base-rhea/sidebar.json +1 -1
  216. package/public/r/styles/base-rhea/slider.json +1 -1
  217. package/public/r/styles/base-rhea/switch.json +2 -2
  218. package/public/r/styles/base-rhea/tabs.json +1 -1
  219. package/public/r/styles/base-rhea/toast.json +3 -3
  220. package/public/r/styles/base-rhea/toggle-group.json +1 -1
  221. package/public/r/styles/base-rhea/toggle.json +1 -1
  222. package/public/r/styles/base-rhea/tooltip.json +1 -1
  223. package/public/r/styles/base-sera/accordion.json +1 -1
  224. package/public/r/styles/base-sera/alert-dialog.json +1 -1
  225. package/public/r/styles/base-sera/code-block-examples.json +33 -0
  226. package/public/r/styles/base-sera/code-block.json +65 -0
  227. package/public/r/styles/base-sera/collapsible-examples.json +7 -2
  228. package/public/r/styles/base-sera/collapsible.json +2 -2
  229. package/public/r/styles/base-sera/combobox.json +3 -3
  230. package/public/r/styles/base-sera/command.json +2 -2
  231. package/public/r/styles/base-sera/components.json +2 -0
  232. package/public/r/styles/base-sera/dialog.json +1 -1
  233. package/public/r/styles/base-sera/drawer.json +1 -1
  234. package/public/r/styles/base-sera/dropdown-menu.json +1 -1
  235. package/public/r/styles/base-sera/hover-card-examples.json +1 -1
  236. package/public/r/styles/base-sera/hover-card.json +2 -2
  237. package/public/r/styles/base-sera/navigation-menu.json +1 -1
  238. package/public/r/styles/base-sera/popover-examples.json +1 -1
  239. package/public/r/styles/base-sera/popover.json +1 -1
  240. package/public/r/styles/base-sera/progress-examples.json +33 -0
  241. package/public/r/styles/base-sera/progress.json +23 -0
  242. package/public/r/styles/base-sera/radio-group.json +1 -1
  243. package/public/r/styles/base-sera/registry.json +164 -27
  244. package/public/r/styles/base-sera/resizable.json +1 -1
  245. package/public/r/styles/base-sera/select.json +1 -1
  246. package/public/r/styles/base-sera/sheet.json +1 -1
  247. package/public/r/styles/base-sera/sidebar.json +1 -1
  248. package/public/r/styles/base-sera/slider.json +1 -1
  249. package/public/r/styles/base-sera/switch.json +2 -2
  250. package/public/r/styles/base-sera/tabs.json +1 -1
  251. package/public/r/styles/base-sera/toast.json +3 -3
  252. package/public/r/styles/base-sera/toggle-group.json +1 -1
  253. package/public/r/styles/base-sera/toggle.json +1 -1
  254. package/public/r/styles/base-sera/tooltip.json +1 -1
  255. package/public/r/styles/base-vega/accordion.json +1 -1
  256. package/public/r/styles/base-vega/alert-dialog.json +1 -1
  257. package/public/r/styles/base-vega/code-block-examples.json +33 -0
  258. package/public/r/styles/base-vega/code-block.json +65 -0
  259. package/public/r/styles/base-vega/collapsible-examples.json +7 -2
  260. package/public/r/styles/base-vega/collapsible.json +2 -2
  261. package/public/r/styles/base-vega/combobox.json +3 -3
  262. package/public/r/styles/base-vega/command.json +2 -2
  263. package/public/r/styles/base-vega/components.json +2 -0
  264. package/public/r/styles/base-vega/dialog.json +1 -1
  265. package/public/r/styles/base-vega/drawer.json +1 -1
  266. package/public/r/styles/base-vega/dropdown-menu.json +1 -1
  267. package/public/r/styles/base-vega/hover-card-examples.json +1 -1
  268. package/public/r/styles/base-vega/hover-card.json +2 -2
  269. package/public/r/styles/base-vega/navigation-menu.json +1 -1
  270. package/public/r/styles/base-vega/popover-examples.json +1 -1
  271. package/public/r/styles/base-vega/popover.json +1 -1
  272. package/public/r/styles/base-vega/progress-examples.json +33 -0
  273. package/public/r/styles/base-vega/progress.json +23 -0
  274. package/public/r/styles/base-vega/radio-group.json +1 -1
  275. package/public/r/styles/base-vega/registry.json +164 -27
  276. package/public/r/styles/base-vega/resizable.json +1 -1
  277. package/public/r/styles/base-vega/select.json +1 -1
  278. package/public/r/styles/base-vega/sheet.json +1 -1
  279. package/public/r/styles/base-vega/sidebar.json +1 -1
  280. package/public/r/styles/base-vega/slider.json +1 -1
  281. package/public/r/styles/base-vega/switch.json +2 -2
  282. package/public/r/styles/base-vega/tabs.json +1 -1
  283. package/public/r/styles/base-vega/toast.json +3 -3
  284. package/public/r/styles/base-vega/toggle-group.json +1 -1
  285. package/public/r/styles/base-vega/toggle.json +1 -1
  286. package/public/r/styles/base-vega/tooltip.json +1 -1
  287. package/public/r/switch.json +2 -2
  288. package/public/r/tabs.json +1 -1
  289. package/public/r/toast.json +3 -3
  290. package/public/r/toggle-group.json +1 -1
  291. package/public/r/toggle.json +1 -1
  292. package/public/r/tooltip.json +1 -1
  293. package/registry.json +151 -27
  294. package/src/components/examples/code-block/code-block-demo.astro +24 -0
  295. package/src/components/examples/code-block/code-block-lines.astro +20 -0
  296. package/src/components/examples/code-block/code-block-numbered.astro +13 -0
  297. package/src/components/examples/code-block/code-block-wrap.astro +20 -0
  298. package/src/components/examples/collapsible/collapsible-demo.astro +1 -1
  299. package/src/components/examples/collapsible/collapsible-dismissal.astro +46 -0
  300. package/src/components/examples/collapsible/collapsible-rtl.astro +1 -1
  301. package/src/components/examples/hover-card/hover-card-sides.astro +1 -1
  302. package/src/components/examples/popover/popover-demo.astro +1 -1
  303. package/src/components/examples/progress/progress-custom-max.astro +12 -0
  304. package/src/components/examples/progress/progress-demo.astro +10 -0
  305. package/src/components/examples/progress/progress-indeterminate.astro +5 -0
  306. package/src/components/examples/progress/progress-rtl.astro +11 -0
  307. package/src/components/ui/code-block/code-block-actions.astro +19 -0
  308. package/src/components/ui/code-block/code-block-content.astro +44 -0
  309. package/src/components/ui/code-block/code-block-copy-button.astro +88 -0
  310. package/src/components/ui/code-block/code-block-footer.astro +19 -0
  311. package/src/components/ui/code-block/code-block-header.astro +19 -0
  312. package/src/components/ui/code-block/code-block-line.astro +36 -0
  313. package/src/components/ui/code-block/code-block-title.astro +19 -0
  314. package/src/components/ui/code-block/code-block.astro +41 -0
  315. package/src/components/ui/code-block/index.ts +8 -0
  316. package/src/components/ui/collapsible/collapsible.astro +6 -0
  317. package/src/components/ui/combobox/combobox-input.astro +9 -2
  318. package/src/components/ui/progress/index.ts +1 -0
  319. package/src/components/ui/progress/progress.astro +83 -0
  320. package/src/components/ui/toast/toast-item.astro +3 -3
  321. package/src/components/ui/toast/toast-viewport.astro +3 -3
  322. package/src/styles/global.css +5 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Fulldev UI
2
2
 
3
+ ## 0.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#292](https://github.com/fulldotdev/ui/pull/292) [`8f36a67`](https://github.com/fulldotdev/ui/commit/8f36a67fafb6c85a958fb37cd61782c39ab139b1) Thanks [@silveltman](https://github.com/silveltman)! - `Toast` renders its viewport as a `section` and each toast as a `div`, like the native Liquid toast. The `region` role the toast script gives the viewport was not allowed on the `ol` it was before, which axe reported as `aria-allowed-role`. The Collapsible, Hover Card and Popover examples show their card titles as text instead of `h4` headings, so docs pages keep their heading order. The Switch description no longer repeats the Checkbox description.
8
+
9
+ ## 0.24.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#285](https://github.com/fulldotdev/ui/pull/285) [`56afa23`](https://github.com/fulldotdev/ui/commit/56afa23ca2c3cc6b57bd4ed66d16a625ee4db284) Thanks [@silveltman](https://github.com/silveltman)! - Add Astro Code Block and Progress components with examples and all eight styles.
14
+ Update data-slot to 1.1.2, expose optional Collapsible dismissal, and fix the
15
+ Combobox clear button's accessible name and empty state. Refresh the upstream
16
+ shadcn style sources and the React preview's Base UI dependency.
17
+
3
18
  ## 0.23.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -88,17 +88,19 @@ Requires Node 24 (`.node-version`) and pnpm 12. The published package supports N
88
88
  ```bash
89
89
  pnpm install # frozen lockfile in CI and on Netlify
90
90
  pnpm dev # docs site at http://127.0.0.1:4321
91
- pnpm build # builds the docs, then validates HTML and internal links and anchors
92
- pnpm check # the checks every PR runs
93
- pnpm fix # Prettier and ESLint fixes
91
+ vp run build # builds the docs and the React previews
92
+ vp run check:build # validates the built HTML and internal links and anchors
93
+ vp run check:source # the source checks every Ready PR runs
94
+ vp run test:unit # the tests in tests, which Ready PRs also run
95
+ vp run fix:source # Prettier and ESLint fixes
94
96
  pnpm images # converts source photos in src to WebP
95
97
  pnpm ui:add @shadcn/card # installs with the shadcn CLI, then runs Prettier
96
98
  pnpm registry:build # regenerates public/r after registry changes
97
99
  ```
98
100
 
99
- `pnpm check` runs Prettier, TypeScript and `astro check`, ESLint, knip, the source photo check, and, specific to this registry, `registry:check` (the committed `public/r` must match a fresh build) and the tests in `tests`.
101
+ `vp run check:source` runs Prettier, TypeScript and `astro check`, ESLint, knip, the source photo check, and, specific to this registry, `registry:check` (the committed `public/r` must match a fresh build). `vp run test:unit` runs the tests in `tests`.
100
102
 
101
- `pnpm ui:add` formats the project right after the install, so a later `pnpm fix` or `pnpm check` does not change the installed components. A plain `pnpm dlx shadcn@latest add` leaves the CLI's own formatting, which the next format run may change.
103
+ `pnpm ui:add` formats the project right after the install, so a later `vp run fix:source` or `vp run check:source` does not change the installed components. A plain `pnpm dlx shadcn@latest add` leaves the CLI's own formatting, which the next format run may change.
102
104
 
103
105
  ## Contributing
104
106
 
@@ -1,10 +1,10 @@
1
1
  <div data-slot='accordion' data-multiple='false'>
2
2
  <div data-slot='accordion-item' data-value='details'>
3
- <h3 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Product details</button></h3>
3
+ <h2 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Product details</button></h2>
4
4
  <div data-slot='accordion-content'><p>Place your product details here.</p></div>
5
5
  </div>
6
6
  <div data-slot='accordion-item' data-value='care'>
7
- <h3 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Care instructions</button></h3>
7
+ <h2 data-slot='accordion-header'><button type='button' data-slot='accordion-trigger'>Care instructions</button></h2>
8
8
  <div data-slot='accordion-content'><p>Add care instructions for your product.</p></div>
9
9
  </div>
10
10
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
3
  "type": "module",
4
- "version": "0.23.0",
4
+ "version": "0.24.1",
5
5
  "description": "Open-source UI components for Astro, React and native Liquid",
6
6
  "homepage": "https://ui.full.dev",
7
7
  "bugs": "https://github.com/fulldotdev/ui/issues",
@@ -54,28 +54,28 @@
54
54
  "#liquid-fixture": "./tests/helpers/liquid.mjs"
55
55
  },
56
56
  "dependencies": {
57
- "@data-slot/accordion": "^1.0.2",
58
- "@data-slot/alert-dialog": "^1.0.2",
59
- "@data-slot/collapsible": "^1.0.2",
60
- "@data-slot/combobox": "^1.0.2",
61
- "@data-slot/command": "^1.0.2",
62
- "@data-slot/core": "^1.0.2",
63
- "@data-slot/dialog": "^1.0.2",
64
- "@data-slot/drawer": "^1.0.2",
65
- "@data-slot/dropdown-menu": "^1.0.2",
66
- "@data-slot/hover-card": "^1.0.2",
67
- "@data-slot/navigation-menu": "^1.0.2",
68
- "@data-slot/popover": "^1.0.2",
69
- "@data-slot/radio-group": "^1.0.2",
70
- "@data-slot/resizable": "^1.0.2",
71
- "@data-slot/select": "^1.0.2",
72
- "@data-slot/slider": "^1.0.2",
73
- "@data-slot/switch": "^1.0.2",
74
- "@data-slot/tabs": "^1.0.2",
75
- "@data-slot/toast": "^1.0.2",
76
- "@data-slot/toggle": "^1.0.2",
77
- "@data-slot/toggle-group": "^1.0.2",
78
- "@data-slot/tooltip": "^1.0.2",
57
+ "@data-slot/accordion": "^1.1.2",
58
+ "@data-slot/alert-dialog": "^1.1.2",
59
+ "@data-slot/collapsible": "^1.1.2",
60
+ "@data-slot/combobox": "^1.1.2",
61
+ "@data-slot/command": "^1.1.2",
62
+ "@data-slot/core": "^1.1.2",
63
+ "@data-slot/dialog": "^1.1.2",
64
+ "@data-slot/drawer": "^1.1.2",
65
+ "@data-slot/dropdown-menu": "^1.1.2",
66
+ "@data-slot/hover-card": "^1.1.2",
67
+ "@data-slot/navigation-menu": "^1.1.2",
68
+ "@data-slot/popover": "^1.1.2",
69
+ "@data-slot/radio-group": "^1.1.2",
70
+ "@data-slot/resizable": "^1.1.2",
71
+ "@data-slot/select": "^1.1.2",
72
+ "@data-slot/slider": "^1.1.2",
73
+ "@data-slot/switch": "^1.1.2",
74
+ "@data-slot/tabs": "^1.1.2",
75
+ "@data-slot/toast": "^1.1.2",
76
+ "@data-slot/toggle": "^1.1.2",
77
+ "@data-slot/toggle-group": "^1.1.2",
78
+ "@data-slot/tooltip": "^1.1.2",
79
79
  "@lexingtonthemes/seo": "^0.4.0",
80
80
  "@lucide/astro": "^1.49.0",
81
81
  "class-variance-authority": "^0.7.1",
@@ -133,13 +133,14 @@
133
133
  "stop": "lsof -tiTCP:4321 -sTCP:LISTEN | xargs kill 2>/dev/null || true",
134
134
  "preview": "pnpm stop && pnpm build && astro preview --host 127.0.0.1 --port 4321",
135
135
  "typecheck": "tsc --noEmit --noCheck && astro check --minimumFailingSeverity hint && tsc --noEmit -p react",
136
- "check": "prettier --check . && pnpm typecheck && eslint . && knip && node scripts/images.ts --check && pnpm registry:check && pnpm test",
137
- "test": "node --test tests/*.test.mjs",
136
+ "check:source": "prettier --check . && pnpm typecheck && eslint . && knip && node scripts/images.ts --check && pnpm registry:check",
137
+ "test:unit": "node --test tests/*.test.mjs",
138
138
  "test:browser": "node --test tests/browser/*.test.mjs",
139
- "fix": "prettier --write . && eslint . --fix",
139
+ "fix:source": "prettier --write . && eslint . --fix",
140
140
  "images": "node scripts/images.ts",
141
141
  "ui:add": "node scripts/ui-add.ts",
142
- "build": "astro build && pnpm --dir react build && html-validate dist && linkinator dist",
142
+ "build": "astro build && pnpm --dir react build",
143
+ "check:build": "html-validate dist && linkinator dist",
143
144
  "a11y": "pnpm build && playwright install chromium --only-shell && node scripts/a11y.mjs",
144
145
  "registry:build": "pnpm registry:meta && node scripts/registry-adapt.mjs && shadcn build --output node_modules/.cache/fulldev-registry && node scripts/registry-styles.mjs && shadcn build -c react -o ../node_modules/.cache/fulldev-registry-react && node scripts/registry-styles.mjs node_modules/.cache/fulldev-registry-react react/registry.json public/r/react && pnpm registry:liquid && prettier --write registry.json react/registry.json public/r registry/styles/adapted --log-level warn",
145
146
  "registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json react/registry.json liquid public/r registry/styles/adapted",
@@ -4,7 +4,7 @@
4
4
  "title": "Accordion",
5
5
  "description": "A vertically stacked set of interactive headings that each reveal a section of content.",
6
6
  "dependencies": [
7
- "@data-slot/accordion@^1.0.2",
7
+ "@data-slot/accordion@^1.1.2",
8
8
  "@lucide/astro"
9
9
  ],
10
10
  "files": [
@@ -4,7 +4,7 @@
4
4
  "title": "Alert Dialog",
5
5
  "description": "A modal dialog for important confirmations that expects a response.",
6
6
  "dependencies": [
7
- "@data-slot/alert-dialog@^1.0.2"
7
+ "@data-slot/alert-dialog@^1.1.2"
8
8
  ],
9
9
  "registryDependencies": [
10
10
  "@fulldev/button"
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "code-block-examples",
4
+ "title": "Code Block examples",
5
+ "description": "The examples from the shadcn/ui Code Block docs.",
6
+ "registryDependencies": [
7
+ "@fulldev/code-block"
8
+ ],
9
+ "files": [
10
+ {
11
+ "path": "src/components/examples/code-block/code-block-demo.astro",
12
+ "content": "---\nimport {\n CodeBlock,\n CodeBlockActions,\n CodeBlockContent,\n CodeBlockCopyButton,\n CodeBlockHeader,\n CodeBlockTitle,\n} from \"@/components/ui/code-block\"\n\nconst code = `import { Button } from \"@/components/ui/button\"\n\n<Button href=\"/contact/\">Contact us</Button>`\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockHeader>\n <CodeBlockTitle>contact.astro</CodeBlockTitle>\n <CodeBlockActions>\n <CodeBlockCopyButton value={code} />\n </CodeBlockActions>\n </CodeBlockHeader>\n <CodeBlockContent code={code} />\n</CodeBlock>\n",
13
+ "type": "registry:component"
14
+ },
15
+ {
16
+ "path": "src/components/examples/code-block/code-block-lines.astro",
17
+ "content": "---\nimport {\n CodeBlock,\n CodeBlockContent,\n CodeBlockLine,\n} from \"@/components/ui/code-block\"\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockContent lineNumbers startLine={12}>\n <CodeBlockLine>export const site = &#123;</CodeBlockLine>\n <CodeBlockLine variant=\"removed\">{' title: \"Our website\",'}</CodeBlockLine>\n <CodeBlockLine variant=\"added\">\n {' title: \"Our new website\",'}\n </CodeBlockLine>\n <CodeBlockLine />\n <CodeBlockLine variant=\"highlighted\">{' lang: \"en\",'}</CodeBlockLine>\n <CodeBlockLine>&#125;</CodeBlockLine>\n </CodeBlockContent>\n</CodeBlock>\n",
18
+ "type": "registry:component"
19
+ },
20
+ {
21
+ "path": "src/components/examples/code-block/code-block-numbered.astro",
22
+ "content": "---\nimport { CodeBlock, CodeBlockContent } from \"@/components/ui/code-block\"\n\nconst code = `{\n \"name\": \"our-website\",\n\n \"private\": true\n}`\n---\n\n<CodeBlock class=\"max-w-lg\">\n <CodeBlockContent code={code} lineNumbers />\n</CodeBlock>\n",
23
+ "type": "registry:component"
24
+ },
25
+ {
26
+ "path": "src/components/examples/code-block/code-block-wrap.astro",
27
+ "content": "---\nimport {\n CodeBlock,\n CodeBlockActions,\n CodeBlockContent,\n CodeBlockCopyButton,\n CodeBlockFooter,\n} from \"@/components/ui/code-block\"\n\nconst code =\n \"A long explanation can wrap inside a code block without making the surrounding article or the page scroll horizontally.\"\n---\n\n<CodeBlock size=\"sm\" class=\"max-w-sm\">\n <CodeBlockActions>\n <CodeBlockCopyButton value={code} />\n </CodeBlockActions>\n <CodeBlockContent code={code} wrap />\n <CodeBlockFooter>Plain text, with line wrapping.</CodeBlockFooter>\n</CodeBlock>\n",
28
+ "type": "registry:component"
29
+ }
30
+ ],
31
+ "docs": "https://ui.full.dev/components/code-block/",
32
+ "type": "registry:example"
33
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "code-block",
4
+ "title": "Code Block",
5
+ "description": "Code and plain-text snippets with copy actions, line numbers and highlighted lines.",
6
+ "dependencies": [
7
+ "@lucide/astro",
8
+ "class-variance-authority"
9
+ ],
10
+ "registryDependencies": [
11
+ "@fulldev/button"
12
+ ],
13
+ "files": [
14
+ {
15
+ "path": "src/components/ui/code-block/code-block-actions.astro",
16
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"code-block-actions\"\n class={cn(\n \"-my-1 -me-1.5 gap-1 [[data-slot=code-block]>&]:m-0 [[data-slot=code-block]>&]:top-3 [[data-slot=code-block]>&]:end-3 group-data-[size=sm]/code-block:[[data-slot=code-block]>&]:top-2 group-data-[size=sm]/code-block:[[data-slot=code-block]>&]:end-2 [[data-slot=code-block]>&]:*:[button]:bg-background [[data-slot=code-block]>&]:*:[button]:ring-1 [[data-slot=code-block]>&]:*:[button]:ring-foreground/10 ms-auto flex shrink-0 items-center [[data-slot=code-block]>&]:absolute [[data-slot=code-block]>&]:z-10 [[data-slot=code-block]>&]:opacity-0 [[data-slot=code-block]>&]:transition-opacity [[data-slot=code-block]>&]:group-focus-within/code-block:opacity-100 [[data-slot=code-block]>&]:group-hover/code-block:opacity-100 [[data-slot=code-block]>&]:pointer-coarse:opacity-100\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "src/components/ui/code-block/code-block-content.astro",
21
+ "content": "---\n/* eslint-disable astro/jsx-a11y/no-noninteractive-tabindex -- Focusable code supports keyboard scrolling, as in shadcn/ui. */\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport CodeBlockLine from \"./code-block-line.astro\"\n\ntype Props = HTMLAttributes<\"pre\"> & {\n code?: string\n wrap?: boolean\n lineNumbers?: boolean\n startLine?: number\n}\n\nconst {\n class: className,\n code,\n wrap = false,\n lineNumbers = false,\n startLine = 1,\n style,\n ...props\n} = Astro.props\n\nconst contentStyle =\n typeof style === \"string\"\n ? `counter-reset: line ${startLine - 1}; ${style}`\n : { counterReset: `line ${startLine - 1}`, ...style }\n---\n\n<pre\n data-slot=\"code-block-content\"\n data-wrap={wrap || undefined}\n data-numbered={lineNumbers || undefined}\n dir=\"ltr\"\n tabindex=\"0\"\n style={contentStyle}\n class={cn(\n \"px-4 py-4 leading-relaxed group-has-data-[slot=code-block-header]/code-block:pt-2 group-has-data-[slot=code-block-footer]/code-block:pb-2 group-data-[size=sm]/code-block:px-3 group-data-[size=sm]/code-block:py-3 group-data-[size=sm]/code-block:group-has-data-[slot=code-block-header]/code-block:pt-1.5 min-h-0 min-w-0 overflow-auto text-start font-mono outline-none data-wrap:wrap-break-word data-wrap:whitespace-pre-wrap\",\n className\n )}\n {...props}\n><code data-slot=\"code-block-code\" class=\"grid min-h-lh min-w-max content-start in-data-numbered:grid-cols-[auto_1fr] in-data-wrap:min-w-0\">{code !== undefined ? lineNumbers ? code.replace(/\\n$/, \"\").split(\"\\n\").map((line) => <CodeBlockLine>{line}</CodeBlockLine>) : code : <slot />}</code></pre>\n",
22
+ "type": "registry:ui"
23
+ },
24
+ {
25
+ "path": "src/components/ui/code-block/code-block-copy-button.astro",
26
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport CheckIcon from \"@lucide/astro/icons/check\"\nimport CopyIcon from \"@lucide/astro/icons/copy\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit<HTMLAttributes<\"button\">, \"value\" | \"type\"> &\n ButtonVariantProps & {\n value: string\n copyLabel?: string\n copiedLabel?: string\n errorLabel?: string\n }\n\nconst {\n class: className,\n value,\n variant = \"ghost\",\n size = \"icon-xs\",\n copyLabel = \"Copy\",\n copiedLabel = \"Copied\",\n errorLabel = \"Could not copy\",\n ...props\n} = Astro.props\n---\n\n<Button\n data-slot=\"code-block-copy-button\"\n data-copy-value={value}\n data-copy-label={copyLabel}\n data-copied-label={copiedLabel}\n data-error-label={errorLabel}\n aria-label={copyLabel}\n variant={variant}\n size={size}\n class={cn(\"group/code-copy\", className)}\n {...props}\n>\n <CopyIcon aria-hidden=\"true\" class=\"group-data-copied/code-copy:hidden\" />\n <CheckIcon\n aria-hidden=\"true\"\n class=\"hidden group-data-copied/code-copy:block\"\n />\n</Button>\n<span data-copy-status aria-live=\"polite\" class=\"sr-only\"></span>\n\n<script>\n const timers = new Map<HTMLButtonElement, ReturnType<typeof setTimeout>>()\n document.addEventListener(\"click\", async (event) => {\n if (!(event.target instanceof Element)) return\n const button = event.target.closest<HTMLButtonElement>(\n \"[data-slot=code-block-copy-button]\"\n )\n if (!button || button.disabled || event.defaultPrevented) return\n const status = button.nextElementSibling\n try {\n await navigator.clipboard.writeText(button.dataset.copyValue ?? \"\")\n if (!button.isConnected) return\n clearTimeout(timers.get(button))\n button.dataset.copied = \"\"\n button.setAttribute(\"aria-label\", button.dataset.copiedLabel ?? \"Copied\")\n if (status) status.textContent = button.dataset.copiedLabel ?? \"Copied\"\n timers.set(\n button,\n setTimeout(() => {\n delete button.dataset.copied\n button.setAttribute(\"aria-label\", button.dataset.copyLabel ?? \"Copy\")\n if (status) status.textContent = \"\"\n timers.delete(button)\n }, 2000)\n )\n } catch {\n if (!button.isConnected) return\n clearTimeout(timers.get(button))\n timers.delete(button)\n delete button.dataset.copied\n button.setAttribute(\"aria-label\", button.dataset.copyLabel ?? \"Copy\")\n if (status)\n status.textContent = button.dataset.errorLabel ?? \"Could not copy\"\n }\n })\n document.addEventListener(\"astro:before-swap\", () => {\n for (const timer of timers.values()) clearTimeout(timer)\n timers.clear()\n })\n</script>\n",
27
+ "type": "registry:ui"
28
+ },
29
+ {
30
+ "path": "src/components/ui/code-block/code-block-footer.astro",
31
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"code-block-footer\"\n class={cn(\n \"gap-2 px-4 pb-4 text-muted-foreground group-data-[size=sm]/code-block:px-3 group-data-[size=sm]/code-block:pb-3 flex min-w-0 shrink-0 items-center\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
32
+ "type": "registry:ui"
33
+ },
34
+ {
35
+ "path": "src/components/ui/code-block/code-block-header.astro",
36
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"code-block-header\"\n class={cn(\n \"gap-2 px-4 pt-4 text-muted-foreground group-data-[variant=destructive]/code-block:text-destructive group-data-[size=sm]/code-block:px-3 group-data-[size=sm]/code-block:pt-3 flex min-w-0 shrink-0 items-center *:has-[>[data-slot=code-block-title]]:min-w-0\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
37
+ "type": "registry:ui"
38
+ },
39
+ {
40
+ "path": "src/components/ui/code-block/code-block-line.astro",
41
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst variants = cva(\n \"-mx-4 px-4 in-data-numbered:gap-x-3 before:min-w-6 before:text-end before:text-muted-foreground after:start-1 after:text-muted-foreground group-data-[size=sm]/code-block:-mx-3 group-data-[size=sm]/code-block:px-3 relative block min-h-lh before:select-none after:absolute after:top-0 after:select-none in-data-numbered:col-span-2 in-data-numbered:grid in-data-numbered:grid-cols-subgrid in-data-numbered:[counter-increment:line] in-data-numbered:before:content-[counter(line)] in-data-numbered:supports-[content:counter(line)_/_'']:before:content-[counter(line)_/_'']\",\n {\n variants: {\n variant: {\n default: \"\",\n added: \"bg-muted after:content-['+']\",\n removed: \"bg-destructive/10 after:text-destructive after:content-['−']\",\n highlighted: \"bg-muted\",\n },\n },\n defaultVariants: { variant: \"default\" },\n }\n)\n\ntype Props = HTMLAttributes<\"span\"> & VariantProps<typeof variants>\nconst { class: className, variant = \"default\", ...props } = Astro.props\n---\n\n<span\n data-slot=\"code-block-line\"\n data-variant={variant}\n class={cn(variants({ variant }), className)}\n {...props}\n>\n <span data-slot=\"code-block-line-content\" class=\"min-w-0\">\n <slot />\n {\"\\n\"}\n </span>\n</span>\n",
42
+ "type": "registry:ui"
43
+ },
44
+ {
45
+ "path": "src/components/ui/code-block/code-block-title.astro",
46
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"code-block-title\"\n class={cn(\n \"font-sans text-sm font-medium text-foreground group-data-[variant=destructive]/code-block:text-destructive *:[svg]:me-1.5 [&_svg:not([class*='size-'])]:size-4 group-data-[size=sm]/code-block:text-xs group-data-[size=sm]/code-block:[&_svg:not([class*='size-'])]:size-3.5 min-w-0 truncate [&_svg]:pointer-events-none [&_svg]:inline-block [&_svg]:align-middle\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
47
+ "type": "registry:ui"
48
+ },
49
+ {
50
+ "path": "src/components/ui/code-block/code-block.astro",
51
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst variants = cva(\n \"rounded-lg text-sm data-[size=sm]:text-xs has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring/50 group/code-block relative flex w-full min-w-0 flex-col overflow-hidden\",\n {\n variants: {\n variant: {\n default: \"border border-input text-foreground dark:bg-input/30 has-[>[data-slot=code-block-content]:focus-visible]:border-ring\",\n destructive: \"border border-destructive/30 text-destructive dark:border-destructive/40\",\n },\n },\n defaultVariants: { variant: \"default\" },\n }\n)\n\ntype Props = HTMLAttributes<\"div\"> &\n VariantProps<typeof variants> & {\n size?: \"default\" | \"sm\"\n }\n\nconst {\n class: className,\n variant = \"default\",\n size = \"default\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"code-block\"\n data-variant={variant}\n data-size={size}\n class={cn(variants({ variant }), className)}\n {...props}\n>\n <slot />\n</div>\n",
52
+ "type": "registry:ui"
53
+ },
54
+ {
55
+ "path": "src/components/ui/code-block/index.ts",
56
+ "content": "export { default as CodeBlock } from \"./code-block.astro\"\nexport { default as CodeBlockHeader } from \"./code-block-header.astro\"\nexport { default as CodeBlockTitle } from \"./code-block-title.astro\"\nexport { default as CodeBlockActions } from \"./code-block-actions.astro\"\nexport { default as CodeBlockCopyButton } from \"./code-block-copy-button.astro\"\nexport { default as CodeBlockContent } from \"./code-block-content.astro\"\nexport { default as CodeBlockLine } from \"./code-block-line.astro\"\nexport { default as CodeBlockFooter } from \"./code-block-footer.astro\"\n",
57
+ "type": "registry:ui"
58
+ }
59
+ ],
60
+ "docs": "https://ui.full.dev/components/code-block/",
61
+ "categories": [
62
+ "ui"
63
+ ],
64
+ "type": "registry:ui"
65
+ }
@@ -22,7 +22,12 @@
22
22
  },
23
23
  {
24
24
  "path": "src/components/examples/collapsible/collapsible-demo.astro",
25
- "content": "---\nimport ChevronsUpDown from \"@lucide/astro/icons/chevrons-up-down\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n---\n\n<Collapsible class=\"flex w-[350px] flex-col gap-2\">\n <div class=\"flex items-center justify-between gap-4 px-4\">\n <h4 class=\"text-sm font-semibold\">Order #4189</h4>\n <CollapsibleTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"icon\",\n class: \"size-8\",\n })}\n >\n <ChevronsUpDown />\n <span class=\"sr-only\">Toggle details</span>\n </CollapsibleTrigger>\n </div>\n <div class=\"flex items-center justify-between rounded-md border px-4 py-2 text-sm\">\n <span class=\"text-muted-foreground\">Status</span>\n <span class=\"font-medium\">Shipped</span>\n </div>\n <CollapsibleContent class=\"flex flex-col gap-2\">\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">Shipping address</p>\n <p class=\"text-muted-foreground\">100 Market St, San Francisco</p>\n </div>\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">Items</p>\n <p class=\"text-muted-foreground\">2x Studio Headphones</p>\n </div>\n </CollapsibleContent>\n</Collapsible>\n",
25
+ "content": "---\nimport ChevronsUpDown from \"@lucide/astro/icons/chevrons-up-down\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n---\n\n<Collapsible class=\"flex w-[350px] flex-col gap-2\">\n <div class=\"flex items-center justify-between gap-4 px-4\">\n <p class=\"text-sm font-semibold\">Order #4189</p>\n <CollapsibleTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"icon\",\n class: \"size-8\",\n })}\n >\n <ChevronsUpDown />\n <span class=\"sr-only\">Toggle details</span>\n </CollapsibleTrigger>\n </div>\n <div class=\"flex items-center justify-between rounded-md border px-4 py-2 text-sm\">\n <span class=\"text-muted-foreground\">Status</span>\n <span class=\"font-medium\">Shipped</span>\n </div>\n <CollapsibleContent class=\"flex flex-col gap-2\">\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">Shipping address</p>\n <p class=\"text-muted-foreground\">100 Market St, San Francisco</p>\n </div>\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">Items</p>\n <p class=\"text-muted-foreground\">2x Studio Headphones</p>\n </div>\n </CollapsibleContent>\n</Collapsible>\n",
26
+ "type": "registry:component"
27
+ },
28
+ {
29
+ "path": "src/components/examples/collapsible/collapsible-dismissal.astro",
30
+ "content": "---\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n---\n\n<div class=\"mx-auto flex w-full max-w-xs flex-col gap-4\">\n <Collapsible closeOnEscape closeOnClickOutside class=\"flex flex-col gap-2\">\n <CollapsibleTrigger\n class={buttonVariants({ variant: \"outline\", class: \"w-full\" })}\n >\n Browse documentation\n <ChevronDownIcon class=\"ml-auto group-aria-expanded/button:rotate-180\" />\n </CollapsibleTrigger>\n <CollapsibleContent>\n <nav aria-label=\"Documentation example\" class=\"flex flex-col gap-1\">\n <a\n href=\"/docs/installation/\"\n class={buttonVariants({ variant: \"ghost\", class: \"justify-start\" })}\n >\n Installation\n </a>\n <a\n href=\"/components/accordion/\"\n class={buttonVariants({ variant: \"ghost\", class: \"justify-start\" })}\n >\n Accordion\n </a>\n <a\n href=\"/components/collapsible/\"\n class={buttonVariants({ variant: \"ghost\", class: \"justify-start\" })}\n >\n Collapsible\n </a>\n </nav>\n </CollapsibleContent>\n </Collapsible>\n <p class=\"text-muted-foreground text-sm\">\n Open the panel, then press Escape or click outside it to close.\n </p>\n</div>\n",
26
31
  "type": "registry:component"
27
32
  },
28
33
  {
@@ -32,7 +37,7 @@
32
37
  },
33
38
  {
34
39
  "path": "src/components/examples/collapsible/collapsible-rtl.astro",
35
- "content": "---\nimport ChevronsUpDown from \"@lucide/astro/icons/chevrons-up-down\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n orderNumber: \"Order #4189\",\n status: \"Status\",\n shipped: \"Shipped\",\n shippingAddress: \"Shipping address\",\n address: \"100 Market St, San Francisco\",\n items: \"Items\",\n itemsDescription: \"2x Studio Headphones\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n orderNumber: \"الطلب #4189\",\n status: \"الحالة\",\n shipped: \"تم الشحن\",\n shippingAddress: \"عنوان الشحن\",\n address: \"100 Market St, San Francisco\",\n items: \"العناصر\",\n itemsDescription: \"2x سماعات الاستوديو\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n orderNumber: \"הזמנה #4189\",\n status: \"סטטוס\",\n shipped: \"נשלח\",\n shippingAddress: \"כתובת משלוח\",\n address: \"100 Market St, San Francisco\",\n items: \"פריטים\",\n itemsDescription: \"2x אוזניות סטודיו\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<Collapsible class=\"flex w-[350px] flex-col gap-2\" dir={dir}>\n <div class=\"flex items-center justify-between gap-4 px-4\">\n <h4 class=\"text-sm font-semibold\">{t.orderNumber}</h4>\n <CollapsibleTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"icon\",\n class: \"size-8\",\n })}\n >\n <ChevronsUpDown />\n <span class=\"sr-only\">Toggle details</span>\n </CollapsibleTrigger>\n </div>\n <div class=\"flex items-center justify-between rounded-md border px-4 py-2 text-sm\">\n <span class=\"text-muted-foreground\">{t.status}</span>\n <span class=\"font-medium\">{t.shipped}</span>\n </div>\n <CollapsibleContent class=\"flex flex-col gap-2\">\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">{t.shippingAddress}</p>\n <p class=\"text-muted-foreground\">{t.address}</p>\n </div>\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">{t.items}</p>\n <p class=\"text-muted-foreground\">{t.itemsDescription}</p>\n </div>\n </CollapsibleContent>\n</Collapsible>\n",
40
+ "content": "---\nimport ChevronsUpDown from \"@lucide/astro/icons/chevrons-up-down\"\n\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n orderNumber: \"Order #4189\",\n status: \"Status\",\n shipped: \"Shipped\",\n shippingAddress: \"Shipping address\",\n address: \"100 Market St, San Francisco\",\n items: \"Items\",\n itemsDescription: \"2x Studio Headphones\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n orderNumber: \"الطلب #4189\",\n status: \"الحالة\",\n shipped: \"تم الشحن\",\n shippingAddress: \"عنوان الشحن\",\n address: \"100 Market St, San Francisco\",\n items: \"العناصر\",\n itemsDescription: \"2x سماعات الاستوديو\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n orderNumber: \"הזמנה #4189\",\n status: \"סטטוס\",\n shipped: \"נשלח\",\n shippingAddress: \"כתובת משלוח\",\n address: \"100 Market St, San Francisco\",\n items: \"פריטים\",\n itemsDescription: \"2x אוזניות סטודיו\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<Collapsible class=\"flex w-[350px] flex-col gap-2\" dir={dir}>\n <div class=\"flex items-center justify-between gap-4 px-4\">\n <p class=\"text-sm font-semibold\">{t.orderNumber}</p>\n <CollapsibleTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"icon\",\n class: \"size-8\",\n })}\n >\n <ChevronsUpDown />\n <span class=\"sr-only\">Toggle details</span>\n </CollapsibleTrigger>\n </div>\n <div class=\"flex items-center justify-between rounded-md border px-4 py-2 text-sm\">\n <span class=\"text-muted-foreground\">{t.status}</span>\n <span class=\"font-medium\">{t.shipped}</span>\n </div>\n <CollapsibleContent class=\"flex flex-col gap-2\">\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">{t.shippingAddress}</p>\n <p class=\"text-muted-foreground\">{t.address}</p>\n </div>\n <div class=\"rounded-md border px-4 py-2 text-sm\">\n <p class=\"font-medium\">{t.items}</p>\n <p class=\"text-muted-foreground\">{t.itemsDescription}</p>\n </div>\n </CollapsibleContent>\n</Collapsible>\n",
36
41
  "type": "registry:component"
37
42
  },
38
43
  {
@@ -4,12 +4,12 @@
4
4
  "title": "Collapsible",
5
5
  "description": "An interactive component which expands/collapses a panel.",
6
6
  "dependencies": [
7
- "@data-slot/collapsible@^1.0.2"
7
+ "@data-slot/collapsible@^1.1.2"
8
8
  ],
9
9
  "files": [
10
10
  {
11
11
  "path": "src/components/ui/collapsible/collapsible.astro",
12
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n // \"li\" makes a list item the collapsible, such as a sidebar menu item.\n as?: \"div\" | \"li\"\n defaultOpen?: boolean\n hiddenUntilFound?: boolean\n}\n\nconst {\n as: Tag = \"div\",\n class: className,\n defaultOpen,\n hiddenUntilFound,\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"collapsible\"\n data-default-open={defaultOpen}\n data-hidden-until-found={hiddenUntilFound}\n class={cn(className)}\n {...props}\n>\n <slot />\n</Tag>\n\n<script>\n import { create } from \"@data-slot/collapsible\"\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",
12
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n // \"li\" makes a list item the collapsible, such as a sidebar menu item.\n as?: \"div\" | \"li\"\n defaultOpen?: boolean\n hiddenUntilFound?: boolean\n closeOnEscape?: boolean\n closeOnClickOutside?: boolean\n}\n\nconst {\n as: Tag = \"div\",\n class: className,\n defaultOpen,\n hiddenUntilFound,\n closeOnEscape,\n closeOnClickOutside,\n ...props\n} = Astro.props\n---\n\n<Tag\n data-slot=\"collapsible\"\n data-default-open={defaultOpen}\n data-hidden-until-found={hiddenUntilFound}\n data-close-on-escape={closeOnEscape}\n data-close-on-click-outside={closeOnClickOutside}\n class={cn(className)}\n {...props}\n>\n <slot />\n</Tag>\n\n<script>\n import { create } from \"@data-slot/collapsible\"\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
13
  "type": "registry:ui"
14
14
  },
15
15
  {
@@ -4,8 +4,8 @@
4
4
  "title": "Combobox",
5
5
  "description": "Autocomplete input with a list of suggestions.",
6
6
  "dependencies": [
7
- "@data-slot/combobox@^1.0.2",
8
- "@data-slot/core@^1.0.2",
7
+ "@data-slot/combobox@^1.1.2",
8
+ "@data-slot/core@^1.1.2",
9
9
  "@lucide/astro"
10
10
  ],
11
11
  "registryDependencies": [
@@ -34,7 +34,7 @@
34
34
  },
35
35
  {
36
36
  "path": "src/components/ui/combobox/combobox-input.astro",
37
- "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n\nimport ComboboxTrigger from \"./combobox-trigger.astro\"\n\ntype Props = HTMLAttributes<\"input\"> & {\n showTrigger?: boolean\n showClear?: boolean\n}\n\nconst {\n class: className,\n type = \"text\",\n disabled = false,\n showTrigger = true,\n showClear = false,\n ...props\n} = Astro.props\n---\n\n<InputGroup\n class={cn(\n \"has-[[data-slot=combobox-input]:focus-visible]:border-ring has-[[data-slot=combobox-input]:focus-visible]:ring-ring/50 w-auto has-[[data-slot=combobox-input]:focus-visible]:ring-3\",\n className\n )}\n>\n <InputGroupInput\n type={type}\n data-slot=\"combobox-input\"\n disabled={disabled}\n {...props}\n />\n <InputGroupAddon align=\"inline-end\">\n {showTrigger && (\n <ComboboxTrigger\n class=\"group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent\"\n disabled={disabled}\n />\n )}\n {showClear && (\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-xs\"\n data-slot=\"combobox-clear\"\n disabled={disabled}\n >\n <XIcon class=\"pointer-events-none\" />\n </InputGroupButton>\n )}\n </InputGroupAddon>\n <slot />\n</InputGroup>\n",
37
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n\nimport ComboboxTrigger from \"./combobox-trigger.astro\"\n\ntype Props = HTMLAttributes<\"input\"> & {\n showTrigger?: boolean\n showClear?: boolean\n clearLabel?: string\n}\n\nconst {\n class: className,\n type = \"text\",\n disabled = false,\n showTrigger = true,\n showClear = false,\n clearLabel = \"Clear selection\",\n ...props\n} = Astro.props\n---\n\n<InputGroup\n class={cn(\n \"has-[[data-slot=combobox-input]:focus-visible]:border-ring has-[[data-slot=combobox-input]:focus-visible]:ring-ring/50 w-auto has-[[data-slot=combobox-input]:focus-visible]:ring-3\",\n className\n )}\n>\n <InputGroupInput\n type={type}\n data-slot=\"combobox-input\"\n disabled={disabled}\n {...props}\n />\n <InputGroupAddon align=\"inline-end\">\n {showTrigger && (\n <ComboboxTrigger\n class={cn(\n \"data-pressed:bg-transparent\",\n showClear && \"group-data-[value]/combobox:hidden\"\n )}\n disabled={disabled}\n />\n )}\n {showClear && (\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-xs\"\n data-slot=\"combobox-clear\"\n aria-label={clearLabel}\n class=\"hidden group-data-[value]/combobox:inline-flex\"\n disabled={disabled}\n >\n <XIcon class=\"pointer-events-none\" aria-hidden=\"true\" />\n </InputGroupButton>\n )}\n </InputGroupAddon>\n <slot />\n</InputGroup>\n",
38
38
  "type": "registry:ui"
39
39
  },
40
40
  {
@@ -4,9 +4,9 @@
4
4
  "title": "Command",
5
5
  "description": "Command menu for search and quick actions.",
6
6
  "dependencies": [
7
- "@data-slot/command@^1.0.2",
7
+ "@data-slot/command@^1.1.2",
8
8
  "@lucide/astro",
9
- "@data-slot/core@^1.0.2"
9
+ "@data-slot/core@^1.1.2"
10
10
  ],
11
11
  "registryDependencies": [
12
12
  "@fulldev/dialog"
@@ -18,6 +18,7 @@
18
18
  "@fulldev/card",
19
19
  "@fulldev/carousel",
20
20
  "@fulldev/checkbox",
21
+ "@fulldev/code-block",
21
22
  "@fulldev/collapsible",
22
23
  "@fulldev/combobox",
23
24
  "@fulldev/command",
@@ -43,6 +44,7 @@
43
44
  "@fulldev/pagination",
44
45
  "@fulldev/popover",
45
46
  "@fulldev/price",
47
+ "@fulldev/progress",
46
48
  "@fulldev/radio-group",
47
49
  "@fulldev/rating",
48
50
  "@fulldev/resizable",
@@ -4,7 +4,7 @@
4
4
  "title": "Dialog",
5
5
  "description": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.",
6
6
  "dependencies": [
7
- "@data-slot/dialog@^1.0.2",
7
+ "@data-slot/dialog@^1.1.2",
8
8
  "@lucide/astro"
9
9
  ],
10
10
  "registryDependencies": [
@@ -4,7 +4,7 @@
4
4
  "title": "Drawer",
5
5
  "description": "A drawer component that slides in from any edge of the screen.",
6
6
  "dependencies": [
7
- "@data-slot/drawer@^1.0.2"
7
+ "@data-slot/drawer@^1.1.2"
8
8
  ],
9
9
  "registryDependencies": [
10
10
  "@fulldev/button"
@@ -4,7 +4,7 @@
4
4
  "title": "Dropdown Menu",
5
5
  "description": "Displays a menu to the user, such as a set of actions or functions, triggered by a button.",
6
6
  "dependencies": [
7
- "@data-slot/dropdown-menu@^1.0.2",
7
+ "@data-slot/dropdown-menu@^1.1.2",
8
8
  "@lucide/astro"
9
9
  ],
10
10
  "files": [
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "path": "src/components/examples/hover-card/hover-card-sides.astro",
23
- "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/components/ui/hover-card\"\n\nconst HOVER_CARD_SIDES = [\"left\", \"top\", \"bottom\", \"right\"] as const\n---\n\n<div class=\"flex flex-wrap justify-center gap-2\">\n {HOVER_CARD_SIDES.map((side) => (\n <HoverCard delay={100} closeDelay={100}>\n <HoverCardTrigger\n class={buttonVariants({ variant: \"outline\", class: \"capitalize\" })}\n >\n {side}\n </HoverCardTrigger>\n <HoverCardContent side={side}>\n <div class=\"flex flex-col gap-1\">\n <h4 class=\"font-medium\">Hover Card</h4>\n <p>This hover card appears on the {side} side of the trigger.</p>\n </div>\n </HoverCardContent>\n </HoverCard>\n ))}\n</div>\n",
23
+ "content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/components/ui/hover-card\"\n\nconst HOVER_CARD_SIDES = [\"left\", \"top\", \"bottom\", \"right\"] as const\n---\n\n<div class=\"flex flex-wrap justify-center gap-2\">\n {HOVER_CARD_SIDES.map((side) => (\n <HoverCard delay={100} closeDelay={100}>\n <HoverCardTrigger\n class={buttonVariants({ variant: \"outline\", class: \"capitalize\" })}\n >\n {side}\n </HoverCardTrigger>\n <HoverCardContent side={side}>\n <div class=\"flex flex-col gap-1\">\n <p class=\"font-medium\">Hover Card</p>\n <p>This hover card appears on the {side} side of the trigger.</p>\n </div>\n </HoverCardContent>\n </HoverCard>\n ))}\n</div>\n",
24
24
  "type": "registry:component"
25
25
  }
26
26
  ],
@@ -4,8 +4,8 @@
4
4
  "title": "Hover Card",
5
5
  "description": "For sighted users to preview content available behind a link.",
6
6
  "dependencies": [
7
- "@data-slot/hover-card@^1.0.2",
8
- "@data-slot/core@^1.0.2"
7
+ "@data-slot/hover-card@^1.1.2",
8
+ "@data-slot/core@^1.1.2"
9
9
  ],
10
10
  "files": [
11
11
  {
@@ -4,7 +4,7 @@
4
4
  "title": "Navigation Menu",
5
5
  "description": "A collection of links for navigating websites.",
6
6
  "dependencies": [
7
- "@data-slot/navigation-menu@^1.0.2",
7
+ "@data-slot/navigation-menu@^1.1.2",
8
8
  "@lucide/astro"
9
9
  ],
10
10
  "files": [
@@ -23,7 +23,7 @@
23
23
  },
24
24
  {
25
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 <h4 class=\"leading-none font-medium\">Dimensions</h4>\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",
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
27
  "type": "registry:component"
28
28
  },
29
29
  {
@@ -4,7 +4,7 @@
4
4
  "title": "Popover",
5
5
  "description": "Displays rich content in a floating layer, triggered by a button.",
6
6
  "dependencies": [
7
- "@data-slot/popover@^1.0.2"
7
+ "@data-slot/popover@^1.1.2"
8
8
  ],
9
9
  "files": [
10
10
  {
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "progress-examples",
4
+ "title": "Progress examples",
5
+ "description": "The examples from the shadcn/ui Progress docs.",
6
+ "registryDependencies": [
7
+ "@fulldev/progress"
8
+ ],
9
+ "files": [
10
+ {
11
+ "path": "src/components/examples/progress/progress-custom-max.astro",
12
+ "content": "---\nimport { Progress } from \"@/components/ui/progress\"\n---\n\n<Progress\n value={3}\n max={5}\n label=\"Lessons completed\"\n showValue\n aria-valuetext=\"3 of 5 lessons completed\"\n class=\"w-full max-w-sm\"\n/>\n",
13
+ "type": "registry:component"
14
+ },
15
+ {
16
+ "path": "src/components/examples/progress/progress-demo.astro",
17
+ "content": "---\nimport { Progress } from \"@/components/ui/progress\"\n---\n\n<Progress\n value={56}\n label=\"Course progress\"\n showValue\n class=\"w-full max-w-sm\"\n/>\n",
18
+ "type": "registry:component"
19
+ },
20
+ {
21
+ "path": "src/components/examples/progress/progress-indeterminate.astro",
22
+ "content": "---\nimport { Progress } from \"@/components/ui/progress\"\n---\n\n<Progress label=\"Loading article\" class=\"w-full max-w-sm\" />\n",
23
+ "type": "registry:component"
24
+ },
25
+ {
26
+ "path": "src/components/examples/progress/progress-rtl.astro",
27
+ "content": "---\nimport { Progress } from \"@/components/ui/progress\"\n---\n\n<Progress\n value={56}\n label=\"تقدم الدورة\"\n showValue\n dir=\"rtl\"\n class=\"w-full max-w-sm\"\n/>\n",
28
+ "type": "registry:component"
29
+ }
30
+ ],
31
+ "docs": "https://ui.full.dev/components/progress/",
32
+ "type": "registry:example"
33
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "progress",
4
+ "title": "Progress",
5
+ "description": "Shows how much of a task or sequence is complete.",
6
+ "files": [
7
+ {
8
+ "path": "src/components/ui/progress/index.ts",
9
+ "content": "export { default as Progress } from \"./progress.astro\"\n",
10
+ "type": "registry:ui"
11
+ },
12
+ {
13
+ "path": "src/components/ui/progress/progress.astro",
14
+ "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n value?: number | null\n max?: number\n label?: string\n showValue?: boolean\n}\n\nconst {\n class: className,\n value,\n max = 100,\n label,\n showValue = false,\n \"aria-label\": ariaLabel = label || \"Progress\",\n \"aria-labelledby\": ariaLabelledby,\n \"aria-valuetext\": ariaValueText,\n ...props\n} = Astro.props\n\nconst resolvedMax = Number.isFinite(max) && max > 0 ? max : 100\nconst resolvedValue =\n typeof value === \"number\" && Number.isFinite(value)\n ? Math.min(resolvedMax, Math.max(0, value))\n : undefined\nconst percentage =\n resolvedValue === undefined ? undefined : (resolvedValue / resolvedMax) * 100\nconst stateAttributes = {\n \"data-indeterminate\": resolvedValue === undefined ? \"\" : undefined,\n \"data-complete\": resolvedValue === resolvedMax ? \"\" : undefined,\n \"data-progressing\":\n resolvedValue !== undefined && resolvedValue < resolvedMax ? \"\" : undefined,\n}\n---\n\n<div\n {...props}\n data-slot=\"progress\"\n {...stateAttributes}\n class={cn(\"flex flex-wrap gap-3\", className)}\n>\n <progress\n data-slot=\"progress-control\"\n class=\"sr-only\"\n value={resolvedValue}\n max={resolvedMax}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-valuetext={ariaValueText}\n ></progress>\n {label && (\n <span data-slot=\"progress-label\" class=\"text-sm font-medium\">\n {label}\n </span>\n )}\n {showValue && percentage !== undefined && (\n <span\n data-slot=\"progress-value\"\n class=\"text-muted-foreground ml-auto text-sm tabular-nums rtl:mr-auto rtl:ml-0\"\n aria-hidden=\"true\"\n >\n {Math.round(percentage)}%\n </span>\n )}\n <slot />\n <div\n data-slot=\"progress-track\"\n aria-hidden=\"true\"\n {...stateAttributes}\n class=\"bg-muted h-1.5 rounded-full relative flex w-full items-center overflow-x-hidden\"\n >\n <div\n data-slot=\"progress-indicator\"\n {...stateAttributes}\n class=\"bg-primary h-full transition-[width] motion-safe:data-indeterminate:animate-pulse motion-reduce:transition-none\"\n style={{ width: `${percentage ?? 100}%` }}\n ></div>\n </div>\n</div>\n",
15
+ "type": "registry:ui"
16
+ }
17
+ ],
18
+ "docs": "https://ui.full.dev/components/progress/",
19
+ "categories": [
20
+ "ui"
21
+ ],
22
+ "type": "registry:ui"
23
+ }
@@ -4,7 +4,7 @@
4
4
  "title": "Radio Group",
5
5
  "description": "A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.",
6
6
  "dependencies": [
7
- "@data-slot/radio-group@^1.0.2"
7
+ "@data-slot/radio-group@^1.1.2"
8
8
  ],
9
9
  "files": [
10
10
  {