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,670 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4 {
5
+ font-family: var(--font-heading);
6
+ font-weight: var(--heading-weight);
7
+ letter-spacing: var(--tracking-tight);
8
+ scroll-margin-top: 80px;
9
+ }
10
+ h1 {
11
+ font-size: 2.25rem;
12
+ line-height: 2.5rem;
13
+ text-wrap: balance;
14
+ }
15
+ h2 {
16
+ font-size: 1.875rem;
17
+ line-height: 2.25rem;
18
+ }
19
+ h3 {
20
+ font-size: 1.5rem;
21
+ line-height: 2rem;
22
+ }
23
+ h4 {
24
+ font-size: 1.25rem;
25
+ line-height: 1.75rem;
26
+ }
27
+ [data-size='sm']:is(h1) {
28
+ font-size: 1.875rem;
29
+ line-height: 2.25rem;
30
+ }
31
+ [data-size='sm']:is(h2) {
32
+ font-size: 1.5rem;
33
+ line-height: 2rem;
34
+ }
35
+ [data-size='sm']:is(h3) {
36
+ font-size: 1.25rem;
37
+ line-height: 1.75rem;
38
+ }
39
+ [data-size='sm']:is(h4) {
40
+ font-size: 1.125rem;
41
+ line-height: 1.75rem;
42
+ }
43
+ [data-size='lg']:is(h1) {
44
+ font-size: 3rem;
45
+ line-height: 1;
46
+ }
47
+ .muted {
48
+ color: var(--muted-foreground);
49
+ }
50
+ .link {
51
+ font-weight: 500;
52
+ text-decoration: underline;
53
+ }
54
+ .link:hover {
55
+ text-decoration-thickness: 2px;
56
+ }
57
+
58
+ /* Rich text from the editor or Shopify content: Fulldev UI's typography, shadcn/ui's typeset.
59
+ Text is 18px below 768px and 16px from there (sm 14px, lg 18px), headings scale in em, and the
60
+ flow sets the space between blocks. Theme tokens set the colors and fonts, images and videos
61
+ keep square corners, and a wide table scrolls. [data-not-typeset] keeps a part out.
62
+ The typeset class gives merchant rich text inside another part, such as a section or card
63
+ description, the same flow, headings, lists and links at that part's size, leading and color. */
64
+ :is([data-slot='typography'], .typeset) {
65
+ --typeset-font-heading: var(--font-heading);
66
+ --typeset-font-mono: var(--font-mono);
67
+ --typeset-flow: 1.25em;
68
+ --typeset-heading: currentcolor;
69
+ --typeset-muted: currentcolor;
70
+ --typeset-rule: var(--border);
71
+
72
+ overflow-wrap: break-word;
73
+ }
74
+ [data-slot='typography'] {
75
+ --typeset-font-body: inherit;
76
+ --typeset-size: 1rem;
77
+ --typeset-leading: 1.75;
78
+ --typeset-heading: var(--foreground);
79
+ --typeset-muted: var(--muted-foreground);
80
+
81
+ font-family: var(--typeset-font-body);
82
+ font-size: calc(var(--typeset-size) * 1.125);
83
+ line-height: var(--typeset-leading);
84
+ color: var(--foreground);
85
+ }
86
+ @media (min-width: 768px), print {
87
+ [data-slot='typography'] {
88
+ font-size: var(--typeset-size);
89
+ }
90
+ }
91
+ [data-slot='typography'][data-size='sm'] {
92
+ --typeset-size: 0.875rem;
93
+ --typeset-leading: 1.7;
94
+ --typeset-flow: 1.125em;
95
+ }
96
+ [data-slot='typography'][data-size='lg'] {
97
+ --typeset-size: 1.125rem;
98
+ --typeset-leading: 1.8;
99
+ --typeset-flow: 1.5em;
100
+ }
101
+ [data-slot='typography'][data-variant='muted'] {
102
+ color: var(--muted-foreground);
103
+ }
104
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(p) {
105
+ margin-block: var(--typeset-flow) 0;
106
+ }
107
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1),
108
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h2),
109
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h3),
110
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h4),
111
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h5),
112
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h6) {
113
+ color: var(--typeset-heading);
114
+ font-family: var(--typeset-font-heading);
115
+ font-weight: var(--heading-weight);
116
+ letter-spacing: var(--tracking-normal);
117
+ margin-block-end: 0;
118
+ }
119
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1) {
120
+ font-size: 1.75em;
121
+ line-height: 1.3;
122
+ margin-block-start: var(--typeset-flow);
123
+ }
124
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h2) {
125
+ font-size: 1.25em;
126
+ line-height: 1.4;
127
+ margin-block-start: calc(var(--typeset-flow) * 1.4);
128
+ }
129
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h3) {
130
+ font-size: 1.125em;
131
+ line-height: 1.45;
132
+ margin-block-start: var(--typeset-flow);
133
+ }
134
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h4) {
135
+ font-size: 1em;
136
+ line-height: 1.5;
137
+ margin-block-start: var(--typeset-flow);
138
+ }
139
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h5) {
140
+ font-size: 0.875em;
141
+ line-height: 1.5;
142
+ font-weight: 500;
143
+ color: var(--typeset-muted);
144
+ margin-block-start: calc(var(--typeset-flow) / 0.875);
145
+ }
146
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h6) {
147
+ font-size: 0.8125em;
148
+ line-height: 1.5;
149
+ font-weight: 500;
150
+ letter-spacing: 0.08em;
151
+ text-transform: uppercase;
152
+ color: var(--typeset-muted);
153
+ margin-block-start: calc(var(--typeset-flow) / 0.8125);
154
+ }
155
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where([id]) {
156
+ scroll-margin-block-start: var(--typeset-flow);
157
+ }
158
+ :is([data-slot='typography'], .typeset)
159
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
160
+ margin-block-start: 1em;
161
+ }
162
+ :is([data-slot='typography'], .typeset)
163
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(h1, h2, h3, h4) :is(code)) {
164
+ font-size: 0.9em;
165
+ }
166
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(a) {
167
+ color: inherit;
168
+ font-weight: 500;
169
+ text-decoration-line: underline;
170
+ }
171
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(a:hover) {
172
+ text-decoration-thickness: 2px;
173
+ }
174
+ :is([data-slot='typography'], .typeset)
175
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
176
+ font-weight: inherit;
177
+ }
178
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(strong, b) {
179
+ font-weight: 600;
180
+ }
181
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(mark) {
182
+ padding: 0.05em 0.15em;
183
+ border-radius: 0.2em;
184
+ background-color: color-mix(in oklab, var(--primary) 15%, transparent);
185
+ color: inherit;
186
+ }
187
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(abbr[title]) {
188
+ text-decoration-line: underline;
189
+ text-decoration-style: dotted;
190
+ text-underline-offset: 0.2em;
191
+ cursor: help;
192
+ }
193
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(del, s) {
194
+ color: var(--typeset-muted);
195
+ text-decoration-line: line-through;
196
+ }
197
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup, sub) {
198
+ position: relative;
199
+ font-size: 0.75em;
200
+ line-height: 0;
201
+ vertical-align: baseline;
202
+ }
203
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup) {
204
+ top: -0.5em;
205
+ }
206
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sub) {
207
+ bottom: -0.25em;
208
+ }
209
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(sup a) {
210
+ text-decoration-line: none;
211
+ font-weight: 500;
212
+ }
213
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul) {
214
+ list-style-type: disc;
215
+ }
216
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol) {
217
+ list-style-type: decimal;
218
+ }
219
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul ul) {
220
+ list-style-type: circle;
221
+ }
222
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul ul ul) {
223
+ list-style-type: square;
224
+ }
225
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='a' i]) {
226
+ list-style-type: lower-alpha;
227
+ }
228
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='i' i]) {
229
+ list-style-type: lower-roman;
230
+ }
231
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='A' s]) {
232
+ list-style-type: upper-alpha;
233
+ }
234
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol[type='I' s]) {
235
+ list-style-type: upper-roman;
236
+ }
237
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul, ol) {
238
+ margin-block: var(--typeset-flow) 0;
239
+ padding-inline-start: 1.5em;
240
+ }
241
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(li) {
242
+ margin-block-start: 0.5em;
243
+ padding-inline-start: 0.4em;
244
+ }
245
+ :is([data-slot='typography'], .typeset)
246
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(li > p, li > ul, li > ol) {
247
+ margin-block-start: 0.5em;
248
+ }
249
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ul > li)::marker,
250
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(ol > li)::marker {
251
+ color: var(--typeset-muted);
252
+ }
253
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(details) {
254
+ margin-block: var(--typeset-flow) 0;
255
+ }
256
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(summary) {
257
+ cursor: pointer;
258
+ font-weight: 500;
259
+ }
260
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(summary)::marker {
261
+ color: var(--typeset-muted);
262
+ }
263
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(kbd) {
264
+ padding: 0.0625em 0.35em;
265
+ border: 1px solid var(--typeset-rule);
266
+ border-block-end-width: 2px;
267
+ border-radius: min(calc(var(--radius) * 0.6), 0.35em);
268
+ font-family: inherit;
269
+ font-size: 0.85em;
270
+ font-weight: 500;
271
+ }
272
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dl) {
273
+ margin-block: var(--typeset-flow) 0;
274
+ }
275
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dt) {
276
+ margin-block-start: 1em;
277
+ font-weight: 500;
278
+ }
279
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dt + dt) {
280
+ margin-block-start: 0.25em;
281
+ }
282
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(dd) {
283
+ margin-block-start: 0.25em;
284
+ margin-inline-start: 0;
285
+ padding-inline-start: 1em;
286
+ color: var(--typeset-muted);
287
+ }
288
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(:not(pre) > code) {
289
+ padding: 0.125em 0.3em;
290
+ border-radius: min(calc(var(--radius) * 0.6), 0.35em);
291
+ background-color: var(--muted);
292
+ font-family: var(--typeset-font-mono);
293
+ font-size: 0.85em;
294
+ }
295
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(pre) {
296
+ margin-block: calc(var(--typeset-flow) / 0.875) 0;
297
+ overflow-x: auto;
298
+ padding: 0.75em 1em;
299
+ border-radius: var(--radius);
300
+ background-color: var(--muted);
301
+ font-family: var(--typeset-font-mono);
302
+ font-size: 0.875em;
303
+ line-height: 1.5;
304
+ tab-size: 2;
305
+ direction: ltr;
306
+ }
307
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(pre code) {
308
+ padding: 0;
309
+ border-radius: 0;
310
+ background-color: transparent;
311
+ font-family: inherit;
312
+ font-size: inherit;
313
+ }
314
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(blockquote) {
315
+ margin-block: var(--typeset-flow) 0;
316
+ margin-inline: 0;
317
+ padding-inline-start: 1em;
318
+ border-inline-start: 2px solid var(--typeset-rule);
319
+ }
320
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(hr) {
321
+ margin-block: calc(var(--typeset-flow) * 2.4) 0;
322
+ border: 0;
323
+ border-block-start: 1px solid var(--typeset-rule);
324
+ }
325
+ :is([data-slot='typography'], .typeset)
326
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(hr + h1, hr + h2, hr + h3, hr + h4) {
327
+ margin-block-start: var(--typeset-flow);
328
+ }
329
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(img, video) {
330
+ max-width: 100%;
331
+ height: auto;
332
+ margin-block: var(--typeset-flow) 0;
333
+ }
334
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(iframe) {
335
+ max-width: 100%;
336
+ margin-block: var(--typeset-flow) 0;
337
+ }
338
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(p img) {
339
+ margin-block-start: 0;
340
+ }
341
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(figure) {
342
+ margin-block: var(--typeset-flow) 0;
343
+ margin-inline: 0;
344
+ }
345
+ :is([data-slot='typography'], .typeset)
346
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(figcaption, caption) {
347
+ margin-block-start: calc(0.75em / 0.875);
348
+ color: var(--typeset-muted);
349
+ font-size: 0.875em;
350
+ text-align: center;
351
+ }
352
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(caption) {
353
+ caption-side: bottom;
354
+ }
355
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(table) {
356
+ display: block;
357
+ width: max-content;
358
+ max-width: 100%;
359
+ margin-block: var(--typeset-flow) 0;
360
+ overflow-x: auto;
361
+ border-block-end: 1px solid var(--typeset-rule);
362
+ border-collapse: separate;
363
+ border-spacing: 0;
364
+ font-size: 1em;
365
+ line-height: 1.5;
366
+ font-variant-numeric: tabular-nums;
367
+ }
368
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(thead th) {
369
+ padding: 0.65em 1em;
370
+ font-weight: 500;
371
+ text-align: start;
372
+ white-space: nowrap;
373
+ }
374
+ :is([data-slot='typography'], .typeset)
375
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(:is(tbody, tfoot) :is(td, th)) {
376
+ padding: 0.75em 1em;
377
+ border-block-start: 1px solid var(--typeset-rule);
378
+ text-align: start;
379
+ vertical-align: top;
380
+ }
381
+ :is([data-slot='typography'], .typeset)
382
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(tbody th, tfoot th) {
383
+ font-weight: 500;
384
+ }
385
+ :is([data-slot='typography'], .typeset)
386
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(th:first-child, td:first-child) {
387
+ padding-inline-start: 0;
388
+ }
389
+ :is([data-slot='typography'], .typeset)
390
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(th[align='center'], td[align='center']) {
391
+ text-align: center;
392
+ }
393
+ :is([data-slot='typography'], .typeset)
394
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(th[align='right'], td[align='right']) {
395
+ text-align: end;
396
+ }
397
+ :is([data-slot='typography'], .typeset)
398
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(li > blockquote, li > table, li > figure) {
399
+ margin-block-start: 0.5em;
400
+ }
401
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(li > pre) {
402
+ margin-block-start: calc(0.5em / 0.875);
403
+ }
404
+ @media print {
405
+ :is([data-slot='typography'], .typeset)
406
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(pre, table, blockquote, figure) {
407
+ break-inside: avoid;
408
+ }
409
+ :is([data-slot='typography'], .typeset) :not(:where([data-not-typeset], [data-not-typeset] *)):where(h1, h2, h3, h4) {
410
+ break-after: avoid;
411
+ }
412
+ }
413
+ @media (forced-colors: active) {
414
+ :is([data-slot='typography'], .typeset)
415
+ :not(:where([data-not-typeset], [data-not-typeset] *)):where(:not(pre) > code) {
416
+ border: 1px solid;
417
+ }
418
+ }
419
+ :is([data-slot='typography'], .typeset) > :where(:first-child):not(:where([data-not-typeset], [data-not-typeset] *)),
420
+ :is([data-slot='typography'], .typeset)
421
+ > :where(:first-child)
422
+ > :where(:first-child):not(:where([data-not-typeset], [data-not-typeset] *)),
423
+ :is([data-slot='typography'], .typeset)
424
+ :where(
425
+ li > :first-child,
426
+ blockquote > :first-child,
427
+ td > :first-child,
428
+ th > :first-child,
429
+ dd > :first-child,
430
+ figure > :first-child,
431
+ figure > picture > img
432
+ ):not(:where([data-not-typeset], [data-not-typeset] *)) {
433
+ margin-block-start: 0;
434
+ }
435
+
436
+ /* Typography parts, as Fulldev UI's typography components: the same roles outside rich text,
437
+ each with the sm and lg sizes. Large, small and muted are shadcn/ui's typography roles. */
438
+ [data-slot='typography-h1'],
439
+ [data-slot='typography-h2'],
440
+ [data-slot='typography-h3'],
441
+ [data-slot='typography-h4'] {
442
+ font-family: var(--font-heading);
443
+ font-weight: var(--heading-weight);
444
+ letter-spacing: var(--tracking-tight);
445
+ scroll-margin-top: 80px;
446
+ }
447
+ [data-slot='typography-h1'] {
448
+ text-wrap: balance;
449
+ font-size: 2.25rem;
450
+ line-height: 2.5rem;
451
+ }
452
+ [data-slot='typography-h1'][data-size='sm'] {
453
+ font-size: 1.875rem;
454
+ line-height: 2.25rem;
455
+ }
456
+ [data-slot='typography-h1'][data-size='lg'] {
457
+ font-size: 3rem;
458
+ line-height: 1;
459
+ }
460
+ [data-slot='typography-h2'] {
461
+ font-size: 1.875rem;
462
+ line-height: 2.25rem;
463
+ }
464
+ [data-slot='typography-h2'][data-size='sm'] {
465
+ font-size: 1.5rem;
466
+ line-height: 2rem;
467
+ }
468
+ [data-slot='typography-h2'][data-size='lg'] {
469
+ font-size: 2.25rem;
470
+ line-height: 2.5rem;
471
+ }
472
+ [data-slot='typography-h3'] {
473
+ font-size: 1.5rem;
474
+ line-height: 2rem;
475
+ }
476
+ [data-slot='typography-h3'][data-size='sm'] {
477
+ font-size: 1.25rem;
478
+ line-height: 1.75rem;
479
+ }
480
+ [data-slot='typography-h3'][data-size='lg'] {
481
+ font-size: 1.875rem;
482
+ line-height: 2.25rem;
483
+ }
484
+ [data-slot='typography-h4'] {
485
+ font-size: 1.25rem;
486
+ line-height: 1.75rem;
487
+ }
488
+ [data-slot='typography-h4'][data-size='sm'] {
489
+ font-size: 1.125rem;
490
+ line-height: 1.75rem;
491
+ }
492
+ [data-slot='typography-h4'][data-size='lg'] {
493
+ font-size: 1.5rem;
494
+ line-height: 2rem;
495
+ }
496
+ [data-slot='typography-p'],
497
+ [data-slot='typography-blockquote'],
498
+ [data-slot='typography-list'] {
499
+ font-size: 1rem;
500
+ line-height: 1.75rem;
501
+ }
502
+ [data-slot='typography-p']:not(:first-child) {
503
+ margin-top: 1.5rem;
504
+ }
505
+ [data-slot='typography-lead'] {
506
+ font-size: 1.125rem;
507
+ line-height: 1.75rem;
508
+ color: var(--muted-foreground);
509
+ }
510
+ [data-slot='typography-lead'][data-size='sm'] {
511
+ font-size: 1rem;
512
+ line-height: 1.5rem;
513
+ }
514
+ [data-slot='typography-lead'][data-size='lg'] {
515
+ font-size: 1.25rem;
516
+ line-height: 1.75rem;
517
+ }
518
+ [data-slot='typography-large'] {
519
+ font-size: 1.125rem;
520
+ font-weight: 600;
521
+ line-height: 1.75rem;
522
+ }
523
+ [data-slot='typography-small'] {
524
+ font-size: 0.875rem;
525
+ font-weight: 500;
526
+ line-height: 1;
527
+ }
528
+ [data-slot='typography-muted'] {
529
+ font-size: 0.875rem;
530
+ line-height: 1.25rem;
531
+ color: var(--muted-foreground);
532
+ }
533
+ [data-slot='typography-blockquote'] {
534
+ margin-top: 1.5rem;
535
+ padding-inline-start: 1.5rem;
536
+ border-inline-start: 2px solid var(--border);
537
+ font-style: italic;
538
+ }
539
+ [data-slot='typography-list'] {
540
+ margin-block: 1.5rem;
541
+ padding-inline-start: 1.5rem;
542
+ }
543
+ [data-slot='typography-list'] > li + li {
544
+ margin-top: 0.5rem;
545
+ }
546
+ [data-slot='typography-p'][data-size='sm'] {
547
+ font-size: 0.875rem;
548
+ line-height: 1.5rem;
549
+ }
550
+ [data-slot='typography-p'][data-size='lg'] {
551
+ font-size: 1.125rem;
552
+ line-height: 1.875rem;
553
+ }
554
+ [data-slot='typography-blockquote'][data-size='sm'] {
555
+ font-size: 0.875rem;
556
+ line-height: 1.5rem;
557
+ }
558
+ [data-slot='typography-blockquote'][data-size='lg'] {
559
+ font-size: 1.125rem;
560
+ line-height: 1.875rem;
561
+ }
562
+ [data-slot='typography-list'][data-size='sm'] {
563
+ font-size: 0.875rem;
564
+ line-height: 1.5rem;
565
+ }
566
+ [data-slot='typography-list'][data-size='lg'] {
567
+ font-size: 1.125rem;
568
+ line-height: 1.875rem;
569
+ }
570
+ [data-slot='typography-inline-code'] {
571
+ padding: 0.2rem 0.3rem;
572
+ border-radius: var(--radius-sm);
573
+ background: var(--muted);
574
+ font-family: var(--font-mono);
575
+ font-size: 0.875rem;
576
+ font-weight: 600;
577
+ }
578
+ [data-slot='typography-inline-code'][data-size='sm'] {
579
+ font-size: 0.75rem;
580
+ }
581
+ [data-slot='typography-inline-code'][data-size='lg'] {
582
+ font-size: 1rem;
583
+ }
584
+ [data-slot='typography-a'] {
585
+ color: var(--primary);
586
+ font-size: 1rem;
587
+ font-weight: 500;
588
+ line-height: 1.5rem;
589
+ text-decoration: underline;
590
+ text-underline-offset: 4px;
591
+ }
592
+ [data-slot='typography-a'][data-size='sm'] {
593
+ font-size: 0.875rem;
594
+ line-height: 1.25rem;
595
+ }
596
+ [data-slot='typography-a'][data-size='lg'] {
597
+ font-size: 1.125rem;
598
+ line-height: 1.75rem;
599
+ }
600
+ [data-slot='typography-a']:hover {
601
+ text-decoration-thickness: 2px;
602
+ }
603
+
604
+ /* A table in running text, as Fulldev UI's typography table: framed, with striped rows. */
605
+ [data-slot='typography-table-container'] {
606
+ width: 100%;
607
+ margin-block: 1.5rem;
608
+ overflow-x: auto;
609
+ border: 1px solid var(--border);
610
+ border-radius: var(--radius-xl);
611
+ }
612
+ [data-slot='typography-table'] {
613
+ width: 100%;
614
+ border-collapse: collapse;
615
+ font-size: 1rem;
616
+ line-height: 1.5rem;
617
+ }
618
+ [data-slot='typography-table'][data-size='sm'] {
619
+ font-size: 0.875rem;
620
+ line-height: 1.25rem;
621
+ }
622
+ [data-slot='typography-table'][data-size='lg'] {
623
+ font-size: 1.125rem;
624
+ line-height: 1.75rem;
625
+ }
626
+ [data-slot='typography-table-row']:nth-child(even) {
627
+ background: var(--muted);
628
+ }
629
+ [data-slot='typography-table-head'],
630
+ [data-slot='typography-table-cell'] {
631
+ padding: 0.75rem 1rem;
632
+ text-align: start;
633
+ }
634
+ [data-slot='typography-table-head'] {
635
+ border-bottom: 1px solid var(--border);
636
+ font-weight: 600;
637
+ }
638
+ [data-slot='typography-table-cell'] {
639
+ border-top: 1px solid var(--border);
640
+ }
641
+ :is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='left'] {
642
+ text-align: left;
643
+ }
644
+ :is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='center'] {
645
+ text-align: center;
646
+ }
647
+ :is([data-slot='typography-table-head'], [data-slot='typography-table-cell'])[align='right'] {
648
+ text-align: right;
649
+ }
650
+
651
+ .check-list {
652
+ display: flex;
653
+ flex-direction: column;
654
+ gap: 12px;
655
+ margin: 0;
656
+ padding: 0;
657
+ list-style: none;
658
+ font-size: 0.875rem;
659
+ }
660
+ .check-list > li {
661
+ display: flex;
662
+ align-items: flex-start;
663
+ gap: 12px;
664
+ }
665
+ .check-list .icon {
666
+ width: 16px;
667
+ height: 16px;
668
+ margin-top: 2px;
669
+ color: var(--primary);
670
+ }
@@ -0,0 +1,10 @@
1
+ /* The playing media of a video: a Shopify video, an embed, or the click-to-load cover that becomes
2
+ one. It fills its aspect-ratio frame, which carries Fulldev UI's border and radius. */
3
+ [data-slot='video'] {
4
+ display: block;
5
+ width: 100%;
6
+ height: 100%;
7
+ border: 0;
8
+ background: var(--muted);
9
+ object-fit: cover;
10
+ }
@@ -0,0 +1 @@
1
+ import{clearRootBinding as e,createPresenceLifecycle as t,emit as n,ensureId as r,getDataBool as i,getDataEnum as a,getDataString as o,getOwnedElements as s,getParts as c,getRoots as l,hasRootBinding as u,on as d,onRoot as f,reuseRootBinding as p,setAria as m,setRootBinding as ee}from"@data-slot/core";const te=[`horizontal`,`vertical`],h=new Set([`all`,`height`,`width`,`block-size`,`inline-size`]),ne=new Set([`Enter`,` `]),g=e=>!!e&&(e.hasAttribute(`disabled`)||e.hasAttribute(`data-disabled`)||e.getAttribute(`aria-disabled`)===`true`),_=(e,t,n)=>{n?e.setAttribute(t,``):e.removeAttribute(t)},v=(e,t)=>{e.setAttribute(`data-state`,t?`open`:`closed`),t?(e.setAttribute(`data-open`,``),e.removeAttribute(`data-closed`)):(e.setAttribute(`data-closed`,``),e.removeAttribute(`data-open`))},y=e=>{let t=e.trim();return t?t.endsWith(`ms`)?Number.parseFloat(t.slice(0,-2))||0:t.endsWith(`s`)?(Number.parseFloat(t.slice(0,-1))||0)*1e3:Number.parseFloat(t)||0:0},b=(e,t)=>{let n=e.split(`,`),r=t.split(`,`),i=Math.max(n.length,r.length),a=0;for(let e=0;e<i;e+=1){let t=y(n[e]??n[n.length-1]??`0`),i=y(r[e]??r[r.length-1]??`0`);a=Math.max(a,t+i)}return a},re=e=>{let t=b(e.transitionDuration,e.transitionDelay),n=b(e.animationDuration,e.animationDelay);return Math.max(t,n)},ie=e=>b(e.animationDuration,e.animationDelay)<=0?!1:e.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`),x=(e,t)=>{let n=e.transitionProperty.split(`,`).map(e=>e.trim()),r=e.transitionDuration.split(`,`),i=e.transitionDelay.split(`,`),a=Math.max(n.length,r.length,i.length),o=0;for(let e=0;e<a;e+=1){if(!t(n[e]??n[n.length-1]??`all`))continue;let a=y(r[e]??r[r.length-1]??`0`),s=y(i[e]??i[i.length-1]??`0`);o=Math.max(o,a+s)}return o},S=e=>x(e,e=>h.has(e)),ae=e=>{if(e===void 0)return;let t=e.trim();if(!t.startsWith(`[`)||!t.endsWith(`]`))return e;try{let n=JSON.parse(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):e}catch{return e}},C=`@data-slot/accordion`;function w(l,u={}){let y=p(l,C,`[@data-slot/accordion] createAccordion() called more than once for the same root. Returning the existing controller. Destroy it before rebinding with new options.`);if(y)return y;let b=l,x=c(l,`accordion-item`);if(x.length===0)throw Error(`Accordion requires at least one accordion-item`);let w=l.ownerDocument?.defaultView??window,T=u.multiple??i(l,`multiple`)??!1,oe=u.onValueChange,E=u.disabled??i(l,`disabled`)??g(l),D=u.orientation??a(l,`orientation`,te)??`vertical`,O=u.loopFocus??i(l,`loopFocus`)??!0,k=u.hiddenUntilFound??i(l,`hiddenUntilFound`)??!1,se=u.collapsible??i(l,`collapsible`)??!0,A=[],j=[],M=(e,t,n)=>{e.content.style.setProperty(`--accordion-panel-height`,t),e.content.style.setProperty(`--accordion-panel-width`,n),e.content.style.setProperty(`--radix-accordion-content-height`,t),e.content.style.setProperty(`--radix-accordion-content-width`,n)},N=(e,t,n)=>{M(e,`${t}px`,`${n}px`)},P=e=>{M(e,`auto`,`auto`)},F=e=>{N(e,0,0)},I=e=>{N(e,e.content.scrollHeight,e.content.scrollWidth)},L=e=>{let t=e.content.style.getPropertyValue(`--accordion-panel-height`).trim(),n=e.content.style.getPropertyValue(`--accordion-panel-width`).trim();return t===`auto`&&n===`auto`},R=e=>{e.suppressClick=!1,e.suppressClickTimeoutId!==null&&(w.clearTimeout(e.suppressClickTimeoutId),e.suppressClickTimeoutId=null)},z=e=>{e.openSettleRafId!==null&&(w.cancelAnimationFrame(e.openSettleRafId),e.openSettleRafId=null),e.openSettleTimeoutId!==null&&(w.clearTimeout(e.openSettleTimeoutId),e.openSettleTimeoutId=null),e.openSettleCleanups.forEach(e=>e()),e.openSettleCleanups=[]},B=e=>{e.closeZeroRafId!==null&&(w.cancelAnimationFrame(e.closeZeroRafId),e.closeZeroRafId=null)},V=e=>{z(e),B(e)},H=e=>S(e)>0?`css-transition`:ie(e)?`css-animation`:`none`,U=(e,t)=>{let n=e.content.style.getPropertyValue(`animation-name`);e.content.style.setProperty(`animation-name`,`none`);try{P(e),I(e),t?.()}finally{n?e.content.style.setProperty(`animation-name`,n):e.content.style.removeProperty(`animation-name`)}},ce=e=>{e.idleAnimationSuppressed||(e.idleAnimationName=e.content.style.getPropertyValue(`animation-name`)||null,e.idleAnimationSuppressed=!0,e.content.style.setProperty(`animation-name`,`none`))},le=e=>{e.idleAnimationSuppressed&&=(e.idleAnimationName?e.content.style.setProperty(`animation-name`,e.idleAnimationName):e.content.style.removeProperty(`animation-name`),e.idleAnimationName=null,!1)},W=e=>{e.content.removeAttribute(`hidden`)},G=e=>{k?e.content.setAttribute(`hidden`,`until-found`):e.content.hidden=!0,F(e)},K=new Set,q=(e,t)=>{z(e),!(!K.has(e.value)||e.presence.isExiting)&&(P(e),t===`css-animation`&&ce(e))},J=(e,t,n)=>{z(e);let r=re(n),i=S(n),a=i||r;if(a>0){let n=typeof w.performance?.now==`function`?w.performance.now():Date.now(),r=e=>(typeof w.performance?.now==`function`?w.performance.now():Date.now())-n>=Math.max(0,e-5),o=n=>{if(n.target!==e.content)return;let o=`propertyName`in n?String(n.propertyName):``;if(i>0){if(!h.has(o)||!r(i))return}else if(!r(a))return;q(e,t)},s=n=>{n.target===e.content&&(i>0||r(a)&&q(e,t))};e.content.addEventListener(`transitionend`,o),e.content.addEventListener(`animationend`,s),e.openSettleCleanups.push(()=>e.content.removeEventListener(`transitionend`,o)),e.openSettleCleanups.push(()=>e.content.removeEventListener(`animationend`,s)),e.openSettleTimeoutId=w.setTimeout(()=>{e.openSettleTimeoutId=null,q(e,t)},Math.ceil(a)+50);return}e.openSettleRafId=w.requestAnimationFrame(()=>{e.openSettleRafId=null,q(e,t)})},ue=e=>{B(e),e.closeZeroRafId=w.requestAnimationFrame(()=>{e.closeZeroRafId=null,!K.has(e.value)&&e.presence.isExiting&&F(e)})},de=e=>{e.el.setAttribute(`data-index`,String(e.index)),e.content.setAttribute(`data-index`,String(e.index)),e.content.setAttribute(`data-orientation`,D),_(e.el,`data-disabled`,e.disabled),_(e.trigger,`data-disabled`,e.disabled),_(e.content,`data-disabled`,e.disabled),e.disabled?(e.trigger.setAttribute(`aria-disabled`,`true`),e.trigger instanceof HTMLButtonElement&&(e.trigger.disabled=!0)):(e.trigger.removeAttribute(`aria-disabled`),e.trigger instanceof HTMLButtonElement&&(e.trigger.disabled=!1))},Y=(e,t)=>{e.trigger.setAttribute(`data-state`,t?`open`:`closed`),_(e.trigger,`data-panel-open`,t)},fe=e=>{let t=K.has(e.value);if(de(e),m(e.trigger,`expanded`,t),v(e.el,t),v(e.content,t),Y(e,t),e.content.removeAttribute(`data-starting-style`),e.content.removeAttribute(`data-ending-style`),t){W(e);let t=getComputedStyle(e.content),n=H(t);n===`css-animation`?U(e):I(e),J(e,n,t)}else G(e)},pe=(e,t)=>{let n=K.has(e.value),r=e.trigger.getAttribute(`aria-expanded`)===`true`;if(!(n===r&&(n?L(e):!e.presence.isExiting))){if(m(e.trigger,`expanded`,n),v(e.el,n),v(e.content,n),Y(e,n),n){B(e),W(e);let t=getComputedStyle(e.content),n=H(t);n===`css-animation`?U(e,()=>{r||e.presence.enter()}):(I(e),r||e.presence.enter()),J(e,n,t);return}if(r){z(e),H(getComputedStyle(e.content))===`css-animation`?U(e,()=>e.presence.exit()):(N(e,...t),e.presence.exit(),ue(e));return}V(e),e.content.removeAttribute(`data-starting-style`),e.content.removeAttribute(`data-ending-style`),G(e)}},me=e=>{let t=[],n=new Set;for(let r of e)if(!(n.has(r)||!x.some(e=>e.dataset.value===r))&&(n.add(r),t.push(r),!T&&t.length===1))break;return t},he=e=>e.size===K.size?[...e].some(e=>!K.has(e)):!0,ge=()=>{let e=[...K];n(l,`accordion:change`,{value:e}),oe?.(e)},X=e=>{let t=me(e);if(!T&&!se&&t.length===0&&K.size>0)return!1;let n=new Set(t);if(!he(n))return!1;let r=j.filter(e=>K.has(e.value)!==n.has(e.value)),i=new Map;for(let e of r)K.has(e.value)&&i.set(e,[e.content.scrollHeight,e.content.scrollWidth]);return r.forEach(le),K=n,j.forEach(e=>pe(e,i.get(e))),ge(),!0},_e=e=>(e.getAttribute(`dir`)??b.getAttribute(`dir`))===`rtl`||(getComputedStyle(e).direction||getComputedStyle(b).direction||l.ownerDocument?.documentElement.getAttribute(`dir`)||``)===`rtl`?`rtl`:`ltr`;b.setAttribute(`data-orientation`,D),_(b,`data-disabled`,!!E),x.forEach((e,n)=>{let i=e.dataset.value;if(!i)return;let a=s(l,e,`[data-slot="accordion-trigger"]`)[0]??null,o=s(l,e,`[data-slot="accordion-content"]`)[0]??null;if(!a||!o)return;let c=r(o,`accordion-content`),u=r(a,`accordion-trigger`);a.setAttribute(`aria-controls`,c),o.setAttribute(`aria-labelledby`,u),o.setAttribute(`role`,`region`);let f=!!E||g(e)||g(a),p;p={el:e,value:i,index:n,disabled:f,trigger:a,content:o,presence:t({element:o,onExitComplete:()=>{B(p),G(p)}}),sizeObserver:null,idleAnimationName:null,idleAnimationSuppressed:!1,openSettleRafId:null,openSettleTimeoutId:null,closeZeroRafId:null,openSettleCleanups:[],suppressClick:!1,suppressClickTimeoutId:null},typeof ResizeObserver<`u`&&(p.sizeObserver=new ResizeObserver(()=>{!K.has(p.value)||p.presence.isExiting||L(p)||I(p)}),p.sizeObserver.observe(o)),A.push(d(a,`click`,()=>{if(p.suppressClick){R(p);return}p.disabled||(K.has(p.value)?X([...K].filter(e=>e!==p.value)):X(T?[...K,p.value]:[p.value]))})),A.push(d(a,`keydown`,e=>{if(ne.has(e.key)){if(p.disabled){e.preventDefault();return}e.preventDefault(),R(p),p.suppressClick=!0,p.suppressClickTimeoutId=w.setTimeout(()=>{p.suppressClick=!1,p.suppressClickTimeoutId=null},0),K.has(p.value)?X([...K].filter(e=>e!==p.value)):X(T?[...K,p.value]:[p.value])}})),k&&A.push(d(o,`beforematch`,()=>{X(T?[...K,p.value]:[p.value])})),j.push(p)});let Z=new Set(j.map(e=>e.value)),Q=u.defaultValue??ae(o(l,`defaultValue`)),ve=me((Q?Array.isArray(Q)?Q:[Q]:[]).filter(e=>Z.has(e)));K=new Set(ve),j.forEach(fe),A.push(d(b,`keydown`,e=>{let t=e.target;if(!t)return;let n=j.find(e=>e.trigger===t);if(!n)return;let r=j.filter(e=>!e.disabled),i=r.findIndex(e=>e.trigger===t);if(i===-1)return;let a=r.length-1,o=-1,s=()=>{o=O?i+1>a?0:i+1:Math.min(i+1,a)},c=()=>{o=O?i===0?a:i-1:Math.max(i-1,0)};switch(e.key){case`ArrowDown`:D===`vertical`&&s();break;case`ArrowUp`:D===`vertical`&&c();break;case`ArrowRight`:D===`horizontal`&&(_e(n.trigger)===`rtl`?c():s());break;case`ArrowLeft`:D===`horizontal`&&(_e(n.trigger)===`rtl`?s():c());break;case`Home`:o=0;break;case`End`:o=a;break;default:return}o<0||(e.preventDefault(),r[o]?.trigger.focus())})),A.push(f(l,`accordion:set`,e=>{let t=e.detail?.value;t!==void 0&&X(Array.isArray(t)?t:[t])}));let $={expand:e=>{!Z.has(e)||K.has(e)||X(T?[...K,e]:[e])},collapse:e=>{!Z.has(e)||!K.has(e)||X([...K].filter(t=>t!==e))},toggle:e=>{Z.has(e)&&(K.has(e)?$.collapse(e):$.expand(e))},get value(){return[...K]},destroy:()=>{j.forEach(e=>{R(e),e.presence.cleanup(),V(e),e.sizeObserver?.disconnect(),e.sizeObserver=null}),A.forEach(e=>e()),A.length=0,e(l,C,$)}};return ee(l,C,$),$}function T(e=document){let t=[];for(let n of l(e,`accordion`))u(n,C)||t.push(w(n));return t}export{T as create,w as createAccordion};