@televet/kibble-ui 4.0.0-beta.68 → 4.0.0-beta.69

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 (361) hide show
  1. package/dist/chunks/{alert.types-D-Nx7EKC.js → alert.types-BTwB1SOp.js} +3 -3
  2. package/dist/chunks/{alert.types-D-Nx7EKC.js.map → alert.types-BTwB1SOp.js.map} +1 -1
  3. package/dist/chunks/{alert.types-B3CIqC3D.js → alert.types-Cjh2MIRP.js} +2 -2
  4. package/dist/chunks/{alert.types-B3CIqC3D.js.map → alert.types-Cjh2MIRP.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-5acA2X5n.js → avatar.component-BnOmYhL2.js} +6 -6
  6. package/dist/chunks/{avatar.component-5acA2X5n.js.map → avatar.component-BnOmYhL2.js.map} +1 -1
  7. package/dist/chunks/avatar.component-CbtJE4RJ.js +2 -0
  8. package/dist/chunks/{avatar.component-BBewTMu9.js.map → avatar.component-CbtJE4RJ.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-lvFlOaqP.js → avatarGroup.component-Bcb1Fxwv.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-lvFlOaqP.js.map → avatarGroup.component-Bcb1Fxwv.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-Cyoh97E9.js → avatarGroup.component-D4lmT752.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-Cyoh97E9.js.map → avatarGroup.component-D4lmT752.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-CwN1OcaS.js → buttonGroup.component-DzQFhbS7.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-CwN1OcaS.js.map → buttonGroup.component-DzQFhbS7.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-B21h-pcF.js → buttonGroup.component-aes3EERQ.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-B21h-pcF.js.map → buttonGroup.component-aes3EERQ.js.map} +1 -1
  17. package/dist/chunks/{characterCounter.component-B0MF_ObL.js → characterCounter.component-UgnBVIt2.js} +3 -3
  18. package/dist/chunks/{characterCounter.component-B0MF_ObL.js.map → characterCounter.component-UgnBVIt2.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-MBtgMpUc.js → characterCounter.component-WGffeYNG.js} +2 -2
  20. package/dist/chunks/{characterCounter.component-MBtgMpUc.js.map → characterCounter.component-WGffeYNG.js.map} +1 -1
  21. package/dist/chunks/checkbox.component-BEP-GPhs.js +2 -0
  22. package/dist/chunks/{checkbox.component-CWN9kU5p.js.map → checkbox.component-BEP-GPhs.js.map} +1 -1
  23. package/dist/chunks/{checkbox.component-HWkdi-Dt.js → checkbox.component-C6lXKzXZ.js} +7 -7
  24. package/dist/chunks/{checkbox.component-HWkdi-Dt.js.map → checkbox.component-C6lXKzXZ.js.map} +1 -1
  25. package/dist/chunks/checkbox.records-CXszv_gF.js +2 -0
  26. package/dist/chunks/{checkbox.records-djqGyo0P.js.map → checkbox.records-CXszv_gF.js.map} +1 -1
  27. package/dist/chunks/{checkbox.records-kuynkQ3J.js → checkbox.records-Gz6DOO_0.js} +4 -4
  28. package/dist/chunks/{checkbox.records-kuynkQ3J.js.map → checkbox.records-Gz6DOO_0.js.map} +1 -1
  29. package/dist/chunks/{checkboxGroup.component-DYiLp3m_.js → checkboxGroup.component-Dc_r6mYN.js} +2 -2
  30. package/dist/chunks/{checkboxGroup.component-DYiLp3m_.js.map → checkboxGroup.component-Dc_r6mYN.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-CMyApVxs.js → checkboxGroup.component-DhXdSILq.js} +3 -3
  32. package/dist/chunks/{checkboxGroup.component-CMyApVxs.js.map → checkboxGroup.component-DhXdSILq.js.map} +1 -1
  33. package/dist/chunks/{config-DVtggL6z.js → config-DlTdf-Yt.js} +4 -4
  34. package/dist/chunks/{config-DVtggL6z.js.map → config-DlTdf-Yt.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-CMI6oti9.js → conversationCard.component-1OCCeSNc.js} +2 -2
  36. package/dist/chunks/{conversationCard.component-CMI6oti9.js.map → conversationCard.component-1OCCeSNc.js.map} +1 -1
  37. package/dist/chunks/{conversationCard.component-BirDNlVs.js → conversationCard.component-Eb3E-4jY.js} +9 -9
  38. package/dist/chunks/{conversationCard.component-BirDNlVs.js.map → conversationCard.component-Eb3E-4jY.js.map} +1 -1
  39. package/dist/chunks/{datePicker.component-Wac_ZnvV.js → datePicker.component-CTbeLdvH.js} +8 -8
  40. package/dist/chunks/{datePicker.component-Wac_ZnvV.js.map → datePicker.component-CTbeLdvH.js.map} +1 -1
  41. package/dist/chunks/datePicker.component-DvAwsX_7.js +15 -0
  42. package/dist/chunks/{datePicker.component-DSGJKErd.js.map → datePicker.component-DvAwsX_7.js.map} +1 -1
  43. package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
  44. package/dist/chunks/{dialog-trigger-6j0ZA8bc.js.map → dialog-trigger-B5NK0lr-.js.map} +1 -1
  45. package/dist/chunks/{dialog-trigger-rbYorcnG.js → dialog-trigger-BPlPzPU-.js} +5 -5
  46. package/dist/chunks/{dialog-trigger-rbYorcnG.js.map → dialog-trigger-BPlPzPU-.js.map} +1 -1
  47. package/dist/chunks/{heading.component-Cum2BALi.js → heading.component-DJaIpxi0.js} +2 -2
  48. package/dist/chunks/{heading.component-Cum2BALi.js.map → heading.component-DJaIpxi0.js.map} +1 -1
  49. package/dist/chunks/{heading.component-a6IrCj7l.js → heading.component-lFK21HJl.js} +2 -2
  50. package/dist/chunks/{heading.component-a6IrCj7l.js.map → heading.component-lFK21HJl.js.map} +1 -1
  51. package/dist/chunks/{index-PD_OmAnh.js → index-BBZxmcrY.js} +2 -2
  52. package/dist/chunks/{index-PD_OmAnh.js.map → index-BBZxmcrY.js.map} +1 -1
  53. package/dist/chunks/index-BDnnTdaJ.js +2 -0
  54. package/dist/chunks/{index-Cw75JjHp.js.map → index-BDnnTdaJ.js.map} +1 -1
  55. package/dist/chunks/{index-Cd776OkZ.js → index-BGwwyukg.js} +2 -2
  56. package/dist/chunks/{index-Cd776OkZ.js.map → index-BGwwyukg.js.map} +1 -1
  57. package/dist/chunks/{index-zgGK8otr.js → index-BNYygzo-.js} +5 -5
  58. package/dist/chunks/{index-zgGK8otr.js.map → index-BNYygzo-.js.map} +1 -1
  59. package/dist/chunks/index-BYf7SZUC.js +2 -0
  60. package/dist/chunks/{index-C-VkceKb.js.map → index-BYf7SZUC.js.map} +1 -1
  61. package/dist/chunks/{index-Csfb-K1K.js → index-C2kxTsiE.js} +5 -5
  62. package/dist/chunks/{index-Csfb-K1K.js.map → index-C2kxTsiE.js.map} +1 -1
  63. package/dist/chunks/index-COoMV9Mh.js +2 -0
  64. package/dist/chunks/{index-U8SN9h_h.js.map → index-COoMV9Mh.js.map} +1 -1
  65. package/dist/chunks/{index-c2eCwOCU.js → index-CYk-7wwG.js} +464 -464
  66. package/dist/chunks/index-CYk-7wwG.js.map +1 -0
  67. package/dist/chunks/index-CZ42b9rT.js +3 -0
  68. package/dist/chunks/index-CZ42b9rT.js.map +1 -0
  69. package/dist/chunks/index-CZz7hHWb.js +2 -0
  70. package/dist/chunks/{index-B4rwgehU.js.map → index-CZz7hHWb.js.map} +1 -1
  71. package/dist/chunks/{index-vVG7UN0y.js → index-CjNAJEk5.js} +4 -4
  72. package/dist/chunks/{index-vVG7UN0y.js.map → index-CjNAJEk5.js.map} +1 -1
  73. package/dist/chunks/{index-C4xXAinc.js → index-Co91SHhW.js} +3 -3
  74. package/dist/chunks/{index-C4xXAinc.js.map → index-Co91SHhW.js.map} +1 -1
  75. package/dist/chunks/index-D-rN7ETu.js +2 -0
  76. package/dist/chunks/{index-DUEcH1Ul.js.map → index-D-rN7ETu.js.map} +1 -1
  77. package/dist/chunks/{index-CBVOChyW.js → index-D9DU-5GF.js} +4 -4
  78. package/dist/chunks/{index-CBVOChyW.js.map → index-D9DU-5GF.js.map} +1 -1
  79. package/dist/chunks/{index-CL5b64u0.js → index-DUHFrLMI.js} +2 -2
  80. package/dist/chunks/{index-CL5b64u0.js.map → index-DUHFrLMI.js.map} +1 -1
  81. package/dist/chunks/{index-BmJA4z7Y.js → index-DcJZ8q0f.js} +4 -4
  82. package/dist/chunks/{index-BmJA4z7Y.js.map → index-DcJZ8q0f.js.map} +1 -1
  83. package/dist/chunks/index-MlhL0PDC.js +2 -0
  84. package/dist/chunks/{index-iPTsth-y.js.map → index-MlhL0PDC.js.map} +1 -1
  85. package/dist/chunks/{index-BQusETZC.js → index-S1uNQPZj.js} +3 -3
  86. package/dist/chunks/{index-BQusETZC.js.map → index-S1uNQPZj.js.map} +1 -1
  87. package/dist/chunks/index-UWtj4ULm.js +8 -0
  88. package/dist/chunks/{index-DX-8RG9n.js.map → index-UWtj4ULm.js.map} +1 -1
  89. package/dist/chunks/index-ZaGEDS_0.js +2 -0
  90. package/dist/chunks/{index-Cwl9h4X_.js.map → index-ZaGEDS_0.js.map} +1 -1
  91. package/dist/chunks/{index-D8ghhfzK.js → index-j7W9Hyzx.js} +2 -2
  92. package/dist/chunks/{index-D8ghhfzK.js.map → index-j7W9Hyzx.js.map} +1 -1
  93. package/dist/chunks/{index-CWZQythd.js → index-ryFIinh4.js} +4 -4
  94. package/dist/chunks/{index-CWZQythd.js.map → index-ryFIinh4.js.map} +1 -1
  95. package/dist/chunks/{logo.types-DVfuQmDd.js → logo.types-By8TqyNf.js} +2 -2
  96. package/dist/chunks/{logo.types-DVfuQmDd.js.map → logo.types-By8TqyNf.js.map} +1 -1
  97. package/dist/chunks/{menu.component-ColftkpF.js → menu.component-CrRs7bHi.js} +9 -9
  98. package/dist/chunks/{menu.component-ColftkpF.js.map → menu.component-CrRs7bHi.js.map} +1 -1
  99. package/dist/chunks/menu.component-Ob_ob-5Z.js +2 -0
  100. package/dist/chunks/{menu.component-Ct_9TaWj.js.map → menu.component-Ob_ob-5Z.js.map} +1 -1
  101. package/dist/chunks/modal.types-Bq8QqBuR.js +2 -0
  102. package/dist/chunks/{modal.types-CsGdjZZf.js.map → modal.types-Bq8QqBuR.js.map} +1 -1
  103. package/dist/chunks/{modal.types-BJDq3ofH.js → modal.types-DCe2G-mT.js} +5 -5
  104. package/dist/chunks/{modal.types-BJDq3ofH.js.map → modal.types-DCe2G-mT.js.map} +1 -1
  105. package/dist/chunks/{notificationCounter.component-CHlLTEiF.js → notificationCounter.component-Bei8mHSZ.js} +2 -2
  106. package/dist/chunks/{notificationCounter.component-CHlLTEiF.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
  107. package/dist/chunks/{pinInput.types-k-MTZ5SR.js → pinInput.types-ChHs2RV-.js} +6 -6
  108. package/dist/chunks/{pinInput.types-k-MTZ5SR.js.map → pinInput.types-ChHs2RV-.js.map} +1 -1
  109. package/dist/chunks/pinInput.types-hI4GxH_1.js +2 -0
  110. package/dist/chunks/{pinInput.types-GznuQbzY.js.map → pinInput.types-hI4GxH_1.js.map} +1 -1
  111. package/dist/chunks/popover-80QH8HEJ.js +2 -0
  112. package/dist/chunks/{popover-ZImHeDTu.js.map → popover-80QH8HEJ.js.map} +1 -1
  113. package/dist/chunks/{popover-JzE_u7E-.js → popover-B9rNOU0g.js} +4 -4
  114. package/dist/chunks/{popover-JzE_u7E-.js.map → popover-B9rNOU0g.js.map} +1 -1
  115. package/dist/chunks/{popover-root-provider-S83-0n0E.js → popover-root-provider-CeLLpesI.js} +4 -4
  116. package/dist/chunks/{popover-root-provider-S83-0n0E.js.map → popover-root-provider-CeLLpesI.js.map} +1 -1
  117. package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
  118. package/dist/chunks/{popover-root-provider-RWj-0mRI.js.map → popover-root-provider-DAMDDAHQ.js.map} +1 -1
  119. package/dist/chunks/{popover.component-Bh32Kl6i.js → popover.component-BIpq3zkh.js} +8 -8
  120. package/dist/chunks/{popover.component-Bh32Kl6i.js.map → popover.component-BIpq3zkh.js.map} +1 -1
  121. package/dist/chunks/popover.component-Dz0_vSF2.js +2 -0
  122. package/dist/chunks/{popover.component-D4NdsCQv.js.map → popover.component-Dz0_vSF2.js.map} +1 -1
  123. package/dist/chunks/{popover.recipe-DhQtUTnw.js → popover.recipe--gMRcQTS.js} +5 -5
  124. package/dist/chunks/{popover.recipe-DhQtUTnw.js.map → popover.recipe--gMRcQTS.js.map} +1 -1
  125. package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
  126. package/dist/chunks/{popover.recipe-D7Q80iWn.js.map → popover.recipe-DLeyokHo.js.map} +1 -1
  127. package/dist/chunks/radio.records-CAWibIHJ.js +2 -0
  128. package/dist/chunks/{radio.records-BKkl9Mk4.js.map → radio.records-CAWibIHJ.js.map} +1 -1
  129. package/dist/chunks/{radio.records-BD5zaE5E.js → radio.records-gz4RRw4x.js} +4 -4
  130. package/dist/chunks/{radio.records-BD5zaE5E.js.map → radio.records-gz4RRw4x.js.map} +1 -1
  131. package/dist/chunks/{radioGroup.component-DbslYk4o.js → radioGroup.component-wTDMlFMI.js} +7 -7
  132. package/dist/chunks/{radioGroup.component-DbslYk4o.js.map → radioGroup.component-wTDMlFMI.js.map} +1 -1
  133. package/dist/chunks/radioGroup.component-xCr6p4DS.js +2 -0
  134. package/dist/chunks/{radioGroup.component-C6wU0Srn.js.map → radioGroup.component-xCr6p4DS.js.map} +1 -1
  135. package/dist/chunks/{ratingDots.component-B2jdV6Uk.js → ratingDots.component-DNeSgGRt.js} +4 -4
  136. package/dist/chunks/{ratingDots.component-B2jdV6Uk.js.map → ratingDots.component-DNeSgGRt.js.map} +1 -1
  137. package/dist/chunks/{ratingDots.component-DV7pmIJJ.js → ratingDots.component-DvlGbBPz.js} +2 -2
  138. package/dist/chunks/{ratingDots.component-DV7pmIJJ.js.map → ratingDots.component-DvlGbBPz.js.map} +1 -1
  139. package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
  140. package/dist/chunks/{render-strategy-BCWksbL8.js.map → render-strategy-BmWbSgqh.js.map} +1 -1
  141. package/dist/chunks/{render-strategy-DaeRfJpM.js → render-strategy-C8hwN3bm.js} +2 -2
  142. package/dist/chunks/{render-strategy-DaeRfJpM.js.map → render-strategy-C8hwN3bm.js.map} +1 -1
  143. package/dist/chunks/select.component-1__YvaFF.js +2 -0
  144. package/dist/chunks/{select.component-DDRV0zBf.js.map → select.component-1__YvaFF.js.map} +1 -1
  145. package/dist/chunks/{select.component-CRmnH0Ty.js → select.component-DN5g4aQG.js} +10 -10
  146. package/dist/chunks/{select.component-CRmnH0Ty.js.map → select.component-DN5g4aQG.js.map} +1 -1
  147. package/dist/chunks/{sortableList.component-Dlq8P2tc.js → sortableList.component-DI2da4B_.js} +3 -3
  148. package/dist/chunks/{sortableList.component-Dlq8P2tc.js.map → sortableList.component-DI2da4B_.js.map} +1 -1
  149. package/dist/chunks/{sortableList.component-B59RwzTi.js → sortableList.component-U3Kci1Jk.js} +2 -2
  150. package/dist/chunks/{sortableList.component-B59RwzTi.js.map → sortableList.component-U3Kci1Jk.js.map} +1 -1
  151. package/dist/chunks/{spinner.component-DsDyKpq2.js → spinner.component-DER6c5R6.js} +3 -3
  152. package/dist/chunks/{spinner.component-DsDyKpq2.js.map → spinner.component-DER6c5R6.js.map} +1 -1
  153. package/dist/chunks/{spinner.component-DBCa-ZPE.js → spinner.component-DUIpnXU8.js} +2 -2
  154. package/dist/chunks/{spinner.component-DBCa-ZPE.js.map → spinner.component-DUIpnXU8.js.map} +1 -1
  155. package/dist/chunks/{styledAvatar.types-X9FV2vOM.js → styledAvatar.types-EGc1-I1N.js} +2 -2
  156. package/dist/chunks/{styledAvatar.types-X9FV2vOM.js.map → styledAvatar.types-EGc1-I1N.js.map} +1 -1
  157. package/dist/chunks/{styledAvatar.types-BUyxKyGa.js → styledAvatar.types-HA5wRy7y.js} +2 -2
  158. package/dist/chunks/{styledAvatar.types-BUyxKyGa.js.map → styledAvatar.types-HA5wRy7y.js.map} +1 -1
  159. package/dist/chunks/{swatch.types-Dsv11aQw.js → swatch.types-DbgA3RWc.js} +2 -2
  160. package/dist/chunks/{swatch.types-Dsv11aQw.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
  161. package/dist/chunks/{switch.component-DR4jYcSz.js → switch.component-6TiuST9H.js} +6 -6
  162. package/dist/chunks/{switch.component-DR4jYcSz.js.map → switch.component-6TiuST9H.js.map} +1 -1
  163. package/dist/chunks/switch.component-BPS2pQZx.js +2 -0
  164. package/dist/chunks/{switch.component-BZh12RCT.js.map → switch.component-BPS2pQZx.js.map} +1 -1
  165. package/dist/chunks/tabs.component-DnbHYXT-.js +2 -0
  166. package/dist/chunks/{tabs.component-CzyTXhJp.js.map → tabs.component-DnbHYXT-.js.map} +1 -1
  167. package/dist/chunks/{tabs.component-C_4sO8kW.js → tabs.component-RpmipiEe.js} +6 -6
  168. package/dist/chunks/{tabs.component-C_4sO8kW.js.map → tabs.component-RpmipiEe.js.map} +1 -1
  169. package/dist/chunks/{tagBlock.component-B_dQ7rGS.js → tagBlock.component-C-CNF4In.js} +5 -5
  170. package/dist/chunks/{tagBlock.component-B_dQ7rGS.js.map → tagBlock.component-C-CNF4In.js.map} +1 -1
  171. package/dist/chunks/{tagBlock.component-BI1AmbDR.js → tagBlock.component-DgmTLlRz.js} +2 -2
  172. package/dist/chunks/{tagBlock.component-BI1AmbDR.js.map → tagBlock.component-DgmTLlRz.js.map} +1 -1
  173. package/dist/chunks/{text.component-BA-9q9gX.js → text.component-BGUHMpKP.js} +2 -2
  174. package/dist/chunks/{text.component-BA-9q9gX.js.map → text.component-BGUHMpKP.js.map} +1 -1
  175. package/dist/chunks/{text.component-ColgFnqE.js → text.component-BJ5u8GVO.js} +2 -2
  176. package/dist/chunks/{text.component-ColgFnqE.js.map → text.component-BJ5u8GVO.js.map} +1 -1
  177. package/dist/chunks/{textInput.component-BttHjzdC.js → textInput.component-B2S0GcHU.js} +6 -6
  178. package/dist/chunks/{textInput.component-BttHjzdC.js.map → textInput.component-B2S0GcHU.js.map} +1 -1
  179. package/dist/chunks/textInput.component-D1L2qv1M.js +2 -0
  180. package/dist/chunks/{textInput.component-cFmQkIXY.js.map → textInput.component-D1L2qv1M.js.map} +1 -1
  181. package/dist/chunks/textarea.component-BEgF2Yny.js +2 -0
  182. package/dist/chunks/{textarea.component-cEtZ6ReA.js.map → textarea.component-BEgF2Yny.js.map} +1 -1
  183. package/dist/chunks/{textarea.component-DKiTZ2bP.js → textarea.component-DB51bevU.js} +6 -6
  184. package/dist/chunks/{textarea.component-DKiTZ2bP.js.map → textarea.component-DB51bevU.js.map} +1 -1
  185. package/dist/chunks/{theme.provider-Dd0L8qXA.js → theme.provider-Dez6uepg.js} +2928 -2911
  186. package/dist/chunks/theme.provider-Dez6uepg.js.map +1 -0
  187. package/dist/chunks/theme.provider-u0ofgWRM.js +26 -0
  188. package/dist/chunks/theme.provider-u0ofgWRM.js.map +1 -0
  189. package/dist/chunks/{timePicker.component-D0WsvkI5.js → timePicker.component-DsQUV8fR.js} +4 -4
  190. package/dist/chunks/{timePicker.component-D0WsvkI5.js.map → timePicker.component-DsQUV8fR.js.map} +1 -1
  191. package/dist/chunks/{timePicker.component-CegBtxsl.js → timePicker.component-av1t2G-i.js} +2 -2
  192. package/dist/chunks/{timePicker.component-CegBtxsl.js.map → timePicker.component-av1t2G-i.js.map} +1 -1
  193. package/dist/chunks/{timeRange.component-Cc3ZfoeN.js → timeRange.component-B7syLsrU.js} +2 -2
  194. package/dist/chunks/{timeRange.component-Cc3ZfoeN.js.map → timeRange.component-B7syLsrU.js.map} +1 -1
  195. package/dist/chunks/{timeRange.component-C1p0bfmg.js → timeRange.component-bIQZJ4MP.js} +2 -2
  196. package/dist/chunks/{timeRange.component-C1p0bfmg.js.map → timeRange.component-bIQZJ4MP.js.map} +1 -1
  197. package/dist/chunks/{timestamp.component-ZDbg3G8Z.js → timestamp.component-CNlZ6Jw2.js} +2 -2
  198. package/dist/chunks/{timestamp.component-ZDbg3G8Z.js.map → timestamp.component-CNlZ6Jw2.js.map} +1 -1
  199. package/dist/chunks/{timestamp.component-CZGCU-JV.js → timestamp.component-ZcL8FlD-.js} +3 -3
  200. package/dist/chunks/{timestamp.component-CZGCU-JV.js.map → timestamp.component-ZcL8FlD-.js.map} +1 -1
  201. package/dist/chunks/{toaster.records-DeXyJQpa.js → toaster.records-BGfpUOVt.js} +3 -3
  202. package/dist/chunks/{toaster.records-DeXyJQpa.js.map → toaster.records-BGfpUOVt.js.map} +1 -1
  203. package/dist/chunks/{toaster.records-3VWRSgsn.js → toaster.records-BJo0j1IZ.js} +2 -2
  204. package/dist/chunks/{toaster.records-3VWRSgsn.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
  205. package/dist/chunks/tooltip.component-B4S3qwsH.js +2 -0
  206. package/dist/chunks/tooltip.component-B4S3qwsH.js.map +1 -0
  207. package/dist/chunks/{tooltip.component-C5FgUWfB.js → tooltip.component-OLohVRIH.js} +213 -171
  208. package/dist/chunks/tooltip.component-OLohVRIH.js.map +1 -0
  209. package/dist/chunks/{typography.records-CIqVDP87.js → typography.records-C6G_65b4.js} +2 -2
  210. package/dist/chunks/{typography.records-CIqVDP87.js.map → typography.records-C6G_65b4.js.map} +1 -1
  211. package/dist/chunks/{typography.records-QKCR4PDO.js → typography.records-jnjWfTLS.js} +2 -2
  212. package/dist/chunks/{typography.records-QKCR4PDO.js.map → typography.records-jnjWfTLS.js.map} +1 -1
  213. package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
  214. package/dist/chunks/{use-field-context-BJ7xh7mY.js.map → use-field-context--wBJQY1R.js.map} +1 -1
  215. package/dist/chunks/{use-field-context-PoccdU55.js → use-field-context-B_G7Yziz.js} +2 -2
  216. package/dist/chunks/{use-field-context-PoccdU55.js.map → use-field-context-B_G7Yziz.js.map} +1 -1
  217. package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
  218. package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
  219. package/dist/chunks/{portal-C7cdrplU.js → use-locale-context-D-agiW5E.js} +437 -437
  220. package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
  221. package/dist/chunks/{withFormControl-DA1TgH2T.js → withFormControl-DIT4DbIl.js} +6 -6
  222. package/dist/chunks/{withFormControl-DA1TgH2T.js.map → withFormControl-DIT4DbIl.js.map} +1 -1
  223. package/dist/chunks/withFormControl-DzgoWpP6.js +2 -0
  224. package/dist/chunks/{withFormControl-PaMa_BVC.js.map → withFormControl-DzgoWpP6.js.map} +1 -1
  225. package/dist/chunks/{withTruncation-GECNx84Z.js → withTruncation-CVhXtaaF.js} +2 -2
  226. package/dist/chunks/{withTruncation-GECNx84Z.js.map → withTruncation-CVhXtaaF.js.map} +1 -1
  227. package/dist/chunks/{withTruncation-lxIe2bbU.js → withTruncation-CYH02HoE.js} +2 -2
  228. package/dist/chunks/{withTruncation-lxIe2bbU.js.map → withTruncation-CYH02HoE.js.map} +1 -1
  229. package/dist/chunks/{wrap-Dk19PFnP.js → wrap-B8tBNeBY.js} +2 -2
  230. package/dist/chunks/{wrap-Dk19PFnP.js.map → wrap-B8tBNeBY.js.map} +1 -1
  231. package/dist/cjs/chakra/index.cjs +1 -1
  232. package/dist/cjs/chakra/index.cjs.map +1 -1
  233. package/dist/cjs/components/Alert/index.cjs +1 -1
  234. package/dist/cjs/components/Avatar/index.cjs +1 -1
  235. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  236. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  237. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  238. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  239. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  240. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  241. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  242. package/dist/cjs/components/Heading/index.cjs +1 -1
  243. package/dist/cjs/components/Menu/index.cjs +1 -1
  244. package/dist/cjs/components/Modal/index.cjs +1 -1
  245. package/dist/cjs/components/PinInput/index.cjs +1 -1
  246. package/dist/cjs/components/Popover/index.cjs +1 -1
  247. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  248. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  249. package/dist/cjs/components/Select/index.cjs +1 -1
  250. package/dist/cjs/components/SortableList/index.cjs +1 -1
  251. package/dist/cjs/components/Spinner/index.cjs +1 -1
  252. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  253. package/dist/cjs/components/Switch/index.cjs +1 -1
  254. package/dist/cjs/components/Tabs/index.cjs +1 -1
  255. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  256. package/dist/cjs/components/Text/index.cjs +1 -1
  257. package/dist/cjs/components/TextInput/index.cjs +1 -1
  258. package/dist/cjs/components/Textarea/index.cjs +1 -1
  259. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  260. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  261. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  262. package/dist/cjs/components/Toast/index.cjs +1 -1
  263. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  264. package/dist/cjs/components/index.cjs +1 -1
  265. package/dist/cjs/index.cjs +1 -1
  266. package/dist/cjs/theme/index.cjs +1 -1
  267. package/dist/esm/chakra/index.js +11 -11
  268. package/dist/esm/components/Alert/index.js +1 -1
  269. package/dist/esm/components/Avatar/index.js +1 -1
  270. package/dist/esm/components/AvatarGroup/index.js +1 -1
  271. package/dist/esm/components/ButtonGroup/index.js +1 -1
  272. package/dist/esm/components/CharacterCounter/index.js +1 -1
  273. package/dist/esm/components/Checkbox/index.js +1 -1
  274. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  275. package/dist/esm/components/ConversationCard/index.js +1 -1
  276. package/dist/esm/components/DatePicker/index.js +1 -1
  277. package/dist/esm/components/Heading/index.js +1 -1
  278. package/dist/esm/components/Logo/index.js +1 -1
  279. package/dist/esm/components/Menu/index.js +1 -1
  280. package/dist/esm/components/Modal/index.js +1 -1
  281. package/dist/esm/components/NotificationCounter/index.js +1 -1
  282. package/dist/esm/components/PinInput/index.js +1 -1
  283. package/dist/esm/components/Popover/index.js +1 -1
  284. package/dist/esm/components/RadioGroup/index.js +1 -1
  285. package/dist/esm/components/RatingDots/index.js +1 -1
  286. package/dist/esm/components/Select/index.js +1 -1
  287. package/dist/esm/components/SortableList/index.js +1 -1
  288. package/dist/esm/components/Spinner/index.js +1 -1
  289. package/dist/esm/components/StyledAvatar/index.js +1 -1
  290. package/dist/esm/components/Swatch/index.js +1 -1
  291. package/dist/esm/components/Switch/index.js +1 -1
  292. package/dist/esm/components/Tabs/index.js +1 -1
  293. package/dist/esm/components/TagBlock/index.js +1 -1
  294. package/dist/esm/components/Text/index.js +1 -1
  295. package/dist/esm/components/TextInput/index.js +1 -1
  296. package/dist/esm/components/Textarea/index.js +1 -1
  297. package/dist/esm/components/TimePicker/index.js +1 -1
  298. package/dist/esm/components/TimeRange/index.js +1 -1
  299. package/dist/esm/components/Timestamp/index.js +1 -1
  300. package/dist/esm/components/Toast/index.js +1 -1
  301. package/dist/esm/components/Tooltip/index.js +1 -1
  302. package/dist/esm/components/index.js +33 -33
  303. package/dist/esm/index.js +34 -34
  304. package/dist/esm/theme/index.js +1 -1
  305. package/dist/types/components/Button/button.recipe.d.ts +1 -1
  306. package/dist/types/components/Logo/logo.recipe.d.ts +1 -1
  307. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  308. package/dist/types/components/PinInput/pinInput.recipe.d.ts +1 -1
  309. package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
  310. package/dist/types/components/Tooltip/tooltip.component.d.ts +5 -9
  311. package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -0
  312. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
  313. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
  314. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +5 -5
  315. package/package.json +1 -1
  316. package/dist/chunks/avatar.component-BBewTMu9.js +0 -2
  317. package/dist/chunks/checkbox.component-CWN9kU5p.js +0 -2
  318. package/dist/chunks/checkbox.records-djqGyo0P.js +0 -2
  319. package/dist/chunks/datePicker.component-DSGJKErd.js +0 -15
  320. package/dist/chunks/dialog-trigger-6j0ZA8bc.js +0 -2
  321. package/dist/chunks/index-B3Uf1AVX.js +0 -3
  322. package/dist/chunks/index-B3Uf1AVX.js.map +0 -1
  323. package/dist/chunks/index-B4rwgehU.js +0 -2
  324. package/dist/chunks/index-C-VkceKb.js +0 -2
  325. package/dist/chunks/index-Cw75JjHp.js +0 -2
  326. package/dist/chunks/index-Cwl9h4X_.js +0 -2
  327. package/dist/chunks/index-DUEcH1Ul.js +0 -2
  328. package/dist/chunks/index-DX-8RG9n.js +0 -8
  329. package/dist/chunks/index-U8SN9h_h.js +0 -2
  330. package/dist/chunks/index-c2eCwOCU.js.map +0 -1
  331. package/dist/chunks/index-iPTsth-y.js +0 -2
  332. package/dist/chunks/menu.component-Ct_9TaWj.js +0 -2
  333. package/dist/chunks/modal.context-DSKLfsJK.js +0 -12
  334. package/dist/chunks/modal.context-DSKLfsJK.js.map +0 -1
  335. package/dist/chunks/modal.context-EJ67QNzq.js +0 -2
  336. package/dist/chunks/modal.context-EJ67QNzq.js.map +0 -1
  337. package/dist/chunks/modal.types-CsGdjZZf.js +0 -2
  338. package/dist/chunks/pinInput.types-GznuQbzY.js +0 -2
  339. package/dist/chunks/popover-ZImHeDTu.js +0 -2
  340. package/dist/chunks/popover-root-provider-RWj-0mRI.js +0 -2
  341. package/dist/chunks/popover.component-D4NdsCQv.js +0 -2
  342. package/dist/chunks/popover.recipe-D7Q80iWn.js +0 -2
  343. package/dist/chunks/portal-C7cdrplU.js.map +0 -1
  344. package/dist/chunks/portal-JkodPmk7.js +0 -22
  345. package/dist/chunks/portal-JkodPmk7.js.map +0 -1
  346. package/dist/chunks/radio.records-BKkl9Mk4.js +0 -2
  347. package/dist/chunks/radioGroup.component-C6wU0Srn.js +0 -2
  348. package/dist/chunks/render-strategy-BCWksbL8.js +0 -2
  349. package/dist/chunks/select.component-DDRV0zBf.js +0 -2
  350. package/dist/chunks/switch.component-BZh12RCT.js +0 -2
  351. package/dist/chunks/tabs.component-CzyTXhJp.js +0 -2
  352. package/dist/chunks/textInput.component-cFmQkIXY.js +0 -2
  353. package/dist/chunks/textarea.component-cEtZ6ReA.js +0 -2
  354. package/dist/chunks/theme.provider-Dd0L8qXA.js.map +0 -1
  355. package/dist/chunks/theme.provider-Dh_N0A6U.js +0 -26
  356. package/dist/chunks/theme.provider-Dh_N0A6U.js.map +0 -1
  357. package/dist/chunks/tooltip.component-BiDAtm5N.js +0 -2
  358. package/dist/chunks/tooltip.component-BiDAtm5N.js.map +0 -1
  359. package/dist/chunks/tooltip.component-C5FgUWfB.js.map +0 -1
  360. package/dist/chunks/use-field-context-BJ7xh7mY.js +0 -2
  361. package/dist/chunks/withFormControl-PaMa_BVC.js +0 -2
@@ -1,2 +0,0 @@
1
- "use strict";const u=require("./index-B3Uf1AVX.js"),N=require("./portal-JkodPmk7.js");var L=u.createAnatomy("pinInput").parts("root","label","input","control"),A=L.build(),v=e=>e.ids?.root??`pin-input:${e.id}`,b=(e,t)=>e.ids?.input?.(t)??`pin-input:${e.id}:${t}`,T=e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`,U=e=>e.ids?.label??`pin-input:${e.id}:label`,S=e=>e.ids?.control??`pin-input:${e.id}:control`,R=e=>e.getById(v(e)),y=e=>{const a=`input[data-ownedby=${CSS.escape(v(e))}]`;return u.queryAll(R(e),a)},g=(e,t)=>y(e)[t],O=e=>y(e)[0],F=e=>e.getById(T(e)),E=(e,t)=>{e.value=t,e.setAttribute("value",t)},$={numeric:/^[0-9]+$/,alphabetic:/^[A-Za-z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i};function _(e,t){return e?!!$[e]?.test(t):!0}function w(e,t,a){return a?new RegExp(a,"g").test(e):_(t,e)}function B(e,t){const{send:a,context:l,computed:o,prop:n,scope:d}=e,f=o("isValueComplete"),I=n("invalid"),h=n("translations"),m=l.get("focusedIndex");function V(){O(d)?.focus()}return{focus:V,count:l.get("count"),items:Array.from({length:l.get("count")}).map((c,r)=>r),value:l.get("value"),valueAsString:o("valueAsString"),complete:f,setValue(c){Array.isArray(c)||u.invariant("[pin-input/setValue] value must be an array"),a({type:"VALUE.SET",value:c})},clearValue(){a({type:"VALUE.CLEAR"})},setValueAtIndex(c,r){a({type:"VALUE.SET",value:r,index:c})},getRootProps(){return t.element({dir:n("dir"),...A.root.attrs,id:v(d),"data-invalid":u.dataAttr(I),"data-disabled":u.dataAttr(n("disabled")),"data-complete":u.dataAttr(f),"data-readonly":u.dataAttr(n("readOnly"))})},getLabelProps(){return t.label({...A.label.attrs,dir:n("dir"),htmlFor:T(d),id:U(d),"data-invalid":u.dataAttr(I),"data-disabled":u.dataAttr(n("disabled")),"data-complete":u.dataAttr(f),"data-readonly":u.dataAttr(n("readOnly")),onClick(c){c.preventDefault(),V()}})},getHiddenInputProps(){return t.input({"aria-hidden":!0,type:"text",tabIndex:-1,id:T(d),readOnly:n("readOnly"),disabled:n("disabled"),required:n("required"),name:n("name"),form:n("form"),style:u.visuallyHiddenStyle,maxLength:o("valueLength"),defaultValue:o("valueAsString")})},getControlProps(){return t.element({...A.control.attrs,dir:n("dir"),id:S(d)})},getInputProps(c){const{index:r}=c,P=n("type")==="numeric"?"tel":"text";return t.input({...A.input.attrs,dir:n("dir"),disabled:n("disabled"),"data-disabled":u.dataAttr(n("disabled")),"data-complete":u.dataAttr(f),id:b(d,r.toString()),"data-index":r,"data-ownedby":v(d),"aria-label":h?.inputLabel?.(r,o("valueLength")),inputMode:n("otp")||n("type")==="numeric"?"numeric":"text","aria-invalid":u.ariaAttr(I),"data-invalid":u.dataAttr(I),type:n("mask")?"password":P,defaultValue:l.get("value")[r]||"",readOnly:n("readOnly"),autoCapitalize:"none",autoComplete:n("otp")?"one-time-code":"off",placeholder:m===r?"":n("placeholder"),onBeforeInput(s){try{const i=u.getBeforeInputValue(s);w(i,n("type"),n("pattern"))||(a({type:"VALUE.INVALID",value:i}),s.preventDefault()),i.length>2&&s.currentTarget.setSelectionRange(0,1,"forward")}catch{}},onChange(s){const i=u.getNativeEvent(s),{value:p}=s.currentTarget;if(i.inputType==="insertFromPaste"||p.length>2){a({type:"INPUT.PASTE",value:p}),s.currentTarget.value=p[0],s.preventDefault();return}if(i.inputType==="deleteContentBackward"){a({type:"INPUT.BACKSPACE"});return}a({type:"INPUT.CHANGE",value:p,index:r})},onKeyDown(s){if(s.defaultPrevented||u.isComposingEvent(s)||u.isModifierKey(s))return;const p={Backspace(){a({type:"INPUT.BACKSPACE"})},Delete(){a({type:"INPUT.DELETE"})},ArrowLeft(){a({type:"INPUT.ARROW_LEFT"})},ArrowRight(){a({type:"INPUT.ARROW_RIGHT"})},Enter(){a({type:"INPUT.ENTER"})}}[u.getEventKey(s,{dir:n("dir"),orientation:"horizontal"})];p&&(p(s),s.preventDefault())},onFocus(){a({type:"INPUT.FOCUS",index:r})},onBlur(s){const i=s.relatedTarget;u.isHTMLElement(i)&&i.dataset.ownedby===v(d)||a({type:"INPUT.BLUR",index:r})}})}}}var{choose:q,createMachine:D}=u.setup(),M=D({props({props:e}){return{placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?x([],e.count):[],...e,translations:{inputLabel:(t,a)=>`pin code ${t+1} of ${a}`,...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:u.isEqual,onChange(a){e("onValueChange")?.({value:a,valueAsString:a.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}},computed:{_value:({context:e})=>x(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(t=>t?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:q([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:a,computed:l}){t([()=>a.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>a.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>l("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>e.get("value")[e.get("focusedIndex")]!=="",isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>e.index!==void 0},actions:{dispatchInputEvent({computed:e,scope:t}){const a=F(t);u.dispatchInputValueEvent(a,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:a}){if(a("count"))return;const l=y(e);t.set("count",l.length)},focusInput({context:e,scope:t}){const a=e.get("focusedIndex");a!==-1&&g(t,a)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:a}){const l=e.get("focusedIndex");!t("selectOnFocus")||l===-1||u.raf(()=>{g(a,l)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:a}){a("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){const a=x(t.value,e.get("count"));e.set("value",a)},setFocusedValue({context:e,event:t,computed:a,flush:l}){const o=a("focusedValue"),n=e.get("focusedIndex"),d=C(o,t.value);l(()=>{e.set("value",u.setValueAtIndex(a("_value"),n,d))})},revertInputValue({context:e,computed:t,scope:a}){const l=g(a,e.get("focusedIndex"));E(l,t("focusedValue"))},syncInputValue({context:e,event:t,scope:a}){const l=e.get("value"),o=g(a,t.index);E(o,l[t.index])},syncInputElements({context:e,scope:t}){const a=y(t),l=e.get("value");a.forEach((o,n)=>{E(o,l[n])})},setPastedValue({context:e,event:t,computed:a,flush:l}){u.raf(()=>{const o=a("valueAsString"),n=e.get("focusedIndex"),d=a("valueLength"),f=a("filledValueLength"),I=Math.min(n,f),h=I>0?o.substring(0,n):"",m=t.value.substring(0,d-I),V=x(`${h}${m}`.split(""),d);l(()=>{e.set("value",V)})})},setValueAtIndex({context:e,event:t,computed:a}){const l=C(a("focusedValue"),t.value);e.set("value",u.setValueAtIndex(a("_value"),t.index,l))},clearValue({context:e}){const t=Array.from({length:e.get("count")}).fill("");e.set("value",t)},clearFocusedValue({context:e,computed:t}){const a=e.get("focusedIndex");a!==-1&&e.set("value",u.setValueAtIndex(t("_value"),a,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){u.raf(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:a}){t("blurOnComplete")&&u.raf(()=>{g(a,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:a}){if(!t("name")||!e("isValueComplete"))return;F(a)?.form?.requestSubmit()}}}});function C(e,t){let a=t;return e[0]===t[0]?a=t[1]:e[0]===t[1]&&(a=t[0]),a.split("")[a.length-1]}function x(e,t){return Array.from({length:t}).fill("").map((a,l)=>e[l]||a)}N.createProps()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);exports.anatomy=L;exports.connect=B;exports.machine=M;
2
- //# sourceMappingURL=index-U8SN9h_h.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-c2eCwOCU.js","sources":["../../node_modules/@zag-js/utils/dist/index.mjs","../../node_modules/@zag-js/dom-query/dist/index.mjs","../../node_modules/@zag-js/core/dist/index.mjs","../../node_modules/@zag-js/anatomy/dist/index.mjs"],"sourcesContent":["// 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","// 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","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"],"names":["toArray","v","fromLength","length","first","last","has","add","items","remove","t","addOrRemove","item","nextIndex","idx","opts","step","loop","next2","len","last2","next","prevIndex","prev","index","flatArray","arr","flat","isArrayLike","value","isArrayEqual","a","b","i","isEqual","keys","key","isArray","isObjectLike","isObject","isNumber","isString","isFunction","isNull","hasProp","obj","prop","fnToString","runIfFn","identity","noop","callAll","fns","fn","uuid","id","tryCatch","fallback","error","floor","abs","round","min","max","pow","sign","isNaN","nan","mod","m","wrap","vmax","getMinValueAtIndex","vmin","getMaxValueAtIndex","isValueAtMax","isValueAtMin","isValueWithinRange","roundValue","clampValue","getValuePercent","getPercentValue","p","roundToStepPrecision","rv","ss","pi","pw","roundToDpr","dpr","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","e","decimalOp","op","result","multiplier","incrementValue","s","decrementValue","toPx","compact","isPlainObject2","filtered","pick","setRafTimeout","callback","delay","start","handle","now","warn","invariant","ensure","ensureProps","props","scope","missingKeys","clamp","_","pipe","arg","acc","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","getDocument","getDocumentElement","getWindow","getActiveElement","activeElement","getParentNode","styleCache","getComputedStyle","getDataUrl","svg","type","quality","background","win","doc","svgBounds","svgClone","source","svgString","str","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","pageKeys","arrowKeys","getEventStep","getEventPoint","point","addDomEvent","target","eventName","handler","getDescriptor","property","proto","getElementType","setElementValue","setElementChecked","checked","dispatchInputValueEvent","bubbles","dispatchInputCheckedEvent","getClosestForm","isFormElement","trackFormReset","form","onReset","trackFieldsetDisabled","fieldset","obs","trackFormControl","onFieldsetDisabledChange","onFormReset","cleanups","cleanup","isFrame","hasTabIndex","hasNegativeTabIndex","focusableSelector","getFocusables","container","includeContainer","elements","isFocusable","focusableElements","frameBody","getTabbables","tabbableElements","isTabbable","allFrameTabbable","getTabbableEdges","getNextTabbable","current","tabbables","currentElement","getTabIndex","getInitialFocus","root","getInitialEl","filter","enabled","isValidTabEvent","firstTabbable","lastTabbable","nextTick","set","raf2","fn2","raf","queueBeforeEvent","cb","cancelTimer","exec","observeAttributesImpl","attributes","changes","change","observeAttributes","nodeOrFn","defer","func","observeChildrenImpl","observeChildren","clickIfLink","click","getNearestOverflowAncestor","parentNode","isOverflowElement","getOverflowAncestors","list","scrollableAncestor","isBody","OVERFLOW_RE","overflow","overflowX","overflowY","display","isScrollable","scrollIntoView","rootEl","scrollOptions","getRelativePoint","left","top","width","height","offset","percent","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","indexOfId","nextById","prevById","trackElementRect","onEntry","measure","box","elems","entries","rects","sanitize","char","code","getValueText","match","valueText","query2","getByText","text","currentId","setStyle","style","setStyleProperty","getByTypeaheadImpl","baseItems","state2","activeId","timeout","search","update","getByTypeahead","isValidTypeaheadEvent","visuallyHiddenStyle","fps","waitForElement","timerId","el2","waitForElements","queries","clean","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"],"mappings":"AACA,SAASA,GAAQC,GAAG;AAClB,SAAKA,IACE,MAAM,QAAQA,CAAC,IAAIA,IAAI,CAACA,CAAC,IADjB,CAAE;AAEnB;AACG,IAACC,KAAa,CAACC,MAAW,MAAM,KAAK,MAAMA,CAAM,EAAE,KAAM,CAAA,GACxDC,KAAQ,CAACH,MAAMA,EAAE,CAAC,GAClBI,KAAO,CAACJ,MAAMA,EAAEA,EAAE,SAAS,CAAC,GAE5BK,KAAM,CAACL,GAAG,MAAMA,EAAE,QAAQ,CAAC,MAAM,IACjCM,KAAM,CAACN,MAAMO,MAAUP,EAAE,OAAOO,CAAK,GACrCC,KAAS,CAACR,MAAMO,MAAUP,EAAE,OAAO,CAACS,MAAM,CAACF,EAAM,SAASE,CAAC,CAAC,GAI5DC,KAAc,CAACV,GAAGW,MAChBN,GAAIL,GAAGW,CAAI,IAAUH,GAAOR,GAAGW,CAAI,IAChCL,GAAIN,GAAGW,CAAI;AAMpB,SAASC,GAAUZ,GAAGa,GAAKC,IAAO,CAAA,GAAI;AACpC,QAAM,EAAE,MAAAC,IAAO,GAAG,MAAAC,IAAO,GAAM,IAAGF,GAC5BG,IAAQJ,IAAME,GACdG,I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IACA,CAAK;AAAA,IACD,CAAA;AAAA,EACJ;AACA,IACIC,IAAc,CAAChd,MAAUA,EAAM,QAAQ,mBAAmB,OAAO,EAAE,QAAQ,mBAAmB,OAAO,EAAE,QAAQ,WAAW,GAAG,EAAE,YAAa,GAC5I6c,KAAU,CAACze,MAAMA,EAAE,WAAW;","x_google_ignoreList":[0,1,2,3]}
@@ -1,2 +0,0 @@
1
- "use strict";const c=require("./index-B3Uf1AVX.js"),g=require("./index-PD_OmAnh.js"),I=require("./index-Cd776OkZ.js"),b=require("./portal-JkodPmk7.js");var C=c.createAnatomy("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),l=C.build(),y=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,m=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,p=e=>e.ids?.content??`dialog:${e.id}:content`,f=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,O=e=>e.ids?.title??`dialog:${e.id}:title`,E=e=>e.ids?.description??`dialog:${e.id}:description`,k=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,u=e=>e.getById(p(e)),D=e=>e.getById(y(e)),P=e=>e.getById(m(e)),F=e=>e.getById(f(e)),T=e=>e.getById(O(e)),L=e=>e.getById(E(e)),h=e=>e.getById(k(e));function S(e,t){const{state:n,send:i,context:s,prop:a,scope:r}=e,v=a("aria-label"),d=n.matches("open");return{open:d,setOpen(o){n.matches("open")!==o&&i({type:o?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...l.trigger.attrs,dir:a("dir"),id:f(r),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":p(r),onClick(o){o.defaultPrevented||i({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...l.backdrop.attrs,dir:a("dir"),hidden:!d,id:m(r),"data-state":d?"open":"closed"})},getPositionerProps(){return t.element({...l.positioner.attrs,dir:a("dir"),id:y(r),style:{pointerEvents:d?void 0:"none"}})},getContentProps(){const o=s.get("rendered");return t.element({...l.content.attrs,dir:a("dir"),role:a("role"),hidden:!d,id:p(r),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":v||void 0,"aria-labelledby":v||!o.title?void 0:O(r),"aria-describedby":o.description?E(r):void 0})},getTitleProps(){return t.element({...l.title.attrs,dir:a("dir"),id:O(r)})},getDescriptionProps(){return t.element({...l.description.attrs,dir:a("dir"),id:E(r)})},getCloseTriggerProps(){return t.button({...l.closeTrigger.attrs,dir:a("dir"),id:k(r),type:"button",onClick(o){o.defaultPrevented||(o.stopPropagation(),i({type:"CLOSE"}))}})}}}var B=c.createMachine({props({props:e,scope:t}){const n=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n?()=>h(t):void 0,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){const i=()=>u(e);return I.trackDismissableElement(i,{defer:!0,pointerBlocking:n("modal"),exclude:[F(e)],onInteractOutside(s){n("onInteractOutside")?.(s),n("closeOnInteractOutside")||s.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(s){n("onEscapeKeyDown")?.(s),n("closeOnEscape")||s.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return g.preventBodyScroll(e.getDoc())},trapFocus({scope:e,prop:t}){if(!t("trapFocus")||!t("modal"))return;const n=()=>u(e);return g.trapFocus(n,{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:i=>t("finalFocusEl")?.()??i})},hideContentBelow({scope:e,prop:t}){if(!t("modal"))return;const n=()=>[u(e)];return g.ariaHidden(n,{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){c.raf(()=>{e.set("rendered",{title:!!T(t),description:!!L(t)})})},syncZIndex({scope:e}){c.raf(()=>{const t=u(e);if(!t)return;const n=c.getComputedStyle(t);[D(e),P(e)].forEach(s=>{s?.style.setProperty("--z-index",n.zIndex)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}});b.createProps()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);exports.anatomy=C;exports.connect=S;exports.machine=B;
2
- //# sourceMappingURL=index-iPTsth-y.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),A=require("./button.component-Dd9AfGox.js"),Q=require("./icon.component-C0e0UGBw.js"),G=require("./text.component-ColgFnqE.js"),k=require("./flex-D14H6HbP.js"),Be=require("./textInput.component-cFmQkIXY.js"),qe=require("./spinner.component-DBCa-ZPE.js"),S=require("./box-Baq7UBls.js"),$e=require("./modal.context-EJ67QNzq.js"),U=require("./checkbox.component-CWN9kU5p.js"),o=require("./portal-JkodPmk7.js"),Fe=require("./create-slot-recipe-context-IwVIgtBt.js"),Le=require("./icons-CTpAjbC-.js"),D=require("./index-Cwl9h4X_.js"),d=require("./index-B3Uf1AVX.js"),Ve=t=>t&&t.__esModule?t:{default:t},ze=Ve(u),[X,j]=o.createContext({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),Y=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getArrowProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Y.displayName="MenuArrow";const Z=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getArrowTipProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Z.displayName="MenuArrowTip";const[O,it]=o.createContext({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[ee,te]=o.createContext({name:"MenuOptionItemPropsContext",hookName:"useMenuOptionItemPropsContext",providerName:"<MenuOptionItemPropsProvider />"}),ne=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),i={...n,type:"checkbox"},l=j(),a=d.mergeProps(l.getOptionItemProps(i),r),x=l.getOptionItemState(i);return e.jsxRuntimeExports.jsx(ee,{value:i,children:e.jsxRuntimeExports.jsx(O,{value:x,children:e.jsxRuntimeExports.jsx(o.ark.div,{...a,ref:s})})})});ne.displayName="MenuCheckboxItem";const se=u.forwardRef((t,s)=>{const n=j(),r=o.usePresenceContext(),i=d.mergeProps(n.getContentProps(),r.getPresenceProps(),t);return r.unmounted?null:e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:o.composeRefs(r.ref,s)})});se.displayName="MenuContent";const re=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getContextTriggerProps(),t);return e.jsxRuntimeExports.jsx(o.ark.button,{...r,ref:s})});re.displayName="MenuContextTrigger";const oe=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getIndicatorProps(),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});oe.displayName="MenuIndicator";const ue=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["closeOnSelect","disabled","value","valueText","onSelect"]),i=j(),l=d.mergeProps(i.getItemProps(n),r),a=i.getItemState(n);return u.useEffect(()=>i.addItemListener({id:a.id,onSelect:n.onSelect}),[a.id,n.onSelect]),e.jsxRuntimeExports.jsx(O,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...l,ref:s})})});ue.displayName="MenuItem";const[ie,ce]=o.createContext({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),ae=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["id"]),i=j(),a={id:u.useId(),...n},x=d.mergeProps(i.getItemGroupProps(a),r);return e.jsxRuntimeExports.jsx(ie,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})});ae.displayName="MenuItemGroup";const le=u.forwardRef((t,s)=>{const n=j(),r=ce(),i=d.mergeProps(n.getItemGroupLabelProps({htmlFor:r.id}),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});le.displayName="MenuItemGroupLabel";const pe=u.forwardRef((t,s)=>{const n=j(),r=te(),i=d.mergeProps(n.getItemIndicatorProps(r),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});pe.displayName="MenuItemIndicator";const xe=u.forwardRef((t,s)=>{const n=j(),r=te(),i=d.mergeProps(n.getItemTextProps(r),t);return e.jsxRuntimeExports.jsx(o.ark.div,{...i,ref:s})});xe.displayName="MenuItemText";const me=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getPositionerProps(),t);return o.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});me.displayName="MenuPositioner";const de=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["closeOnSelect","disabled","value","valueText"]),i=j(),l=ce(),a={...n,checked:l.value===n.value,type:"radio",onCheckedChange:()=>l.onValueChange?.({value:n.value})},x=d.mergeProps(i.getOptionItemProps(a),r),g=i.getOptionItemState(a);return e.jsxRuntimeExports.jsx(ee,{value:a,children:e.jsxRuntimeExports.jsx(O,{value:g,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})})});de.displayName="MenuRadioItem";const je=u.forwardRef((t,s)=>{const[n,r]=o.createSplitProps()(t,["id","onValueChange","value"]),i=j(),a={id:u.useId(),...n},x=d.mergeProps(i.getItemGroupProps({id:a.id}),r);return e.jsxRuntimeExports.jsx(ie,{value:a,children:e.jsxRuntimeExports.jsx(o.ark.div,{...x,ref:s})})});je.displayName="MenuRadioItemGroup";const he=t=>{const s=u.useRef(t),n=u.useRef(!1);u.useEffect(()=>{s.current=t}),u.useEffect(()=>{n.current!==!0&&(n.current=!0,s.current())},[])},We=t=>{const s=u.useId(),{getRootNode:n}=o.useEnvironmentContext(),{dir:r}=o.useLocaleContext(),i={id:s,dir:r,getRootNode:n,...t},l=o.useMachine(D.machine,i);return{api:D.connect(l,o.normalizeProps),service:l}},[ge,fe]=o.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[Pe,De]=o.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),He=t=>{const[s,n]=o.splitPresenceProps(t),[r,i]=o.createSplitProps()(n,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),l=j(),a=fe(),{api:x,service:g}=We(r),P=o.usePresence(d.mergeProps({present:x.open},s));he(()=>{a&&l&&(l.setChild(g),x.setParent(a))});const I=u.useCallback(()=>l?.getTriggerItemProps(x),[x,l]);return e.jsxRuntimeExports.jsx(Pe,{value:I,children:e.jsxRuntimeExports.jsx(ge,{value:g,children:e.jsxRuntimeExports.jsx(X,{value:x,children:e.jsxRuntimeExports.jsx(o.PresenceProvider,{value:P,...i})})})})},Ke=t=>{const s=j(),n=fe(),[r,{value:i,children:l}]=o.splitPresenceProps(t),{api:a,service:x}=i,g=o.usePresence(d.mergeProps({present:a.open},r));he(()=>{n&&s&&(s.setChild(x),a.setParent(n))});const P=u.useCallback(()=>s?.getTriggerItemProps(a),[a,s]);return e.jsxRuntimeExports.jsx(Pe,{value:P,children:e.jsxRuntimeExports.jsx(ge,{value:x,children:e.jsxRuntimeExports.jsx(X,{value:a,children:e.jsxRuntimeExports.jsx(o.PresenceProvider,{value:g,children:l})})})})},Re=u.forwardRef((t,s)=>{const n=j(),r=d.mergeProps(n.getSeparatorProps(),t);return e.jsxRuntimeExports.jsx(o.ark.hr,{...r,ref:s})});Re.displayName="MenuSeparator";const Me=u.forwardRef((t,s)=>{const n=j(),r=o.usePresenceContext(),i=d.mergeProps({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},t);return e.jsxRuntimeExports.jsx(o.ark.button,{...i,ref:s})});Me.displayName="MenuTrigger";const Ce=u.forwardRef((t,s)=>{const n=De(),r=d.mergeProps(n?.()??{},t);return e.jsxRuntimeExports.jsx(o.ark.div,{...r,ref:s})});Ce.displayName="MenuTriggerItem";const{withRootProvider:Ie,withContext:h}=Fe.createSlotRecipeContext({key:"menu"});Ie(Ke);const Je=Ie(He,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),Qe=h(Me,"trigger",{forwardAsChild:!0});h(re,"contextTrigger",{forwardAsChild:!0});const Ue=h(me,"positioner",{forwardAsChild:!0});h(Re,"separator",{forwardAsChild:!0});const Xe=h(se,"content",{forwardAsChild:!0}),Ye=h(Z,"arrowTip",{forwardAsChild:!0});h(Y,"arrow",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(Ye,{})}});h(oe,"indicator",{forwardAsChild:!0});const Ze=h(ae,"itemGroup",{forwardAsChild:!0}),et=h(le,"itemGroupLabel",{forwardAsChild:!0}),tt=h(ue,"item",{forwardAsChild:!0}),nt=h(Ce,"item",{forwardAsChild:!0});h(xe,"itemText",{forwardAsChild:!0});h("kbd","itemCommand");h(pe,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(Le.CheckIcon,{boxSize:"4"})}});const st=h(ne,"item",{forwardAsChild:!0});h(je,"itemGroup",{forwardAsChild:!0});h(de,"item",{forwardAsChild:!0});const rt=({hideCaret:t=!1,size:s="md",text:n,textProps:r,variant:i,...l})=>e.jsxRuntimeExports.jsxs(A.Button,{className:"Menu__Button","data-testid":"kibble-menu-button",size:s,variant:i,...l,...!n&&t&&{paddingInline:0,paddingBlock:0},children:[n&&e.jsxRuntimeExports.jsx(G.WrappedText,{className:"Menu__ButtonText","data-testid":"kibble-menu-button-text",fontWeight:"semibold",size:s,color:i?"inherit":r?.color||"text.contrast",truncate:!0,...r,children:n}),!t&&e.jsxRuntimeExports.jsx(k.Flex,{className:"Menu__ButtonCaret","data-testid":"kibble-menu-button-caret",children:e.jsxRuntimeExports.jsx(Q.Icon,{name:"chevronDown",size:s==="lg"?"sm":"xs"})})]}),ot=({label:t,leftElement:s,onSelect:n,shouldTruncateText:r,type:i="default",variant:l,...a})=>{const x=u.useCallback(()=>{n&&n(a.value)},[n,a.value]);if(i==="submenu"){const{valueText:g,listProps:P}=a;return e.jsxRuntimeExports.jsx(ve,{submenuTrigger:e.jsxRuntimeExports.jsxs(nt,{className:"Menu__Item--Submenu","data-testid":"kibble-menu-item-submenu",justifyContent:"space-between","aria-valuetext":g,children:[e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:l}),e.jsxRuntimeExports.jsx(Q.Icon,{name:"chevronRight",size:"sm"})]}),portalled:!0,listProps:P})}if(i==="checkbox"){const{checked:g,value:P,closeOnSelect:I,...M}=a;return e.jsxRuntimeExports.jsxs(st,{className:"Menu__Item--Checkbox","data-testid":"kibble-menu-item-checkbox",value:P,checked:!!g,onCheckedChange:x,closeOnSelect:I||!1,gap:3,...M,children:[e.jsxRuntimeExports.jsx(U.WrappedCheckbox,{checked:!!g,size:"md",fullWidth:!1}),e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:l})]})}if(i==="default"){const{selected:g=!1,value:P,...I}=a;return e.jsxRuntimeExports.jsx(tt,{className:"Menu__Item--Default","data-testid":"kibble-menu-item-default",value:P,onSelect:x,...g&&{bgColor:"background.secondaryAlpha.hover"},...I,children:e.jsxRuntimeExports.jsx(y,{label:t,leftElement:s,shouldTruncateText:r,variant:g?"info":l})})}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})},y=({label:t,leftElement:s,shouldTruncateText:n,variant:r})=>e.jsxRuntimeExports.jsxs(k.Flex,{className:"Menu__ItemLabel",alignItems:"center",gap:3,children:[s,typeof t=="string"?e.jsxRuntimeExports.jsx(G.WrappedText,{size:"sm",truncated:n,variant:r,children:t}):t]}),H=({groupName:t,hasSelectedItems:s=!1,onToggle:n})=>{const r=!!t;return e.jsxRuntimeExports.jsx(S.Box,{className:"Menu__ToggleButtons","data-testid":"kibble-menu-toggle-buttons",...r?{textAlign:"right",w:"50%"}:{mt:2},children:r?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:s?e.jsxRuntimeExports.jsx(J,{hasSelectedItems:s,groupName:t,onToggle:n}):e.jsxRuntimeExports.jsx(K,{groupName:t,onToggle:n})}):e.jsxRuntimeExports.jsxs(k.Flex,{justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx(K,{groupName:t,onToggle:n}),e.jsxRuntimeExports.jsx(J,{hasSelectedItems:s,groupName:t,onToggle:n})]})})},K=({groupName:t,onToggle:s})=>e.jsxRuntimeExports.jsx(A.Button,{variant:"ghost",size:"xs",onClick:()=>s({groupName:t,clear:!1}),children:"Select All"}),J=({hasSelectedItems:t,groupName:s,onToggle:n})=>e.jsxRuntimeExports.jsx(A.Button,{variant:"ghostNeutral",iconName:"arrowCircle",size:"xs",disabled:!t,onClick:()=>n({groupName:s,clear:!0}),children:"Clear All"}),ve=({buttonProps:t,listProps:s,portalled:n=!1,submenuTrigger:r,...i})=>{const{contentRef:l}=$e.useModalContentRef(),{canSelectAll:a,canSelectGroups:x,emptyStateText:g="No results found",loading:P,maxH:I="480px",menuItems:M=[],minW:be="240px",onSearch:C,onSelect:B,onSelectAll:q,searchable:$,searchPlaceholder:Ee="Search...",shouldTruncateText:ke,...we}=s||{},[N,T]=u.useState(""),[F,_]=u.useState(M),L=u.useMemo(()=>{const c={};return F?.forEach(p=>{const m=p.groupLabel||"default",f=p.type==="checkbox"?"checkbox":"default";c[m]||(c[m]={}),c[m][f]||(c[m][f]=[]),c[m][f].push(p)}),c},[F]),V=u.useMemo(()=>Object.entries(L),[L]),b=u.useMemo(()=>M?.filter(c=>c.type==="checkbox")||[],[M]),Se=u.useMemo(()=>(b?.filter(p=>p.checked)||[]).map(p=>p.value),[b]),R=U.useCheckboxGroup({defaultValue:Se}),z=u.useCallback((c,p)=>c===""||!c?p:p.filter(m=>!!(typeof m.label=="string"?m.label:m.valueText)?.toLowerCase().includes(c.toLowerCase())),[]);u.useEffect(()=>{_(C?M:z(N,M))},[N,C,z,M]);const Ne=u.useCallback(c=>{const p=c.target.value;T(p),C&&C(c)},[C]),Te=u.useCallback(()=>{T(""),C&&C({target:{value:""}})},[C]),W=u.useCallback(({groupName:c,clear:p})=>{let m=[];if(c){const f=b.filter(v=>v.groupLabel===c).map(v=>v.value);m=p?R.value.filter(v=>!f.includes(v)):[...R.value,...f]}else m=p?[]:b.map(f=>f.value);q?.(m),R.setValue(m)},[b,q,R]),_e=u.useCallback(c=>{c.onSelect?.(c.value);const p=R.value,m=R.isChecked(c.value);B?.(c.value,m?p.filter(f=>f!==c.value):[...p,c.value]),c.type==="checkbox"&&R.toggleValue(c.value)},[B,R]),ye=u.useCallback(c=>{c||(T(""),_(M))},[M]);return e.jsxRuntimeExports.jsxs(Je,{...i,onOpenChange:c=>{ye(c.open),i.onOpenChange?.(c)},children:[r||e.jsxRuntimeExports.jsx(Qe,{asChild:!0,className:"Menu__Trigger","data-testid":"kibble-menu-trigger",children:e.jsxRuntimeExports.jsx(rt,{...t})}),e.jsxRuntimeExports.jsx(o.Portal,{disabled:!n,container:l||void 0,children:e.jsxRuntimeExports.jsx(Ue,{className:"Menu","data-testid":"kibble-menu",children:e.jsxRuntimeExports.jsxs(Xe,{className:"Menu__Content","data-testid":"kibble-menu-content",maxH:I,minW:be,...we,children:[($||a)&&e.jsxRuntimeExports.jsxs(S.Box,{className:"Menu__Header","data-testid":"kibble-menu-header",m:"0 12px 8px",children:[$&&e.jsxRuntimeExports.jsx(Be.WrappedTextInput,{className:"Menu__SearchBar","data-testid":"kibble-menu-search-bar",placeholder:Ee,onChange:Ne,size:"sm",value:N,clearable:!0,onClear:Te,formControlStyle:{mt:1}}),a&&!!b.length&&e.jsxRuntimeExports.jsx(H,{onToggle:W,hasSelectedItems:!!R.value.length})]}),P?e.jsxRuntimeExports.jsx(k.Flex,{justifyContent:"center",py:5,children:e.jsxRuntimeExports.jsx(qe.Spinner,{})}):e.jsxRuntimeExports.jsx(S.Box,{className:"Menu__List","data-testid":"kibble-menu-list",children:V.length?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:V.map(([c,p])=>{const m=c==="default",f=Object.keys(p),v=m?ze.default.Fragment:Ze,Ae=p.checkbox?.map(E=>E.value)?.some(E=>R.value.includes(E));return e.jsxRuntimeExports.jsxs(v,{children:[!m&&e.jsxRuntimeExports.jsx(et,{children:e.jsxRuntimeExports.jsxs(k.Flex,{alignItems:"center",justifyContent:"space-between",children:[c,x&&f.includes("checkbox")&&e.jsxRuntimeExports.jsx(H,{groupName:c,onToggle:W,hasSelectedItems:Ae})]})}),Object.entries(p).map(([E,Ge])=>Ge.map((w,Oe)=>e.jsxRuntimeExports.jsx(ot,{...w,shouldTruncateText:ke,...w.type==="checkbox"&&{checked:R.isChecked(w.value)},onSelect:()=>_e(w)},`menu-item-${c}-${E}-${Oe}`)))]},c)})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(S.Box,{textAlign:"center",p:3,children:e.jsxRuntimeExports.jsx(G.WrappedText,{size:"sm",variant:"subtle",children:g})})})})]})})})]})};exports.Menu=ve;
2
- //# sourceMappingURL=menu.component-Ct_9TaWj.js.map
@@ -1,12 +0,0 @@
1
- import { createContext as o, useContext as e } from "react";
2
- const n = o(
3
- void 0
4
- ), s = () => {
5
- const t = e(n);
6
- return t === void 0 ? { contentRef: null } : t;
7
- };
8
- export {
9
- n as M,
10
- s as u
11
- };
12
- //# sourceMappingURL=modal.context-DSKLfsJK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal.context-DSKLfsJK.js","sources":["../../src/components/Modal/context/modal.context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\ninterface ModalContextType {\n contentRef: React.RefObject<HTMLDivElement> | null;\n}\n\nexport const ModalContext = createContext<ModalContextType | undefined>(\n undefined,\n);\n\nexport const useModalContentRef = (): ModalContextType => {\n const context = useContext(ModalContext);\n if (context === undefined) {\n return { contentRef: null };\n }\n return context;\n};\n"],"names":["ModalContext","createContext","useModalContentRef","context","useContext"],"mappings":";AAMO,MAAMA,IAAeC;AAAA,EAC1B;AACF,GAEaC,IAAqB,MAAwB;AAClD,QAAAC,IAAUC,EAAWJ,CAAY;AACvC,SAAIG,MAAY,SACP,EAAE,YAAY,KAAK,IAErBA;AACT;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react"),n=e.createContext(void 0),o=()=>{const t=e.useContext(n);return t===void 0?{contentRef:null}:t};exports.ModalContext=n;exports.useModalContentRef=o;
2
- //# sourceMappingURL=modal.context-EJ67QNzq.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal.context-EJ67QNzq.js","sources":["../../src/components/Modal/context/modal.context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\ninterface ModalContextType {\n contentRef: React.RefObject<HTMLDivElement> | null;\n}\n\nexport const ModalContext = createContext<ModalContextType | undefined>(\n undefined,\n);\n\nexport const useModalContentRef = (): ModalContextType => {\n const context = useContext(ModalContext);\n if (context === undefined) {\n return { contentRef: null };\n }\n return context;\n};\n"],"names":["ModalContext","createContext","useModalContentRef","context","useContext"],"mappings":"sCAMaA,EAAeC,EAAA,cAC1B,MACF,EAEaC,EAAqB,IAAwB,CAClD,MAAAC,EAAUC,aAAWJ,CAAY,EACvC,OAAIG,IAAY,OACP,CAAE,WAAY,IAAK,EAErBA,CACT"}
@@ -1,2 +0,0 @@
1
- "use strict";const t=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),n=require("./button.component-Dd9AfGox.js"),_=require("./flex-D14H6HbP.js"),M=require("./create-slot-recipe-context-IwVIgtBt.js"),B=require("./factory-D6tdBUPG.js"),e=require("./dialog-trigger-6j0ZA8bc.js"),v=require("./heading.component-a6IrCj7l.js"),w=require("./modal.context-EJ67QNzq.js"),y=require("./use-breakpoint-uBg4-8yY.js"),N=require("./portal-JkodPmk7.js"),{withRootProvider:R,withContext:o}=M.createSlotRecipeContext({key:"dialog"});R(e.DialogRootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const P=R(e.DialogRoot,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),q=o(e.DialogTrigger,"trigger",{forwardAsChild:!0}),T=o(e.DialogPositioner,"positioner",{forwardAsChild:!0}),S=o(e.DialogContent,"content",{forwardAsChild:!0});o(e.DialogDescription,"description",{forwardAsChild:!0});const A=o(e.DialogTitle,"title",{forwardAsChild:!0}),z=o(e.DialogCloseTrigger,"closeTrigger",{forwardAsChild:!0}),F=p.forwardRef(function(r,a){const s=e.useDialogContext();return t.jsxRuntimeExports.jsx(B.chakra.button,{...r,ref:a,onClick:()=>s.setOpen(!1)})}),O=o(e.DialogBackdrop,"backdrop",{forwardAsChild:!0}),H=o("div","body"),I=o("div","footer"),V=o("div","header"),W=({children:i,destructive:r,disabled:a,hideCancel:s=!1,loading:l,loadingText:d,onCancel:c,onSubmit:u,submitText:x="Submit",...m})=>t.jsxRuntimeExports.jsx(I,{className:"Modal__Footer","data-testid":"kibble-modal-footer",...m,children:i||t.jsxRuntimeExports.jsxs(_.Flex,{alignItems:"center",justifyContent:"space-between",w:"100%",children:[!s&&t.jsxRuntimeExports.jsx(F,{asChild:!0,className:"Modal__CancelButton","data-testid":"kibble-modal-cancel-button",children:t.jsxRuntimeExports.jsx(n.Button,{variant:"tertiary",onClick:c,children:"Cancel"})}),t.jsxRuntimeExports.jsx(n.Button,{className:"Modal__SubmitButton","data-testid":"kibble-modal-submit-button",onClick:u,loading:l,loadingText:d,disabled:a,variant:r?"primaryDestructive":"primary",children:x})]})}),G=({children:i,footerProps:r,fullScreenMobile:a=!0,header:s,headerProps:l,hideCloseButton:d=!1,hideFooter:c=!1,motionPreset:u="slide-in-bottom",placement:x="center",showExpandButton:m=!1,size:g="md",trigger:j,...f})=>{const b=p.useRef(null),C={contentRef:b},[h,E]=p.useState(!1),D=y.useBreakpointValue({base:a?"full":g,md:g});return t.jsxRuntimeExports.jsxs(P,{motionPreset:u,placement:x,size:D,...f,expanded:h,children:[j&&t.jsxRuntimeExports.jsx(q,{asChild:!0,children:j}),t.jsxRuntimeExports.jsxs(N.Portal,{children:[t.jsxRuntimeExports.jsx(O,{}),t.jsxRuntimeExports.jsx(T,{children:t.jsxRuntimeExports.jsxs(w.ModalContext.Provider,{value:C,children:[" ",t.jsxRuntimeExports.jsxs(S,{className:"Modal","data-testid":"kibble-modal",ref:b,children:[!d&&t.jsxRuntimeExports.jsx(z,{asChild:!0,className:"Modal__CloseButton","data-testid":"kibble-modal-close-button",children:t.jsxRuntimeExports.jsx(n.Button,{iconName:"close",variant:"ghostNeutral"})}),m&&t.jsxRuntimeExports.jsx(n.Button,{className:"Modal__ExpandButton","data-testid":"kibble-modal-expand-button",variant:"ghostNeutral",iconName:h?"arrowsIn":"arrowsOut",position:"absolute",top:2,right:12,onClick:()=>E(k=>!k)}),t.jsxRuntimeExports.jsx(V,{className:"Modal__Header","data-testid":"kibble-modal-header",children:s&&t.jsxRuntimeExports.jsx(A,{className:"Modal__Title","data-testid":"kibble-modal-title",asChild:!0,children:typeof s=="string"?t.jsxRuntimeExports.jsx(v.WrappedHeading,{size:"xl",...l,children:s}):s})}),t.jsxRuntimeExports.jsx(H,{className:"Modal__Body","data-testid":"kibble-modal-body",children:i}),!c&&t.jsxRuntimeExports.jsx(W,{...r})]})]})})]})]})},J=["xs","sm","md","lg","cover","full"],K=["center","top","bottom"],L=["inside","outside"],Q=["scale","slide-in-bottom","slide-in-top","slide-in-left","slide-in-right","none"];exports.Modal=G;exports.modalMotionPresets=Q;exports.modalPlacements=K;exports.modalScrollBehaviors=L;exports.modalSizes=J;
2
- //# sourceMappingURL=modal.types-CsGdjZZf.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),y=require("./withFormControl-PaMa_BVC.js"),k=require("./create-slot-recipe-context-IwVIgtBt.js"),s=require("./portal-JkodPmk7.js"),I=require("./use-field-context-BJ7xh7mY.js"),a=require("./index-B3Uf1AVX.js"),m=require("./index-U8SN9h_h.js"),E=t=>t&&t.__esModule?t:{default:t},N=E(p),[x,d]=s.createContext({name:"PinInputContext",hookName:"usePinInputContext",providerName:"<PinInputProvider />"}),R=p.forwardRef((t,n)=>{const r=d(),o=a.mergeProps(r.getControlProps(),t);return i.jsxRuntimeExports.jsx(s.ark.div,{...o,ref:n})});R.displayName="PinInputControl";const f=p.forwardRef((t,n)=>{const r=d(),o=a.mergeProps(r.getHiddenInputProps(),t),e=I.useFieldContext();return i.jsxRuntimeExports.jsx(s.ark.input,{"aria-describedby":e?.ariaDescribedby,...o,ref:n})});f.displayName="PinInputHiddenInput";const C=p.forwardRef((t,n)=>{const[r,o]=s.createSplitProps()(t,["index"]),e=d(),u=a.mergeProps(e.getInputProps(r),o);return i.jsxRuntimeExports.jsx(s.ark.input,{...u,ref:n})});C.displayName="PinInputInput";const j=p.forwardRef((t,n)=>{const r=d(),o=a.mergeProps(r.getLabelProps(),t);return i.jsxRuntimeExports.jsx(s.ark.label,{...o,ref:n})});j.displayName="PinInputLabel";const _=t=>{const n=p.useId(),{getRootNode:r}=s.useEnvironmentContext(),{dir:o}=s.useLocaleContext(),e=I.useFieldContext(),u={id:n,ids:{label:e?.ids.label,hiddenInput:e?.ids.control},disabled:e?.disabled,readOnly:e?.readOnly,required:e?.required,invalid:e?.invalid,dir:o,getRootNode:r,...t},l=s.useMachine(m.machine,u);return m.connect(l,s.normalizeProps)},b=p.forwardRef((t,n)=>{const[r,o]=s.createSplitProps()(t,["autoFocus","blurOnComplete","count","defaultValue","disabled","form","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]),e=_(r),u=a.mergeProps(e.getRootProps(),o);return i.jsxRuntimeExports.jsx(x,{value:e,children:i.jsxRuntimeExports.jsx(s.ark.div,{...u,ref:n})})});b.displayName="PinInputRoot";const h=p.forwardRef((t,n)=>{const[{value:r},o]=s.createSplitProps()(t,["value"]),e=a.mergeProps(r.getRootProps(),o);return i.jsxRuntimeExports.jsx(x,{value:r,children:i.jsxRuntimeExports.jsx(s.ark.div,{...e,ref:n})})});h.displayName="PinInputRootProvider";const{withProvider:g,withContext:P}=k.createSlotRecipeContext({key:"pinInput"});g(h,"root",{forwardAsChild:!0});const q=g(b,"root",{forwardProps:["mask"],forwardAsChild:!0}),F=P(R,"control",{forwardAsChild:!0}),A=P(C,"input",{forwardAsChild:!0});P(j,"label",{forwardAsChild:!0});const $=f,H=y.withFormControl(({count:t=6,pinInputRef:n,onContrast:r=!1,otp:o=!0,size:e="md",type:u="numeric",...l})=>{const w=r?"onContrast":"default";return i.jsxRuntimeExports.jsxs(q,{className:"PinInput","data-testid":"kibble-pin-input",ref:n,variant:w,size:e,type:u,otp:o,...l,children:[i.jsxRuntimeExports.jsx($,{className:"PinInput__HiddenInput","data-testid":"kibble-pin-input-hidden-input"}),i.jsxRuntimeExports.jsx(F,{className:"PinInput__Control","data-testid":"kibble-pin-input-control",children:Array.from({length:t}).map((S,c)=>i.jsxRuntimeExports.jsx(A,{index:c,className:"PinInput__Input","data-testid":`kibble-pin-input-input-${c}`},c))})]})}),v=N.default.forwardRef((t,n)=>i.jsxRuntimeExports.jsx(H,{pinInputRef:n,...t}));v.displayName="PinInput";const O=["numeric","alphabetic","alphanumeric"];exports.WrappedPinInput=v;exports.pinInputTypes=O;
2
- //# sourceMappingURL=pinInput.types-GznuQbzY.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),R=require("./create-slot-recipe-context-IwVIgtBt.js"),s=require("./popover-root-provider-RWj-0mRI.js"),P=require("react"),n=require("./portal-JkodPmk7.js"),v=require("./index-B3Uf1AVX.js"),d=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getAnchorProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});d.displayName="PopoverAnchor";const a=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getArrowProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});a.displayName="PopoverArrow";const u=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getArrowTipProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});u.displayName="PopoverArrowTip";const g=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getDescriptionProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});g.displayName="PopoverDescription";const x=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getIndicatorProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});x.displayName="PopoverIndicator";const l=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=n.usePresenceContext(),c=v.mergeProps(o.getPositionerProps(),r);return t.unmounted?null:i.jsxRuntimeExports.jsx(n.ark.div,{...c,ref:e})});l.displayName="PopoverPositioner";const m=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=v.mergeProps(o.getTitleProps(),r);return i.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:e})});m.displayName="PopoverTitle";const w=P.forwardRef((r,e)=>{const o=s.usePopoverContext(),t=n.usePresenceContext(),c=v.mergeProps({...o.getTriggerProps(),"aria-controls":t.unmounted?void 0:o.getTriggerProps()["aria-controls"]},r);return i.jsxRuntimeExports.jsx(n.ark.button,{...c,ref:e})});w.displayName="PopoverTrigger";const{withRootProvider:C,withContext:p,useStyles:A,PropsProvider:T}=R.createSlotRecipeContext({key:"popover"}),h=C(s.PopoverRootProvider),j=C(s.PopoverRoot),y=T,k=p(w,"trigger",{forwardAsChild:!0}),E=p(l,"positioner",{forwardAsChild:!0}),N=p(s.PopoverContent,"content",{forwardAsChild:!0}),f=p(u,"arrowTip",{forwardAsChild:!0}),$=p(a,"arrow",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx(f,{})}}),q=p(s.PopoverCloseTrigger,"closeTrigger",{forwardAsChild:!0});p(x,"indicator",{forwardAsChild:!0});const D=p(m,"title",{forwardAsChild:!0}),S=p(g,"description",{forwardAsChild:!0}),I=p("footer","footer"),b=p("header","header"),B=p("div","body"),F=p(d,void 0,{forwardAsChild:!0}),H=s.PopoverContext;exports.PopoverAnchor=F;exports.PopoverArrow=$;exports.PopoverArrowTip=f;exports.PopoverBody=B;exports.PopoverCloseTrigger=q;exports.PopoverContent=N;exports.PopoverContext=H;exports.PopoverDescription=S;exports.PopoverFooter=I;exports.PopoverHeader=b;exports.PopoverPositioner=E;exports.PopoverPropsProvider=y;exports.PopoverRoot=j;exports.PopoverRootProvider=h;exports.PopoverTitle=D;exports.PopoverTrigger=k;exports.usePopoverStyles=A;
2
- //# sourceMappingURL=popover-ZImHeDTu.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const p=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),e=require("./portal-JkodPmk7.js"),c=require("./index-B3Uf1AVX.js"),v=require("./index-B4rwgehU.js"),[x,P]=e.createContext({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),d=u.forwardRef((o,t)=>{const s=P(),r=c.mergeProps(s.getCloseTriggerProps(),o);return p.jsxRuntimeExports.jsx(e.ark.button,{...r,ref:t})});d.displayName="PopoverCloseTrigger";const a=u.forwardRef((o,t)=>{const s=P(),r=e.usePresenceContext(),n=c.mergeProps(s.getContentProps(),r.getPresenceProps(),o);return r.unmounted?null:p.jsxRuntimeExports.jsx(e.ark.div,{...n,ref:e.composeRefs(r.ref,t)})});a.displayName="PopoverContent";const l=o=>o.children(P()),m=o=>{const t=u.useId(),{getRootNode:s}=e.useEnvironmentContext(),{dir:r}=e.useLocaleContext(),n={id:t,dir:r,getRootNode:s,...o},i=e.useMachine(v.machine,n);return v.connect(i,e.normalizeProps)},g=o=>{const[t,{children:s,...r}]=e.splitPresenceProps(o),n=m(r),i=e.usePresence(c.mergeProps({present:n.open},t));return p.jsxRuntimeExports.jsx(x,{value:n,children:p.jsxRuntimeExports.jsx(e.PresenceProvider,{value:i,children:s})})},C=o=>{const[t,{value:s,children:r}]=e.splitPresenceProps(o),n=e.usePresence(c.mergeProps({present:s.open},t));return p.jsxRuntimeExports.jsx(x,{value:s,children:p.jsxRuntimeExports.jsx(e.PresenceProvider,{value:n,children:r})})};exports.PopoverCloseTrigger=d;exports.PopoverContent=a;exports.PopoverContext=l;exports.PopoverRoot=g;exports.PopoverRootProvider=C;exports.usePopoverContext=P;
2
- //# sourceMappingURL=popover-root-provider-RWj-0mRI.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),v=require("react"),p=require("./popover-ZImHeDTu.js"),M=require("./create-slot-recipe-context-IwVIgtBt.js"),n=require("./portal-JkodPmk7.js"),x=require("./index-B3Uf1AVX.js"),R=require("./popover.recipe-D7Q80iWn.js"),W=require("./text.component-ColgFnqE.js"),I=require("./heading.component-a6IrCj7l.js"),H=require("./button.component-Dd9AfGox.js"),y=require("./use-slot-recipe-8liupslO.js"),T=require("./popover-root-provider-RWj-0mRI.js"),_=require("./flex-D14H6HbP.js"),L=require("./factory-D6tdBUPG.js"),G=require("./box-Baq7UBls.js"),J=r=>r&&r.__esModule?r:{default:r},K=J(v),[A,d]=n.createContext({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),k=v.forwardRef((r,s)=>{const o=d(),t=x.mergeProps(o.getArrowProps(),r);return e.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:s})});k.displayName="HoverCardArrow";const N=v.forwardRef((r,s)=>{const o=d(),t=x.mergeProps(o.getArrowTipProps(),r);return e.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:s})});N.displayName="HoverCardArrowTip";const S=v.forwardRef((r,s)=>{const o=d(),t=n.usePresenceContext(),i=x.mergeProps(o.getContentProps(),t.getPresenceProps(),r);return t.unmounted?null:e.jsxRuntimeExports.jsx(n.ark.div,{...i,ref:n.composeRefs(t.ref,s)})});S.displayName="HoverCardContent";const Q=r=>r.children(d()),q=v.forwardRef((r,s)=>{const o=d(),t=x.mergeProps(o.getPositionerProps(),r);return n.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(n.ark.div,{...t,ref:s})});q.displayName="HoverCardPositioner";const U=r=>{const s=v.useId(),{getRootNode:o}=n.useEnvironmentContext(),{dir:t}=n.useLocaleContext(),i={id:s,dir:t,getRootNode:o,...r},c=n.useMachine(R.machine,i);return R.connect(c,n.normalizeProps)},V=r=>{const[s,{children:o,...t}]=n.splitPresenceProps(r),i=U(t),c=n.usePresence(x.mergeProps({present:i.open},s));return e.jsxRuntimeExports.jsx(A,{value:i,children:e.jsxRuntimeExports.jsx(n.PresenceProvider,{value:c,children:o})})},X=r=>{const[s,{value:o,children:t}]=n.splitPresenceProps(r),i=n.usePresence(x.mergeProps({present:o.open},s));return e.jsxRuntimeExports.jsx(A,{value:o,children:e.jsxRuntimeExports.jsx(n.PresenceProvider,{value:i,children:t})})},O=v.forwardRef((r,s)=>{const o=d(),t=x.mergeProps(o.getTriggerProps(),r);return e.jsxRuntimeExports.jsx(n.ark.button,{...t,ref:s})});O.displayName="HoverCardTrigger";const{withRootProvider:z,withContext:g,PropsProvider:Y}=M.createSlotRecipeContext({key:"hoverCard"}),Z=z(X),ee=z(V),re=Y,oe=g(O,"trigger",{forwardAsChild:!0}),te=g(q,"positioner",{forwardAsChild:!0}),se=g(S,"content",{forwardAsChild:!0}),B=g(N,"arrowTip",{forwardAsChild:!0}),ne=g(k,"arrow",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(B,{})}}),ie=Q,pe=Object.freeze(Object.defineProperty({__proto__:null,Arrow:ne,ArrowTip:B,Content:se,Context:ie,Positioner:te,PropsProvider:re,Root:ee,RootProvider:Z,Trigger:oe},Symbol.toStringTag,{value:"Module"})),ce=Object.freeze(Object.defineProperty({__proto__:null,Anchor:p.PopoverAnchor,Arrow:p.PopoverArrow,ArrowTip:p.PopoverArrowTip,Body:p.PopoverBody,CloseTrigger:p.PopoverCloseTrigger,Content:p.PopoverContent,Context:p.PopoverContext,Description:p.PopoverDescription,Footer:p.PopoverFooter,Header:p.PopoverHeader,Positioner:p.PopoverPositioner,PropsProvider:p.PopoverPropsProvider,Root:p.PopoverRoot,RootProvider:p.PopoverRootProvider,Title:p.PopoverTitle,Trigger:p.PopoverTrigger,usePopoverStyles:p.usePopoverStyles},Symbol.toStringTag,{value:"Module"})),F=L.chakra("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});F.displayName="Spacer";const ae=({children:r,color:s,hideCloseButton:o=!1,onContrast:t=!0,onClose:i,size:c="sm",trigger:l,...u})=>{const m=y.useSlotRecipe({recipe:R.popoverRecipe})(),{setOpen:C}=l==="hover"?d():T.usePopoverContext();return e.jsxRuntimeExports.jsxs(_.Flex,{className:"Popover__HeaderWrapper","data-testid":"kibble-popover-header-wrapper",css:m.header,...u,children:[e.jsxRuntimeExports.jsx(I.WrappedHeading,{className:"Popover__Header","data-testid":"kibble-popover-header",size:c,color:s||"inherit",children:r}),!o&&e.jsxRuntimeExports.jsx(H.Button,{className:"Popover__CloseButton","data-testid":"kibble-popover-close-button",variant:"ghostNeutral",onContrast:t,onClick:i||(()=>C(!1)),iconName:"close",position:"absolute",right:1,top:1,size:"xs"})]})},de=({children:r,disabled:s,hideButtons:o=!1,hideCancelButton:t=!1,destructive:i,loading:c,onCancel:l,onContrast:u=!0,onSubmit:h,submitText:m="Submit",trigger:C,...f})=>{const j=y.useSlotRecipe({recipe:R.popoverRecipe})(),{setOpen:a}=C==="hover"?d():T.usePopoverContext(),b=()=>{l&&l(),a(!1)};return e.jsxRuntimeExports.jsxs(_.Flex,{className:"Popover__Footer","data-testid":"kibble-popover-footer",css:j.footer,...f,children:[r,!o&&e.jsxRuntimeExports.jsxs(_.Flex,{w:"100%",children:[!t&&e.jsxRuntimeExports.jsx(H.Button,{variant:"tertiary",onContrast:u,size:"sm",onClick:b,children:"Cancel"}),e.jsxRuntimeExports.jsx(F,{}),e.jsxRuntimeExports.jsx(H.Button,{onClick:h,loading:c,disabled:s,size:"sm",onContrast:u,variant:i?"primaryDestructive":"primary",children:m})]})]})},$=K.default.forwardRef((r,s)=>{const{allowEscape:o=!0,anchor:t,children:i,contentProps:c,footerProps:l,headerProps:u,disabled:h=!1,portalled:m=!0,placement:C="bottom",positioning:f,size:w="sm",trigger:j="click",variant:a="default",...b}=r,P=j==="hover"?pe:ce,D=y.useSlotRecipe({recipe:R.popoverRecipe})({variant:a,size:w});if(!i||h)return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{});const E=a==="contrast"||a==="contrastDestructive";return e.jsxRuntimeExports.jsxs(P.Root,{closeOnEscape:o,closeOnInteractOutside:o,positioning:{...f,placement:f?.placement||C},size:w,variant:a,...b,children:[e.jsxRuntimeExports.jsx(P.Trigger,{className:"Popover__Trigger","data-testid":"kibble-popover-trigger",width:"max-content",asChild:!0,children:t}),e.jsxRuntimeExports.jsx(n.Portal,{disabled:!m,children:e.jsxRuntimeExports.jsx(P.Positioner,{className:"Popover","data-testid":"kibble-popover",children:e.jsxRuntimeExports.jsxs(P.Content,{className:"Popover__Content","data-testid":"kibble-popover-content",ref:s,p:0,...c,children:[e.jsxRuntimeExports.jsx(P.Arrow,{className:"Popover__Arrow","data-testid":"kibble-popover-arrow",children:e.jsxRuntimeExports.jsx(P.ArrowTip,{top:"-1px !important"})}),u&&e.jsxRuntimeExports.jsx(ae,{trigger:j,onContrast:E,...u}),e.jsxRuntimeExports.jsx(G.Box,{className:"Popover__Body","data-testid":"kibble-popover-body",css:D.body,children:typeof i=="string"?e.jsxRuntimeExports.jsx(W.WrappedText,{variant:E?"onContrast":"default",size:"sm",children:i}):i}),l&&e.jsxRuntimeExports.jsx(de,{trigger:j,destructive:a==="contrastDestructive"||a==="defaultDestructive",onContrast:E,...l})]})})})]})});$.displayName="Popover";exports.Popover=$;
2
- //# sourceMappingURL=popover.component-D4NdsCQv.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const O=require("./index-B3Uf1AVX.js"),p=require("./portal-JkodPmk7.js"),y=require("./index-Cd776OkZ.js"),m=require("./config-BFcXpdZo.js");var C=O.createAnatomy("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),a=C.build(),v=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,T=e=>e.ids?.content??`hover-card:${e.id}:content`,b=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,f=e=>e.ids?.arrow??`hover-card:${e.id}:arrow`,u=e=>e.getById(v(e)),R=e=>e.getById(T(e)),E=e=>e.getById(b(e));function L(e,t){const{state:o,send:r,prop:n,context:s,scope:c}=e,l=o.hasTag("open"),g=p.getPlacementStyles({...n("positioning"),placement:s.get("currentPlacement")});return{open:l,setOpen(i){o.hasTag("open")!==i&&r({type:i?"OPEN":"CLOSE"})},reposition(i={}){r({type:"POSITIONING.SET",options:i})},getArrowProps(){return t.element({id:f(c),...a.arrow.attrs,dir:n("dir"),style:g.arrow})},getArrowTipProps(){return t.element({...a.arrowTip.attrs,dir:n("dir"),style:g.arrowTip})},getTriggerProps(){return t.element({...a.trigger.attrs,dir:n("dir"),"data-placement":s.get("currentPlacement"),id:v(c),"data-state":l?"open":"closed",onPointerEnter(i){i.pointerType!=="touch"&&r({type:"POINTER_ENTER",src:"trigger"})},onPointerLeave(i){i.pointerType!=="touch"&&r({type:"POINTER_LEAVE",src:"trigger"})},onFocus(){r({type:"TRIGGER_FOCUS"})},onBlur(){r({type:"TRIGGER_BLUR"})}})},getPositionerProps(){return t.element({id:b(c),...a.positioner.attrs,dir:n("dir"),style:g.floating})},getContentProps(){return t.element({...a.content.attrs,dir:n("dir"),id:T(c),hidden:!l,tabIndex:-1,"data-state":l?"open":"closed","data-placement":s.get("currentPlacement"),onPointerEnter(i){i.pointerType!=="touch"&&r({type:"POINTER_ENTER",src:"content"})},onPointerLeave(i){i.pointerType!=="touch"&&r({type:"POINTER_LEAVE",src:"content"})}})}}}var{not:d,and:P}=O.createGuards(),I=O.createMachine({props({props:e}){return{openDelay:700,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({prop:e,bindable:t}){return{open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(o){e("onOpenChange")?.({open:o})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,action:o}){e([()=>t.get("open")],()=>{o(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:P("isOpenControlled",d("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:d("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:P("isOpenControlled",d("isPointer")),actions:["invokeOnClose"]},{guard:d("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>e("open")!=null},effects:{waitForOpenDelay({send:e,prop:t}){const o=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(o)},waitForCloseDelay({send:e,prop:t}){const o=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(o)},trackPositioning({context:e,prop:t,scope:o}){e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>E(o);return p.getPlacement(u(o),r,{...t("positioning"),defer:!0,onComplete(n){e.set("currentPlacement",n.placement)}})},trackDismissableElement({send:e,scope:t,prop:o}){const r=()=>R(t);return y.trackDismissableElement(r,{defer:!0,exclude:[u(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:o("onInteractOutside"),onPointerDownOutside:o("onPointerDownOutside"),onFocusOutside(n){n.preventDefault(),o("onFocusOutside")?.(n)}})}},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:o,event:r}){const n=()=>E(o);p.getPlacement(u(o),n,{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},toggleVisibility({prop:e,event:t,send:o}){queueMicrotask(()=>{o({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}});p.createProps()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);const h=["root","content","arrow","arrowTip","body","header","footer"],N={xs:{content:{width:160}},sm:{content:{width:200}},md:{content:{width:260}},lg:{content:{width:320}},xl:{content:{width:480}}},w={default:{arrowTip:{borderColor:"border"},content:{"--popover-bg":"colors.background.default","--hovercard-bg":"colors.background.default",borderColor:"border",color:"text.default"}},defaultDestructive:{arrowTip:{borderColor:"border"},content:{"--popover-bg":"colors.background.default","--hovercard-bg":"colors.background.default",borderColor:"border",color:"text.default"}},contrast:{arrowTip:{borderColor:"border.contrast"},content:{"--popover-bg":"colors.background.contrast","--hovercard-bg":"colors.background.contrast",borderColor:"border.contrast",color:"text.contrast"}},contrastDestructive:{arrowTip:{borderColor:"border.contrast"},content:{"--popover-bg":"colors.background.contrast","--hovercard-bg":"colors.background.contrast",borderColor:"border.contrast",color:"text.contrast"}}},D=m.defineSlotRecipe({slots:h,base:{arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"},body:{p:3},content:{borderRadius:"base",border:"1px"},footer:{borderTop:0,borderRadius:"inherit",pb:3,pt:0,px:3},header:{borderBottom:0,borderRadius:"inherit",minH:6,pb:0,pt:3,px:3,w:"100%"}},variants:{size:N,variant:w},defaultVariants:{size:"sm",variant:"default"}});exports.anatomy=C;exports.connect=L;exports.machine=I;exports.popoverRecipe=D;
2
- //# sourceMappingURL=popover.recipe-D7Q80iWn.js.map