@fragiola/primitives-vue 0.0.0-stage → 0.1.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 (544) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/LICENSE +21 -0
  3. package/README.md +41 -2
  4. package/dist/accordion-CmKuKHkK.js +278 -0
  5. package/dist/accordion-CmKuKHkK.js.map +1 -0
  6. package/dist/accordion.d.ts +4 -0
  7. package/dist/accordion.js +1 -0
  8. package/dist/alert-dialog-CPG51QOk.js +38 -0
  9. package/dist/alert-dialog-CPG51QOk.js.map +1 -0
  10. package/dist/alert-dialog.d.ts +9 -0
  11. package/dist/alert-dialog.js +1 -0
  12. package/dist/aspect-ratio-Ba7GaRnV.js +37 -0
  13. package/dist/aspect-ratio-Ba7GaRnV.js.map +1 -0
  14. package/dist/aspect-ratio.d.ts +3 -0
  15. package/dist/aspect-ratio.js +1 -0
  16. package/dist/async-list-Dc8wqcxe.js +39 -0
  17. package/dist/async-list-Dc8wqcxe.js.map +1 -0
  18. package/dist/async-list.d.ts +2 -0
  19. package/dist/async-list.js +1 -0
  20. package/dist/autocomplete-virtual-D_2Wuih7.js +55 -0
  21. package/dist/autocomplete-virtual-D_2Wuih7.js.map +1 -0
  22. package/dist/autocomplete-virtual.d.ts +2 -0
  23. package/dist/autocomplete-virtual.js +3 -0
  24. package/dist/autocomplete.d.ts +6 -0
  25. package/dist/autocomplete.js +1 -0
  26. package/dist/avatar-DdDGa6x7.js +166 -0
  27. package/dist/avatar-DdDGa6x7.js.map +1 -0
  28. package/dist/avatar.d.ts +3 -0
  29. package/dist/avatar.js +1 -0
  30. package/dist/breadcrumbs-BFAjlnC_.js +131 -0
  31. package/dist/breadcrumbs-BFAjlnC_.js.map +1 -0
  32. package/dist/breadcrumbs.d.ts +3 -0
  33. package/dist/breadcrumbs.js +1 -0
  34. package/dist/button-DVUcUCXc.js +56 -0
  35. package/dist/button-DVUcUCXc.js.map +1 -0
  36. package/dist/button-attributes-Ue6sUse5.js +83 -0
  37. package/dist/button-attributes-Ue6sUse5.js.map +1 -0
  38. package/dist/button.d.ts +3 -0
  39. package/dist/button.js +1 -0
  40. package/dist/calendar-preset-Bjc7rcNX.js +84 -0
  41. package/dist/calendar-preset-Bjc7rcNX.js.map +1 -0
  42. package/dist/calendar-preset.d.ts +3 -0
  43. package/dist/calendar-preset.js +3 -0
  44. package/dist/calendar-prev-button-jluYmM-3.js +307 -0
  45. package/dist/calendar-prev-button-jluYmM-3.js.map +1 -0
  46. package/dist/calendar-root-base-C9dfkl55.js +310 -0
  47. package/dist/calendar-root-base-C9dfkl55.js.map +1 -0
  48. package/dist/calendar-view-Djy5iHGK.js +160 -0
  49. package/dist/calendar-view-Djy5iHGK.js.map +1 -0
  50. package/dist/calendar-view.d.ts +4 -0
  51. package/dist/calendar-view.js +4 -0
  52. package/dist/calendar.d.ts +5 -0
  53. package/dist/calendar.js +1 -0
  54. package/dist/carousel-BOacnCmz.js +553 -0
  55. package/dist/carousel-BOacnCmz.js.map +1 -0
  56. package/dist/carousel.d.ts +4 -0
  57. package/dist/carousel.js +1 -0
  58. package/dist/cascade-select-B-Nf6eOA.js +697 -0
  59. package/dist/cascade-select-B-Nf6eOA.js.map +1 -0
  60. package/dist/cascade-select.d.ts +6 -0
  61. package/dist/cascade-select.js +1 -0
  62. package/dist/change-details-Bc4-Xzdm.d.ts +37 -0
  63. package/dist/checkbox-D5NvqFgS.js +230 -0
  64. package/dist/checkbox-D5NvqFgS.js.map +1 -0
  65. package/dist/checkbox-group-C3XftlZd.js +104 -0
  66. package/dist/checkbox-group-C3XftlZd.js.map +1 -0
  67. package/dist/checkbox-group-context-C0Z5sWM1.js +5 -0
  68. package/dist/checkbox-group-context-C0Z5sWM1.js.map +1 -0
  69. package/dist/checkbox-group.d.ts +4 -0
  70. package/dist/checkbox-group.js +1 -0
  71. package/dist/checkbox.d.ts +4 -0
  72. package/dist/checkbox.js +1 -0
  73. package/dist/clipboard-BM-4-lTv.js +195 -0
  74. package/dist/clipboard-BM-4-lTv.js.map +1 -0
  75. package/dist/clipboard.d.ts +4 -0
  76. package/dist/clipboard.js +1 -0
  77. package/dist/collapsible-DSCxhlQN.js +158 -0
  78. package/dist/collapsible-DSCxhlQN.js.map +1 -0
  79. package/dist/collapsible.d.ts +4 -0
  80. package/dist/collapsible.js +1 -0
  81. package/dist/color-area-uEHPo-Nq.js +350 -0
  82. package/dist/color-area-uEHPo-Nq.js.map +1 -0
  83. package/dist/color-area.d.ts +4 -0
  84. package/dist/color-area.js +1 -0
  85. package/dist/color-field-Di2IbTa3.js +384 -0
  86. package/dist/color-field-Di2IbTa3.js.map +1 -0
  87. package/dist/color-field.d.ts +4 -0
  88. package/dist/color-field.js +1 -0
  89. package/dist/color-picker-BgFgq5R0.js +311 -0
  90. package/dist/color-picker-BgFgq5R0.js.map +1 -0
  91. package/dist/color-picker-binding-CJ-Cbxbj.js +5 -0
  92. package/dist/color-picker-binding-CJ-Cbxbj.js.map +1 -0
  93. package/dist/color-picker-popover-Dx6LX0V3.js +233 -0
  94. package/dist/color-picker-popover-Dx6LX0V3.js.map +1 -0
  95. package/dist/color-picker-popover.d.ts +6 -0
  96. package/dist/color-picker-popover.js +1 -0
  97. package/dist/color-picker.d.ts +4 -0
  98. package/dist/color-picker.js +1 -0
  99. package/dist/color-slider-BCqoolnY.js +410 -0
  100. package/dist/color-slider-BCqoolnY.js.map +1 -0
  101. package/dist/color-slider.d.ts +4 -0
  102. package/dist/color-slider.js +1 -0
  103. package/dist/color-swatch-C-8IN28V.js +54 -0
  104. package/dist/color-swatch-C-8IN28V.js.map +1 -0
  105. package/dist/color-swatch-picker-CU1wrhjX.js +312 -0
  106. package/dist/color-swatch-picker-CU1wrhjX.js.map +1 -0
  107. package/dist/color-swatch-picker.d.ts +4 -0
  108. package/dist/color-swatch-picker.js +1 -0
  109. package/dist/color-swatch.d.ts +3 -0
  110. package/dist/color-swatch.js +1 -0
  111. package/dist/color-wheel-F_BoXKON.js +284 -0
  112. package/dist/color-wheel-F_BoXKON.js.map +1 -0
  113. package/dist/color-wheel.d.ts +4 -0
  114. package/dist/color-wheel.js +1 -0
  115. package/dist/combobox-virtual-DTRTVq5N.js +56 -0
  116. package/dist/combobox-virtual-DTRTVq5N.js.map +1 -0
  117. package/dist/combobox-virtual.d.ts +2 -0
  118. package/dist/combobox-virtual.js +3 -0
  119. package/dist/combobox.d.ts +6 -0
  120. package/dist/combobox.js +1 -0
  121. package/dist/command-virtual-LoTBDEY5.js +59 -0
  122. package/dist/command-virtual-LoTBDEY5.js.map +1 -0
  123. package/dist/command-virtual.d.ts +3 -0
  124. package/dist/command-virtual.js +3 -0
  125. package/dist/command.d.ts +4 -0
  126. package/dist/command.js +1 -0
  127. package/dist/context-menu-zdHIGS9E.js +151 -0
  128. package/dist/context-menu-zdHIGS9E.js.map +1 -0
  129. package/dist/context-menu.d.ts +7 -0
  130. package/dist/context-menu.js +1 -0
  131. package/dist/date-field-pgSTZiPb.js +78 -0
  132. package/dist/date-field-pgSTZiPb.js.map +1 -0
  133. package/dist/date-field-root-base-CYLuAykm.js +212 -0
  134. package/dist/date-field-root-base-CYLuAykm.js.map +1 -0
  135. package/dist/date-field.d.ts +4 -0
  136. package/dist/date-field.js +1 -0
  137. package/dist/date-picker-input-CiuuRiWZ.js +16 -0
  138. package/dist/date-picker-input-CiuuRiWZ.js.map +1 -0
  139. package/dist/date-picker-input-root-base-ExPSLeKw.js +318 -0
  140. package/dist/date-picker-input-root-base-ExPSLeKw.js.map +1 -0
  141. package/dist/date-picker-input.d.ts +4 -0
  142. package/dist/date-picker-input.js +3 -0
  143. package/dist/date-picker-trigger-C2BlzvfR.js +349 -0
  144. package/dist/date-picker-trigger-C2BlzvfR.js.map +1 -0
  145. package/dist/date-picker.d.ts +6 -0
  146. package/dist/date-picker.js +1 -0
  147. package/dist/date-range-field-Bygmkl5c.js +80 -0
  148. package/dist/date-range-field-Bygmkl5c.js.map +1 -0
  149. package/dist/date-range-field-input-CivpQMYd.js +69 -0
  150. package/dist/date-range-field-input-CivpQMYd.js.map +1 -0
  151. package/dist/date-range-field-root-base-BP26TSWz.js +267 -0
  152. package/dist/date-range-field-root-base-BP26TSWz.js.map +1 -0
  153. package/dist/date-range-field.d.ts +4 -0
  154. package/dist/date-range-field.js +1 -0
  155. package/dist/date-range-picker-input-BUNCCXUY.js +17 -0
  156. package/dist/date-range-picker-input-BUNCCXUY.js.map +1 -0
  157. package/dist/date-range-picker-input.d.ts +4 -0
  158. package/dist/date-range-picker-input.js +3 -0
  159. package/dist/date-range-picker.d.ts +7 -0
  160. package/dist/date-range-picker.js +1 -0
  161. package/dist/dialog-MNjIMCfA.js +38 -0
  162. package/dist/dialog-MNjIMCfA.js.map +1 -0
  163. package/dist/dialog-root-base-jbZipaoQ.js +329 -0
  164. package/dist/dialog-root-base-jbZipaoQ.js.map +1 -0
  165. package/dist/dialog-viewport-tYqWTs9Q.d.ts +54 -0
  166. package/dist/dialog.d.ts +9 -0
  167. package/dist/dialog.js +1 -0
  168. package/dist/direction-CN_deiZU.js +30 -0
  169. package/dist/direction-CN_deiZU.js.map +1 -0
  170. package/dist/direction-context-D-C_P6Lm.js +19 -0
  171. package/dist/direction-context-D-C_P6Lm.js.map +1 -0
  172. package/dist/direction.d.ts +2 -0
  173. package/dist/direction.js +1 -0
  174. package/dist/drawer-BcnuGtEt.js +357 -0
  175. package/dist/drawer-BcnuGtEt.js.map +1 -0
  176. package/dist/drawer.d.ts +9 -0
  177. package/dist/drawer.js +1 -0
  178. package/dist/drop-zone-vFJ5Kvsy.js +98 -0
  179. package/dist/drop-zone-vFJ5Kvsy.js.map +1 -0
  180. package/dist/drop-zone.d.ts +4 -0
  181. package/dist/drop-zone.js +1 -0
  182. package/dist/editable-CabzXgiN.js +436 -0
  183. package/dist/editable-CabzXgiN.js.map +1 -0
  184. package/dist/editable.d.ts +4 -0
  185. package/dist/editable.js +1 -0
  186. package/dist/field-DQ2d5nhC.js +397 -0
  187. package/dist/field-DQ2d5nhC.js.map +1 -0
  188. package/dist/field.d.ts +4 -0
  189. package/dist/field.js +1 -0
  190. package/dist/fieldset-CmmDzOPs.js +80 -0
  191. package/dist/fieldset-CmmDzOPs.js.map +1 -0
  192. package/dist/fieldset-context-DtEOoG6M.js +5 -0
  193. package/dist/fieldset-context-DtEOoG6M.js.map +1 -0
  194. package/dist/fieldset.d.ts +3 -0
  195. package/dist/fieldset.js +1 -0
  196. package/dist/file-upload-_Hh-STdv.js +644 -0
  197. package/dist/file-upload-_Hh-STdv.js.map +1 -0
  198. package/dist/file-upload.d.ts +4 -0
  199. package/dist/file-upload.js +1 -0
  200. package/dist/form-context-DBnVT1lw.js +5 -0
  201. package/dist/form-context-DBnVT1lw.js.map +1 -0
  202. package/dist/form-s9HijjTL.js +92 -0
  203. package/dist/form-s9HijjTL.js.map +1 -0
  204. package/dist/form.d.ts +3 -0
  205. package/dist/form.js +1 -0
  206. package/dist/hover-card-rmd0fD17.js +355 -0
  207. package/dist/hover-card-rmd0fD17.js.map +1 -0
  208. package/dist/hover-card.d.ts +9 -0
  209. package/dist/hover-card.js +1 -0
  210. package/dist/index-5WtjXdX9.d.ts +63 -0
  211. package/dist/index-5eBkkEtv.d.ts +36 -0
  212. package/dist/index-B-vqAG6g.d.ts +33 -0
  213. package/dist/index-B1uYYVtV.d.ts +18 -0
  214. package/dist/index-B8E3X1CK.d.ts +66 -0
  215. package/dist/index-B8Ufhgzu.d.ts +36 -0
  216. package/dist/index-BJz7OWbi.d.ts +88 -0
  217. package/dist/index-BMjRueuv.d.ts +40 -0
  218. package/dist/index-BP7Tmb0E.d.ts +95 -0
  219. package/dist/index-Bbb1Zgwo.d.ts +50 -0
  220. package/dist/index-BdJFU5tH.d.ts +28 -0
  221. package/dist/index-BdfnRo-h.d.ts +55 -0
  222. package/dist/index-BniQvFN-.d.ts +38 -0
  223. package/dist/index-Bt0B-8RV.d.ts +14 -0
  224. package/dist/index-BuWJcRPC.d.ts +18 -0
  225. package/dist/index-Byf0GNd9.d.ts +41 -0
  226. package/dist/index-BzHLkAWU.d.ts +35 -0
  227. package/dist/index-C-QYKtWy.d.ts +28 -0
  228. package/dist/index-C7nh2Oil.d.ts +40 -0
  229. package/dist/index-CDKebSlA.d.ts +41 -0
  230. package/dist/index-CFPqV6qJ.d.ts +72 -0
  231. package/dist/index-CRJv_zWm.d.ts +37 -0
  232. package/dist/index-CTzUalDO.d.ts +76 -0
  233. package/dist/index-CZHLD5cJ.d.ts +17 -0
  234. package/dist/index-Cgwn5qgy.d.ts +88 -0
  235. package/dist/index-Ch4h1DFC.d.ts +55 -0
  236. package/dist/index-Cj3B9gY_.d.ts +50 -0
  237. package/dist/index-Cj6NwCBD.d.ts +44 -0
  238. package/dist/index-CkDThwop.d.ts +21 -0
  239. package/dist/index-Cn-D14iz.d.ts +13 -0
  240. package/dist/index-CpTiLSql.d.ts +53 -0
  241. package/dist/index-CqP363e5.d.ts +118 -0
  242. package/dist/index-Cv4dRdEa.d.ts +72 -0
  243. package/dist/index-CyI637MF.d.ts +37 -0
  244. package/dist/index-D11YCkvR.d.ts +42 -0
  245. package/dist/index-D3yyJGzf.d.ts +74 -0
  246. package/dist/index-D5PbKxcs.d.ts +26 -0
  247. package/dist/index-DAYklR-H.d.ts +18 -0
  248. package/dist/index-DIZSgXHM.d.ts +79 -0
  249. package/dist/index-DZckp3H0.d.ts +37 -0
  250. package/dist/index-DaqoBvQf.d.ts +56 -0
  251. package/dist/index-Df9i45Gr.d.ts +65 -0
  252. package/dist/index-DqI6n06W.d.ts +59 -0
  253. package/dist/index-Drp7svmT.d.ts +30 -0
  254. package/dist/index-DxsUcSGT.d.ts +99 -0
  255. package/dist/index-Dyyi-1mv.d.ts +35 -0
  256. package/dist/index-I2ewgOGz.d.ts +76 -0
  257. package/dist/index-JGhlANKo.d.ts +24 -0
  258. package/dist/index-KASc7z5u.d.ts +38 -0
  259. package/dist/index-LTcmDERY.d.ts +65 -0
  260. package/dist/index-Mf2RPgmw.d.ts +38 -0
  261. package/dist/index-NdY27G_d.d.ts +58 -0
  262. package/dist/index-QO79pDtI.d.ts +70 -0
  263. package/dist/index-S0FIwOSw.d.ts +59 -0
  264. package/dist/index-UxsyZS_A.d.ts +23 -0
  265. package/dist/index-W8aOtVIu.d.ts +40 -0
  266. package/dist/index-WC9xwMaX.d.ts +34 -0
  267. package/dist/index-Xwb9OtVU.d.ts +7 -0
  268. package/dist/index-ZWJJ2V_J.d.ts +49 -0
  269. package/dist/index-_Q_N8ZbU.d.ts +35 -0
  270. package/dist/index-bC3hHzam.d.ts +101 -0
  271. package/dist/index-baY49J-s.d.ts +15 -0
  272. package/dist/index-dCTvA7uS.d.ts +20 -0
  273. package/dist/index-mhpoLESL.d.ts +77 -0
  274. package/dist/index-p3t0BKd4.d.ts +22 -0
  275. package/dist/index-sgaMj_3p.d.ts +69 -0
  276. package/dist/index-tSLNRqTo.d.ts +33 -0
  277. package/dist/index-t_lSQgLA.d.ts +1346 -0
  278. package/dist/index-uL1dEAhG.d.ts +28 -0
  279. package/dist/index.d.ts +79 -0
  280. package/dist/index.js +106 -0
  281. package/dist/label-Ce-gIayi.js +35 -0
  282. package/dist/label-Ce-gIayi.js.map +1 -0
  283. package/dist/label.d.ts +3 -0
  284. package/dist/label.js +1 -0
  285. package/dist/labelled-part-DB2rXJFG.js +56 -0
  286. package/dist/labelled-part-DB2rXJFG.js.map +1 -0
  287. package/dist/link-CZ3ISaPX.js +42 -0
  288. package/dist/link-CZ3ISaPX.js.map +1 -0
  289. package/dist/link-attributes-D9UusWws.js +29 -0
  290. package/dist/link-attributes-D9UusWws.js.map +1 -0
  291. package/dist/link.d.ts +3 -0
  292. package/dist/link.js +1 -0
  293. package/dist/listbox-virtual-He6BWlPj.js +291 -0
  294. package/dist/listbox-virtual-He6BWlPj.js.map +1 -0
  295. package/dist/listbox-virtual.d.ts +5 -0
  296. package/dist/listbox-virtual.js +3 -0
  297. package/dist/listbox.d.ts +4 -0
  298. package/dist/listbox.js +1 -0
  299. package/dist/live-region-style-9ofmajhO.js +46 -0
  300. package/dist/live-region-style-9ofmajhO.js.map +1 -0
  301. package/dist/menu-D7TVxPdb.js +144 -0
  302. package/dist/menu-D7TVxPdb.js.map +1 -0
  303. package/dist/menu-bar-context-k5vMlwmW.js +13 -0
  304. package/dist/menu-bar-context-k5vMlwmW.js.map +1 -0
  305. package/dist/menu-submenu-trigger-ClI2Pm4X.js +885 -0
  306. package/dist/menu-submenu-trigger-ClI2Pm4X.js.map +1 -0
  307. package/dist/menu-submenu-trigger-DNH8_uUB.d.ts +127 -0
  308. package/dist/menu.d.ts +10 -0
  309. package/dist/menu.js +1 -0
  310. package/dist/menubar-CQn3AOiQ.js +212 -0
  311. package/dist/menubar-CQn3AOiQ.js.map +1 -0
  312. package/dist/menubar.d.ts +3 -0
  313. package/dist/menubar.js +1 -0
  314. package/dist/meter-7Qd_WaUY.js +202 -0
  315. package/dist/meter-7Qd_WaUY.js.map +1 -0
  316. package/dist/meter.d.ts +3 -0
  317. package/dist/meter.js +1 -0
  318. package/dist/month-calendar-root-base-VcD8ZNW5.js +354 -0
  319. package/dist/month-calendar-root-base-VcD8ZNW5.js.map +1 -0
  320. package/dist/month-calendar.d.ts +5 -0
  321. package/dist/month-calendar.js +1 -0
  322. package/dist/month-picker-DzOYqW1S.js +15 -0
  323. package/dist/month-picker-DzOYqW1S.js.map +1 -0
  324. package/dist/month-picker-root-base-ByMK_Mfq.js +158 -0
  325. package/dist/month-picker-root-base-ByMK_Mfq.js.map +1 -0
  326. package/dist/month-picker.d.ts +7 -0
  327. package/dist/month-picker.js +3 -0
  328. package/dist/month-range-calendar-CJAWu1-Z.js +18 -0
  329. package/dist/month-range-calendar-CJAWu1-Z.js.map +1 -0
  330. package/dist/month-range-calendar.d.ts +5 -0
  331. package/dist/month-range-calendar.js +3 -0
  332. package/dist/month-range-picker-CRJDG2HG.js +15 -0
  333. package/dist/month-range-picker-CRJDG2HG.js.map +1 -0
  334. package/dist/month-range-picker.d.ts +8 -0
  335. package/dist/month-range-picker.js +3 -0
  336. package/dist/multiple-calendar-BIb2zfBH.js +176 -0
  337. package/dist/multiple-calendar-BIb2zfBH.js.map +1 -0
  338. package/dist/multiple-calendar.d.ts +5 -0
  339. package/dist/multiple-calendar.js +3 -0
  340. package/dist/navigation-menu-COTxGol_.js +727 -0
  341. package/dist/navigation-menu-COTxGol_.js.map +1 -0
  342. package/dist/navigation-menu.d.ts +5 -0
  343. package/dist/navigation-menu.js +1 -0
  344. package/dist/number-field-CqxEnwiS.js +581 -0
  345. package/dist/number-field-CqxEnwiS.js.map +1 -0
  346. package/dist/number-field.d.ts +4 -0
  347. package/dist/number-field.js +1 -0
  348. package/dist/otp-field-DIDuypLU.js +420 -0
  349. package/dist/otp-field-DIDuypLU.js.map +1 -0
  350. package/dist/otp-field.d.ts +4 -0
  351. package/dist/otp-field.js +1 -0
  352. package/dist/overlay-handle-DUptsQOb.js +42 -0
  353. package/dist/overlay-handle-DUptsQOb.js.map +1 -0
  354. package/dist/overlay-handle-DzC9LJQo.d.ts +16 -0
  355. package/dist/overlay-portal-Cmn7Dt7E.d.ts +30 -0
  356. package/dist/overlay-portal-ZNtXmoFd.js +32 -0
  357. package/dist/overlay-portal-ZNtXmoFd.js.map +1 -0
  358. package/dist/pagination-BNUjFYxK.js +264 -0
  359. package/dist/pagination-BNUjFYxK.js.map +1 -0
  360. package/dist/pagination.d.ts +4 -0
  361. package/dist/pagination.js +1 -0
  362. package/dist/parts--mC44S1N.js +1023 -0
  363. package/dist/parts--mC44S1N.js.map +1 -0
  364. package/dist/parts-BP00C3Q5.js +874 -0
  365. package/dist/parts-BP00C3Q5.js.map +1 -0
  366. package/dist/parts-CMh29O5y.js +14 -0
  367. package/dist/parts-CMh29O5y.js.map +1 -0
  368. package/dist/parts-CZqNGRqe.js +20 -0
  369. package/dist/parts-CZqNGRqe.js.map +1 -0
  370. package/dist/parts-DMy2yQZs.js +254 -0
  371. package/dist/parts-DMy2yQZs.js.map +1 -0
  372. package/dist/parts-DVv0aov9.js +14 -0
  373. package/dist/parts-DVv0aov9.js.map +1 -0
  374. package/dist/parts-M3ThgZzl.js +489 -0
  375. package/dist/parts-M3ThgZzl.js.map +1 -0
  376. package/dist/parts-stPOp8dr.js +451 -0
  377. package/dist/parts-stPOp8dr.js.map +1 -0
  378. package/dist/parts-uxRkRrFr.js +668 -0
  379. package/dist/parts-uxRkRrFr.js.map +1 -0
  380. package/dist/password-input-DC39W-do.js +231 -0
  381. package/dist/password-input-DC39W-do.js.map +1 -0
  382. package/dist/password-input.d.ts +4 -0
  383. package/dist/password-input.js +1 -0
  384. package/dist/popover-BaQTGAYJ.js +328 -0
  385. package/dist/popover-BaQTGAYJ.js.map +1 -0
  386. package/dist/popover.d.ts +9 -0
  387. package/dist/popover.js +1 -0
  388. package/dist/progress-DH1Xrj73.js +219 -0
  389. package/dist/progress-DH1Xrj73.js.map +1 -0
  390. package/dist/progress.d.ts +3 -0
  391. package/dist/progress.js +1 -0
  392. package/dist/public-component-AV8E7mGp.js +8 -0
  393. package/dist/public-component-AV8E7mGp.js.map +1 -0
  394. package/dist/public-component-DYpU9aDh.d.ts +33 -0
  395. package/dist/radio-B9YCSnFs.js +159 -0
  396. package/dist/radio-B9YCSnFs.js.map +1 -0
  397. package/dist/radio-group-CmSF4FTc.js +173 -0
  398. package/dist/radio-group-CmSF4FTc.js.map +1 -0
  399. package/dist/radio-group-context-C196JZ9D.js +5 -0
  400. package/dist/radio-group-context-C196JZ9D.js.map +1 -0
  401. package/dist/radio-group.d.ts +4 -0
  402. package/dist/radio-group.js +1 -0
  403. package/dist/radio.d.ts +3 -0
  404. package/dist/radio.js +1 -0
  405. package/dist/range-calendar-BDbNdL75.js +20 -0
  406. package/dist/range-calendar-BDbNdL75.js.map +1 -0
  407. package/dist/range-calendar.d.ts +5 -0
  408. package/dist/range-calendar.js +1 -0
  409. package/dist/rating-oC2t52av.js +351 -0
  410. package/dist/rating-oC2t52av.js.map +1 -0
  411. package/dist/rating.d.ts +4 -0
  412. package/dist/rating.js +1 -0
  413. package/dist/render-part-B5XVbHaS.js +36 -0
  414. package/dist/render-part-B5XVbHaS.js.map +1 -0
  415. package/dist/render-part-BaTKiWBp.d.ts +28 -0
  416. package/dist/render.d.ts +3 -0
  417. package/dist/render.js +3 -0
  418. package/dist/roving-context-LyHQFJqZ.js +32 -0
  419. package/dist/roving-context-LyHQFJqZ.js.map +1 -0
  420. package/dist/scroll-area-_EApTP33.js +328 -0
  421. package/dist/scroll-area-_EApTP33.js.map +1 -0
  422. package/dist/scroll-area.d.ts +3 -0
  423. package/dist/scroll-area.js +1 -0
  424. package/dist/search-field-DJIr926A.js +221 -0
  425. package/dist/search-field-DJIr926A.js.map +1 -0
  426. package/dist/search-field.d.ts +4 -0
  427. package/dist/search-field.js +1 -0
  428. package/dist/segmented-control-BMvmqBpR.js +389 -0
  429. package/dist/segmented-control-BMvmqBpR.js.map +1 -0
  430. package/dist/segmented-control.d.ts +4 -0
  431. package/dist/segmented-control.js +1 -0
  432. package/dist/select-virtual-BwZrX4bh.js +53 -0
  433. package/dist/select-virtual-BwZrX4bh.js.map +1 -0
  434. package/dist/select-virtual.d.ts +3 -0
  435. package/dist/select-virtual.js +3 -0
  436. package/dist/select.d.ts +6 -0
  437. package/dist/select.js +1 -0
  438. package/dist/separator-SgHyzEHB.js +42 -0
  439. package/dist/separator-SgHyzEHB.js.map +1 -0
  440. package/dist/separator.d.ts +3 -0
  441. package/dist/separator.js +1 -0
  442. package/dist/slider-DU5Cx7yj.js +539 -0
  443. package/dist/slider-DU5Cx7yj.js.map +1 -0
  444. package/dist/slider.d.ts +4 -0
  445. package/dist/slider.js +1 -0
  446. package/dist/state-attributes-DhboDeMS.js +14 -0
  447. package/dist/state-attributes-DhboDeMS.js.map +1 -0
  448. package/dist/steps-Dl_mMqRB.js +363 -0
  449. package/dist/steps-Dl_mMqRB.js.map +1 -0
  450. package/dist/steps.d.ts +4 -0
  451. package/dist/steps.js +1 -0
  452. package/dist/switch-CT9QBKOs.js +183 -0
  453. package/dist/switch-CT9QBKOs.js.map +1 -0
  454. package/dist/switch.d.ts +4 -0
  455. package/dist/switch.js +1 -0
  456. package/dist/tabs-BhVbQ7AV.js +369 -0
  457. package/dist/tabs-BhVbQ7AV.js.map +1 -0
  458. package/dist/tabs.d.ts +4 -0
  459. package/dist/tabs.js +1 -0
  460. package/dist/tag-group-DdpjWmzb.js +422 -0
  461. package/dist/tag-group-DdpjWmzb.js.map +1 -0
  462. package/dist/tag-group.d.ts +4 -0
  463. package/dist/tag-group.js +1 -0
  464. package/dist/tags-input-Iw3mST3A.js +627 -0
  465. package/dist/tags-input-Iw3mST3A.js.map +1 -0
  466. package/dist/tags-input.d.ts +4 -0
  467. package/dist/tags-input.js +1 -0
  468. package/dist/time-field-5Ghk_4SZ.js +76 -0
  469. package/dist/time-field-5Ghk_4SZ.js.map +1 -0
  470. package/dist/time-field.d.ts +4 -0
  471. package/dist/time-field.js +1 -0
  472. package/dist/time-range-field-DNOZQK4F.js +77 -0
  473. package/dist/time-range-field-DNOZQK4F.js.map +1 -0
  474. package/dist/time-range-field.d.ts +4 -0
  475. package/dist/time-range-field.js +1 -0
  476. package/dist/toast-DBKxX79M.js +426 -0
  477. package/dist/toast-DBKxX79M.js.map +1 -0
  478. package/dist/toast.d.ts +3 -0
  479. package/dist/toast.js +1 -0
  480. package/dist/toggle-Cca0PFQv.js +101 -0
  481. package/dist/toggle-Cca0PFQv.js.map +1 -0
  482. package/dist/toggle-group-DTUrLX_H.js +102 -0
  483. package/dist/toggle-group-DTUrLX_H.js.map +1 -0
  484. package/dist/toggle-group-context-gMEC8r-Z.js +5 -0
  485. package/dist/toggle-group-context-gMEC8r-Z.js.map +1 -0
  486. package/dist/toggle-group.d.ts +4 -0
  487. package/dist/toggle-group.js +1 -0
  488. package/dist/toggle.d.ts +4 -0
  489. package/dist/toggle.js +1 -0
  490. package/dist/toolbar-WU8JwFd0.js +272 -0
  491. package/dist/toolbar-WU8JwFd0.js.map +1 -0
  492. package/dist/toolbar.d.ts +3 -0
  493. package/dist/toolbar.js +1 -0
  494. package/dist/tooltip-C1kKsTSh.js +358 -0
  495. package/dist/tooltip-C1kKsTSh.js.map +1 -0
  496. package/dist/tooltip.d.ts +9 -0
  497. package/dist/tooltip.js +1 -0
  498. package/dist/use-color-picker-binding-BrG-whys.js +32 -0
  499. package/dist/use-color-picker-binding-BrG-whys.js.map +1 -0
  500. package/dist/use-controllable-B46G4v0A.js +30 -0
  501. package/dist/use-controllable-B46G4v0A.js.map +1 -0
  502. package/dist/use-field-control-CdYqr0dK.js +109 -0
  503. package/dist/use-field-control-CdYqr0dK.js.map +1 -0
  504. package/dist/use-overlay-root-BkyTQIsX.js +296 -0
  505. package/dist/use-overlay-root-BkyTQIsX.js.map +1 -0
  506. package/dist/use-overlay-trigger-D9OXZ_6K.d.ts +12 -0
  507. package/dist/use-overlay-trigger-KM35pX0a.js +61 -0
  508. package/dist/use-overlay-trigger-KM35pX0a.js.map +1 -0
  509. package/dist/use-panel-transition-DF7f1nmF.js +112 -0
  510. package/dist/use-panel-transition-DF7f1nmF.js.map +1 -0
  511. package/dist/use-panel-transition-r_BlVRob.d.ts +2 -0
  512. package/dist/use-positioner-BD24G6q1.js +73 -0
  513. package/dist/use-positioner-BD24G6q1.js.map +1 -0
  514. package/dist/use-positioner-D98pYl_K.d.ts +12 -0
  515. package/dist/use-presence-BcvBOTDI.d.ts +3 -0
  516. package/dist/use-required-context-CPpEkr4Q.js +11 -0
  517. package/dist/use-required-context-CPpEkr4Q.js.map +1 -0
  518. package/dist/use-roving-composite-CW0mE_VU.js +71 -0
  519. package/dist/use-roving-composite-CW0mE_VU.js.map +1 -0
  520. package/dist/use-roving-item-B9Cil5Rq.js +42 -0
  521. package/dist/use-roving-item-B9Cil5Rq.js.map +1 -0
  522. package/dist/use-segment-group-CAlwM3KP.js +304 -0
  523. package/dist/use-segment-group-CAlwM3KP.js.map +1 -0
  524. package/dist/use-virtual-rows-DesBexmk.js +142 -0
  525. package/dist/use-virtual-rows-DesBexmk.js.map +1 -0
  526. package/dist/virtual-list-BNvYqnFf.js +49 -0
  527. package/dist/virtual-list-BNvYqnFf.js.map +1 -0
  528. package/dist/year-calendar-cYl3WHEM.js +18 -0
  529. package/dist/year-calendar-cYl3WHEM.js.map +1 -0
  530. package/dist/year-calendar.d.ts +5 -0
  531. package/dist/year-calendar.js +3 -0
  532. package/dist/year-picker-DYQZbF1h.js +15 -0
  533. package/dist/year-picker-DYQZbF1h.js.map +1 -0
  534. package/dist/year-picker.d.ts +8 -0
  535. package/dist/year-picker.js +3 -0
  536. package/dist/year-range-calendar-ODgfmdiv.js +18 -0
  537. package/dist/year-range-calendar-ODgfmdiv.js.map +1 -0
  538. package/dist/year-range-calendar.d.ts +5 -0
  539. package/dist/year-range-calendar.js +3 -0
  540. package/dist/year-range-picker-DKXlcy7I.js +15 -0
  541. package/dist/year-range-picker-DKXlcy7I.js.map +1 -0
  542. package/dist/year-range-picker.d.ts +8 -0
  543. package/dist/year-range-picker.js +3 -0
  544. package/package.json +548 -3
@@ -0,0 +1,284 @@
1
+ import { t as useColorPickerBinding } from "./use-color-picker-binding-BrG-whys.js";
2
+ import { t as useControllable } from "./use-controllable-B46G4v0A.js";
3
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
4
+ import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
5
+ import { t as stateAttributes } from "./state-attributes-DhboDeMS.js";
6
+ import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
7
+ import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
8
+ import { computed, defineComponent, h, onBeforeUnmount, provide, ref, shallowRef, watch } from "vue";
9
+ import { bridgeForm } from "@fragiola/primitives/form";
10
+ import { startDrag } from "@fragiola/primitives/pointer";
11
+ import { colorSpaceFor, colorWheelGradient, colorWheelKeyTarget, colorWheelThumbOffset, convertColor, formatColor, formatColorChannel, getColorChannel, hueAtPoint, isOnColorWheel, isSameColor, parseColor, setColorChannel, wrapHue } from "@fragiola/primitives/color";
12
+ // src/components/color-wheel/color-wheel-context.ts
13
+ const ColorWheelKey = Symbol("ColorWheel");
14
+ function colorWheelState(context) {
15
+ return {
16
+ color: context.color.value,
17
+ hue: context.hue.value,
18
+ disabled: context.disabled(),
19
+ dragging: context.dragging.value
20
+ };
21
+ }
22
+ // src/components/color-wheel/color-wheel-root.ts
23
+ const RED = {
24
+ space: "hsl",
25
+ hue: 0,
26
+ saturation: 100,
27
+ lightness: 50,
28
+ alpha: 1
29
+ };
30
+ /** A `Color`, or a string `parseColor` reads (the default when it reads none). */
31
+ function toColor(value) {
32
+ return parseColor(value) ?? RED;
33
+ }
34
+ /**
35
+ * Holds a color wheel's value (`v-model:value`): the interactive square around the ring, and the
36
+ * hidden input with the color as hex (spec/color-wheel.md, the APG slider on a ring).
37
+ */
38
+ const ColorWheelRoot = publicComponent(defineComponent({
39
+ name: "ColorWheelRoot",
40
+ inheritAttrs: false,
41
+ props: {
42
+ ...asProp,
43
+ value: {
44
+ type: [Object, String],
45
+ default: void 0
46
+ },
47
+ defaultValue: {
48
+ type: [Object, String],
49
+ default: void 0
50
+ },
51
+ /** The space of the hue (default: the value's, else hsb). */
52
+ colorSpace: {
53
+ type: String,
54
+ default: void 0
55
+ },
56
+ /** The ring's outer radius, in px (default 100). */
57
+ outerRadius: {
58
+ type: Number,
59
+ default: 100
60
+ },
61
+ /** The ring's inner radius, in px (default 75). */
62
+ innerRadius: {
63
+ type: Number,
64
+ default: 75
65
+ },
66
+ disabled: {
67
+ type: Boolean,
68
+ default: false
69
+ },
70
+ name: {
71
+ type: String,
72
+ default: void 0
73
+ },
74
+ /** The locale of the hue's text (BCP 47; default: the runtime's). */
75
+ locale: {
76
+ type: String,
77
+ default: void 0
78
+ }
79
+ },
80
+ emits: {
81
+ "update:value": (_value) => true,
82
+ valueChange: (_value, _details) => true,
83
+ /** When a drag ends, or after a key changed the value. */
84
+ valueCommit: (_value, _details) => true
85
+ },
86
+ setup(props, { attrs, slots, emit }) {
87
+ const report = (next, details) => {
88
+ emit("update:value", next);
89
+ emit("valueChange", next, details);
90
+ };
91
+ const defaultValue = () => props.defaultValue ?? RED;
92
+ const state = useColorPickerBinding(() => props.value !== void 0 || props.defaultValue !== void 0, useControllable(() => props.value === void 0 ? void 0 : toColor(props.value), toColor(defaultValue()), report), report);
93
+ const { picker, bound } = state;
94
+ const disabled = () => props.disabled || (picker?.disabled() ?? false);
95
+ const color = computed(() => convertColor(state.value.value, colorSpaceFor("hue", state.value.value, props.colorSpace)));
96
+ const hue = computed(() => getColorChannel(color.value, "hue"));
97
+ const valueText = computed(() => formatColorChannel(color.value, "hue", props.locale, hue.value));
98
+ const input = shallowRef(null);
99
+ const thumb = shallowRef(null);
100
+ const dragging = ref(false);
101
+ let endDrag = null;
102
+ onBeforeUnmount(() => endDrag?.());
103
+ const context = {
104
+ color,
105
+ hue,
106
+ outerRadius: () => props.outerRadius,
107
+ innerRadius: () => props.innerRadius,
108
+ disabled,
109
+ dragging,
110
+ valueText,
111
+ setHue(next, reason) {
112
+ const before = color.value;
113
+ const wrapped = wrapHue(next);
114
+ if (wrapped === getColorChannel(before, "hue")) return before;
115
+ const changed = setColorChannel(before, "hue", wrapped);
116
+ state.set(changed, { reason });
117
+ return changed;
118
+ },
119
+ commit(committed) {
120
+ const done = committed ?? color.value;
121
+ emit("valueCommit", done, { reason: "none" });
122
+ bound()?.commit(done, { reason: "none" });
123
+ },
124
+ thumb
125
+ };
126
+ provide(ColorWheelKey, context);
127
+ watch(input, (element, _, onCleanup) => {
128
+ if (element === null) return;
129
+ onCleanup(bridgeForm(element, { reset: () => {
130
+ if (bound() !== null) return;
131
+ const next = toColor(defaultValue());
132
+ if (!isSameColor(next, state.value.value)) state.set(next, { reason: "none" });
133
+ } }));
134
+ }, { flush: "post" });
135
+ const onPointerdown = (event) => {
136
+ if (disabled() || event.pointerType === "mouse" && event.button !== 0) return;
137
+ const target = event.currentTarget;
138
+ const point = {
139
+ x: event.clientX,
140
+ y: event.clientY
141
+ };
142
+ const box = target.getBoundingClientRect();
143
+ if (!isOnColorWheel(box, point, props.innerRadius, props.outerRadius)) return;
144
+ event.preventDefault();
145
+ context.setHue(hueAtPoint(box, point), "track-press");
146
+ thumb.value?.focus();
147
+ dragging.value = true;
148
+ endDrag?.();
149
+ endDrag = startDrag(target, event, {
150
+ onMove: (move) => context.setHue(hueAtPoint(target.getBoundingClientRect(), {
151
+ x: move.clientX,
152
+ y: move.clientY
153
+ }), "drag"),
154
+ onEnd: () => {
155
+ endDrag = null;
156
+ dragging.value = false;
157
+ context.commit();
158
+ }
159
+ });
160
+ };
161
+ return () => {
162
+ const current = colorWheelState(context);
163
+ const size = `${props.outerRadius * 2}px`;
164
+ return renderPart("div", {
165
+ attrs,
166
+ slots
167
+ }, props.as, current, {
168
+ "data-primitives-part": "color-wheel-root",
169
+ ...stateAttributes({
170
+ disabled: current.disabled,
171
+ dragging: current.dragging
172
+ }),
173
+ style: {
174
+ position: "relative",
175
+ inlineSize: size,
176
+ blockSize: size,
177
+ touchAction: "none",
178
+ "--color-wheel-outer-radius": `${props.outerRadius}px`,
179
+ "--color-wheel-inner-radius": `${props.innerRadius}px`
180
+ },
181
+ onPointerdown
182
+ }, () => [slots.default?.({ state: current }), h("input", {
183
+ ref: (element) => {
184
+ input.value = element;
185
+ },
186
+ type: "hidden",
187
+ name: bound() === null ? props.name : void 0,
188
+ value: formatColor(current.color, "hex"),
189
+ "data-primitives-part": "color-wheel-input"
190
+ })]);
191
+ };
192
+ }
193
+ }));
194
+ // src/components/color-wheel/color-wheel-thumb.ts
195
+ /** The `slider`: the hue, on the ring's middle circle (spec/color-wheel.md). */
196
+ const ColorWheelThumb = publicComponent(defineComponent({
197
+ name: "ColorWheelThumb",
198
+ inheritAttrs: false,
199
+ props: asProp,
200
+ setup(props, { attrs, slots }) {
201
+ const context = useRequiredContext(ColorWheelKey, "ColorWheel.Thumb");
202
+ const element = shallowRef(null);
203
+ const setElement = elementSetter(element);
204
+ watch(element, (node) => {
205
+ context.thumb.value = node;
206
+ }, { flush: "post" });
207
+ onBeforeUnmount(() => {
208
+ if (context.thumb.value === element.value) context.thumb.value = null;
209
+ });
210
+ const onKeydown = (event) => {
211
+ if (context.disabled()) return;
212
+ const target = colorWheelKeyTarget(event.key, event.shiftKey, context.hue.value);
213
+ if (target === null) return;
214
+ event.preventDefault();
215
+ context.commit(context.setHue(target, "keyboard"));
216
+ };
217
+ return () => {
218
+ const state = colorWheelState(context);
219
+ const { hue, disabled } = state;
220
+ const offset = colorWheelThumbOffset(hue, (context.innerRadius() + context.outerRadius()) / 2);
221
+ return renderPart("div", {
222
+ attrs,
223
+ slots
224
+ }, props.as, state, {
225
+ role: "slider",
226
+ tabindex: disabled ? void 0 : 0,
227
+ "aria-valuenow": hue,
228
+ "aria-valuemin": 0,
229
+ "aria-valuemax": 360,
230
+ "aria-valuetext": context.valueText.value,
231
+ "aria-disabled": disabled ? "true" : void 0,
232
+ "data-primitives-part": "color-wheel-thumb",
233
+ ...stateAttributes({
234
+ disabled,
235
+ dragging: state.dragging
236
+ }),
237
+ style: {
238
+ position: "absolute",
239
+ left: `calc(50% + ${offset.x}px)`,
240
+ top: `calc(50% + ${offset.y}px)`,
241
+ translate: "-50% -50%",
242
+ "--color-wheel-thumb-color": formatColor(setColorChannel(state.color, "alpha", 1))
243
+ },
244
+ onKeydown,
245
+ ref: setElement
246
+ });
247
+ };
248
+ }
249
+ }));
250
+ // src/components/color-wheel/parts.ts
251
+ /** spec/color-wheel.md */
252
+ const ColorWheel = {
253
+ Root: ColorWheelRoot,
254
+ Track: publicComponent(defineComponent({
255
+ name: "ColorWheelTrack",
256
+ inheritAttrs: false,
257
+ props: asProp,
258
+ setup(props, { attrs, slots }) {
259
+ const context = useRequiredContext(ColorWheelKey, "ColorWheel.Track");
260
+ return () => {
261
+ const state = colorWheelState(context);
262
+ return renderPart("div", {
263
+ attrs,
264
+ slots
265
+ }, props.as, state, {
266
+ "data-primitives-part": "color-wheel-track",
267
+ ...stateAttributes({
268
+ disabled: state.disabled,
269
+ dragging: state.dragging
270
+ }),
271
+ style: {
272
+ position: "absolute",
273
+ inset: 0,
274
+ "--color-wheel-track-background": colorWheelGradient()
275
+ }
276
+ });
277
+ };
278
+ }
279
+ })),
280
+ Thumb: ColorWheelThumb
281
+ };
282
+ export { ColorWheel as t };
283
+
284
+ //# sourceMappingURL=color-wheel-F_BoXKON.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-wheel-F_BoXKON.js","names":[],"sources":["../src/components/color-wheel/color-wheel-context.ts","../src/components/color-wheel/color-wheel-root.ts","../src/components/color-wheel/color-wheel-thumb.ts","../src/components/color-wheel/color-wheel-track.ts","../src/components/color-wheel/parts.ts"],"sourcesContent":["import type { Color } from \"@fragiola/primitives/color\";\nimport type { ComputedRef, InjectionKey, Ref, ShallowRef } from \"vue\";\nimport type { ChangeReason } from \"../../utils/change-details.ts\";\n\nexport interface ColorWheelContext {\n /** The value, in the wheel's space (hsl or hsb). */\n color: ComputedRef<Color>;\n hue: ComputedRef<number>;\n outerRadius: () => number;\n innerRadius: () => number;\n disabled: () => boolean;\n dragging: Ref<boolean>;\n /** The hue's text (`Intl`, spec/color.md). */\n valueText: ComputedRef<string>;\n /** Sets the hue (wrapped into [0, 360), snapped), reports it, returns the color. */\n setHue: (hue: number, reason: ChangeReason) => Color;\n /** Reports the color (default: the current one) as committed. */\n commit: (color?: Color) => void;\n /** The Thumb's element, once rendered (the press focuses it). */\n thumb: ShallowRef<HTMLElement | null>;\n}\n\nexport const ColorWheelKey: InjectionKey<ColorWheelContext> =\n Symbol(\"ColorWheel\");\n\n/** The state every color wheel part shares. */\nexport interface ColorWheelState {\n /** The value, in the wheel's space. */\n color: Color;\n hue: number;\n disabled: boolean;\n dragging: boolean;\n}\n\nexport function colorWheelState(context: ColorWheelContext): ColorWheelState {\n return {\n color: context.color.value,\n hue: context.hue.value,\n disabled: context.disabled(),\n dragging: context.dragging.value,\n };\n}\n","import {\n type Color,\n colorSpaceFor,\n convertColor,\n formatColor,\n formatColorChannel,\n getColorChannel,\n hueAtPoint,\n isOnColorWheel,\n isSameColor,\n parseColor,\n setColorChannel,\n wrapHue,\n} from \"@fragiola/primitives/color\";\nimport { bridgeForm } from \"@fragiola/primitives/form\";\nimport { startDrag } from \"@fragiola/primitives/pointer\";\nimport {\n computed,\n defineComponent,\n h,\n onBeforeUnmount,\n type PropType,\n provide,\n ref,\n shallowRef,\n watch,\n} from \"vue\";\nimport { useColorPickerBinding } from \"../../composables/use-color-picker-binding.ts\";\nimport { useControllable } from \"../../composables/use-controllable.ts\";\nimport type {\n ChangeDetails,\n ChangeReason,\n} from \"../../utils/change-details.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport {\n type ColorWheelContext,\n ColorWheelKey,\n type ColorWheelState,\n colorWheelState,\n} from \"./color-wheel-context.ts\";\n\nconst RED: Color = {\n space: \"hsl\",\n hue: 0,\n saturation: 100,\n lightness: 50,\n alpha: 1,\n};\n\n/** A `Color`, or a string `parseColor` reads (the default when it reads none). */\nfunction toColor(value: Color | string): Color {\n return parseColor(value) ?? RED;\n}\n\nexport interface ColorWheelRootProps {\n value?: Color | string;\n defaultValue?: Color | string;\n /** The space of the hue (default: the value's, else hsb). */\n colorSpace?: \"hsl\" | \"hsb\";\n /** The ring's outer radius, in px (default 100). */\n outerRadius?: number;\n /** The ring's inner radius, in px (default 75). */\n innerRadius?: number;\n disabled?: boolean;\n name?: string;\n /** The locale of the hue's text (BCP 47; default: the runtime's). */\n locale?: string;\n}\n\nexport type ColorWheelRootEmits = {\n \"update:value\": (value: Color) => true;\n valueChange: (value: Color, details: ChangeDetails) => true;\n /** When a drag ends, or after a key changed the value. */\n valueCommit: (value: Color, details: ChangeDetails) => true;\n};\n\n/**\n * Holds a color wheel's value (`v-model:value`): the interactive square around the ring, and the\n * hidden input with the color as hex (spec/color-wheel.md, the APG slider on a ring).\n */\nexport const ColorWheelRoot: PartComponent<\n ColorWheelRootProps,\n ColorWheelState,\n ColorWheelRootEmits\n> = publicComponent(\n defineComponent({\n name: \"ColorWheelRoot\",\n inheritAttrs: false,\n props: {\n ...asProp,\n value: {\n type: [Object, String] as PropType<Color | string>,\n default: undefined,\n },\n defaultValue: {\n type: [Object, String] as PropType<Color | string>,\n default: undefined,\n },\n /** The space of the hue (default: the value's, else hsb). */\n colorSpace: {\n type: String as PropType<\"hsl\" | \"hsb\">,\n default: undefined,\n },\n /** The ring's outer radius, in px (default 100). */\n outerRadius: { type: Number, default: 100 },\n /** The ring's inner radius, in px (default 75). */\n innerRadius: { type: Number, default: 75 },\n disabled: { type: Boolean, default: false },\n name: { type: String, default: undefined },\n /** The locale of the hue's text (BCP 47; default: the runtime's). */\n locale: { type: String, default: undefined },\n },\n emits: {\n \"update:value\": (_value: Color) => true,\n valueChange: (_value: Color, _details: ChangeDetails) => true,\n /** When a drag ends, or after a key changed the value. */\n valueCommit: (_value: Color, _details: ChangeDetails) => true,\n },\n setup(props, { attrs, slots, emit }) {\n const report = (next: Color, details: ChangeDetails) => {\n emit(\"update:value\", next);\n emit(\"valueChange\", next, details);\n };\n const defaultValue = () => props.defaultValue ?? RED;\n // inside a ColorPicker, bound to its color unless given its own (spec/color-picker.md)\n const state = useColorPickerBinding(\n () =>\n props.value !== undefined ||\n props.defaultValue !== undefined,\n useControllable<Color, ChangeDetails>(\n () =>\n props.value === undefined\n ? undefined\n : toColor(props.value),\n toColor(defaultValue()),\n report,\n ),\n report,\n );\n const { picker, bound } = state;\n const disabled = () =>\n props.disabled || (picker?.disabled() ?? false);\n const color = computed(() =>\n convertColor(\n state.value.value,\n colorSpaceFor(\"hue\", state.value.value, props.colorSpace),\n ),\n );\n const hue = computed(() => getColorChannel(color.value, \"hue\"));\n const valueText = computed(() =>\n formatColorChannel(color.value, \"hue\", props.locale, hue.value),\n );\n const input = shallowRef<HTMLInputElement | null>(null);\n const thumb = shallowRef<HTMLElement | null>(null);\n const dragging = ref(false);\n let endDrag: (() => void) | null = null;\n onBeforeUnmount(() => endDrag?.());\n\n const context: ColorWheelContext = {\n color,\n hue,\n outerRadius: () => props.outerRadius,\n innerRadius: () => props.innerRadius,\n disabled,\n dragging,\n valueText,\n setHue(next: number, reason: ChangeReason) {\n const before = color.value;\n const wrapped = wrapHue(next);\n if (wrapped === getColorChannel(before, \"hue\")) {\n return before;\n }\n const changed = setColorChannel(before, \"hue\", wrapped);\n state.set(changed, { reason });\n return changed;\n },\n commit(committed?: Color) {\n const done = committed ?? color.value;\n emit(\"valueCommit\", done, { reason: \"none\" });\n bound()?.commit(done, { reason: \"none\" });\n },\n thumb,\n };\n provide(ColorWheelKey, context);\n\n // a form reset returns the wheel to its default (spec/color-wheel.md, \"Forms\")\n watch(\n input,\n (element, _, onCleanup) => {\n if (element === null) {\n return;\n }\n onCleanup(\n bridgeForm(element, {\n reset: () => {\n // a bound wheel is reset by its picker\n if (bound() !== null) {\n return;\n }\n const next = toColor(defaultValue());\n if (!isSameColor(next, state.value.value)) {\n state.set(next, { reason: \"none\" });\n }\n },\n }),\n );\n },\n { flush: \"post\" },\n );\n\n const onPointerdown = (event: PointerEvent) => {\n if (\n disabled() ||\n (event.pointerType === \"mouse\" && event.button !== 0)\n ) {\n return;\n }\n const target = event.currentTarget as HTMLElement;\n const point = { x: event.clientX, y: event.clientY };\n const box = target.getBoundingClientRect();\n // a press off the ring does nothing (spec/color-wheel.md, \"Pointer\")\n if (\n !isOnColorWheel(\n box,\n point,\n props.innerRadius,\n props.outerRadius,\n )\n ) {\n return;\n }\n event.preventDefault();\n context.setHue(hueAtPoint(box, point), \"track-press\");\n thumb.value?.focus();\n dragging.value = true;\n endDrag?.();\n endDrag = startDrag(target, event, {\n onMove: (move) =>\n context.setHue(\n hueAtPoint(target.getBoundingClientRect(), {\n x: move.clientX,\n y: move.clientY,\n }),\n \"drag\",\n ),\n onEnd: () => {\n endDrag = null;\n dragging.value = false;\n context.commit();\n },\n });\n };\n\n return () => {\n const current = colorWheelState(context);\n const size = `${props.outerRadius * 2}px`;\n return renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n current,\n {\n \"data-primitives-part\": \"color-wheel-root\",\n ...stateAttributes({\n disabled: current.disabled,\n dragging: current.dragging,\n }),\n // structural: the square around the ring, no page scroll under a touch\n // drag, the radii a recipe's ring mask reads\n style: {\n position: \"relative\",\n inlineSize: size,\n blockSize: size,\n touchAction: \"none\",\n \"--color-wheel-outer-radius\": `${props.outerRadius}px`,\n \"--color-wheel-inner-radius\": `${props.innerRadius}px`,\n },\n onPointerdown,\n },\n () => [\n slots.default?.({ state: current }),\n h(\"input\", {\n ref: (element: unknown) => {\n input.value =\n element as HTMLInputElement | null;\n },\n type: \"hidden\",\n name: bound() === null ? props.name : undefined,\n value: formatColor(current.color, \"hex\"),\n \"data-primitives-part\": \"color-wheel-input\",\n }),\n ],\n );\n };\n },\n }),\n);\n","import {\n colorWheelKeyTarget,\n colorWheelThumbOffset,\n formatColor,\n setColorChannel,\n} from \"@fragiola/primitives/color\";\nimport { defineComponent, onBeforeUnmount, shallowRef, watch } from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport {\n ColorWheelKey,\n type ColorWheelState,\n colorWheelState,\n} from \"./color-wheel-context.ts\";\n\n/** The `slider`: the hue, on the ring's middle circle (spec/color-wheel.md). */\nexport const ColorWheelThumb: PartComponent<\n Record<never, never>,\n ColorWheelState\n> = publicComponent(\n defineComponent({\n name: \"ColorWheelThumb\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n ColorWheelKey,\n \"ColorWheel.Thumb\",\n );\n const element = shallowRef<HTMLElement | null>(null);\n const setElement = elementSetter(element);\n watch(\n element,\n (node) => {\n context.thumb.value = node;\n },\n { flush: \"post\" },\n );\n onBeforeUnmount(() => {\n if (context.thumb.value === element.value) {\n context.thumb.value = null;\n }\n });\n\n const onKeydown = (event: KeyboardEvent) => {\n if (context.disabled()) {\n return;\n }\n const target = colorWheelKeyTarget(\n event.key,\n event.shiftKey,\n context.hue.value,\n );\n if (target === null) {\n return;\n }\n event.preventDefault();\n context.commit(context.setHue(target, \"keyboard\"));\n };\n\n return () => {\n const state = colorWheelState(context);\n const { hue, disabled } = state;\n const offset = colorWheelThumbOffset(\n hue,\n (context.innerRadius() + context.outerRadius()) / 2,\n );\n return renderPart(\"div\", { attrs, slots }, props.as, state, {\n role: \"slider\",\n tabindex: disabled ? undefined : 0,\n \"aria-valuenow\": hue,\n \"aria-valuemin\": 0,\n \"aria-valuemax\": 360,\n \"aria-valuetext\": context.valueText.value,\n \"aria-disabled\": disabled ? \"true\" : undefined,\n \"data-primitives-part\": \"color-wheel-thumb\",\n ...stateAttributes({\n disabled,\n dragging: state.dragging,\n }),\n // structural: its centre on the hue's point of the ring, and its color for\n // the recipe\n style: {\n position: \"absolute\",\n left: `calc(50% + ${offset.x}px)`,\n top: `calc(50% + ${offset.y}px)`,\n translate: \"-50% -50%\",\n \"--color-wheel-thumb-color\": formatColor(\n setColorChannel(state.color, \"alpha\", 1),\n ),\n },\n onKeydown,\n ref: setElement,\n });\n };\n },\n }),\n);\n","import { colorWheelGradient } from \"@fragiola/primitives/color\";\nimport { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport {\n ColorWheelKey,\n type ColorWheelState,\n colorWheelState,\n} from \"./color-wheel-context.ts\";\n\n/** The ring: its conic gradient, for the recipe to draw (spec/color-wheel.md). */\nexport const ColorWheelTrack: PartComponent<\n Record<never, never>,\n ColorWheelState\n> = publicComponent(\n defineComponent({\n name: \"ColorWheelTrack\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n ColorWheelKey,\n \"ColorWheel.Track\",\n );\n return () => {\n const state = colorWheelState(context);\n return renderPart(\"div\", { attrs, slots }, props.as, state, {\n \"data-primitives-part\": \"color-wheel-track\",\n ...stateAttributes({\n disabled: state.disabled,\n dragging: state.dragging,\n }),\n // structural: the Root's box, and the gradient a recipe draws\n style: {\n position: \"absolute\",\n inset: 0,\n \"--color-wheel-track-background\": colorWheelGradient(),\n },\n });\n };\n },\n }),\n);\n","import { ColorWheelRoot } from \"./color-wheel-root.ts\";\nimport { ColorWheelThumb } from \"./color-wheel-thumb.ts\";\nimport { ColorWheelTrack } from \"./color-wheel-track.ts\";\n\n/** spec/color-wheel.md */\nexport const ColorWheel = {\n Root: ColorWheelRoot,\n Track: ColorWheelTrack,\n Thumb: ColorWheelThumb,\n};\n"],"mappings":";;;;;;;;;;;;AAsBA,MAAa,gBACT,OAAO,YAAY;AAWvB,SAAgB,gBAAgB,SAA6C;CACzE,OAAO;EACH,OAAO,QAAQ,MAAM;EACrB,KAAK,QAAQ,IAAI;EACjB,UAAU,QAAQ,SAAS;EAC3B,UAAU,QAAQ,SAAS;CAC/B;AACJ;;ACKA,MAAM,MAAa;CACf,OAAO;CACP,KAAK;CACL,YAAY;CACZ,WAAW;CACX,OAAO;AACX;;AAGA,SAAS,QAAQ,OAA8B;CAC3C,OAAO,WAAW,KAAK,KAAK;AAChC;;;;;AA4BA,MAAa,iBAIT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,OAAO;GACH,MAAM,CAAC,QAAQ,MAAM;GACrB,SAAS,KAAA;EACb;EACA,cAAc;GACV,MAAM,CAAC,QAAQ,MAAM;GACrB,SAAS,KAAA;EACb;;EAEA,YAAY;GACR,MAAM;GACN,SAAS,KAAA;EACb;;EAEA,aAAa;GAAE,MAAM;GAAQ,SAAS;EAAI;;EAE1C,aAAa;GAAE,MAAM;GAAQ,SAAS;EAAG;EACzC,UAAU;GAAE,MAAM;GAAS,SAAS;EAAM;EAC1C,MAAM;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;;EAEzC,QAAQ;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;CAC/C;CACA,OAAO;EACH,iBAAiB,WAAkB;EACnC,cAAc,QAAe,aAA4B;;EAEzD,cAAc,QAAe,aAA4B;CAC7D;CACA,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACjC,MAAM,UAAU,MAAa,YAA2B;GACpD,KAAK,gBAAgB,IAAI;GACzB,KAAK,eAAe,MAAM,OAAO;EACrC;EACA,MAAM,qBAAqB,MAAM,gBAAgB;EAEjD,MAAM,QAAQ,4BAEN,MAAM,UAAU,KAAA,KAChB,MAAM,iBAAiB,KAAA,GAC3B,sBAEQ,MAAM,UAAU,KAAA,IACV,KAAA,IACA,QAAQ,MAAM,KAAK,GAC7B,QAAQ,aAAa,CAAC,GACtB,MACJ,GACA,MACJ;EACA,MAAM,EAAE,QAAQ,UAAU;EAC1B,MAAM,iBACF,MAAM,aAAa,QAAQ,SAAS,KAAK;EAC7C,MAAM,QAAQ,eACV,aACI,MAAM,MAAM,OACZ,cAAc,OAAO,MAAM,MAAM,OAAO,MAAM,UAAU,CAC5D,CACJ;EACA,MAAM,MAAM,eAAe,gBAAgB,MAAM,OAAO,KAAK,CAAC;EAC9D,MAAM,YAAY,eACd,mBAAmB,MAAM,OAAO,OAAO,MAAM,QAAQ,IAAI,KAAK,CAClE;EACA,MAAM,QAAQ,WAAoC,IAAI;EACtD,MAAM,QAAQ,WAA+B,IAAI;EACjD,MAAM,WAAW,IAAI,KAAK;EAC1B,IAAI,UAA+B;EACnC,sBAAsB,UAAU,CAAC;EAEjC,MAAM,UAA6B;GAC/B;GACA;GACA,mBAAmB,MAAM;GACzB,mBAAmB,MAAM;GACzB;GACA;GACA;GACA,OAAO,MAAc,QAAsB;IACvC,MAAM,SAAS,MAAM;IACrB,MAAM,UAAU,QAAQ,IAAI;IAC5B,IAAI,YAAY,gBAAgB,QAAQ,KAAK,GACzC,OAAO;IAEX,MAAM,UAAU,gBAAgB,QAAQ,OAAO,OAAO;IACtD,MAAM,IAAI,SAAS,EAAE,OAAO,CAAC;IAC7B,OAAO;GACX;GACA,OAAO,WAAmB;IACtB,MAAM,OAAO,aAAa,MAAM;IAChC,KAAK,eAAe,MAAM,EAAE,QAAQ,OAAO,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,MAAM,EAAE,QAAQ,OAAO,CAAC;GAC5C;GACA;EACJ;EACA,QAAQ,eAAe,OAAO;EAG9B,MACI,QACC,SAAS,GAAG,cAAc;GACvB,IAAI,YAAY,MACZ;GAEJ,UACI,WAAW,SAAS,EAChB,aAAa;IAET,IAAI,MAAM,MAAM,MACZ;IAEJ,MAAM,OAAO,QAAQ,aAAa,CAAC;IACnC,IAAI,CAAC,YAAY,MAAM,MAAM,MAAM,KAAK,GACpC,MAAM,IAAI,MAAM,EAAE,QAAQ,OAAO,CAAC;GAE1C,EACJ,CAAC,CACL;EACJ,GACA,EAAE,OAAO,OAAO,CACpB;EAEA,MAAM,iBAAiB,UAAwB;GAC3C,IACI,SAAS,KACR,MAAM,gBAAgB,WAAW,MAAM,WAAW,GAEnD;GAEJ,MAAM,SAAS,MAAM;GACrB,MAAM,QAAQ;IAAE,GAAG,MAAM;IAAS,GAAG,MAAM;GAAQ;GACnD,MAAM,MAAM,OAAO,sBAAsB;GAEzC,IACI,CAAC,eACG,KACA,OACA,MAAM,aACN,MAAM,WACV,GAEA;GAEJ,MAAM,eAAe;GACrB,QAAQ,OAAO,WAAW,KAAK,KAAK,GAAG,aAAa;GACpD,MAAM,OAAO,MAAM;GACnB,SAAS,QAAQ;GACjB,UAAU;GACV,UAAU,UAAU,QAAQ,OAAO;IAC/B,SAAS,SACL,QAAQ,OACJ,WAAW,OAAO,sBAAsB,GAAG;KACvC,GAAG,KAAK;KACR,GAAG,KAAK;IACZ,CAAC,GACD,MACJ;IACJ,aAAa;KACT,UAAU;KACV,SAAS,QAAQ;KACjB,QAAQ,OAAO;IACnB;GACJ,CAAC;EACL;EAEA,aAAa;GACT,MAAM,UAAU,gBAAgB,OAAO;GACvC,MAAM,OAAO,GAAG,MAAM,cAAc,EAAE;GACtC,OAAO,WACH,OACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,SACA;IACI,wBAAwB;IACxB,GAAG,gBAAgB;KACf,UAAU,QAAQ;KAClB,UAAU,QAAQ;IACtB,CAAC;IAGD,OAAO;KACH,UAAU;KACV,YAAY;KACZ,WAAW;KACX,aAAa;KACb,8BAA8B,GAAG,MAAM,YAAY;KACnD,8BAA8B,GAAG,MAAM,YAAY;IACvD;IACA;GACJ,SACM,CACF,MAAM,UAAU,EAAE,OAAO,QAAQ,CAAC,GAClC,EAAE,SAAS;IACP,MAAM,YAAqB;KACvB,MAAM,QACF;IACR;IACA,MAAM;IACN,MAAM,MAAM,MAAM,OAAO,MAAM,OAAO,KAAA;IACtC,OAAO,YAAY,QAAQ,OAAO,KAAK;IACvC,wBAAwB;GAC5B,CAAC,CACL,CACJ;EACJ;CACJ;AACJ,CAAC,CACL;;;ACvRA,MAAa,kBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,mBACZ,eACA,kBACJ;EACA,MAAM,UAAU,WAA+B,IAAI;EACnD,MAAM,aAAa,cAAc,OAAO;EACxC,MACI,UACC,SAAS;GACN,QAAQ,MAAM,QAAQ;EAC1B,GACA,EAAE,OAAO,OAAO,CACpB;EACA,sBAAsB;GAClB,IAAI,QAAQ,MAAM,UAAU,QAAQ,OAChC,QAAQ,MAAM,QAAQ;EAE9B,CAAC;EAED,MAAM,aAAa,UAAyB;GACxC,IAAI,QAAQ,SAAS,GACjB;GAEJ,MAAM,SAAS,oBACX,MAAM,KACN,MAAM,UACN,QAAQ,IAAI,KAChB;GACA,IAAI,WAAW,MACX;GAEJ,MAAM,eAAe;GACrB,QAAQ,OAAO,QAAQ,OAAO,QAAQ,UAAU,CAAC;EACrD;EAEA,aAAa;GACT,MAAM,QAAQ,gBAAgB,OAAO;GACrC,MAAM,EAAE,KAAK,aAAa;GAC1B,MAAM,SAAS,sBACX,MACC,QAAQ,YAAY,IAAI,QAAQ,YAAY,KAAK,CACtD;GACA,OAAO,WAAW,OAAO;IAAE;IAAO;GAAM,GAAG,MAAM,IAAI,OAAO;IACxD,MAAM;IACN,UAAU,WAAW,KAAA,IAAY;IACjC,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB,QAAQ,UAAU;IACpC,iBAAiB,WAAW,SAAS,KAAA;IACrC,wBAAwB;IACxB,GAAG,gBAAgB;KACf;KACA,UAAU,MAAM;IACpB,CAAC;IAGD,OAAO;KACH,UAAU;KACV,MAAM,cAAc,OAAO,EAAE;KAC7B,KAAK,cAAc,OAAO,EAAE;KAC5B,WAAW;KACX,6BAA6B,YACzB,gBAAgB,MAAM,OAAO,SAAS,CAAC,CAC3C;IACJ;IACA;IACA,KAAK;GACT,CAAC;EACL;CACJ;AACJ,CAAC,CACL;;;AElGA,MAAa,aAAa;CACtB,MAAM;CACN,ODYA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;EACP,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,MAAM,UAAU,mBACZ,eACA,kBACJ;GACA,aAAa;IACT,MAAM,QAAQ,gBAAgB,OAAO;IACrC,OAAO,WAAW,OAAO;KAAE;KAAO;IAAM,GAAG,MAAM,IAAI,OAAO;KACxD,wBAAwB;KACxB,GAAG,gBAAgB;MACf,UAAU,MAAM;MAChB,UAAU,MAAM;KACpB,CAAC;KAED,OAAO;MACH,UAAU;MACV,OAAO;MACP,kCAAkC,mBAAmB;KACzD;IACJ,CAAC;GACL;EACJ;CACJ,CAAC,CCvCM;CACP,OAAO;AACX"}
@@ -0,0 +1,4 @@
1
+ import { n as ChangeReason, t as ChangeDetails } from "./change-details-Bc4-Xzdm.js";
2
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
3
+ import { a as RgbColor, c as ColorWheelRootProps, i as HslColor, l as ColorWheelState, n as ColorSpace, o as ColorWheel, r as HsbColor, s as ColorWheelRootEmits, t as Color } from "./index-C7nh2Oil.js";
4
+ export { type ChangeDetails, type ChangeReason, type Color, type ColorSpace, ColorWheel, type ColorWheelRootEmits, type ColorWheelRootProps, type ColorWheelState, type HsbColor, type HslColor, type RenderSlotProps, type RgbColor };
@@ -0,0 +1 @@
1
+ export { t as ColorWheel } from "./color-wheel-F_BoXKON.js";
@@ -0,0 +1,56 @@
1
+ import { n as ComboboxList, r as ComboboxKey } from "./parts--mC44S1N.js";
2
+ import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
3
+ import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
4
+ import { n as useVirtualRows, r as virtualListProps, t as reachableRows } from "./use-virtual-rows-DesBexmk.js";
5
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
6
+ import { t as asProp } from "./render-part-B5XVbHaS.js";
7
+ import { n as renderVirtualList, t as chainedRef } from "./virtual-list-BNvYqnFf.js";
8
+ import { computed, defineComponent, nextTick, onMounted, shallowRef, watch } from "vue";
9
+ // src/components/combobox-virtual/parts.ts
10
+ /** spec/virtual-lists.md */
11
+ const ComboboxVirtual = { List: publicComponent(defineComponent({
12
+ name: "ComboboxVirtualList",
13
+ inheritAttrs: false,
14
+ props: {
15
+ ...asProp,
16
+ ...virtualListProps
17
+ },
18
+ emits: { loadMore: () => true },
19
+ setup(props, { attrs, slots, emit }) {
20
+ const context = useRequiredContext(ComboboxKey, "ComboboxVirtual.List");
21
+ const ref = chainedRef(elementSetter(context.list));
22
+ const entries = () => context.entries.value;
23
+ const selected = computed(() => context.multiple() ? -1 : entries().findIndex((entry) => context.isSelected(entry)));
24
+ const elements = shallowRef(/* @__PURE__ */ new Map());
25
+ const current = computed(() => {
26
+ const highlighted = context.highlighted.value;
27
+ if (highlighted === null) return;
28
+ for (const [index, element] of elements.value) if (element.id === highlighted) return index;
29
+ });
30
+ const virtual = useVirtualRows({
31
+ items: entries,
32
+ pinned: () => reachableRows(entries().length, current.value, selected.value),
33
+ list: context.list,
34
+ props,
35
+ onLoadMore: () => emit("loadMore"),
36
+ elements
37
+ });
38
+ const { virtualizer } = virtual;
39
+ const reveal = () => {
40
+ const index = current.value;
41
+ if (index !== void 0) nextTick().then(() => virtualizer.scrollToIndex(index));
42
+ };
43
+ onMounted(reveal);
44
+ watch(() => [current.value, context.positioner.value], reveal, { flush: "post" });
45
+ return () => renderVirtualList(ComboboxList, {
46
+ attrs,
47
+ slots
48
+ }, props.as, props.loading, virtual.rows(slots.default && ((entry, index) => slots.default?.({
49
+ entry,
50
+ index
51
+ }))), ref);
52
+ }
53
+ })) };
54
+ export { ComboboxVirtual as t };
55
+
56
+ //# sourceMappingURL=combobox-virtual-DTRTVq5N.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-virtual-DTRTVq5N.js","names":[],"sources":["../src/components/combobox-virtual/combobox-virtual-list.ts","../src/components/combobox-virtual/parts.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n nextTick,\n onMounted,\n shallowRef,\n type VNode,\n watch,\n} from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n reachableRows,\n useVirtualRows,\n type VirtualListEmits,\n type VirtualListProps,\n type VirtualRows,\n virtualListProps,\n} from \"../../composables/use-virtual-rows.ts\";\nimport {\n type PublicComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport {\n type AsProp,\n asProp,\n type RenderSlotProps,\n} from \"../../utils/render-part.ts\";\nimport { chainedRef, renderVirtualList } from \"../../utils/virtual-list.ts\";\nimport { ComboboxKey } from \"../combobox/combobox-context.ts\";\nimport {\n ComboboxList,\n type ComboboxListState,\n} from \"../combobox/combobox-list.ts\";\n\nexport type ComboboxVirtualListProps = VirtualListProps;\n\n/**\n * The default scoped slot renders a `Combobox.Item` for each matching item in view (the Root's\n * `items`, flat). `entry` is the consumer's own type, named by the slot's annotation\n * (`v-slot=\"{ entry }: { entry: Country }\"`), as `Combobox.List`'s: `never` until annotated.\n */\nexport interface ComboboxVirtualListSlots {\n default?: (scope: { entry: never; index: number }) => VNode[];\n render?: (scope: RenderSlotProps<ComboboxListState>) => VNode[];\n}\n\n/**\n * Combobox's List rendering only the matching items in view (spec/virtual-lists.md): the ends,\n * the highlighted item with its neighbours and the selected item stay rendered, so the Input's\n * keys and `aria-activedescendant` behave as with every item rendered.\n */\nexport const ComboboxVirtualList: PublicComponent<\n ComboboxVirtualListProps & { as?: AsProp },\n ComboboxVirtualListSlots,\n VirtualListEmits\n> = publicComponent(\n defineComponent({\n name: \"ComboboxVirtualList\",\n inheritAttrs: false,\n props: {\n ...asProp,\n ...virtualListProps,\n },\n emits: {\n loadMore: () => true,\n },\n setup(props, { attrs, slots, emit }) {\n const context = useRequiredContext(\n ComboboxKey,\n \"ComboboxVirtual.List\",\n );\n // the list element is Combobox.List's own (the context's `list`)\n const ref = chainedRef(elementSetter(context.list));\n const entries = () => context.entries.value;\n const selected = computed(() =>\n context.multiple()\n ? -1\n : entries().findIndex((entry) => context.isSelected(entry)),\n );\n const elements = shallowRef<ReadonlyMap<number, HTMLElement>>(\n new Map(),\n );\n // the highlighted option is rendered: its index is the one its element was rendered\n // at\n const current = computed<number | undefined>(() => {\n const highlighted = context.highlighted.value;\n if (highlighted === null) {\n return undefined;\n }\n for (const [index, element] of elements.value) {\n if (element.id === highlighted) {\n return index;\n }\n }\n return undefined;\n });\n const virtual: VirtualRows<unknown> = useVirtualRows({\n items: entries,\n pinned: () =>\n reachableRows(\n entries().length,\n current.value,\n selected.value,\n ),\n list: context.list,\n props,\n onLoadMore: () => emit(\"loadMore\"),\n elements,\n });\n // the highlighted row in view, by its offset: after the Item's own scroll (its post\n // watcher runs in the same flush, again once the popup is placed), which reads boxes\n // a popup's opening scale transforms\n const { virtualizer } = virtual;\n const reveal = () => {\n const index = current.value;\n if (index !== undefined) {\n nextTick().then(() => virtualizer.scrollToIndex(index));\n }\n };\n onMounted(reveal);\n watch(() => [current.value, context.positioner.value], reveal, {\n flush: \"post\",\n });\n return () =>\n renderVirtualList(\n ComboboxList,\n { attrs, slots },\n props.as,\n props.loading,\n virtual.rows(\n slots.default &&\n ((entry, index) =>\n slots.default?.({\n entry: entry as never,\n index,\n })),\n ),\n ref,\n );\n },\n }),\n);\n","import { ComboboxVirtualList } from \"./combobox-virtual-list.ts\";\n\n/** spec/virtual-lists.md */\nexport const ComboboxVirtual = {\n List: ComboboxVirtualList,\n};\n"],"mappings":";;;;;;;;;;ACGA,MAAa,kBAAkB,EAC3B,MDoDA,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,GAAG;CACP;CACA,OAAO,EACH,gBAAgB,KACpB;CACA,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACjC,MAAM,UAAU,mBACZ,aACA,sBACJ;EAEA,MAAM,MAAM,WAAW,cAAc,QAAQ,IAAI,CAAC;EAClD,MAAM,gBAAgB,QAAQ,QAAQ;EACtC,MAAM,WAAW,eACb,QAAQ,SAAS,IACX,KACA,QAAQ,CAAC,CAAC,WAAW,UAAU,QAAQ,WAAW,KAAK,CAAC,CAClE;EACA,MAAM,WAAW,2BACb,IAAI,IAAI,CACZ;EAGA,MAAM,UAAU,eAAmC;GAC/C,MAAM,cAAc,QAAQ,YAAY;GACxC,IAAI,gBAAgB,MAChB;GAEJ,KAAK,MAAM,CAAC,OAAO,YAAY,SAAS,OACpC,IAAI,QAAQ,OAAO,aACf,OAAO;EAInB,CAAC;EACD,MAAM,UAAgC,eAAe;GACjD,OAAO;GACP,cACI,cACI,QAAQ,CAAC,CAAC,QACV,QAAQ,OACR,SAAS,KACb;GACJ,MAAM,QAAQ;GACd;GACA,kBAAkB,KAAK,UAAU;GACjC;EACJ,CAAC;EAID,MAAM,EAAE,gBAAgB;EACxB,MAAM,eAAe;GACjB,MAAM,QAAQ,QAAQ;GACtB,IAAI,UAAU,KAAA,GACV,SAAS,CAAC,CAAC,WAAW,YAAY,cAAc,KAAK,CAAC;EAE9D;EACA,UAAU,MAAM;EAChB,YAAY,CAAC,QAAQ,OAAO,QAAQ,WAAW,KAAK,GAAG,QAAQ,EAC3D,OAAO,OACX,CAAC;EACD,aACI,kBACI,cACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,MAAM,SACN,QAAQ,KACJ,MAAM,aACA,OAAO,UACL,MAAM,UAAU;GACL;GACP;EACJ,CAAC,EACb,GACA,GACJ;CACR;AACJ,CAAC,CCzIK,EACV"}
@@ -0,0 +1,2 @@
1
+ import { Bi as VirtualListProps, Bn as Combobox, Mn as ComboboxVirtual, Nn as ComboboxVirtualListProps, Pn as ComboboxVirtualListSlots, zi as VirtualListEmits } from "./index-t_lSQgLA.js";
2
+ export { Combobox, ComboboxVirtual, type ComboboxVirtualListProps, type ComboboxVirtualListSlots, type VirtualListEmits, type VirtualListProps };
@@ -0,0 +1,3 @@
1
+ import { t as Combobox } from "./parts--mC44S1N.js";
2
+ import { t as ComboboxVirtual } from "./combobox-virtual-DTRTVq5N.js";
3
+ export { Combobox, ComboboxVirtual };
@@ -0,0 +1,6 @@
1
+ import { a as OverlayActions, i as OpenChangeDetails, n as ChangeReason, t as ChangeDetails } from "./change-details-Bc4-Xzdm.js";
2
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
3
+ import { n as OverlayRootEmits, r as OverlayRootProps, t as OverlayPortalProps } from "./overlay-portal-Cmn7Dt7E.js";
4
+ import { $n as ComboboxItemIndicatorState, Bn as Combobox, Fn as Align, Gn as ComboboxRootEmits, Hn as ComboboxFilter, In as ItemEquality, Jn as ComboboxPortalProps, Kn as ComboboxRootProps, Ln as ItemFilter, Qn as ComboboxItemIndicatorProps, Rn as ItemGroup, Un as ComboboxItemEquality, Vn as ComboboxValueSlots, Wn as ComboboxItemToString, Xn as ComboboxListSlots, Yn as ComboboxPopupState, Zn as ComboboxListState, er as ComboboxItemProps, nr as ComboboxItemState, qn as ComboboxPositionerState, rr as ComboboxDisabledState, tr as ComboboxOpenState, zn as Side } from "./index-t_lSQgLA.js";
5
+ import { t as PositionerProps } from "./use-positioner-D98pYl_K.js";
6
+ export { type Align, type ChangeDetails, type ChangeReason, Combobox, type ComboboxDisabledState, type ComboboxFilter, type ComboboxItemEquality, type ComboboxItemIndicatorProps, type ComboboxItemIndicatorState, type ComboboxItemProps, type ComboboxItemState, type ComboboxItemToString, type ComboboxListSlots, type ComboboxListState, type ComboboxOpenState, type ComboboxPopupState, type ComboboxPortalProps, type ComboboxPositionerState, type ComboboxRootEmits, type ComboboxRootProps, type ComboboxValueSlots, type ItemEquality, type ItemFilter, type ItemGroup, type OpenChangeDetails, type OverlayActions, type OverlayPortalProps, type OverlayRootEmits, type OverlayRootProps, type PositionerProps, type RenderSlotProps, type Side };
@@ -0,0 +1 @@
1
+ export { t as Combobox } from "./parts--mC44S1N.js";
@@ -0,0 +1,59 @@
1
+ import { n as CommandList, r as CommandKey } from "./parts-M3ThgZzl.js";
2
+ import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
3
+ import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
4
+ import { n as useVirtualRows, r as virtualListProps, t as reachableRows } from "./use-virtual-rows-DesBexmk.js";
5
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
6
+ import { t as asProp } from "./render-part-B5XVbHaS.js";
7
+ import { n as renderVirtualList, t as chainedRef } from "./virtual-list-BNvYqnFf.js";
8
+ import { computed, defineComponent, nextTick, onMounted, watch } from "vue";
9
+ import { bestMatch, commandMatches } from "@fragiola/primitives/command";
10
+ // src/components/command-virtual/parts.ts
11
+ /** spec/command.md, "Virtual list" */
12
+ const CommandVirtual = { List: publicComponent(defineComponent({
13
+ name: "CommandVirtualList",
14
+ inheritAttrs: false,
15
+ props: {
16
+ ...asProp,
17
+ ...virtualListProps,
18
+ items: {
19
+ type: Array,
20
+ required: true
21
+ }
22
+ },
23
+ emits: { loadMore: () => true },
24
+ setup(props, { attrs, slots, emit }) {
25
+ const context = useRequiredContext(CommandKey, "CommandVirtual.List");
26
+ const ref = chainedRef(elementSetter(context.list));
27
+ const matches = computed(() => commandMatches(props.items, context.search.value, context.filter()));
28
+ const entries = () => matches.value.entries;
29
+ const best = computed(() => bestMatch(matches.value.scores, (index) => entries()[index]?.disabled === true));
30
+ const current = computed(() => {
31
+ const found = entries().findIndex((entry) => entry.value === context.highlighted.value);
32
+ return found === -1 ? void 0 : found;
33
+ });
34
+ const virtual = useVirtualRows({
35
+ items: entries,
36
+ pinned: () => reachableRows(entries().length, current.value, best.value),
37
+ list: context.list,
38
+ props,
39
+ onLoadMore: () => emit("loadMore")
40
+ });
41
+ const { virtualizer } = virtual;
42
+ const reveal = () => {
43
+ const index = current.value;
44
+ if (index !== void 0) nextTick().then(() => virtualizer.scrollToIndex(index));
45
+ };
46
+ onMounted(reveal);
47
+ watch(current, reveal, { flush: "post" });
48
+ return () => renderVirtualList(CommandList, {
49
+ attrs,
50
+ slots
51
+ }, props.as, props.loading, virtual.rows(slots.default && ((entry, index) => slots.default?.({
52
+ entry,
53
+ index
54
+ }))), ref);
55
+ }
56
+ })) };
57
+ export { CommandVirtual as t };
58
+
59
+ //# sourceMappingURL=command-virtual-LoTBDEY5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-virtual-LoTBDEY5.js","names":[],"sources":["../src/components/command-virtual/command-virtual-list.ts","../src/components/command-virtual/parts.ts"],"sourcesContent":["import {\n bestMatch,\n type CommandEntry,\n commandMatches,\n} from \"@fragiola/primitives/command\";\nimport {\n computed,\n defineComponent,\n nextTick,\n onMounted,\n type PropType,\n type VNode,\n watch,\n} from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n reachableRows,\n useVirtualRows,\n type VirtualListEmits,\n type VirtualListProps,\n type VirtualRows,\n virtualListProps,\n} from \"../../composables/use-virtual-rows.ts\";\nimport {\n type PublicComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport {\n type AsProp,\n asProp,\n type RenderSlotProps,\n} from \"../../utils/render-part.ts\";\nimport { chainedRef, renderVirtualList } from \"../../utils/virtual-list.ts\";\nimport { CommandKey } from \"../command/command-context.ts\";\nimport { CommandList, type CommandListState } from \"../command/command-list.ts\";\n\nexport interface CommandVirtualListProps extends VirtualListProps {\n /** The entries: the List filters them with the Root's text and `filter`. */\n items: readonly CommandEntry[];\n}\n\n/**\n * The default scoped slot renders a `Command.Item` for each matching entry in view. `entry` is\n * the consumer's own type, named by the slot's annotation (`v-slot=\"{ entry }: { entry: Action\n * }\"`): `never` until annotated, so any annotation binds.\n */\nexport interface CommandVirtualListSlots {\n default?: (scope: { entry: never; index: number }) => VNode[];\n render?: (scope: RenderSlotProps<CommandListState>) => VNode[];\n}\n\n/**\n * Command's List rendering only the matching Items in view (spec/command.md, \"Virtual list\"):\n * the ends, the highlighted Item with its neighbours and the best match stay rendered, so the\n * Input's keys and the highlight behave as with every Item rendered.\n */\nexport const CommandVirtualList: PublicComponent<\n CommandVirtualListProps & { as?: AsProp },\n CommandVirtualListSlots,\n VirtualListEmits\n> = publicComponent(\n defineComponent({\n name: \"CommandVirtualList\",\n inheritAttrs: false,\n props: {\n ...asProp,\n ...virtualListProps,\n items: {\n type: Array as PropType<readonly CommandEntry[]>,\n required: true,\n },\n },\n emits: {\n loadMore: () => true,\n },\n setup(props, { attrs, slots, emit }) {\n const context = useRequiredContext(\n CommandKey,\n \"CommandVirtual.List\",\n );\n // the list element is Command.List's own (the context's `list`)\n const ref = chainedRef(elementSetter(context.list));\n const matches = computed(() =>\n commandMatches(\n props.items,\n context.search.value,\n context.filter(),\n ),\n );\n const entries = () => matches.value.entries;\n const best = computed(() =>\n bestMatch(\n matches.value.scores,\n (index) => entries()[index]?.disabled === true,\n ),\n );\n const current = computed<number | undefined>(() => {\n const found = entries().findIndex(\n (entry) => entry.value === context.highlighted.value,\n );\n return found === -1 ? undefined : found;\n });\n const virtual: VirtualRows<CommandEntry> = useVirtualRows({\n items: entries,\n pinned: () =>\n reachableRows(entries().length, current.value, best.value),\n list: context.list,\n props,\n onLoadMore: () => emit(\"loadMore\"),\n });\n // the highlighted row in view, by its offset (the Item scrolls only within what is\n // rendered)\n const { virtualizer } = virtual;\n const reveal = () => {\n const index = current.value;\n if (index !== undefined) {\n nextTick().then(() => virtualizer.scrollToIndex(index));\n }\n };\n onMounted(reveal);\n watch(current, reveal, { flush: \"post\" });\n return () =>\n renderVirtualList(\n CommandList,\n { attrs, slots },\n props.as,\n props.loading,\n virtual.rows(\n slots.default &&\n ((entry, index) =>\n slots.default?.({\n entry: entry as never,\n index,\n })),\n ),\n ref,\n );\n },\n }),\n);\n","import { CommandVirtualList } from \"./command-virtual-list.ts\";\n\n/** spec/command.md, \"Virtual list\" */\nexport const CommandVirtual = {\n List: CommandVirtualList,\n};\n"],"mappings":";;;;;;;;;;;ACGA,MAAa,iBAAiB,EAC1B,MDyDA,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,GAAG;EACH,OAAO;GACH,MAAM;GACN,UAAU;EACd;CACJ;CACA,OAAO,EACH,gBAAgB,KACpB;CACA,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACjC,MAAM,UAAU,mBACZ,YACA,qBACJ;EAEA,MAAM,MAAM,WAAW,cAAc,QAAQ,IAAI,CAAC;EAClD,MAAM,UAAU,eACZ,eACI,MAAM,OACN,QAAQ,OAAO,OACf,QAAQ,OAAO,CACnB,CACJ;EACA,MAAM,gBAAgB,QAAQ,MAAM;EACpC,MAAM,OAAO,eACT,UACI,QAAQ,MAAM,SACb,UAAU,QAAQ,CAAC,CAAC,MAAM,EAAE,aAAa,IAC9C,CACJ;EACA,MAAM,UAAU,eAAmC;GAC/C,MAAM,QAAQ,QAAQ,CAAC,CAAC,WACnB,UAAU,MAAM,UAAU,QAAQ,YAAY,KACnD;GACA,OAAO,UAAU,KAAK,KAAA,IAAY;EACtC,CAAC;EACD,MAAM,UAAqC,eAAe;GACtD,OAAO;GACP,cACI,cAAc,QAAQ,CAAC,CAAC,QAAQ,QAAQ,OAAO,KAAK,KAAK;GAC7D,MAAM,QAAQ;GACd;GACA,kBAAkB,KAAK,UAAU;EACrC,CAAC;EAGD,MAAM,EAAE,gBAAgB;EACxB,MAAM,eAAe;GACjB,MAAM,QAAQ,QAAQ;GACtB,IAAI,UAAU,KAAA,GACV,SAAS,CAAC,CAAC,WAAW,YAAY,cAAc,KAAK,CAAC;EAE9D;EACA,UAAU,MAAM;EAChB,MAAM,SAAS,QAAQ,EAAE,OAAO,OAAO,CAAC;EACxC,aACI,kBACI,aACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,MAAM,SACN,QAAQ,KACJ,MAAM,aACA,OAAO,UACL,MAAM,UAAU;GACL;GACP;EACJ,CAAC,EACb,GACA,GACJ;CACR;AACJ,CAAC,CCvIK,EACV"}
@@ -0,0 +1,3 @@
1
+ import { An as CommandVirtualListProps, Bi as VirtualListProps, On as CommandEntry, jn as CommandVirtualListSlots, kn as CommandVirtual, zi as VirtualListEmits } from "./index-t_lSQgLA.js";
2
+ import { r as Command } from "./index-CTzUalDO.js";
3
+ export { Command, type CommandEntry, CommandVirtual, type CommandVirtualListProps, type CommandVirtualListSlots, type VirtualListEmits, type VirtualListProps };
@@ -0,0 +1,3 @@
1
+ import { t as Command } from "./parts-M3ThgZzl.js";
2
+ import { t as CommandVirtual } from "./command-virtual-LoTBDEY5.js";
3
+ export { Command, CommandVirtual };
@@ -0,0 +1,4 @@
1
+ import { n as ChangeReason, t as ChangeDetails } from "./change-details-Bc4-Xzdm.js";
2
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
3
+ import { a as CommandRootEmits, c as CommandListState, d as CommandItemState, i as CommandSeparatorProps, l as CommandItemEmits, n as CommandFilter, o as CommandRootProps, r as Command, s as CommandRootState, t as CommandEntry, u as CommandItemProps } from "./index-CTzUalDO.js";
4
+ export { type ChangeDetails, type ChangeReason, Command, type CommandEntry, type CommandFilter, type CommandItemEmits, type CommandItemProps, type CommandItemState, type CommandListState, type CommandRootEmits, type CommandRootProps, type CommandRootState, type CommandSeparatorProps, type RenderSlotProps };
@@ -0,0 +1 @@
1
+ export { t as Command } from "./parts-M3ThgZzl.js";