@fragiola/primitives-vue 0.0.0-stage → 0.0.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 (543) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -2
  3. package/dist/accordion-CmKuKHkK.js +278 -0
  4. package/dist/accordion-CmKuKHkK.js.map +1 -0
  5. package/dist/accordion.d.ts +4 -0
  6. package/dist/accordion.js +1 -0
  7. package/dist/alert-dialog-CPG51QOk.js +38 -0
  8. package/dist/alert-dialog-CPG51QOk.js.map +1 -0
  9. package/dist/alert-dialog.d.ts +9 -0
  10. package/dist/alert-dialog.js +1 -0
  11. package/dist/aspect-ratio-Ba7GaRnV.js +37 -0
  12. package/dist/aspect-ratio-Ba7GaRnV.js.map +1 -0
  13. package/dist/aspect-ratio.d.ts +3 -0
  14. package/dist/aspect-ratio.js +1 -0
  15. package/dist/async-list-Dc8wqcxe.js +39 -0
  16. package/dist/async-list-Dc8wqcxe.js.map +1 -0
  17. package/dist/async-list.d.ts +2 -0
  18. package/dist/async-list.js +1 -0
  19. package/dist/autocomplete-virtual-D_2Wuih7.js +55 -0
  20. package/dist/autocomplete-virtual-D_2Wuih7.js.map +1 -0
  21. package/dist/autocomplete-virtual.d.ts +2 -0
  22. package/dist/autocomplete-virtual.js +3 -0
  23. package/dist/autocomplete.d.ts +6 -0
  24. package/dist/autocomplete.js +1 -0
  25. package/dist/avatar-DdDGa6x7.js +166 -0
  26. package/dist/avatar-DdDGa6x7.js.map +1 -0
  27. package/dist/avatar.d.ts +3 -0
  28. package/dist/avatar.js +1 -0
  29. package/dist/breadcrumbs-BFAjlnC_.js +131 -0
  30. package/dist/breadcrumbs-BFAjlnC_.js.map +1 -0
  31. package/dist/breadcrumbs.d.ts +3 -0
  32. package/dist/breadcrumbs.js +1 -0
  33. package/dist/button-DVUcUCXc.js +56 -0
  34. package/dist/button-DVUcUCXc.js.map +1 -0
  35. package/dist/button-attributes-Ue6sUse5.js +83 -0
  36. package/dist/button-attributes-Ue6sUse5.js.map +1 -0
  37. package/dist/button.d.ts +3 -0
  38. package/dist/button.js +1 -0
  39. package/dist/calendar-preset-Bjc7rcNX.js +84 -0
  40. package/dist/calendar-preset-Bjc7rcNX.js.map +1 -0
  41. package/dist/calendar-preset.d.ts +3 -0
  42. package/dist/calendar-preset.js +3 -0
  43. package/dist/calendar-prev-button-jluYmM-3.js +307 -0
  44. package/dist/calendar-prev-button-jluYmM-3.js.map +1 -0
  45. package/dist/calendar-root-base-C9dfkl55.js +310 -0
  46. package/dist/calendar-root-base-C9dfkl55.js.map +1 -0
  47. package/dist/calendar-view-Djy5iHGK.js +160 -0
  48. package/dist/calendar-view-Djy5iHGK.js.map +1 -0
  49. package/dist/calendar-view.d.ts +4 -0
  50. package/dist/calendar-view.js +4 -0
  51. package/dist/calendar.d.ts +5 -0
  52. package/dist/calendar.js +1 -0
  53. package/dist/carousel-BOacnCmz.js +553 -0
  54. package/dist/carousel-BOacnCmz.js.map +1 -0
  55. package/dist/carousel.d.ts +4 -0
  56. package/dist/carousel.js +1 -0
  57. package/dist/cascade-select-B-Nf6eOA.js +697 -0
  58. package/dist/cascade-select-B-Nf6eOA.js.map +1 -0
  59. package/dist/cascade-select.d.ts +6 -0
  60. package/dist/cascade-select.js +1 -0
  61. package/dist/change-details-Bc4-Xzdm.d.ts +37 -0
  62. package/dist/checkbox-D5NvqFgS.js +230 -0
  63. package/dist/checkbox-D5NvqFgS.js.map +1 -0
  64. package/dist/checkbox-group-C3XftlZd.js +104 -0
  65. package/dist/checkbox-group-C3XftlZd.js.map +1 -0
  66. package/dist/checkbox-group-context-C0Z5sWM1.js +5 -0
  67. package/dist/checkbox-group-context-C0Z5sWM1.js.map +1 -0
  68. package/dist/checkbox-group.d.ts +4 -0
  69. package/dist/checkbox-group.js +1 -0
  70. package/dist/checkbox.d.ts +4 -0
  71. package/dist/checkbox.js +1 -0
  72. package/dist/clipboard-BM-4-lTv.js +195 -0
  73. package/dist/clipboard-BM-4-lTv.js.map +1 -0
  74. package/dist/clipboard.d.ts +4 -0
  75. package/dist/clipboard.js +1 -0
  76. package/dist/collapsible-DSCxhlQN.js +158 -0
  77. package/dist/collapsible-DSCxhlQN.js.map +1 -0
  78. package/dist/collapsible.d.ts +4 -0
  79. package/dist/collapsible.js +1 -0
  80. package/dist/color-area-uEHPo-Nq.js +350 -0
  81. package/dist/color-area-uEHPo-Nq.js.map +1 -0
  82. package/dist/color-area.d.ts +4 -0
  83. package/dist/color-area.js +1 -0
  84. package/dist/color-field-Di2IbTa3.js +384 -0
  85. package/dist/color-field-Di2IbTa3.js.map +1 -0
  86. package/dist/color-field.d.ts +4 -0
  87. package/dist/color-field.js +1 -0
  88. package/dist/color-picker-BgFgq5R0.js +311 -0
  89. package/dist/color-picker-BgFgq5R0.js.map +1 -0
  90. package/dist/color-picker-binding-CJ-Cbxbj.js +5 -0
  91. package/dist/color-picker-binding-CJ-Cbxbj.js.map +1 -0
  92. package/dist/color-picker-popover-Dx6LX0V3.js +233 -0
  93. package/dist/color-picker-popover-Dx6LX0V3.js.map +1 -0
  94. package/dist/color-picker-popover.d.ts +6 -0
  95. package/dist/color-picker-popover.js +1 -0
  96. package/dist/color-picker.d.ts +4 -0
  97. package/dist/color-picker.js +1 -0
  98. package/dist/color-slider-BCqoolnY.js +410 -0
  99. package/dist/color-slider-BCqoolnY.js.map +1 -0
  100. package/dist/color-slider.d.ts +4 -0
  101. package/dist/color-slider.js +1 -0
  102. package/dist/color-swatch-C-8IN28V.js +54 -0
  103. package/dist/color-swatch-C-8IN28V.js.map +1 -0
  104. package/dist/color-swatch-picker-CU1wrhjX.js +312 -0
  105. package/dist/color-swatch-picker-CU1wrhjX.js.map +1 -0
  106. package/dist/color-swatch-picker.d.ts +4 -0
  107. package/dist/color-swatch-picker.js +1 -0
  108. package/dist/color-swatch.d.ts +3 -0
  109. package/dist/color-swatch.js +1 -0
  110. package/dist/color-wheel-F_BoXKON.js +284 -0
  111. package/dist/color-wheel-F_BoXKON.js.map +1 -0
  112. package/dist/color-wheel.d.ts +4 -0
  113. package/dist/color-wheel.js +1 -0
  114. package/dist/combobox-virtual-DTRTVq5N.js +56 -0
  115. package/dist/combobox-virtual-DTRTVq5N.js.map +1 -0
  116. package/dist/combobox-virtual.d.ts +2 -0
  117. package/dist/combobox-virtual.js +3 -0
  118. package/dist/combobox.d.ts +6 -0
  119. package/dist/combobox.js +1 -0
  120. package/dist/command-virtual-LoTBDEY5.js +59 -0
  121. package/dist/command-virtual-LoTBDEY5.js.map +1 -0
  122. package/dist/command-virtual.d.ts +3 -0
  123. package/dist/command-virtual.js +3 -0
  124. package/dist/command.d.ts +4 -0
  125. package/dist/command.js +1 -0
  126. package/dist/context-menu-zdHIGS9E.js +151 -0
  127. package/dist/context-menu-zdHIGS9E.js.map +1 -0
  128. package/dist/context-menu.d.ts +7 -0
  129. package/dist/context-menu.js +1 -0
  130. package/dist/date-field-pgSTZiPb.js +78 -0
  131. package/dist/date-field-pgSTZiPb.js.map +1 -0
  132. package/dist/date-field-root-base-CYLuAykm.js +212 -0
  133. package/dist/date-field-root-base-CYLuAykm.js.map +1 -0
  134. package/dist/date-field.d.ts +4 -0
  135. package/dist/date-field.js +1 -0
  136. package/dist/date-picker-input-CiuuRiWZ.js +16 -0
  137. package/dist/date-picker-input-CiuuRiWZ.js.map +1 -0
  138. package/dist/date-picker-input-root-base-ExPSLeKw.js +318 -0
  139. package/dist/date-picker-input-root-base-ExPSLeKw.js.map +1 -0
  140. package/dist/date-picker-input.d.ts +4 -0
  141. package/dist/date-picker-input.js +3 -0
  142. package/dist/date-picker-trigger-C2BlzvfR.js +349 -0
  143. package/dist/date-picker-trigger-C2BlzvfR.js.map +1 -0
  144. package/dist/date-picker.d.ts +6 -0
  145. package/dist/date-picker.js +1 -0
  146. package/dist/date-range-field-Bygmkl5c.js +80 -0
  147. package/dist/date-range-field-Bygmkl5c.js.map +1 -0
  148. package/dist/date-range-field-input-CivpQMYd.js +69 -0
  149. package/dist/date-range-field-input-CivpQMYd.js.map +1 -0
  150. package/dist/date-range-field-root-base-BP26TSWz.js +267 -0
  151. package/dist/date-range-field-root-base-BP26TSWz.js.map +1 -0
  152. package/dist/date-range-field.d.ts +4 -0
  153. package/dist/date-range-field.js +1 -0
  154. package/dist/date-range-picker-input-BUNCCXUY.js +17 -0
  155. package/dist/date-range-picker-input-BUNCCXUY.js.map +1 -0
  156. package/dist/date-range-picker-input.d.ts +4 -0
  157. package/dist/date-range-picker-input.js +3 -0
  158. package/dist/date-range-picker.d.ts +7 -0
  159. package/dist/date-range-picker.js +1 -0
  160. package/dist/dialog-MNjIMCfA.js +38 -0
  161. package/dist/dialog-MNjIMCfA.js.map +1 -0
  162. package/dist/dialog-root-base-jbZipaoQ.js +329 -0
  163. package/dist/dialog-root-base-jbZipaoQ.js.map +1 -0
  164. package/dist/dialog-viewport-tYqWTs9Q.d.ts +54 -0
  165. package/dist/dialog.d.ts +9 -0
  166. package/dist/dialog.js +1 -0
  167. package/dist/direction-CN_deiZU.js +30 -0
  168. package/dist/direction-CN_deiZU.js.map +1 -0
  169. package/dist/direction-context-D-C_P6Lm.js +19 -0
  170. package/dist/direction-context-D-C_P6Lm.js.map +1 -0
  171. package/dist/direction.d.ts +2 -0
  172. package/dist/direction.js +1 -0
  173. package/dist/drawer-BcnuGtEt.js +357 -0
  174. package/dist/drawer-BcnuGtEt.js.map +1 -0
  175. package/dist/drawer.d.ts +9 -0
  176. package/dist/drawer.js +1 -0
  177. package/dist/drop-zone-vFJ5Kvsy.js +98 -0
  178. package/dist/drop-zone-vFJ5Kvsy.js.map +1 -0
  179. package/dist/drop-zone.d.ts +4 -0
  180. package/dist/drop-zone.js +1 -0
  181. package/dist/editable-CabzXgiN.js +436 -0
  182. package/dist/editable-CabzXgiN.js.map +1 -0
  183. package/dist/editable.d.ts +4 -0
  184. package/dist/editable.js +1 -0
  185. package/dist/field-DQ2d5nhC.js +397 -0
  186. package/dist/field-DQ2d5nhC.js.map +1 -0
  187. package/dist/field.d.ts +4 -0
  188. package/dist/field.js +1 -0
  189. package/dist/fieldset-CmmDzOPs.js +80 -0
  190. package/dist/fieldset-CmmDzOPs.js.map +1 -0
  191. package/dist/fieldset-context-DtEOoG6M.js +5 -0
  192. package/dist/fieldset-context-DtEOoG6M.js.map +1 -0
  193. package/dist/fieldset.d.ts +3 -0
  194. package/dist/fieldset.js +1 -0
  195. package/dist/file-upload-_Hh-STdv.js +644 -0
  196. package/dist/file-upload-_Hh-STdv.js.map +1 -0
  197. package/dist/file-upload.d.ts +4 -0
  198. package/dist/file-upload.js +1 -0
  199. package/dist/form-context-DBnVT1lw.js +5 -0
  200. package/dist/form-context-DBnVT1lw.js.map +1 -0
  201. package/dist/form-s9HijjTL.js +92 -0
  202. package/dist/form-s9HijjTL.js.map +1 -0
  203. package/dist/form.d.ts +3 -0
  204. package/dist/form.js +1 -0
  205. package/dist/hover-card-rmd0fD17.js +355 -0
  206. package/dist/hover-card-rmd0fD17.js.map +1 -0
  207. package/dist/hover-card.d.ts +9 -0
  208. package/dist/hover-card.js +1 -0
  209. package/dist/index-5WtjXdX9.d.ts +63 -0
  210. package/dist/index-5eBkkEtv.d.ts +36 -0
  211. package/dist/index-B-vqAG6g.d.ts +33 -0
  212. package/dist/index-B1uYYVtV.d.ts +18 -0
  213. package/dist/index-B8E3X1CK.d.ts +66 -0
  214. package/dist/index-B8Ufhgzu.d.ts +36 -0
  215. package/dist/index-BJz7OWbi.d.ts +88 -0
  216. package/dist/index-BMjRueuv.d.ts +40 -0
  217. package/dist/index-BP7Tmb0E.d.ts +95 -0
  218. package/dist/index-Bbb1Zgwo.d.ts +50 -0
  219. package/dist/index-BdJFU5tH.d.ts +28 -0
  220. package/dist/index-BdfnRo-h.d.ts +55 -0
  221. package/dist/index-BniQvFN-.d.ts +38 -0
  222. package/dist/index-Bt0B-8RV.d.ts +14 -0
  223. package/dist/index-BuWJcRPC.d.ts +18 -0
  224. package/dist/index-Byf0GNd9.d.ts +41 -0
  225. package/dist/index-BzHLkAWU.d.ts +35 -0
  226. package/dist/index-C-QYKtWy.d.ts +28 -0
  227. package/dist/index-C7nh2Oil.d.ts +40 -0
  228. package/dist/index-CDKebSlA.d.ts +41 -0
  229. package/dist/index-CFPqV6qJ.d.ts +72 -0
  230. package/dist/index-CRJv_zWm.d.ts +37 -0
  231. package/dist/index-CTzUalDO.d.ts +76 -0
  232. package/dist/index-CZHLD5cJ.d.ts +17 -0
  233. package/dist/index-Cgwn5qgy.d.ts +88 -0
  234. package/dist/index-Ch4h1DFC.d.ts +55 -0
  235. package/dist/index-Cj3B9gY_.d.ts +50 -0
  236. package/dist/index-Cj6NwCBD.d.ts +44 -0
  237. package/dist/index-CkDThwop.d.ts +21 -0
  238. package/dist/index-Cn-D14iz.d.ts +13 -0
  239. package/dist/index-CpTiLSql.d.ts +53 -0
  240. package/dist/index-CqP363e5.d.ts +118 -0
  241. package/dist/index-Cv4dRdEa.d.ts +72 -0
  242. package/dist/index-CyI637MF.d.ts +37 -0
  243. package/dist/index-D11YCkvR.d.ts +42 -0
  244. package/dist/index-D3yyJGzf.d.ts +74 -0
  245. package/dist/index-D5PbKxcs.d.ts +26 -0
  246. package/dist/index-DAYklR-H.d.ts +18 -0
  247. package/dist/index-DIZSgXHM.d.ts +79 -0
  248. package/dist/index-DZckp3H0.d.ts +37 -0
  249. package/dist/index-DaqoBvQf.d.ts +56 -0
  250. package/dist/index-Df9i45Gr.d.ts +65 -0
  251. package/dist/index-DqI6n06W.d.ts +59 -0
  252. package/dist/index-Drp7svmT.d.ts +30 -0
  253. package/dist/index-DxsUcSGT.d.ts +99 -0
  254. package/dist/index-Dyyi-1mv.d.ts +35 -0
  255. package/dist/index-I2ewgOGz.d.ts +76 -0
  256. package/dist/index-JGhlANKo.d.ts +24 -0
  257. package/dist/index-KASc7z5u.d.ts +38 -0
  258. package/dist/index-LTcmDERY.d.ts +65 -0
  259. package/dist/index-Mf2RPgmw.d.ts +38 -0
  260. package/dist/index-NdY27G_d.d.ts +58 -0
  261. package/dist/index-QO79pDtI.d.ts +70 -0
  262. package/dist/index-S0FIwOSw.d.ts +59 -0
  263. package/dist/index-UxsyZS_A.d.ts +23 -0
  264. package/dist/index-W8aOtVIu.d.ts +40 -0
  265. package/dist/index-WC9xwMaX.d.ts +34 -0
  266. package/dist/index-Xwb9OtVU.d.ts +7 -0
  267. package/dist/index-ZWJJ2V_J.d.ts +49 -0
  268. package/dist/index-_Q_N8ZbU.d.ts +35 -0
  269. package/dist/index-bC3hHzam.d.ts +101 -0
  270. package/dist/index-baY49J-s.d.ts +15 -0
  271. package/dist/index-dCTvA7uS.d.ts +20 -0
  272. package/dist/index-mhpoLESL.d.ts +77 -0
  273. package/dist/index-p3t0BKd4.d.ts +22 -0
  274. package/dist/index-sgaMj_3p.d.ts +69 -0
  275. package/dist/index-tSLNRqTo.d.ts +33 -0
  276. package/dist/index-t_lSQgLA.d.ts +1346 -0
  277. package/dist/index-uL1dEAhG.d.ts +28 -0
  278. package/dist/index.d.ts +79 -0
  279. package/dist/index.js +106 -0
  280. package/dist/label-Ce-gIayi.js +35 -0
  281. package/dist/label-Ce-gIayi.js.map +1 -0
  282. package/dist/label.d.ts +3 -0
  283. package/dist/label.js +1 -0
  284. package/dist/labelled-part-DB2rXJFG.js +56 -0
  285. package/dist/labelled-part-DB2rXJFG.js.map +1 -0
  286. package/dist/link-CZ3ISaPX.js +42 -0
  287. package/dist/link-CZ3ISaPX.js.map +1 -0
  288. package/dist/link-attributes-D9UusWws.js +29 -0
  289. package/dist/link-attributes-D9UusWws.js.map +1 -0
  290. package/dist/link.d.ts +3 -0
  291. package/dist/link.js +1 -0
  292. package/dist/listbox-virtual-He6BWlPj.js +291 -0
  293. package/dist/listbox-virtual-He6BWlPj.js.map +1 -0
  294. package/dist/listbox-virtual.d.ts +5 -0
  295. package/dist/listbox-virtual.js +3 -0
  296. package/dist/listbox.d.ts +4 -0
  297. package/dist/listbox.js +1 -0
  298. package/dist/live-region-style-9ofmajhO.js +46 -0
  299. package/dist/live-region-style-9ofmajhO.js.map +1 -0
  300. package/dist/menu-D7TVxPdb.js +144 -0
  301. package/dist/menu-D7TVxPdb.js.map +1 -0
  302. package/dist/menu-bar-context-k5vMlwmW.js +13 -0
  303. package/dist/menu-bar-context-k5vMlwmW.js.map +1 -0
  304. package/dist/menu-submenu-trigger-ClI2Pm4X.js +885 -0
  305. package/dist/menu-submenu-trigger-ClI2Pm4X.js.map +1 -0
  306. package/dist/menu-submenu-trigger-DNH8_uUB.d.ts +127 -0
  307. package/dist/menu.d.ts +10 -0
  308. package/dist/menu.js +1 -0
  309. package/dist/menubar-CQn3AOiQ.js +212 -0
  310. package/dist/menubar-CQn3AOiQ.js.map +1 -0
  311. package/dist/menubar.d.ts +3 -0
  312. package/dist/menubar.js +1 -0
  313. package/dist/meter-7Qd_WaUY.js +202 -0
  314. package/dist/meter-7Qd_WaUY.js.map +1 -0
  315. package/dist/meter.d.ts +3 -0
  316. package/dist/meter.js +1 -0
  317. package/dist/month-calendar-root-base-VcD8ZNW5.js +354 -0
  318. package/dist/month-calendar-root-base-VcD8ZNW5.js.map +1 -0
  319. package/dist/month-calendar.d.ts +5 -0
  320. package/dist/month-calendar.js +1 -0
  321. package/dist/month-picker-DzOYqW1S.js +15 -0
  322. package/dist/month-picker-DzOYqW1S.js.map +1 -0
  323. package/dist/month-picker-root-base-ByMK_Mfq.js +158 -0
  324. package/dist/month-picker-root-base-ByMK_Mfq.js.map +1 -0
  325. package/dist/month-picker.d.ts +7 -0
  326. package/dist/month-picker.js +3 -0
  327. package/dist/month-range-calendar-CJAWu1-Z.js +18 -0
  328. package/dist/month-range-calendar-CJAWu1-Z.js.map +1 -0
  329. package/dist/month-range-calendar.d.ts +5 -0
  330. package/dist/month-range-calendar.js +3 -0
  331. package/dist/month-range-picker-CRJDG2HG.js +15 -0
  332. package/dist/month-range-picker-CRJDG2HG.js.map +1 -0
  333. package/dist/month-range-picker.d.ts +8 -0
  334. package/dist/month-range-picker.js +3 -0
  335. package/dist/multiple-calendar-BIb2zfBH.js +176 -0
  336. package/dist/multiple-calendar-BIb2zfBH.js.map +1 -0
  337. package/dist/multiple-calendar.d.ts +5 -0
  338. package/dist/multiple-calendar.js +3 -0
  339. package/dist/navigation-menu-COTxGol_.js +727 -0
  340. package/dist/navigation-menu-COTxGol_.js.map +1 -0
  341. package/dist/navigation-menu.d.ts +5 -0
  342. package/dist/navigation-menu.js +1 -0
  343. package/dist/number-field-CqxEnwiS.js +581 -0
  344. package/dist/number-field-CqxEnwiS.js.map +1 -0
  345. package/dist/number-field.d.ts +4 -0
  346. package/dist/number-field.js +1 -0
  347. package/dist/otp-field-DIDuypLU.js +420 -0
  348. package/dist/otp-field-DIDuypLU.js.map +1 -0
  349. package/dist/otp-field.d.ts +4 -0
  350. package/dist/otp-field.js +1 -0
  351. package/dist/overlay-handle-DUptsQOb.js +42 -0
  352. package/dist/overlay-handle-DUptsQOb.js.map +1 -0
  353. package/dist/overlay-handle-DzC9LJQo.d.ts +16 -0
  354. package/dist/overlay-portal-Cmn7Dt7E.d.ts +30 -0
  355. package/dist/overlay-portal-ZNtXmoFd.js +32 -0
  356. package/dist/overlay-portal-ZNtXmoFd.js.map +1 -0
  357. package/dist/pagination-BNUjFYxK.js +264 -0
  358. package/dist/pagination-BNUjFYxK.js.map +1 -0
  359. package/dist/pagination.d.ts +4 -0
  360. package/dist/pagination.js +1 -0
  361. package/dist/parts--mC44S1N.js +1023 -0
  362. package/dist/parts--mC44S1N.js.map +1 -0
  363. package/dist/parts-BP00C3Q5.js +874 -0
  364. package/dist/parts-BP00C3Q5.js.map +1 -0
  365. package/dist/parts-CMh29O5y.js +14 -0
  366. package/dist/parts-CMh29O5y.js.map +1 -0
  367. package/dist/parts-CZqNGRqe.js +20 -0
  368. package/dist/parts-CZqNGRqe.js.map +1 -0
  369. package/dist/parts-DMy2yQZs.js +254 -0
  370. package/dist/parts-DMy2yQZs.js.map +1 -0
  371. package/dist/parts-DVv0aov9.js +14 -0
  372. package/dist/parts-DVv0aov9.js.map +1 -0
  373. package/dist/parts-M3ThgZzl.js +489 -0
  374. package/dist/parts-M3ThgZzl.js.map +1 -0
  375. package/dist/parts-stPOp8dr.js +451 -0
  376. package/dist/parts-stPOp8dr.js.map +1 -0
  377. package/dist/parts-uxRkRrFr.js +668 -0
  378. package/dist/parts-uxRkRrFr.js.map +1 -0
  379. package/dist/password-input-DC39W-do.js +231 -0
  380. package/dist/password-input-DC39W-do.js.map +1 -0
  381. package/dist/password-input.d.ts +4 -0
  382. package/dist/password-input.js +1 -0
  383. package/dist/popover-BaQTGAYJ.js +328 -0
  384. package/dist/popover-BaQTGAYJ.js.map +1 -0
  385. package/dist/popover.d.ts +9 -0
  386. package/dist/popover.js +1 -0
  387. package/dist/progress-DH1Xrj73.js +219 -0
  388. package/dist/progress-DH1Xrj73.js.map +1 -0
  389. package/dist/progress.d.ts +3 -0
  390. package/dist/progress.js +1 -0
  391. package/dist/public-component-AV8E7mGp.js +8 -0
  392. package/dist/public-component-AV8E7mGp.js.map +1 -0
  393. package/dist/public-component-DYpU9aDh.d.ts +33 -0
  394. package/dist/radio-B9YCSnFs.js +159 -0
  395. package/dist/radio-B9YCSnFs.js.map +1 -0
  396. package/dist/radio-group-CmSF4FTc.js +173 -0
  397. package/dist/radio-group-CmSF4FTc.js.map +1 -0
  398. package/dist/radio-group-context-C196JZ9D.js +5 -0
  399. package/dist/radio-group-context-C196JZ9D.js.map +1 -0
  400. package/dist/radio-group.d.ts +4 -0
  401. package/dist/radio-group.js +1 -0
  402. package/dist/radio.d.ts +3 -0
  403. package/dist/radio.js +1 -0
  404. package/dist/range-calendar-BDbNdL75.js +20 -0
  405. package/dist/range-calendar-BDbNdL75.js.map +1 -0
  406. package/dist/range-calendar.d.ts +5 -0
  407. package/dist/range-calendar.js +1 -0
  408. package/dist/rating-oC2t52av.js +351 -0
  409. package/dist/rating-oC2t52av.js.map +1 -0
  410. package/dist/rating.d.ts +4 -0
  411. package/dist/rating.js +1 -0
  412. package/dist/render-part-B5XVbHaS.js +36 -0
  413. package/dist/render-part-B5XVbHaS.js.map +1 -0
  414. package/dist/render-part-BaTKiWBp.d.ts +28 -0
  415. package/dist/render.d.ts +3 -0
  416. package/dist/render.js +3 -0
  417. package/dist/roving-context-LyHQFJqZ.js +32 -0
  418. package/dist/roving-context-LyHQFJqZ.js.map +1 -0
  419. package/dist/scroll-area-_EApTP33.js +328 -0
  420. package/dist/scroll-area-_EApTP33.js.map +1 -0
  421. package/dist/scroll-area.d.ts +3 -0
  422. package/dist/scroll-area.js +1 -0
  423. package/dist/search-field-DJIr926A.js +221 -0
  424. package/dist/search-field-DJIr926A.js.map +1 -0
  425. package/dist/search-field.d.ts +4 -0
  426. package/dist/search-field.js +1 -0
  427. package/dist/segmented-control-BMvmqBpR.js +389 -0
  428. package/dist/segmented-control-BMvmqBpR.js.map +1 -0
  429. package/dist/segmented-control.d.ts +4 -0
  430. package/dist/segmented-control.js +1 -0
  431. package/dist/select-virtual-BwZrX4bh.js +53 -0
  432. package/dist/select-virtual-BwZrX4bh.js.map +1 -0
  433. package/dist/select-virtual.d.ts +3 -0
  434. package/dist/select-virtual.js +3 -0
  435. package/dist/select.d.ts +6 -0
  436. package/dist/select.js +1 -0
  437. package/dist/separator-SgHyzEHB.js +42 -0
  438. package/dist/separator-SgHyzEHB.js.map +1 -0
  439. package/dist/separator.d.ts +3 -0
  440. package/dist/separator.js +1 -0
  441. package/dist/slider-DU5Cx7yj.js +539 -0
  442. package/dist/slider-DU5Cx7yj.js.map +1 -0
  443. package/dist/slider.d.ts +4 -0
  444. package/dist/slider.js +1 -0
  445. package/dist/state-attributes-DhboDeMS.js +14 -0
  446. package/dist/state-attributes-DhboDeMS.js.map +1 -0
  447. package/dist/steps-Dl_mMqRB.js +363 -0
  448. package/dist/steps-Dl_mMqRB.js.map +1 -0
  449. package/dist/steps.d.ts +4 -0
  450. package/dist/steps.js +1 -0
  451. package/dist/switch-CT9QBKOs.js +183 -0
  452. package/dist/switch-CT9QBKOs.js.map +1 -0
  453. package/dist/switch.d.ts +4 -0
  454. package/dist/switch.js +1 -0
  455. package/dist/tabs-BhVbQ7AV.js +369 -0
  456. package/dist/tabs-BhVbQ7AV.js.map +1 -0
  457. package/dist/tabs.d.ts +4 -0
  458. package/dist/tabs.js +1 -0
  459. package/dist/tag-group-DdpjWmzb.js +422 -0
  460. package/dist/tag-group-DdpjWmzb.js.map +1 -0
  461. package/dist/tag-group.d.ts +4 -0
  462. package/dist/tag-group.js +1 -0
  463. package/dist/tags-input-Iw3mST3A.js +627 -0
  464. package/dist/tags-input-Iw3mST3A.js.map +1 -0
  465. package/dist/tags-input.d.ts +4 -0
  466. package/dist/tags-input.js +1 -0
  467. package/dist/time-field-5Ghk_4SZ.js +76 -0
  468. package/dist/time-field-5Ghk_4SZ.js.map +1 -0
  469. package/dist/time-field.d.ts +4 -0
  470. package/dist/time-field.js +1 -0
  471. package/dist/time-range-field-DNOZQK4F.js +77 -0
  472. package/dist/time-range-field-DNOZQK4F.js.map +1 -0
  473. package/dist/time-range-field.d.ts +4 -0
  474. package/dist/time-range-field.js +1 -0
  475. package/dist/toast-DBKxX79M.js +426 -0
  476. package/dist/toast-DBKxX79M.js.map +1 -0
  477. package/dist/toast.d.ts +3 -0
  478. package/dist/toast.js +1 -0
  479. package/dist/toggle-Cca0PFQv.js +101 -0
  480. package/dist/toggle-Cca0PFQv.js.map +1 -0
  481. package/dist/toggle-group-DTUrLX_H.js +102 -0
  482. package/dist/toggle-group-DTUrLX_H.js.map +1 -0
  483. package/dist/toggle-group-context-gMEC8r-Z.js +5 -0
  484. package/dist/toggle-group-context-gMEC8r-Z.js.map +1 -0
  485. package/dist/toggle-group.d.ts +4 -0
  486. package/dist/toggle-group.js +1 -0
  487. package/dist/toggle.d.ts +4 -0
  488. package/dist/toggle.js +1 -0
  489. package/dist/toolbar-WU8JwFd0.js +272 -0
  490. package/dist/toolbar-WU8JwFd0.js.map +1 -0
  491. package/dist/toolbar.d.ts +3 -0
  492. package/dist/toolbar.js +1 -0
  493. package/dist/tooltip-C1kKsTSh.js +358 -0
  494. package/dist/tooltip-C1kKsTSh.js.map +1 -0
  495. package/dist/tooltip.d.ts +9 -0
  496. package/dist/tooltip.js +1 -0
  497. package/dist/use-color-picker-binding-BrG-whys.js +32 -0
  498. package/dist/use-color-picker-binding-BrG-whys.js.map +1 -0
  499. package/dist/use-controllable-B46G4v0A.js +30 -0
  500. package/dist/use-controllable-B46G4v0A.js.map +1 -0
  501. package/dist/use-field-control-CdYqr0dK.js +109 -0
  502. package/dist/use-field-control-CdYqr0dK.js.map +1 -0
  503. package/dist/use-overlay-root-BkyTQIsX.js +296 -0
  504. package/dist/use-overlay-root-BkyTQIsX.js.map +1 -0
  505. package/dist/use-overlay-trigger-D9OXZ_6K.d.ts +12 -0
  506. package/dist/use-overlay-trigger-KM35pX0a.js +61 -0
  507. package/dist/use-overlay-trigger-KM35pX0a.js.map +1 -0
  508. package/dist/use-panel-transition-DF7f1nmF.js +112 -0
  509. package/dist/use-panel-transition-DF7f1nmF.js.map +1 -0
  510. package/dist/use-panel-transition-r_BlVRob.d.ts +2 -0
  511. package/dist/use-positioner-BD24G6q1.js +73 -0
  512. package/dist/use-positioner-BD24G6q1.js.map +1 -0
  513. package/dist/use-positioner-D98pYl_K.d.ts +12 -0
  514. package/dist/use-presence-BcvBOTDI.d.ts +3 -0
  515. package/dist/use-required-context-CPpEkr4Q.js +11 -0
  516. package/dist/use-required-context-CPpEkr4Q.js.map +1 -0
  517. package/dist/use-roving-composite-CW0mE_VU.js +71 -0
  518. package/dist/use-roving-composite-CW0mE_VU.js.map +1 -0
  519. package/dist/use-roving-item-B9Cil5Rq.js +42 -0
  520. package/dist/use-roving-item-B9Cil5Rq.js.map +1 -0
  521. package/dist/use-segment-group-CAlwM3KP.js +304 -0
  522. package/dist/use-segment-group-CAlwM3KP.js.map +1 -0
  523. package/dist/use-virtual-rows-DesBexmk.js +142 -0
  524. package/dist/use-virtual-rows-DesBexmk.js.map +1 -0
  525. package/dist/virtual-list-BNvYqnFf.js +49 -0
  526. package/dist/virtual-list-BNvYqnFf.js.map +1 -0
  527. package/dist/year-calendar-cYl3WHEM.js +18 -0
  528. package/dist/year-calendar-cYl3WHEM.js.map +1 -0
  529. package/dist/year-calendar.d.ts +5 -0
  530. package/dist/year-calendar.js +3 -0
  531. package/dist/year-picker-DYQZbF1h.js +15 -0
  532. package/dist/year-picker-DYQZbF1h.js.map +1 -0
  533. package/dist/year-picker.d.ts +8 -0
  534. package/dist/year-picker.js +3 -0
  535. package/dist/year-range-calendar-ODgfmdiv.js +18 -0
  536. package/dist/year-range-calendar-ODgfmdiv.js.map +1 -0
  537. package/dist/year-range-calendar.d.ts +5 -0
  538. package/dist/year-range-calendar.js +3 -0
  539. package/dist/year-range-picker-DKXlcy7I.js +15 -0
  540. package/dist/year-range-picker-DKXlcy7I.js.map +1 -0
  541. package/dist/year-range-picker.d.ts +8 -0
  542. package/dist/year-range-picker.js +3 -0
  543. package/package.json +548 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete-virtual-D_2Wuih7.js","names":[],"sources":["../src/components/autocomplete-virtual/autocomplete-virtual-list.ts","../src/components/autocomplete-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 { AutocompleteKey } from \"../autocomplete/autocomplete-context.ts\";\nimport {\n AutocompleteList,\n type AutocompleteListState,\n} from \"../autocomplete/autocomplete-list.ts\";\n\nexport type AutocompleteVirtualListProps = VirtualListProps;\n\n/**\n * The default scoped slot renders an `Autocomplete.Item` for each matching suggestion in view (the\n * Root's `items`, flat). `entry` is the consumer's own type, named by the slot's annotation\n * (`v-slot=\"{ entry }: { entry: Fruit }\"`), as `Autocomplete.List`'s: `never` until annotated.\n */\nexport interface AutocompleteVirtualListSlots {\n default?: (scope: { entry: never; index: number }) => VNode[];\n render?: (scope: RenderSlotProps<AutocompleteListState>) => VNode[];\n}\n\n/**\n * Autocomplete's List rendering only the matching suggestions in view (spec/virtual-lists.md): the\n * ends and the highlighted suggestion with its neighbours stay rendered, so the Input's keys and\n * `aria-activedescendant` behave as with every item rendered.\n */\nexport const AutocompleteVirtualList: PublicComponent<\n AutocompleteVirtualListProps & { as?: AsProp },\n AutocompleteVirtualListSlots,\n VirtualListEmits\n> = publicComponent(\n defineComponent({\n name: \"AutocompleteVirtualList\",\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 AutocompleteKey,\n \"AutocompleteVirtual.List\",\n );\n // the list element is Autocomplete.List's own (the context's `list`)\n const ref = chainedRef(elementSetter(context.list));\n const entries = () => context.entries.value;\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(entries().length, current.value, -1),\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 AutocompleteList,\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 { AutocompleteVirtualList } from \"./autocomplete-virtual-list.ts\";\n\n/** spec/virtual-lists.md */\nexport const AutocompleteVirtual = {\n List: AutocompleteVirtualList,\n};\n"],"mappings":";;;;;;;;;;ACGA,MAAa,sBAAsB,EAC/B,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,iBACA,0BACJ;EAEA,MAAM,MAAM,WAAW,cAAc,QAAQ,IAAI,CAAC;EAClD,MAAM,gBAAgB,QAAQ,QAAQ;EACtC,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,cAAc,QAAQ,CAAC,CAAC,QAAQ,QAAQ,OAAO,EAAE;GACrD,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,kBACA;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,CChIK,EACV"}
@@ -0,0 +1,2 @@
1
+ import { Bi as VirtualListProps, i as Autocomplete, n as AutocompleteVirtualListProps, r as AutocompleteVirtualListSlots, t as AutocompleteVirtual, zi as VirtualListEmits } from "./index-t_lSQgLA.js";
2
+ export { Autocomplete, AutocompleteVirtual, type AutocompleteVirtualListProps, type AutocompleteVirtualListSlots, type VirtualListEmits, type VirtualListProps };
@@ -0,0 +1,3 @@
1
+ import { t as Autocomplete } from "./parts-BP00C3Q5.js";
2
+ import { t as AutocompleteVirtual } from "./autocomplete-virtual-D_2Wuih7.js";
3
+ export { Autocomplete, AutocompleteVirtual };
@@ -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 { Ai as AutocompletePortalProps, Ci as Side, Di as AutocompleteListState, Ei as AutocompleteListSlots, Fi as AutocompleteItemToString, Ii as AutocompleteRootEmits, Li as AutocompleteRootProps, Mi as AutocompleteDisabledState, Ni as AutocompleteOpenState, Oi as AutocompleteItemProps, Pi as AutocompleteFilter, Ri as AutocompleteMode, Si as ItemGroup, Ti as AutocompletePopupState, bi as Align, i as Autocomplete, ji as AutocompleteValueSlots, ki as AutocompleteItemState, wi as AutocompletePositionerState, xi as ItemFilter } from "./index-t_lSQgLA.js";
5
+ import { t as PositionerProps } from "./use-positioner-D98pYl_K.js";
6
+ export { type Align, Autocomplete, type AutocompleteDisabledState, type AutocompleteFilter, type AutocompleteItemProps, type AutocompleteItemState, type AutocompleteItemToString, type AutocompleteListSlots, type AutocompleteListState, type AutocompleteMode, type AutocompleteOpenState, type AutocompletePopupState, type AutocompletePortalProps, type AutocompletePositionerState, type AutocompleteRootEmits, type AutocompleteRootProps, type AutocompleteValueSlots, type ChangeDetails, type ChangeReason, 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 Autocomplete } from "./parts-BP00C3Q5.js";
@@ -0,0 +1,166 @@
1
+ import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
2
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
3
+ import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
4
+ import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
5
+ import { defineComponent, getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, shallowRef, watch } from "vue";
6
+ import { watchImageStatus } from "@fragiola/primitives/image";
7
+ // src/components/avatar/avatar-context.ts
8
+ const AvatarKey = Symbol("Avatar");
9
+ // src/components/avatar/avatar-fallback.ts
10
+ /** Shown while the image is not loaded, after its `delay` (spec/avatar.md). */
11
+ const AvatarFallback = publicComponent(defineComponent({
12
+ name: "AvatarFallback",
13
+ inheritAttrs: false,
14
+ props: {
15
+ ...asProp,
16
+ /** Rendered only once this many milliseconds have passed since it mounted. */
17
+ delay: {
18
+ type: Number,
19
+ default: void 0
20
+ }
21
+ },
22
+ setup(props, { attrs, slots }) {
23
+ const context = useRequiredContext(AvatarKey, "Avatar.Fallback");
24
+ const delayed = ref(props.delay !== void 0);
25
+ let timer;
26
+ const wait = (delay) => {
27
+ clearTimeout(timer);
28
+ if (delay === void 0) {
29
+ delayed.value = false;
30
+ return;
31
+ }
32
+ timer = setTimeout(() => {
33
+ delayed.value = false;
34
+ }, delay);
35
+ };
36
+ onMounted(() => {
37
+ wait(props.delay);
38
+ watch(() => props.delay, wait);
39
+ });
40
+ onBeforeUnmount(() => clearTimeout(timer));
41
+ return () => {
42
+ const status = context.status.value;
43
+ if (delayed.value || status === "loaded") return null;
44
+ return renderPart("span", {
45
+ attrs,
46
+ slots
47
+ }, props.as, { status }, { "data-primitives-part": "avatar-fallback" });
48
+ };
49
+ }
50
+ }));
51
+ // src/components/avatar/avatar-image.ts
52
+ /**
53
+ * The image, rendered only once it has loaded (spec/avatar.md): it loads outside the document
54
+ * first, within the mount (`onMounted`: a cached image is `loaded` before the browser paints).
55
+ */
56
+ const AvatarImage = publicComponent(defineComponent({
57
+ name: "AvatarImage",
58
+ inheritAttrs: false,
59
+ props: {
60
+ ...asProp,
61
+ src: {
62
+ type: String,
63
+ default: void 0
64
+ },
65
+ srcSet: {
66
+ type: String,
67
+ default: void 0
68
+ },
69
+ sizes: {
70
+ type: String,
71
+ default: void 0
72
+ },
73
+ crossOrigin: {
74
+ type: String,
75
+ default: void 0
76
+ },
77
+ referrerPolicy: {
78
+ type: String,
79
+ default: void 0
80
+ }
81
+ },
82
+ emits: { loadingStatusChange: (_status) => true },
83
+ setup(props, { attrs, slots, emit }) {
84
+ const context = useRequiredContext(AvatarKey, "Avatar.Image");
85
+ const instance = getCurrentInstance();
86
+ let stop = null;
87
+ const load = () => {
88
+ stop?.();
89
+ stop = null;
90
+ const anchor = context.root.value ?? instance?.proxy?.$el ?? null;
91
+ if (anchor === null) return;
92
+ stop = watchImageStatus(anchor, props.src, {
93
+ srcSet: props.srcSet,
94
+ sizes: props.sizes,
95
+ crossOrigin: props.crossOrigin,
96
+ referrerPolicy: props.referrerPolicy
97
+ }, (status) => {
98
+ context.status.value = status;
99
+ emit("loadingStatusChange", status);
100
+ });
101
+ };
102
+ onMounted(() => {
103
+ load();
104
+ watch(() => [
105
+ props.src,
106
+ props.srcSet,
107
+ props.sizes,
108
+ props.crossOrigin,
109
+ props.referrerPolicy
110
+ ], () => {
111
+ context.status.value = "idle";
112
+ load();
113
+ });
114
+ });
115
+ onBeforeUnmount(() => {
116
+ stop?.();
117
+ stop = null;
118
+ context.status.value = "idle";
119
+ });
120
+ return () => {
121
+ const status = context.status.value;
122
+ if (status !== "loaded") return null;
123
+ return renderPart("img", {
124
+ attrs,
125
+ slots
126
+ }, props.as, { status }, {
127
+ src: props.src,
128
+ srcset: props.srcSet,
129
+ sizes: props.sizes,
130
+ crossorigin: props.crossOrigin,
131
+ referrerpolicy: props.referrerPolicy,
132
+ "data-primitives-part": "avatar-image"
133
+ });
134
+ };
135
+ }
136
+ }));
137
+ // src/components/avatar/parts.ts
138
+ /** spec/avatar.md */
139
+ const Avatar = {
140
+ Root: publicComponent(defineComponent({
141
+ name: "AvatarRoot",
142
+ inheritAttrs: false,
143
+ props: asProp,
144
+ setup(props, { attrs, slots }) {
145
+ const status = ref("idle");
146
+ const root = shallowRef(null);
147
+ const setRoot = elementSetter(root);
148
+ provide(AvatarKey, {
149
+ status,
150
+ root
151
+ });
152
+ return () => renderPart("span", {
153
+ attrs,
154
+ slots
155
+ }, props.as, { status: status.value }, {
156
+ "data-primitives-part": "avatar-root",
157
+ ref: setRoot
158
+ });
159
+ }
160
+ })),
161
+ Image: AvatarImage,
162
+ Fallback: AvatarFallback
163
+ };
164
+ export { Avatar as t };
165
+
166
+ //# sourceMappingURL=avatar-DdDGa6x7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-DdDGa6x7.js","names":[],"sources":["../src/components/avatar/avatar-context.ts","../src/components/avatar/avatar-fallback.ts","../src/components/avatar/avatar-image.ts","../src/components/avatar/avatar-root.ts","../src/components/avatar/parts.ts"],"sourcesContent":["import type { ImageLoadingStatus } from \"@fragiola/primitives/image\";\nimport type { InjectionKey, Ref } from \"vue\";\n\nexport interface AvatarState {\n /** The image's loading status (spec/avatar.md). */\n status: ImageLoadingStatus;\n}\n\nexport interface AvatarContext {\n status: Ref<ImageLoadingStatus>;\n /** The Root's element: the Image loads through its window. */\n root: Ref<HTMLElement | null>;\n}\n\nexport const AvatarKey: InjectionKey<AvatarContext> = Symbol(\"Avatar\");\n","import { defineComponent, onBeforeUnmount, onMounted, ref, watch } 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 { AvatarKey, type AvatarState } from \"./avatar-context.ts\";\n\nexport interface AvatarFallbackProps {\n /** Rendered only once this many milliseconds have passed since it mounted. */\n delay?: number;\n}\n\n/** Shown while the image is not loaded, after its `delay` (spec/avatar.md). */\nexport const AvatarFallback: PartComponent<AvatarFallbackProps, AvatarState> =\n publicComponent(\n defineComponent({\n name: \"AvatarFallback\",\n inheritAttrs: false,\n props: {\n ...asProp,\n /** Rendered only once this many milliseconds have passed since it mounted. */\n delay: { type: Number, default: undefined },\n },\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n AvatarKey,\n \"Avatar.Fallback\",\n );\n const delayed = ref(props.delay !== undefined);\n let timer: ReturnType<typeof setTimeout> | undefined;\n const wait = (delay: number | undefined) => {\n clearTimeout(timer);\n if (delay === undefined) {\n delayed.value = false;\n return;\n }\n timer = setTimeout(() => {\n delayed.value = false;\n }, delay);\n };\n onMounted(() => {\n wait(props.delay);\n watch(() => props.delay, wait);\n });\n onBeforeUnmount(() => clearTimeout(timer));\n return () => {\n const status = context.status.value;\n if (delayed.value || status === \"loaded\") {\n return null;\n }\n return renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n { status },\n { \"data-primitives-part\": \"avatar-fallback\" },\n );\n };\n },\n }),\n );\n","import {\n type ImageLoadingStatus,\n watchImageStatus,\n} from \"@fragiola/primitives/image\";\nimport {\n defineComponent,\n getCurrentInstance,\n onBeforeUnmount,\n onMounted,\n type PropType,\n watch,\n} 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 { AvatarKey, type AvatarState } from \"./avatar-context.ts\";\n\nexport interface AvatarImageProps {\n src?: string;\n srcSet?: string;\n sizes?: string;\n crossOrigin?: \"anonymous\" | \"use-credentials\" | \"\";\n referrerPolicy?: string;\n}\n\nexport type AvatarImageEmits = {\n /** Each new status but `idle`. */\n loadingStatusChange: (status: ImageLoadingStatus) => true;\n};\n\n/**\n * The image, rendered only once it has loaded (spec/avatar.md): it loads outside the document\n * first, within the mount (`onMounted`: a cached image is `loaded` before the browser paints).\n */\nexport const AvatarImage: PartComponent<\n AvatarImageProps,\n AvatarState,\n AvatarImageEmits\n> = publicComponent(\n defineComponent({\n name: \"AvatarImage\",\n inheritAttrs: false,\n props: {\n ...asProp,\n src: { type: String, default: undefined },\n srcSet: { type: String, default: undefined },\n sizes: { type: String, default: undefined },\n crossOrigin: {\n type: String as PropType<\"anonymous\" | \"use-credentials\" | \"\">,\n default: undefined,\n },\n referrerPolicy: { type: String, default: undefined },\n },\n emits: {\n loadingStatusChange: (_status: ImageLoadingStatus) => true,\n },\n setup(props, { attrs, slots, emit }) {\n const context = useRequiredContext(AvatarKey, \"Avatar.Image\");\n const instance = getCurrentInstance();\n let stop: (() => void) | null = null;\n const load = () => {\n stop?.();\n stop = null;\n // the Root's element, else this part's own placeholder: both are in the document\n const anchor =\n context.root.value ??\n (instance?.proxy?.$el as Element | null | undefined) ??\n null;\n if (anchor === null) {\n return;\n }\n stop = watchImageStatus(\n anchor,\n props.src,\n {\n srcSet: props.srcSet,\n sizes: props.sizes,\n crossOrigin: props.crossOrigin,\n referrerPolicy: props.referrerPolicy,\n },\n (status) => {\n context.status.value = status;\n emit(\"loadingStatusChange\", status);\n },\n );\n };\n // within the mount, before the browser paints: a cached image reports `loaded` at\n // once, and the Fallback is never painted\n onMounted(() => {\n load();\n watch(\n () =>\n [\n props.src,\n props.srcSet,\n props.sizes,\n props.crossOrigin,\n props.referrerPolicy,\n ] as const,\n () => {\n context.status.value = \"idle\";\n load();\n },\n );\n });\n onBeforeUnmount(() => {\n stop?.();\n stop = null;\n context.status.value = \"idle\";\n });\n return () => {\n const status = context.status.value;\n if (status !== \"loaded\") {\n return null;\n }\n return renderPart(\n \"img\",\n { attrs, slots },\n props.as,\n { status },\n {\n src: props.src,\n srcset: props.srcSet,\n sizes: props.sizes,\n crossorigin: props.crossOrigin,\n referrerpolicy: props.referrerPolicy,\n \"data-primitives-part\": \"avatar-image\",\n },\n );\n };\n },\n }),\n);\n","import type { ImageLoadingStatus } from \"@fragiola/primitives/image\";\nimport { defineComponent, provide, ref, shallowRef } from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { AvatarKey, type AvatarState } from \"./avatar-context.ts\";\n\n/** Holds the image's loading status (spec/avatar.md); no status attribute of its own (Base UI). */\nexport const AvatarRoot: PartComponent<\n Record<never, never>,\n AvatarState\n> = publicComponent(\n defineComponent({\n name: \"AvatarRoot\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const status = ref<ImageLoadingStatus>(\"idle\");\n const root = shallowRef<HTMLElement | null>(null);\n const setRoot = elementSetter(root);\n provide(AvatarKey, { status, root });\n return () =>\n renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n { status: status.value },\n { \"data-primitives-part\": \"avatar-root\", ref: setRoot },\n );\n },\n }),\n);\n","import { AvatarFallback } from \"./avatar-fallback.ts\";\nimport { AvatarImage } from \"./avatar-image.ts\";\nimport { AvatarRoot } from \"./avatar-root.ts\";\n\n/** spec/avatar.md */\nexport const Avatar = {\n Root: AvatarRoot,\n Image: AvatarImage,\n Fallback: AvatarFallback,\n};\n"],"mappings":";;;;;;;AAcA,MAAa,YAAyC,OAAO,QAAQ;;;ACCrE,MAAa,iBACT,gBACI,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;;EAEH,OAAO;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;CAC9C;CACA,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,mBACZ,WACA,iBACJ;EACA,MAAM,UAAU,IAAI,MAAM,UAAU,KAAA,CAAS;EAC7C,IAAI;EACJ,MAAM,QAAQ,UAA8B;GACxC,aAAa,KAAK;GAClB,IAAI,UAAU,KAAA,GAAW;IACrB,QAAQ,QAAQ;IAChB;GACJ;GACA,QAAQ,iBAAiB;IACrB,QAAQ,QAAQ;GACpB,GAAG,KAAK;EACZ;EACA,gBAAgB;GACZ,KAAK,MAAM,KAAK;GAChB,YAAY,MAAM,OAAO,IAAI;EACjC,CAAC;EACD,sBAAsB,aAAa,KAAK,CAAC;EACzC,aAAa;GACT,MAAM,SAAS,QAAQ,OAAO;GAC9B,IAAI,QAAQ,SAAS,WAAW,UAC5B,OAAO;GAEX,OAAO,WACH,QACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,EAAE,OAAO,GACT,EAAE,wBAAwB,kBAAkB,CAChD;EACJ;CACJ;AACJ,CAAC,CACL;;;;;;ACzBJ,MAAa,cAIT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,KAAK;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;EACxC,QAAQ;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;EAC3C,OAAO;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;EAC1C,aAAa;GACT,MAAM;GACN,SAAS,KAAA;EACb;EACA,gBAAgB;GAAE,MAAM;GAAQ,SAAS,KAAA;EAAU;CACvD;CACA,OAAO,EACH,sBAAsB,YAAgC,KAC1D;CACA,MAAM,OAAO,EAAE,OAAO,OAAO,QAAQ;EACjC,MAAM,UAAU,mBAAmB,WAAW,cAAc;EAC5D,MAAM,WAAW,mBAAmB;EACpC,IAAI,OAA4B;EAChC,MAAM,aAAa;GACf,OAAO;GACP,OAAO;GAEP,MAAM,SACF,QAAQ,KAAK,SACZ,UAAU,OAAO,OAClB;GACJ,IAAI,WAAW,MACX;GAEJ,OAAO,iBACH,QACA,MAAM,KACN;IACI,QAAQ,MAAM;IACd,OAAO,MAAM;IACb,aAAa,MAAM;IACnB,gBAAgB,MAAM;GAC1B,IACC,WAAW;IACR,QAAQ,OAAO,QAAQ;IACvB,KAAK,uBAAuB,MAAM;GACtC,CACJ;EACJ;EAGA,gBAAgB;GACZ,KAAK;GACL,YAEQ;IACI,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;GACV,SACE;IACF,QAAQ,OAAO,QAAQ;IACvB,KAAK;GACT,CACJ;EACJ,CAAC;EACD,sBAAsB;GAClB,OAAO;GACP,OAAO;GACP,QAAQ,OAAO,QAAQ;EAC3B,CAAC;EACD,aAAa;GACT,MAAM,SAAS,QAAQ,OAAO;GAC9B,IAAI,WAAW,UACX,OAAO;GAEX,OAAO,WACH,OACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,EAAE,OAAO,GACT;IACI,KAAK,MAAM;IACX,QAAQ,MAAM;IACd,OAAO,MAAM;IACb,aAAa,MAAM;IACnB,gBAAgB,MAAM;IACtB,wBAAwB;GAC5B,CACJ;EACJ;CACJ;AACJ,CAAC,CACL;;;AElIA,MAAa,SAAS;CAClB,MDQA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;EACP,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,MAAM,SAAS,IAAwB,MAAM;GAC7C,MAAM,OAAO,WAA+B,IAAI;GAChD,MAAM,UAAU,cAAc,IAAI;GAClC,QAAQ,WAAW;IAAE;IAAQ;GAAK,CAAC;GACnC,aACI,WACI,QACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,EAAE,QAAQ,OAAO,MAAM,GACvB;IAAE,wBAAwB;IAAe,KAAK;GAAQ,CAC1D;EACR;CACJ,CAAC,CC3BK;CACN,OAAO;CACP,UAAU;AACd"}
@@ -0,0 +1,3 @@
1
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
2
+ import { a as AvatarFallbackProps, i as AvatarImageProps, n as Avatar, o as AvatarState, r as AvatarImageEmits, t as ImageLoadingStatus } from "./index-Drp7svmT.js";
3
+ export { Avatar, type AvatarFallbackProps, type AvatarImageEmits, type AvatarImageProps, type AvatarState, type ImageLoadingStatus, type RenderSlotProps };
package/dist/avatar.js ADDED
@@ -0,0 +1 @@
1
+ export { t as Avatar } from "./avatar-DdDGa6x7.js";
@@ -0,0 +1,131 @@
1
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
2
+ import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
3
+ import { t as linkAttributes } from "./link-attributes-D9UusWws.js";
4
+ import { defineComponent } from "vue";
5
+ // src/components/breadcrumbs/breadcrumbs-current.ts
6
+ /** The current page when it is no link: `aria-current="page"` (spec/breadcrumbs.md). */
7
+ const BreadcrumbsCurrent = publicComponent(defineComponent({
8
+ name: "BreadcrumbsCurrent",
9
+ inheritAttrs: false,
10
+ props: asProp,
11
+ setup(props, { attrs, slots }) {
12
+ return () => renderPart("span", {
13
+ attrs,
14
+ slots
15
+ }, props.as, {}, {
16
+ "aria-current": "page",
17
+ "data-primitives-part": "breadcrumbs-current"
18
+ });
19
+ }
20
+ }));
21
+ // src/components/breadcrumbs/breadcrumbs-ellipsis.ts
22
+ /** The collapsed middle of the trail: a native button the app names and composes with a Menu's trigger (`:as="Menu.Trigger"`) (spec/breadcrumbs.md). */
23
+ const BreadcrumbsEllipsis = publicComponent(defineComponent({
24
+ name: "BreadcrumbsEllipsis",
25
+ inheritAttrs: false,
26
+ props: asProp,
27
+ setup(props, { attrs, slots }) {
28
+ return () => renderPart("button", {
29
+ attrs,
30
+ slots
31
+ }, props.as, {}, {
32
+ type: "button",
33
+ "data-primitives-part": "breadcrumbs-ellipsis"
34
+ });
35
+ }
36
+ }));
37
+ // src/components/breadcrumbs/breadcrumbs-item.ts
38
+ /** One step of the trail (spec/breadcrumbs.md). */
39
+ const BreadcrumbsItem = publicComponent(defineComponent({
40
+ name: "BreadcrumbsItem",
41
+ inheritAttrs: false,
42
+ props: asProp,
43
+ setup(props, { attrs, slots }) {
44
+ return () => renderPart("li", {
45
+ attrs,
46
+ slots
47
+ }, props.as, {}, { "data-primitives-part": "breadcrumbs-item" });
48
+ }
49
+ }));
50
+ // src/components/breadcrumbs/breadcrumbs-link.ts
51
+ /** A parent page of the trail (spec/breadcrumbs.md): Link's behaviour (spec/link.md). */
52
+ const BreadcrumbsLink = publicComponent(defineComponent({
53
+ name: "BreadcrumbsLink",
54
+ inheritAttrs: false,
55
+ props: {
56
+ ...asProp,
57
+ current: {
58
+ type: Boolean,
59
+ default: false
60
+ },
61
+ disabled: {
62
+ type: Boolean,
63
+ default: false
64
+ }
65
+ },
66
+ setup(props, { attrs, slots }) {
67
+ return () => {
68
+ const state = {
69
+ disabled: props.disabled,
70
+ current: props.current
71
+ };
72
+ return renderPart("a", {
73
+ attrs,
74
+ slots
75
+ }, props.as, state, {
76
+ ...linkAttributes(state),
77
+ "data-primitives-part": "breadcrumbs-link"
78
+ });
79
+ };
80
+ }
81
+ }));
82
+ // src/components/breadcrumbs/breadcrumbs-list.ts
83
+ /** The trail, an ordered list (spec/breadcrumbs.md). */
84
+ const BreadcrumbsList = publicComponent(defineComponent({
85
+ name: "BreadcrumbsList",
86
+ inheritAttrs: false,
87
+ props: asProp,
88
+ setup(props, { attrs, slots }) {
89
+ return () => renderPart("ol", {
90
+ attrs,
91
+ slots
92
+ }, props.as, {}, { "data-primitives-part": "breadcrumbs-list" });
93
+ }
94
+ }));
95
+ // src/components/breadcrumbs/parts.ts
96
+ /** spec/breadcrumbs.md */
97
+ const Breadcrumbs = {
98
+ Root: publicComponent(defineComponent({
99
+ name: "BreadcrumbsRoot",
100
+ inheritAttrs: false,
101
+ props: asProp,
102
+ setup(props, { attrs, slots }) {
103
+ return () => renderPart("nav", {
104
+ attrs,
105
+ slots
106
+ }, props.as, {}, { "data-primitives-part": "breadcrumbs-root" });
107
+ }
108
+ })),
109
+ List: BreadcrumbsList,
110
+ Item: BreadcrumbsItem,
111
+ Link: BreadcrumbsLink,
112
+ Current: BreadcrumbsCurrent,
113
+ Separator: publicComponent(defineComponent({
114
+ name: "BreadcrumbsSeparator",
115
+ inheritAttrs: false,
116
+ props: asProp,
117
+ setup(props, { attrs, slots }) {
118
+ return () => renderPart("li", {
119
+ attrs,
120
+ slots
121
+ }, props.as, {}, {
122
+ "aria-hidden": "true",
123
+ "data-primitives-part": "breadcrumbs-separator"
124
+ });
125
+ }
126
+ })),
127
+ Ellipsis: BreadcrumbsEllipsis
128
+ };
129
+ export { Breadcrumbs as t };
130
+
131
+ //# sourceMappingURL=breadcrumbs-BFAjlnC_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumbs-BFAjlnC_.js","names":[],"sources":["../src/components/breadcrumbs/breadcrumbs-current.ts","../src/components/breadcrumbs/breadcrumbs-ellipsis.ts","../src/components/breadcrumbs/breadcrumbs-item.ts","../src/components/breadcrumbs/breadcrumbs-link.ts","../src/components/breadcrumbs/breadcrumbs-list.ts","../src/components/breadcrumbs/breadcrumbs-root.ts","../src/components/breadcrumbs/breadcrumbs-separator.ts","../src/components/breadcrumbs/parts.ts"],"sourcesContent":["import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** The current page when it is no link: `aria-current=\"page\"` (spec/breadcrumbs.md). */\nexport const BreadcrumbsCurrent: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsCurrent\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n {},\n {\n \"aria-current\": \"page\",\n \"data-primitives-part\": \"breadcrumbs-current\",\n },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** The collapsed middle of the trail: a native button the app names and composes with a Menu's trigger (`:as=\"Menu.Trigger\"`) (spec/breadcrumbs.md). */\nexport const BreadcrumbsEllipsis: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsEllipsis\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"button\",\n { attrs, slots },\n props.as,\n {},\n {\n type: \"button\",\n \"data-primitives-part\": \"breadcrumbs-ellipsis\",\n },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** One step of the trail (spec/breadcrumbs.md). */\nexport const BreadcrumbsItem: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsItem\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"li\",\n { attrs, slots },\n props.as,\n {},\n {\n \"data-primitives-part\": \"breadcrumbs-item\",\n },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport { linkAttributes } from \"../../utils/link-attributes.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\nexport interface BreadcrumbsLinkState {\n disabled: boolean;\n current: boolean;\n}\n\nexport interface BreadcrumbsLinkProps {\n /** It links to the current page: `aria-current=\"page\"`. */\n current?: boolean;\n /** The link is unavailable, as Link's (spec/link.md). */\n disabled?: boolean;\n}\n\n/** A parent page of the trail (spec/breadcrumbs.md): Link's behaviour (spec/link.md). */\nexport const BreadcrumbsLink: PartComponent<\n BreadcrumbsLinkProps,\n BreadcrumbsLinkState\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsLink\",\n inheritAttrs: false,\n props: {\n ...asProp,\n current: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const state = {\n disabled: props.disabled,\n current: props.current,\n };\n return renderPart(\"a\", { attrs, slots }, props.as, state, {\n ...linkAttributes(state),\n \"data-primitives-part\": \"breadcrumbs-link\",\n });\n };\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** The trail, an ordered list (spec/breadcrumbs.md). */\nexport const BreadcrumbsList: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsList\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"ol\",\n { attrs, slots },\n props.as,\n {},\n {\n \"data-primitives-part\": \"breadcrumbs-list\",\n },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** The `nav` landmark of the trail; the app names it (`aria-label`) (spec/breadcrumbs.md). */\nexport const BreadcrumbsRoot: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsRoot\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"nav\",\n { attrs, slots },\n props.as,\n {},\n {\n \"data-primitives-part\": \"breadcrumbs-root\",\n },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** Between two Items: a list item hidden from assistive technology, its children the app's (spec/breadcrumbs.md). */\nexport const BreadcrumbsSeparator: PartComponent<\n Record<never, never>,\n Record<string, never>\n> = publicComponent(\n defineComponent({\n name: \"BreadcrumbsSeparator\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"li\",\n { attrs, slots },\n props.as,\n {},\n {\n \"aria-hidden\": \"true\",\n \"data-primitives-part\": \"breadcrumbs-separator\",\n },\n );\n },\n }),\n);\n","import { BreadcrumbsCurrent } from \"./breadcrumbs-current.ts\";\nimport { BreadcrumbsEllipsis } from \"./breadcrumbs-ellipsis.ts\";\nimport { BreadcrumbsItem } from \"./breadcrumbs-item.ts\";\nimport { BreadcrumbsLink } from \"./breadcrumbs-link.ts\";\nimport { BreadcrumbsList } from \"./breadcrumbs-list.ts\";\nimport { BreadcrumbsRoot } from \"./breadcrumbs-root.ts\";\nimport { BreadcrumbsSeparator } from \"./breadcrumbs-separator.ts\";\n\n/** spec/breadcrumbs.md */\nexport const Breadcrumbs = {\n Root: BreadcrumbsRoot,\n List: BreadcrumbsList,\n Item: BreadcrumbsItem,\n Link: BreadcrumbsLink,\n Current: BreadcrumbsCurrent,\n Separator: BreadcrumbsSeparator,\n Ellipsis: BreadcrumbsEllipsis,\n};\n"],"mappings":";;;;;;AAQA,MAAa,qBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aACI,WACI,QACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD;GACI,gBAAgB;GAChB,wBAAwB;EAC5B,CACJ;CACR;AACJ,CAAC,CACL;;;ACtBA,MAAa,sBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aACI,WACI,UACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD;GACI,MAAM;GACN,wBAAwB;EAC5B,CACJ;CACR;AACJ,CAAC,CACL;;;ACtBA,MAAa,kBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aACI,WACI,MACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD,EACI,wBAAwB,mBAC5B,CACJ;CACR;AACJ,CAAC,CACL;;;ACRA,MAAa,kBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,SAAS;GAAE,MAAM;GAAS,SAAS;EAAM;EACzC,UAAU;GAAE,MAAM;GAAS,SAAS;EAAM;CAC9C;CACA,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aAAa;GACT,MAAM,QAAQ;IACV,UAAU,MAAM;IAChB,SAAS,MAAM;GACnB;GACA,OAAO,WAAW,KAAK;IAAE;IAAO;GAAM,GAAG,MAAM,IAAI,OAAO;IACtD,GAAG,eAAe,KAAK;IACvB,wBAAwB;GAC5B,CAAC;EACL;CACJ;AACJ,CAAC,CACL;;;ACtCA,MAAa,kBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aACI,WACI,MACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD,EACI,wBAAwB,mBAC5B,CACJ;CACR;AACJ,CAAC,CACL;;;AGpBA,MAAa,cAAc;CACvB,MFCA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;EACP,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,aACI,WACI,OACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,CAAC,GACD,EACI,wBAAwB,mBAC5B,CACJ;EACR;CACJ,CAAC,CElBK;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,SAAS;CACT,WDJA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;EACP,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,aACI,WACI,MACA;IAAE;IAAO;GAAM,GACf,MAAM,IACN,CAAC,GACD;IACI,eAAe;IACf,wBAAwB;GAC5B,CACJ;EACR;CACJ,CAAC,CCdU;CACX,UAAU;AACd"}
@@ -0,0 +1,3 @@
1
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
2
+ import { n as BreadcrumbsLinkProps, r as BreadcrumbsLinkState, t as Breadcrumbs } from "./index-UxsyZS_A.js";
3
+ export { Breadcrumbs, type BreadcrumbsLinkProps, type BreadcrumbsLinkState, type RenderSlotProps };
@@ -0,0 +1 @@
1
+ export { t as Breadcrumbs } from "./breadcrumbs-BFAjlnC_.js";
@@ -0,0 +1,56 @@
1
+ import { t as buttonAttributes } from "./button-attributes-Ue6sUse5.js";
2
+ import { t as publicComponent } from "./public-component-AV8E7mGp.js";
3
+ import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
4
+ import { t as stateAttributes } from "./state-attributes-DhboDeMS.js";
5
+ import { defineComponent } from "vue";
6
+ // src/components/button/button.ts
7
+ /**
8
+ * An element that performs an action (spec/button.md, the APG button): a native `<button>`, or
9
+ * the consumer's element with the keys a native button has. While disabled, no press, pointer
10
+ * down or key but Tab reaches the consumer's listeners.
11
+ */
12
+ const Button = publicComponent(defineComponent({
13
+ name: "ButtonRoot",
14
+ inheritAttrs: false,
15
+ props: {
16
+ ...asProp,
17
+ disabled: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ focusableWhenDisabled: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ nativeButton: {
26
+ type: Boolean,
27
+ default: true
28
+ },
29
+ type: {
30
+ type: String,
31
+ default: void 0
32
+ }
33
+ },
34
+ setup(props, { attrs, slots }) {
35
+ return () => {
36
+ const disabled = props.disabled;
37
+ const { rest, internal } = buttonAttributes({
38
+ disabled,
39
+ focusableWhenDisabled: props.focusableWhenDisabled,
40
+ nativeButton: props.nativeButton,
41
+ type: props.type
42
+ }, attrs);
43
+ return renderPart("button", {
44
+ attrs: rest,
45
+ slots
46
+ }, props.as, { disabled }, {
47
+ ...internal,
48
+ "data-primitives-part": "button-root",
49
+ ...stateAttributes({ disabled })
50
+ });
51
+ };
52
+ }
53
+ }));
54
+ export { Button as t };
55
+
56
+ //# sourceMappingURL=button-DVUcUCXc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-DVUcUCXc.js","names":[],"sources":["../src/components/button/button.ts"],"sourcesContent":["import { defineComponent, type PropType } from \"vue\";\nimport { buttonAttributes } from \"../../utils/button-attributes.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\";\n\nexport interface ButtonState {\n disabled: boolean;\n}\n\nexport interface ButtonProps {\n /** The button ignores presses and keys. */\n disabled?: boolean;\n /** A disabled button stays in the tab order and focusable (Base UI). */\n focusableWhenDisabled?: boolean;\n /**\n * Whether the rendered element is a native `<button>` (default `true`). `false` when `as` or\n * the `render` slot gives another element: the Button adds `role=\"button\"`, the tab order and\n * the keys.\n */\n nativeButton?: boolean;\n /** Forwarded; a native Button is `type=\"button\"` unless given. */\n type?: \"button\" | \"submit\" | \"reset\";\n}\n\n/**\n * An element that performs an action (spec/button.md, the APG button): a native `<button>`, or\n * the consumer's element with the keys a native button has. While disabled, no press, pointer\n * down or key but Tab reaches the consumer's listeners.\n */\nexport const Button: PartComponent<ButtonProps, ButtonState> = publicComponent(\n defineComponent({\n name: \"ButtonRoot\",\n inheritAttrs: false,\n props: {\n ...asProp,\n disabled: { type: Boolean, default: false },\n focusableWhenDisabled: { type: Boolean, default: false },\n nativeButton: { type: Boolean, default: true },\n type: {\n type: String as PropType<\"button\" | \"submit\" | \"reset\">,\n default: undefined,\n },\n },\n setup(props, { attrs, slots }) {\n return () => {\n const disabled = props.disabled;\n const { rest, internal } = buttonAttributes(\n {\n disabled,\n focusableWhenDisabled: props.focusableWhenDisabled,\n nativeButton: props.nativeButton,\n type: props.type,\n },\n attrs,\n );\n return renderPart(\n \"button\",\n { attrs: rest, slots },\n props.as,\n { disabled },\n {\n ...internal,\n \"data-primitives-part\": \"button-root\",\n ...stateAttributes({ disabled }),\n },\n );\n };\n },\n }),\n);\n"],"mappings":";;;;;;;;;;;AAiCA,MAAa,SAAkD,gBAC3D,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,GAAG;EACH,UAAU;GAAE,MAAM;GAAS,SAAS;EAAM;EAC1C,uBAAuB;GAAE,MAAM;GAAS,SAAS;EAAM;EACvD,cAAc;GAAE,MAAM;GAAS,SAAS;EAAK;EAC7C,MAAM;GACF,MAAM;GACN,SAAS,KAAA;EACb;CACJ;CACA,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,aAAa;GACT,MAAM,WAAW,MAAM;GACvB,MAAM,EAAE,MAAM,aAAa,iBACvB;IACI;IACA,uBAAuB,MAAM;IAC7B,cAAc,MAAM;IACpB,MAAM,MAAM;GAChB,GACA,KACJ;GACA,OAAO,WACH,UACA;IAAE,OAAO;IAAM;GAAM,GACrB,MAAM,IACN,EAAE,SAAS,GACX;IACI,GAAG;IACH,wBAAwB;IACxB,GAAG,gBAAgB,EAAE,SAAS,CAAC;GACnC,CACJ;EACJ;CACJ;AACJ,CAAC,CACL"}
@@ -0,0 +1,83 @@
1
+ // src/utils/button-attributes.ts
2
+ /** The keys a roving composite acts on (spec/toolbar.md, "Keyboard"). */
3
+ const COMPOSITE_KEYS = [
4
+ "ArrowUp",
5
+ "ArrowDown",
6
+ "ArrowLeft",
7
+ "ArrowRight",
8
+ "Home",
9
+ "End"
10
+ ];
11
+ /** Runs a listener attribute: a function, or the array Vue merges several into. */
12
+ function run(listener, event) {
13
+ if (typeof listener === "function") listener(event);
14
+ else if (Array.isArray(listener)) for (const entry of listener) run(entry, event);
15
+ }
16
+ /**
17
+ * A button's attributes and listeners (spec/button.md), shared by Button, Toggle and
18
+ * Toolbar.Button (the package's own code, not the `/button` entry): a native `<button>`, or the
19
+ * consumer's element with the keys a native button has. The consumer's click, pointer and key
20
+ * listeners (and its `tabindex`) are taken out of `attrs` and run by the button itself, so that
21
+ * none runs while it is disabled; no key but Tab (and a composite's keys) passes then.
22
+ */
23
+ function buttonAttributes(behaviour, attrs) {
24
+ const { onClick, onMousedown, onPointerdown, onKeydown, onKeyup, tabindex, tabIndex, ...rest } = attrs;
25
+ const { disabled, focusableWhenDisabled, nativeButton, type, composite = false, onPress } = behaviour;
26
+ const focusable = !disabled || focusableWhenDisabled;
27
+ const ownTabIndex = behaviour.tabIndex ?? tabindex ?? tabIndex;
28
+ return {
29
+ rest,
30
+ internal: {
31
+ ...nativeButton ? {
32
+ type: type ?? "button",
33
+ disabled: disabled && !focusableWhenDisabled ? true : void 0,
34
+ "aria-disabled": disabled && focusableWhenDisabled ? "true" : void 0,
35
+ tabindex: ownTabIndex
36
+ } : {
37
+ type,
38
+ role: "button",
39
+ "aria-disabled": disabled ? "true" : void 0,
40
+ tabindex: focusable ? ownTabIndex ?? 0 : -1
41
+ },
42
+ onClick: (event) => {
43
+ if (disabled) {
44
+ event.preventDefault();
45
+ return;
46
+ }
47
+ onPress?.(event);
48
+ run(onClick, event);
49
+ },
50
+ onMousedown: (event) => {
51
+ if (!disabled) run(onMousedown, event);
52
+ },
53
+ onPointerdown: (event) => {
54
+ if (disabled) {
55
+ event.preventDefault();
56
+ return;
57
+ }
58
+ run(onPointerdown, event);
59
+ },
60
+ onKeydown: (event) => {
61
+ if (disabled) {
62
+ if (event.key !== "Tab" && !(composite && COMPOSITE_KEYS.includes(event.key))) event.preventDefault();
63
+ return;
64
+ }
65
+ run(onKeydown, event);
66
+ if (nativeButton || event.defaultPrevented || event.target !== event.currentTarget) return;
67
+ if (event.key === " ") event.preventDefault();
68
+ else if (event.key === "Enter") {
69
+ event.preventDefault();
70
+ event.currentTarget.click();
71
+ }
72
+ },
73
+ onKeyup: (event) => {
74
+ if (disabled) return;
75
+ run(onKeyup, event);
76
+ if (!nativeButton && !event.defaultPrevented && event.target === event.currentTarget && event.key === " ") event.currentTarget.click();
77
+ }
78
+ }
79
+ };
80
+ }
81
+ export { buttonAttributes as t };
82
+
83
+ //# sourceMappingURL=button-attributes-Ue6sUse5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-attributes-Ue6sUse5.js","names":[],"sources":["../src/utils/button-attributes.ts"],"sourcesContent":["/** The keys a roving composite acts on (spec/toolbar.md, \"Keyboard\"). */\nconst COMPOSITE_KEYS = [\n \"ArrowUp\",\n \"ArrowDown\",\n \"ArrowLeft\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n];\n\nexport interface ButtonBehaviour {\n disabled: boolean;\n focusableWhenDisabled: boolean;\n nativeButton: boolean;\n type: \"button\" | \"submit\" | \"reset\" | undefined;\n /** A roving composite's `tabindex` (a toolbar's item); the consumer's otherwise. */\n tabIndex?: number | undefined;\n /**\n * An item of a roving composite (a toolbar's button): while disabled and focusable, the\n * composite's keys still reach the composite (spec/toolbar.md, \"Disabled items\").\n */\n composite?: boolean;\n /** Runs on a click before the consumer's listeners, never while disabled (a Toggle's press). */\n onPress?: (event: MouseEvent) => void;\n}\n\n/** Runs a listener attribute: a function, or the array Vue merges several into. */\nfunction run(listener: unknown, event: Event) {\n if (typeof listener === \"function\") {\n listener(event);\n } else if (Array.isArray(listener)) {\n for (const entry of listener) {\n run(entry, event);\n }\n }\n}\n\n/**\n * A button's attributes and listeners (spec/button.md), shared by Button, Toggle and\n * Toolbar.Button (the package's own code, not the `/button` entry): a native `<button>`, or the\n * consumer's element with the keys a native button has. The consumer's click, pointer and key\n * listeners (and its `tabindex`) are taken out of `attrs` and run by the button itself, so that\n * none runs while it is disabled; no key but Tab (and a composite's keys) passes then.\n */\nexport function buttonAttributes(\n behaviour: ButtonBehaviour,\n attrs: Record<string, unknown>,\n): {\n /** The consumer's other attributes, merged on the element as usual. */\n rest: Record<string, unknown>;\n /** The button's attributes and listeners. */\n internal: Record<string, unknown>;\n} {\n const {\n onClick,\n onMousedown,\n onPointerdown,\n onKeydown,\n onKeyup,\n tabindex,\n tabIndex,\n ...rest\n } = attrs;\n const {\n disabled,\n focusableWhenDisabled,\n nativeButton,\n type,\n composite = false,\n onPress,\n } = behaviour;\n const focusable = !disabled || focusableWhenDisabled;\n const ownTabIndex = behaviour.tabIndex ?? tabindex ?? tabIndex;\n const native = nativeButton\n ? {\n type: type ?? \"button\",\n disabled: disabled && !focusableWhenDisabled ? true : undefined,\n \"aria-disabled\":\n disabled && focusableWhenDisabled ? \"true\" : undefined,\n tabindex: ownTabIndex,\n }\n : {\n type,\n role: \"button\",\n \"aria-disabled\": disabled ? \"true\" : undefined,\n tabindex: focusable ? (ownTabIndex ?? 0) : -1,\n };\n return {\n rest,\n internal: {\n ...native,\n onClick: (event: MouseEvent) => {\n // a focusable disabled submit button does not submit\n if (disabled) {\n event.preventDefault();\n return;\n }\n onPress?.(event);\n run(onClick, event);\n },\n onMousedown: (event: MouseEvent) => {\n if (!disabled) {\n run(onMousedown, event);\n }\n },\n onPointerdown: (event: PointerEvent) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n run(onPointerdown, event);\n },\n onKeydown: (event: KeyboardEvent) => {\n if (disabled) {\n if (\n event.key !== \"Tab\" &&\n !(composite && COMPOSITE_KEYS.includes(event.key))\n ) {\n event.preventDefault();\n }\n return;\n }\n run(onKeydown, event);\n if (\n nativeButton ||\n event.defaultPrevented ||\n event.target !== event.currentTarget\n ) {\n return;\n }\n // a native button's keys: Enter clicks on key down; Space waits for its key up,\n // and its key down does not scroll the page\n if (event.key === \" \") {\n event.preventDefault();\n } else if (event.key === \"Enter\") {\n event.preventDefault();\n (event.currentTarget as HTMLElement).click();\n }\n },\n onKeyup: (event: KeyboardEvent) => {\n if (disabled) {\n return;\n }\n run(onKeyup, event);\n if (\n !nativeButton &&\n !event.defaultPrevented &&\n event.target === event.currentTarget &&\n event.key === \" \"\n ) {\n (event.currentTarget as HTMLElement).click();\n }\n },\n },\n };\n}\n"],"mappings":";;AACA,MAAM,iBAAiB;CACnB;CACA;CACA;CACA;CACA;CACA;AACJ;;AAmBA,SAAS,IAAI,UAAmB,OAAc;CAC1C,IAAI,OAAO,aAAa,YACpB,SAAS,KAAK;MACX,IAAI,MAAM,QAAQ,QAAQ,GAC7B,KAAK,MAAM,SAAS,UAChB,IAAI,OAAO,KAAK;AAG5B;;;;;;;;AASA,SAAgB,iBACZ,WACA,OAMF;CACE,MAAM,EACF,SACA,aACA,eACA,WACA,SACA,UACA,UACA,GAAG,SACH;CACJ,MAAM,EACF,UACA,uBACA,cACA,MACA,YAAY,OACZ,YACA;CACJ,MAAM,YAAY,CAAC,YAAY;CAC/B,MAAM,cAAc,UAAU,YAAY,YAAY;CAetD,OAAO;EACH;EACA,UAAU;GACN,GAjBO,eACT;IACI,MAAM,QAAQ;IACd,UAAU,YAAY,CAAC,wBAAwB,OAAO,KAAA;IACtD,iBACI,YAAY,wBAAwB,SAAS,KAAA;IACjD,UAAU;GACd,IACA;IACI;IACA,MAAM;IACN,iBAAiB,WAAW,SAAS,KAAA;IACrC,UAAU,YAAa,eAAe,IAAK;GAC/C;GAKE,UAAU,UAAsB;IAE5B,IAAI,UAAU;KACV,MAAM,eAAe;KACrB;IACJ;IACA,UAAU,KAAK;IACf,IAAI,SAAS,KAAK;GACtB;GACA,cAAc,UAAsB;IAChC,IAAI,CAAC,UACD,IAAI,aAAa,KAAK;GAE9B;GACA,gBAAgB,UAAwB;IACpC,IAAI,UAAU;KACV,MAAM,eAAe;KACrB;IACJ;IACA,IAAI,eAAe,KAAK;GAC5B;GACA,YAAY,UAAyB;IACjC,IAAI,UAAU;KACV,IACI,MAAM,QAAQ,SACd,EAAE,aAAa,eAAe,SAAS,MAAM,GAAG,IAEhD,MAAM,eAAe;KAEzB;IACJ;IACA,IAAI,WAAW,KAAK;IACpB,IACI,gBACA,MAAM,oBACN,MAAM,WAAW,MAAM,eAEvB;IAIJ,IAAI,MAAM,QAAQ,KACd,MAAM,eAAe;SAClB,IAAI,MAAM,QAAQ,SAAS;KAC9B,MAAM,eAAe;KACpB,MAAM,cAA8B,MAAM;IAC/C;GACJ;GACA,UAAU,UAAyB;IAC/B,IAAI,UACA;IAEJ,IAAI,SAAS,KAAK;IAClB,IACI,CAAC,gBACD,CAAC,MAAM,oBACP,MAAM,WAAW,MAAM,iBACvB,MAAM,QAAQ,KAEb,MAAM,cAA8B,MAAM;GAEnD;EACJ;CACJ;AACJ"}
@@ -0,0 +1,3 @@
1
+ import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
2
+ import { n as ButtonProps, r as ButtonState, t as Button } from "./index-D5PbKxcs.js";
3
+ export { Button, type ButtonProps, type ButtonState, type RenderSlotProps };
package/dist/button.js ADDED
@@ -0,0 +1 @@
1
+ export { t as Button } from "./button-DVUcUCXc.js";