fulldev-ui 0.22.3 → 0.24.0

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 (535) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -1
  3. package/liquid/LICENSE-DATA-SLOT.md +21 -0
  4. package/liquid/LICENSE-FULLDEV.txt +21 -0
  5. package/liquid/LICENSE-SHADCN.md +21 -0
  6. package/liquid/README.md +17 -0
  7. package/liquid/components/accordion.liquid +5 -0
  8. package/liquid/components/alert-dialog.liquid +116 -0
  9. package/liquid/components/alert.liquid +45 -0
  10. package/liquid/components/aspect-ratio.liquid +28 -0
  11. package/liquid/components/attachment.liquid +134 -0
  12. package/liquid/components/avatar.liquid +52 -0
  13. package/liquid/components/badge.liquid +86 -0
  14. package/liquid/components/banner.liquid +40 -0
  15. package/liquid/components/base.liquid +112 -0
  16. package/liquid/components/breadcrumb.liquid +46 -0
  17. package/liquid/components/button-group.liquid +56 -0
  18. package/liquid/components/button.liquid +232 -0
  19. package/liquid/components/card.liquid +5 -0
  20. package/liquid/components/carousel.liquid +5 -0
  21. package/liquid/components/checkbox.liquid +54 -0
  22. package/liquid/components/collapsible.liquid +3 -0
  23. package/liquid/components/combobox.liquid +87 -0
  24. package/liquid/components/command.liquid +86 -0
  25. package/liquid/components/dialog.liquid +80 -0
  26. package/liquid/components/drawer.liquid +97 -0
  27. package/liquid/components/dropdown-menu.liquid +3 -0
  28. package/liquid/components/empty.liquid +77 -0
  29. package/liquid/components/field.liquid +5 -0
  30. package/liquid/components/form.liquid +5 -0
  31. package/liquid/components/header.liquid +33 -0
  32. package/liquid/components/hover-card.liquid +3 -0
  33. package/liquid/components/icon.liquid +5 -0
  34. package/liquid/components/input-group.liquid +53 -0
  35. package/liquid/components/input.liquid +84 -0
  36. package/liquid/components/invalid-controls.liquid +18 -0
  37. package/liquid/components/item.liquid +114 -0
  38. package/liquid/components/kbd.liquid +20 -0
  39. package/liquid/components/logo.liquid +33 -0
  40. package/liquid/components/marquee.liquid +5 -0
  41. package/liquid/components/navigation-menu.liquid +5 -0
  42. package/liquid/components/pagination.liquid +32 -0
  43. package/liquid/components/popover.liquid +3 -0
  44. package/liquid/components/popup.liquid +189 -0
  45. package/liquid/components/price.liquid +5 -0
  46. package/liquid/components/radio-group.liquid +53 -0
  47. package/liquid/components/rating.liquid +5 -0
  48. package/liquid/components/section.liquid +5 -0
  49. package/liquid/components/select.liquid +51 -0
  50. package/liquid/components/separator.liquid +19 -0
  51. package/liquid/components/sheet.liquid +68 -0
  52. package/liquid/components/skeleton.liquid +17 -0
  53. package/liquid/components/slider.liquid +50 -0
  54. package/liquid/components/spinner.liquid +28 -0
  55. package/liquid/components/switch.liquid +54 -0
  56. package/liquid/components/table.liquid +64 -0
  57. package/liquid/components/tabs.liquid +88 -0
  58. package/liquid/components/toast.liquid +5 -0
  59. package/liquid/components/toc.liquid +45 -0
  60. package/liquid/components/toggle-group.liquid +77 -0
  61. package/liquid/components/toggle.liquid +61 -0
  62. package/liquid/components/tooltip.liquid +45 -0
  63. package/liquid/components/triggers.liquid +20 -0
  64. package/liquid/components/typography.liquid +5 -0
  65. package/liquid/components/video.liquid +5 -0
  66. package/liquid/contracts.json +428 -0
  67. package/liquid/examples/accordion.liquid +10 -0
  68. package/liquid/examples/alert-dialog.liquid +40 -0
  69. package/liquid/examples/alert.liquid +4 -0
  70. package/liquid/examples/aspect-ratio.liquid +1 -0
  71. package/liquid/examples/attachment.liquid +22 -0
  72. package/liquid/examples/avatar.liquid +1 -0
  73. package/liquid/examples/badge.liquid +5 -0
  74. package/liquid/examples/banner.liquid +3 -0
  75. package/liquid/examples/breadcrumb.liquid +7 -0
  76. package/liquid/examples/button-group.liquid +6 -0
  77. package/liquid/examples/button.liquid +8 -0
  78. package/liquid/examples/card.liquid +11 -0
  79. package/liquid/examples/carousel.liquid +12 -0
  80. package/liquid/examples/checkbox.liquid +4 -0
  81. package/liquid/examples/collapsible.liquid +29 -0
  82. package/liquid/examples/combobox.liquid +13 -0
  83. package/liquid/examples/command.liquid +10 -0
  84. package/liquid/examples/dependencies.json +60 -0
  85. package/liquid/examples/dialog.liquid +11 -0
  86. package/liquid/examples/drawer.liquid +18 -0
  87. package/liquid/examples/dropdown-menu.liquid +88 -0
  88. package/liquid/examples/empty.liquid +9 -0
  89. package/liquid/examples/field.liquid +105 -0
  90. package/liquid/examples/form.liquid +9 -0
  91. package/liquid/examples/header.liquid +8 -0
  92. package/liquid/examples/hover-card.liquid +16 -0
  93. package/liquid/examples/icon.liquid +3 -0
  94. package/liquid/examples/input-group.liquid +6 -0
  95. package/liquid/examples/input.liquid +4 -0
  96. package/liquid/examples/item.liquid +72 -0
  97. package/liquid/examples/kbd.liquid +1 -0
  98. package/liquid/examples/label.liquid +3 -0
  99. package/liquid/examples/logo.liquid +3 -0
  100. package/liquid/examples/marquee.liquid +5 -0
  101. package/liquid/examples/native-select.liquid +8 -0
  102. package/liquid/examples/navigation-menu.liquid +11 -0
  103. package/liquid/examples/pagination.liquid +11 -0
  104. package/liquid/examples/popover.liquid +14 -0
  105. package/liquid/examples/price.liquid +1 -0
  106. package/liquid/examples/radio-group.liquid +62 -0
  107. package/liquid/examples/rating.liquid +17 -0
  108. package/liquid/examples/section.liquid +9 -0
  109. package/liquid/examples/select.liquid +105 -0
  110. package/liquid/examples/separator.liquid +3 -0
  111. package/liquid/examples/sheet.liquid +11 -0
  112. package/liquid/examples/skeleton.liquid +5 -0
  113. package/liquid/examples/slider.liquid +46 -0
  114. package/liquid/examples/spinner.liquid +11 -0
  115. package/liquid/examples/switch.liquid +7 -0
  116. package/liquid/examples/table.liquid +37 -0
  117. package/liquid/examples/tabs.liquid +21 -0
  118. package/liquid/examples/textarea.liquid +9 -0
  119. package/liquid/examples/toast.liquid +47 -0
  120. package/liquid/examples/toc.liquid +11 -0
  121. package/liquid/examples/toggle-group.liquid +50 -0
  122. package/liquid/examples/toggle.liquid +21 -0
  123. package/liquid/examples/tooltip.liquid +33 -0
  124. package/liquid/examples/typography.liquid +9 -0
  125. package/liquid/examples/video.liquid +7 -0
  126. package/liquid/licenses.json +14 -0
  127. package/liquid/manifest.json +110 -0
  128. package/liquid/registry.json +1295 -0
  129. package/liquid/runtime/ui-carousel.js +44 -0
  130. package/liquid/runtime/ui-controls.js +195 -0
  131. package/liquid/runtime/ui-lifecycle.js +107 -0
  132. package/liquid/runtime/ui-motion.js +45 -0
  133. package/liquid/runtime/ui-start.js +37 -0
  134. package/liquid/snippets/init.liquid +6 -0
  135. package/liquid/snippets/runtime.liquid +9 -0
  136. package/liquid/snippets/ui.liquid +68 -0
  137. package/liquid/styles/accordion.css +66 -0
  138. package/liquid/styles/card.css +114 -0
  139. package/liquid/styles/carousel.css +58 -0
  140. package/liquid/styles/field.css +70 -0
  141. package/liquid/styles/form.css +14 -0
  142. package/liquid/styles/icon.css +32 -0
  143. package/liquid/styles/marquee.css +65 -0
  144. package/liquid/styles/navigation-menu.css +235 -0
  145. package/liquid/styles/price.css +41 -0
  146. package/liquid/styles/primitives.css +53 -0
  147. package/liquid/styles/rating.css +23 -0
  148. package/liquid/styles/section.css +92 -0
  149. package/liquid/styles/toast.css +125 -0
  150. package/liquid/styles/tokens.css +118 -0
  151. package/liquid/styles/typography.css +670 -0
  152. package/liquid/styles/video.css +10 -0
  153. package/liquid/vendor/data-slot-accordion.js +1 -0
  154. package/liquid/vendor/data-slot-alert-dialog.js +1 -0
  155. package/liquid/vendor/data-slot-carousel.js +1 -0
  156. package/liquid/vendor/data-slot-collapsible.js +1 -0
  157. package/liquid/vendor/data-slot-combobox.js +1 -0
  158. package/liquid/vendor/data-slot-command.js +1 -0
  159. package/liquid/vendor/data-slot-core.js +1 -0
  160. package/liquid/vendor/data-slot-dialog.js +1 -0
  161. package/liquid/vendor/data-slot-drawer.js +1 -0
  162. package/liquid/vendor/data-slot-dropdown-menu.js +1 -0
  163. package/liquid/vendor/data-slot-hover-card.js +1 -0
  164. package/liquid/vendor/data-slot-navigation-menu.js +1 -0
  165. package/liquid/vendor/data-slot-popover.js +1 -0
  166. package/liquid/vendor/data-slot-radio-group.js +1 -0
  167. package/liquid/vendor/data-slot-select.js +1 -0
  168. package/liquid/vendor/data-slot-slider.js +1 -0
  169. package/liquid/vendor/data-slot-switch.js +1 -0
  170. package/liquid/vendor/data-slot-tabs.js +1 -0
  171. package/liquid/vendor/data-slot-toast.js +8 -0
  172. package/liquid/vendor/data-slot-toggle-group.js +1 -0
  173. package/liquid/vendor/data-slot-toggle.js +1 -0
  174. package/liquid/vendor/data-slot-tooltip.js +1 -0
  175. package/liquid/vendor.json +180 -0
  176. package/package.json +36 -30
  177. package/public/r/accordion.json +1 -1
  178. package/public/r/alert-dialog.json +1 -1
  179. package/public/r/code-block-examples.json +33 -0
  180. package/public/r/code-block.json +65 -0
  181. package/public/r/collapsible-examples.json +5 -0
  182. package/public/r/collapsible.json +2 -2
  183. package/public/r/combobox.json +3 -3
  184. package/public/r/command.json +2 -2
  185. package/public/r/components.json +2 -0
  186. package/public/r/dialog.json +1 -1
  187. package/public/r/drawer.json +1 -1
  188. package/public/r/dropdown-menu.json +1 -1
  189. package/public/r/hover-card.json +2 -2
  190. package/public/r/liquid/accordion.json +25 -0
  191. package/public/r/liquid/alert-dialog.json +21 -0
  192. package/public/r/liquid/alert.json +18 -0
  193. package/public/r/liquid/aspect-ratio.json +18 -0
  194. package/public/r/liquid/attachment.json +20 -0
  195. package/public/r/liquid/avatar.json +18 -0
  196. package/public/r/liquid/badge.json +18 -0
  197. package/public/r/liquid/banner.json +18 -0
  198. package/public/r/liquid/breadcrumb.json +18 -0
  199. package/public/r/liquid/button-group.json +19 -0
  200. package/public/r/liquid/button.json +18 -0
  201. package/public/r/liquid/card.json +25 -0
  202. package/public/r/liquid/carousel.json +26 -0
  203. package/public/r/liquid/checkbox.json +19 -0
  204. package/public/r/liquid/collapsible.json +19 -0
  205. package/public/r/liquid/combobox.json +21 -0
  206. package/public/r/liquid/command.json +19 -0
  207. package/public/r/liquid/components.json +83 -0
  208. package/public/r/liquid/dialog.json +19 -0
  209. package/public/r/liquid/drawer.json +21 -0
  210. package/public/r/liquid/dropdown-menu.json +21 -0
  211. package/public/r/liquid/empty.json +18 -0
  212. package/public/r/liquid/field.json +25 -0
  213. package/public/r/liquid/form.json +25 -0
  214. package/public/r/liquid/header.json +19 -0
  215. package/public/r/liquid/hover-card.json +20 -0
  216. package/public/r/liquid/icon.json +24 -0
  217. package/public/r/liquid/init.json +34 -0
  218. package/public/r/liquid/input-group.json +20 -0
  219. package/public/r/liquid/input.json +18 -0
  220. package/public/r/liquid/invalid-controls.json +18 -0
  221. package/public/r/liquid/item.json +18 -0
  222. package/public/r/liquid/kbd.json +18 -0
  223. package/public/r/liquid/label.json +11 -0
  224. package/public/r/liquid/logo.json +18 -0
  225. package/public/r/liquid/marquee.json +25 -0
  226. package/public/r/liquid/native-select.json +11 -0
  227. package/public/r/liquid/navigation-menu.json +26 -0
  228. package/public/r/liquid/pagination.json +18 -0
  229. package/public/r/liquid/popover.json +21 -0
  230. package/public/r/liquid/popup.json +18 -0
  231. package/public/r/liquid/price.json +24 -0
  232. package/public/r/liquid/radio-group.json +20 -0
  233. package/public/r/liquid/rating.json +24 -0
  234. package/public/r/liquid/registry.json +1295 -0
  235. package/public/r/liquid/runtime.json +180 -0
  236. package/public/r/liquid/section.json +24 -0
  237. package/public/r/liquid/select.json +22 -0
  238. package/public/r/liquid/separator.json +18 -0
  239. package/public/r/liquid/sheet.json +20 -0
  240. package/public/r/liquid/skeleton.json +18 -0
  241. package/public/r/liquid/slider.json +19 -0
  242. package/public/r/liquid/spinner.json +18 -0
  243. package/public/r/liquid/switch.json +20 -0
  244. package/public/r/liquid/table.json +18 -0
  245. package/public/r/liquid/tabs.json +20 -0
  246. package/public/r/liquid/textarea.json +11 -0
  247. package/public/r/liquid/toast.json +27 -0
  248. package/public/r/liquid/toc.json +18 -0
  249. package/public/r/liquid/toggle-group.json +21 -0
  250. package/public/r/liquid/toggle.json +20 -0
  251. package/public/r/liquid/tooltip.json +20 -0
  252. package/public/r/liquid/triggers.json +18 -0
  253. package/public/r/liquid/typography.json +24 -0
  254. package/public/r/liquid/video.json +25 -0
  255. package/public/r/navigation-menu.json +1 -1
  256. package/public/r/popover.json +1 -1
  257. package/public/r/progress-examples.json +33 -0
  258. package/public/r/progress.json +23 -0
  259. package/public/r/radio-group.json +1 -1
  260. package/public/r/registry.json +163 -26
  261. package/public/r/resizable.json +1 -1
  262. package/public/r/select.json +1 -1
  263. package/public/r/sheet.json +1 -1
  264. package/public/r/sidebar.json +1 -1
  265. package/public/r/slider.json +1 -1
  266. package/public/r/styles/base-luma/accordion.json +1 -1
  267. package/public/r/styles/base-luma/alert-dialog.json +1 -1
  268. package/public/r/styles/base-luma/code-block-examples.json +33 -0
  269. package/public/r/styles/base-luma/code-block.json +65 -0
  270. package/public/r/styles/base-luma/collapsible-examples.json +5 -0
  271. package/public/r/styles/base-luma/collapsible.json +2 -2
  272. package/public/r/styles/base-luma/combobox.json +3 -3
  273. package/public/r/styles/base-luma/command.json +2 -2
  274. package/public/r/styles/base-luma/components.json +2 -0
  275. package/public/r/styles/base-luma/dialog.json +1 -1
  276. package/public/r/styles/base-luma/drawer.json +1 -1
  277. package/public/r/styles/base-luma/dropdown-menu.json +1 -1
  278. package/public/r/styles/base-luma/hover-card.json +2 -2
  279. package/public/r/styles/base-luma/navigation-menu.json +1 -1
  280. package/public/r/styles/base-luma/popover.json +1 -1
  281. package/public/r/styles/base-luma/progress-examples.json +33 -0
  282. package/public/r/styles/base-luma/progress.json +23 -0
  283. package/public/r/styles/base-luma/radio-group.json +1 -1
  284. package/public/r/styles/base-luma/registry.json +163 -26
  285. package/public/r/styles/base-luma/resizable.json +1 -1
  286. package/public/r/styles/base-luma/select.json +1 -1
  287. package/public/r/styles/base-luma/sheet.json +1 -1
  288. package/public/r/styles/base-luma/sidebar.json +1 -1
  289. package/public/r/styles/base-luma/slider.json +1 -1
  290. package/public/r/styles/base-luma/switch.json +1 -1
  291. package/public/r/styles/base-luma/tabs.json +1 -1
  292. package/public/r/styles/base-luma/toast.json +1 -1
  293. package/public/r/styles/base-luma/toggle-group.json +1 -1
  294. package/public/r/styles/base-luma/toggle.json +1 -1
  295. package/public/r/styles/base-luma/tooltip.json +1 -1
  296. package/public/r/styles/base-lyra/accordion.json +1 -1
  297. package/public/r/styles/base-lyra/alert-dialog.json +1 -1
  298. package/public/r/styles/base-lyra/code-block-examples.json +33 -0
  299. package/public/r/styles/base-lyra/code-block.json +65 -0
  300. package/public/r/styles/base-lyra/collapsible-examples.json +5 -0
  301. package/public/r/styles/base-lyra/collapsible.json +2 -2
  302. package/public/r/styles/base-lyra/combobox.json +3 -3
  303. package/public/r/styles/base-lyra/command.json +2 -2
  304. package/public/r/styles/base-lyra/components.json +2 -0
  305. package/public/r/styles/base-lyra/dialog.json +1 -1
  306. package/public/r/styles/base-lyra/drawer.json +1 -1
  307. package/public/r/styles/base-lyra/dropdown-menu.json +1 -1
  308. package/public/r/styles/base-lyra/hover-card.json +2 -2
  309. package/public/r/styles/base-lyra/navigation-menu.json +1 -1
  310. package/public/r/styles/base-lyra/popover.json +1 -1
  311. package/public/r/styles/base-lyra/progress-examples.json +33 -0
  312. package/public/r/styles/base-lyra/progress.json +23 -0
  313. package/public/r/styles/base-lyra/radio-group.json +1 -1
  314. package/public/r/styles/base-lyra/registry.json +163 -26
  315. package/public/r/styles/base-lyra/resizable.json +1 -1
  316. package/public/r/styles/base-lyra/select.json +1 -1
  317. package/public/r/styles/base-lyra/sheet.json +1 -1
  318. package/public/r/styles/base-lyra/sidebar.json +1 -1
  319. package/public/r/styles/base-lyra/slider.json +1 -1
  320. package/public/r/styles/base-lyra/switch.json +1 -1
  321. package/public/r/styles/base-lyra/tabs.json +1 -1
  322. package/public/r/styles/base-lyra/toast.json +1 -1
  323. package/public/r/styles/base-lyra/toggle-group.json +1 -1
  324. package/public/r/styles/base-lyra/toggle.json +1 -1
  325. package/public/r/styles/base-lyra/tooltip.json +1 -1
  326. package/public/r/styles/base-maia/accordion.json +1 -1
  327. package/public/r/styles/base-maia/alert-dialog.json +1 -1
  328. package/public/r/styles/base-maia/code-block-examples.json +33 -0
  329. package/public/r/styles/base-maia/code-block.json +65 -0
  330. package/public/r/styles/base-maia/collapsible-examples.json +5 -0
  331. package/public/r/styles/base-maia/collapsible.json +2 -2
  332. package/public/r/styles/base-maia/combobox.json +3 -3
  333. package/public/r/styles/base-maia/command.json +2 -2
  334. package/public/r/styles/base-maia/components.json +2 -0
  335. package/public/r/styles/base-maia/dialog.json +1 -1
  336. package/public/r/styles/base-maia/drawer.json +1 -1
  337. package/public/r/styles/base-maia/dropdown-menu.json +1 -1
  338. package/public/r/styles/base-maia/hover-card.json +2 -2
  339. package/public/r/styles/base-maia/navigation-menu.json +1 -1
  340. package/public/r/styles/base-maia/popover.json +1 -1
  341. package/public/r/styles/base-maia/progress-examples.json +33 -0
  342. package/public/r/styles/base-maia/progress.json +23 -0
  343. package/public/r/styles/base-maia/radio-group.json +1 -1
  344. package/public/r/styles/base-maia/registry.json +163 -26
  345. package/public/r/styles/base-maia/resizable.json +1 -1
  346. package/public/r/styles/base-maia/select.json +1 -1
  347. package/public/r/styles/base-maia/sheet.json +1 -1
  348. package/public/r/styles/base-maia/sidebar.json +1 -1
  349. package/public/r/styles/base-maia/slider.json +1 -1
  350. package/public/r/styles/base-maia/switch.json +1 -1
  351. package/public/r/styles/base-maia/tabs.json +1 -1
  352. package/public/r/styles/base-maia/toast.json +1 -1
  353. package/public/r/styles/base-maia/toggle-group.json +1 -1
  354. package/public/r/styles/base-maia/toggle.json +1 -1
  355. package/public/r/styles/base-maia/tooltip.json +1 -1
  356. package/public/r/styles/base-mira/accordion.json +1 -1
  357. package/public/r/styles/base-mira/alert-dialog.json +1 -1
  358. package/public/r/styles/base-mira/code-block-examples.json +33 -0
  359. package/public/r/styles/base-mira/code-block.json +65 -0
  360. package/public/r/styles/base-mira/collapsible-examples.json +5 -0
  361. package/public/r/styles/base-mira/collapsible.json +2 -2
  362. package/public/r/styles/base-mira/combobox.json +3 -3
  363. package/public/r/styles/base-mira/command.json +2 -2
  364. package/public/r/styles/base-mira/components.json +2 -0
  365. package/public/r/styles/base-mira/dialog.json +1 -1
  366. package/public/r/styles/base-mira/drawer.json +1 -1
  367. package/public/r/styles/base-mira/dropdown-menu.json +1 -1
  368. package/public/r/styles/base-mira/hover-card.json +2 -2
  369. package/public/r/styles/base-mira/navigation-menu.json +1 -1
  370. package/public/r/styles/base-mira/popover.json +1 -1
  371. package/public/r/styles/base-mira/progress-examples.json +33 -0
  372. package/public/r/styles/base-mira/progress.json +23 -0
  373. package/public/r/styles/base-mira/radio-group.json +1 -1
  374. package/public/r/styles/base-mira/registry.json +163 -26
  375. package/public/r/styles/base-mira/resizable.json +1 -1
  376. package/public/r/styles/base-mira/select.json +1 -1
  377. package/public/r/styles/base-mira/sheet.json +1 -1
  378. package/public/r/styles/base-mira/sidebar.json +1 -1
  379. package/public/r/styles/base-mira/slider.json +1 -1
  380. package/public/r/styles/base-mira/switch.json +1 -1
  381. package/public/r/styles/base-mira/tabs.json +1 -1
  382. package/public/r/styles/base-mira/toast.json +1 -1
  383. package/public/r/styles/base-mira/toggle-group.json +1 -1
  384. package/public/r/styles/base-mira/toggle.json +1 -1
  385. package/public/r/styles/base-mira/tooltip.json +1 -1
  386. package/public/r/styles/base-nova/accordion.json +1 -1
  387. package/public/r/styles/base-nova/alert-dialog.json +1 -1
  388. package/public/r/styles/base-nova/code-block-examples.json +33 -0
  389. package/public/r/styles/base-nova/code-block.json +65 -0
  390. package/public/r/styles/base-nova/collapsible-examples.json +5 -0
  391. package/public/r/styles/base-nova/collapsible.json +2 -2
  392. package/public/r/styles/base-nova/combobox.json +3 -3
  393. package/public/r/styles/base-nova/command.json +2 -2
  394. package/public/r/styles/base-nova/components.json +2 -0
  395. package/public/r/styles/base-nova/dialog.json +1 -1
  396. package/public/r/styles/base-nova/drawer.json +1 -1
  397. package/public/r/styles/base-nova/dropdown-menu.json +1 -1
  398. package/public/r/styles/base-nova/hover-card.json +2 -2
  399. package/public/r/styles/base-nova/navigation-menu.json +1 -1
  400. package/public/r/styles/base-nova/popover.json +1 -1
  401. package/public/r/styles/base-nova/progress-examples.json +33 -0
  402. package/public/r/styles/base-nova/progress.json +23 -0
  403. package/public/r/styles/base-nova/radio-group.json +1 -1
  404. package/public/r/styles/base-nova/registry.json +163 -26
  405. package/public/r/styles/base-nova/resizable.json +1 -1
  406. package/public/r/styles/base-nova/select.json +1 -1
  407. package/public/r/styles/base-nova/sheet.json +1 -1
  408. package/public/r/styles/base-nova/sidebar.json +1 -1
  409. package/public/r/styles/base-nova/slider.json +1 -1
  410. package/public/r/styles/base-nova/switch.json +1 -1
  411. package/public/r/styles/base-nova/tabs.json +1 -1
  412. package/public/r/styles/base-nova/toast.json +1 -1
  413. package/public/r/styles/base-nova/toggle-group.json +1 -1
  414. package/public/r/styles/base-nova/toggle.json +1 -1
  415. package/public/r/styles/base-nova/tooltip.json +1 -1
  416. package/public/r/styles/base-rhea/accordion.json +1 -1
  417. package/public/r/styles/base-rhea/alert-dialog.json +1 -1
  418. package/public/r/styles/base-rhea/code-block-examples.json +33 -0
  419. package/public/r/styles/base-rhea/code-block.json +65 -0
  420. package/public/r/styles/base-rhea/collapsible-examples.json +5 -0
  421. package/public/r/styles/base-rhea/collapsible.json +2 -2
  422. package/public/r/styles/base-rhea/combobox.json +3 -3
  423. package/public/r/styles/base-rhea/command.json +2 -2
  424. package/public/r/styles/base-rhea/components.json +2 -0
  425. package/public/r/styles/base-rhea/dialog.json +1 -1
  426. package/public/r/styles/base-rhea/drawer.json +1 -1
  427. package/public/r/styles/base-rhea/dropdown-menu.json +1 -1
  428. package/public/r/styles/base-rhea/hover-card.json +2 -2
  429. package/public/r/styles/base-rhea/navigation-menu.json +1 -1
  430. package/public/r/styles/base-rhea/popover.json +1 -1
  431. package/public/r/styles/base-rhea/progress-examples.json +33 -0
  432. package/public/r/styles/base-rhea/progress.json +23 -0
  433. package/public/r/styles/base-rhea/radio-group.json +1 -1
  434. package/public/r/styles/base-rhea/registry.json +163 -26
  435. package/public/r/styles/base-rhea/resizable.json +1 -1
  436. package/public/r/styles/base-rhea/select.json +1 -1
  437. package/public/r/styles/base-rhea/sheet.json +1 -1
  438. package/public/r/styles/base-rhea/sidebar.json +1 -1
  439. package/public/r/styles/base-rhea/slider.json +1 -1
  440. package/public/r/styles/base-rhea/switch.json +1 -1
  441. package/public/r/styles/base-rhea/tabs.json +1 -1
  442. package/public/r/styles/base-rhea/toast.json +1 -1
  443. package/public/r/styles/base-rhea/toggle-group.json +1 -1
  444. package/public/r/styles/base-rhea/toggle.json +1 -1
  445. package/public/r/styles/base-rhea/tooltip.json +1 -1
  446. package/public/r/styles/base-sera/accordion.json +1 -1
  447. package/public/r/styles/base-sera/alert-dialog.json +1 -1
  448. package/public/r/styles/base-sera/code-block-examples.json +33 -0
  449. package/public/r/styles/base-sera/code-block.json +65 -0
  450. package/public/r/styles/base-sera/collapsible-examples.json +5 -0
  451. package/public/r/styles/base-sera/collapsible.json +2 -2
  452. package/public/r/styles/base-sera/combobox.json +3 -3
  453. package/public/r/styles/base-sera/command.json +2 -2
  454. package/public/r/styles/base-sera/components.json +2 -0
  455. package/public/r/styles/base-sera/dialog.json +1 -1
  456. package/public/r/styles/base-sera/drawer.json +1 -1
  457. package/public/r/styles/base-sera/dropdown-menu.json +1 -1
  458. package/public/r/styles/base-sera/hover-card.json +2 -2
  459. package/public/r/styles/base-sera/navigation-menu.json +1 -1
  460. package/public/r/styles/base-sera/popover.json +1 -1
  461. package/public/r/styles/base-sera/progress-examples.json +33 -0
  462. package/public/r/styles/base-sera/progress.json +23 -0
  463. package/public/r/styles/base-sera/radio-group.json +1 -1
  464. package/public/r/styles/base-sera/registry.json +163 -26
  465. package/public/r/styles/base-sera/resizable.json +1 -1
  466. package/public/r/styles/base-sera/select.json +1 -1
  467. package/public/r/styles/base-sera/sheet.json +1 -1
  468. package/public/r/styles/base-sera/sidebar.json +1 -1
  469. package/public/r/styles/base-sera/slider.json +1 -1
  470. package/public/r/styles/base-sera/switch.json +1 -1
  471. package/public/r/styles/base-sera/tabs.json +1 -1
  472. package/public/r/styles/base-sera/toast.json +1 -1
  473. package/public/r/styles/base-sera/toggle-group.json +1 -1
  474. package/public/r/styles/base-sera/toggle.json +1 -1
  475. package/public/r/styles/base-sera/tooltip.json +1 -1
  476. package/public/r/styles/base-vega/accordion.json +1 -1
  477. package/public/r/styles/base-vega/alert-dialog.json +1 -1
  478. package/public/r/styles/base-vega/code-block-examples.json +33 -0
  479. package/public/r/styles/base-vega/code-block.json +65 -0
  480. package/public/r/styles/base-vega/collapsible-examples.json +5 -0
  481. package/public/r/styles/base-vega/collapsible.json +2 -2
  482. package/public/r/styles/base-vega/combobox.json +3 -3
  483. package/public/r/styles/base-vega/command.json +2 -2
  484. package/public/r/styles/base-vega/components.json +2 -0
  485. package/public/r/styles/base-vega/dialog.json +1 -1
  486. package/public/r/styles/base-vega/drawer.json +1 -1
  487. package/public/r/styles/base-vega/dropdown-menu.json +1 -1
  488. package/public/r/styles/base-vega/hover-card.json +2 -2
  489. package/public/r/styles/base-vega/navigation-menu.json +1 -1
  490. package/public/r/styles/base-vega/popover.json +1 -1
  491. package/public/r/styles/base-vega/progress-examples.json +33 -0
  492. package/public/r/styles/base-vega/progress.json +23 -0
  493. package/public/r/styles/base-vega/radio-group.json +1 -1
  494. package/public/r/styles/base-vega/registry.json +163 -26
  495. package/public/r/styles/base-vega/resizable.json +1 -1
  496. package/public/r/styles/base-vega/select.json +1 -1
  497. package/public/r/styles/base-vega/sheet.json +1 -1
  498. package/public/r/styles/base-vega/sidebar.json +1 -1
  499. package/public/r/styles/base-vega/slider.json +1 -1
  500. package/public/r/styles/base-vega/switch.json +1 -1
  501. package/public/r/styles/base-vega/tabs.json +1 -1
  502. package/public/r/styles/base-vega/toast.json +1 -1
  503. package/public/r/styles/base-vega/toggle-group.json +1 -1
  504. package/public/r/styles/base-vega/toggle.json +1 -1
  505. package/public/r/styles/base-vega/tooltip.json +1 -1
  506. package/public/r/switch.json +1 -1
  507. package/public/r/tabs.json +1 -1
  508. package/public/r/toast.json +1 -1
  509. package/public/r/toggle-group.json +1 -1
  510. package/public/r/toggle.json +1 -1
  511. package/public/r/tooltip.json +1 -1
  512. package/registry.json +150 -26
  513. package/src/components/examples/code-block/code-block-demo.astro +24 -0
  514. package/src/components/examples/code-block/code-block-lines.astro +20 -0
  515. package/src/components/examples/code-block/code-block-numbered.astro +13 -0
  516. package/src/components/examples/code-block/code-block-wrap.astro +20 -0
  517. package/src/components/examples/collapsible/collapsible-dismissal.astro +46 -0
  518. package/src/components/examples/progress/progress-custom-max.astro +12 -0
  519. package/src/components/examples/progress/progress-demo.astro +10 -0
  520. package/src/components/examples/progress/progress-indeterminate.astro +5 -0
  521. package/src/components/examples/progress/progress-rtl.astro +11 -0
  522. package/src/components/ui/code-block/code-block-actions.astro +19 -0
  523. package/src/components/ui/code-block/code-block-content.astro +44 -0
  524. package/src/components/ui/code-block/code-block-copy-button.astro +88 -0
  525. package/src/components/ui/code-block/code-block-footer.astro +19 -0
  526. package/src/components/ui/code-block/code-block-header.astro +19 -0
  527. package/src/components/ui/code-block/code-block-line.astro +36 -0
  528. package/src/components/ui/code-block/code-block-title.astro +19 -0
  529. package/src/components/ui/code-block/code-block.astro +41 -0
  530. package/src/components/ui/code-block/index.ts +8 -0
  531. package/src/components/ui/collapsible/collapsible.astro +6 -0
  532. package/src/components/ui/combobox/combobox-input.astro +9 -2
  533. package/src/components/ui/progress/index.ts +1 -0
  534. package/src/components/ui/progress/progress.astro +83 -0
  535. package/src/styles/global.css +5 -0
@@ -0,0 +1 @@
1
+ import{clearRootBinding as e,computeFloatingPosition as t,computeFloatingTransformOrigin as n,createContentMount as r,createDismissLayer as i,createPortalLifecycle as a,createPositionSync as o,createPresenceLifecycle as s,createTerminalLifecycle as c,emit as l,ensureId as u,getDataBool as d,getDataEnum as f,getDataNumber as p,getOwnedElements as ee,getPart as m,getRoots as h,hasRootBinding as g,measurePopupContentRect as te,on as _,onRoot as ne,registerFloatingTerminalResources as re,reuseRootBinding as ie,setRootBinding as ae}from"@data-slot/core";const v=`@data-slot/tooltip`;let y=0;const b=new Set,x=new Set,S=(e,t)=>{if(!e)return!1;for(let n of b)if(n!==t&&n.contains(e))return!0;return!1},oe=(e,t)=>{for(let n of x)n(e,t)},se=[`top`,`right`,`bottom`,`left`,`inline-start`,`inline-end`],ce=[`start`,`center`,`end`],le=(e,t)=>e===`inline-start`?t===`rtl`?`right`:`left`:e===`inline-end`?t===`rtl`?`left`:`right`:e,C=(...e)=>[...new Set(e.filter(e=>e!=null))];function w(h,g={}){let w=ie(h,v,`[@data-slot/tooltip] createTooltip() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(w)return w;let T=m(h,`tooltip-trigger`),E=m(h,`tooltip-content`),D=E?ee(h,E,`[data-slot="tooltip-arrow"]`)[0]??null:null,O=m(h,`tooltip-positioner`),k=O&&E&&O.contains(E)?O:null,A=m(h,`tooltip-portal`),j=A&&k&&A.contains(k)?A:null;if(!T||!E)throw Error(`Tooltip requires trigger and content slots`);D&&(D.setAttribute(`aria-hidden`,`true`),D.style.position=`absolute`);let ue=g.delay??p(h,`delay`)??300,de=g.skipDelayDuration??p(h,`skipDelayDuration`)??300,fe=g.onOpenChange,pe=g.portal??d(E,`portal`)??d(h,`portal`)??!0,me=(e,t)=>f(E,e,t)??(k?f(k,e,t):void 0)??f(h,e,t),M=e=>p(E,e)??(k?p(k,e):void 0)??p(h,e),he=e=>d(E,e)??(k?d(k,e):void 0)??d(h,e),N=g.side??me(`side`,se)??`top`,P=g.align??me(`align`,ce)??`center`,ge=g.sideOffset??M(`sideOffset`)??4,_e=g.alignOffset??M(`alignOffset`)??0,ve=g.avoidCollisions??he(`avoidCollisions`)??!0,ye=g.collisionPadding??M(`collisionPadding`)??8,F=!1,I=null,L=!1,R=c(),z=null,B=[],V=a({content:E,root:h,enabled:pe,wrapperSlot:k?void 0:`tooltip-positioner`,container:k??void 0,mountTarget:k?j??k:void 0}),be=g.mountStrategy??f(h,`mountStrategy`,[`lazy`,`eager`])??`lazy`,H=r({root:h,target:j??k??E,strategy:be});B.push(()=>H.cleanup());let U=u(E,`tooltip-content`),W=!1,xe=!1,G=()=>T.getAttribute(`aria-describedby`)?.split(/\s+/).filter(Boolean)??[],Se=()=>{let e=G();e.includes(U)||(T.setAttribute(`aria-describedby`,[...e,U].join(` `)),W=!0)},K=()=>{if(!W)return;let e=G().filter(e=>e!==U);e.length?T.setAttribute(`aria-describedby`,e.join(` `)):T.removeAttribute(`aria-describedby`),W=!1},Ce=()=>{be===`lazy`&&G().includes(U)&&(xe||=!W,W=!0,K()),H.unmount()};E.setAttribute(`role`,`tooltip`);let we=()=>{let e=h instanceof HTMLElement?h:null;return(e?.getAttribute(`dir`)??T.getAttribute(`dir`))===`rtl`||(getComputedStyle(T).direction||(e?getComputedStyle(e).direction:``)||h.ownerDocument.documentElement.getAttribute(`dir`)||``)===`rtl`?`rtl`:`ltr`},Te=(e,t)=>{let n=V.container;for(let r of C(E,n,D))r.setAttribute(`data-side`,e),r.setAttribute(`data-align`,t)},Ee=e=>{let t=V.container;for(let n of C(h,E,t,D))e?n.setAttribute(`data-instant`,e):n.removeAttribute(`data-instant`)},De=(e,t,n,r)=>{if(!D)return;D.style.position=`absolute`;let i=D.getBoundingClientRect(),a=D.offsetWidth>0?D.offsetWidth:i.width,o=D.offsetHeight>0?D.offsetHeight:i.height;if(a<=0||o<=0){D.style.removeProperty(`left`),D.style.removeProperty(`top`),D.removeAttribute(`data-uncentered`);return}let s=le(e,t);if(s===`top`||s===`bottom`){let e=n.left+n.width/2-r.left-a/2,t=Math.max(5,r.width-a-5),i=Math.min(Math.max(e,5),t);D.style.left=`${i}px`,D.style.removeProperty(`top`),Math.abs(i-e)>.5?D.setAttribute(`data-uncentered`,``):D.removeAttribute(`data-uncentered`);return}let c=n.top+n.height/2-r.top-o/2,l=Math.max(5,r.height-o-5),u=Math.min(Math.max(c,5),l);D.style.top=`${u}px`,D.style.removeProperty(`left`),Math.abs(u-c)>.5?D.setAttribute(`data-uncentered`,``):D.removeAttribute(`data-uncentered`)},q=e=>{let t=V.container;if(h.setAttribute(`data-state`,e),E.setAttribute(`data-state`,e),Ee(I),e===`open`){for(let e of C(h,E,t,D))e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`);return}for(let e of C(h,E,t,D))e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`)},Oe=()=>{let e=V.container,r=h.ownerDocument.defaultView??window,i=we(),a=T.getBoundingClientRect(),o=te(E),s=t({anchorRect:a,contentRect:o,side:N,align:P,sideOffset:ge,alignOffset:_e,avoidCollisions:ve,collisionPadding:ye,direction:i}),c=n({side:s.side,align:s.align,anchorRect:a,popupX:s.x,popupY:s.y,direction:i});e.style.position=`absolute`,e.style.top=`0px`,e.style.left=`0px`,e.style.transform=`translate3d(${s.x+r.scrollX}px, ${s.y+r.scrollY}px, 0)`,e.style.setProperty(`--transform-origin`,c),e.style.willChange=`transform`,e.style.margin=`0`,Te(s.side,s.align),De(s.side,i,a,{top:s.y,left:s.x,right:s.x+o.width,bottom:s.y+o.height,width:o.width,height:o.height})},J=s({element:E,onExitComplete:()=>{R.isDestroyed||(V.restore(),E.hidden=!0,Ce())}}),Y=o({observedElements:[T,E],isActive:()=>F,ancestorScroll:!1,onUpdate:Oe}),X=()=>T.hasAttribute(`disabled`)||T.getAttribute(`aria-disabled`)===`true`,Z=(e,t,n=null)=>{R.isDestroyed||F!==e&&(!e&&F&&de>0&&(y=Date.now()+de),I=n,F=e,F?(H.mount(),V.mount(),Se(),E.setAttribute(`aria-hidden`,`false`),E.hidden=!1,q(`open`),J.enter(),Oe(),Y.start()):(q(`closed`),K(),E.setAttribute(`aria-hidden`,`true`),J.exit(),Y.stop()),l(h,`tooltip:change`,{open:F,trigger:T,content:E,reason:t}),fe?.(F))},ke=e=>{if(z&&=(R.cancelTimeout(z),null),Date.now()<y){Z(!0,e,`delay`);return}z=R.trackTimeout(()=>{R.isDestroyed||(Z(!0,e,e===`focus`?`focus`:null),z=null)},ue)},Q=(e,t=null)=>{z&&=(R.cancelTimeout(z),null),Z(!1,e,t)},Ae=(e,t)=>{e===T||!F||(L=!1,Q(t,`delay`))};b.add(T),x.add(Ae),B.push(()=>{x.delete(Ae),b.delete(T)}),E.hidden=!0,E.setAttribute(`aria-hidden`,`true`),Te(N,P),q(`closed`),B.push(_(T,`pointerenter`,e=>{e.pointerType!==`touch`&&(X()||(oe(T,`pointer`),ke(`pointer`)))}),_(T,`pointerleave`,e=>{if(e.pointerType===`touch`||L)return;let t=e.relatedTarget;if(!(t&&E.contains(t))){if(S(t,T)){Q(`pointer`,`delay`);return}Q(`pointer`)}}),_(T,`click`,()=>{if(!X()){if(z){R.cancelTimeout(z),z=null;return}F&&Q(`pointer`,`dismiss`)}}),_(T,`focus`,()=>{L=!0,!X()&&(oe(T,`focus`),ke(`focus`))}),_(T,`blur`,e=>{L=!1;let t=e.relatedTarget;if(S(t,T)){Q(`blur`,`delay`);return}Q(`blur`)})),B.push(_(E,`pointerleave`,e=>{if(e.pointerType===`touch`||L)return;let t=e.relatedTarget;if(!(t&&T.contains(t))){if(S(t,T)){Q(`pointer`,`delay`);return}Q(`pointer`)}})),B.push(ne(h,`tooltip:set`,e=>{let t=e.detail,n;if(t?.open===void 0?t?.value!==void 0&&(n=t.value):n=t.open,typeof n==`boolean`)if(n){if(X())return;z&&=(R.cancelTimeout(z),null),Z(!0,`api`)}else Q(`api`)})),B.push(i({root:h,isOpen:()=>F,onDismiss:()=>Q(`escape`,`dismiss`),closeOnClickOutside:!1,closeOnEscape:!0,preventEscapeDefault:!1}));let $={show:()=>{R.isDestroyed||X()||(z&&=(R.cancelTimeout(z),null),Z(!0,`api`))},hide:()=>{R.isDestroyed||Q(`api`)},get isOpen(){return F},destroy:()=>{R.destroy()&&(z&&R.cancelTimeout(z),z=null,F=!1,q(`closed`),K(),xe&&Se(),E.setAttribute(`aria-hidden`,`true`),E.hidden=!0)}};return re(R,{cleanups:B,positionSync:Y,presence:J,portal:V,unbind:()=>e(h,v,$)}),Ce(),ae(h,v,$),$}function T(e=document){let t=[];for(let n of h(e,`tooltip`))g(n,v)||t.push(w(n));return t}export{T as create,w as createTooltip};
@@ -0,0 +1,180 @@
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "assets/data-slot-core.js",
5
+ "package": "@data-slot/core",
6
+ "version": "1.1.1",
7
+ "source": "dist/index.js",
8
+ "license": "LICENSE-DATA-SLOT.md",
9
+ "sha256": "d2879cc3a2f05a7867763b937bad3bd4a369f54670989ce535367cb690fb66e6"
10
+ },
11
+ {
12
+ "path": "assets/data-slot-dialog.js",
13
+ "package": "@data-slot/dialog",
14
+ "version": "1.1.1",
15
+ "source": "dist/index.js",
16
+ "license": "LICENSE-DATA-SLOT.md",
17
+ "sha256": "a5201f452700d04145b5156cc46880d2b5bdf7521b03ff9521c3f7693ee1b5d5"
18
+ },
19
+ {
20
+ "path": "assets/data-slot-command.js",
21
+ "package": "@data-slot/command",
22
+ "version": "1.1.1",
23
+ "source": "dist/index.js",
24
+ "license": "LICENSE-DATA-SLOT.md",
25
+ "sha256": "f7944120617676b14dfda2ea3f3e8a15767e0766d5312b4ed9519affe9b7444a"
26
+ },
27
+ {
28
+ "path": "assets/data-slot-navigation-menu.js",
29
+ "package": "@data-slot/navigation-menu",
30
+ "version": "1.1.1",
31
+ "source": "dist/index.js",
32
+ "license": "LICENSE-DATA-SLOT.md",
33
+ "sha256": "f9b42a9bceca8e1103718d43aa5f0d141ab63d38278cb121e790a2c80e827b68"
34
+ },
35
+ {
36
+ "path": "assets/data-slot-accordion.js",
37
+ "package": "@data-slot/accordion",
38
+ "version": "1.1.1",
39
+ "source": "dist/index.js",
40
+ "license": "LICENSE-DATA-SLOT.md",
41
+ "sha256": "fe6b0ac2c87a2e31582e5e88c509e0b508f41d0065d0a420407999ad210e6a27"
42
+ },
43
+ {
44
+ "path": "assets/data-slot-tabs.js",
45
+ "package": "@data-slot/tabs",
46
+ "version": "1.1.1",
47
+ "source": "dist/index.js",
48
+ "license": "LICENSE-DATA-SLOT.md",
49
+ "sha256": "1f187134bba755cfda9d35cf9f16174c1a183862d32d100f270f4177033058c7"
50
+ },
51
+ {
52
+ "path": "assets/data-slot-combobox.js",
53
+ "package": "@data-slot/combobox",
54
+ "version": "1.1.1",
55
+ "source": "dist/index.js",
56
+ "license": "LICENSE-DATA-SLOT.md",
57
+ "sha256": "b5f2ed9d65a43d836c59c0d4dc33c16ab12ef9fa05d510078b5d62517d854db6"
58
+ },
59
+ {
60
+ "path": "assets/data-slot-carousel.js",
61
+ "package": "@data-slot/carousel",
62
+ "version": "1.1.1",
63
+ "source": "dist/index.js",
64
+ "license": "LICENSE-DATA-SLOT.md",
65
+ "sha256": "d83ef938d3b62dc3652b123428ca2261e03fb2ba1133992b0f5545a974238d03"
66
+ },
67
+ {
68
+ "path": "assets/data-slot-alert-dialog.js",
69
+ "package": "@data-slot/alert-dialog",
70
+ "version": "1.1.1",
71
+ "source": "dist/index.js",
72
+ "license": "LICENSE-DATA-SLOT.md",
73
+ "sha256": "1caee9a86bb2a816ea32bc1a48b82f3cc588ec3c563ebc443f836ab1dae2f618"
74
+ },
75
+ {
76
+ "path": "assets/data-slot-collapsible.js",
77
+ "package": "@data-slot/collapsible",
78
+ "version": "1.1.1",
79
+ "source": "dist/index.js",
80
+ "license": "LICENSE-DATA-SLOT.md",
81
+ "sha256": "c42f76e3dfeff4570eb2f5104434fbffd3ef55710833e888965c590ce59f4f9f"
82
+ },
83
+ {
84
+ "path": "assets/data-slot-drawer.js",
85
+ "package": "@data-slot/drawer",
86
+ "version": "1.1.1",
87
+ "source": "dist/index.js",
88
+ "license": "LICENSE-DATA-SLOT.md",
89
+ "sha256": "c9343b26ea27193cc1d2da3e41bf452005bc2e534151fa1a762b2b6535de28d0"
90
+ },
91
+ {
92
+ "path": "assets/data-slot-dropdown-menu.js",
93
+ "package": "@data-slot/dropdown-menu",
94
+ "version": "1.1.1",
95
+ "source": "dist/index.js",
96
+ "license": "LICENSE-DATA-SLOT.md",
97
+ "sha256": "543c5717c9ba8363bbab4c0a11005980d75d4baaed79cf7123c7bcfe3ec8720b"
98
+ },
99
+ {
100
+ "path": "assets/data-slot-hover-card.js",
101
+ "package": "@data-slot/hover-card",
102
+ "version": "1.1.1",
103
+ "source": "dist/index.js",
104
+ "license": "LICENSE-DATA-SLOT.md",
105
+ "sha256": "86e1bfa5d4822f180f3501ca7cc51bf044d4e917a7ebdb7a10b70006dba6467f"
106
+ },
107
+ {
108
+ "path": "assets/data-slot-popover.js",
109
+ "package": "@data-slot/popover",
110
+ "version": "1.1.1",
111
+ "source": "dist/index.js",
112
+ "license": "LICENSE-DATA-SLOT.md",
113
+ "sha256": "526e30d663381329a7a6394eae886224024034d0abf96f888c932bb4b8c1b1cb"
114
+ },
115
+ {
116
+ "path": "assets/data-slot-radio-group.js",
117
+ "package": "@data-slot/radio-group",
118
+ "version": "1.1.1",
119
+ "source": "dist/index.js",
120
+ "license": "LICENSE-DATA-SLOT.md",
121
+ "sha256": "7a9b90166de80d79ee42aa2df73e4d8179e9d291cb30b3095c7d8332375b0499"
122
+ },
123
+ {
124
+ "path": "assets/data-slot-select.js",
125
+ "package": "@data-slot/select",
126
+ "version": "1.1.1",
127
+ "source": "dist/index.js",
128
+ "license": "LICENSE-DATA-SLOT.md",
129
+ "sha256": "13d1a3fbe90f4b3b830d987b6a28267897faa3589bf00e64edca4938acbf406b"
130
+ },
131
+ {
132
+ "path": "assets/data-slot-slider.js",
133
+ "package": "@data-slot/slider",
134
+ "version": "1.1.1",
135
+ "source": "dist/index.js",
136
+ "license": "LICENSE-DATA-SLOT.md",
137
+ "sha256": "0d10131aa95450aa1269234103ead8d805d6abdf9e0683510f4fcf58ab0f1efa"
138
+ },
139
+ {
140
+ "path": "assets/data-slot-switch.js",
141
+ "package": "@data-slot/switch",
142
+ "version": "1.1.1",
143
+ "source": "dist/index.js",
144
+ "license": "LICENSE-DATA-SLOT.md",
145
+ "sha256": "0d5b09a89429880f61aeb540be5f87383ba5c6beb261ad468e9a6cf18e45b6a0"
146
+ },
147
+ {
148
+ "path": "assets/data-slot-toast.js",
149
+ "package": "@data-slot/toast",
150
+ "version": "1.1.1",
151
+ "source": "dist/index.js",
152
+ "license": "LICENSE-DATA-SLOT.md",
153
+ "sha256": "acfd86824d0ff37fbd62d0c48672e527d7391412780730e9a3a8d61268b3aaf2"
154
+ },
155
+ {
156
+ "path": "assets/data-slot-toggle.js",
157
+ "package": "@data-slot/toggle",
158
+ "version": "1.1.1",
159
+ "source": "dist/index.js",
160
+ "license": "LICENSE-DATA-SLOT.md",
161
+ "sha256": "7a651d578cb83be842c8e59fe1a2cd124594b1fd6c942faf0a33cf9e57326947"
162
+ },
163
+ {
164
+ "path": "assets/data-slot-toggle-group.js",
165
+ "package": "@data-slot/toggle-group",
166
+ "version": "1.1.1",
167
+ "source": "dist/index.js",
168
+ "license": "LICENSE-DATA-SLOT.md",
169
+ "sha256": "c1f2fc9712974e63e4e44c97ab2a1ec8bc3c3cb73c1afb4578b085fed11977f1"
170
+ },
171
+ {
172
+ "path": "assets/data-slot-tooltip.js",
173
+ "package": "@data-slot/tooltip",
174
+ "version": "1.1.1",
175
+ "source": "dist/index.js",
176
+ "license": "LICENSE-DATA-SLOT.md",
177
+ "sha256": "5a9e51a54669153620eb3512e74487eac12ababe3331aff7dfed6c717b8b93c0"
178
+ }
179
+ ]
180
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
3
  "type": "module",
4
- "version": "0.22.3",
5
- "description": "Open-source Astro UI components and blocks",
4
+ "version": "0.24.0",
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",
8
8
  "license": "MIT",
@@ -40,7 +40,8 @@
40
40
  "src/components/examples",
41
41
  "src/components/ui",
42
42
  "src/lib/utils.ts",
43
- "src/styles/global.css"
43
+ "src/styles/global.css",
44
+ "liquid"
44
45
  ],
45
46
  "publishConfig": {
46
47
  "access": "public"
@@ -49,31 +50,32 @@
49
50
  "node": ">=22.12.0"
50
51
  },
51
52
  "imports": {
52
- "#styles": "./scripts/styles.mjs"
53
+ "#styles": "./scripts/styles.mjs",
54
+ "#liquid-fixture": "./tests/helpers/liquid.mjs"
53
55
  },
54
56
  "dependencies": {
55
- "@data-slot/accordion": "^1.0.2",
56
- "@data-slot/alert-dialog": "^1.0.2",
57
- "@data-slot/collapsible": "^1.0.2",
58
- "@data-slot/combobox": "^1.0.2",
59
- "@data-slot/command": "^1.0.2",
60
- "@data-slot/core": "^1.0.2",
61
- "@data-slot/dialog": "^1.0.2",
62
- "@data-slot/drawer": "^1.0.2",
63
- "@data-slot/dropdown-menu": "^1.0.2",
64
- "@data-slot/hover-card": "^1.0.2",
65
- "@data-slot/navigation-menu": "^1.0.2",
66
- "@data-slot/popover": "^1.0.2",
67
- "@data-slot/radio-group": "^1.0.2",
68
- "@data-slot/resizable": "^1.0.2",
69
- "@data-slot/select": "^1.0.2",
70
- "@data-slot/slider": "^1.0.2",
71
- "@data-slot/switch": "^1.0.2",
72
- "@data-slot/tabs": "^1.0.2",
73
- "@data-slot/toast": "^1.0.2",
74
- "@data-slot/toggle": "^1.0.2",
75
- "@data-slot/toggle-group": "^1.0.2",
76
- "@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",
77
79
  "@lexingtonthemes/seo": "^0.4.0",
78
80
  "@lucide/astro": "^1.49.0",
79
81
  "class-variance-authority": "^0.7.1",
@@ -99,6 +101,7 @@
99
101
  "@changesets/cli": "^3.0.3",
100
102
  "@eslint/js": "^10.0.1",
101
103
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
104
+ "@shopify/prettier-plugin-liquid": "1.11.2",
102
105
  "@tailwindcss/vite": "^4.3.3",
103
106
  "@types/node": "^24.19.0",
104
107
  "astro": "^7.3.5",
@@ -113,6 +116,7 @@
113
116
  "html-validate": "^11.16.1",
114
117
  "knip": "^6.39.0",
115
118
  "linkinator": "^8.1.0",
119
+ "liquidjs": "10.25.1",
116
120
  "playwright": "1.64.0",
117
121
  "posthog-js": "1.434.15",
118
122
  "prettier": "^3.9.9",
@@ -137,11 +141,13 @@
137
141
  "ui:add": "node scripts/ui-add.ts",
138
142
  "build": "astro build && pnpm --dir react build && html-validate dist && linkinator dist",
139
143
  "a11y": "pnpm build && playwright install chromium --only-shell && node scripts/a11y.mjs",
140
- "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 && prettier --write registry.json react/registry.json public/r registry/styles/adapted --log-level warn",
141
- "registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json react/registry.json public/r registry/styles/adapted",
142
- "registry:validate": "node scripts/registry-validate.mjs && cd react && node ../scripts/registry-validate.mjs",
144
+ "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
+ "registry:check": "pnpm registry:validate && pnpm registry:build && git diff --exit-code -- registry.json react/registry.json liquid public/r registry/styles/adapted",
146
+ "registry:validate": "node scripts/registry-validate.mjs && cd react && node ../scripts/registry-validate.mjs && cd .. && node scripts/registry-liquid.mjs --check",
143
147
  "release": "changeset version && pnpm install --lockfile-only",
144
148
  "release:publish": "pnpm registry:check && changeset publish",
145
- "registry:meta": "node scripts/registry-meta.mjs"
149
+ "registry:meta": "node scripts/registry-meta.mjs",
150
+ "registry:liquid": "node scripts/registry-liquid.mjs && shadcn build -c liquid -o ../public/r/liquid",
151
+ "test:liquid": "node --test tests/liquid.test.mjs"
146
152
  }
147
153
  }
@@ -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
+ }
@@ -25,6 +25,11 @@
25
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",
26
26
  "type": "registry:component"
27
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",
31
+ "type": "registry:component"
32
+ },
28
33
  {
29
34
  "path": "src/components/examples/collapsible/collapsible-file-tree.astro",
30
35
  "content": "---\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\nimport FileIcon from \"@lucide/astro/icons/file\"\nimport FolderIcon from \"@lucide/astro/icons/folder\"\n\nimport { Button, buttonVariants } from \"@/components/ui/button\"\nimport { Card, CardContent, CardHeader } from \"@/components/ui/card\"\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\nimport { Tabs, TabsList, TabsTrigger } from \"@/components/ui/tabs\"\n\ntype FileTreeItem = { name: string } | { name: string; items: FileTreeItem[] }\n\nconst fileTree: FileTreeItem[] = [\n {\n name: \"components\",\n items: [\n {\n name: \"ui\",\n items: [\n { name: \"button.tsx\" },\n { name: \"card.tsx\" },\n { name: \"dialog.tsx\" },\n { name: \"input.tsx\" },\n { name: \"select.tsx\" },\n { name: \"table.tsx\" },\n ],\n },\n { name: \"login-form.tsx\" },\n { name: \"register-form.tsx\" },\n ],\n },\n {\n name: \"lib\",\n items: [{ name: \"utils.ts\" }, { name: \"cn.ts\" }, { name: \"api.ts\" }],\n },\n {\n name: \"hooks\",\n items: [\n { name: \"use-media-query.ts\" },\n { name: \"use-debounce.ts\" },\n { name: \"use-local-storage.ts\" },\n ],\n },\n {\n name: \"types\",\n items: [{ name: \"index.d.ts\" }, { name: \"api.d.ts\" }],\n },\n {\n name: \"public\",\n items: [{ name: \"favicon.ico\" }, { name: \"logo.svg\" }, { name: \"images\" }],\n },\n { name: \"app.tsx\" },\n { name: \"layout.tsx\" },\n { name: \"globals.css\" },\n { name: \"package.json\" },\n { name: \"tsconfig.json\" },\n { name: \"README.md\" },\n { name: \".gitignore\" },\n]\n\n// Renders the card, or one tree level when Astro.self passes `items`.\nconst { items } = Astro.props as { items?: FileTreeItem[] }\n---\n\n{items ? (\n items.map((fileItem) =>\n \"items\" in fileItem ? (\n <Collapsible>\n <CollapsibleTrigger\n class={buttonVariants({\n variant: \"ghost\",\n size: \"sm\",\n class:\n \"group hover:bg-accent hover:text-accent-foreground w-full justify-start transition-none\",\n })}\n >\n <ChevronRightIcon class=\"transition-transform group-data-[state=open]:rotate-90\" />\n <FolderIcon />\n {fileItem.name}\n </CollapsibleTrigger>\n <CollapsibleContent class=\"mt-1 ml-5\">\n <div class=\"flex flex-col gap-1\">\n <Astro.self items={fileItem.items} />\n </div>\n </CollapsibleContent>\n </Collapsible>\n ) : (\n <Button\n variant=\"link\"\n size=\"sm\"\n class=\"text-foreground w-full justify-start gap-2\"\n >\n <FileIcon />\n <span>{fileItem.name}</span>\n </Button>\n )\n )\n) : (\n <Card class=\"mx-auto w-full max-w-[16rem] gap-2\" size=\"sm\">\n <CardHeader>\n <Tabs defaultValue=\"explorer\">\n <TabsList class=\"w-full\">\n <TabsTrigger value=\"explorer\">Explorer</TabsTrigger>\n <TabsTrigger value=\"settings\">Outline</TabsTrigger>\n </TabsList>\n </Tabs>\n </CardHeader>\n <CardContent>\n <div class=\"flex flex-col gap-1\">\n <Astro.self items={fileTree} />\n </div>\n </CardContent>\n </Card>\n)}\n",
@@ -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": [
@@ -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
  {