@televet/kibble-ui 4.0.0-beta.8 → 4.0.0-beta.80

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 (1268) hide show
  1. package/README.md +40 -0
  2. package/dist/chunks/IconLogo-C4aZqkn1.js +2 -0
  3. package/dist/chunks/IconLogo-C4aZqkn1.js.map +1 -0
  4. package/dist/chunks/IconLogo-D8EHZ4Is.js +62 -0
  5. package/dist/chunks/IconLogo-D8EHZ4Is.js.map +1 -0
  6. package/dist/chunks/alert.types-Bxrz2UAB.js +219 -0
  7. package/dist/chunks/alert.types-Bxrz2UAB.js.map +1 -0
  8. package/dist/chunks/alert.types-Dl6ivTll.js +2 -0
  9. package/dist/chunks/alert.types-Dl6ivTll.js.map +1 -0
  10. package/dist/chunks/attr-BMs6szZx.js +2 -0
  11. package/dist/chunks/attr-BMs6szZx.js.map +1 -0
  12. package/dist/chunks/attr-sm10PXOd.js +5 -0
  13. package/dist/chunks/attr-sm10PXOd.js.map +1 -0
  14. package/dist/chunks/avatar.component-BdkTgslj.js +2 -0
  15. package/dist/chunks/avatar.component-BdkTgslj.js.map +1 -0
  16. package/dist/chunks/avatar.component-DPu-22kf.js +420 -0
  17. package/dist/chunks/avatar.component-DPu-22kf.js.map +1 -0
  18. package/dist/chunks/avatarGroup.component-BW26RkqL.js +2 -0
  19. package/dist/chunks/avatarGroup.component-BW26RkqL.js.map +1 -0
  20. package/dist/chunks/avatarGroup.component-DHhW8fL3.js +70 -0
  21. package/dist/chunks/avatarGroup.component-DHhW8fL3.js.map +1 -0
  22. package/dist/chunks/box-Baq7UBls.js +2 -0
  23. package/dist/chunks/box-Baq7UBls.js.map +1 -0
  24. package/dist/chunks/box-Ck9I7FYv.js +7 -0
  25. package/dist/chunks/box-Ck9I7FYv.js.map +1 -0
  26. package/dist/chunks/button.component-BpF3MzbZ.js +67 -0
  27. package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -0
  28. package/dist/chunks/button.component-Dd9AfGox.js +2 -0
  29. package/dist/chunks/button.component-Dd9AfGox.js.map +1 -0
  30. package/dist/chunks/buttonGroup.component-B3nqpiRU.js +2 -0
  31. package/dist/chunks/buttonGroup.component-B3nqpiRU.js.map +1 -0
  32. package/dist/chunks/buttonGroup.component-Q7Ul0yrS.js +77 -0
  33. package/dist/chunks/buttonGroup.component-Q7Ul0yrS.js.map +1 -0
  34. package/dist/chunks/card.component-DNX41NGG.js +59 -0
  35. package/dist/chunks/card.component-DNX41NGG.js.map +1 -0
  36. package/dist/chunks/card.component-KNc4HKSh.js +2 -0
  37. package/dist/chunks/card.component-KNc4HKSh.js.map +1 -0
  38. package/dist/chunks/card.types-Cixp7ouC.js +5 -0
  39. package/dist/chunks/card.types-Cixp7ouC.js.map +1 -0
  40. package/dist/chunks/card.types-MvkQTTZF.js +2 -0
  41. package/dist/chunks/card.types-MvkQTTZF.js.map +1 -0
  42. package/dist/chunks/characterCounter.component-CNo6Xau3.js +110 -0
  43. package/dist/chunks/characterCounter.component-CNo6Xau3.js.map +1 -0
  44. package/dist/chunks/characterCounter.component-D1qCNVkb.js +2 -0
  45. package/dist/chunks/characterCounter.component-D1qCNVkb.js.map +1 -0
  46. package/dist/chunks/checkbox.component-CxnOW6Sj.js +2 -0
  47. package/dist/chunks/checkbox.component-CxnOW6Sj.js.map +1 -0
  48. package/dist/chunks/checkbox.component-GElI75y2.js +310 -0
  49. package/dist/chunks/checkbox.component-GElI75y2.js.map +1 -0
  50. package/dist/chunks/checkbox.records-4j704fMI.js +266 -0
  51. package/dist/chunks/checkbox.records-4j704fMI.js.map +1 -0
  52. package/dist/chunks/checkbox.records-DI3mqSNf.js +2 -0
  53. package/dist/chunks/checkbox.records-DI3mqSNf.js.map +1 -0
  54. package/dist/chunks/checkboxGroup.component-CvEAkFlp.js +52 -0
  55. package/dist/chunks/checkboxGroup.component-CvEAkFlp.js.map +1 -0
  56. package/dist/chunks/checkboxGroup.component-Dc39GJV4.js +2 -0
  57. package/dist/chunks/checkboxGroup.component-Dc39GJV4.js.map +1 -0
  58. package/dist/chunks/config-BFcXpdZo.js +2 -0
  59. package/dist/chunks/config-BFcXpdZo.js.map +1 -0
  60. package/dist/chunks/config-DlTdf-Yt.js +57 -0
  61. package/dist/chunks/config-DlTdf-Yt.js.map +1 -0
  62. package/dist/chunks/conversationCard.component-CHm8X5MK.js +2 -0
  63. package/dist/chunks/conversationCard.component-CHm8X5MK.js.map +1 -0
  64. package/dist/chunks/conversationCard.component-DnIpQo_a.js +385 -0
  65. package/dist/chunks/conversationCard.component-DnIpQo_a.js.map +1 -0
  66. package/dist/chunks/create-recipe-context-D7FewUR4.js +62 -0
  67. package/dist/chunks/create-recipe-context-D7FewUR4.js.map +1 -0
  68. package/dist/chunks/create-recipe-context-sESms8Eo.js +2 -0
  69. package/dist/chunks/create-recipe-context-sESms8Eo.js.map +1 -0
  70. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +97 -0
  71. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +1 -0
  72. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +2 -0
  73. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +1 -0
  74. package/dist/chunks/datePicker.component-52I2TBMS.js +15 -0
  75. package/dist/chunks/datePicker.component-52I2TBMS.js.map +1 -0
  76. package/dist/chunks/datePicker.component-BRCI3x7q.js +3164 -0
  77. package/dist/chunks/datePicker.component-BRCI3x7q.js.map +1 -0
  78. package/dist/chunks/dialog-trigger-MkOQUjzu.js +2 -0
  79. package/dist/chunks/dialog-trigger-MkOQUjzu.js.map +1 -0
  80. package/dist/chunks/dialog-trigger-eqGXDXGQ.js +78 -0
  81. package/dist/chunks/dialog-trigger-eqGXDXGQ.js.map +1 -0
  82. package/dist/chunks/divider.types-0j5qRXed.js +47 -0
  83. package/dist/chunks/divider.types-0j5qRXed.js.map +1 -0
  84. package/dist/chunks/divider.types-CK5oFy-i.js +2 -0
  85. package/dist/chunks/divider.types-CK5oFy-i.js.map +1 -0
  86. package/dist/chunks/empty-B5_AO6Pg.js +2 -0
  87. package/dist/chunks/empty-B5_AO6Pg.js.map +1 -0
  88. package/dist/chunks/empty-BU2EAux9.js +8 -0
  89. package/dist/chunks/empty-BU2EAux9.js.map +1 -0
  90. package/dist/chunks/factory-Ctbv0Ozn.js +500 -0
  91. package/dist/chunks/factory-Ctbv0Ozn.js.map +1 -0
  92. package/dist/chunks/factory-D6tdBUPG.js +3 -0
  93. package/dist/chunks/factory-D6tdBUPG.js.map +1 -0
  94. package/dist/chunks/flex-D14H6HbP.js +2 -0
  95. package/dist/chunks/flex-D14H6HbP.js.map +1 -0
  96. package/dist/chunks/flex-smlF8uQG.js +40 -0
  97. package/dist/chunks/flex-smlF8uQG.js.map +1 -0
  98. package/dist/chunks/float-DYLtz2A6.js +64 -0
  99. package/dist/chunks/float-DYLtz2A6.js.map +1 -0
  100. package/dist/chunks/float-OQXnYWBw.js +2 -0
  101. package/dist/chunks/float-OQXnYWBw.js.map +1 -0
  102. package/dist/chunks/format-BRt-TIiQ.js +2 -0
  103. package/dist/chunks/format-BRt-TIiQ.js.map +1 -0
  104. package/dist/chunks/format-DgHM6wFr.js +1275 -0
  105. package/dist/chunks/format-DgHM6wFr.js.map +1 -0
  106. package/dist/chunks/grid-item-BV4dwEBP.js +90 -0
  107. package/dist/chunks/grid-item-BV4dwEBP.js.map +1 -0
  108. package/dist/chunks/grid-item-CR-sXrjU.js +2 -0
  109. package/dist/chunks/grid-item-CR-sXrjU.js.map +1 -0
  110. package/dist/chunks/group-Cv7AQw1b.js +2 -0
  111. package/dist/chunks/group-Cv7AQw1b.js.map +1 -0
  112. package/dist/chunks/group-DPCVolOl.js +139 -0
  113. package/dist/chunks/group-DPCVolOl.js.map +1 -0
  114. package/dist/chunks/h-stack-Bjx9hlJo.js +2 -0
  115. package/dist/chunks/h-stack-Bjx9hlJo.js.map +1 -0
  116. package/dist/chunks/h-stack-Ce6JSBK2.js +12 -0
  117. package/dist/chunks/h-stack-Ce6JSBK2.js.map +1 -0
  118. package/dist/chunks/heading.component-C7W_ipcL.js +12 -0
  119. package/dist/chunks/heading.component-C7W_ipcL.js.map +1 -0
  120. package/dist/chunks/heading.component-dGH5sXSB.js +2 -0
  121. package/dist/chunks/heading.component-dGH5sXSB.js.map +1 -0
  122. package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
  123. package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
  124. package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
  125. package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
  126. package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
  127. package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
  128. package/dist/chunks/icon.component-DGNCL1Yc.js +42 -0
  129. package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
  130. package/dist/chunks/icons-BXxdrBrf.js +216 -0
  131. package/dist/chunks/icons-BXxdrBrf.js.map +1 -0
  132. package/dist/chunks/icons-CTpAjbC-.js +2 -0
  133. package/dist/chunks/icons-CTpAjbC-.js.map +1 -0
  134. package/dist/chunks/index-BR7peqZO.js +2 -0
  135. package/dist/chunks/index-BR7peqZO.js.map +1 -0
  136. package/dist/chunks/index-Bff1r_rH.js +389 -0
  137. package/dist/chunks/index-Bff1r_rH.js.map +1 -0
  138. package/dist/chunks/index-BknUKotT.js +38 -0
  139. package/dist/chunks/index-BknUKotT.js.map +1 -0
  140. package/dist/chunks/index-Bz8HDeWA.js +70 -0
  141. package/dist/chunks/index-Bz8HDeWA.js.map +1 -0
  142. package/dist/chunks/index-CHIISuTq.js +3 -0
  143. package/dist/chunks/index-CHIISuTq.js.map +1 -0
  144. package/dist/chunks/index-CJLttzPM.js +141 -0
  145. package/dist/chunks/index-CJLttzPM.js.map +1 -0
  146. package/dist/chunks/index-CS8X6LiC.js +2 -0
  147. package/dist/chunks/index-CS8X6LiC.js.map +1 -0
  148. package/dist/chunks/index-C_AXAeNS.js +290 -0
  149. package/dist/chunks/index-C_AXAeNS.js.map +1 -0
  150. package/dist/chunks/index-Cbkb_94C.js +1195 -0
  151. package/dist/chunks/index-Cbkb_94C.js.map +1 -0
  152. package/dist/chunks/index-CgivotaP.js +20 -0
  153. package/dist/chunks/index-CgivotaP.js.map +1 -0
  154. package/dist/chunks/index-CkYZf9Pm.js +2 -0
  155. package/dist/chunks/index-CkYZf9Pm.js.map +1 -0
  156. package/dist/chunks/index-CtXUprYH.js +2 -0
  157. package/dist/chunks/index-CtXUprYH.js.map +1 -0
  158. package/dist/chunks/index-DAWHN3cH.js +86 -0
  159. package/dist/chunks/index-DAWHN3cH.js.map +1 -0
  160. package/dist/chunks/index-DBk0LkcO.js +2 -0
  161. package/dist/chunks/index-DBk0LkcO.js.map +1 -0
  162. package/dist/chunks/index-DD49WSSW.js +2 -0
  163. package/dist/chunks/index-DD49WSSW.js.map +1 -0
  164. package/dist/chunks/index-DOXzraja.js +2 -0
  165. package/dist/chunks/index-DOXzraja.js.map +1 -0
  166. package/dist/chunks/index-DSedXH1s.js +2 -0
  167. package/dist/chunks/index-DSedXH1s.js.map +1 -0
  168. package/dist/chunks/index-DUY19L6M.js +6312 -0
  169. package/dist/chunks/index-DUY19L6M.js.map +1 -0
  170. package/dist/chunks/index-DVNjUEDJ.js +257 -0
  171. package/dist/chunks/index-DVNjUEDJ.js.map +1 -0
  172. package/dist/chunks/index-DbTEJc-K.js +2 -0
  173. package/dist/chunks/index-DbTEJc-K.js.map +1 -0
  174. package/dist/chunks/index-DowO8Ued.js +2 -0
  175. package/dist/chunks/index-DowO8Ued.js.map +1 -0
  176. package/dist/chunks/index-L197Dry5.js +375 -0
  177. package/dist/chunks/index-L197Dry5.js.map +1 -0
  178. package/dist/chunks/index-OpolRlgD.js +444 -0
  179. package/dist/chunks/index-OpolRlgD.js.map +1 -0
  180. package/dist/chunks/index-QTIBH1Or.js +2 -0
  181. package/dist/chunks/index-QTIBH1Or.js.map +1 -0
  182. package/dist/chunks/index-YtNA0Ueo.js +1328 -0
  183. package/dist/chunks/index-YtNA0Ueo.js.map +1 -0
  184. package/dist/chunks/index-cSjUS7Xj.js +1189 -0
  185. package/dist/chunks/index-cSjUS7Xj.js.map +1 -0
  186. package/dist/chunks/index-iaug4k6v.js +8 -0
  187. package/dist/chunks/index-iaug4k6v.js.map +1 -0
  188. package/dist/chunks/index-iyefwwxw.js +2 -0
  189. package/dist/chunks/index-iyefwwxw.js.map +1 -0
  190. package/dist/chunks/jsx-runtime-BjDatQAs.js +23 -0
  191. package/dist/chunks/jsx-runtime-BjDatQAs.js.map +1 -0
  192. package/dist/chunks/jsx-runtime-C5mzlN2N.js +285 -0
  193. package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +1 -0
  194. package/dist/chunks/link.component-CCFg-LIe.js +2 -0
  195. package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
  196. package/dist/chunks/link.component-DprieyUG.js +60 -0
  197. package/dist/chunks/link.component-DprieyUG.js.map +1 -0
  198. package/dist/chunks/list-C_LmDoyW.js +2 -0
  199. package/dist/chunks/list-C_LmDoyW.js.map +1 -0
  200. package/dist/chunks/list-DqH5ttQG.js +20 -0
  201. package/dist/chunks/list-DqH5ttQG.js.map +1 -0
  202. package/dist/chunks/logo.types-By8TqyNf.js +76 -0
  203. package/dist/chunks/logo.types-By8TqyNf.js.map +1 -0
  204. package/dist/chunks/logo.types-CA_5hGAi.js +2 -0
  205. package/dist/chunks/logo.types-CA_5hGAi.js.map +1 -0
  206. package/dist/chunks/menu.component-BGGElaYy.js +2 -0
  207. package/dist/chunks/menu.component-BGGElaYy.js.map +1 -0
  208. package/dist/chunks/menu.component-CFYFhp7-.js +678 -0
  209. package/dist/chunks/menu.component-CFYFhp7-.js.map +1 -0
  210. package/dist/chunks/modal.context-DSKLfsJK.js +12 -0
  211. package/dist/chunks/modal.context-DSKLfsJK.js.map +1 -0
  212. package/dist/chunks/modal.context-EJ67QNzq.js +2 -0
  213. package/dist/chunks/modal.context-EJ67QNzq.js.map +1 -0
  214. package/dist/chunks/modal.types-Bpoq1pcb.js +2 -0
  215. package/dist/chunks/modal.types-Bpoq1pcb.js.map +1 -0
  216. package/dist/chunks/modal.types-CUUJVRPN.js +206 -0
  217. package/dist/chunks/modal.types-CUUJVRPN.js.map +1 -0
  218. package/dist/chunks/notificationCounter.component-Bei8mHSZ.js +127 -0
  219. package/dist/chunks/notificationCounter.component-Bei8mHSZ.js.map +1 -0
  220. package/dist/chunks/notificationCounter.component-BhZcuBmr.js +2 -0
  221. package/dist/chunks/notificationCounter.component-BhZcuBmr.js.map +1 -0
  222. package/dist/chunks/notificationCounter.types-B_-siNfi.js +2 -0
  223. package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -0
  224. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +11 -0
  225. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +1 -0
  226. package/dist/chunks/omit-C-j4TrF5.js +10 -0
  227. package/dist/chunks/omit-C-j4TrF5.js.map +1 -0
  228. package/dist/chunks/omit-DqNeoZ8h.js +2 -0
  229. package/dist/chunks/omit-DqNeoZ8h.js.map +1 -0
  230. package/dist/chunks/picture.component-C2C2r_BU.js +2 -0
  231. package/dist/chunks/picture.component-C2C2r_BU.js.map +1 -0
  232. package/dist/chunks/picture.component-DKbaaL64.js +35 -0
  233. package/dist/chunks/picture.component-DKbaaL64.js.map +1 -0
  234. package/dist/chunks/pinInput.types-DX8ognpo.js +161 -0
  235. package/dist/chunks/pinInput.types-DX8ognpo.js.map +1 -0
  236. package/dist/chunks/pinInput.types-OnwTDVZV.js +2 -0
  237. package/dist/chunks/pinInput.types-OnwTDVZV.js.map +1 -0
  238. package/dist/chunks/popover-BSBYgvs4.js +2 -0
  239. package/dist/chunks/popover-BSBYgvs4.js.map +1 -0
  240. package/dist/chunks/popover-DNKVYG-J.js +110 -0
  241. package/dist/chunks/popover-DNKVYG-J.js.map +1 -0
  242. package/dist/chunks/popover-root-provider-BErev2-N.js +43 -0
  243. package/dist/chunks/popover-root-provider-BErev2-N.js.map +1 -0
  244. package/dist/chunks/popover-root-provider-C2iwUZJn.js +2 -0
  245. package/dist/chunks/popover-root-provider-C2iwUZJn.js.map +1 -0
  246. package/dist/chunks/popover.component-B1TLfpqD.js +2 -0
  247. package/dist/chunks/popover.component-B1TLfpqD.js.map +1 -0
  248. package/dist/chunks/popover.component-CDGsZ6d_.js +387 -0
  249. package/dist/chunks/popover.component-CDGsZ6d_.js.map +1 -0
  250. package/dist/chunks/provider-ClCAdPxy.js +47 -0
  251. package/dist/chunks/provider-ClCAdPxy.js.map +1 -0
  252. package/dist/chunks/provider-NDo8kOkE.js +2 -0
  253. package/dist/chunks/provider-NDo8kOkE.js.map +1 -0
  254. package/dist/chunks/radio.records-4ih1q8nO.js +382 -0
  255. package/dist/chunks/radio.records-4ih1q8nO.js.map +1 -0
  256. package/dist/chunks/radio.records-j0JOqaJ4.js +2 -0
  257. package/dist/chunks/radio.records-j0JOqaJ4.js.map +1 -0
  258. package/dist/chunks/radioGroup.component-C8_NKfl7.js +2 -0
  259. package/dist/chunks/radioGroup.component-C8_NKfl7.js.map +1 -0
  260. package/dist/chunks/radioGroup.component-yIs1Q3VP.js +275 -0
  261. package/dist/chunks/radioGroup.component-yIs1Q3VP.js.map +1 -0
  262. package/dist/chunks/ratingDots.component-CnCN-czr.js +158 -0
  263. package/dist/chunks/ratingDots.component-CnCN-czr.js.map +1 -0
  264. package/dist/chunks/ratingDots.component-Dr2p3X9o.js +2 -0
  265. package/dist/chunks/ratingDots.component-Dr2p3X9o.js.map +1 -0
  266. package/dist/chunks/render-strategy-CHp7lb6C.js +12 -0
  267. package/dist/chunks/render-strategy-CHp7lb6C.js.map +1 -0
  268. package/dist/chunks/render-strategy-C_zp9LNQ.js +2 -0
  269. package/dist/chunks/render-strategy-C_zp9LNQ.js.map +1 -0
  270. package/dist/chunks/select.component-DtvSUpfM.js +391 -0
  271. package/dist/chunks/select.component-DtvSUpfM.js.map +1 -0
  272. package/dist/chunks/select.component-l3N_dfXw.js +2 -0
  273. package/dist/chunks/select.component-l3N_dfXw.js.map +1 -0
  274. package/dist/chunks/sortableList.component-CNysbmV6.js +3364 -0
  275. package/dist/chunks/sortableList.component-CNysbmV6.js.map +1 -0
  276. package/dist/chunks/sortableList.component-fhJaRd25.js +6 -0
  277. package/dist/chunks/sortableList.component-fhJaRd25.js.map +1 -0
  278. package/dist/chunks/spinner-BWqSIW6m.js +8 -0
  279. package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
  280. package/dist/chunks/spinner-BnpL14kK.js +2 -0
  281. package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
  282. package/dist/chunks/spinner.component-BJ6rOgt8.js +179 -0
  283. package/dist/chunks/spinner.component-BJ6rOgt8.js.map +1 -0
  284. package/dist/chunks/spinner.component-oz9gjaVV.js +2 -0
  285. package/dist/chunks/spinner.component-oz9gjaVV.js.map +1 -0
  286. package/dist/chunks/stack-BKu3hWEQ.js +2 -0
  287. package/dist/chunks/stack-BKu3hWEQ.js.map +1 -0
  288. package/dist/chunks/stack-Dnuh5Zgf.js +85 -0
  289. package/dist/chunks/stack-Dnuh5Zgf.js.map +1 -0
  290. package/dist/chunks/styledAvatar.types-BvW6YJrl.js +2 -0
  291. package/dist/chunks/styledAvatar.types-BvW6YJrl.js.map +1 -0
  292. package/dist/chunks/styledAvatar.types-SAw52UC4.js +64 -0
  293. package/dist/chunks/styledAvatar.types-SAw52UC4.js.map +1 -0
  294. package/dist/chunks/swatch.types-DbgA3RWc.js +67 -0
  295. package/dist/chunks/swatch.types-DbgA3RWc.js.map +1 -0
  296. package/dist/chunks/swatch.types-DiX-4lpJ.js +2 -0
  297. package/dist/chunks/swatch.types-DiX-4lpJ.js.map +1 -0
  298. package/dist/chunks/switch.component-C1hrMzRm.js +166 -0
  299. package/dist/chunks/switch.component-C1hrMzRm.js.map +1 -0
  300. package/dist/chunks/switch.component-DFQ_b2At.js +2 -0
  301. package/dist/chunks/switch.component-DFQ_b2At.js.map +1 -0
  302. package/dist/chunks/tabs.component-CI6YyzcT.js +2 -0
  303. package/dist/chunks/tabs.component-CI6YyzcT.js.map +1 -0
  304. package/dist/chunks/tabs.component-CmBdxZ28.js +639 -0
  305. package/dist/chunks/tabs.component-CmBdxZ28.js.map +1 -0
  306. package/dist/chunks/tag.component-C6a6EzZB.js +2 -0
  307. package/dist/chunks/tag.component-C6a6EzZB.js.map +1 -0
  308. package/dist/chunks/tag.component-pexJ0TAT.js +82 -0
  309. package/dist/chunks/tag.component-pexJ0TAT.js.map +1 -0
  310. package/dist/chunks/tagBlock.component-33yx8LBM.js +186 -0
  311. package/dist/chunks/tagBlock.component-33yx8LBM.js.map +1 -0
  312. package/dist/chunks/tagBlock.component-p44L1Jc9.js +2 -0
  313. package/dist/chunks/tagBlock.component-p44L1Jc9.js.map +1 -0
  314. package/dist/chunks/text.component-Ck6rZy2v.js +12 -0
  315. package/dist/chunks/text.component-Ck6rZy2v.js.map +1 -0
  316. package/dist/chunks/text.component-H5f43IC6.js +2 -0
  317. package/dist/chunks/text.component-H5f43IC6.js.map +1 -0
  318. package/dist/chunks/textInput.component-CUKklyGx.js +180 -0
  319. package/dist/chunks/textInput.component-CUKklyGx.js.map +1 -0
  320. package/dist/chunks/textInput.component-Cla6KfBZ.js +2 -0
  321. package/dist/chunks/textInput.component-Cla6KfBZ.js.map +1 -0
  322. package/dist/chunks/textarea.component-BcL2jK0X.js +98 -0
  323. package/dist/chunks/textarea.component-BcL2jK0X.js.map +1 -0
  324. package/dist/chunks/textarea.component-XYJZDZmM.js +2 -0
  325. package/dist/chunks/textarea.component-XYJZDZmM.js.map +1 -0
  326. package/dist/chunks/theme.provider-FIFC-_Wf.js +13686 -0
  327. package/dist/chunks/theme.provider-FIFC-_Wf.js.map +1 -0
  328. package/dist/chunks/theme.provider-oCz4Rrwj.js +26 -0
  329. package/dist/chunks/theme.provider-oCz4Rrwj.js.map +1 -0
  330. package/dist/chunks/timePicker.component-CMouXVow.js +248 -0
  331. package/dist/chunks/timePicker.component-CMouXVow.js.map +1 -0
  332. package/dist/chunks/timePicker.component-ClmXeH3U.js +2 -0
  333. package/dist/chunks/timePicker.component-ClmXeH3U.js.map +1 -0
  334. package/dist/chunks/timeRange.component-DKkwvibd.js +2 -0
  335. package/dist/chunks/timeRange.component-DKkwvibd.js.map +1 -0
  336. package/dist/chunks/timeRange.component-nrPWV1NY.js +18 -0
  337. package/dist/chunks/timeRange.component-nrPWV1NY.js.map +1 -0
  338. package/dist/chunks/timestamp.component-CNzJfora.js +2 -0
  339. package/dist/chunks/timestamp.component-CNzJfora.js.map +1 -0
  340. package/dist/chunks/timestamp.component-Dtn5KtVA.js +54 -0
  341. package/dist/chunks/timestamp.component-Dtn5KtVA.js.map +1 -0
  342. package/dist/chunks/toaster.records-CcwOeMM7.js +823 -0
  343. package/dist/chunks/toaster.records-CcwOeMM7.js.map +1 -0
  344. package/dist/chunks/toaster.records-zJfplz5w.js +2 -0
  345. package/dist/chunks/toaster.records-zJfplz5w.js.map +1 -0
  346. package/dist/chunks/tooltip.component-BdlSO_v_.js +491 -0
  347. package/dist/chunks/tooltip.component-BdlSO_v_.js.map +1 -0
  348. package/dist/chunks/tooltip.component-Dq7F5JIs.js +2 -0
  349. package/dist/chunks/tooltip.component-Dq7F5JIs.js.map +1 -0
  350. package/dist/chunks/typography.records-CSy2LmDd.js +2 -0
  351. package/dist/chunks/typography.records-CSy2LmDd.js.map +1 -0
  352. package/dist/chunks/typography.records-H4aA5AOA.js +66 -0
  353. package/dist/chunks/typography.records-H4aA5AOA.js.map +1 -0
  354. package/dist/chunks/use-breakpoint-MQ7agQJe.js +72 -0
  355. package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +1 -0
  356. package/dist/chunks/use-breakpoint-uBg4-8yY.js +2 -0
  357. package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +1 -0
  358. package/dist/chunks/use-field-context-CArmgHPP.js +2 -0
  359. package/dist/chunks/use-field-context-CArmgHPP.js.map +1 -0
  360. package/dist/chunks/use-field-context-Cm3grEyV.js +12 -0
  361. package/dist/chunks/use-field-context-Cm3grEyV.js.map +1 -0
  362. package/dist/chunks/use-locale-context-BiiNTYMT.js +2301 -0
  363. package/dist/chunks/use-locale-context-BiiNTYMT.js.map +1 -0
  364. package/dist/chunks/use-locale-context-D0LByRu9.js +22 -0
  365. package/dist/chunks/use-locale-context-D0LByRu9.js.map +1 -0
  366. package/dist/chunks/use-recipe-DaPWl_pL.js +2 -0
  367. package/dist/chunks/use-recipe-DaPWl_pL.js.map +1 -0
  368. package/dist/chunks/use-recipe-d63ABaZ3.js +13 -0
  369. package/dist/chunks/use-recipe-d63ABaZ3.js.map +1 -0
  370. package/dist/chunks/use-slot-recipe-8liupslO.js +2 -0
  371. package/dist/chunks/use-slot-recipe-8liupslO.js.map +1 -0
  372. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +13 -0
  373. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +1 -0
  374. package/dist/chunks/v-stack-BZT7R_9f.js +12 -0
  375. package/dist/chunks/v-stack-BZT7R_9f.js.map +1 -0
  376. package/dist/chunks/v-stack-DxjgpeJ0.js +2 -0
  377. package/dist/chunks/v-stack-DxjgpeJ0.js.map +1 -0
  378. package/dist/chunks/walk-object-BrTExCqQ.js +2 -0
  379. package/dist/chunks/walk-object-BrTExCqQ.js.map +1 -0
  380. package/dist/chunks/walk-object-_CL3Bkm9.js +28 -0
  381. package/dist/chunks/walk-object-_CL3Bkm9.js.map +1 -0
  382. package/dist/chunks/withFormControl-C8knrDok.js +2 -0
  383. package/dist/chunks/withFormControl-C8knrDok.js.map +1 -0
  384. package/dist/chunks/withFormControl-CwPfUb2g.js +376 -0
  385. package/dist/chunks/withFormControl-CwPfUb2g.js.map +1 -0
  386. package/dist/chunks/withTruncation-C_btJ8Nx.js +2 -0
  387. package/dist/chunks/withTruncation-C_btJ8Nx.js.map +1 -0
  388. package/dist/chunks/withTruncation-D6letsku.js +67 -0
  389. package/dist/chunks/withTruncation-D6letsku.js.map +1 -0
  390. package/dist/chunks/wrap-B8tBNeBY.js +45 -0
  391. package/dist/chunks/wrap-B8tBNeBY.js.map +1 -0
  392. package/dist/chunks/wrap-CNn1kyJX.js +2 -0
  393. package/dist/chunks/wrap-CNn1kyJX.js.map +1 -0
  394. package/dist/cjs/chakra/index.cjs +2 -0
  395. package/dist/cjs/chakra/index.cjs.map +1 -0
  396. package/dist/cjs/cli/generate-theme-types.cjs +6 -0
  397. package/dist/cjs/cli/generate-theme-types.cjs.map +1 -0
  398. package/dist/cjs/cli/postinstall.cjs +3 -0
  399. package/dist/cjs/cli/postinstall.cjs.map +1 -0
  400. package/dist/cjs/components/Alert/index.cjs +1 -1
  401. package/dist/cjs/components/Avatar/index.cjs +1 -1
  402. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  403. package/dist/cjs/components/Button/index.cjs +1 -1
  404. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  405. package/dist/cjs/components/Card/index.cjs +1 -1
  406. package/dist/cjs/components/Card/index.cjs.map +1 -1
  407. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  408. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  409. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  410. package/dist/cjs/components/ConversationCard/index.cjs +2 -0
  411. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  412. package/dist/cjs/components/Divider/index.cjs +2 -0
  413. package/dist/cjs/components/Heading/index.cjs +1 -1
  414. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  415. package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
  416. package/dist/cjs/components/Icon/index.cjs +1 -1
  417. package/dist/cjs/components/Link/index.cjs +1 -1
  418. package/dist/cjs/components/Logo/generated/index.cjs +2 -0
  419. package/dist/cjs/components/Logo/index.cjs +2 -0
  420. package/dist/cjs/components/Menu/index.cjs +1 -1
  421. package/dist/cjs/components/Modal/index.cjs +1 -1
  422. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  423. package/dist/cjs/components/NotificationCounter/index.cjs.map +1 -1
  424. package/dist/cjs/components/Picture/index.cjs +1 -1
  425. package/dist/cjs/components/Picture/index.cjs.map +1 -1
  426. package/dist/cjs/components/PinInput/index.cjs +2 -0
  427. package/dist/cjs/components/Popover/index.cjs +1 -1
  428. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  429. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  430. package/dist/cjs/components/Select/index.cjs +1 -1
  431. package/dist/cjs/components/SortableList/index.cjs +1 -1
  432. package/dist/cjs/components/Spinner/index.cjs +1 -1
  433. package/dist/cjs/components/StyledAvatar/index.cjs +2 -0
  434. package/dist/cjs/components/StyledAvatar/index.cjs.map +1 -0
  435. package/dist/cjs/components/Swatch/index.cjs +1 -1
  436. package/dist/cjs/components/Swatch/index.cjs.map +1 -1
  437. package/dist/cjs/components/Switch/index.cjs +1 -1
  438. package/dist/cjs/components/Tabs/index.cjs +1 -1
  439. package/dist/cjs/components/Tag/index.cjs +1 -1
  440. package/dist/cjs/components/TagBlock/index.cjs +2 -0
  441. package/dist/cjs/components/TagBlock/index.cjs.map +1 -0
  442. package/dist/cjs/components/Text/index.cjs +1 -1
  443. package/dist/cjs/components/TextInput/index.cjs +1 -1
  444. package/dist/cjs/components/Textarea/index.cjs +1 -1
  445. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  446. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  447. package/dist/cjs/components/Timestamp/index.cjs +2 -0
  448. package/dist/cjs/components/Timestamp/index.cjs.map +1 -0
  449. package/dist/cjs/components/Toast/index.cjs +2 -0
  450. package/dist/cjs/components/Toast/index.cjs.map +1 -0
  451. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  452. package/dist/cjs/components/index.cjs +1 -1
  453. package/dist/cjs/hocs/index.cjs +1 -1
  454. package/dist/cjs/hocs/index.cjs.map +1 -1
  455. package/dist/cjs/hooks/index.cjs +1 -1
  456. package/dist/cjs/hooks/index.cjs.map +1 -1
  457. package/dist/cjs/hooks/useBreakpoint/index.cjs +2 -0
  458. package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -0
  459. package/dist/cjs/hooks/useDeviceType/index.cjs +2 -0
  460. package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -0
  461. package/dist/cjs/index.cjs +1 -1
  462. package/dist/cjs/shared/index.cjs +2 -0
  463. package/dist/cjs/shared/index.cjs.map +1 -0
  464. package/dist/cjs/shared/records/index.cjs +2 -0
  465. package/dist/cjs/shared/records/index.cjs.map +1 -0
  466. package/dist/cjs/theme/index.cjs +1 -23
  467. package/dist/cjs/theme/index.cjs.map +1 -1
  468. package/dist/esm/chakra/index.js +3227 -0
  469. package/dist/esm/chakra/index.js.map +1 -0
  470. package/dist/esm/cli/generate-theme-types.js +22 -0
  471. package/dist/esm/cli/generate-theme-types.js.map +1 -0
  472. package/dist/esm/cli/postinstall.js +21 -0
  473. package/dist/esm/cli/postinstall.js.map +1 -0
  474. package/dist/esm/components/Alert/index.js +1 -1
  475. package/dist/esm/components/Avatar/index.js +1 -1
  476. package/dist/esm/components/AvatarGroup/index.js +1 -1
  477. package/dist/esm/components/Button/index.js +1 -1
  478. package/dist/esm/components/ButtonGroup/index.js +1 -1
  479. package/dist/esm/components/Card/index.js +4 -4
  480. package/dist/esm/components/Card/index.js.map +1 -1
  481. package/dist/esm/components/CharacterCounter/index.js +1 -1
  482. package/dist/esm/components/Checkbox/index.js +1 -1
  483. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  484. package/dist/esm/components/ConversationCard/index.js +5 -0
  485. package/dist/esm/components/DatePicker/index.js +1 -1
  486. package/dist/esm/components/Divider/index.js +8 -0
  487. package/dist/esm/components/Heading/index.js +1 -1
  488. package/dist/esm/components/Icon/generated/index.js +373 -338
  489. package/dist/esm/components/Icon/generated/index.js.map +1 -1
  490. package/dist/esm/components/Icon/index.js +1 -1
  491. package/dist/esm/components/Link/index.js +1 -1
  492. package/dist/esm/components/Logo/generated/index.js +6 -0
  493. package/dist/esm/components/Logo/index.js +7 -0
  494. package/dist/esm/components/Menu/index.js +1 -1
  495. package/dist/esm/components/Modal/index.js +1 -1
  496. package/dist/esm/components/NotificationCounter/index.js +4 -9
  497. package/dist/esm/components/NotificationCounter/index.js.map +1 -1
  498. package/dist/esm/components/Picture/index.js +1 -16
  499. package/dist/esm/components/Picture/index.js.map +1 -1
  500. package/dist/esm/components/PinInput/index.js +6 -0
  501. package/dist/esm/components/PinInput/index.js.map +1 -0
  502. package/dist/esm/components/Popover/index.js +1 -1
  503. package/dist/esm/components/RadioGroup/index.js +1 -1
  504. package/dist/esm/components/RatingDots/index.js +1 -1
  505. package/dist/esm/components/Select/index.js +1 -1
  506. package/dist/esm/components/SortableList/index.js +1 -1
  507. package/dist/esm/components/Spinner/index.js +1 -1
  508. package/dist/esm/components/StyledAvatar/index.js +6 -0
  509. package/dist/esm/components/StyledAvatar/index.js.map +1 -0
  510. package/dist/esm/components/Swatch/index.js +3 -62
  511. package/dist/esm/components/Swatch/index.js.map +1 -1
  512. package/dist/esm/components/Switch/index.js +1 -1
  513. package/dist/esm/components/Tabs/index.js +1 -1
  514. package/dist/esm/components/Tag/index.js +1 -1
  515. package/dist/esm/components/TagBlock/index.js +6 -0
  516. package/dist/esm/components/TagBlock/index.js.map +1 -0
  517. package/dist/esm/components/Text/index.js +1 -1
  518. package/dist/esm/components/TextInput/index.js +1 -1
  519. package/dist/esm/components/Textarea/index.js +1 -1
  520. package/dist/esm/components/TimePicker/index.js +1 -1
  521. package/dist/esm/components/TimeRange/index.js +1 -1
  522. package/dist/esm/components/Timestamp/index.js +5 -0
  523. package/dist/esm/components/Timestamp/index.js.map +1 -0
  524. package/dist/esm/components/Toast/index.js +59 -0
  525. package/dist/esm/components/Toast/index.js.map +1 -0
  526. package/dist/esm/components/Tooltip/index.js +1 -1
  527. package/dist/esm/components/index.js +117 -93
  528. package/dist/esm/components/index.js.map +1 -1
  529. package/dist/esm/hocs/index.js +3 -35
  530. package/dist/esm/hocs/index.js.map +1 -1
  531. package/dist/esm/hooks/index.js +7 -17
  532. package/dist/esm/hooks/index.js.map +1 -1
  533. package/dist/esm/hooks/useBreakpoint/index.js +12 -0
  534. package/dist/esm/hooks/useBreakpoint/index.js.map +1 -0
  535. package/dist/esm/hooks/useDeviceType/index.js +12 -0
  536. package/dist/esm/hooks/useDeviceType/index.js.map +1 -0
  537. package/dist/esm/index.js +138 -100
  538. package/dist/esm/index.js.map +1 -1
  539. package/dist/esm/shared/index.js +9 -0
  540. package/dist/esm/shared/index.js.map +1 -0
  541. package/dist/esm/shared/records/index.js +18 -0
  542. package/dist/esm/shared/records/index.js.map +1 -0
  543. package/dist/esm/theme/index.js +3 -2607
  544. package/dist/esm/theme/index.js.map +1 -1
  545. package/dist/types/chakra/index.d.ts +52 -0
  546. package/dist/types/cli/generate-theme-types.d.ts +2 -0
  547. package/dist/types/cli/postinstall.d.ts +2 -0
  548. package/dist/types/components/Alert/alert.component.d.ts +10 -19
  549. package/dist/types/components/Alert/alert.recipe.d.ts +25 -0
  550. package/dist/types/components/Alert/alert.types.d.ts +2 -0
  551. package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +3 -4
  552. package/dist/types/components/Alert/index.d.ts +2 -3
  553. package/dist/types/components/Avatar/avatar.component.d.ts +4 -5
  554. package/dist/types/components/Avatar/avatar.recipe.d.ts +60 -0
  555. package/dist/types/components/Avatar/avatar.types.d.ts +4 -0
  556. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +5 -6
  557. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.recipe.d.ts +9 -0
  558. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.records.d.ts +3 -0
  559. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +2 -0
  560. package/dist/types/components/Avatar/components/AvatarRemoveButton/avatarRemoveButton.component.d.ts +0 -1
  561. package/dist/types/components/Avatar/index.d.ts +2 -3
  562. package/dist/types/components/AvatarGroup/avatarGroup.component.d.ts +2 -3
  563. package/dist/types/components/AvatarGroup/index.d.ts +1 -2
  564. package/dist/types/components/Button/button.component.d.ts +4 -6
  565. package/dist/types/components/Button/button.recipe.d.ts +5 -0
  566. package/dist/types/components/Button/button.types.d.ts +10 -0
  567. package/dist/types/components/Button/index.d.ts +2 -3
  568. package/dist/types/components/ButtonGroup/buttonGroup.component.d.ts +3 -4
  569. package/dist/types/components/ButtonGroup/buttonGroup.types.d.ts +2 -0
  570. package/dist/types/components/ButtonGroup/index.d.ts +2 -3
  571. package/dist/types/components/Card/card.component.d.ts +2 -3
  572. package/dist/types/components/Card/card.records.d.ts +2 -0
  573. package/dist/types/components/Card/card.types.d.ts +2 -0
  574. package/dist/types/components/Card/index.d.ts +2 -3
  575. package/dist/types/components/CharacterCounter/characterCounter.component.d.ts +0 -1
  576. package/dist/types/components/CharacterCounter/characterCounter.recipe.d.ts +34 -0
  577. package/dist/types/components/CharacterCounter/index.d.ts +1 -2
  578. package/dist/types/components/Checkbox/checkbox.component.d.ts +2 -3
  579. package/dist/types/components/Checkbox/checkbox.recipe.d.ts +11 -0
  580. package/dist/types/components/Checkbox/checkbox.records.d.ts +3 -0
  581. package/dist/types/components/Checkbox/index.d.ts +1 -2
  582. package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +3 -4
  583. package/dist/types/components/CheckboxGroup/index.d.ts +1 -2
  584. package/dist/types/components/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +8 -0
  585. package/dist/types/components/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +21 -0
  586. package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +8 -0
  587. package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +9 -0
  588. package/dist/types/components/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +13 -0
  589. package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +9 -0
  590. package/dist/types/components/ConversationCard/conversationCard.component.d.ts +23 -0
  591. package/dist/types/components/ConversationCard/index.d.ts +1 -0
  592. package/dist/types/components/DatePicker/components/DatePickerCalendar/datePickerCalendar.component.d.ts +0 -1
  593. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +0 -1
  594. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.recipe.d.ts +22 -0
  595. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.types.d.ts +1 -0
  596. package/dist/types/components/DatePicker/components/DatePickerFooter/datePickerFooter.component.d.ts +1 -2
  597. package/dist/types/components/DatePicker/components/DatePickerHeader/datePickerHeader.component.d.ts +0 -1
  598. package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +1 -2
  599. package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.utils.d.ts +2 -0
  600. package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +0 -1
  601. package/dist/types/components/DatePicker/context/datePicker.context.d.ts +47 -0
  602. package/dist/types/components/DatePicker/context/datePicker.provider.d.ts +7 -0
  603. package/dist/types/components/DatePicker/datePicker.component.d.ts +4 -5
  604. package/dist/types/components/DatePicker/datePicker.records.d.ts +1 -0
  605. package/dist/types/components/DatePicker/datePicker.types.d.ts +9 -0
  606. package/dist/types/components/DatePicker/index.d.ts +2 -3
  607. package/dist/types/components/Divider/divider.component.d.ts +4 -0
  608. package/dist/types/components/Divider/divider.types.d.ts +6 -0
  609. package/dist/types/components/Divider/index.d.ts +2 -0
  610. package/dist/types/components/Heading/heading.component.d.ts +4 -6
  611. package/dist/types/components/Heading/heading.recipe.d.ts +7 -0
  612. package/dist/types/components/Heading/heading.records.d.ts +2 -0
  613. package/dist/types/components/Heading/heading.types.d.ts +2 -0
  614. package/dist/types/components/Heading/index.d.ts +2 -3
  615. package/dist/types/components/Icon/generated/AiMicrophone.d.ts +10 -0
  616. package/dist/types/components/Icon/generated/AlertCircle.d.ts +10 -0
  617. package/dist/types/components/Icon/generated/AnimalBird.d.ts +10 -0
  618. package/dist/types/components/Icon/generated/AnimalCat.d.ts +10 -0
  619. package/dist/types/components/Icon/generated/AnimalCow.d.ts +10 -0
  620. package/dist/types/components/Icon/generated/AnimalDog.d.ts +10 -0
  621. package/dist/types/components/Icon/generated/AnimalHorse.d.ts +10 -0
  622. package/dist/types/components/Icon/generated/AnimalMouse.d.ts +10 -0
  623. package/dist/types/components/Icon/generated/AnimalPig.d.ts +10 -0
  624. package/dist/types/components/Icon/generated/AnimalSnake.d.ts +10 -0
  625. package/dist/types/components/Icon/generated/Archive.d.ts +10 -0
  626. package/dist/types/components/Icon/generated/ArrowCircle.d.ts +10 -0
  627. package/dist/types/components/Icon/generated/ArrowDown.d.ts +10 -0
  628. package/dist/types/components/Icon/generated/ArrowDownRight.d.ts +10 -0
  629. package/dist/types/components/Icon/generated/ArrowLeft.d.ts +10 -0
  630. package/dist/types/components/Icon/generated/ArrowRight.d.ts +10 -0
  631. package/dist/types/components/Icon/generated/ArrowUp.d.ts +10 -0
  632. package/dist/types/components/Icon/generated/ArrowsIn.d.ts +10 -0
  633. package/dist/types/components/Icon/generated/ArrowsOut.d.ts +10 -0
  634. package/dist/types/components/Icon/generated/Article.d.ts +10 -0
  635. package/dist/types/components/Icon/generated/Award.d.ts +10 -0
  636. package/dist/types/components/Icon/generated/Bank.d.ts +10 -0
  637. package/dist/types/components/Icon/generated/Bell.d.ts +10 -0
  638. package/dist/types/components/Icon/generated/BellCancel.d.ts +10 -0
  639. package/dist/types/components/Icon/generated/Bone.d.ts +10 -0
  640. package/dist/types/components/Icon/generated/Bookmark.d.ts +10 -0
  641. package/dist/types/components/Icon/generated/BulkSelect.d.ts +10 -0
  642. package/dist/types/components/Icon/generated/Buttons.d.ts +10 -0
  643. package/dist/types/components/Icon/generated/CalendarCheck.d.ts +10 -0
  644. package/dist/types/components/Icon/generated/CalendarDate.d.ts +10 -0
  645. package/dist/types/components/Icon/generated/CalendarInfo.d.ts +10 -0
  646. package/dist/types/components/Icon/generated/CalendarPen.d.ts +10 -0
  647. package/dist/types/components/Icon/generated/CalendarPlus.d.ts +10 -0
  648. package/dist/types/components/Icon/generated/Camera.d.ts +10 -0
  649. package/dist/types/components/Icon/generated/CameraOff.d.ts +10 -0
  650. package/dist/types/components/Icon/generated/Cancel.d.ts +10 -0
  651. package/dist/types/components/Icon/generated/CaretDown.d.ts +10 -0
  652. package/dist/types/components/Icon/generated/CaretUp.d.ts +10 -0
  653. package/dist/types/components/Icon/generated/Cellphone.d.ts +10 -0
  654. package/dist/types/components/Icon/generated/CellphoneCancel.d.ts +10 -0
  655. package/dist/types/components/Icon/generated/ChainLink.d.ts +10 -0
  656. package/dist/types/components/Icon/generated/ChatBubble.d.ts +10 -0
  657. package/dist/types/components/Icon/generated/Checkmark.d.ts +10 -0
  658. package/dist/types/components/Icon/generated/CheckmarkBox.d.ts +10 -0
  659. package/dist/types/components/Icon/generated/CheckmarkCircle.d.ts +10 -0
  660. package/dist/types/components/Icon/generated/ChevronDown.d.ts +10 -0
  661. package/dist/types/components/Icon/generated/ChevronLeft.d.ts +10 -0
  662. package/dist/types/components/Icon/generated/ChevronRight.d.ts +10 -0
  663. package/dist/types/components/Icon/generated/ChevronUp.d.ts +10 -0
  664. package/dist/types/components/Icon/generated/Clinic.d.ts +10 -0
  665. package/dist/types/components/Icon/generated/Clock.d.ts +10 -0
  666. package/dist/types/components/Icon/generated/Close.d.ts +10 -0
  667. package/dist/types/components/Icon/generated/CloseCircle.d.ts +10 -0
  668. package/dist/types/components/Icon/generated/CloseCircleSolid.d.ts +10 -0
  669. package/dist/types/components/Icon/generated/Code.d.ts +10 -0
  670. package/dist/types/components/Icon/generated/CreditCard.d.ts +10 -0
  671. package/dist/types/components/Icon/generated/CreditCardLogoAmex.d.ts +10 -0
  672. package/dist/types/components/Icon/generated/CreditCardLogoDiners.d.ts +10 -0
  673. package/dist/types/components/Icon/generated/CreditCardLogoDiscover.d.ts +10 -0
  674. package/dist/types/components/Icon/generated/CreditCardLogoGeneric.d.ts +10 -0
  675. package/dist/types/components/Icon/generated/CreditCardLogoJcb.d.ts +10 -0
  676. package/dist/types/components/Icon/generated/CreditCardLogoMastercard.d.ts +10 -0
  677. package/dist/types/components/Icon/generated/CreditCardLogoUnionpay.d.ts +10 -0
  678. package/dist/types/components/Icon/generated/CreditCardLogoVisa.d.ts +10 -0
  679. package/dist/types/components/Icon/generated/Cut.d.ts +10 -0
  680. package/dist/types/components/Icon/generated/Dollar.d.ts +10 -0
  681. package/dist/types/components/Icon/generated/DollarCircle.d.ts +10 -0
  682. package/dist/types/components/Icon/generated/DotsHorizontal.d.ts +10 -0
  683. package/dist/types/components/Icon/generated/DotsVertical.d.ts +10 -0
  684. package/dist/types/components/Icon/generated/DoubleArrowCircle.d.ts +10 -0
  685. package/dist/types/components/Icon/generated/Download.d.ts +10 -0
  686. package/dist/types/components/Icon/generated/EmailSend.d.ts +10 -0
  687. package/dist/types/components/Icon/generated/Envelope.d.ts +10 -0
  688. package/dist/types/components/Icon/generated/EnvelopeCancel.d.ts +10 -0
  689. package/dist/types/components/Icon/generated/ExternalLink.d.ts +10 -0
  690. package/dist/types/components/Icon/generated/EyeOpen.d.ts +10 -0
  691. package/dist/types/components/Icon/generated/EyeSlash.d.ts +10 -0
  692. package/dist/types/components/Icon/generated/Eyedropper.d.ts +10 -0
  693. package/dist/types/components/Icon/generated/FileHealth.d.ts +10 -0
  694. package/dist/types/components/Icon/generated/Filter.d.ts +10 -0
  695. package/dist/types/components/Icon/generated/Form.d.ts +10 -0
  696. package/dist/types/components/Icon/generated/Gear.d.ts +10 -0
  697. package/dist/types/components/Icon/generated/Gif.d.ts +10 -0
  698. package/dist/types/components/Icon/generated/Grid.d.ts +10 -0
  699. package/dist/types/components/Icon/generated/Hashtag.d.ts +10 -0
  700. package/dist/types/components/Icon/generated/Health.d.ts +10 -0
  701. package/dist/types/components/Icon/generated/Heart.d.ts +10 -0
  702. package/dist/types/components/Icon/generated/HeartSolid.d.ts +10 -0
  703. package/dist/types/components/Icon/generated/House.d.ts +10 -0
  704. package/dist/types/components/Icon/generated/Image.d.ts +10 -0
  705. package/dist/types/components/Icon/generated/InfoCircle.d.ts +10 -0
  706. package/dist/types/components/Icon/generated/Input.d.ts +10 -0
  707. package/dist/types/components/Icon/generated/Invoice.d.ts +10 -0
  708. package/dist/types/components/Icon/generated/KanbanBoard.d.ts +10 -0
  709. package/dist/types/components/Icon/generated/List.d.ts +10 -0
  710. package/dist/types/components/Icon/generated/Liveagent.d.ts +10 -0
  711. package/dist/types/components/Icon/generated/Loader.d.ts +10 -0
  712. package/dist/types/components/Icon/generated/LocationMarker.d.ts +10 -0
  713. package/dist/types/components/Icon/generated/Lock.d.ts +10 -0
  714. package/dist/types/components/Icon/generated/Logo.d.ts +10 -0
  715. package/dist/types/components/Icon/generated/Loudspeaker.d.ts +10 -0
  716. package/dist/types/components/Icon/generated/Magic.d.ts +10 -0
  717. package/dist/types/components/Icon/generated/MagnifyingGlass.d.ts +10 -0
  718. package/dist/types/components/Icon/generated/Mailbox.d.ts +10 -0
  719. package/dist/types/components/Icon/generated/Menu.d.ts +10 -0
  720. package/dist/types/components/Icon/generated/Message.d.ts +10 -0
  721. package/dist/types/components/Icon/generated/MessageDetail.d.ts +10 -0
  722. package/dist/types/components/Icon/generated/MessageWarning.d.ts +10 -0
  723. package/dist/types/components/Icon/generated/Messages.d.ts +10 -0
  724. package/dist/types/components/Icon/generated/Microphone.d.ts +10 -0
  725. package/dist/types/components/Icon/generated/MicrophoneMute.d.ts +10 -0
  726. package/dist/types/components/Icon/generated/Minus.d.ts +10 -0
  727. package/dist/types/components/Icon/generated/MoveDown.d.ts +10 -0
  728. package/dist/types/components/Icon/generated/MoveLeft.d.ts +10 -0
  729. package/dist/types/components/Icon/generated/MoveRight.d.ts +10 -0
  730. package/dist/types/components/Icon/generated/MoveUp.d.ts +10 -0
  731. package/dist/types/components/Icon/generated/Notification.d.ts +10 -0
  732. package/dist/types/components/Icon/generated/Package.d.ts +10 -0
  733. package/dist/types/components/Icon/generated/Paperclip.d.ts +10 -0
  734. package/dist/types/components/Icon/generated/Pause.d.ts +10 -0
  735. package/dist/types/components/Icon/generated/Paw.d.ts +10 -0
  736. package/dist/types/components/Icon/generated/Pen.d.ts +10 -0
  737. package/dist/types/components/Icon/generated/PenSquare.d.ts +10 -0
  738. package/dist/types/components/Icon/generated/Person.d.ts +10 -0
  739. package/dist/types/components/Icon/generated/PersonAdd.d.ts +10 -0
  740. package/dist/types/components/Icon/generated/PersonCircle.d.ts +10 -0
  741. package/dist/types/components/Icon/generated/Phone.d.ts +10 -0
  742. package/dist/types/components/Icon/generated/PhoneButtons.d.ts +10 -0
  743. package/dist/types/components/Icon/generated/PhoneCancel.d.ts +10 -0
  744. package/dist/types/components/Icon/generated/Pill.d.ts +10 -0
  745. package/dist/types/components/Icon/generated/Pin.d.ts +10 -0
  746. package/dist/types/components/Icon/generated/PinCancel.d.ts +10 -0
  747. package/dist/types/components/Icon/generated/Play.d.ts +10 -0
  748. package/dist/types/components/Icon/generated/Plus.d.ts +10 -0
  749. package/dist/types/components/Icon/generated/Popup.d.ts +10 -0
  750. package/dist/types/components/Icon/generated/Printer.d.ts +10 -0
  751. package/dist/types/components/Icon/generated/QuestionMark.d.ts +10 -0
  752. package/dist/types/components/Icon/generated/QuestionMarkCircle.d.ts +10 -0
  753. package/dist/types/components/Icon/generated/QuestionMarkCircleSolid.d.ts +10 -0
  754. package/dist/types/components/Icon/generated/Record.d.ts +10 -0
  755. package/dist/types/components/Icon/generated/Report.d.ts +10 -0
  756. package/dist/types/components/Icon/generated/Ribbon.d.ts +10 -0
  757. package/dist/types/components/Icon/generated/Robot.d.ts +10 -0
  758. package/dist/types/components/Icon/generated/Send.d.ts +10 -0
  759. package/dist/types/components/Icon/generated/Sliders.d.ts +10 -0
  760. package/dist/types/components/Icon/generated/SmileyFace.d.ts +10 -0
  761. package/dist/types/components/Icon/generated/Sort.d.ts +10 -0
  762. package/dist/types/components/Icon/generated/Star.d.ts +10 -0
  763. package/dist/types/components/Icon/generated/StarCircle.d.ts +10 -0
  764. package/dist/types/components/Icon/generated/StarSolid.d.ts +10 -0
  765. package/dist/types/components/Icon/generated/Stop.d.ts +10 -0
  766. package/dist/types/components/Icon/generated/StopRecording.d.ts +10 -0
  767. package/dist/types/components/Icon/generated/Support.d.ts +10 -0
  768. package/dist/types/components/Icon/generated/Table.d.ts +10 -0
  769. package/dist/types/components/Icon/generated/Tag.d.ts +10 -0
  770. package/dist/types/components/Icon/generated/Target.d.ts +10 -0
  771. package/dist/types/components/Icon/generated/TargetSolid.d.ts +10 -0
  772. package/dist/types/components/Icon/generated/TaskList.d.ts +10 -0
  773. package/dist/types/components/Icon/generated/Team.d.ts +10 -0
  774. package/dist/types/components/Icon/generated/ThumbsDown.d.ts +10 -0
  775. package/dist/types/components/Icon/generated/ThumbsUp.d.ts +10 -0
  776. package/dist/types/components/Icon/generated/Transfer.d.ts +10 -0
  777. package/dist/types/components/Icon/generated/Trashcan.d.ts +10 -0
  778. package/dist/types/components/Icon/generated/TwoSquares.d.ts +10 -0
  779. package/dist/types/components/Icon/generated/Upload.d.ts +10 -0
  780. package/dist/types/components/Icon/generated/VideoCamera.d.ts +10 -0
  781. package/dist/types/components/Icon/generated/WarningSign.d.ts +10 -0
  782. package/dist/types/components/Icon/generated/Website.d.ts +10 -0
  783. package/dist/types/components/Icon/generated/Wrench.d.ts +10 -0
  784. package/dist/types/components/Icon/generated/index.d.ts +1 -2
  785. package/dist/types/components/Icon/icon.component.d.ts +4 -6
  786. package/dist/types/components/Icon/icon.records.d.ts +3 -0
  787. package/dist/types/components/Icon/icon.types.d.ts +3 -0
  788. package/dist/types/components/Icon/index.d.ts +2 -3
  789. package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +1 -2
  790. package/dist/types/components/Link/index.d.ts +1 -2
  791. package/dist/types/components/Link/link.component.d.ts +3 -4
  792. package/dist/types/components/Link/link.recipe.d.ts +5 -0
  793. package/dist/types/components/Logo/generated/FullLogo.d.ts +10 -0
  794. package/dist/types/components/Logo/generated/IconLogo.d.ts +10 -0
  795. package/dist/types/components/Logo/generated/index.d.ts +4 -0
  796. package/dist/types/components/Logo/index.d.ts +2 -0
  797. package/dist/types/components/Logo/logo.component.d.ts +10 -0
  798. package/dist/types/components/Logo/logo.recipe.d.ts +9 -0
  799. package/dist/types/components/Logo/logo.types.d.ts +4 -0
  800. package/dist/types/components/Menu/components/MenuButton/menuButton.components.d.ts +9 -0
  801. package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +5 -5
  802. package/dist/types/components/Menu/components/MenuItem/menuItem.types.d.ts +2 -0
  803. package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.d.ts +10 -0
  804. package/dist/types/components/Menu/index.d.ts +2 -3
  805. package/dist/types/components/Menu/menu.component.d.ts +3 -4
  806. package/dist/types/components/Menu/menu.recipe.d.ts +1 -0
  807. package/dist/types/components/Modal/components/ModalFooter/modalFooter.component.d.ts +0 -1
  808. package/dist/types/components/Modal/context/modal.context.d.ts +6 -0
  809. package/dist/types/components/Modal/index.d.ts +2 -3
  810. package/dist/types/components/Modal/modal.component.d.ts +3 -4
  811. package/dist/types/components/Modal/modal.recipe.d.ts +23 -0
  812. package/dist/types/components/Modal/modal.types.d.ts +8 -0
  813. package/dist/types/components/NotificationCounter/index.d.ts +2 -3
  814. package/dist/types/components/NotificationCounter/notificationCounter.component.d.ts +1 -2
  815. package/dist/types/components/NotificationCounter/notificationCounter.recipe.d.ts +5 -0
  816. package/dist/types/components/NotificationCounter/notificationCounter.records.d.ts +1 -0
  817. package/dist/types/components/NotificationCounter/notificationCounter.types.d.ts +4 -0
  818. package/dist/types/components/Picture/index.d.ts +1 -2
  819. package/dist/types/components/Picture/picture.component.d.ts +0 -1
  820. package/dist/types/components/PinInput/index.d.ts +2 -0
  821. package/dist/types/components/PinInput/pinInput.component.d.ts +10 -0
  822. package/dist/types/components/PinInput/pinInput.recipe.d.ts +21 -0
  823. package/dist/types/components/PinInput/pinInput.records.d.ts +1 -0
  824. package/dist/types/components/PinInput/pinInput.types.d.ts +2 -0
  825. package/dist/types/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +1 -2
  826. package/dist/types/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +2 -3
  827. package/dist/types/components/Popover/index.d.ts +2 -3
  828. package/dist/types/components/Popover/popover.component.d.ts +4 -5
  829. package/dist/types/components/Popover/popover.recipe.d.ts +10 -0
  830. package/dist/types/components/Popover/popover.types.d.ts +6 -0
  831. package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +2 -3
  832. package/dist/types/components/RadioGroup/components/Radio/radio.records.d.ts +3 -0
  833. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  834. package/dist/types/components/RadioGroup/radioGroup.component.d.ts +4 -5
  835. package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +11 -0
  836. package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +0 -1
  837. package/dist/types/components/RatingDots/components/RatingDot/ratingDot.recipe.d.ts +39 -0
  838. package/dist/types/components/RatingDots/index.d.ts +1 -2
  839. package/dist/types/components/RatingDots/ratingDots.component.d.ts +1 -2
  840. package/dist/types/components/Select/components/SelectItemContent/selectItemContent.component.d.ts +2 -3
  841. package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +1 -2
  842. package/dist/types/components/Select/index.d.ts +2 -3
  843. package/dist/types/components/Select/select.component.d.ts +6 -4
  844. package/dist/types/components/Select/select.recipe.d.ts +2 -0
  845. package/dist/types/components/Select/select.types.d.ts +10 -0
  846. package/dist/types/components/SortableList/components/SortableListDragHandle/sortableListDragHandle.component.d.ts +1 -2
  847. package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +0 -1
  848. package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.context.d.ts +8 -0
  849. package/dist/types/components/SortableList/index.d.ts +2 -2
  850. package/dist/types/components/SortableList/sortableList.component.d.ts +1 -2
  851. package/dist/types/components/Spinner/index.d.ts +2 -3
  852. package/dist/types/components/Spinner/spinner.component.d.ts +4 -5
  853. package/dist/types/components/Spinner/spinner.recipe.d.ts +29 -0
  854. package/dist/types/components/Spinner/spinner.types.d.ts +2 -0
  855. package/dist/types/components/StyledAvatar/index.d.ts +2 -0
  856. package/dist/types/components/StyledAvatar/styledAvatar.component.d.ts +7 -0
  857. package/dist/types/components/StyledAvatar/styledAvatar.types.d.ts +2 -0
  858. package/dist/types/components/Swatch/index.d.ts +2 -3
  859. package/dist/types/components/Swatch/swatch.component.d.ts +1 -2
  860. package/dist/types/components/Swatch/swatch.recipe.d.ts +4 -0
  861. package/dist/types/components/Swatch/swatch.types.d.ts +2 -0
  862. package/dist/types/components/Switch/index.d.ts +1 -2
  863. package/dist/types/components/Switch/switch.component.d.ts +2 -3
  864. package/dist/types/components/Switch/switch.recipe.d.ts +12 -0
  865. package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +3 -4
  866. package/dist/types/components/Tabs/components/Tab/tab.records.d.ts +5 -0
  867. package/dist/types/components/Tabs/components/Tab/tab.types.d.ts +4 -0
  868. package/dist/types/components/Tabs/index.d.ts +1 -2
  869. package/dist/types/components/Tabs/tabs.component.d.ts +3 -4
  870. package/dist/types/components/Tabs/tabs.recipe.d.ts +9 -0
  871. package/dist/types/components/Tag/index.d.ts +2 -3
  872. package/dist/types/components/Tag/tag.component.d.ts +2 -3
  873. package/dist/types/components/Tag/tag.recipe.d.ts +11 -0
  874. package/dist/types/components/Tag/tag.records.d.ts +2 -0
  875. package/dist/types/components/Tag/tag.types.d.ts +6 -0
  876. package/dist/types/components/TagBlock/index.d.ts +2 -0
  877. package/dist/types/components/TagBlock/tagBlock.component.d.ts +25 -0
  878. package/dist/types/components/TagBlock/tagBlock.types.d.ts +9 -0
  879. package/dist/types/components/Text/index.d.ts +2 -3
  880. package/dist/types/components/Text/text.component.d.ts +4 -6
  881. package/dist/types/components/Text/text.recipe.d.ts +8 -0
  882. package/dist/types/components/Text/text.records.d.ts +2 -0
  883. package/dist/types/components/Text/text.types.d.ts +2 -0
  884. package/dist/types/components/TextInput/index.d.ts +1 -2
  885. package/dist/types/components/TextInput/textInput.component.d.ts +2 -3
  886. package/dist/types/components/TextInput/textInput.records.d.ts +3 -0
  887. package/dist/types/components/Textarea/index.d.ts +1 -2
  888. package/dist/types/components/Textarea/textarea.component.d.ts +2 -3
  889. package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +0 -1
  890. package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +0 -1
  891. package/dist/types/components/TimePicker/components/TimeOption/timeOption.recipe.d.ts +18 -0
  892. package/dist/types/components/TimePicker/index.d.ts +2 -3
  893. package/dist/types/components/TimePicker/timePicker.component.d.ts +2 -3
  894. package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -0
  895. package/dist/types/components/TimePicker/timePicker.types.d.ts +4 -0
  896. package/dist/types/components/TimeRange/index.d.ts +1 -2
  897. package/dist/types/components/TimeRange/timeRange.component.d.ts +1 -2
  898. package/dist/types/components/Timestamp/index.d.ts +1 -0
  899. package/dist/types/components/Timestamp/timestamp.component.d.ts +11 -0
  900. package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
  901. package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +7 -0
  902. package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +11 -0
  903. package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +12 -0
  904. package/dist/types/components/Toast/index.d.ts +2 -0
  905. package/dist/types/components/Toast/toast.component.d.ts +14 -0
  906. package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
  907. package/dist/types/components/Toast/toast.types.d.ts +19 -0
  908. package/dist/types/components/Toast/useToast.d.ts +3 -0
  909. package/dist/types/components/Tooltip/index.d.ts +1 -2
  910. package/dist/types/components/Tooltip/tooltip.component.d.ts +5 -4
  911. package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -0
  912. package/dist/types/components/index.d.ts +41 -34
  913. package/dist/types/hocs/index.d.ts +2 -2
  914. package/dist/types/hocs/withDarkMode/index.d.ts +2 -0
  915. package/dist/types/hocs/withFormControl/withFormControl.argTypes.d.ts +3 -0
  916. package/dist/types/hocs/withFormControl/withFormControl.d.ts +25 -0
  917. package/dist/types/hocs/withFormControl/withFormControl.recipe.d.ts +12 -0
  918. package/dist/types/hocs/withFormControl/withFormControl.records.d.ts +2 -0
  919. package/dist/types/hocs/withFormControl/withFormControl.types.d.ts +5 -0
  920. package/dist/types/hocs/withLightMode/index.d.ts +2 -0
  921. package/dist/types/hocs/withTruncation.d.ts +9 -0
  922. package/dist/types/hooks/index.d.ts +4 -2
  923. package/dist/types/hooks/useBreakpoint/index.d.ts +1 -0
  924. package/dist/types/hooks/useColorMode/index.d.ts +8 -0
  925. package/dist/types/hooks/useColorModeValue/index.d.ts +1 -0
  926. package/dist/types/hooks/useDebounce.d.ts +9 -0
  927. package/dist/types/hooks/useDeviceType/index.d.ts +3 -0
  928. package/dist/types/hooks/useIconTextSizeMap.d.ts +3 -0
  929. package/dist/types/index.d.ts +5 -3
  930. package/dist/types/shared/components/withVariantStory.d.ts +6 -0
  931. package/dist/types/shared/index.d.ts +1 -0
  932. package/dist/types/shared/records/index.d.ts +1 -0
  933. package/dist/types/shared/records/status.d.ts +5 -0
  934. package/dist/types/shared/records/typography.d.ts +5 -0
  935. package/dist/types/shared/types/alignment.d.ts +4 -0
  936. package/dist/types/shared/types/index.d.ts +5 -5
  937. package/dist/types/shared/types/placement.d.ts +2 -0
  938. package/dist/types/shared/types/status.d.ts +2 -0
  939. package/dist/types/shared/types/storybook.d.ts +2 -0
  940. package/dist/types/shared/types/theme.d.ts +1 -0
  941. package/dist/types/shared/types/typography.d.ts +2 -0
  942. package/dist/types/shared/utils/argTypes.d.ts +6 -0
  943. package/dist/types/shared/utils/colors.d.ts +14 -0
  944. package/dist/types/shared/utils/sizes.d.ts +9 -0
  945. package/dist/types/shared/utils/strings.d.ts +2 -0
  946. package/dist/types/shared/utils/tokens.d.ts +1 -0
  947. package/dist/types/shared/utils/units.d.ts +1 -0
  948. package/dist/types/theme/index.d.ts +2 -1
  949. package/dist/types/theme/providers/colorMode.provider.d.ts +4 -0
  950. package/dist/types/theme/providers/theme.provider.d.ts +9 -0
  951. package/dist/types/theme/semanticTokens/index.d.ts +1 -1
  952. package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +196 -0
  953. package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +390 -0
  954. package/dist/types/theme/semanticTokens/semanticTokens.types.d.ts +16 -0
  955. package/dist/types/theme/semanticTokens/utils/flattenSemanticTokenRecord.d.ts +10 -0
  956. package/dist/types/theme/semanticTokens/utils/getSemanticColorToken.d.ts +6 -0
  957. package/dist/types/theme/semanticTokens/utils/invertToken.d.ts +2 -0
  958. package/dist/types/theme/theme.config.d.ts +2 -0
  959. package/dist/types/theme/tokens/blurs/blurs.config.d.ts +26 -0
  960. package/dist/types/theme/tokens/blurs/blurs.records.d.ts +2 -0
  961. package/dist/types/theme/tokens/blurs/blurs.types.d.ts +1 -0
  962. package/dist/types/theme/tokens/blurs/index.d.ts +1 -1
  963. package/dist/types/theme/tokens/borders/borders.config.d.ts +49 -0
  964. package/dist/types/theme/tokens/borders/borders.records.d.ts +3 -0
  965. package/dist/types/theme/tokens/borders/borders.types.d.ts +2 -0
  966. package/dist/types/theme/tokens/borders/index.d.ts +1 -1
  967. package/dist/types/theme/tokens/colors/colors.config.d.ts +3 -0
  968. package/dist/types/theme/tokens/colors/colors.records.d.ts +2 -0
  969. package/dist/types/theme/tokens/colors/colors.types.d.ts +2 -0
  970. package/dist/types/theme/tokens/colors/index.d.ts +2 -2
  971. package/dist/types/theme/tokens/index.d.ts +9 -9
  972. package/dist/types/theme/tokens/shadows/index.d.ts +1 -1
  973. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +68 -0
  974. package/dist/types/theme/tokens/shadows/shadows.records.d.ts +6 -0
  975. package/dist/types/theme/tokens/shadows/shadows.types.d.ts +2 -0
  976. package/dist/types/theme/tokens/sizes/index.d.ts +1 -1
  977. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +81 -0
  978. package/dist/types/theme/tokens/sizes/sizes.records.d.ts +3 -0
  979. package/dist/types/theme/tokens/sizes/sizes.types.d.ts +2 -0
  980. package/dist/types/theme/tokens/spacing/index.d.ts +1 -1
  981. package/dist/types/theme/tokens/spacing/spacing.config.d.ts +101 -0
  982. package/dist/types/theme/tokens/spacing/spacing.records.d.ts +2 -0
  983. package/dist/types/theme/tokens/spacing/spacing.types.d.ts +1 -0
  984. package/dist/types/theme/tokens/transitions/index.d.ts +1 -1
  985. package/dist/types/theme/tokens/transitions/transitions.config.d.ts +34 -0
  986. package/dist/types/theme/tokens/transitions/transitions.records.d.ts +3 -0
  987. package/dist/types/theme/tokens/transitions/transitions.types.d.ts +2 -0
  988. package/dist/types/theme/tokens/typography/index.d.ts +1 -1
  989. package/dist/types/theme/tokens/typography/typography.config.d.ts +130 -0
  990. package/dist/types/theme/tokens/typography/typography.records.d.ts +6 -0
  991. package/dist/types/theme/tokens/typography/typography.types.d.ts +5 -0
  992. package/dist/types/theme/tokens/utils/transformToTokens.d.ts +11 -0
  993. package/dist/types/theme/tokens/zIndices/index.d.ts +1 -1
  994. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +44 -0
  995. package/dist/types/theme/tokens/zIndices/zIndices.records.d.ts +2 -0
  996. package/dist/types/theme/tokens/zIndices/zIndices.types.d.ts +1 -0
  997. package/dist/types/vite-env.d.ts +1 -0
  998. package/package.json +69 -39
  999. package/dist/chunks/alert.types-Bnf8isvq.js +0 -2
  1000. package/dist/chunks/alert.types-Bnf8isvq.js.map +0 -1
  1001. package/dist/chunks/alert.types-kskv5PHB.js +0 -170
  1002. package/dist/chunks/alert.types-kskv5PHB.js.map +0 -1
  1003. package/dist/chunks/avatar.component-Coq-0l7p.js +0 -2
  1004. package/dist/chunks/avatar.component-Coq-0l7p.js.map +0 -1
  1005. package/dist/chunks/avatar.component-DzvE2D-d.js +0 -307
  1006. package/dist/chunks/avatar.component-DzvE2D-d.js.map +0 -1
  1007. package/dist/chunks/avatarGroup.component-D-U0aMDv.js +0 -71
  1008. package/dist/chunks/avatarGroup.component-D-U0aMDv.js.map +0 -1
  1009. package/dist/chunks/avatarGroup.component-DES1ekL9.js +0 -2
  1010. package/dist/chunks/avatarGroup.component-DES1ekL9.js.map +0 -1
  1011. package/dist/chunks/button.component-BiW8RE1U.js +0 -67
  1012. package/dist/chunks/button.component-BiW8RE1U.js.map +0 -1
  1013. package/dist/chunks/button.component-Dufh_y5v.js +0 -2
  1014. package/dist/chunks/button.component-Dufh_y5v.js.map +0 -1
  1015. package/dist/chunks/buttonGroup.component-DcCHtB7Q.js +0 -67
  1016. package/dist/chunks/buttonGroup.component-DcCHtB7Q.js.map +0 -1
  1017. package/dist/chunks/buttonGroup.component-sM0NngWF.js +0 -2
  1018. package/dist/chunks/buttonGroup.component-sM0NngWF.js.map +0 -1
  1019. package/dist/chunks/card.component-HX-4Y0j7.js +0 -51
  1020. package/dist/chunks/card.component-HX-4Y0j7.js.map +0 -1
  1021. package/dist/chunks/card.component-ZIoJIWVV.js +0 -2
  1022. package/dist/chunks/card.component-ZIoJIWVV.js.map +0 -1
  1023. package/dist/chunks/chakra-BqBkjpvZ.js +0 -12734
  1024. package/dist/chunks/chakra-BqBkjpvZ.js.map +0 -1
  1025. package/dist/chunks/chakra-DmF8Cxqs.js +0 -5
  1026. package/dist/chunks/chakra-DmF8Cxqs.js.map +0 -1
  1027. package/dist/chunks/characterCounter.component-BXxyn_IB.js +0 -2
  1028. package/dist/chunks/characterCounter.component-BXxyn_IB.js.map +0 -1
  1029. package/dist/chunks/characterCounter.component-DhiMcztY.js +0 -108
  1030. package/dist/chunks/characterCounter.component-DhiMcztY.js.map +0 -1
  1031. package/dist/chunks/checkbox.component-DQVpdkqO.js +0 -2
  1032. package/dist/chunks/checkbox.component-DQVpdkqO.js.map +0 -1
  1033. package/dist/chunks/checkbox.component-DgyH37fL.js +0 -90
  1034. package/dist/chunks/checkbox.component-DgyH37fL.js.map +0 -1
  1035. package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
  1036. package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
  1037. package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
  1038. package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
  1039. package/dist/chunks/checkboxGroup.component-C8cndZPg.js +0 -51
  1040. package/dist/chunks/checkboxGroup.component-C8cndZPg.js.map +0 -1
  1041. package/dist/chunks/checkboxGroup.component-CcjCexJ4.js +0 -2
  1042. package/dist/chunks/checkboxGroup.component-CcjCexJ4.js.map +0 -1
  1043. package/dist/chunks/conversationCard.component-CcWQpwrW.js +0 -2
  1044. package/dist/chunks/conversationCard.component-CcWQpwrW.js.map +0 -1
  1045. package/dist/chunks/conversationCard.component-DKIHpfpL.js +0 -383
  1046. package/dist/chunks/conversationCard.component-DKIHpfpL.js.map +0 -1
  1047. package/dist/chunks/date-1NFv48Qu.js +0 -3598
  1048. package/dist/chunks/date-1NFv48Qu.js.map +0 -1
  1049. package/dist/chunks/date-Du64Exix.js +0 -15
  1050. package/dist/chunks/date-Du64Exix.js.map +0 -1
  1051. package/dist/chunks/datePicker.component-BthgWsMj.js +0 -2
  1052. package/dist/chunks/datePicker.component-BthgWsMj.js.map +0 -1
  1053. package/dist/chunks/datePicker.component-Q_KcgvIw.js +0 -749
  1054. package/dist/chunks/datePicker.component-Q_KcgvIw.js.map +0 -1
  1055. package/dist/chunks/dnd-4IMP_kRN.js +0 -6
  1056. package/dist/chunks/dnd-4IMP_kRN.js.map +0 -1
  1057. package/dist/chunks/dnd-DDR6viHX.js +0 -3236
  1058. package/dist/chunks/dnd-DDR6viHX.js.map +0 -1
  1059. package/dist/chunks/heading.component-B8niLTxz.js +0 -10
  1060. package/dist/chunks/heading.component-B8niLTxz.js.map +0 -1
  1061. package/dist/chunks/heading.component-CExbjSBi.js +0 -2
  1062. package/dist/chunks/heading.component-CExbjSBi.js.map +0 -1
  1063. package/dist/chunks/icon.component-B-BWWGO3.js +0 -42
  1064. package/dist/chunks/icon.component-B-BWWGO3.js.map +0 -1
  1065. package/dist/chunks/icon.component-Bmtf4XKw.js +0 -2
  1066. package/dist/chunks/icon.component-Bmtf4XKw.js.map +0 -1
  1067. package/dist/chunks/link.component-COhBuuX3.js +0 -58
  1068. package/dist/chunks/link.component-COhBuuX3.js.map +0 -1
  1069. package/dist/chunks/link.component-DZnXQz1W.js +0 -2
  1070. package/dist/chunks/link.component-DZnXQz1W.js.map +0 -1
  1071. package/dist/chunks/menu.component-BEj878EN.js +0 -2
  1072. package/dist/chunks/menu.component-BEj878EN.js.map +0 -1
  1073. package/dist/chunks/menu.component-CR9SH_jk.js +0 -390
  1074. package/dist/chunks/menu.component-CR9SH_jk.js.map +0 -1
  1075. package/dist/chunks/modal.types-ChWBgALC.js +0 -146
  1076. package/dist/chunks/modal.types-ChWBgALC.js.map +0 -1
  1077. package/dist/chunks/modal.types-CofEmV4v.js +0 -2
  1078. package/dist/chunks/modal.types-CofEmV4v.js.map +0 -1
  1079. package/dist/chunks/notificationCounter.component-BH6anjzq.js +0 -2
  1080. package/dist/chunks/notificationCounter.component-BH6anjzq.js.map +0 -1
  1081. package/dist/chunks/notificationCounter.component-CSuqzMTF.js +0 -124
  1082. package/dist/chunks/notificationCounter.component-CSuqzMTF.js.map +0 -1
  1083. package/dist/chunks/popover.component-C1e_jTLD.js +0 -2
  1084. package/dist/chunks/popover.component-C1e_jTLD.js.map +0 -1
  1085. package/dist/chunks/popover.component-CzYfOF7z.js +0 -221
  1086. package/dist/chunks/popover.component-CzYfOF7z.js.map +0 -1
  1087. package/dist/chunks/popover.recipe-DnCuZJd3.js +0 -123
  1088. package/dist/chunks/popover.recipe-DnCuZJd3.js.map +0 -1
  1089. package/dist/chunks/popover.recipe-Pfz3evii.js +0 -2
  1090. package/dist/chunks/popover.recipe-Pfz3evii.js.map +0 -1
  1091. package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
  1092. package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
  1093. package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
  1094. package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
  1095. package/dist/chunks/radioGroup.component-B1ZdhI8z.js +0 -2
  1096. package/dist/chunks/radioGroup.component-B1ZdhI8z.js.map +0 -1
  1097. package/dist/chunks/radioGroup.component-CsmHziwM.js +0 -151
  1098. package/dist/chunks/radioGroup.component-CsmHziwM.js.map +0 -1
  1099. package/dist/chunks/ratingDots.component-DFHojz_X.js +0 -155
  1100. package/dist/chunks/ratingDots.component-DFHojz_X.js.map +0 -1
  1101. package/dist/chunks/ratingDots.component-HugaFu0D.js +0 -2
  1102. package/dist/chunks/ratingDots.component-HugaFu0D.js.map +0 -1
  1103. package/dist/chunks/select.component-HI7aJx11.js +0 -129
  1104. package/dist/chunks/select.component-HI7aJx11.js.map +0 -1
  1105. package/dist/chunks/select.component-h5lPMmWB.js +0 -2
  1106. package/dist/chunks/select.component-h5lPMmWB.js.map +0 -1
  1107. package/dist/chunks/sortableList.component-B2hSRuex.js +0 -2
  1108. package/dist/chunks/sortableList.component-B2hSRuex.js.map +0 -1
  1109. package/dist/chunks/sortableList.component-DAIHsGEA.js +0 -145
  1110. package/dist/chunks/sortableList.component-DAIHsGEA.js.map +0 -1
  1111. package/dist/chunks/spinner.component-CUuidnSK.js +0 -2
  1112. package/dist/chunks/spinner.component-CUuidnSK.js.map +0 -1
  1113. package/dist/chunks/spinner.component-D5tkelNc.js +0 -177
  1114. package/dist/chunks/spinner.component-D5tkelNc.js.map +0 -1
  1115. package/dist/chunks/styledAvatar.types-Cj3j5vXC.js +0 -2
  1116. package/dist/chunks/styledAvatar.types-Cj3j5vXC.js.map +0 -1
  1117. package/dist/chunks/styledAvatar.types-DbSO8s7o.js +0 -64
  1118. package/dist/chunks/styledAvatar.types-DbSO8s7o.js.map +0 -1
  1119. package/dist/chunks/switch.component-B1fXLRiO.js +0 -53
  1120. package/dist/chunks/switch.component-B1fXLRiO.js.map +0 -1
  1121. package/dist/chunks/switch.component-PH9nS7eN.js +0 -2
  1122. package/dist/chunks/switch.component-PH9nS7eN.js.map +0 -1
  1123. package/dist/chunks/tabs.component-6iPTLCx6.js +0 -2
  1124. package/dist/chunks/tabs.component-6iPTLCx6.js.map +0 -1
  1125. package/dist/chunks/tabs.component-DaUZITBw.js +0 -87
  1126. package/dist/chunks/tabs.component-DaUZITBw.js.map +0 -1
  1127. package/dist/chunks/tag.component-A__B03TA.js +0 -66
  1128. package/dist/chunks/tag.component-A__B03TA.js.map +0 -1
  1129. package/dist/chunks/tag.component-BjOfy3Bw.js +0 -2
  1130. package/dist/chunks/tag.component-BjOfy3Bw.js.map +0 -1
  1131. package/dist/chunks/tagBlock.component-Bx_hcjU4.js +0 -2
  1132. package/dist/chunks/tagBlock.component-Bx_hcjU4.js.map +0 -1
  1133. package/dist/chunks/tagBlock.component-Ch60_R7X.js +0 -185
  1134. package/dist/chunks/tagBlock.component-Ch60_R7X.js.map +0 -1
  1135. package/dist/chunks/text.component-CBa_saMP.js +0 -2
  1136. package/dist/chunks/text.component-CBa_saMP.js.map +0 -1
  1137. package/dist/chunks/text.component-XYjOAc2s.js +0 -10
  1138. package/dist/chunks/text.component-XYjOAc2s.js.map +0 -1
  1139. package/dist/chunks/textInput.component-CdPvTnhj.js +0 -2
  1140. package/dist/chunks/textInput.component-CdPvTnhj.js.map +0 -1
  1141. package/dist/chunks/textInput.component-LjDvSnBy.js +0 -98
  1142. package/dist/chunks/textInput.component-LjDvSnBy.js.map +0 -1
  1143. package/dist/chunks/textarea.component-C7l9zJKx.js +0 -51
  1144. package/dist/chunks/textarea.component-C7l9zJKx.js.map +0 -1
  1145. package/dist/chunks/textarea.component-CKEdjCAq.js +0 -2
  1146. package/dist/chunks/textarea.component-CKEdjCAq.js.map +0 -1
  1147. package/dist/chunks/timePicker.component-BLYPjS1u.js +0 -2
  1148. package/dist/chunks/timePicker.component-BLYPjS1u.js.map +0 -1
  1149. package/dist/chunks/timePicker.component-DFT36RN_.js +0 -246
  1150. package/dist/chunks/timePicker.component-DFT36RN_.js.map +0 -1
  1151. package/dist/chunks/timeRange.component-CzJjkQzN.js +0 -2
  1152. package/dist/chunks/timeRange.component-CzJjkQzN.js.map +0 -1
  1153. package/dist/chunks/timeRange.component-KETq7cDb.js +0 -17
  1154. package/dist/chunks/timeRange.component-KETq7cDb.js.map +0 -1
  1155. package/dist/chunks/timestamp.component-CuqY4euh.js +0 -2
  1156. package/dist/chunks/timestamp.component-CuqY4euh.js.map +0 -1
  1157. package/dist/chunks/timestamp.component-D764INLm.js +0 -37
  1158. package/dist/chunks/timestamp.component-D764INLm.js.map +0 -1
  1159. package/dist/chunks/tooltip.component-C3v2m2T2.js +0 -70
  1160. package/dist/chunks/tooltip.component-C3v2m2T2.js.map +0 -1
  1161. package/dist/chunks/tooltip.component-qWFa28S5.js +0 -2
  1162. package/dist/chunks/tooltip.component-qWFa28S5.js.map +0 -1
  1163. package/dist/chunks/typography.records-BPYXVuvi.js +0 -2
  1164. package/dist/chunks/typography.records-BPYXVuvi.js.map +0 -1
  1165. package/dist/chunks/typography.records-CG4wIBxE.js +0 -24
  1166. package/dist/chunks/typography.records-CG4wIBxE.js.map +0 -1
  1167. package/dist/chunks/vendor-BBfll6i3.js +0 -11757
  1168. package/dist/chunks/vendor-BBfll6i3.js.map +0 -1
  1169. package/dist/chunks/vendor-D-x6W6ez.js +0 -57
  1170. package/dist/chunks/vendor-D-x6W6ez.js.map +0 -1
  1171. package/dist/chunks/withFormControl-C7uVEpxe.js +0 -2
  1172. package/dist/chunks/withFormControl-C7uVEpxe.js.map +0 -1
  1173. package/dist/chunks/withFormControl-DSNvvAPD.js +0 -149
  1174. package/dist/chunks/withFormControl-DSNvvAPD.js.map +0 -1
  1175. package/dist/chunks/withTruncation-BskZBBVs.js +0 -2
  1176. package/dist/chunks/withTruncation-BskZBBVs.js.map +0 -1
  1177. package/dist/chunks/withTruncation-C2xFKhgB.js +0 -74
  1178. package/dist/chunks/withTruncation-C2xFKhgB.js.map +0 -1
  1179. package/dist/cjs/patterns/ConversationCard/index.cjs +0 -2
  1180. package/dist/cjs/patterns/StyledAvatar/index.cjs +0 -2
  1181. package/dist/cjs/patterns/TagBlock/index.cjs +0 -2
  1182. package/dist/cjs/patterns/Timestamp/index.cjs +0 -2
  1183. package/dist/cjs/patterns/index.cjs +0 -2
  1184. package/dist/esm/patterns/ConversationCard/index.js +0 -5
  1185. package/dist/esm/patterns/StyledAvatar/index.js +0 -6
  1186. package/dist/esm/patterns/TagBlock/index.js +0 -6
  1187. package/dist/esm/patterns/Timestamp/index.js +0 -5
  1188. package/dist/esm/patterns/index.js +0 -13
  1189. package/dist/esm/patterns/index.js.map +0 -1
  1190. package/dist/types/components/Alert.d.ts +0 -3
  1191. package/dist/types/components/Avatar.d.ts +0 -3
  1192. package/dist/types/components/AvatarGroup.d.ts +0 -3
  1193. package/dist/types/components/Button.d.ts +0 -3
  1194. package/dist/types/components/ButtonGroup.d.ts +0 -3
  1195. package/dist/types/components/Card.d.ts +0 -3
  1196. package/dist/types/components/CharacterCounter.d.ts +0 -3
  1197. package/dist/types/components/Checkbox.d.ts +0 -3
  1198. package/dist/types/components/CheckboxGroup.d.ts +0 -3
  1199. package/dist/types/components/DatePicker.d.ts +0 -3
  1200. package/dist/types/components/Heading.d.ts +0 -3
  1201. package/dist/types/components/Icon/generated.d.ts +0 -3
  1202. package/dist/types/components/Icon.d.ts +0 -3
  1203. package/dist/types/components/Link.d.ts +0 -3
  1204. package/dist/types/components/Menu.d.ts +0 -3
  1205. package/dist/types/components/Modal.d.ts +0 -3
  1206. package/dist/types/components/NotificationCounter.d.ts +0 -3
  1207. package/dist/types/components/Picture.d.ts +0 -3
  1208. package/dist/types/components/Popover.d.ts +0 -3
  1209. package/dist/types/components/RadioGroup.d.ts +0 -3
  1210. package/dist/types/components/RatingDots.d.ts +0 -3
  1211. package/dist/types/components/Select.d.ts +0 -3
  1212. package/dist/types/components/SortableList.d.ts +0 -3
  1213. package/dist/types/components/Spinner.d.ts +0 -3
  1214. package/dist/types/components/Swatch.d.ts +0 -3
  1215. package/dist/types/components/Switch.d.ts +0 -3
  1216. package/dist/types/components/Tabs.d.ts +0 -3
  1217. package/dist/types/components/Tag.d.ts +0 -3
  1218. package/dist/types/components/Text.d.ts +0 -3
  1219. package/dist/types/components/TextInput.d.ts +0 -3
  1220. package/dist/types/components/Textarea.d.ts +0 -3
  1221. package/dist/types/components/TimePicker.d.ts +0 -3
  1222. package/dist/types/components/TimeRange.d.ts +0 -3
  1223. package/dist/types/components/Tooltip.d.ts +0 -3
  1224. package/dist/types/components.d.ts +0 -2
  1225. package/dist/types/hocs.d.ts +0 -2
  1226. package/dist/types/hooks.d.ts +0 -2
  1227. package/dist/types/patterns/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +0 -9
  1228. package/dist/types/patterns/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +0 -22
  1229. package/dist/types/patterns/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +0 -9
  1230. package/dist/types/patterns/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +0 -10
  1231. package/dist/types/patterns/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +0 -14
  1232. package/dist/types/patterns/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +0 -10
  1233. package/dist/types/patterns/ConversationCard/conversationCard.component.d.ts +0 -23
  1234. package/dist/types/patterns/ConversationCard/index.d.ts +0 -1
  1235. package/dist/types/patterns/ConversationCard.d.ts +0 -2
  1236. package/dist/types/patterns/StyledAvatar/index.d.ts +0 -2
  1237. package/dist/types/patterns/StyledAvatar/styledAvatar.component.d.ts +0 -7
  1238. package/dist/types/patterns/StyledAvatar.d.ts +0 -2
  1239. package/dist/types/patterns/TagBlock/index.d.ts +0 -2
  1240. package/dist/types/patterns/TagBlock/tagBlock.component.d.ts +0 -25
  1241. package/dist/types/patterns/TagBlock.d.ts +0 -2
  1242. package/dist/types/patterns/Timestamp/index.d.ts +0 -1
  1243. package/dist/types/patterns/Timestamp/timestamp.component.d.ts +0 -11
  1244. package/dist/types/patterns/Timestamp.d.ts +0 -2
  1245. package/dist/types/patterns/index.d.ts +0 -4
  1246. package/dist/types/patterns.d.ts +0 -2
  1247. package/dist/types/shared/types.d.ts +0 -2
  1248. package/dist/types/theme/semanticTokens.d.ts +0 -2
  1249. package/dist/types/theme/tokens/blurs.d.ts +0 -2
  1250. package/dist/types/theme/tokens/borders.d.ts +0 -2
  1251. package/dist/types/theme/tokens/colors.d.ts +0 -2
  1252. package/dist/types/theme/tokens/shadows.d.ts +0 -2
  1253. package/dist/types/theme/tokens/sizes.d.ts +0 -2
  1254. package/dist/types/theme/tokens/spacing.d.ts +0 -2
  1255. package/dist/types/theme/tokens/transitions.d.ts +0 -2
  1256. package/dist/types/theme/tokens/typography.d.ts +0 -2
  1257. package/dist/types/theme/tokens/zIndices.d.ts +0 -2
  1258. package/dist/types/theme/tokens.d.ts +0 -2
  1259. package/dist/types/theme.d.ts +0 -2
  1260. /package/dist/cjs/{patterns → components}/ConversationCard/index.cjs.map +0 -0
  1261. /package/dist/cjs/{patterns/StyledAvatar → components/Divider}/index.cjs.map +0 -0
  1262. /package/dist/cjs/{patterns/TagBlock → components/Logo/generated}/index.cjs.map +0 -0
  1263. /package/dist/cjs/{patterns/Timestamp → components/Logo}/index.cjs.map +0 -0
  1264. /package/dist/cjs/{patterns → components/PinInput}/index.cjs.map +0 -0
  1265. /package/dist/esm/{patterns → components}/ConversationCard/index.js.map +0 -0
  1266. /package/dist/esm/{patterns/StyledAvatar → components/Divider}/index.js.map +0 -0
  1267. /package/dist/esm/{patterns/TagBlock → components/Logo/generated}/index.js.map +0 -0
  1268. /package/dist/esm/{patterns/Timestamp → components/Logo}/index.js.map +0 -0
@@ -0,0 +1,3 @@
1
+ "use strict";var ye=e=>Math.max(0,Math.min(1,e)),ct=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),ee=(...e)=>t=>e.reduce((n,r)=>r(n),t),C=()=>{},H=e=>typeof e=="object"&&e!==null,ut=2147483647,lt=e=>e?"":void 0,ft=e=>e?"true":void 0,dt=1,pt=9,mt=11,v=e=>H(e)&&e.nodeType===dt&&typeof e.nodeName=="string",se=e=>H(e)&&e.nodeType===pt,ht=e=>H(e)&&e===e.window,Ie=e=>v(e)?e.localName||"":"#document";function yt(e){return["html","body","#document"].includes(Ie(e))}var gt=e=>H(e)&&e.nodeType!==void 0,R=e=>gt(e)&&e.nodeType===mt&&"host"in e,vt=e=>v(e)&&e.localName==="input",bt=e=>!!e?.matches("a[href]"),Et=e=>v(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,wt=/(textarea|select)/;function Le(e){if(e==null||!v(e))return!1;try{return vt(e)&&e.selectionStart!=null||wt.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function V(e,t){if(!e||!t||!v(e)||!v(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&R(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function D(e){return se(e)?e:ht(e)?e.document:e?.ownerDocument??document}function At(e){return D(e).documentElement}function A(e){return R(e)?A(e.host):se(e)?e.defaultView??window:v(e)?e.ownerDocument?.defaultView??window:window}function Ne(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function kt(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||R(e)&&e.host||At(e);return R(t)?t.host:t}var te=new WeakMap;function Tt(e){return te.has(e)||te.set(e,A(e).getComputedStyle(e)),te.get(e)}function Pt(e,t){const{type:n,quality:r=.92,background:o}=t;if(!e)throw new Error("[zag-js > getDataUrl]: Could not find the svg element");const i=A(e),s=i.document,a=e.getBoundingClientRect(),u=e.cloneNode(!0);u.hasAttribute("viewBox")||u.setAttribute("viewBox",`0 0 ${a.width} ${a.height}`);const m=`<?xml version="1.0" standalone="no"?>\r
2
+ `+new i.XMLSerializer().serializeToString(u),h="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(m);if(n==="image/svg+xml")return Promise.resolve(h).then(T=>(u.remove(),T));const f=i.devicePixelRatio||1,c=s.createElement("canvas"),d=new i.Image;d.src=h,c.width=a.width*f,c.height=a.height*f;const b=c.getContext("2d");return(n==="image/jpeg"||o)&&(b.fillStyle=o||"white",b.fillRect(0,0,c.width,c.height)),new Promise(T=>{d.onload=()=>{b?.drawImage(d,0,0,c.width,c.height),T(c.toDataURL(n,r)),u.remove()}})}var X=()=>typeof document<"u";function xt(){return navigator.userAgentData?.platform??navigator.platform}function St(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ae=e=>X()&&e.test(xt()),De=e=>X()&&e.test(St()),It=e=>X()&&e.test(navigator.vendor),ge=()=>X()&&!!navigator.maxTouchPoints,Lt=()=>ae(/^iPhone/i),Nt=()=>ae(/^iPad/i)||G()&&navigator.maxTouchPoints>1,Y=()=>Lt()||Nt(),ce=()=>G()||Y(),G=()=>ae(/^Mac/i),Dt=()=>ce()&&It(/apple/i),Vt=()=>De(/Firefox/i),Ot=()=>De(/Android/i);function Mt(e){const{selectionStart:t,selectionEnd:n,value:r}=e.currentTarget;return r.slice(0,t)+e.data+r.slice(n)}function Ct(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function O(e){return Ct(e)?.[0]??e.target}var Bt=e=>V(e.currentTarget,O(e));function Rt(e){const t=e.currentTarget;if(!t)return!1;const n=ce();if(n&&!e.metaKey||!n&&!e.ctrlKey)return!1;const r=t.localName;return r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit"}function Ft(e){const t=e.currentTarget;if(!t)return!1;const n=t.localName;return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function Kt(e){return Oe(e).isComposing||e.keyCode===229}function jt(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function qt(e){return e.mozInputSource===0&&e.isTrusted?!0:Ot()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var _t=e=>e.button===0,Ve=e=>e.button===2||G()&&e.ctrlKey&&e.button===0,$t=e=>e.ctrlKey||e.altKey||e.metaKey,Wt=e=>"touches"in e&&e.touches.length>0,Ut={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},ve={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function zt(e,t={}){const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=Ut[o]??o,n==="rtl"&&r==="horizontal"&&o in ve&&(o=ve[o]),o}function Oe(e){return e.nativeEvent??e}var Ht=new Set(["PageUp","PageDown"]),Xt=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function Yt(e){return e.ctrlKey||e.metaKey?.1:Ht.has(e.key)||e.shiftKey&&Xt.has(e.key)?10:1}function ue(e,t="client"){const n=Wt(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var y=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function Me(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=A(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Gt(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ce(e,t,n="value"){if(!e)return;const r=Gt(e);r&&Me(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function Be(e,t){if(!e)return;Me(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Zt(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(Ce(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Jt(e,t){const{checked:n,bubbles:r=!0}=t;if(!e)return;const o=A(e);e instanceof o.HTMLInputElement&&(Be(e,n),e.dispatchEvent(new o.Event("click",{bubbles:r})))}function Qt(e){return en(e)?e.form:e.closest("form")}function en(e){return e.matches("textarea, input, select, button")}function tn(e,t){if(!e)return;const n=Qt(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function nn(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=A(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function rn(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[tn(e,r),nn(e,n)];return()=>o.forEach(i=>i?.())}var Re=e=>v(e)&&e.tagName==="IFRAME",on=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),sn=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,le="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Fe=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(le));(t==!0||t=="if-empty"&&n.length===0)&&v(e)&&F(e)&&n.unshift(e);const o=n.filter(F);return o.forEach((i,s)=>{if(Re(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Fe(a))}}),o};function F(e){return!e||e.closest("[inert]")?!1:e.matches(le)&&Et(e)}function j(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(le)),r=n.filter(ne);return t&&ne(e)&&r.unshift(e),r.forEach((o,i)=>{if(Re(o)&&o.contentDocument){const s=o.contentDocument.body,a=j(s);r.splice(i,1,...a)}}),!r.length&&t?n:r}function ne(e){return e!=null&&e.tabIndex>0?!0:F(e)&&!sn(e)}function Ke(e,t){const n=j(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function an(e,t){const n=j(e),r=e?.ownerDocument||document,o=t??r.activeElement;if(!o)return null;const i=n.indexOf(o);return n[i+1]||null}function cn(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Le(e))&&!on(e)?0:e.tabIndex}function un(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=j(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function ln(e){const t=e.currentTarget;if(!t)return!1;const[n,r]=Ke(t),o=t.ownerDocument||document;return!(o.activeElement===n&&e.shiftKey||o.activeElement===r&&!e.shiftKey||!n&&!r)}function je(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function k(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function fn(e,t,n){const r=k(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function dn(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function pn(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(dn(i,t))})),()=>{o.forEach(i=>i?.())}}function mn(e,t){const{callback:n}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,o=new r.MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function hn(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(mn(i,t))})),()=>{o.forEach(i=>i?.())}}function yn(e){const t=()=>e.click();Vt()?fn(e,"keyup",t):queueMicrotask(t)}function re(e){const t=kt(e);return yt(t)?D(t).body:v(t)&&qe(t)?t:re(t)}var gn=/auto|scroll|overlay|hidden|clip/;function qe(e){const t=A(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return gn.test(n+o+r)&&!["inline","contents"].includes(i)}function vn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function bn(e,t){const{rootEl:n,...r}=t||{};!e||!n||!qe(n)||!vn(n)||e.scrollIntoView(r)}function En(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:ye(s.x/o),y:ye(s.y/i)};function u(l={}){const{dir:m="ltr",orientation:h="horizontal",inverted:f}=l,c=typeof f=="object"?f.x:f,d=typeof f=="object"?f.y:f;return h==="horizontal"?m==="rtl"||c?1-a.x:a.x:d?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:u}}function wn(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(u){o(),console.error("PointerLock error occurred:",u),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[y(e,"pointerlockchange",i,!1),y(e,"pointerlockerror",s,!1)];return()=>{a.forEach(u=>u()),e.exitPointerLock()}}var B="default",oe="",_=new WeakMap;function An(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Y()?(B==="default"&&(oe=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),B="disabled"):t&&(_.set(t,t.style.userSelect),t.style.userSelect="none"),()=>kn({target:t,doc:r})}function kn(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Y()){if(B!=="disabled")return;B="restoring",setTimeout(()=>{je(()=>{B==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=oe||""),oe="",B="default")})},300)}else if(t&&_.has(t)){const i=_.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),_.delete(t)}}function _e(e={}){const{defer:t,target:n,...r}=e,o=t?k:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(An({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function Tn(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[y(e,"pointermove",s=>{const a=ue(s),u=Math.sqrt(a.x**2+a.y**2),l=s.pointerType==="touch"?10:5;if(!(u<l)){if(s.pointerType==="mouse"&&s.button===0){r();return}n({point:a,event:s})}},!1),y(e,"pointerup",r,!1),y(e,"pointercancel",r,!1),y(e,"contextmenu",r,!1),_e({doc:e})];return()=>{i.forEach(s=>s())}}function Pn(e){const{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:o,onPressEnd:i,isValidKey:s=p=>p.key==="Enter"}=e;if(!t)return C;const a=A(t),u=D(t);let l=C,m=C,h=C;const f=p=>({point:ue(p),event:p});function c(p){o?.(f(p))}function d(p){i?.(f(p))}const T=y(t,"pointerdown",p=>{m();const I=y(a,"pointerup",x=>{const N=O(x);V(t,N)?r?.(f(x)):i?.(f(x))},{passive:!r,once:!0}),P=y(a,"pointercancel",d,{passive:!i,once:!0});m=ee(I,P),u.activeElement===n&&p.pointerType==="mouse"&&p.preventDefault(),c(p)},{passive:!o}),S=y(n,"focus",g);l=ee(T,S);function g(){const p=x=>{if(!s(x))return;const N=st=>{if(!s(st))return;const at=new a.PointerEvent("pointerup"),he=f(at);r?.(he),i?.(he)};m(),m=y(n,"keyup",N);const Q=new a.PointerEvent("pointerdown");c(Q)},E=()=>{const x=new a.PointerEvent("pointercancel");d(x)},I=y(n,"keydown",p),P=y(n,"blur",E);h=ee(I,P)}return()=>{l(),m(),h()}}function xn(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o}=t,i=e?.ownerDocument||document,s=i.body;function a(u){if(u.key!=="Tab")return;let l=null;const[m,h]=Ke(e,!0),f=an(s,n),c=!m&&!h;u.shiftKey&&f===i.activeElement?(o?.(),l=h):u.shiftKey&&(i.activeElement===m||c)?l=n:!u.shiftKey&&i.activeElement===n?(o?.(),l=m):!u.shiftKey&&(i.activeElement===h||c)&&(l=f),l&&(u.preventDefault(),typeof r=="function"?r(l):l.focus())}return y(i,"keydown",a,!0)}function Sn(e,t){const{defer:n,triggerElement:r,...o}=t,i=n?k:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,u=typeof r=="function"?r():r;s.push(xn(a,{triggerElement:u,...o}))})),()=>{s.forEach(a=>a?.())}}function In(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Ln(e,t){return e?.querySelector(t)??null}var fe=e=>e.id;function $e(e,t,n=fe){return e.find(r=>n(r)===t)}function de(e,t,n=fe){const r=$e(e,t,n);return r?e.indexOf(r):-1}function Nn(e,t,n=!0){let r=de(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Dn(e,t,n=!0){let r=de(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function Vn(e,t){const{onEntry:n,measure:r,box:o="border-box"}=t,i=(Array.isArray(e)?e:[e]).filter(v),s=A(i[0]),a=l=>{const m=i.map(h=>r(h));n({rects:m,entries:l})};a([]);const u=new s.ResizeObserver(a);return i.forEach(l=>u.observe(l,{box:o})),()=>u.disconnect()}var On=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Mn=e=>On(e.dataset?.valuetext??e.textContent??""),Cn=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Bn(e,t,n,r=fe){const o=n?de(e,n,r):-1;let i=n?ct(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>Cn(Mn(a),t))}function We(e,t){if(!e)return C;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Rn(e,t,n){if(!e)return C;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Fn(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,l=a.length>1&&Array.from(a).every(d=>d===a[0])?a[0]:a;let m=e.slice();const h=Bn(m,l,r,s);function f(){clearTimeout(n.timer),n.timer=-1}function c(d){n.keysSoFar=d,f(),d!==""&&(n.timer=+setTimeout(()=>{c(""),f()},i))}return c(a),h}var Kn=Object.assign(Fn,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:jn});function jn(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var qn={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},_n=1e3/60;function $n(e,t){const n=e();if(v(n)&&n.isConnected)return t(n),()=>{};{const r=setInterval(()=>{const o=e();v(o)&&o.isConnected&&(t(o),clearInterval(r))},_n);return()=>clearInterval(r)}}function Wn(e,t){const n=[];return e?.forEach(r=>{const o=$n(r,t);n.push(o)}),()=>{n.forEach(r=>r())}}function Un(e){return e?Array.isArray(e)?e:[e]:[]}var zn=e=>Array.from(Array(e).keys()),Hn=e=>e[0],Xn=e=>e[e.length-1],Yn=(e,t)=>e.indexOf(t)!==-1,Ue=(e,...t)=>e.concat(t),ze=(e,...t)=>e.filter(n=>!t.includes(n)),Gn=(e,t)=>Yn(e,t)?ze(e,t):Ue(e,t);function He(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Zn(e,t,n={}){return e[He(e,t,n)]}function Jn(e,t,n={}){const{step:r=1,loop:o=!0}=n;return He(e,t,{step:-r,loop:o})}function Qn(e,t,n={}){return e[Jn(e,t,n)]}function Xe(e){return e.reduce((t,n)=>Array.isArray(n)?t.concat(Xe(n)):t.concat(n),[])}var be=e=>e?.constructor.name==="Array",er=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Z(e[n],t[n]))return!1;return!0},Z=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(be(e)&&be(t))return er(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!Z(e[i],t[i]))return!1}return!0},tr=e=>Array.isArray(e),nr=e=>e!=null&&typeof e=="object",rr=e=>nr(e)&&!tr(e),or=e=>typeof e=="number"&&!Number.isNaN(e),$=e=>typeof e=="string",pe=e=>typeof e=="function",ir=e=>e==null,sr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ar=Function.prototype.toString;ar.call(Object);var cr=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,ur=e=>e(),lr=()=>{},U=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},fr=(()=>{let e=0;return()=>(e++,e.toString(36))})(),Ye=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,Ye),t?.()}},{floor:ie,abs:z,round:J,min:dr,max:pr,pow:mr,sign:hr}=Math,K=e=>Number.isNaN(e),L=e=>K(e)?0:e,yr=(e,t)=>(e%t+t)%t,gr=(e,t)=>(e%t+t)%t,vr=(e,t,n)=>e===0?n:t[e-1],br=(e,t,n)=>e===t.length-1?n:t[e+1],Er=(e,t)=>L(e)>=t,wr=(e,t)=>L(e)<=t,Ar=(e,t,n)=>L(e)>=t&&L(e)<=n,kr=(e,t,n)=>J((L(e)-t)/n)*n+t,Ge=(e,t,n)=>dr(pr(L(e),t),n),Tr=(e,t,n)=>(L(e)-t)/(n-t),Pr=(e,t,n,r)=>Ge(kr(e*(n-t)+t,t,r),t,n),q=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=mr(10,i);n=J(n*s)/s}return n},xr=(e,t)=>typeof t=="number"?ie(e*t+.5)/t:J(e),Ze=(e,t,n,r)=>{t=Number(t),n=Number(n);let o=(e-(K(t)?0:t))%r,i=q(z(o)*2>=r?e+hr(o)*(r-z(o)):e-o,r);return K(t)?!K(n)&&i>n&&(i=t+ie(q((n-t)/r,r))*r):i<t?i=t:!K(n)&&i>n&&(i=t+ie(q((n-t)/r,r))*r),q(i,r)},Je=(e,t,n)=>e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)];function Qe(e,t){const n=vr(e,t.values,t.min),r=br(e,t.values,t.max);let o=t.values.slice();return function(s){let a=Ze(s,n,r,t.step);return o=Je(o,e,s),o[e]=a,o}}function Sr(e,t){const n=t.values[e]+t.step;return Qe(e,t)(n)}function Ir(e,t){const n=t.values[e]-t.step;return Qe(e,t)(n)}var Lr=(e,t)=>{let n=e.findIndex(i=>t-i<0);if(n===0)return n;if(n===-1)return e.length-1;let r=e[n-1],o=e[n];return z(r-t)<z(o-t)?n-1:n},Nr=(e,t,n,r)=>e.map((o,i)=>({min:i===0?t:e[i-1]+r,max:i===e.length-1?n:e[i+1]-r,value:o})),Dr=(e,t)=>{const[n,r]=e,[o,i]=t;return s=>n===r||o===i?o:o+(i-o)/(r-n)*(s-n)},Vr=(e,t=0,n=10)=>{const r=Math.pow(n,t);return J(e*r)/r},Ee=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},et=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(Ee(e),Ee(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Or=(e,t)=>et(L(e),"+",t),Mr=(e,t)=>et(L(e),"-",t),Cr=e=>e!=null?`${e}px`:void 0;function tt(e){if(!Br(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=tt(o))}return n}var Br=e=>e&&typeof e=="object"&&e.constructor===Object;function Rr(e,t){const n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=o)}return n}function Fr(e,t){const n=performance.now();let r;function o(i){r=requestAnimationFrame(o),i-n>=t&&e()}return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)}function me(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function Kr(...e){const t=e.length===1?e[0]:e[1];if((e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production")throw new Error(t)}function jr(e,t){if(e==null)throw new Error(t())}function qr(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var _r=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),$r=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,we=e=>{const t={};let n;for(;n=$r.exec(e);)t[n[1]]=n[2];return t},Wr=(e,t)=>{if($(e)){if($(t))return`${e};${t}`;e=we(e)}else $(t)&&(t=we(t));return Object.assign({},e??{},t??{})};function Ur(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=U(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=_r(t[r],n[r]);continue}if(r==="style"){t[r]=Wr(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function zr(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((u,l)=>!Z(r[l],u)))&&(r=s,o=t(...s)),o}}function nt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function Hr(e){return e}function Xr(){return{guards:nt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var rt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(rt||{}),Yr="__init__";function Gr(e){const t=()=>e.getRootNode?.()??document,n=()=>D(t()),r=()=>n().defaultView??window,o=()=>Ne(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}var W=(e,t=[])=>({parts:(...n)=>{if(Zr(t))return W(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>W(e,[...t,...n]),rename:n=>W(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${M(e)}"][data-part="${M(r)}"]`,`& [data-scope="${M(e)}"][data-part="${M(r)}"]`].join(", "),attrs:{"data-scope":M(e),"data-part":M(r)}}}),{})}),M=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Zr=e=>e.length===0;function Jr(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&n(o)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function Qr(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Ae="pointerdown.outside",ke="focus.outside";function eo(e){for(const t of e)if(v(t)&&F(t))return!0;return!1}var ot=e=>"clientY"in e;function to(e,t){if(!ot(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function no(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Te(e,t){if(!t||!ot(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return no(s,a)?r||i:!1}function ro(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=D(e),u=A(e),l=Jr(u),m=Qr(u);function h(g,p){if(!v(p)||!p.isConnected||V(e,p)||to(e,g))return!1;const E=a.querySelector(`[aria-controls="${e.id}"]`);if(E){const P=re(E);if(Te(g,P))return!1}const I=re(e);return Te(g,I)?!1:!n?.(p)}const f=new Set,c=R(e?.getRootNode());function d(g){function p(E){const I=s&&!ge()?k:N=>N(),P=E??g,x=P?.composedPath?.()??[P?.target];I(()=>{const N=c?x[0]:O(g);if(!(!e||!h(g,N))){if(o||i){const Q=U(o,i);e.addEventListener(Ae,Q,{once:!0})}Pe(e,Ae,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:Ve(P),focusable:eo(x),target:N}})}})}g.pointerType==="touch"?(f.forEach(E=>E()),f.add(y(a,"click",p,{once:!0})),f.add(m.addEventListener("click",p,{once:!0})),f.add(l.addEventListener("click",p,{once:!0}))):p()}const b=new Set,T=setTimeout(()=>{b.add(y(a,"pointerdown",d,!0)),b.add(m.addEventListener("pointerdown",d,!0)),b.add(l.addEventListener("pointerdown",d,!0))},0);function S(g){(s?k:E=>E())(()=>{const E=O(g);if(!(!e||!h(g,E))){if(r||i){const I=U(r,i);e.addEventListener(ke,I,{once:!0})}Pe(e,ke,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,contextmenu:!1,focusable:F(E),target:E}})}})}return ge()||(b.add(y(a,"focusin",S,!0)),b.add(m.addEventListener("focusin",S,!0)),b.add(l.addEventListener("focusin",S,!0))),()=>{clearTimeout(T),f.forEach(g=>g()),b.forEach(g=>g())}}function it(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(ro(i,t))})),()=>{o.forEach(i=>i?.())}}function Pe(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function oo(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return y(D(e),"keydown",n,{capture:!0})}var w={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>V(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>V(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},xe;function Se(){w.layers.forEach(({node:e})=>{e.style.pointerEvents=w.isBelowPointerBlockingLayer(e)?"none":"auto"})}function io(e){e.style.pointerEvents=""}function so(e,t){const n=D(e),r=[];if(w.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(xe=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t){const o=Wn(t,i=>{r.push(We(i,{pointerEvents:"auto"}))});r.push(o)}return()=>{w.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=xe,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function ao(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){me("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:o,exclude:i,debug:s}=t,a={dismiss:r,node:e,pointerBlocking:o};w.add(a),Se();function u(c){const d=O(c.detail.originalEvent);w.isBelowPointerBlockingLayer(e)||w.isInBranch(d)||(t.onPointerDownOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onPointerDownOutside:",c.detail.originalEvent),r?.()))}function l(c){const d=O(c.detail.originalEvent);w.isInBranch(d)||(t.onFocusOutside?.(c),t.onInteractOutside?.(c),!c.defaultPrevented&&(s&&console.log("onFocusOutside:",c.detail.originalEvent),r?.()))}function m(c){w.isTopMost(e)&&(t.onEscapeKeyDown?.(c),!c.defaultPrevented&&r&&(c.preventDefault(),r()))}function h(c){if(!e)return!1;const d=typeof i=="function"?i():i,b=Array.isArray(d)?d:[d],T=t.persistentElements?.map(S=>S()).filter(v);return T&&b.push(...T),b.some(S=>V(S,c))||w.isInNestedLayer(e,c)}const f=[o?so(e,t.persistentElements):void 0,oo(e,m),it(e,{exclude:h,onFocusOutside:l,onPointerDownOutside:u,defer:t.defer})];return()=>{w.remove(e),Se(),io(e),f.forEach(c=>c?.())}}function co(e,t){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=pe(e)?e():e;o.push(ao(i,t))})),()=>{o.forEach(i=>i?.())}}function uo(e,t={}){const{defer:n}=t,r=n?k:i=>i(),o=[];return o.push(r(()=>{const i=pe(e)?e():e;if(!i){me("[@zag-js/dismissable] branch node is `null` or `undefined`");return}w.addBranch(i),o.push(()=>{w.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}exports.INIT_STATE=Yr;exports.MAX_Z_INDEX=ut;exports.MachineStatus=rt;exports.add=Ue;exports.addDomEvent=y;exports.addOrRemove=Gn;exports.ariaAttr=ft;exports.callAll=U;exports.clampValue=Ge;exports.clickIfLink=yn;exports.compact=tt;exports.contains=V;exports.createAnatomy=W;exports.createGuards=nt;exports.createMachine=Hr;exports.createScope=Gr;exports.dataAttr=lt;exports.decrementValue=Mr;exports.disableTextSelection=_e;exports.dispatchInputCheckedEvent=Jt;exports.dispatchInputValueEvent=Zt;exports.ensure=jr;exports.ensureProps=qr;exports.first=Hn;exports.flatArray=Xe;exports.fromLength=zn;exports.getActiveElement=Ne;exports.getBeforeInputValue=Mt;exports.getByTypeahead=Kn;exports.getClosestValueIndex=Lr;exports.getComputedStyle=Tt;exports.getDataUrl=Pt;exports.getDocument=D;exports.getEventKey=zt;exports.getEventPoint=ue;exports.getEventStep=Yt;exports.getEventTarget=O;exports.getFocusables=Fe;exports.getInitialFocus=un;exports.getNativeEvent=Oe;exports.getNextStepValue=Sr;exports.getPercentValue=Pr;exports.getPreviousStepValue=Ir;exports.getRelativePoint=En;exports.getTabIndex=cn;exports.getTabbables=j;exports.getValuePercent=Tr;exports.getValueRanges=Nr;exports.getValueTransformer=Dr;exports.getWindow=A;exports.hasProp=sr;exports.identity=ur;exports.incrementValue=Or;exports.invariant=Kr;exports.isAnchorElement=bt;exports.isApple=ce;exports.isComposingEvent=Kt;exports.isContextMenuEvent=Ve;exports.isDocument=se;exports.isDownloadingEvent=Ft;exports.isEditableElement=Le;exports.isEqual=Z;exports.isFocusable=F;exports.isFunction=pe;exports.isHTMLElement=v;exports.isIos=Y;exports.isLeftClick=_t;exports.isMac=G;exports.isModifierKey=$t;exports.isNull=ir;exports.isNumber=or;exports.isObject=rr;exports.isOpeningInNewTab=Rt;exports.isPrintableKey=jt;exports.isSafari=Dt;exports.isSelfTarget=Bt;exports.isShadowRoot=R;exports.isString=$;exports.isTabbable=ne;exports.isValidTabEvent=ln;exports.isValueAtMax=Er;exports.isValueAtMin=wr;exports.isValueWithinRange=Ar;exports.isVirtualClick=qt;exports.itemById=$e;exports.last=Xn;exports.memo=zr;exports.mergeProps=Ur;exports.mod=yr;exports.next=Zn;exports.nextById=Nn;exports.nextTick=je;exports.noop=lr;exports.observeAttributes=pn;exports.observeChildren=hn;exports.pick=Rr;exports.prev=Qn;exports.prevById=Dn;exports.proxyTabFocus=Sn;exports.query=Ln;exports.queryAll=In;exports.raf=k;exports.remove=ze;exports.requestPointerLock=wn;exports.roundToDpr=xr;exports.runIfFn=cr;exports.scrollIntoView=bn;exports.setElementChecked=Be;exports.setElementValue=Ce;exports.setRafTimeout=Fr;exports.setStyle=We;exports.setStyleProperty=Rn;exports.setValueAtIndex=Je;exports.setup=Xr;exports.snapValueToStep=Ze;exports.toArray=Un;exports.toFixedNumber=Vr;exports.toPx=Cr;exports.trackDismissableBranch=uo;exports.trackDismissableElement=co;exports.trackElementRect=Vn;exports.trackFormControl=rn;exports.trackInteractOutside=it;exports.trackPointerMove=Tn;exports.trackPress=Pn;exports.tryCatch=Ye;exports.uuid=fr;exports.visuallyHiddenStyle=qn;exports.warn=me;exports.wrap=gr;
3
+ //# sourceMappingURL=index-CHIISuTq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CHIISuTq.js","sources":["../../node_modules/@zag-js/dom-query/dist/index.mjs","../../node_modules/@zag-js/utils/dist/index.mjs","../../node_modules/@zag-js/core/dist/index.mjs","../../node_modules/@zag-js/anatomy/dist/index.mjs","../../node_modules/@zag-js/interact-outside/dist/index.mjs","../../node_modules/@zag-js/dismissable/dist/index.mjs"],"sourcesContent":["// src/caret.ts\nfunction isCaretAtStart(input) {\n if (!input) return false;\n try {\n return input.selectionStart === 0 && input.selectionEnd === 0;\n } catch {\n return input.value === \"\";\n }\n}\nfunction setCaretToEnd(input) {\n if (!input) return;\n const start = input.selectionStart ?? 0;\n const end = input.selectionEnd ?? 0;\n if (Math.abs(end - start) !== 0) return;\n if (start !== 0) return;\n input.setSelectionRange(input.value.length, input.value.length);\n}\n\n// src/shared.ts\nvar clamp = (value) => Math.max(0, Math.min(1, value));\nvar wrap = (v, idx) => {\n return v.map((_, index) => v[(Math.max(idx, 0) + index) % v.length]);\n};\nvar pipe = (...fns) => (arg) => fns.reduce((acc, fn) => fn(acc), arg);\nvar noop = () => void 0;\nvar isObject = (v) => typeof v === \"object\" && v !== null;\nvar MAX_Z_INDEX = 2147483647;\nvar dataAttr = (guard) => guard ? \"\" : void 0;\nvar ariaAttr = (guard) => guard ? \"true\" : void 0;\n\n// src/node.ts\nvar ELEMENT_NODE = 1;\nvar DOCUMENT_NODE = 9;\nvar DOCUMENT_FRAGMENT_NODE = 11;\nvar isHTMLElement = (el) => isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === \"string\";\nvar isDocument = (el) => isObject(el) && el.nodeType === DOCUMENT_NODE;\nvar isWindow = (el) => isObject(el) && el === el.window;\nvar isVisualViewport = (el) => isObject(el) && el.constructor.name === \"VisualViewport\";\nvar getNodeName = (node) => {\n if (isHTMLElement(node)) return node.localName || \"\";\n return \"#document\";\n};\nfunction isRootElement(node) {\n return [\"html\", \"body\", \"#document\"].includes(getNodeName(node));\n}\nvar isNode = (el) => isObject(el) && el.nodeType !== void 0;\nvar isShadowRoot = (el) => isNode(el) && el.nodeType === DOCUMENT_FRAGMENT_NODE && \"host\" in el;\nvar isInputElement = (el) => isHTMLElement(el) && el.localName === \"input\";\nvar isAnchorElement = (el) => !!el?.matches(\"a[href]\");\nvar isElementVisible = (el) => {\n if (!isHTMLElement(el)) return false;\n return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;\n};\nvar TEXTAREA_SELECT_REGEX = /(textarea|select)/;\nfunction isEditableElement(el) {\n if (el == null || !isHTMLElement(el)) return false;\n try {\n return isInputElement(el) && el.selectionStart != null || TEXTAREA_SELECT_REGEX.test(el.localName) || el.isContentEditable || el.getAttribute(\"contenteditable\") === \"true\" || el.getAttribute(\"contenteditable\") === \"\";\n } catch {\n return false;\n }\n}\nfunction contains(parent, child) {\n if (!parent || !child) return false;\n if (!isHTMLElement(parent) || !isHTMLElement(child)) return false;\n const rootNode = child.getRootNode?.();\n if (parent === child) return true;\n if (parent.contains(child)) return true;\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) return true;\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nfunction getDocument(el) {\n if (isDocument(el)) return el;\n if (isWindow(el)) return el.document;\n return el?.ownerDocument ?? document;\n}\nfunction getDocumentElement(el) {\n return getDocument(el).documentElement;\n}\nfunction getWindow(el) {\n if (isShadowRoot(el)) return getWindow(el.host);\n if (isDocument(el)) return el.defaultView ?? window;\n if (isHTMLElement(el)) return el.ownerDocument?.defaultView ?? window;\n return window;\n}\nfunction getActiveElement(rootNode) {\n let activeElement = rootNode.activeElement;\n while (activeElement?.shadowRoot) {\n const el = activeElement.shadowRoot.activeElement;\n if (el === activeElement) break;\n else activeElement = el;\n }\n return activeElement;\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === \"html\") return node;\n const result = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\n\n// src/computed-style.ts\nvar styleCache = /* @__PURE__ */ new WeakMap();\nfunction getComputedStyle(el) {\n if (!styleCache.has(el)) {\n styleCache.set(el, getWindow(el).getComputedStyle(el));\n }\n return styleCache.get(el);\n}\n\n// src/data-url.ts\nfunction getDataUrl(svg, opts) {\n const { type, quality = 0.92, background } = opts;\n if (!svg) throw new Error(\"[zag-js > getDataUrl]: Could not find the svg element\");\n const win = getWindow(svg);\n const doc = win.document;\n const svgBounds = svg.getBoundingClientRect();\n const svgClone = svg.cloneNode(true);\n if (!svgClone.hasAttribute(\"viewBox\")) {\n svgClone.setAttribute(\"viewBox\", `0 0 ${svgBounds.width} ${svgBounds.height}`);\n }\n const serializer = new win.XMLSerializer();\n const source = '<?xml version=\"1.0\" standalone=\"no\"?>\\r\\n' + serializer.serializeToString(svgClone);\n const svgString = \"data:image/svg+xml;charset=utf-8,\" + encodeURIComponent(source);\n if (type === \"image/svg+xml\") {\n return Promise.resolve(svgString).then((str) => {\n svgClone.remove();\n return str;\n });\n }\n const dpr = win.devicePixelRatio || 1;\n const canvas = doc.createElement(\"canvas\");\n const image = new win.Image();\n image.src = svgString;\n canvas.width = svgBounds.width * dpr;\n canvas.height = svgBounds.height * dpr;\n const context = canvas.getContext(\"2d\");\n if (type === \"image/jpeg\" || background) {\n context.fillStyle = background || \"white\";\n context.fillRect(0, 0, canvas.width, canvas.height);\n }\n return new Promise((resolve) => {\n image.onload = () => {\n context?.drawImage(image, 0, 0, canvas.width, canvas.height);\n resolve(canvas.toDataURL(type, quality));\n svgClone.remove();\n };\n });\n}\n\n// src/platform.ts\nvar isDom = () => typeof document !== \"undefined\";\nfunction getPlatform() {\n const agent = navigator.userAgentData;\n return agent?.platform ?? navigator.platform;\n}\nfunction getUserAgent() {\n const ua2 = navigator.userAgentData;\n if (ua2 && Array.isArray(ua2.brands)) {\n return ua2.brands.map(({ brand, version }) => `${brand}/${version}`).join(\" \");\n }\n return navigator.userAgent;\n}\nvar pt = (v) => isDom() && v.test(getPlatform());\nvar ua = (v) => isDom() && v.test(getUserAgent());\nvar vn = (v) => isDom() && v.test(navigator.vendor);\nvar isTouchDevice = () => isDom() && !!navigator.maxTouchPoints;\nvar isIPhone = () => pt(/^iPhone/i);\nvar isIPad = () => pt(/^iPad/i) || isMac() && navigator.maxTouchPoints > 1;\nvar isIos = () => isIPhone() || isIPad();\nvar isApple = () => isMac() || isIos();\nvar isMac = () => pt(/^Mac/i);\nvar isSafari = () => isApple() && vn(/apple/i);\nvar isFirefox = () => ua(/Firefox/i);\nvar isChrome = () => ua(/Chrome/i);\nvar isWebKit = () => ua(/AppleWebKit/i) && !isChrome();\nvar isAndroid = () => ua(/Android/i);\n\n// src/event.ts\nfunction getBeforeInputValue(event) {\n const { selectionStart, selectionEnd, value } = event.currentTarget;\n return value.slice(0, selectionStart) + event.data + value.slice(selectionEnd);\n}\nfunction getComposedPath(event) {\n return event.composedPath?.() ?? event.nativeEvent?.composedPath?.();\n}\nfunction getEventTarget(event) {\n const composedPath = getComposedPath(event);\n return composedPath?.[0] ?? event.target;\n}\nvar isSelfTarget = (event) => {\n return contains(event.currentTarget, getEventTarget(event));\n};\nfunction isOpeningInNewTab(event) {\n const element = event.currentTarget;\n if (!element) return false;\n const isAppleDevice = isApple();\n if (isAppleDevice && !event.metaKey) return false;\n if (!isAppleDevice && !event.ctrlKey) return false;\n const localName = element.localName;\n if (localName === \"a\") return true;\n if (localName === \"button\" && element.type === \"submit\") return true;\n if (localName === \"input\" && element.type === \"submit\") return true;\n return false;\n}\nfunction isDownloadingEvent(event) {\n const element = event.currentTarget;\n if (!element) return false;\n const localName = element.localName;\n if (!event.altKey) return false;\n if (localName === \"a\") return true;\n if (localName === \"button\" && element.type === \"submit\") return true;\n if (localName === \"input\" && element.type === \"submit\") return true;\n return false;\n}\nfunction isComposingEvent(event) {\n return getNativeEvent(event).isComposing || event.keyCode === 229;\n}\nfunction isKeyboardClick(e) {\n return e.detail === 0 || e.clientX === 0 && e.clientY === 0;\n}\nfunction isCtrlOrMetaKey(e) {\n if (isMac()) return e.metaKey;\n return e.ctrlKey;\n}\nfunction isPrintableKey(e) {\n return e.key.length === 1 && !e.ctrlKey && !e.metaKey;\n}\nfunction isVirtualPointerEvent(e) {\n return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === \"mouse\";\n}\nfunction isVirtualClick(e) {\n if (e.mozInputSource === 0 && e.isTrusted) return true;\n if (isAndroid() && e.pointerType) {\n return e.type === \"click\" && e.buttons === 1;\n }\n return e.detail === 0 && !e.pointerType;\n}\nvar isLeftClick = (e) => e.button === 0;\nvar isContextMenuEvent = (e) => {\n return e.button === 2 || isMac() && e.ctrlKey && e.button === 0;\n};\nvar isModifierKey = (e) => e.ctrlKey || e.altKey || e.metaKey;\nvar isTouchEvent = (event) => \"touches\" in event && event.touches.length > 0;\nvar keyMap = {\n Up: \"ArrowUp\",\n Down: \"ArrowDown\",\n Esc: \"Escape\",\n \" \": \"Space\",\n \",\": \"Comma\",\n Left: \"ArrowLeft\",\n Right: \"ArrowRight\"\n};\nvar rtlKeyMap = {\n ArrowLeft: \"ArrowRight\",\n ArrowRight: \"ArrowLeft\"\n};\nfunction getEventKey(event, options = {}) {\n const { dir = \"ltr\", orientation = \"horizontal\" } = options;\n let key = event.key;\n key = keyMap[key] ?? key;\n const isRtl = dir === \"rtl\" && orientation === \"horizontal\";\n if (isRtl && key in rtlKeyMap) key = rtlKeyMap[key];\n return key;\n}\nfunction getNativeEvent(event) {\n return event.nativeEvent ?? event;\n}\nvar pageKeys = /* @__PURE__ */ new Set([\"PageUp\", \"PageDown\"]);\nvar arrowKeys = /* @__PURE__ */ new Set([\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"]);\nfunction getEventStep(event) {\n if (event.ctrlKey || event.metaKey) {\n return 0.1;\n } else {\n const isPageKey = pageKeys.has(event.key);\n const isSkipKey = isPageKey || event.shiftKey && arrowKeys.has(event.key);\n return isSkipKey ? 10 : 1;\n }\n}\nfunction getEventPoint(event, type = \"client\") {\n const point = isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : event;\n return { x: point[`${type}X`], y: point[`${type}Y`] };\n}\nvar addDomEvent = (target, eventName, handler, options) => {\n const node = typeof target === \"function\" ? target() : target;\n node?.addEventListener(eventName, handler, options);\n return () => {\n node?.removeEventListener(eventName, handler, options);\n };\n};\n\n// src/form.ts\nfunction getDescriptor(el, options) {\n const { type = \"HTMLInputElement\", property = \"value\" } = options;\n const proto = getWindow(el)[type].prototype;\n return Object.getOwnPropertyDescriptor(proto, property) ?? {};\n}\nfunction getElementType(el) {\n if (el.localName === \"input\") return \"HTMLInputElement\";\n if (el.localName === \"textarea\") return \"HTMLTextAreaElement\";\n if (el.localName === \"select\") return \"HTMLSelectElement\";\n}\nfunction setElementValue(el, value, property = \"value\") {\n if (!el) return;\n const type = getElementType(el);\n if (type) {\n const descriptor = getDescriptor(el, { type, property });\n descriptor.set?.call(el, value);\n }\n el.setAttribute(property, value);\n}\nfunction setElementChecked(el, checked) {\n if (!el) return;\n const descriptor = getDescriptor(el, { type: \"HTMLInputElement\", property: \"checked\" });\n descriptor.set?.call(el, checked);\n if (checked) el.setAttribute(\"checked\", \"\");\n else el.removeAttribute(\"checked\");\n}\nfunction dispatchInputValueEvent(el, options) {\n const { value, bubbles = true } = options;\n if (!el) return;\n const win = getWindow(el);\n if (!(el instanceof win.HTMLInputElement)) return;\n setElementValue(el, `${value}`);\n el.dispatchEvent(new win.Event(\"input\", { bubbles }));\n}\nfunction dispatchInputCheckedEvent(el, options) {\n const { checked, bubbles = true } = options;\n if (!el) return;\n const win = getWindow(el);\n if (!(el instanceof win.HTMLInputElement)) return;\n setElementChecked(el, checked);\n el.dispatchEvent(new win.Event(\"click\", { bubbles }));\n}\nfunction getClosestForm(el) {\n return isFormElement(el) ? el.form : el.closest(\"form\");\n}\nfunction isFormElement(el) {\n return el.matches(\"textarea, input, select, button\");\n}\nfunction trackFormReset(el, callback) {\n if (!el) return;\n const form = getClosestForm(el);\n const onReset = (e) => {\n if (e.defaultPrevented) return;\n callback();\n };\n form?.addEventListener(\"reset\", onReset, { passive: true });\n return () => form?.removeEventListener(\"reset\", onReset);\n}\nfunction trackFieldsetDisabled(el, callback) {\n const fieldset = el?.closest(\"fieldset\");\n if (!fieldset) return;\n callback(fieldset.disabled);\n const win = getWindow(fieldset);\n const obs = new win.MutationObserver(() => callback(fieldset.disabled));\n obs.observe(fieldset, {\n attributes: true,\n attributeFilter: [\"disabled\"]\n });\n return () => obs.disconnect();\n}\nfunction trackFormControl(el, options) {\n if (!el) return;\n const { onFieldsetDisabledChange, onFormReset } = options;\n const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];\n return () => cleanups.forEach((cleanup) => cleanup?.());\n}\n\n// src/tabbable.ts\nvar isFrame = (el) => isHTMLElement(el) && el.tagName === \"IFRAME\";\nvar hasTabIndex = (el) => !Number.isNaN(parseInt(el.getAttribute(\"tabindex\") || \"0\", 10));\nvar hasNegativeTabIndex = (el) => parseInt(el.getAttribute(\"tabindex\") || \"0\", 10) < 0;\nvar focusableSelector = \"input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type\";\nvar getFocusables = (container, includeContainer = false) => {\n if (!container) return [];\n const elements = Array.from(container.querySelectorAll(focusableSelector));\n const include = includeContainer == true || includeContainer == \"if-empty\" && elements.length === 0;\n if (include && isHTMLElement(container) && isFocusable(container)) {\n elements.unshift(container);\n }\n const focusableElements = elements.filter(isFocusable);\n focusableElements.forEach((element, i) => {\n if (isFrame(element) && element.contentDocument) {\n const frameBody = element.contentDocument.body;\n focusableElements.splice(i, 1, ...getFocusables(frameBody));\n }\n });\n return focusableElements;\n};\nfunction isFocusable(element) {\n if (!element || element.closest(\"[inert]\")) return false;\n return element.matches(focusableSelector) && isElementVisible(element);\n}\nfunction getFirstFocusable(container, includeContainer) {\n const [first] = getFocusables(container, includeContainer);\n return first || null;\n}\nfunction getTabbables(container, includeContainer) {\n if (!container) return [];\n const elements = Array.from(container.querySelectorAll(focusableSelector));\n const tabbableElements = elements.filter(isTabbable);\n if (includeContainer && isTabbable(container)) {\n tabbableElements.unshift(container);\n }\n tabbableElements.forEach((element, i) => {\n if (isFrame(element) && element.contentDocument) {\n const frameBody = element.contentDocument.body;\n const allFrameTabbable = getTabbables(frameBody);\n tabbableElements.splice(i, 1, ...allFrameTabbable);\n }\n });\n if (!tabbableElements.length && includeContainer) {\n return elements;\n }\n return tabbableElements;\n}\nfunction isTabbable(el) {\n if (el != null && el.tabIndex > 0) return true;\n return isFocusable(el) && !hasNegativeTabIndex(el);\n}\nfunction getFirstTabbable(container, includeContainer) {\n const [first] = getTabbables(container, includeContainer);\n return first || null;\n}\nfunction getLastTabbable(container, includeContainer) {\n const elements = getTabbables(container, includeContainer);\n return elements[elements.length - 1] || null;\n}\nfunction getTabbableEdges(container, includeContainer) {\n const elements = getTabbables(container, includeContainer);\n const first = elements[0] || null;\n const last = elements[elements.length - 1] || null;\n return [first, last];\n}\nfunction getNextTabbable(container, current) {\n const tabbables = getTabbables(container);\n const doc = container?.ownerDocument || document;\n const currentElement = current ?? doc.activeElement;\n if (!currentElement) return null;\n const index = tabbables.indexOf(currentElement);\n return tabbables[index + 1] || null;\n}\nfunction getTabIndex(node) {\n if (node.tabIndex < 0) {\n if ((/^(audio|video|details)$/.test(node.localName) || isEditableElement(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n}\n\n// src/initial-focus.ts\nfunction getInitialFocus(options) {\n const { root, getInitialEl, filter, enabled = true } = options;\n if (!enabled) return;\n let node = null;\n node || (node = typeof getInitialEl === \"function\" ? getInitialEl() : getInitialEl);\n node || (node = root?.querySelector(\"[data-autofocus],[autofocus]\"));\n if (!node) {\n const tabbables = getTabbables(root);\n node = filter ? tabbables.filter(filter)[0] : tabbables[0];\n }\n return node || root || void 0;\n}\nfunction isValidTabEvent(event) {\n const container = event.currentTarget;\n if (!container) return false;\n const [firstTabbable, lastTabbable] = getTabbableEdges(container);\n const doc = container.ownerDocument || document;\n if (doc.activeElement === firstTabbable && event.shiftKey) return false;\n if (doc.activeElement === lastTabbable && !event.shiftKey) return false;\n if (!firstTabbable && !lastTabbable) return false;\n return true;\n}\n\n// src/raf.ts\nfunction nextTick(fn) {\n const set = /* @__PURE__ */ new Set();\n function raf2(fn2) {\n const id = globalThis.requestAnimationFrame(fn2);\n set.add(() => globalThis.cancelAnimationFrame(id));\n }\n raf2(() => raf2(fn));\n return function cleanup() {\n set.forEach((fn2) => fn2());\n };\n}\nfunction raf(fn) {\n let cleanup;\n const id = globalThis.requestAnimationFrame(() => {\n cleanup = fn();\n });\n return () => {\n globalThis.cancelAnimationFrame(id);\n cleanup?.();\n };\n}\nfunction queueBeforeEvent(el, type, cb) {\n const cancelTimer = raf(() => {\n el.removeEventListener(type, exec, true);\n cb();\n });\n const exec = () => {\n cancelTimer();\n cb();\n };\n el.addEventListener(type, exec, { once: true, capture: true });\n return cancelTimer;\n}\n\n// src/mutation-observer.ts\nfunction observeAttributesImpl(node, options) {\n if (!node) return;\n const { attributes, callback: fn } = options;\n const win = node.ownerDocument.defaultView || window;\n const obs = new win.MutationObserver((changes) => {\n for (const change of changes) {\n if (change.type === \"attributes\" && change.attributeName && attributes.includes(change.attributeName)) {\n fn(change);\n }\n }\n });\n obs.observe(node, { attributes: true, attributeFilter: attributes });\n return () => obs.disconnect();\n}\nfunction observeAttributes(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(observeAttributesImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction observeChildrenImpl(node, options) {\n const { callback: fn } = options;\n if (!node) return;\n const win = node.ownerDocument.defaultView || window;\n const obs = new win.MutationObserver(fn);\n obs.observe(node, { childList: true, subtree: true });\n return () => obs.disconnect();\n}\nfunction observeChildren(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(observeChildrenImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/navigate.ts\nfunction clickIfLink(el) {\n const click = () => el.click();\n if (isFirefox()) {\n queueBeforeEvent(el, \"keyup\", click);\n } else {\n queueMicrotask(click);\n }\n}\n\n// src/overflow.ts\nfunction getNearestOverflowAncestor(el) {\n const parentNode = getParentNode(el);\n if (isRootElement(parentNode)) return getDocument(parentNode).body;\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) return parentNode;\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(el, list = []) {\n const scrollableAncestor = getNearestOverflowAncestor(el);\n const isBody = scrollableAncestor === el.ownerDocument.body;\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));\n}\nvar getElementRect = (el) => {\n if (isHTMLElement(el)) return el.getBoundingClientRect();\n if (isVisualViewport(el)) return { top: 0, left: 0, bottom: el.height, right: el.width };\n return { top: 0, left: 0, bottom: el.innerHeight, right: el.innerWidth };\n};\nfunction isInView(el, ancestor) {\n if (!isHTMLElement(el)) return true;\n const ancestorRect = getElementRect(ancestor);\n const elRect = el.getBoundingClientRect();\n return elRect.top >= ancestorRect.top && elRect.left >= ancestorRect.left && elRect.bottom <= ancestorRect.bottom && elRect.right <= ancestorRect.right;\n}\nvar OVERFLOW_RE = /auto|scroll|overlay|hidden|clip/;\nfunction isOverflowElement(el) {\n const win = getWindow(el);\n const { overflow, overflowX, overflowY, display } = win.getComputedStyle(el);\n return OVERFLOW_RE.test(overflow + overflowY + overflowX) && ![\"inline\", \"contents\"].includes(display);\n}\nfunction isScrollable(el) {\n return el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth;\n}\nfunction scrollIntoView(el, options) {\n const { rootEl, ...scrollOptions } = options || {};\n if (!el || !rootEl) return;\n if (!isOverflowElement(rootEl) || !isScrollable(rootEl)) return;\n el.scrollIntoView(scrollOptions);\n}\nfunction getScrollPosition(element) {\n if (isHTMLElement(element)) {\n return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop };\n }\n return { scrollLeft: element.scrollX, scrollTop: element.scrollY };\n}\n\n// src/point.ts\nfunction getRelativePoint(point, element) {\n const { left, top, width, height } = element.getBoundingClientRect();\n const offset = { x: point.x - left, y: point.y - top };\n const percent = { x: clamp(offset.x / width), y: clamp(offset.y / height) };\n function getPercentValue(options = {}) {\n const { dir = \"ltr\", orientation = \"horizontal\", inverted } = options;\n const invertX = typeof inverted === \"object\" ? inverted.x : inverted;\n const invertY = typeof inverted === \"object\" ? inverted.y : inverted;\n if (orientation === \"horizontal\") {\n return dir === \"rtl\" || invertX ? 1 - percent.x : percent.x;\n }\n return invertY ? 1 - percent.y : percent.y;\n }\n return { offset, percent, getPercentValue };\n}\n\n// src/pointer-lock.ts\nfunction requestPointerLock(doc, fn) {\n const body = doc.body;\n const supported = \"pointerLockElement\" in doc || \"mozPointerLockElement\" in doc;\n const isLocked = () => !!doc.pointerLockElement;\n function onPointerChange() {\n fn?.(isLocked());\n }\n function onPointerError(event) {\n if (isLocked()) fn?.(false);\n console.error(\"PointerLock error occurred:\", event);\n doc.exitPointerLock();\n }\n if (!supported) return;\n try {\n body.requestPointerLock();\n } catch {\n }\n const cleanup = [\n addDomEvent(doc, \"pointerlockchange\", onPointerChange, false),\n addDomEvent(doc, \"pointerlockerror\", onPointerError, false)\n ];\n return () => {\n cleanup.forEach((cleanup2) => cleanup2());\n doc.exitPointerLock();\n };\n}\n\n// src/text-selection.ts\nvar state = \"default\";\nvar userSelect = \"\";\nvar elementMap = /* @__PURE__ */ new WeakMap();\nfunction disableTextSelectionImpl(options = {}) {\n const { target, doc } = options;\n const docNode = doc ?? document;\n const rootEl = docNode.documentElement;\n if (isIos()) {\n if (state === \"default\") {\n userSelect = rootEl.style.webkitUserSelect;\n rootEl.style.webkitUserSelect = \"none\";\n }\n state = \"disabled\";\n } else if (target) {\n elementMap.set(target, target.style.userSelect);\n target.style.userSelect = \"none\";\n }\n return () => restoreTextSelection({ target, doc: docNode });\n}\nfunction restoreTextSelection(options = {}) {\n const { target, doc } = options;\n const docNode = doc ?? document;\n const rootEl = docNode.documentElement;\n if (isIos()) {\n if (state !== \"disabled\") return;\n state = \"restoring\";\n setTimeout(() => {\n nextTick(() => {\n if (state === \"restoring\") {\n if (rootEl.style.webkitUserSelect === \"none\") {\n rootEl.style.webkitUserSelect = userSelect || \"\";\n }\n userSelect = \"\";\n state = \"default\";\n }\n });\n }, 300);\n } else {\n if (target && elementMap.has(target)) {\n const prevUserSelect = elementMap.get(target);\n if (target.style.userSelect === \"none\") {\n target.style.userSelect = prevUserSelect ?? \"\";\n }\n if (target.getAttribute(\"style\") === \"\") {\n target.removeAttribute(\"style\");\n }\n elementMap.delete(target);\n }\n }\n}\nfunction disableTextSelection(options = {}) {\n const { defer, target, ...restOptions } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof target === \"function\" ? target() : target;\n cleanups.push(disableTextSelectionImpl({ ...restOptions, target: node }));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/pointer-move.ts\nfunction trackPointerMove(doc, handlers) {\n const { onPointerMove, onPointerUp } = handlers;\n const handleMove = (event) => {\n const point = getEventPoint(event);\n const distance = Math.sqrt(point.x ** 2 + point.y ** 2);\n const moveBuffer = event.pointerType === \"touch\" ? 10 : 5;\n if (distance < moveBuffer) return;\n if (event.pointerType === \"mouse\" && event.button === 0) {\n onPointerUp();\n return;\n }\n onPointerMove({ point, event });\n };\n const cleanups = [\n addDomEvent(doc, \"pointermove\", handleMove, false),\n addDomEvent(doc, \"pointerup\", onPointerUp, false),\n addDomEvent(doc, \"pointercancel\", onPointerUp, false),\n addDomEvent(doc, \"contextmenu\", onPointerUp, false),\n disableTextSelection({ doc })\n ];\n return () => {\n cleanups.forEach((cleanup) => cleanup());\n };\n}\n\n// src/press.ts\nfunction trackPress(options) {\n const {\n pointerNode,\n keyboardNode = pointerNode,\n onPress,\n onPressStart,\n onPressEnd,\n isValidKey = (e) => e.key === \"Enter\"\n } = options;\n if (!pointerNode) return noop;\n const win = getWindow(pointerNode);\n const doc = getDocument(pointerNode);\n let removeStartListeners = noop;\n let removeEndListeners = noop;\n let removeAccessibleListeners = noop;\n const getInfo = (event) => ({\n point: getEventPoint(event),\n event\n });\n function startPress(event) {\n onPressStart?.(getInfo(event));\n }\n function cancelPress(event) {\n onPressEnd?.(getInfo(event));\n }\n const startPointerPress = (startEvent) => {\n removeEndListeners();\n const endPointerPress = (endEvent) => {\n const target = getEventTarget(endEvent);\n if (contains(pointerNode, target)) {\n onPress?.(getInfo(endEvent));\n } else {\n onPressEnd?.(getInfo(endEvent));\n }\n };\n const removePointerUpListener = addDomEvent(win, \"pointerup\", endPointerPress, { passive: !onPress, once: true });\n const removePointerCancelListener = addDomEvent(win, \"pointercancel\", cancelPress, {\n passive: !onPressEnd,\n once: true\n });\n removeEndListeners = pipe(removePointerUpListener, removePointerCancelListener);\n if (doc.activeElement === keyboardNode && startEvent.pointerType === \"mouse\") {\n startEvent.preventDefault();\n }\n startPress(startEvent);\n };\n const removePointerListener = addDomEvent(pointerNode, \"pointerdown\", startPointerPress, { passive: !onPressStart });\n const removeFocusListener = addDomEvent(keyboardNode, \"focus\", startAccessiblePress);\n removeStartListeners = pipe(removePointerListener, removeFocusListener);\n function startAccessiblePress() {\n const handleKeydown = (keydownEvent) => {\n if (!isValidKey(keydownEvent)) return;\n const handleKeyup = (keyupEvent) => {\n if (!isValidKey(keyupEvent)) return;\n const evt2 = new win.PointerEvent(\"pointerup\");\n const info = getInfo(evt2);\n onPress?.(info);\n onPressEnd?.(info);\n };\n removeEndListeners();\n removeEndListeners = addDomEvent(keyboardNode, \"keyup\", handleKeyup);\n const evt = new win.PointerEvent(\"pointerdown\");\n startPress(evt);\n };\n const handleBlur = () => {\n const evt = new win.PointerEvent(\"pointercancel\");\n cancelPress(evt);\n };\n const removeKeydownListener = addDomEvent(keyboardNode, \"keydown\", handleKeydown);\n const removeBlurListener = addDomEvent(keyboardNode, \"blur\", handleBlur);\n removeAccessibleListeners = pipe(removeKeydownListener, removeBlurListener);\n }\n return () => {\n removeStartListeners();\n removeEndListeners();\n removeAccessibleListeners();\n };\n}\n\n// src/proxy-tab-focus.ts\nfunction proxyTabFocusImpl(container, options = {}) {\n const { triggerElement, onFocus, onFocusEnter } = options;\n const doc = container?.ownerDocument || document;\n const body = doc.body;\n function onKeyDown(event) {\n if (event.key !== \"Tab\") return;\n let elementToFocus = null;\n const [firstTabbable, lastTabbable] = getTabbableEdges(container, true);\n const nextTabbableAfterTrigger = getNextTabbable(body, triggerElement);\n const noTabbableElements = !firstTabbable && !lastTabbable;\n if (event.shiftKey && nextTabbableAfterTrigger === doc.activeElement) {\n onFocusEnter?.();\n elementToFocus = lastTabbable;\n } else if (event.shiftKey && (doc.activeElement === firstTabbable || noTabbableElements)) {\n elementToFocus = triggerElement;\n } else if (!event.shiftKey && doc.activeElement === triggerElement) {\n onFocusEnter?.();\n elementToFocus = firstTabbable;\n } else if (!event.shiftKey && (doc.activeElement === lastTabbable || noTabbableElements)) {\n elementToFocus = nextTabbableAfterTrigger;\n }\n if (!elementToFocus) return;\n event.preventDefault();\n if (typeof onFocus === \"function\") {\n onFocus(elementToFocus);\n } else {\n elementToFocus.focus();\n }\n }\n return addDomEvent(doc, \"keydown\", onKeyDown, true);\n}\nfunction proxyTabFocus(container, options) {\n const { defer, triggerElement, ...restOptions } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof container === \"function\" ? container() : container;\n const trigger = typeof triggerElement === \"function\" ? triggerElement() : triggerElement;\n cleanups.push(proxyTabFocusImpl(node, { triggerElement: trigger, ...restOptions }));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\n// src/query.ts\nfunction queryAll(root, selector) {\n return Array.from(root?.querySelectorAll(selector) ?? []);\n}\nfunction query(root, selector) {\n return root?.querySelector(selector) ?? null;\n}\nvar defaultItemToId = (v) => v.id;\nfunction itemById(v, id, itemToId = defaultItemToId) {\n return v.find((item) => itemToId(item) === id);\n}\nfunction indexOfId(v, id, itemToId = defaultItemToId) {\n const item = itemById(v, id, itemToId);\n return item ? v.indexOf(item) : -1;\n}\nfunction nextById(v, id, loop = true) {\n let idx = indexOfId(v, id);\n idx = loop ? (idx + 1) % v.length : Math.min(idx + 1, v.length - 1);\n return v[idx];\n}\nfunction prevById(v, id, loop = true) {\n let idx = indexOfId(v, id);\n if (idx === -1) return loop ? v[v.length - 1] : null;\n idx = loop ? (idx - 1 + v.length) % v.length : Math.max(0, idx - 1);\n return v[idx];\n}\n\n// src/resize-observer.ts\nfunction trackElementRect(elements, options) {\n const { onEntry, measure, box = \"border-box\" } = options;\n const elems = (Array.isArray(elements) ? elements : [elements]).filter(isHTMLElement);\n const win = getWindow(elems[0]);\n const trigger = (entries) => {\n const rects = elems.map((el) => measure(el));\n onEntry({ rects, entries });\n };\n trigger([]);\n const obs = new win.ResizeObserver(trigger);\n elems.forEach((el) => obs.observe(el, { box }));\n return () => obs.disconnect();\n}\n\n// src/scope.ts\nfunction createScope(methods) {\n const dom = {\n getRootNode: (ctx) => ctx.getRootNode?.() ?? document,\n getDoc: (ctx) => getDocument(dom.getRootNode(ctx)),\n getWin: (ctx) => dom.getDoc(ctx).defaultView ?? window,\n getActiveElement: (ctx) => getActiveElement(dom.getRootNode(ctx)),\n isActiveElement: (ctx, elem) => elem === dom.getActiveElement(ctx),\n getById: (ctx, id) => dom.getRootNode(ctx).getElementById(id),\n setValue: (elem, value) => {\n if (elem == null || value == null) return;\n setElementValue(elem, value.toString());\n }\n };\n return { ...dom, ...methods };\n}\n\n// src/searchable.ts\nvar sanitize = (str) => str.split(\"\").map((char) => {\n const code = char.charCodeAt(0);\n if (code > 0 && code < 128) return char;\n if (code >= 128 && code <= 255) return `/x${code.toString(16)}`.replace(\"/\", \"\\\\\");\n return \"\";\n}).join(\"\").trim();\nvar getValueText = (el) => {\n return sanitize(el.dataset?.valuetext ?? el.textContent ?? \"\");\n};\nvar match = (valueText, query2) => {\n return valueText.trim().toLowerCase().startsWith(query2.toLowerCase());\n};\nfunction getByText(v, text, currentId, itemToId = defaultItemToId) {\n const index = currentId ? indexOfId(v, currentId, itemToId) : -1;\n let items = currentId ? wrap(v, index) : v;\n const isSingleKey = text.length === 1;\n if (isSingleKey) {\n items = items.filter((item) => itemToId(item) !== currentId);\n }\n return items.find((item) => match(getValueText(item), text));\n}\n\n// src/set.ts\nfunction setAttribute(el, attr, v) {\n const prev = el.getAttribute(attr);\n const exists = prev != null;\n el.setAttribute(attr, v);\n return () => {\n if (!exists) {\n el.removeAttribute(attr);\n } else {\n el.setAttribute(attr, prev);\n }\n };\n}\nfunction setProperty(el, prop, v) {\n const exists = prop in el;\n const prev = el[prop];\n el[prop] = v;\n return () => {\n if (!exists) {\n delete el[prop];\n } else {\n el[prop] = prev;\n }\n };\n}\nfunction setStyle(el, style) {\n if (!el) return noop;\n const prev = Object.keys(style).reduce((acc, key) => {\n acc[key] = el.style.getPropertyValue(key);\n return acc;\n }, {});\n Object.assign(el.style, style);\n return () => {\n Object.assign(el.style, prev);\n if (el.style.length === 0) {\n el.removeAttribute(\"style\");\n }\n };\n}\nfunction setStyleProperty(el, prop, value) {\n if (!el) return noop;\n const prev = el.style.getPropertyValue(prop);\n el.style.setProperty(prop, value);\n return () => {\n el.style.setProperty(prop, prev);\n if (el.style.length === 0) {\n el.removeAttribute(\"style\");\n }\n };\n}\n\n// src/typeahead.ts\nfunction getByTypeaheadImpl(baseItems, options) {\n const { state: state2, activeId, key, timeout = 350, itemToId } = options;\n const search = state2.keysSoFar + key;\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const query2 = isRepeated ? search[0] : search;\n let items = baseItems.slice();\n const next = getByText(items, query2, activeId, itemToId);\n function cleanup() {\n clearTimeout(state2.timer);\n state2.timer = -1;\n }\n function update(value) {\n state2.keysSoFar = value;\n cleanup();\n if (value !== \"\") {\n state2.timer = +setTimeout(() => {\n update(\"\");\n cleanup();\n }, timeout);\n }\n }\n update(search);\n return next;\n}\nvar getByTypeahead = /* @__PURE__ */ Object.assign(getByTypeaheadImpl, {\n defaultOptions: { keysSoFar: \"\", timer: -1 },\n isValidEvent: isValidTypeaheadEvent\n});\nfunction isValidTypeaheadEvent(event) {\n return event.key.length === 1 && !event.ctrlKey && !event.metaKey;\n}\n\n// src/visual-viewport.ts\nfunction trackVisualViewport(doc, fn) {\n const win = doc?.defaultView || window;\n const onResize = () => {\n fn?.(getViewportSize(win));\n };\n onResize();\n return addDomEvent(win.visualViewport ?? win, \"resize\", onResize);\n}\nfunction getViewportSize(win) {\n return {\n width: win.visualViewport?.width || win.innerWidth,\n height: win.visualViewport?.height || win.innerHeight\n };\n}\n\n// src/visually-hidden.ts\nvar visuallyHiddenStyle = {\n border: \"0\",\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0\",\n position: \"absolute\",\n width: \"1px\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n};\nfunction setVisuallyHidden(el) {\n Object.assign(el.style, visuallyHiddenStyle);\n}\n\n// src/wait-for.ts\nvar fps = 1e3 / 60;\nfunction waitForElement(query2, cb) {\n const el = query2();\n if (isHTMLElement(el) && el.isConnected) {\n cb(el);\n return () => void 0;\n } else {\n const timerId = setInterval(() => {\n const el2 = query2();\n if (isHTMLElement(el2) && el2.isConnected) {\n cb(el2);\n clearInterval(timerId);\n }\n }, fps);\n return () => clearInterval(timerId);\n }\n}\nfunction waitForElements(queries, cb) {\n const cleanups = [];\n queries?.forEach((query2) => {\n const clean = waitForElement(query2, cb);\n cleanups.push(clean);\n });\n return () => {\n cleanups.forEach((fn) => fn());\n };\n}\n\nexport { MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, indexOfId, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackElementRect, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForElements };\n","// src/array.ts\nfunction toArray(v) {\n if (!v) return [];\n return Array.isArray(v) ? v : [v];\n}\nvar fromLength = (length) => Array.from(Array(length).keys());\nvar first = (v) => v[0];\nvar last = (v) => v[v.length - 1];\nvar isEmpty = (v) => v.length === 0;\nvar has = (v, t) => v.indexOf(t) !== -1;\nvar add = (v, ...items) => v.concat(items);\nvar remove = (v, ...items) => v.filter((t) => !items.includes(t));\nvar removeAt = (v, i) => v.filter((_, idx) => idx !== i);\nvar insertAt = (v, i, ...items) => [...v.slice(0, i), ...items, ...v.slice(i)];\nvar uniq = (v) => Array.from(new Set(v));\nvar addOrRemove = (v, item) => {\n if (has(v, item)) return remove(v, item);\n return add(v, item);\n};\nfunction clear(v) {\n while (v.length > 0) v.pop();\n return v;\n}\nfunction nextIndex(v, idx, opts = {}) {\n const { step = 1, loop = true } = opts;\n const next2 = idx + step;\n const len = v.length;\n const last2 = len - 1;\n if (idx === -1) return step > 0 ? 0 : last2;\n if (next2 < 0) return loop ? last2 : 0;\n if (next2 >= len) return loop ? 0 : idx > len ? len : idx;\n return next2;\n}\nfunction next(v, idx, opts = {}) {\n return v[nextIndex(v, idx, opts)];\n}\nfunction prevIndex(v, idx, opts = {}) {\n const { step = 1, loop = true } = opts;\n return nextIndex(v, idx, { step: -step, loop });\n}\nfunction prev(v, index, opts = {}) {\n return v[prevIndex(v, index, opts)];\n}\nvar chunk = (v, size) => {\n const res = [];\n return v.reduce((rows, value, index) => {\n if (index % size === 0) rows.push([value]);\n else last(rows)?.push(value);\n return rows;\n }, res);\n};\nfunction flatArray(arr) {\n return arr.reduce((flat, item) => {\n if (Array.isArray(item)) {\n return flat.concat(flatArray(item));\n }\n return flat.concat(item);\n }, []);\n}\n\n// src/equal.ts\nvar isArrayLike = (value) => value?.constructor.name === \"Array\";\nvar isArrayEqual = (a, b) => {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n if (!isEqual(a[i], b[i])) return false;\n }\n return true;\n};\nvar isEqual = (a, b) => {\n if (Object.is(a, b)) return true;\n if (a == null && b != null || a != null && b == null) return false;\n if (typeof a?.isEqual === \"function\" && typeof b?.isEqual === \"function\") {\n return a.isEqual(b);\n }\n if (typeof a === \"function\" && typeof b === \"function\") {\n return a.toString() === b.toString();\n }\n if (isArrayLike(a) && isArrayLike(b)) {\n return isArrayEqual(Array.from(a), Array.from(b));\n }\n if (!(typeof a === \"object\") || !(typeof b === \"object\")) return false;\n const keys = Object.keys(b ?? /* @__PURE__ */ Object.create(null));\n const length = keys.length;\n for (let i = 0; i < length; i++) {\n const hasKey = Reflect.has(a, keys[i]);\n if (!hasKey) return false;\n }\n for (let i = 0; i < length; i++) {\n const key = keys[i];\n if (!isEqual(a[key], b[key])) return false;\n }\n return true;\n};\n\n// src/guard.ts\nvar isDev = () => process.env.NODE_ENV !== \"production\";\nvar isArray = (v) => Array.isArray(v);\nvar isBoolean = (v) => v === true || v === false;\nvar isObjectLike = (v) => v != null && typeof v === \"object\";\nvar isObject = (v) => isObjectLike(v) && !isArray(v);\nvar isNumber = (v) => typeof v === \"number\" && !Number.isNaN(v);\nvar isString = (v) => typeof v === \"string\";\nvar isFunction = (v) => typeof v === \"function\";\nvar isNull = (v) => v == null;\nvar hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nvar baseGetTag = (v) => Object.prototype.toString.call(v);\nvar fnToString = Function.prototype.toString;\nvar objectCtorString = fnToString.call(Object);\nvar isPlainObject = (v) => {\n if (!isObjectLike(v) || baseGetTag(v) != \"[object Object]\") return false;\n const proto = Object.getPrototypeOf(v);\n if (proto === null) return true;\n const Ctor = hasProp(proto, \"constructor\") && proto.constructor;\n return typeof Ctor == \"function\" && Ctor instanceof Ctor && fnToString.call(Ctor) == objectCtorString;\n};\n\n// src/functions.ts\nvar runIfFn = (v, ...a) => {\n const res = typeof v === \"function\" ? v(...a) : v;\n return res ?? void 0;\n};\nvar cast = (v) => v;\nvar identity = (v) => v();\nvar noop = () => {\n};\nvar callAll = (...fns) => (...a) => {\n fns.forEach(function(fn) {\n fn?.(...a);\n });\n};\nvar uuid = /* @__PURE__ */ (() => {\n let id = 0;\n return () => {\n id++;\n return id.toString(36);\n };\n})();\nfunction match(key, record, ...args) {\n if (key in record) {\n const fn = record[key];\n return isFunction(fn) ? fn(...args) : fn;\n }\n const error = new Error(`No matching key: ${JSON.stringify(key)} in ${JSON.stringify(Object.keys(record))}`);\n Error.captureStackTrace?.(error, match);\n throw error;\n}\nvar tryCatch = (fn, fallback) => {\n try {\n return fn();\n } catch (error) {\n if (error instanceof Error) {\n Error.captureStackTrace?.(error, tryCatch);\n }\n return fallback?.();\n }\n};\nfunction throttle(fn, wait = 0) {\n let lastCall = 0;\n let timeout = null;\n return (...args) => {\n const now = Date.now();\n const timeSinceLastCall = now - lastCall;\n if (timeSinceLastCall >= wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n fn(...args);\n lastCall = now;\n } else if (!timeout) {\n timeout = setTimeout(() => {\n fn(...args);\n lastCall = Date.now();\n timeout = null;\n }, wait - timeSinceLastCall);\n }\n };\n}\n\n// src/number.ts\nvar { floor, abs, round, min, max, pow, sign } = Math;\nvar isNaN = (v) => Number.isNaN(v);\nvar nan = (v) => isNaN(v) ? 0 : v;\nvar mod = (v, m) => (v % m + m) % m;\nvar wrap = (v, vmax) => (v % vmax + vmax) % vmax;\nvar getMinValueAtIndex = (i, v, vmin) => i === 0 ? vmin : v[i - 1];\nvar getMaxValueAtIndex = (i, v, vmax) => i === v.length - 1 ? vmax : v[i + 1];\nvar isValueAtMax = (v, vmax) => nan(v) >= vmax;\nvar isValueAtMin = (v, vmin) => nan(v) <= vmin;\nvar isValueWithinRange = (v, vmin, vmax) => nan(v) >= vmin && nan(v) <= vmax;\nvar roundValue = (v, vmin, step) => round((nan(v) - vmin) / step) * step + vmin;\nvar clampValue = (v, vmin, vmax) => min(max(nan(v), vmin), vmax);\nvar clampPercent = (v) => clampValue(v, 0, 1);\nvar getValuePercent = (v, vmin, vmax) => (nan(v) - vmin) / (vmax - vmin);\nvar getPercentValue = (p, vmin, vmax, step) => clampValue(roundValue(p * (vmax - vmin) + vmin, vmin, step), vmin, vmax);\nvar roundToStepPrecision = (v, step) => {\n let rv = v;\n let ss = step.toString();\n let pi = ss.indexOf(\".\");\n let p = pi >= 0 ? ss.length - pi : 0;\n if (p > 0) {\n let pw = pow(10, p);\n rv = round(rv * pw) / pw;\n }\n return rv;\n};\nvar roundToDpr = (v, dpr) => typeof dpr === \"number\" ? floor(v * dpr + 0.5) / dpr : round(v);\nvar snapValueToStep = (v, vmin, vmax, step) => {\n vmin = Number(vmin);\n vmax = Number(vmax);\n let remainder = (v - (isNaN(vmin) ? 0 : vmin)) % step;\n let sv = roundToStepPrecision(\n abs(remainder) * 2 >= step ? v + sign(remainder) * (step - abs(remainder)) : v - remainder,\n step\n );\n if (!isNaN(vmin)) {\n if (sv < vmin) {\n sv = vmin;\n } else if (!isNaN(vmax) && sv > vmax) {\n sv = vmin + floor(roundToStepPrecision((vmax - vmin) / step, step)) * step;\n }\n } else if (!isNaN(vmax) && sv > vmax) {\n sv = vmin + floor(roundToStepPrecision((vmax - vmin) / step, step)) * step;\n }\n return roundToStepPrecision(sv, step);\n};\nvar setValueAtIndex = (vs, i, v) => {\n if (vs[i] === v) return vs;\n return [...vs.slice(0, i), v, ...vs.slice(i + 1)];\n};\nfunction getValueSetterAtIndex(index, ctx) {\n const minValueAtIndex = getMinValueAtIndex(index, ctx.values, ctx.min);\n const maxValueAtIndex = getMaxValueAtIndex(index, ctx.values, ctx.max);\n let nextValues = ctx.values.slice();\n return function setValue(value) {\n let nextValue = snapValueToStep(value, minValueAtIndex, maxValueAtIndex, ctx.step);\n nextValues = setValueAtIndex(nextValues, index, value);\n nextValues[index] = nextValue;\n return nextValues;\n };\n}\nfunction getNextStepValue(index, ctx) {\n const nextValue = ctx.values[index] + ctx.step;\n return getValueSetterAtIndex(index, ctx)(nextValue);\n}\nfunction getPreviousStepValue(index, ctx) {\n const nextValue = ctx.values[index] - ctx.step;\n return getValueSetterAtIndex(index, ctx)(nextValue);\n}\nvar getClosestValueIndex = (vs, t) => {\n let i = vs.findIndex((v) => t - v < 0);\n if (i === 0) return i;\n if (i === -1) return vs.length - 1;\n let vLeft = vs[i - 1];\n let vRight = vs[i];\n if (abs(vLeft - t) < abs(vRight - t)) return i - 1;\n return i;\n};\nvar getClosestValue = (vs, t) => vs[getClosestValueIndex(vs, t)];\nvar getValueRanges = (vs, vmin, vmax, gap) => vs.map((v, i) => ({\n min: i === 0 ? vmin : vs[i - 1] + gap,\n max: i === vs.length - 1 ? vmax : vs[i + 1] - gap,\n value: v\n}));\nvar getValueTransformer = (va, vb) => {\n const [a, b] = va;\n const [c, d] = vb;\n return (v) => a === b || c === d ? c : c + (d - c) / (b - a) * (v - a);\n};\nvar toFixedNumber = (v, d = 0, b = 10) => {\n const pow2 = Math.pow(b, d);\n return round(v * pow2) / pow2;\n};\nvar countDecimals = (value) => {\n if (!Number.isFinite(value)) return 0;\n let e = 1, p = 0;\n while (Math.round(value * e) / e !== value) {\n e *= 10;\n p += 1;\n }\n return p;\n};\nvar decimalOp = (a, op, b) => {\n let result = op === \"+\" ? a + b : a - b;\n if (a % 1 !== 0 || b % 1 !== 0) {\n const multiplier = 10 ** Math.max(countDecimals(a), countDecimals(b));\n a = Math.round(a * multiplier);\n b = Math.round(b * multiplier);\n result = op === \"+\" ? a + b : a - b;\n result /= multiplier;\n }\n return result;\n};\nvar incrementValue = (v, s) => decimalOp(nan(v), \"+\", s);\nvar decrementValue = (v, s) => decimalOp(nan(v), \"-\", s);\nvar toPx = (v) => v != null ? `${v}px` : void 0;\n\n// src/object.ts\nfunction compact(obj) {\n if (!isPlainObject2(obj) || obj === void 0) return obj;\n const keys = Reflect.ownKeys(obj).filter((key) => typeof key === \"string\");\n const filtered = {};\n for (const key of keys) {\n const value = obj[key];\n if (value !== void 0) {\n filtered[key] = compact(value);\n }\n }\n return filtered;\n}\nvar json = (v) => JSON.parse(JSON.stringify(v));\nvar isPlainObject2 = (v) => {\n return v && typeof v === \"object\" && v.constructor === Object;\n};\nfunction pick(obj, keys) {\n const filtered = {};\n for (const key of keys) {\n const value = obj[key];\n if (value !== void 0) {\n filtered[key] = value;\n }\n }\n return filtered;\n}\nfunction splitProps(props, keys) {\n const rest = {};\n const result = {};\n const keySet = new Set(keys);\n for (const key in props) {\n if (keySet.has(key)) {\n result[key] = props[key];\n } else {\n rest[key] = props[key];\n }\n }\n return [result, rest];\n}\nvar createSplitProps = (keys) => {\n return function split(props) {\n return splitProps(props, keys);\n };\n};\nfunction omit(obj, keys) {\n return createSplitProps(keys)(obj)[1];\n}\n\n// src/timers.ts\nfunction setRafInterval(callback, interval) {\n let start = performance.now();\n let handle;\n function loop(now) {\n handle = requestAnimationFrame(loop);\n const delta = now - start;\n if (delta >= interval) {\n start = now - delta % interval;\n callback({ startMs: start, deltaMs: delta });\n }\n }\n handle = requestAnimationFrame(loop);\n return () => cancelAnimationFrame(handle);\n}\nfunction setRafTimeout(callback, delay) {\n const start = performance.now();\n let handle;\n function loop(now) {\n handle = requestAnimationFrame(loop);\n const delta = now - start;\n if (delta >= delay) {\n callback();\n }\n }\n handle = requestAnimationFrame(loop);\n return () => cancelAnimationFrame(handle);\n}\n\n// src/warning.ts\nfunction warn(...a) {\n const m = a.length === 1 ? a[0] : a[1];\n const c = a.length === 2 ? a[0] : true;\n if (c && process.env.NODE_ENV !== \"production\") {\n console.warn(m);\n }\n}\nfunction invariant(...a) {\n const m = a.length === 1 ? a[0] : a[1];\n const c = a.length === 2 ? a[0] : true;\n if (c && process.env.NODE_ENV !== \"production\") {\n throw new Error(m);\n }\n}\nfunction ensure(c, m) {\n if (c == null) throw new Error(m());\n}\nfunction ensureProps(props, keys, scope) {\n let missingKeys = [];\n for (const key of keys) {\n if (props[key] == null) missingKeys.push(key);\n }\n if (missingKeys.length > 0)\n throw new Error(`[zag-js${scope ? ` > ${scope}` : \"\"}] missing required props: ${missingKeys.join(\", \")}`);\n}\n\nexport { add, addOrRemove, callAll, cast, chunk, clampPercent, clampValue, clear, compact, createSplitProps, decrementValue, ensure, ensureProps, first, flatArray, fromLength, getClosestValue, getClosestValueIndex, getMaxValueAtIndex, getMinValueAtIndex, getNextStepValue, getPercentValue, getPreviousStepValue, getValuePercent, getValueRanges, getValueSetterAtIndex, getValueTransformer, has, hasProp, identity, incrementValue, insertAt, invariant, isArray, isBoolean, isDev, isEmpty, isEqual, isFunction, isNaN, isNull, isNumber, isObject, isObjectLike, isPlainObject, isString, isValueAtMax, isValueAtMin, isValueWithinRange, json, last, match, mod, nan, next, nextIndex, noop, omit, pick, prev, prevIndex, remove, removeAt, roundToDpr, roundToStepPrecision, roundValue, runIfFn, setRafInterval, setRafTimeout, setValueAtIndex, snapValueToStep, splitProps, throttle, toArray, toFixedNumber, toPx, tryCatch, uniq, uuid, warn, wrap };\n","import { callAll, isEqual, isString } from '@zag-js/utils';\nimport { getActiveElement, getDocument } from '@zag-js/dom-query';\n\n// src/merge-props.ts\nvar clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(\" \");\nvar CSS_REGEX = /((?:--)?(?:\\w+-?)+)\\s*:\\s*([^;]*)/g;\nvar serialize = (style) => {\n const res = {};\n let match;\n while (match = CSS_REGEX.exec(style)) {\n res[match[1]] = match[2];\n }\n return res;\n};\nvar css = (a, b) => {\n if (isString(a)) {\n if (isString(b)) return `${a};${b}`;\n a = serialize(a);\n } else if (isString(b)) {\n b = serialize(b);\n }\n return Object.assign({}, a ?? {}, b ?? {});\n};\nfunction mergeProps(...args) {\n let result = {};\n for (let props of args) {\n for (let key in result) {\n if (key.startsWith(\"on\") && typeof result[key] === \"function\" && typeof props[key] === \"function\") {\n result[key] = callAll(props[key], result[key]);\n continue;\n }\n if (key === \"className\" || key === \"class\") {\n result[key] = clsx(result[key], props[key]);\n continue;\n }\n if (key === \"style\") {\n result[key] = css(result[key], props[key]);\n continue;\n }\n result[key] = props[key] !== void 0 ? props[key] : result[key];\n }\n for (let key in props) {\n if (result[key] === void 0) {\n result[key] = props[key];\n }\n }\n }\n return result;\n}\nfunction memo(getDeps, fn, opts) {\n let deps = [];\n let result;\n return (depArgs) => {\n const newDeps = getDeps(depArgs);\n const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => !isEqual(deps[index], dep));\n if (!depsChanged) return result;\n deps = newDeps;\n result = fn(...newDeps);\n opts?.onChange?.(result);\n return result;\n };\n}\n\n// src/create-machine.ts\nfunction createGuards() {\n return {\n and: (...guards) => {\n return function andGuard(params) {\n return guards.every((str) => params.guard(str));\n };\n },\n or: (...guards) => {\n return function orGuard(params) {\n return guards.some((str) => params.guard(str));\n };\n },\n not: (guard) => {\n return function notGuard(params) {\n return !params.guard(guard);\n };\n }\n };\n}\nfunction createMachine(config) {\n return config;\n}\nfunction setup() {\n return {\n guards: createGuards(),\n createMachine: (config) => {\n return createMachine(config);\n },\n choose: (transitions) => {\n return function chooseFn({ choose }) {\n return choose(transitions)?.actions;\n };\n }\n };\n}\n\n// src/types.ts\nvar MachineStatus = /* @__PURE__ */ ((MachineStatus2) => {\n MachineStatus2[\"NotStarted\"] = \"Not Started\";\n MachineStatus2[\"Started\"] = \"Started\";\n MachineStatus2[\"Stopped\"] = \"Stopped\";\n return MachineStatus2;\n})(MachineStatus || {});\nvar INIT_STATE = \"__init__\";\nfunction createScope(props) {\n const getRootNode = () => props.getRootNode?.() ?? document;\n const getDoc = () => getDocument(getRootNode());\n const getWin = () => getDoc().defaultView ?? window;\n const getActiveElementFn = () => getActiveElement(getRootNode());\n const isActiveElement = (elem) => elem === getActiveElementFn();\n const getById = (id) => getRootNode().getElementById(id);\n return {\n ...props,\n getRootNode,\n getDoc,\n getWin,\n getActiveElement: getActiveElementFn,\n isActiveElement,\n getById\n };\n}\n\nexport { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };\n","// src/create-anatomy.ts\nvar createAnatomy = (name, parts = []) => ({\n parts: (...values) => {\n if (isEmpty(parts)) {\n return createAnatomy(name, values);\n }\n throw new Error(\"createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?\");\n },\n extendWith: (...values) => createAnatomy(name, [...parts, ...values]),\n rename: (newName) => createAnatomy(newName, parts),\n keys: () => parts,\n build: () => [...new Set(parts)].reduce(\n (prev, part) => Object.assign(prev, {\n [part]: {\n selector: [\n `&[data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`,\n `& [data-scope=\"${toKebabCase(name)}\"][data-part=\"${toKebabCase(part)}\"]`\n ].join(\", \"),\n attrs: { \"data-scope\": toKebabCase(name), \"data-part\": toKebabCase(part) }\n }\n }),\n {}\n )\n});\nvar toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, \"$1-$2\").replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[\\s_]+/g, \"-\").toLowerCase();\nvar isEmpty = (v) => v.length === 0;\n\nexport { createAnatomy };\n","import { raf, getDocument, getWindow, isShadowRoot, addDomEvent, isTouchDevice, getEventTarget, isFocusable, isContextMenuEvent, isHTMLElement, contains, getNearestOverflowAncestor } from '@zag-js/dom-query';\nimport { callAll } from '@zag-js/utils';\n\n// src/index.ts\n\n// src/frame-utils.ts\nfunction getWindowFrames(win) {\n const frames = {\n each(cb) {\n for (let i = 0; i < win.frames?.length; i += 1) {\n const frame = win.frames[i];\n if (frame) cb(frame);\n }\n },\n addEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.addEventListener(event, listener, options);\n } catch {\n }\n });\n return () => {\n try {\n frames.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener(event, listener, options) {\n frames.each((frame) => {\n try {\n frame.document.removeEventListener(event, listener, options);\n } catch {\n }\n });\n }\n };\n return frames;\n}\nfunction getParentWindow(win) {\n const parent = win.frameElement != null ? win.parent : null;\n return {\n addEventListener: (event, listener, options) => {\n try {\n parent?.addEventListener(event, listener, options);\n } catch {\n }\n return () => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n };\n },\n removeEventListener: (event, listener, options) => {\n try {\n parent?.removeEventListener(event, listener, options);\n } catch {\n }\n }\n };\n}\n\n// src/index.ts\nvar POINTER_OUTSIDE_EVENT = \"pointerdown.outside\";\nvar FOCUS_OUTSIDE_EVENT = \"focus.outside\";\nfunction isComposedPathFocusable(composedPath) {\n for (const node of composedPath) {\n if (isHTMLElement(node) && isFocusable(node)) return true;\n }\n return false;\n}\nvar isPointerEvent = (event) => \"clientY\" in event;\nfunction isEventPointWithin(node, event) {\n if (!isPointerEvent(event) || !node) return false;\n const rect = node.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) return false;\n return rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width;\n}\nfunction isPointInRect(rect, point) {\n return rect.y <= point.y && point.y <= rect.y + rect.height && rect.x <= point.x && point.x <= rect.x + rect.width;\n}\nfunction isEventWithinScrollbar(event, ancestor) {\n if (!ancestor || !isPointerEvent(event)) return false;\n const isScrollableY = ancestor.scrollHeight > ancestor.clientHeight;\n const onScrollbarY = isScrollableY && event.clientX > ancestor.offsetLeft + ancestor.clientWidth;\n const isScrollableX = ancestor.scrollWidth > ancestor.clientWidth;\n const onScrollbarX = isScrollableX && event.clientY > ancestor.offsetTop + ancestor.clientHeight;\n const rect = {\n x: ancestor.offsetLeft,\n y: ancestor.offsetTop,\n width: ancestor.clientWidth + (isScrollableY ? 16 : 0),\n height: ancestor.clientHeight + (isScrollableX ? 16 : 0)\n };\n const point = {\n x: event.clientX,\n y: event.clientY\n };\n if (!isPointInRect(rect, point)) return false;\n return onScrollbarY || onScrollbarX;\n}\nfunction trackInteractOutsideImpl(node, options) {\n const { exclude, onFocusOutside, onPointerDownOutside, onInteractOutside, defer } = options;\n if (!node) return;\n const doc = getDocument(node);\n const win = getWindow(node);\n const frames = getWindowFrames(win);\n const parentWin = getParentWindow(win);\n function isEventOutside(event, target) {\n if (!isHTMLElement(target)) return false;\n if (!target.isConnected) return false;\n if (contains(node, target)) return false;\n if (isEventPointWithin(node, event)) return false;\n const triggerEl = doc.querySelector(`[aria-controls=\"${node.id}\"]`);\n if (triggerEl) {\n const triggerAncestor = getNearestOverflowAncestor(triggerEl);\n if (isEventWithinScrollbar(event, triggerAncestor)) return false;\n }\n const nodeAncestor = getNearestOverflowAncestor(node);\n if (isEventWithinScrollbar(event, nodeAncestor)) return false;\n return !exclude?.(target);\n }\n const pointerdownCleanups = /* @__PURE__ */ new Set();\n const isInShadowRoot = isShadowRoot(node?.getRootNode());\n function onPointerDown(event) {\n function handler(clickEvent) {\n const func = defer && !isTouchDevice() ? raf : (v) => v();\n const evt = clickEvent ?? event;\n const composedPath = evt?.composedPath?.() ?? [evt?.target];\n func(() => {\n const target = isInShadowRoot ? composedPath[0] : getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onPointerDownOutside || onInteractOutside) {\n const handler2 = callAll(onPointerDownOutside, onInteractOutside);\n node.addEventListener(POINTER_OUTSIDE_EVENT, handler2, { once: true });\n }\n fireCustomEvent(node, POINTER_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: evt,\n contextmenu: isContextMenuEvent(evt),\n focusable: isComposedPathFocusable(composedPath),\n target\n }\n });\n });\n }\n if (event.pointerType === \"touch\") {\n pointerdownCleanups.forEach((fn) => fn());\n pointerdownCleanups.add(addDomEvent(doc, \"click\", handler, { once: true }));\n pointerdownCleanups.add(parentWin.addEventListener(\"click\", handler, { once: true }));\n pointerdownCleanups.add(frames.addEventListener(\"click\", handler, { once: true }));\n } else {\n handler();\n }\n }\n const cleanups = /* @__PURE__ */ new Set();\n const timer = setTimeout(() => {\n cleanups.add(addDomEvent(doc, \"pointerdown\", onPointerDown, true));\n cleanups.add(parentWin.addEventListener(\"pointerdown\", onPointerDown, true));\n cleanups.add(frames.addEventListener(\"pointerdown\", onPointerDown, true));\n }, 0);\n function onFocusin(event) {\n const func = defer ? raf : (v) => v();\n func(() => {\n const target = getEventTarget(event);\n if (!node || !isEventOutside(event, target)) return;\n if (onFocusOutside || onInteractOutside) {\n const handler = callAll(onFocusOutside, onInteractOutside);\n node.addEventListener(FOCUS_OUTSIDE_EVENT, handler, { once: true });\n }\n fireCustomEvent(node, FOCUS_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: event,\n contextmenu: false,\n focusable: isFocusable(target),\n target\n }\n });\n });\n }\n if (!isTouchDevice()) {\n cleanups.add(addDomEvent(doc, \"focusin\", onFocusin, true));\n cleanups.add(parentWin.addEventListener(\"focusin\", onFocusin, true));\n cleanups.add(frames.addEventListener(\"focusin\", onFocusin, true));\n }\n return () => {\n clearTimeout(timer);\n pointerdownCleanups.forEach((fn) => fn());\n cleanups.forEach((fn) => fn());\n };\n}\nfunction trackInteractOutside(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = typeof nodeOrFn === \"function\" ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackInteractOutsideImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction fireCustomEvent(el, type, init) {\n const win = el.ownerDocument.defaultView || window;\n const event = new win.CustomEvent(type, init);\n return el.dispatchEvent(event);\n}\n\nexport { trackInteractOutside };\n","import { raf, contains, getDocument, waitForElements, setStyle, addDomEvent, getEventTarget, isHTMLElement } from '@zag-js/dom-query';\nimport { trackInteractOutside } from '@zag-js/interact-outside';\nimport { isFunction, warn } from '@zag-js/utils';\n\n// src/dismissable-layer.ts\nfunction trackEscapeKeydown(node, fn) {\n const handleKeyDown = (event) => {\n if (event.key !== \"Escape\") return;\n if (event.isComposing) return;\n fn?.(event);\n };\n return addDomEvent(getDocument(node), \"keydown\", handleKeyDown, { capture: true });\n}\nvar layerStack = {\n layers: [],\n branches: [],\n count() {\n return this.layers.length;\n },\n pointerBlockingLayers() {\n return this.layers.filter((layer) => layer.pointerBlocking);\n },\n topMostPointerBlockingLayer() {\n return [...this.pointerBlockingLayers()].slice(-1)[0];\n },\n hasPointerBlockingLayer() {\n return this.pointerBlockingLayers().length > 0;\n },\n isBelowPointerBlockingLayer(node) {\n const index = this.indexOf(node);\n const highestBlockingIndex = this.topMostPointerBlockingLayer() ? this.indexOf(this.topMostPointerBlockingLayer()?.node) : -1;\n return index < highestBlockingIndex;\n },\n isTopMost(node) {\n const layer = this.layers[this.count() - 1];\n return layer?.node === node;\n },\n getNestedLayers(node) {\n return Array.from(this.layers).slice(this.indexOf(node) + 1);\n },\n isInNestedLayer(node, target) {\n return this.getNestedLayers(node).some((layer) => contains(layer.node, target));\n },\n isInBranch(target) {\n return Array.from(this.branches).some((branch) => contains(branch, target));\n },\n add(layer) {\n const num = this.layers.push(layer);\n layer.node.style.setProperty(\"--layer-index\", `${num}`);\n },\n addBranch(node) {\n this.branches.push(node);\n },\n remove(node) {\n const index = this.indexOf(node);\n if (index < 0) return;\n if (index < this.count() - 1) {\n const _layers = this.getNestedLayers(node);\n _layers.forEach((layer) => layer.dismiss());\n }\n this.layers.splice(index, 1);\n node.style.removeProperty(\"--layer-index\");\n },\n removeBranch(node) {\n const index = this.branches.indexOf(node);\n if (index >= 0) this.branches.splice(index, 1);\n },\n indexOf(node) {\n return this.layers.findIndex((layer) => layer.node === node);\n },\n dismiss(node) {\n this.layers[this.indexOf(node)]?.dismiss();\n },\n clear() {\n this.remove(this.layers[0].node);\n }\n};\nvar originalBodyPointerEvents;\nfunction assignPointerEventToLayers() {\n layerStack.layers.forEach(({ node }) => {\n node.style.pointerEvents = layerStack.isBelowPointerBlockingLayer(node) ? \"none\" : \"auto\";\n });\n}\nfunction clearPointerEvent(node) {\n node.style.pointerEvents = \"\";\n}\nfunction disablePointerEventsOutside(node, persistentElements) {\n const doc = getDocument(node);\n const cleanups = [];\n if (layerStack.hasPointerBlockingLayer() && !doc.body.hasAttribute(\"data-inert\")) {\n originalBodyPointerEvents = document.body.style.pointerEvents;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = \"none\";\n doc.body.setAttribute(\"data-inert\", \"\");\n });\n }\n if (persistentElements) {\n const persistedCleanup = waitForElements(persistentElements, (el) => {\n cleanups.push(setStyle(el, { pointerEvents: \"auto\" }));\n });\n cleanups.push(persistedCleanup);\n }\n return () => {\n if (layerStack.hasPointerBlockingLayer()) return;\n queueMicrotask(() => {\n doc.body.style.pointerEvents = originalBodyPointerEvents;\n doc.body.removeAttribute(\"data-inert\");\n if (doc.body.style.length === 0) doc.body.removeAttribute(\"style\");\n });\n cleanups.forEach((fn) => fn());\n };\n}\n\n// src/dismissable-layer.ts\nfunction trackDismissableElementImpl(node, options) {\n const { warnOnMissingNode = true } = options;\n if (warnOnMissingNode && !node) {\n warn(\"[@zag-js/dismissable] node is `null` or `undefined`\");\n return;\n }\n if (!node) {\n return;\n }\n const { onDismiss, pointerBlocking, exclude: excludeContainers, debug } = options;\n const layer = { dismiss: onDismiss, node, pointerBlocking };\n layerStack.add(layer);\n assignPointerEventToLayers();\n function onPointerDownOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isBelowPointerBlockingLayer(node) || layerStack.isInBranch(target)) return;\n options.onPointerDownOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onPointerDownOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onFocusOutside(event) {\n const target = getEventTarget(event.detail.originalEvent);\n if (layerStack.isInBranch(target)) return;\n options.onFocusOutside?.(event);\n options.onInteractOutside?.(event);\n if (event.defaultPrevented) return;\n if (debug) {\n console.log(\"onFocusOutside:\", event.detail.originalEvent);\n }\n onDismiss?.();\n }\n function onEscapeKeyDown(event) {\n if (!layerStack.isTopMost(node)) return;\n options.onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }\n function exclude(target) {\n if (!node) return false;\n const containers = typeof excludeContainers === \"function\" ? excludeContainers() : excludeContainers;\n const _containers = Array.isArray(containers) ? containers : [containers];\n const persistentElements = options.persistentElements?.map((fn) => fn()).filter(isHTMLElement);\n if (persistentElements) _containers.push(...persistentElements);\n return _containers.some((node2) => contains(node2, target)) || layerStack.isInNestedLayer(node, target);\n }\n const cleanups = [\n pointerBlocking ? disablePointerEventsOutside(node, options.persistentElements) : void 0,\n trackEscapeKeydown(node, onEscapeKeyDown),\n trackInteractOutside(node, { exclude, onFocusOutside, onPointerDownOutside, defer: options.defer })\n ];\n return () => {\n layerStack.remove(node);\n assignPointerEventToLayers();\n clearPointerEvent(node);\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableElement(nodeOrFn, options) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n cleanups.push(trackDismissableElementImpl(node, options));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\nfunction trackDismissableBranch(nodeOrFn, options = {}) {\n const { defer } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const node = isFunction(nodeOrFn) ? nodeOrFn() : nodeOrFn;\n if (!node) {\n warn(\"[@zag-js/dismissable] branch node is `null` or `undefined`\");\n return;\n }\n layerStack.addBranch(node);\n cleanups.push(() => {\n layerStack.removeBranch(node);\n });\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { trackDismissableBranch, trackDismissableElement };\n"],"names":["clamp","value","wrap","v","idx","_","index","pipe","fns","arg","acc","fn","noop","isObject","MAX_Z_INDEX","dataAttr","guard","ariaAttr","ELEMENT_NODE","DOCUMENT_NODE","DOCUMENT_FRAGMENT_NODE","isHTMLElement","el","isDocument","isWindow","getNodeName","node","isRootElement","isNode","isShadowRoot","isInputElement","isAnchorElement","isElementVisible","TEXTAREA_SELECT_REGEX","isEditableElement","contains","parent","child","rootNode","next","getDocument","getDocumentElement","getWindow","getActiveElement","activeElement","getParentNode","result","styleCache","getComputedStyle","getDataUrl","svg","opts","type","quality","background","win","doc","svgBounds","svgClone","source","svgString","str","dpr","canvas","image","context","resolve","isDom","getPlatform","getUserAgent","ua2","brand","version","pt","ua","vn","isTouchDevice","isIPhone","isIPad","isMac","isIos","isApple","isSafari","isFirefox","isAndroid","getBeforeInputValue","event","selectionStart","selectionEnd","getComposedPath","getEventTarget","isSelfTarget","isOpeningInNewTab","element","isAppleDevice","localName","isDownloadingEvent","isComposingEvent","getNativeEvent","isPrintableKey","isVirtualClick","isLeftClick","isContextMenuEvent","isModifierKey","isTouchEvent","keyMap","rtlKeyMap","getEventKey","options","dir","orientation","key","pageKeys","arrowKeys","getEventStep","getEventPoint","point","addDomEvent","target","eventName","handler","getDescriptor","property","proto","getElementType","setElementValue","setElementChecked","checked","dispatchInputValueEvent","bubbles","dispatchInputCheckedEvent","getClosestForm","isFormElement","trackFormReset","callback","form","onReset","e","trackFieldsetDisabled","fieldset","obs","trackFormControl","onFieldsetDisabledChange","onFormReset","cleanups","cleanup","isFrame","hasTabIndex","hasNegativeTabIndex","focusableSelector","getFocusables","container","includeContainer","elements","isFocusable","focusableElements","i","frameBody","getTabbables","tabbableElements","isTabbable","allFrameTabbable","getTabbableEdges","first","last","getNextTabbable","current","tabbables","currentElement","getTabIndex","getInitialFocus","root","getInitialEl","filter","enabled","isValidTabEvent","firstTabbable","lastTabbable","nextTick","set","raf2","fn2","id","raf","queueBeforeEvent","cb","cancelTimer","exec","observeAttributesImpl","attributes","changes","change","observeAttributes","nodeOrFn","defer","func","observeChildrenImpl","observeChildren","clickIfLink","click","getNearestOverflowAncestor","parentNode","isOverflowElement","OVERFLOW_RE","overflow","overflowX","overflowY","display","isScrollable","scrollIntoView","rootEl","scrollOptions","getRelativePoint","left","top","width","height","offset","percent","getPercentValue","inverted","invertX","invertY","requestPointerLock","body","supported","isLocked","onPointerChange","onPointerError","cleanup2","state","userSelect","elementMap","disableTextSelectionImpl","docNode","restoreTextSelection","prevUserSelect","disableTextSelection","restOptions","trackPointerMove","handlers","onPointerMove","onPointerUp","distance","moveBuffer","trackPress","pointerNode","keyboardNode","onPress","onPressStart","onPressEnd","isValidKey","removeStartListeners","removeEndListeners","removeAccessibleListeners","getInfo","startPress","cancelPress","removePointerListener","startEvent","removePointerUpListener","endEvent","removePointerCancelListener","removeFocusListener","startAccessiblePress","handleKeydown","keydownEvent","handleKeyup","keyupEvent","evt2","info","evt","handleBlur","removeKeydownListener","removeBlurListener","proxyTabFocusImpl","triggerElement","onFocus","onFocusEnter","onKeyDown","elementToFocus","nextTabbableAfterTrigger","noTabbableElements","proxyTabFocus","trigger","queryAll","selector","query","defaultItemToId","itemById","itemToId","item","indexOfId","nextById","loop","prevById","trackElementRect","onEntry","measure","box","elems","entries","rects","sanitize","char","code","getValueText","match","valueText","query2","getByText","text","currentId","items","setStyle","style","prev","setStyleProperty","prop","getByTypeaheadImpl","baseItems","state2","activeId","timeout","search","update","getByTypeahead","isValidTypeaheadEvent","visuallyHiddenStyle","fps","waitForElement","timerId","el2","waitForElements","queries","clean","toArray","fromLength","length","has","add","remove","t","addOrRemove","nextIndex","step","next2","len","last2","prevIndex","flatArray","arr","flat","isArrayLike","isArrayEqual","a","b","isEqual","keys","isArray","isObjectLike","isNumber","isString","isFunction","isNull","hasProp","obj","fnToString","runIfFn","identity","callAll","uuid","tryCatch","fallback","error","floor","abs","round","min","max","pow","sign","isNaN","nan","mod","m","vmax","getMinValueAtIndex","vmin","getMaxValueAtIndex","isValueAtMax","isValueAtMin","isValueWithinRange","roundValue","clampValue","getValuePercent","p","roundToStepPrecision","rv","ss","pi","pw","roundToDpr","snapValueToStep","remainder","sv","setValueAtIndex","vs","getValueSetterAtIndex","ctx","minValueAtIndex","maxValueAtIndex","nextValues","nextValue","getNextStepValue","getPreviousStepValue","getClosestValueIndex","vLeft","vRight","getValueRanges","gap","getValueTransformer","va","vb","c","d","toFixedNumber","pow2","countDecimals","decimalOp","op","multiplier","incrementValue","s","decrementValue","toPx","compact","isPlainObject2","filtered","pick","setRafTimeout","delay","start","handle","now","warn","invariant","ensure","ensureProps","props","scope","missingKeys","clsx","args","CSS_REGEX","serialize","res","css","mergeProps","memo","getDeps","deps","depArgs","newDeps","dep","createGuards","guards","params","createMachine","config","setup","transitions","choose","MachineStatus","MachineStatus2","INIT_STATE","createScope","getRootNode","getDoc","getWin","getActiveElementFn","elem","createAnatomy","name","parts","values","isEmpty","newName","part","toKebabCase","getWindowFrames","frames","frame","listener","getParentWindow","POINTER_OUTSIDE_EVENT","FOCUS_OUTSIDE_EVENT","isComposedPathFocusable","composedPath","isPointerEvent","isEventPointWithin","rect","isPointInRect","isEventWithinScrollbar","ancestor","isScrollableY","onScrollbarY","isScrollableX","onScrollbarX","trackInteractOutsideImpl","exclude","onFocusOutside","onPointerDownOutside","onInteractOutside","parentWin","isEventOutside","triggerEl","triggerAncestor","nodeAncestor","pointerdownCleanups","isInShadowRoot","onPointerDown","clickEvent","handler2","fireCustomEvent","timer","onFocusin","trackInteractOutside","init","trackEscapeKeydown","handleKeyDown","layerStack","layer","highestBlockingIndex","branch","num","originalBodyPointerEvents","assignPointerEventToLayers","clearPointerEvent","disablePointerEventsOutside","persistentElements","persistedCleanup","trackDismissableElementImpl","warnOnMissingNode","onDismiss","pointerBlocking","excludeContainers","debug","onEscapeKeyDown","containers","_containers","node2","trackDismissableElement","trackDismissableBranch"],"mappings":"aAmBA,IAAIA,GAASC,GAAU,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AS,KAAK,IAAM,CAClBmY,EAAW,aAAazf,CAAI,CACpC,CAAO,CACF,CAAA,CACF,EACM,IAAM,CACXsH,EAAS,QAASrI,GAAOA,IAAE,CAAI,CAChC,CACH","x_google_ignoreList":[0,1,2,3,4,5]}
@@ -0,0 +1,141 @@
1
+ import { c as l, o as v, a as u, b as p } from "./index-YtNA0Ueo.js";
2
+ import { b as h } from "./use-locale-context-BiiNTYMT.js";
3
+ var k = p("avatar").parts("root", "image", "fallback"), n = k.build(), c = (e) => e.ids?.root ?? `avatar:${e.id}`, g = (e) => e.ids?.image ?? `avatar:${e.id}:image`, b = (e) => e.ids?.fallback ?? `avatar:${e.id}:fallback`, f = (e) => e.getById(c(e)), i = (e) => e.getById(g(e));
4
+ function L(e, a) {
5
+ const { state: t, send: r, prop: d, scope: s } = e, o = t.matches("loaded");
6
+ return {
7
+ loaded: o,
8
+ setSrc(m) {
9
+ i(s)?.setAttribute("src", m);
10
+ },
11
+ setLoaded() {
12
+ r({ type: "img.loaded", src: "api" });
13
+ },
14
+ setError() {
15
+ r({ type: "img.error", src: "api" });
16
+ },
17
+ getRootProps() {
18
+ return a.element({
19
+ ...n.root.attrs,
20
+ dir: d("dir"),
21
+ id: c(s)
22
+ });
23
+ },
24
+ getImageProps() {
25
+ return a.img({
26
+ ...n.image.attrs,
27
+ hidden: !o,
28
+ dir: d("dir"),
29
+ id: g(s),
30
+ "data-state": o ? "visible" : "hidden",
31
+ onLoad() {
32
+ r({ type: "img.loaded", src: "element" });
33
+ },
34
+ onError() {
35
+ r({ type: "img.error", src: "element" });
36
+ }
37
+ });
38
+ },
39
+ getFallbackProps() {
40
+ return a.element({
41
+ ...n.fallback.attrs,
42
+ dir: d("dir"),
43
+ id: b(s),
44
+ hidden: o,
45
+ "data-state": o ? "hidden" : "visible"
46
+ });
47
+ }
48
+ };
49
+ }
50
+ var N = l({
51
+ initialState() {
52
+ return "loading";
53
+ },
54
+ effects: ["trackImageRemoval", "trackSrcChange"],
55
+ on: {
56
+ "src.change": {
57
+ target: "loading"
58
+ },
59
+ "img.unmount": {
60
+ target: "error"
61
+ }
62
+ },
63
+ states: {
64
+ loading: {
65
+ entry: ["checkImageStatus"],
66
+ on: {
67
+ "img.loaded": {
68
+ target: "loaded",
69
+ actions: ["invokeOnLoad"]
70
+ },
71
+ "img.error": {
72
+ target: "error",
73
+ actions: ["invokeOnError"]
74
+ }
75
+ }
76
+ },
77
+ error: {
78
+ on: {
79
+ "img.loaded": {
80
+ target: "loaded",
81
+ actions: ["invokeOnLoad"]
82
+ }
83
+ }
84
+ },
85
+ loaded: {
86
+ on: {
87
+ "img.error": {
88
+ target: "error",
89
+ actions: ["invokeOnError"]
90
+ }
91
+ }
92
+ }
93
+ },
94
+ implementations: {
95
+ actions: {
96
+ invokeOnLoad({ prop: e }) {
97
+ e("onStatusChange")?.({ status: "loaded" });
98
+ },
99
+ invokeOnError({ prop: e }) {
100
+ e("onStatusChange")?.({ status: "error" });
101
+ },
102
+ checkImageStatus({ send: e, scope: a }) {
103
+ const t = i(a);
104
+ if (!t?.complete) return;
105
+ const r = y(t) ? "img.loaded" : "img.error";
106
+ e({ type: r, src: "ssr" });
107
+ }
108
+ },
109
+ effects: {
110
+ trackImageRemoval({ send: e, scope: a }) {
111
+ const t = f(a);
112
+ return u(t, {
113
+ callback(r) {
114
+ Array.from(r[0].removedNodes).find(
115
+ (o) => o.nodeType === Node.ELEMENT_NODE && o.matches("[data-scope=avatar][data-part=image]")
116
+ ) && e({ type: "img.unmount" });
117
+ }
118
+ });
119
+ },
120
+ trackSrcChange({ send: e, scope: a }) {
121
+ const t = i(a);
122
+ return v(t, {
123
+ attributes: ["src", "srcset"],
124
+ callback() {
125
+ e({ type: "src.change" });
126
+ }
127
+ });
128
+ }
129
+ }
130
+ }
131
+ });
132
+ function y(e) {
133
+ return e.complete && e.naturalWidth !== 0 && e.naturalHeight !== 0;
134
+ }
135
+ h()(["dir", "id", "ids", "onStatusChange", "getRootNode"]);
136
+ export {
137
+ k as a,
138
+ L as c,
139
+ N as m
140
+ };
141
+ //# sourceMappingURL=index-CJLttzPM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CJLttzPM.js","sources":["../../node_modules/@zag-js/avatar/dist/index.mjs"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { observeAttributes, observeChildren } from '@zag-js/dom-query';\nimport { createMachine } from '@zag-js/core';\nimport { createProps } from '@zag-js/types';\nimport { createSplitProps } from '@zag-js/utils';\n\n// src/avatar.anatomy.ts\nvar anatomy = createAnatomy(\"avatar\").parts(\"root\", \"image\", \"fallback\");\nvar parts = anatomy.build();\n\n// src/avatar.dom.ts\nvar getRootId = (ctx) => ctx.ids?.root ?? `avatar:${ctx.id}`;\nvar getImageId = (ctx) => ctx.ids?.image ?? `avatar:${ctx.id}:image`;\nvar getFallbackId = (ctx) => ctx.ids?.fallback ?? `avatar:${ctx.id}:fallback`;\nvar getRootEl = (ctx) => ctx.getById(getRootId(ctx));\nvar getImageEl = (ctx) => ctx.getById(getImageId(ctx));\n\n// src/avatar.connect.ts\nfunction connect(service, normalize) {\n const { state, send, prop, scope } = service;\n const loaded = state.matches(\"loaded\");\n return {\n loaded,\n setSrc(src) {\n const img = getImageEl(scope);\n img?.setAttribute(\"src\", src);\n },\n setLoaded() {\n send({ type: \"img.loaded\", src: \"api\" });\n },\n setError() {\n send({ type: \"img.error\", src: \"api\" });\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n dir: prop(\"dir\"),\n id: getRootId(scope)\n });\n },\n getImageProps() {\n return normalize.img({\n ...parts.image.attrs,\n hidden: !loaded,\n dir: prop(\"dir\"),\n id: getImageId(scope),\n \"data-state\": loaded ? \"visible\" : \"hidden\",\n onLoad() {\n send({ type: \"img.loaded\", src: \"element\" });\n },\n onError() {\n send({ type: \"img.error\", src: \"element\" });\n }\n });\n },\n getFallbackProps() {\n return normalize.element({\n ...parts.fallback.attrs,\n dir: prop(\"dir\"),\n id: getFallbackId(scope),\n hidden: loaded,\n \"data-state\": loaded ? \"hidden\" : \"visible\"\n });\n }\n };\n}\nvar machine = createMachine({\n initialState() {\n return \"loading\";\n },\n effects: [\"trackImageRemoval\", \"trackSrcChange\"],\n on: {\n \"src.change\": {\n target: \"loading\"\n },\n \"img.unmount\": {\n target: \"error\"\n }\n },\n states: {\n loading: {\n entry: [\"checkImageStatus\"],\n on: {\n \"img.loaded\": {\n target: \"loaded\",\n actions: [\"invokeOnLoad\"]\n },\n \"img.error\": {\n target: \"error\",\n actions: [\"invokeOnError\"]\n }\n }\n },\n error: {\n on: {\n \"img.loaded\": {\n target: \"loaded\",\n actions: [\"invokeOnLoad\"]\n }\n }\n },\n loaded: {\n on: {\n \"img.error\": {\n target: \"error\",\n actions: [\"invokeOnError\"]\n }\n }\n }\n },\n implementations: {\n actions: {\n invokeOnLoad({ prop }) {\n prop(\"onStatusChange\")?.({ status: \"loaded\" });\n },\n invokeOnError({ prop }) {\n prop(\"onStatusChange\")?.({ status: \"error\" });\n },\n checkImageStatus({ send, scope }) {\n const imageEl = getImageEl(scope);\n if (!imageEl?.complete) return;\n const type = hasLoaded(imageEl) ? \"img.loaded\" : \"img.error\";\n send({ type, src: \"ssr\" });\n }\n },\n effects: {\n trackImageRemoval({ send, scope }) {\n const rootEl = getRootEl(scope);\n return observeChildren(rootEl, {\n callback(records) {\n const removedNodes = Array.from(records[0].removedNodes);\n const removed = removedNodes.find(\n (node) => node.nodeType === Node.ELEMENT_NODE && node.matches(\"[data-scope=avatar][data-part=image]\")\n );\n if (removed) {\n send({ type: \"img.unmount\" });\n }\n }\n });\n },\n trackSrcChange({ send, scope }) {\n const imageEl = getImageEl(scope);\n return observeAttributes(imageEl, {\n attributes: [\"src\", \"srcset\"],\n callback() {\n send({ type: \"src.change\" });\n }\n });\n }\n }\n }\n});\nfunction hasLoaded(image) {\n return image.complete && image.naturalWidth !== 0 && image.naturalHeight !== 0;\n}\nvar props = createProps()([\"dir\", \"id\", \"ids\", \"onStatusChange\", \"getRootNode\"]);\nvar splitProps = createSplitProps(props);\n\nexport { anatomy, connect, machine, props, splitProps };\n"],"names":["anatomy","createAnatomy","parts","getRootId","ctx","getImageId","getFallbackId","getRootEl","getImageEl","connect","service","normalize","state","send","prop","scope","loaded","src","machine","createMachine","imageEl","type","hasLoaded","rootEl","observeChildren","records","node","observeAttributes","image","createProps"],"mappings":";;AAOG,IAACA,IAAUC,EAAc,QAAQ,EAAE,MAAM,QAAQ,SAAS,UAAU,GACnEC,IAAQF,EAAQ,MAAO,GAGvBG,IAAY,CAACC,MAAQA,EAAI,KAAK,QAAQ,UAAUA,EAAI,EAAE,IACtDC,IAAa,CAACD,MAAQA,EAAI,KAAK,SAAS,UAAUA,EAAI,EAAE,UACxDE,IAAgB,CAACF,MAAQA,EAAI,KAAK,YAAY,UAAUA,EAAI,EAAE,aAC9DG,IAAY,CAACH,MAAQA,EAAI,QAAQD,EAAUC,CAAG,CAAC,GAC/CI,IAAa,CAACJ,MAAQA,EAAI,QAAQC,EAAWD,CAAG,CAAC;AAGrD,SAASK,EAAQC,GAASC,GAAW;AACnC,QAAM,EAAE,OAAAC,GAAO,MAAAC,GAAM,MAAAC,GAAM,OAAAC,EAAO,IAAGL,GAC/BM,IAASJ,EAAM,QAAQ,QAAQ;AACrC,SAAO;AAAA,IACL,QAAAI;AAAA,IACA,OAAOC,GAAK;AAEV,MADYT,EAAWO,CAAK,GACvB,aAAa,OAAOE,CAAG;AAAA,IAC7B;AAAA,IACD,YAAY;AACV,MAAAJ,EAAK,EAAE,MAAM,cAAc,KAAK,MAAK,CAAE;AAAA,IACxC;AAAA,IACD,WAAW;AACT,MAAAA,EAAK,EAAE,MAAM,aAAa,KAAK,MAAK,CAAE;AAAA,IACvC;AAAA,IACD,eAAe;AACb,aAAOF,EAAU,QAAQ;AAAA,QACvB,GAAGT,EAAM,KAAK;AAAA,QACd,KAAKY,EAAK,KAAK;AAAA,QACf,IAAIX,EAAUY,CAAK;AAAA,MAC3B,CAAO;AAAA,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