@televet/kibble-ui 5.0.13 → 5.0.15

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 (230) hide show
  1. package/dist/chunks/{alert.types-BsTOOEB7.js → alert.types-DWm1TeiF.js} +3 -3
  2. package/dist/chunks/{alert.types-BsTOOEB7.js.map → alert.types-DWm1TeiF.js.map} +1 -1
  3. package/dist/chunks/{anatomy-BkGk10kB.js → anatomy-B0LtI6sf.js} +2 -2
  4. package/dist/chunks/{anatomy-BkGk10kB.js.map → anatomy-B0LtI6sf.js.map} +1 -1
  5. package/dist/chunks/{anatomy-zd4ecEFD.js → anatomy-DKlFmIC5.js} +12 -12
  6. package/dist/chunks/{anatomy-zd4ecEFD.js.map → anatomy-DKlFmIC5.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-CzutRWy6.js → avatar.component-BL6D6Lw_.js} +5 -5
  8. package/dist/chunks/{avatar.component-CzutRWy6.js.map → avatar.component-BL6D6Lw_.js.map} +1 -1
  9. package/dist/chunks/{avatar.records-EoZmO3VR.js → avatar.records-DFg5kBIk.js} +13 -13
  10. package/dist/chunks/{avatar.records-EoZmO3VR.js.map → avatar.records-DFg5kBIk.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-WSh9t8AX.js → avatarGroup.component-Ba_rfWUg.js} +5 -5
  12. package/dist/chunks/{avatarGroup.component-WSh9t8AX.js.map → avatarGroup.component-Ba_rfWUg.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-TsLHB-LO.js → buttonGroup.component-BNOBvOyv.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-TsLHB-LO.js.map → buttonGroup.component-BNOBvOyv.js.map} +1 -1
  15. package/dist/chunks/{calendar.component-CiBkNtlB.js → calendar.component-B4EcYQEb.js} +2 -2
  16. package/dist/chunks/{calendar.component-CiBkNtlB.js.map → calendar.component-B4EcYQEb.js.map} +1 -1
  17. package/dist/chunks/{characterCounter.component-CoMqt04J.js → characterCounter.component-DI_FQNUR.js} +2 -2
  18. package/dist/chunks/{characterCounter.component-CoMqt04J.js.map → characterCounter.component-DI_FQNUR.js.map} +1 -1
  19. package/dist/chunks/{checkbox.anatomy-BzZ0IkUF.js → checkbox.anatomy-B8fWV_mm.js} +28 -28
  20. package/dist/chunks/{checkbox.anatomy-BzZ0IkUF.js.map → checkbox.anatomy-B8fWV_mm.js.map} +1 -1
  21. package/dist/chunks/{checkbox.component-C0XdgZkr.js → checkbox.component-DDsVfE4a.js} +9 -9
  22. package/dist/chunks/{checkbox.component-C0XdgZkr.js.map → checkbox.component-DDsVfE4a.js.map} +1 -1
  23. package/dist/chunks/{checkboxGroup.component-lxNvlmd_.js → checkboxGroup.component-Cx2Gvii5.js} +3 -3
  24. package/dist/chunks/{checkboxGroup.component-lxNvlmd_.js.map → checkboxGroup.component-Cx2Gvii5.js.map} +1 -1
  25. package/dist/chunks/{conversationCard.component-B_XSYd1p.js → conversationCard.component-D7hpX-QG.js} +8 -8
  26. package/dist/chunks/{conversationCard.component-B_XSYd1p.js.map → conversationCard.component-D7hpX-QG.js.map} +1 -1
  27. package/dist/chunks/{datePicker.component-BAaIqF1O.js → datePicker.component-BotAJpXU.js} +8 -8
  28. package/dist/chunks/{datePicker.component-BAaIqF1O.js.map → datePicker.component-BotAJpXU.js.map} +1 -1
  29. package/dist/chunks/{datePicker.component-mE9U6yIL.js → datePicker.component-Cx76pUPS.js} +2 -2
  30. package/dist/chunks/{datePicker.component-mE9U6yIL.js.map → datePicker.component-Cx76pUPS.js.map} +1 -1
  31. package/dist/chunks/{datePicker.provider-DEN8clnz.js → datePicker.provider-xtYFjWKI.js} +5 -5
  32. package/dist/chunks/{datePicker.provider-DEN8clnz.js.map → datePicker.provider-xtYFjWKI.js.map} +1 -1
  33. package/dist/chunks/{dateTimePicker.component-NOJdpYNs.js → dateTimePicker.component-CUIKZ5BK.js} +9 -9
  34. package/dist/chunks/{dateTimePicker.component-NOJdpYNs.js.map → dateTimePicker.component-CUIKZ5BK.js.map} +1 -1
  35. package/dist/chunks/{dateTimePicker.component-CmpTclKA.js → dateTimePicker.component-IGSiKHDc.js} +2 -2
  36. package/dist/chunks/{dateTimePicker.component-CmpTclKA.js.map → dateTimePicker.component-IGSiKHDc.js.map} +1 -1
  37. package/dist/chunks/{dialog-B9jifvV4.js → dialog-CJpn28QG.js} +6 -6
  38. package/dist/chunks/{dialog-B9jifvV4.js.map → dialog-CJpn28QG.js.map} +1 -1
  39. package/dist/chunks/{field.anatomy-C37GEr2p.js → field.anatomy-CAraH-al.js} +2 -2
  40. package/dist/chunks/{field.anatomy-C37GEr2p.js.map → field.anatomy-CAraH-al.js.map} +1 -1
  41. package/dist/chunks/{heading.component-PFNpLFT7.js → heading.component-CpSAN3cv.js} +2 -2
  42. package/dist/chunks/{heading.component-PFNpLFT7.js.map → heading.component-CpSAN3cv.js.map} +1 -1
  43. package/dist/chunks/index-6QSGfY1E.js +1011 -0
  44. package/dist/chunks/index-6QSGfY1E.js.map +1 -0
  45. package/dist/chunks/{index-D1RhzPVz.js → index-BBvspkoa.js} +3 -3
  46. package/dist/chunks/{index-D1RhzPVz.js.map → index-BBvspkoa.js.map} +1 -1
  47. package/dist/chunks/{index-D7QT9KIZ.js → index-BU6fRN91.js} +3 -3
  48. package/dist/chunks/{index-D7QT9KIZ.js.map → index-BU6fRN91.js.map} +1 -1
  49. package/dist/chunks/{index-Cxrrsmf-.js → index-BWNl4vB2.js} +8 -8
  50. package/dist/chunks/{index-Cxrrsmf-.js.map → index-BWNl4vB2.js.map} +1 -1
  51. package/dist/chunks/{index-fHSGm2nC.js → index-BcafYtXX.js} +47 -47
  52. package/dist/chunks/{index-fHSGm2nC.js.map → index-BcafYtXX.js.map} +1 -1
  53. package/dist/chunks/index-BhMI6dHH.js +191 -0
  54. package/dist/chunks/index-BhMI6dHH.js.map +1 -0
  55. package/dist/chunks/{index-QVc_GVoE.js → index-C0IJq4ol.js} +15 -15
  56. package/dist/chunks/{index-QVc_GVoE.js.map → index-C0IJq4ol.js.map} +1 -1
  57. package/dist/chunks/{index-wV4hG2vI.js → index-CXLyCyl3.js} +4 -4
  58. package/dist/chunks/{index-wV4hG2vI.js.map → index-CXLyCyl3.js.map} +1 -1
  59. package/dist/chunks/{index-DfzXSlq1.js → index-CcwGiuyq.js} +29 -29
  60. package/dist/chunks/{index-DfzXSlq1.js.map → index-CcwGiuyq.js.map} +1 -1
  61. package/dist/chunks/{index-BbZjRFzg.js → index-CgPTA7y6.js} +3 -3
  62. package/dist/chunks/{index-BbZjRFzg.js.map → index-CgPTA7y6.js.map} +1 -1
  63. package/dist/chunks/{index-CbVKVxMW.js → index-CmREf48Z.js} +11 -11
  64. package/dist/chunks/{index-CbVKVxMW.js.map → index-CmREf48Z.js.map} +1 -1
  65. package/dist/chunks/{index-B3xJnxjd.js → index-DJa3JmO7.js} +14 -14
  66. package/dist/chunks/{index-B3xJnxjd.js.map → index-DJa3JmO7.js.map} +1 -1
  67. package/dist/chunks/{index-DS4KlAkI.js → index-DVGrQEJi.js} +20 -20
  68. package/dist/chunks/{index-DS4KlAkI.js.map → index-DVGrQEJi.js.map} +1 -1
  69. package/dist/chunks/{index-C9UYIjEB.js → index-DcmJgLUo.js} +91 -91
  70. package/dist/chunks/{index-C9UYIjEB.js.map → index-DcmJgLUo.js.map} +1 -1
  71. package/dist/chunks/index-DhaZ70Qi.js +2 -0
  72. package/dist/chunks/index-DhaZ70Qi.js.map +1 -0
  73. package/dist/chunks/index-LDDF3MqB.js +2 -0
  74. package/dist/chunks/index-LDDF3MqB.js.map +1 -0
  75. package/dist/chunks/{index-D0DKQnEK.js → index-NrnnmC8w.js} +13 -13
  76. package/dist/chunks/{index-D0DKQnEK.js.map → index-NrnnmC8w.js.map} +1 -1
  77. package/dist/chunks/{index-BrJtqTzN.js → index-hPXhx9Mi.js} +5 -5
  78. package/dist/chunks/{index-BrJtqTzN.js.map → index-hPXhx9Mi.js.map} +1 -1
  79. package/dist/chunks/{index-BgFImxxe.js → index-k8xPaJWO.js} +12 -12
  80. package/dist/chunks/{index-BgFImxxe.js.map → index-k8xPaJWO.js.map} +1 -1
  81. package/dist/chunks/{index-D3Q0mQNf.js → index-mXLFPoCI.js} +18 -18
  82. package/dist/chunks/{index-D3Q0mQNf.js.map → index-mXLFPoCI.js.map} +1 -1
  83. package/dist/chunks/list-collection-Bla_aoE6.js +6 -0
  84. package/dist/chunks/list-collection-Bla_aoE6.js.map +1 -0
  85. package/dist/chunks/list-collection-DoQwQYv1.js +2 -0
  86. package/dist/chunks/list-collection-DoQwQYv1.js.map +1 -0
  87. package/dist/chunks/{menu.component-Cq9sPsTJ.js → menu.component-BEDMybmZ.js} +10 -10
  88. package/dist/chunks/{menu.component-Cq9sPsTJ.js.map → menu.component-BEDMybmZ.js.map} +1 -1
  89. package/dist/chunks/{modal.types-CVy-QT6f.js → modal.types-Bq9gdlSr.js} +4 -4
  90. package/dist/chunks/{modal.types-CVy-QT6f.js.map → modal.types-Bq9gdlSr.js.map} +1 -1
  91. package/dist/chunks/{notificationCounter.component-BlGSd37B.js → notificationCounter.component-6Q3q8jWj.js} +2 -2
  92. package/dist/chunks/{notificationCounter.component-BlGSd37B.js.map → notificationCounter.component-6Q3q8jWj.js.map} +1 -1
  93. package/dist/chunks/{numberInput.component-nT-7b9qv.js → numberInput.component-DFK4EYLV.js} +6 -6
  94. package/dist/chunks/{numberInput.component-nT-7b9qv.js.map → numberInput.component-DFK4EYLV.js.map} +1 -1
  95. package/dist/chunks/{pinInput.types-B0nfeSUS.js → pinInput.types-BmXYQb7O.js} +6 -6
  96. package/dist/chunks/{pinInput.types-B0nfeSUS.js.map → pinInput.types-BmXYQb7O.js.map} +1 -1
  97. package/dist/chunks/{popover-pd70xkY_.js → popover-Gb1fXSR7.js} +5 -5
  98. package/dist/chunks/{popover-pd70xkY_.js.map → popover-Gb1fXSR7.js.map} +1 -1
  99. package/dist/chunks/{popover-root-provider-DR0Iuda1.js → popover-root-provider-CFn2dthZ.js} +5 -5
  100. package/dist/chunks/{popover-root-provider-DR0Iuda1.js.map → popover-root-provider-CFn2dthZ.js.map} +1 -1
  101. package/dist/chunks/{popover.component-BsiKfJR7.js → popover.component-DIYT1Lc0.js} +8 -8
  102. package/dist/chunks/{popover.component-BsiKfJR7.js.map → popover.component-DIYT1Lc0.js.map} +1 -1
  103. package/dist/chunks/{popover.component-C0nG3J1J.js → popover.component-DTjA1GSd.js} +2 -2
  104. package/dist/chunks/{popover.component-C0nG3J1J.js.map → popover.component-DTjA1GSd.js.map} +1 -1
  105. package/dist/chunks/{popover.recipe-NDvOfG9X.js → popover.recipe-CtptsJg6.js} +2 -2
  106. package/dist/chunks/{popover.recipe-NDvOfG9X.js.map → popover.recipe-CtptsJg6.js.map} +1 -1
  107. package/dist/chunks/{popover.recipe-BAl0q_IZ.js → popover.recipe-DPwwsWLb.js} +2 -2
  108. package/dist/chunks/{popover.recipe-BAl0q_IZ.js.map → popover.recipe-DPwwsWLb.js.map} +1 -1
  109. package/dist/chunks/{progress-value-text-DZkUF2cO.js → progress-value-text-D1GjH6w4.js} +4 -4
  110. package/dist/chunks/{progress-value-text-DZkUF2cO.js.map → progress-value-text-D1GjH6w4.js.map} +1 -1
  111. package/dist/chunks/{radioGroup.types-B--54AgI.js → radioGroup.types-CVFQ5dZ7.js} +7 -7
  112. package/dist/chunks/{radioGroup.types-B--54AgI.js.map → radioGroup.types-CVFQ5dZ7.js.map} +1 -1
  113. package/dist/chunks/{rating-group-CfwdAW9a.js → rating-group-DRCWuE5-.js} +5 -5
  114. package/dist/chunks/{rating-group-CfwdAW9a.js.map → rating-group-DRCWuE5-.js.map} +1 -1
  115. package/dist/chunks/{rating.component-DHlwuL8y.js → rating.component-CQgpD-gS.js} +3 -3
  116. package/dist/chunks/{rating.component-DHlwuL8y.js.map → rating.component-CQgpD-gS.js.map} +1 -1
  117. package/dist/chunks/{ratingDots.component-C3ABFE0-.js → ratingDots.component-C1KgTGWj.js} +3 -3
  118. package/dist/chunks/{ratingDots.component-C3ABFE0-.js.map → ratingDots.component-C1KgTGWj.js.map} +1 -1
  119. package/dist/chunks/{render-strategy-munDZLwL.js → render-strategy-DLvzMQD1.js} +2 -2
  120. package/dist/chunks/{render-strategy-munDZLwL.js.map → render-strategy-DLvzMQD1.js.map} +1 -1
  121. package/dist/chunks/{select.component-D5EioB-E.js → select.component-BkDkYpf2.js} +254 -253
  122. package/dist/chunks/select.component-BkDkYpf2.js.map +1 -0
  123. package/dist/chunks/select.component-DoFwe4lJ.js +2 -0
  124. package/dist/chunks/select.component-DoFwe4lJ.js.map +1 -0
  125. package/dist/chunks/{sortableList.component-B2XQoMq7.js → sortableList.component-CbxbBLVQ.js} +3 -3
  126. package/dist/chunks/{sortableList.component-B2XQoMq7.js.map → sortableList.component-CbxbBLVQ.js.map} +1 -1
  127. package/dist/chunks/{spinner.component-D3s81AJH.js → spinner.component-CNHQ8UDz.js} +2 -2
  128. package/dist/chunks/{spinner.component-D3s81AJH.js.map → spinner.component-CNHQ8UDz.js.map} +1 -1
  129. package/dist/chunks/{styledAvatar.types-Dd3tKh-E.js → styledAvatar.types-BaOkOA8K.js} +2 -2
  130. package/dist/chunks/{styledAvatar.types-Dd3tKh-E.js.map → styledAvatar.types-BaOkOA8K.js.map} +1 -1
  131. package/dist/chunks/{switch.component-xlG0hUNX.js → switch.component-Cr8Abw0U.js} +6 -6
  132. package/dist/chunks/{switch.component-xlG0hUNX.js.map → switch.component-Cr8Abw0U.js.map} +1 -1
  133. package/dist/chunks/{tab.types-CO64KNxl.js → tab.types-BoHuF-QZ.js} +13 -13
  134. package/dist/chunks/{tab.types-CO64KNxl.js.map → tab.types-BoHuF-QZ.js.map} +1 -1
  135. package/dist/chunks/{tagBlock.component-BKYJDU4L.js → tagBlock.component-DjbevH0J.js} +5 -5
  136. package/dist/chunks/{tagBlock.component-BKYJDU4L.js.map → tagBlock.component-DjbevH0J.js.map} +1 -1
  137. package/dist/chunks/{text.component-IjomJyJY.js → text.component-DhuUgP3j.js} +2 -2
  138. package/dist/chunks/{text.component-IjomJyJY.js.map → text.component-DhuUgP3j.js.map} +1 -1
  139. package/dist/chunks/{textInput.component-BMy6cEdV.js → textInput.component-C7kdQ8hF.js} +6 -6
  140. package/dist/chunks/{textInput.component-BMy6cEdV.js.map → textInput.component-C7kdQ8hF.js.map} +1 -1
  141. package/dist/chunks/{textarea.component-ChN0RGoe.js → textarea.component-W9VBnd4-.js} +12 -12
  142. package/dist/chunks/{textarea.component-ChN0RGoe.js.map → textarea.component-W9VBnd4-.js.map} +1 -1
  143. package/dist/chunks/{theme.provider-CezsihF5.js → theme.provider-BWhqnOFC.js} +2 -2
  144. package/dist/chunks/{theme.provider-CezsihF5.js.map → theme.provider-BWhqnOFC.js.map} +1 -1
  145. package/dist/chunks/{theme.provider-wnaH4Plk.js → theme.provider-Cl9_chOv.js} +15 -15
  146. package/dist/chunks/{theme.provider-wnaH4Plk.js.map → theme.provider-Cl9_chOv.js.map} +1 -1
  147. package/dist/chunks/{timePicker.component-CSm0UnA5.js → timePicker.component-CDb67FCr.js} +3 -3
  148. package/dist/chunks/{timePicker.component-CSm0UnA5.js.map → timePicker.component-CDb67FCr.js.map} +1 -1
  149. package/dist/chunks/{timePicker.component-BbDzVLdb.js → timePicker.component-CIk5bEyP.js} +2 -2
  150. package/dist/chunks/{timePicker.component-BbDzVLdb.js.map → timePicker.component-CIk5bEyP.js.map} +1 -1
  151. package/dist/chunks/{timeRange.component-Cwn94GUk.js → timeRange.component-B1WKwc-X.js} +2 -2
  152. package/dist/chunks/{timeRange.component-Cwn94GUk.js.map → timeRange.component-B1WKwc-X.js.map} +1 -1
  153. package/dist/chunks/{timeRange.component-DyB1Jo1d.js → timeRange.component-NX1EOY8h.js} +2 -2
  154. package/dist/chunks/{timeRange.component-DyB1Jo1d.js.map → timeRange.component-NX1EOY8h.js.map} +1 -1
  155. package/dist/chunks/{timestamp.component-IfjfMFXl.js → timestamp.component-DkLjxUsy.js} +3 -3
  156. package/dist/chunks/{timestamp.component-IfjfMFXl.js.map → timestamp.component-DkLjxUsy.js.map} +1 -1
  157. package/dist/chunks/{toaster.records-Cb3hbtuY.js → toaster.records-BzZmnA3j.js} +69 -69
  158. package/dist/chunks/{toaster.records-Cb3hbtuY.js.map → toaster.records-BzZmnA3j.js.map} +1 -1
  159. package/dist/chunks/{tooltip.component-DFsQNG1q.js → tooltip.component-CHohp2qn.js} +5 -5
  160. package/dist/chunks/{tooltip.component-DFsQNG1q.js.map → tooltip.component-CHohp2qn.js.map} +1 -1
  161. package/dist/chunks/{use-field-context-DrC9mrDd.js → use-field-context-BoqOeObh.js} +2 -2
  162. package/dist/chunks/{use-field-context-DrC9mrDd.js.map → use-field-context-BoqOeObh.js.map} +1 -1
  163. package/dist/chunks/{use-locale-context-Bw4Gg9Z0.js → use-locale-context-DmcfCmf9.js} +11 -11
  164. package/dist/chunks/{use-locale-context-Bw4Gg9Z0.js.map → use-locale-context-DmcfCmf9.js.map} +1 -1
  165. package/dist/chunks/{withFormControl-lDkIqkED.js → withFormControl-08PrhcOk.js} +6 -6
  166. package/dist/chunks/{withFormControl-lDkIqkED.js.map → withFormControl-08PrhcOk.js.map} +1 -1
  167. package/dist/chunks/{withTruncation-CqDQUSVU.js → withTruncation-B2GhwmHG.js} +2 -2
  168. package/dist/chunks/{withTruncation-CqDQUSVU.js.map → withTruncation-B2GhwmHG.js.map} +1 -1
  169. package/dist/cjs/chakra/index.cjs +2 -2
  170. package/dist/cjs/chakra/index.cjs.map +1 -1
  171. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  172. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  173. package/dist/cjs/components/Popover/index.cjs +1 -1
  174. package/dist/cjs/components/Select/index.cjs +1 -1
  175. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  176. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  177. package/dist/cjs/components/index.cjs +1 -1
  178. package/dist/cjs/index.cjs +1 -1
  179. package/dist/cjs/theme/index.cjs +1 -1
  180. package/dist/esm/chakra/index.js +17 -15
  181. package/dist/esm/chakra/index.js.map +1 -1
  182. package/dist/esm/components/Alert/index.js +1 -1
  183. package/dist/esm/components/Avatar/index.js +1 -1
  184. package/dist/esm/components/AvatarGroup/index.js +1 -1
  185. package/dist/esm/components/ButtonGroup/index.js +1 -1
  186. package/dist/esm/components/Calendar/index.js +1 -1
  187. package/dist/esm/components/CharacterCounter/index.js +1 -1
  188. package/dist/esm/components/Checkbox/index.js +1 -1
  189. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  190. package/dist/esm/components/ConversationCard/index.js +1 -1
  191. package/dist/esm/components/DatePicker/index.js +2 -2
  192. package/dist/esm/components/DateTimePicker/index.js +1 -1
  193. package/dist/esm/components/Heading/index.js +1 -1
  194. package/dist/esm/components/Menu/index.js +1 -1
  195. package/dist/esm/components/Modal/index.js +1 -1
  196. package/dist/esm/components/NotificationCounter/index.js +1 -1
  197. package/dist/esm/components/NumberInput/index.js +1 -1
  198. package/dist/esm/components/PinInput/index.js +1 -1
  199. package/dist/esm/components/Popover/index.js +1 -1
  200. package/dist/esm/components/Progress/index.js +3 -3
  201. package/dist/esm/components/RadioGroup/index.js +1 -1
  202. package/dist/esm/components/Rating/index.js +1 -1
  203. package/dist/esm/components/RatingDots/index.js +1 -1
  204. package/dist/esm/components/Select/index.js +1 -1
  205. package/dist/esm/components/SortableList/index.js +1 -1
  206. package/dist/esm/components/Spinner/index.js +1 -1
  207. package/dist/esm/components/StyledAvatar/index.js +1 -1
  208. package/dist/esm/components/Switch/index.js +1 -1
  209. package/dist/esm/components/Tabs/index.js +1 -1
  210. package/dist/esm/components/TagBlock/index.js +1 -1
  211. package/dist/esm/components/Text/index.js +1 -1
  212. package/dist/esm/components/TextInput/index.js +1 -1
  213. package/dist/esm/components/Textarea/index.js +1 -1
  214. package/dist/esm/components/TimePicker/index.js +1 -1
  215. package/dist/esm/components/TimeRange/index.js +1 -1
  216. package/dist/esm/components/Timestamp/index.js +1 -1
  217. package/dist/esm/components/Toast/index.js +1 -1
  218. package/dist/esm/components/Tooltip/index.js +1 -1
  219. package/dist/esm/components/index.js +36 -36
  220. package/dist/esm/index.js +37 -37
  221. package/dist/esm/theme/index.js +1 -1
  222. package/dist/types/chakra/index.d.ts +1 -0
  223. package/package.json +11 -1
  224. package/dist/chunks/index-BGd_2-DY.js +0 -1197
  225. package/dist/chunks/index-BGd_2-DY.js.map +0 -1
  226. package/dist/chunks/index-_913FPya.js +0 -2
  227. package/dist/chunks/index-_913FPya.js.map +0 -1
  228. package/dist/chunks/select.component-D-1YMPU9.js +0 -2
  229. package/dist/chunks/select.component-D-1YMPU9.js.map +0 -1
  230. package/dist/chunks/select.component-D5EioB-E.js.map +0 -1
@@ -0,0 +1,1011 @@
1
+ import { p as ee, C as te, K as W, r as N, A as ie, L as le, G as ae, M as k, i as ne, N as se, f as oe, O as re, P as de, l as K, Q as ce, R as ue, v as ge, c as r, e as he, S as me } from "./index-BcafYtXX.js";
2
+ import { L as j } from "./index-BhMI6dHH.js";
3
+ import { g as $, a as Ie } from "./index-DcmJgLUo.js";
4
+ import { t as pe } from "./index-mXLFPoCI.js";
5
+ import { c as b } from "./use-locale-context-DmcfCmf9.js";
6
+ var Ee = oe("select").parts(
7
+ "label",
8
+ "positioner",
9
+ "trigger",
10
+ "indicator",
11
+ "clearTrigger",
12
+ "item",
13
+ "itemText",
14
+ "itemIndicator",
15
+ "itemGroup",
16
+ "itemGroupLabel",
17
+ "list",
18
+ "content",
19
+ "root",
20
+ "control",
21
+ "valueText"
22
+ ), g = Ee.build(), J = (e) => new j(e);
23
+ J.empty = () => new j({ items: [] });
24
+ var ve = (e) => e.ids?.root ?? `select:${e.id}`, D = (e) => e.ids?.content ?? `select:${e.id}:content`, M = (e) => e.ids?.trigger ?? `select:${e.id}:trigger`, Q = (e) => e.ids?.clearTrigger ?? `select:${e.id}:clear-trigger`, S = (e) => e.ids?.label ?? `select:${e.id}:label`, fe = (e) => e.ids?.control ?? `select:${e.id}:control`, w = (e, t) => e.ids?.item?.(t) ?? `select:${e.id}:option:${t}`, _ = (e) => e.ids?.hiddenSelect ?? `select:${e.id}:select`, x = (e) => e.ids?.positioner ?? `select:${e.id}:positioner`, Te = (e, t) => e.ids?.itemGroup?.(t) ?? `select:${e.id}:optgroup:${t}`, B = (e, t) => e.ids?.itemGroupLabel?.(t) ?? `select:${e.id}:optgroup-label:${t}`, H = (e) => e.getById(_(e)), R = (e) => e.getById(D(e)), f = (e) => e.getById(M(e)), Oe = (e) => e.getById(Q(e)), Y = (e) => e.getById(x(e)), Re = (e, t) => e.getById(w(e, t));
25
+ function Le(e, t) {
26
+ const { context: l, prop: i, scope: n, state: d, computed: h, send: s } = e, c = i("disabled") || l.get("fieldsetDisabled"), m = i("invalid"), p = i("readOnly"), I = i("composite"), C = i("collection"), E = d.hasTag("open"), G = d.matches("focused"), O = l.get("highlightedValue"), X = l.get("highlightedItem"), Z = l.get("selectedItems"), L = l.get("currentPlacement"), U = h("isTypingAhead"), P = h("isInteractive"), F = O ? w(n, O) : void 0;
27
+ function V(a) {
28
+ const o = C.getItemDisabled(a.item), u = C.getItemValue(a.item);
29
+ return me(u, () => `[zag-js] No value found for item ${JSON.stringify(a.item)}`), {
30
+ value: u,
31
+ disabled: !!(c || o),
32
+ highlighted: O === u,
33
+ selected: l.get("value").includes(u)
34
+ };
35
+ }
36
+ const z = Ie({
37
+ ...i("positioning"),
38
+ placement: L
39
+ });
40
+ return {
41
+ open: E,
42
+ focused: G,
43
+ empty: l.get("value").length === 0,
44
+ highlightedItem: X,
45
+ highlightedValue: O,
46
+ selectedItems: Z,
47
+ hasSelectedItems: h("hasSelectedItems"),
48
+ value: l.get("value"),
49
+ valueAsString: h("valueAsString"),
50
+ collection: C,
51
+ multiple: !!i("multiple"),
52
+ disabled: !!c,
53
+ reposition(a = {}) {
54
+ s({ type: "POSITIONING.SET", options: a });
55
+ },
56
+ focus() {
57
+ f(n)?.focus({ preventScroll: !0 });
58
+ },
59
+ setOpen(a) {
60
+ d.hasTag("open") !== a && s({ type: a ? "OPEN" : "CLOSE" });
61
+ },
62
+ selectValue(a) {
63
+ s({ type: "ITEM.SELECT", value: a });
64
+ },
65
+ setValue(a) {
66
+ s({ type: "VALUE.SET", value: a });
67
+ },
68
+ selectAll() {
69
+ s({ type: "VALUE.SET", value: C.getValues() });
70
+ },
71
+ setHighlightValue(a) {
72
+ s({ type: "HIGHLIGHTED_VALUE.SET", value: a });
73
+ },
74
+ clearHighlightValue() {
75
+ s({ type: "HIGHLIGHTED_VALUE.CLEAR" });
76
+ },
77
+ clearValue(a) {
78
+ s(a ? { type: "ITEM.CLEAR", value: a } : { type: "VALUE.CLEAR" });
79
+ },
80
+ getItemState: V,
81
+ getRootProps() {
82
+ return t.element({
83
+ ...g.root.attrs,
84
+ dir: i("dir"),
85
+ id: ve(n),
86
+ "data-invalid": r(m),
87
+ "data-readonly": r(p)
88
+ });
89
+ },
90
+ getLabelProps() {
91
+ return t.label({
92
+ dir: i("dir"),
93
+ id: S(n),
94
+ ...g.label.attrs,
95
+ "data-disabled": r(c),
96
+ "data-invalid": r(m),
97
+ "data-readonly": r(p),
98
+ htmlFor: _(n),
99
+ onClick(a) {
100
+ a.defaultPrevented || c || f(n)?.focus({ preventScroll: !0 });
101
+ }
102
+ });
103
+ },
104
+ getControlProps() {
105
+ return t.element({
106
+ ...g.control.attrs,
107
+ dir: i("dir"),
108
+ id: fe(n),
109
+ "data-state": E ? "open" : "closed",
110
+ "data-focus": r(G),
111
+ "data-disabled": r(c),
112
+ "data-invalid": r(m)
113
+ });
114
+ },
115
+ getValueTextProps() {
116
+ return t.element({
117
+ ...g.valueText.attrs,
118
+ dir: i("dir"),
119
+ "data-disabled": r(c),
120
+ "data-invalid": r(m),
121
+ "data-focus": r(G)
122
+ });
123
+ },
124
+ getTriggerProps() {
125
+ return t.button({
126
+ id: M(n),
127
+ disabled: c,
128
+ dir: i("dir"),
129
+ type: "button",
130
+ role: "combobox",
131
+ "aria-controls": D(n),
132
+ "aria-expanded": E,
133
+ "aria-haspopup": "listbox",
134
+ "data-state": E ? "open" : "closed",
135
+ "aria-invalid": m,
136
+ "aria-labelledby": S(n),
137
+ ...g.trigger.attrs,
138
+ "data-disabled": r(c),
139
+ "data-invalid": r(m),
140
+ "data-readonly": r(p),
141
+ "data-placement": L,
142
+ "data-placeholder-shown": r(!h("hasSelectedItems")),
143
+ onClick(a) {
144
+ P && (a.defaultPrevented || s({ type: "TRIGGER.CLICK" }));
145
+ },
146
+ onFocus() {
147
+ s({ type: "TRIGGER.FOCUS" });
148
+ },
149
+ onBlur() {
150
+ s({ type: "TRIGGER.BLUR" });
151
+ },
152
+ onKeyDown(a) {
153
+ if (a.defaultPrevented || !P) return;
154
+ const u = {
155
+ ArrowUp() {
156
+ s({ type: "TRIGGER.ARROW_UP" });
157
+ },
158
+ ArrowDown(T) {
159
+ s({ type: T.altKey ? "OPEN" : "TRIGGER.ARROW_DOWN" });
160
+ },
161
+ ArrowLeft() {
162
+ s({ type: "TRIGGER.ARROW_LEFT" });
163
+ },
164
+ ArrowRight() {
165
+ s({ type: "TRIGGER.ARROW_RIGHT" });
166
+ },
167
+ Home() {
168
+ s({ type: "TRIGGER.HOME" });
169
+ },
170
+ End() {
171
+ s({ type: "TRIGGER.END" });
172
+ },
173
+ Enter() {
174
+ s({ type: "TRIGGER.ENTER" });
175
+ },
176
+ Space(T) {
177
+ s(U ? { type: "TRIGGER.TYPEAHEAD", key: T.key } : { type: "TRIGGER.ENTER" });
178
+ }
179
+ }[K(a, {
180
+ dir: i("dir"),
181
+ orientation: "vertical"
182
+ })];
183
+ if (u) {
184
+ u(a), a.preventDefault();
185
+ return;
186
+ }
187
+ k.isValidEvent(a) && (s({ type: "TRIGGER.TYPEAHEAD", key: a.key }), a.preventDefault());
188
+ }
189
+ });
190
+ },
191
+ getIndicatorProps() {
192
+ return t.element({
193
+ ...g.indicator.attrs,
194
+ dir: i("dir"),
195
+ "aria-hidden": !0,
196
+ "data-state": E ? "open" : "closed",
197
+ "data-disabled": r(c),
198
+ "data-invalid": r(m),
199
+ "data-readonly": r(p)
200
+ });
201
+ },
202
+ getItemProps(a) {
203
+ const o = V(a);
204
+ return t.element({
205
+ id: w(n, o.value),
206
+ role: "option",
207
+ ...g.item.attrs,
208
+ dir: i("dir"),
209
+ "data-value": o.value,
210
+ "aria-selected": o.selected,
211
+ "data-state": o.selected ? "checked" : "unchecked",
212
+ "data-highlighted": r(o.highlighted),
213
+ "data-disabled": r(o.disabled),
214
+ "aria-disabled": he(o.disabled),
215
+ onPointerMove(u) {
216
+ o.disabled || u.pointerType !== "mouse" || o.value !== O && s({ type: "ITEM.POINTER_MOVE", value: o.value });
217
+ },
218
+ onClick(u) {
219
+ u.defaultPrevented || o.disabled || s({ type: "ITEM.CLICK", src: "pointerup", value: o.value });
220
+ },
221
+ onPointerLeave(u) {
222
+ o.disabled || a.persistFocus || u.pointerType !== "mouse" || !e.event.previous()?.type.includes("POINTER") || s({ type: "ITEM.POINTER_LEAVE" });
223
+ }
224
+ });
225
+ },
226
+ getItemTextProps(a) {
227
+ const o = V(a);
228
+ return t.element({
229
+ ...g.itemText.attrs,
230
+ "data-state": o.selected ? "checked" : "unchecked",
231
+ "data-disabled": r(o.disabled),
232
+ "data-highlighted": r(o.highlighted)
233
+ });
234
+ },
235
+ getItemIndicatorProps(a) {
236
+ const o = V(a);
237
+ return t.element({
238
+ "aria-hidden": !0,
239
+ ...g.itemIndicator.attrs,
240
+ "data-state": o.selected ? "checked" : "unchecked",
241
+ hidden: !o.selected
242
+ });
243
+ },
244
+ getItemGroupLabelProps(a) {
245
+ const { htmlFor: o } = a;
246
+ return t.element({
247
+ ...g.itemGroupLabel.attrs,
248
+ id: B(n, o),
249
+ dir: i("dir"),
250
+ role: "presentation"
251
+ });
252
+ },
253
+ getItemGroupProps(a) {
254
+ const { id: o } = a;
255
+ return t.element({
256
+ ...g.itemGroup.attrs,
257
+ "data-disabled": r(c),
258
+ id: Te(n, o),
259
+ "aria-labelledby": B(n, o),
260
+ role: "group",
261
+ dir: i("dir")
262
+ });
263
+ },
264
+ getClearTriggerProps() {
265
+ return t.button({
266
+ ...g.clearTrigger.attrs,
267
+ id: Q(n),
268
+ type: "button",
269
+ "aria-label": "Clear value",
270
+ "data-invalid": r(m),
271
+ disabled: c,
272
+ hidden: !h("hasSelectedItems"),
273
+ dir: i("dir"),
274
+ onClick(a) {
275
+ a.defaultPrevented || s({ type: "CLEAR.CLICK" });
276
+ }
277
+ });
278
+ },
279
+ getHiddenSelectProps() {
280
+ const a = l.get("value"), o = i("multiple") ? a : a?.[0];
281
+ return t.select({
282
+ name: i("name"),
283
+ form: i("form"),
284
+ disabled: c,
285
+ multiple: i("multiple"),
286
+ required: i("required"),
287
+ "aria-hidden": !0,
288
+ id: _(n),
289
+ defaultValue: o,
290
+ style: ge,
291
+ tabIndex: -1,
292
+ // Some browser extensions will focus the hidden select.
293
+ // Let's forward the focus to the trigger.
294
+ onFocus() {
295
+ f(n)?.focus({ preventScroll: !0 });
296
+ },
297
+ "aria-labelledby": S(n)
298
+ });
299
+ },
300
+ getPositionerProps() {
301
+ return t.element({
302
+ ...g.positioner.attrs,
303
+ dir: i("dir"),
304
+ id: x(n),
305
+ style: z.floating
306
+ });
307
+ },
308
+ getContentProps() {
309
+ return t.element({
310
+ hidden: !E,
311
+ dir: i("dir"),
312
+ id: D(n),
313
+ role: I ? "listbox" : "dialog",
314
+ ...g.content.attrs,
315
+ "data-state": E ? "open" : "closed",
316
+ "data-placement": L,
317
+ "data-activedescendant": F,
318
+ "aria-activedescendant": I ? F : void 0,
319
+ "aria-multiselectable": i("multiple") && I ? !0 : void 0,
320
+ "aria-labelledby": S(n),
321
+ tabIndex: 0,
322
+ onKeyDown(a) {
323
+ if (!P || !re(a)) return;
324
+ if (a.key === "Tab" && !de(a)) {
325
+ a.preventDefault();
326
+ return;
327
+ }
328
+ const o = {
329
+ ArrowUp() {
330
+ s({ type: "CONTENT.ARROW_UP" });
331
+ },
332
+ ArrowDown() {
333
+ s({ type: "CONTENT.ARROW_DOWN" });
334
+ },
335
+ Home() {
336
+ s({ type: "CONTENT.HOME" });
337
+ },
338
+ End() {
339
+ s({ type: "CONTENT.END" });
340
+ },
341
+ Enter() {
342
+ s({ type: "ITEM.CLICK", src: "keydown.enter" });
343
+ },
344
+ Space(A) {
345
+ U ? s({ type: "CONTENT.TYPEAHEAD", key: A.key }) : o.Enter?.(A);
346
+ }
347
+ }, u = o[K(a)];
348
+ if (u) {
349
+ u(a), a.preventDefault();
350
+ return;
351
+ }
352
+ const T = ce(a);
353
+ ue(T) || k.isValidEvent(a) && (s({ type: "CONTENT.TYPEAHEAD", key: a.key }), a.preventDefault());
354
+ }
355
+ });
356
+ },
357
+ getListProps() {
358
+ return t.element({
359
+ ...g.list.attrs,
360
+ tabIndex: 0,
361
+ role: I ? void 0 : "listbox",
362
+ "aria-labelledby": M(n),
363
+ "aria-activedescendant": I ? void 0 : F,
364
+ "aria-multiselectable": !I && i("multiple") ? !0 : void 0
365
+ });
366
+ }
367
+ };
368
+ }
369
+ var { and: y, not: v, or: ye } = te(), Pe = ee({
370
+ props({ props: e }) {
371
+ return {
372
+ loopFocus: !1,
373
+ closeOnSelect: !e.multiple,
374
+ composite: !0,
375
+ defaultValue: [],
376
+ ...e,
377
+ collection: e.collection ?? J.empty(),
378
+ positioning: {
379
+ placement: "bottom-start",
380
+ gutter: 8,
381
+ ...e.positioning
382
+ }
383
+ };
384
+ },
385
+ context({ prop: e, bindable: t }) {
386
+ return {
387
+ value: t(() => ({
388
+ defaultValue: e("defaultValue"),
389
+ value: e("value"),
390
+ isEqual: ne,
391
+ onChange(l) {
392
+ const i = e("collection").findMany(l);
393
+ return e("onValueChange")?.({ value: l, items: i });
394
+ }
395
+ })),
396
+ highlightedValue: t(() => ({
397
+ defaultValue: e("defaultHighlightedValue") || null,
398
+ value: e("highlightedValue"),
399
+ onChange(l) {
400
+ e("onHighlightChange")?.({
401
+ highlightedValue: l,
402
+ highlightedItem: e("collection").find(l),
403
+ highlightedIndex: e("collection").indexOf(l)
404
+ });
405
+ }
406
+ })),
407
+ currentPlacement: t(() => ({
408
+ defaultValue: void 0
409
+ })),
410
+ fieldsetDisabled: t(() => ({
411
+ defaultValue: !1
412
+ })),
413
+ highlightedItem: t(() => ({
414
+ defaultValue: null
415
+ })),
416
+ selectedItems: t(() => {
417
+ const l = e("value") ?? e("defaultValue") ?? [];
418
+ return { defaultValue: e("collection").findMany(l) };
419
+ })
420
+ };
421
+ },
422
+ refs() {
423
+ return {
424
+ typeahead: { ...k.defaultOptions }
425
+ };
426
+ },
427
+ computed: {
428
+ hasSelectedItems: ({ context: e }) => e.get("value").length > 0,
429
+ isTypingAhead: ({ refs: e }) => e.get("typeahead").keysSoFar !== "",
430
+ isDisabled: ({ prop: e, context: t }) => !!e("disabled") || !!t.get("fieldsetDisabled"),
431
+ isInteractive: ({ prop: e }) => !(e("disabled") || e("readOnly")),
432
+ valueAsString: ({ context: e, prop: t }) => t("collection").stringifyItems(e.get("selectedItems"))
433
+ },
434
+ initialState({ prop: e }) {
435
+ return e("open") || e("defaultOpen") ? "open" : "idle";
436
+ },
437
+ entry: ["syncSelectElement"],
438
+ watch({ context: e, prop: t, track: l, action: i }) {
439
+ l([() => e.get("value").toString()], () => {
440
+ i(["syncSelectedItems", "syncSelectElement", "dispatchChangeEvent"]);
441
+ }), l([() => t("open")], () => {
442
+ i(["toggleVisibility"]);
443
+ }), l([() => e.get("highlightedValue")], () => {
444
+ i(["syncHighlightedItem"]);
445
+ }), l([() => t("collection").toString()], () => {
446
+ i(["syncCollection"]);
447
+ });
448
+ },
449
+ on: {
450
+ "HIGHLIGHTED_VALUE.SET": {
451
+ actions: ["setHighlightedItem"]
452
+ },
453
+ "HIGHLIGHTED_VALUE.CLEAR": {
454
+ actions: ["clearHighlightedItem"]
455
+ },
456
+ "ITEM.SELECT": {
457
+ actions: ["selectItem"]
458
+ },
459
+ "ITEM.CLEAR": {
460
+ actions: ["clearItem"]
461
+ },
462
+ "VALUE.SET": {
463
+ actions: ["setSelectedItems"]
464
+ },
465
+ "VALUE.CLEAR": {
466
+ actions: ["clearSelectedItems"]
467
+ },
468
+ "CLEAR.CLICK": {
469
+ actions: ["clearSelectedItems", "focusTriggerEl"]
470
+ }
471
+ },
472
+ effects: ["trackFormControlState"],
473
+ states: {
474
+ idle: {
475
+ tags: ["closed"],
476
+ on: {
477
+ "CONTROLLED.OPEN": [
478
+ {
479
+ guard: "isTriggerClickEvent",
480
+ target: "open",
481
+ actions: ["setInitialFocus", "highlightFirstSelectedItem"]
482
+ },
483
+ {
484
+ target: "open",
485
+ actions: ["setInitialFocus"]
486
+ }
487
+ ],
488
+ "TRIGGER.CLICK": [
489
+ {
490
+ guard: "isOpenControlled",
491
+ actions: ["invokeOnOpen"]
492
+ },
493
+ {
494
+ target: "open",
495
+ actions: ["invokeOnOpen", "setInitialFocus", "highlightFirstSelectedItem"]
496
+ }
497
+ ],
498
+ "TRIGGER.FOCUS": {
499
+ target: "focused"
500
+ },
501
+ OPEN: [
502
+ {
503
+ guard: "isOpenControlled",
504
+ actions: ["invokeOnOpen"]
505
+ },
506
+ {
507
+ target: "open",
508
+ actions: ["setInitialFocus", "invokeOnOpen"]
509
+ }
510
+ ]
511
+ }
512
+ },
513
+ focused: {
514
+ tags: ["closed"],
515
+ on: {
516
+ "CONTROLLED.OPEN": [
517
+ {
518
+ guard: "isTriggerClickEvent",
519
+ target: "open",
520
+ actions: ["setInitialFocus", "highlightFirstSelectedItem"]
521
+ },
522
+ {
523
+ guard: "isTriggerArrowUpEvent",
524
+ target: "open",
525
+ actions: ["setInitialFocus", "highlightComputedLastItem"]
526
+ },
527
+ {
528
+ guard: ye("isTriggerArrowDownEvent", "isTriggerEnterEvent"),
529
+ target: "open",
530
+ actions: ["setInitialFocus", "highlightComputedFirstItem"]
531
+ },
532
+ {
533
+ target: "open",
534
+ actions: ["setInitialFocus"]
535
+ }
536
+ ],
537
+ OPEN: [
538
+ {
539
+ guard: "isOpenControlled",
540
+ actions: ["invokeOnOpen"]
541
+ },
542
+ {
543
+ target: "open",
544
+ actions: ["setInitialFocus", "invokeOnOpen"]
545
+ }
546
+ ],
547
+ "TRIGGER.BLUR": {
548
+ target: "idle"
549
+ },
550
+ "TRIGGER.CLICK": [
551
+ {
552
+ guard: "isOpenControlled",
553
+ actions: ["invokeOnOpen"]
554
+ },
555
+ {
556
+ target: "open",
557
+ actions: ["setInitialFocus", "invokeOnOpen", "highlightFirstSelectedItem"]
558
+ }
559
+ ],
560
+ "TRIGGER.ENTER": [
561
+ {
562
+ guard: "isOpenControlled",
563
+ actions: ["invokeOnOpen"]
564
+ },
565
+ {
566
+ target: "open",
567
+ actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedFirstItem"]
568
+ }
569
+ ],
570
+ "TRIGGER.ARROW_UP": [
571
+ {
572
+ guard: "isOpenControlled",
573
+ actions: ["invokeOnOpen"]
574
+ },
575
+ {
576
+ target: "open",
577
+ actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedLastItem"]
578
+ }
579
+ ],
580
+ "TRIGGER.ARROW_DOWN": [
581
+ {
582
+ guard: "isOpenControlled",
583
+ actions: ["invokeOnOpen"]
584
+ },
585
+ {
586
+ target: "open",
587
+ actions: ["setInitialFocus", "invokeOnOpen", "highlightComputedFirstItem"]
588
+ }
589
+ ],
590
+ "TRIGGER.ARROW_LEFT": [
591
+ {
592
+ guard: y(v("multiple"), "hasSelectedItems"),
593
+ actions: ["selectPreviousItem"]
594
+ },
595
+ {
596
+ guard: v("multiple"),
597
+ actions: ["selectLastItem"]
598
+ }
599
+ ],
600
+ "TRIGGER.ARROW_RIGHT": [
601
+ {
602
+ guard: y(v("multiple"), "hasSelectedItems"),
603
+ actions: ["selectNextItem"]
604
+ },
605
+ {
606
+ guard: v("multiple"),
607
+ actions: ["selectFirstItem"]
608
+ }
609
+ ],
610
+ "TRIGGER.HOME": {
611
+ guard: v("multiple"),
612
+ actions: ["selectFirstItem"]
613
+ },
614
+ "TRIGGER.END": {
615
+ guard: v("multiple"),
616
+ actions: ["selectLastItem"]
617
+ },
618
+ "TRIGGER.TYPEAHEAD": {
619
+ guard: v("multiple"),
620
+ actions: ["selectMatchingItem"]
621
+ }
622
+ }
623
+ },
624
+ open: {
625
+ tags: ["open"],
626
+ exit: ["scrollContentToTop"],
627
+ effects: ["trackDismissableElement", "computePlacement", "scrollToHighlightedItem"],
628
+ on: {
629
+ "CONTROLLED.CLOSE": [
630
+ {
631
+ guard: "restoreFocus",
632
+ target: "focused",
633
+ actions: ["focusTriggerEl", "clearHighlightedItem"]
634
+ },
635
+ {
636
+ target: "idle",
637
+ actions: ["clearHighlightedItem"]
638
+ }
639
+ ],
640
+ CLOSE: [
641
+ {
642
+ guard: "isOpenControlled",
643
+ actions: ["invokeOnClose"]
644
+ },
645
+ {
646
+ guard: "restoreFocus",
647
+ target: "focused",
648
+ actions: ["invokeOnClose", "focusTriggerEl", "clearHighlightedItem"]
649
+ },
650
+ {
651
+ target: "idle",
652
+ actions: ["invokeOnClose", "clearHighlightedItem"]
653
+ }
654
+ ],
655
+ "TRIGGER.CLICK": [
656
+ {
657
+ guard: "isOpenControlled",
658
+ actions: ["invokeOnClose"]
659
+ },
660
+ {
661
+ target: "focused",
662
+ actions: ["invokeOnClose", "clearHighlightedItem"]
663
+ }
664
+ ],
665
+ "ITEM.CLICK": [
666
+ {
667
+ guard: y("closeOnSelect", "isOpenControlled"),
668
+ actions: ["selectHighlightedItem", "invokeOnClose"]
669
+ },
670
+ {
671
+ guard: "closeOnSelect",
672
+ target: "focused",
673
+ actions: ["selectHighlightedItem", "invokeOnClose", "focusTriggerEl", "clearHighlightedItem"]
674
+ },
675
+ {
676
+ actions: ["selectHighlightedItem"]
677
+ }
678
+ ],
679
+ "CONTENT.HOME": {
680
+ actions: ["highlightFirstItem"]
681
+ },
682
+ "CONTENT.END": {
683
+ actions: ["highlightLastItem"]
684
+ },
685
+ "CONTENT.ARROW_DOWN": [
686
+ {
687
+ guard: y("hasHighlightedItem", "loop", "isLastItemHighlighted"),
688
+ actions: ["highlightFirstItem"]
689
+ },
690
+ {
691
+ guard: "hasHighlightedItem",
692
+ actions: ["highlightNextItem"]
693
+ },
694
+ {
695
+ actions: ["highlightFirstItem"]
696
+ }
697
+ ],
698
+ "CONTENT.ARROW_UP": [
699
+ {
700
+ guard: y("hasHighlightedItem", "loop", "isFirstItemHighlighted"),
701
+ actions: ["highlightLastItem"]
702
+ },
703
+ {
704
+ guard: "hasHighlightedItem",
705
+ actions: ["highlightPreviousItem"]
706
+ },
707
+ {
708
+ actions: ["highlightLastItem"]
709
+ }
710
+ ],
711
+ "CONTENT.TYPEAHEAD": {
712
+ actions: ["highlightMatchingItem"]
713
+ },
714
+ "ITEM.POINTER_MOVE": {
715
+ actions: ["highlightItem"]
716
+ },
717
+ "ITEM.POINTER_LEAVE": {
718
+ actions: ["clearHighlightedItem"]
719
+ },
720
+ "POSITIONING.SET": {
721
+ actions: ["reposition"]
722
+ }
723
+ }
724
+ }
725
+ },
726
+ implementations: {
727
+ guards: {
728
+ loop: ({ prop: e }) => !!e("loopFocus"),
729
+ multiple: ({ prop: e }) => !!e("multiple"),
730
+ hasSelectedItems: ({ computed: e }) => !!e("hasSelectedItems"),
731
+ hasHighlightedItem: ({ context: e }) => e.get("highlightedValue") != null,
732
+ isFirstItemHighlighted: ({ context: e, prop: t }) => e.get("highlightedValue") === t("collection").firstValue,
733
+ isLastItemHighlighted: ({ context: e, prop: t }) => e.get("highlightedValue") === t("collection").lastValue,
734
+ closeOnSelect: ({ prop: e, event: t }) => !!(t.closeOnSelect ?? e("closeOnSelect")),
735
+ restoreFocus: ({ event: e }) => q(e),
736
+ // guard assertions (for controlled mode)
737
+ isOpenControlled: ({ prop: e }) => e("open") !== void 0,
738
+ isTriggerClickEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.CLICK",
739
+ isTriggerEnterEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ENTER",
740
+ isTriggerArrowUpEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ARROW_UP",
741
+ isTriggerArrowDownEvent: ({ event: e }) => e.previousEvent?.type === "TRIGGER.ARROW_DOWN"
742
+ },
743
+ effects: {
744
+ trackFormControlState({ context: e, scope: t }) {
745
+ return ae(H(t), {
746
+ onFieldsetDisabledChange(l) {
747
+ e.set("fieldsetDisabled", l);
748
+ },
749
+ onFormReset() {
750
+ const l = e.initial("value");
751
+ e.set("value", l);
752
+ }
753
+ });
754
+ },
755
+ trackDismissableElement({ scope: e, send: t, prop: l }) {
756
+ const i = () => R(e);
757
+ let n = !0;
758
+ return pe(i, {
759
+ defer: !0,
760
+ exclude: [f(e), Oe(e)],
761
+ onFocusOutside: l("onFocusOutside"),
762
+ onPointerDownOutside: l("onPointerDownOutside"),
763
+ onInteractOutside(d) {
764
+ l("onInteractOutside")?.(d), n = !(d.detail.focusable || d.detail.contextmenu);
765
+ },
766
+ onDismiss() {
767
+ t({ type: "CLOSE", src: "interact-outside", restoreFocus: n });
768
+ }
769
+ });
770
+ },
771
+ computePlacement({ context: e, prop: t, scope: l }) {
772
+ const i = t("positioning");
773
+ return e.set("currentPlacement", i.placement), $(() => f(l), () => Y(l), {
774
+ defer: !0,
775
+ ...i,
776
+ onComplete(h) {
777
+ e.set("currentPlacement", h.placement);
778
+ }
779
+ });
780
+ },
781
+ scrollToHighlightedItem({ context: e, prop: t, scope: l, event: i }) {
782
+ const n = (h) => {
783
+ const s = e.get("highlightedValue");
784
+ if (s == null || i.current().type.includes("POINTER")) return;
785
+ const c = Re(l, s), m = R(l), p = t("scrollToIndexFn");
786
+ if (p) {
787
+ const I = t("collection").indexOf(s);
788
+ p?.({ index: I, immediate: h });
789
+ return;
790
+ }
791
+ se(c, { rootEl: m, block: "nearest" });
792
+ };
793
+ return N(() => n(!0)), le(() => R(l), {
794
+ defer: !0,
795
+ attributes: ["data-activedescendant"],
796
+ callback() {
797
+ n(!1);
798
+ }
799
+ });
800
+ }
801
+ },
802
+ actions: {
803
+ reposition({ context: e, prop: t, scope: l, event: i }) {
804
+ const n = () => Y(l);
805
+ $(f(l), n, {
806
+ ...t("positioning"),
807
+ ...i.options,
808
+ defer: !0,
809
+ listeners: !1,
810
+ onComplete(d) {
811
+ e.set("currentPlacement", d.placement);
812
+ }
813
+ });
814
+ },
815
+ toggleVisibility({ send: e, prop: t, event: l }) {
816
+ e({ type: t("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: l });
817
+ },
818
+ highlightPreviousItem({ context: e, prop: t }) {
819
+ const l = e.get("highlightedValue");
820
+ if (l == null) return;
821
+ const i = t("collection").getPreviousValue(l, 1, t("loopFocus"));
822
+ i != null && e.set("highlightedValue", i);
823
+ },
824
+ highlightNextItem({ context: e, prop: t }) {
825
+ const l = e.get("highlightedValue");
826
+ if (l == null) return;
827
+ const i = t("collection").getNextValue(l, 1, t("loopFocus"));
828
+ i != null && e.set("highlightedValue", i);
829
+ },
830
+ highlightFirstItem({ context: e, prop: t }) {
831
+ const l = t("collection").firstValue;
832
+ e.set("highlightedValue", l);
833
+ },
834
+ highlightLastItem({ context: e, prop: t }) {
835
+ const l = t("collection").lastValue;
836
+ e.set("highlightedValue", l);
837
+ },
838
+ setInitialFocus({ scope: e }) {
839
+ N(() => {
840
+ ie({
841
+ root: R(e)
842
+ })?.focus({ preventScroll: !0 });
843
+ });
844
+ },
845
+ focusTriggerEl({ event: e, scope: t }) {
846
+ q(e) && N(() => {
847
+ f(t)?.focus({ preventScroll: !0 });
848
+ });
849
+ },
850
+ selectHighlightedItem({ context: e, prop: t, event: l }) {
851
+ let i = l.value ?? e.get("highlightedValue");
852
+ if (i == null || !t("collection").has(i)) return;
853
+ t("onSelect")?.({ value: i }), i = t("deselectable") && !t("multiple") && e.get("value").includes(i) ? null : i, e.set("value", (d) => i == null ? [] : t("multiple") ? W(d, i) : [i]);
854
+ },
855
+ highlightComputedFirstItem({ context: e, prop: t, computed: l }) {
856
+ const i = t("collection"), n = l("hasSelectedItems") ? i.sort(e.get("value"))[0] : i.firstValue;
857
+ e.set("highlightedValue", n);
858
+ },
859
+ highlightComputedLastItem({ context: e, prop: t, computed: l }) {
860
+ const i = t("collection"), n = l("hasSelectedItems") ? i.sort(e.get("value"))[0] : i.lastValue;
861
+ e.set("highlightedValue", n);
862
+ },
863
+ highlightFirstSelectedItem({ context: e, prop: t, computed: l }) {
864
+ if (!l("hasSelectedItems")) return;
865
+ const i = t("collection").sort(e.get("value"))[0];
866
+ e.set("highlightedValue", i);
867
+ },
868
+ highlightItem({ context: e, event: t }) {
869
+ e.set("highlightedValue", t.value);
870
+ },
871
+ highlightMatchingItem({ context: e, prop: t, event: l, refs: i }) {
872
+ const n = t("collection").search(l.key, {
873
+ state: i.get("typeahead"),
874
+ currentValue: e.get("highlightedValue")
875
+ });
876
+ n != null && e.set("highlightedValue", n);
877
+ },
878
+ setHighlightedItem({ context: e, event: t }) {
879
+ e.set("highlightedValue", t.value);
880
+ },
881
+ clearHighlightedItem({ context: e }) {
882
+ e.set("highlightedValue", null);
883
+ },
884
+ selectItem({ context: e, prop: t, event: l }) {
885
+ t("onSelect")?.({ value: l.value });
886
+ const n = t("deselectable") && !t("multiple") && e.get("value").includes(l.value) ? null : l.value;
887
+ e.set("value", (d) => n == null ? [] : t("multiple") ? W(d, n) : [n]);
888
+ },
889
+ clearItem({ context: e, event: t }) {
890
+ e.set("value", (l) => l.filter((i) => i !== t.value));
891
+ },
892
+ setSelectedItems({ context: e, event: t }) {
893
+ e.set("value", t.value);
894
+ },
895
+ clearSelectedItems({ context: e }) {
896
+ e.set("value", []);
897
+ },
898
+ selectPreviousItem({ context: e, prop: t }) {
899
+ const [l] = e.get("value"), i = t("collection").getPreviousValue(l);
900
+ i && e.set("value", [i]);
901
+ },
902
+ selectNextItem({ context: e, prop: t }) {
903
+ const [l] = e.get("value"), i = t("collection").getNextValue(l);
904
+ i && e.set("value", [i]);
905
+ },
906
+ selectFirstItem({ context: e, prop: t }) {
907
+ const l = t("collection").firstValue;
908
+ l && e.set("value", [l]);
909
+ },
910
+ selectLastItem({ context: e, prop: t }) {
911
+ const l = t("collection").lastValue;
912
+ l && e.set("value", [l]);
913
+ },
914
+ selectMatchingItem({ context: e, prop: t, event: l, refs: i }) {
915
+ const n = t("collection").search(l.key, {
916
+ state: i.get("typeahead"),
917
+ currentValue: e.get("value")[0]
918
+ });
919
+ n != null && e.set("value", [n]);
920
+ },
921
+ scrollContentToTop({ prop: e, scope: t }) {
922
+ e("scrollToIndexFn") ? e("scrollToIndexFn")?.({ index: 0, immediate: !0 }) : R(t)?.scrollTo(0, 0);
923
+ },
924
+ invokeOnOpen({ prop: e }) {
925
+ e("onOpenChange")?.({ open: !0 });
926
+ },
927
+ invokeOnClose({ prop: e }) {
928
+ e("onOpenChange")?.({ open: !1 });
929
+ },
930
+ syncSelectElement({ context: e, prop: t, scope: l }) {
931
+ const i = H(l);
932
+ if (i) {
933
+ if (e.get("value").length === 0 && !t("multiple")) {
934
+ i.selectedIndex = -1;
935
+ return;
936
+ }
937
+ for (const n of i.options)
938
+ n.selected = e.get("value").includes(n.value);
939
+ }
940
+ },
941
+ syncCollection({ context: e, prop: t }) {
942
+ const l = t("collection"), i = l.find(e.get("highlightedValue"));
943
+ i && e.set("highlightedItem", i);
944
+ const n = l.findMany(e.get("value"));
945
+ e.set("selectedItems", n);
946
+ },
947
+ syncSelectedItems({ context: e, prop: t }) {
948
+ const l = t("collection"), i = e.get("selectedItems"), d = e.get("value").map((h) => i.find((c) => l.getItemValue(c) === h) || l.find(h));
949
+ e.set("selectedItems", d);
950
+ },
951
+ syncHighlightedItem({ context: e, prop: t }) {
952
+ const l = t("collection"), i = e.get("highlightedValue"), n = i ? l.find(i) : null;
953
+ e.set("highlightedItem", n);
954
+ },
955
+ dispatchChangeEvent({ scope: e }) {
956
+ queueMicrotask(() => {
957
+ const t = H(e);
958
+ if (!t) return;
959
+ const l = e.getWin(), i = new l.Event("change", { bubbles: !0, composed: !0 });
960
+ t.dispatchEvent(i);
961
+ });
962
+ }
963
+ }
964
+ }
965
+ });
966
+ function q(e) {
967
+ const t = e.restoreFocus ?? e.previousEvent?.restoreFocus;
968
+ return t == null || !!t;
969
+ }
970
+ b()([
971
+ "closeOnSelect",
972
+ "collection",
973
+ "composite",
974
+ "defaultHighlightedValue",
975
+ "defaultOpen",
976
+ "defaultValue",
977
+ "deselectable",
978
+ "dir",
979
+ "disabled",
980
+ "form",
981
+ "getRootNode",
982
+ "highlightedValue",
983
+ "id",
984
+ "ids",
985
+ "invalid",
986
+ "loopFocus",
987
+ "multiple",
988
+ "name",
989
+ "onFocusOutside",
990
+ "onHighlightChange",
991
+ "onInteractOutside",
992
+ "onOpenChange",
993
+ "onPointerDownOutside",
994
+ "onSelect",
995
+ "onValueChange",
996
+ "open",
997
+ "positioning",
998
+ "readOnly",
999
+ "required",
1000
+ "scrollToIndexFn",
1001
+ "value"
1002
+ ]);
1003
+ b()(["item", "persistFocus"]);
1004
+ b()(["id"]);
1005
+ b()(["htmlFor"]);
1006
+ export {
1007
+ Ee as a,
1008
+ Le as c,
1009
+ Pe as m
1010
+ };
1011
+ //# sourceMappingURL=index-6QSGfY1E.js.map