@commercetools/nimbus 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/chunks/{accordion-Dh0RVlNx.es.js → accordion-Cwy8ywRo.es.js} +2 -2
  2. package/dist/chunks/{accordion-Dh0RVlNx.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
  3. package/dist/chunks/{accordion-CVpg-FdJ.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
  4. package/dist/chunks/{accordion-CVpg-FdJ.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
  5. package/dist/chunks/{accordion.content-Cqet9SQ-.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
  6. package/dist/chunks/{accordion.content-Cqet9SQ-.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
  7. package/dist/chunks/{accordion.content-GGayEeqD.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
  8. package/dist/chunks/{accordion.content-GGayEeqD.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
  9. package/dist/chunks/{alert-pPmN9CXZ.cjs.js → alert-D5SDMEKA.cjs.js} +2 -2
  10. package/dist/chunks/{alert-pPmN9CXZ.cjs.js.map → alert-D5SDMEKA.cjs.js.map} +1 -1
  11. package/dist/chunks/{alert-DCgWOaY2.es.js → alert-WiLa3ap4.es.js} +2 -2
  12. package/dist/chunks/{alert-DCgWOaY2.es.js.map → alert-WiLa3ap4.es.js.map} +1 -1
  13. package/dist/chunks/{button-BR4fvcmi.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
  14. package/dist/chunks/{button-BR4fvcmi.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
  15. package/dist/chunks/{button-BEJnxXsL.es.js → button-CANeXX_D.es.js} +2 -2
  16. package/dist/chunks/{button-BEJnxXsL.es.js.map → button-CANeXX_D.es.js.map} +1 -1
  17. package/dist/chunks/{calendar-lSoXK-yt.es.js → calendar-Bnw0u0vz.es.js} +3 -3
  18. package/dist/chunks/{calendar-lSoXK-yt.es.js.map → calendar-Bnw0u0vz.es.js.map} +1 -1
  19. package/dist/chunks/{calendar-B01Vti5k.cjs.js → calendar-D0OrT88Y.cjs.js} +2 -2
  20. package/dist/chunks/{calendar-B01Vti5k.cjs.js.map → calendar-D0OrT88Y.cjs.js.map} +1 -1
  21. package/dist/chunks/{card-q5i119kB.es.js → card-BHw7lWYe.es.js} +2 -2
  22. package/dist/chunks/{card-q5i119kB.es.js.map → card-BHw7lWYe.es.js.map} +1 -1
  23. package/dist/chunks/{card-Bk3xHlo2.cjs.js → card-CgBcH7Zm.cjs.js} +2 -2
  24. package/dist/chunks/{card-Bk3xHlo2.cjs.js.map → card-CgBcH7Zm.cjs.js.map} +1 -1
  25. package/dist/chunks/{checkbox-BJANm94D.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
  26. package/dist/chunks/{checkbox-BJANm94D.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
  27. package/dist/chunks/{checkbox-CputcCVr.es.js → checkbox-UATxAVti.es.js} +2 -2
  28. package/dist/chunks/{checkbox-CputcCVr.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
  29. package/dist/chunks/{collapsible-motion-DvtUDuxb.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
  30. package/dist/chunks/{collapsible-motion-DvtUDuxb.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
  31. package/dist/chunks/{collapsible-motion-Biq0QGUr.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
  32. package/dist/chunks/{collapsible-motion-Biq0QGUr.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
  33. package/dist/chunks/{combobox-vjauyzlS.es.js → combobox-B30crY-T.es.js} +356 -344
  34. package/dist/chunks/combobox-B30crY-T.es.js.map +1 -0
  35. package/dist/chunks/combobox-D_L2EmTy.cjs.js +2 -0
  36. package/dist/chunks/combobox-D_L2EmTy.cjs.js.map +1 -0
  37. package/dist/chunks/{data-table-DA4SdIgU.es.js → data-table-B7orK0Y6.es.js} +953 -933
  38. package/dist/chunks/{data-table-DA4SdIgU.es.js.map → data-table-B7orK0Y6.es.js.map} +1 -1
  39. package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
  40. package/dist/chunks/{data-table-CBZLbe9h.cjs.js.map → data-table-Cg75JPdu.cjs.js.map} +1 -1
  41. package/dist/chunks/{date-input-DkYcGwBy.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
  42. package/dist/chunks/{date-input-DkYcGwBy.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
  43. package/dist/chunks/{date-input-Cd9q4qBj.es.js → date-input-Ba6r9wMb.es.js} +3 -3
  44. package/dist/chunks/{date-input-Cd9q4qBj.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
  45. package/dist/chunks/{date-picker-DQ5IZcRe.cjs.js → date-picker-Bm6DjFOx.cjs.js} +2 -2
  46. package/dist/chunks/{date-picker-DQ5IZcRe.cjs.js.map → date-picker-Bm6DjFOx.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-picker-B8VVNXU3.es.js → date-picker-DwQ1WWNP.es.js} +7 -7
  48. package/dist/chunks/{date-picker-B8VVNXU3.es.js.map → date-picker-DwQ1WWNP.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-CO2HH0mY.cjs.js → date-range-picker-DaSUwkke.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-CO2HH0mY.cjs.js.map → date-range-picker-DaSUwkke.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-BnbKgO1E.es.js → date-range-picker-dw7c9idV.es.js} +7 -7
  52. package/dist/chunks/{date-range-picker-BnbKgO1E.es.js.map → date-range-picker-dw7c9idV.es.js.map} +1 -1
  53. package/dist/chunks/{date-range-picker-field-BuI6eLMY.es.js → date-range-picker-field-D-kCkHEF.es.js} +3 -3
  54. package/dist/chunks/{date-range-picker-field-BuI6eLMY.es.js.map → date-range-picker-field-D-kCkHEF.es.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker-field-DcIo1YzI.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
  56. package/dist/chunks/{date-range-picker-field-DcIo1YzI.cjs.js.map → date-range-picker-field-J2b1-A1l.cjs.js.map} +1 -1
  57. package/dist/chunks/{dialog-gyrFT8w0.cjs.js → dialog-ByHd6RlA.cjs.js} +2 -2
  58. package/dist/chunks/{dialog-gyrFT8w0.cjs.js.map → dialog-ByHd6RlA.cjs.js.map} +1 -1
  59. package/dist/chunks/{dialog-DuS3dXVi.es.js → dialog-vnnSNnUC.es.js} +3 -3
  60. package/dist/chunks/{dialog-DuS3dXVi.es.js.map → dialog-vnnSNnUC.es.js.map} +1 -1
  61. package/dist/chunks/{draggable-list-fvTG-VYt.cjs.js → draggable-list-CGpLzk-D.cjs.js} +2 -2
  62. package/dist/chunks/{draggable-list-fvTG-VYt.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
  63. package/dist/chunks/{draggable-list-z7a7tu_F.es.js → draggable-list-DR-559Qk.es.js} +5 -5
  64. package/dist/chunks/{draggable-list-z7a7tu_F.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
  65. package/dist/chunks/{drawer-BPcEUbUt.es.js → drawer-CasegOAE.es.js} +49 -49
  66. package/dist/chunks/drawer-CasegOAE.es.js.map +1 -0
  67. package/dist/chunks/drawer-CmxHDgtW.cjs.js +2 -0
  68. package/dist/chunks/drawer-CmxHDgtW.cjs.js.map +1 -0
  69. package/dist/chunks/{extract-style-props-B4hqila-.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
  70. package/dist/chunks/{extract-style-props-B4hqila-.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
  71. package/dist/chunks/{extract-style-props-BdibuNZ7.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
  72. package/dist/chunks/{extract-style-props-BdibuNZ7.es.js.map → extract-style-props-CM4QZGaE.es.js.map} +1 -1
  73. package/dist/chunks/{form-field-FdRNl2bZ.cjs.js → form-field-52--hhlj.cjs.js} +2 -2
  74. package/dist/chunks/{form-field-FdRNl2bZ.cjs.js.map → form-field-52--hhlj.cjs.js.map} +1 -1
  75. package/dist/chunks/{form-field-BfDU18h3.es.js → form-field-DCWDyNJx.es.js} +2 -2
  76. package/dist/chunks/{form-field-BfDU18h3.es.js.map → form-field-DCWDyNJx.es.js.map} +1 -1
  77. package/dist/chunks/{icon-button-CeB8_Yyr.cjs.js → icon-button-5pYAEokc.cjs.js} +2 -2
  78. package/dist/chunks/{icon-button-CeB8_Yyr.cjs.js.map → icon-button-5pYAEokc.cjs.js.map} +1 -1
  79. package/dist/chunks/{icon-button-CosIm3oY.es.js → icon-button-DhHKxd27.es.js} +2 -2
  80. package/dist/chunks/{icon-button-CosIm3oY.es.js.map → icon-button-DhHKxd27.es.js.map} +1 -1
  81. package/dist/chunks/{icon-toggle-button-C4Tnlt4t.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
  82. package/dist/chunks/{icon-toggle-button-C4Tnlt4t.cjs.js.map → icon-toggle-button-BsQzSrKe.cjs.js.map} +1 -1
  83. package/dist/chunks/{icon-toggle-button-8fX8JAXp.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
  84. package/dist/chunks/{icon-toggle-button-8fX8JAXp.es.js.map → icon-toggle-button-C7HZUXh5.es.js.map} +1 -1
  85. package/dist/chunks/{index-CVXB9mwf.cjs.js → index-CBRmb4jF.cjs.js} +2 -2
  86. package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
  87. package/dist/chunks/{index-C2qW4ynb.es.js → index-D3KlpJA5.es.js} +3 -3
  88. package/dist/chunks/index-D3KlpJA5.es.js.map +1 -0
  89. package/dist/chunks/{localized-field-D78l88ux.cjs.js → localized-field-BJTWKclB.cjs.js} +2 -2
  90. package/dist/chunks/{localized-field-D78l88ux.cjs.js.map → localized-field-BJTWKclB.cjs.js.map} +1 -1
  91. package/dist/chunks/{localized-field-DdeHzXdh.es.js → localized-field-CHXN7Zf1.es.js} +8 -8
  92. package/dist/chunks/{localized-field-DdeHzXdh.es.js.map → localized-field-CHXN7Zf1.es.js.map} +1 -1
  93. package/dist/chunks/{menu-Dno8yFDE.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
  94. package/dist/chunks/{menu-Dno8yFDE.cjs.js.map → menu-Cu7gIVGQ.cjs.js.map} +1 -1
  95. package/dist/chunks/{menu-Zlnps1eW.es.js → menu-SxqgiwJf.es.js} +2 -2
  96. package/dist/chunks/{menu-Zlnps1eW.es.js.map → menu-SxqgiwJf.es.js.map} +1 -1
  97. package/dist/chunks/{money-input-D65vrUj4.es.js → money-input-B5kFhLR0.es.js} +15 -15
  98. package/dist/chunks/{money-input-D65vrUj4.es.js.map → money-input-B5kFhLR0.es.js.map} +1 -1
  99. package/dist/chunks/{money-input-C9eVmgeL.cjs.js → money-input-CBKb1D73.cjs.js} +2 -2
  100. package/dist/chunks/{money-input-C9eVmgeL.cjs.js.map → money-input-CBKb1D73.cjs.js.map} +1 -1
  101. package/dist/chunks/{money-input-field-CSnaaDk-.es.js → money-input-field-0vXOOTvx.es.js} +3 -3
  102. package/dist/chunks/{money-input-field-CSnaaDk-.es.js.map → money-input-field-0vXOOTvx.es.js.map} +1 -1
  103. package/dist/chunks/{money-input-field-BGZ_9HKh.cjs.js → money-input-field-DjpKPCGo.cjs.js} +2 -2
  104. package/dist/chunks/{money-input-field-BGZ_9HKh.cjs.js.map → money-input-field-DjpKPCGo.cjs.js.map} +1 -1
  105. package/dist/chunks/{multiline-text-input-CULLuZBp.cjs.js → multiline-text-input-DN9yF7Di.cjs.js} +2 -2
  106. package/dist/chunks/{multiline-text-input-CULLuZBp.cjs.js.map → multiline-text-input-DN9yF7Di.cjs.js.map} +1 -1
  107. package/dist/chunks/{multiline-text-input-CrDTYrM3.es.js → multiline-text-input-DkruVK6m.es.js} +3 -3
  108. package/dist/chunks/{multiline-text-input-CrDTYrM3.es.js.map → multiline-text-input-DkruVK6m.es.js.map} +1 -1
  109. package/dist/chunks/{multiline-text-input-field-BX-w2v1Y.cjs.js → multiline-text-input-field-QLmo_I6Q.cjs.js} +2 -2
  110. package/dist/chunks/{multiline-text-input-field-BX-w2v1Y.cjs.js.map → multiline-text-input-field-QLmo_I6Q.cjs.js.map} +1 -1
  111. package/dist/chunks/{multiline-text-input-field-C6UTl_c8.es.js → multiline-text-input-field-ipwTTNg6.es.js} +3 -3
  112. package/dist/chunks/{multiline-text-input-field-C6UTl_c8.es.js.map → multiline-text-input-field-ipwTTNg6.es.js.map} +1 -1
  113. package/dist/chunks/{nimbus-provider-S02SpkpM.es.js → nimbus-provider-4H3HucGg.es.js} +2 -2
  114. package/dist/chunks/{nimbus-provider-S02SpkpM.es.js.map → nimbus-provider-4H3HucGg.es.js.map} +1 -1
  115. package/dist/chunks/{nimbus-provider-Dnu5ohMR.cjs.js → nimbus-provider-CbD64J_V.cjs.js} +2 -2
  116. package/dist/chunks/{nimbus-provider-Dnu5ohMR.cjs.js.map → nimbus-provider-CbD64J_V.cjs.js.map} +1 -1
  117. package/dist/chunks/{number-input-CR1hdy-B.cjs.js → number-input-B29DJ2_U.cjs.js} +2 -2
  118. package/dist/chunks/{number-input-CR1hdy-B.cjs.js.map → number-input-B29DJ2_U.cjs.js.map} +1 -1
  119. package/dist/chunks/{number-input-Dp13Mn-8.es.js → number-input-BVTqEzzS.es.js} +3 -3
  120. package/dist/chunks/{number-input-Dp13Mn-8.es.js.map → number-input-BVTqEzzS.es.js.map} +1 -1
  121. package/dist/chunks/{number-input-field-BDNpAP6t.cjs.js → number-input-field-DHBy_GKG.cjs.js} +2 -2
  122. package/dist/chunks/{number-input-field-BDNpAP6t.cjs.js.map → number-input-field-DHBy_GKG.cjs.js.map} +1 -1
  123. package/dist/chunks/{number-input-field-C90uFO4e.es.js → number-input-field-DenXeCQQ.es.js} +3 -3
  124. package/dist/chunks/{number-input-field-C90uFO4e.es.js.map → number-input-field-DenXeCQQ.es.js.map} +1 -1
  125. package/dist/chunks/{pagination-BlrGdyD5.es.js → pagination-BjUXs0hd.es.js} +4 -4
  126. package/dist/chunks/{pagination-BlrGdyD5.es.js.map → pagination-BjUXs0hd.es.js.map} +1 -1
  127. package/dist/chunks/{pagination-BIxlGft7.cjs.js → pagination-D8Tn2HGh.cjs.js} +2 -2
  128. package/dist/chunks/{pagination-BIxlGft7.cjs.js.map → pagination-D8Tn2HGh.cjs.js.map} +1 -1
  129. package/dist/chunks/{password-input-BVbQ42NG.cjs.js → password-input-DQM-caak.cjs.js} +2 -2
  130. package/dist/chunks/{password-input-BVbQ42NG.cjs.js.map → password-input-DQM-caak.cjs.js.map} +1 -1
  131. package/dist/chunks/{password-input-field-XXaNUALk.es.js → password-input-field-CNLpabCL.es.js} +3 -3
  132. package/dist/chunks/{password-input-field-XXaNUALk.es.js.map → password-input-field-CNLpabCL.es.js.map} +1 -1
  133. package/dist/chunks/{password-input-field-B5lWzWAQ.cjs.js → password-input-field-CgQEW15R.cjs.js} +2 -2
  134. package/dist/chunks/{password-input-field-B5lWzWAQ.cjs.js.map → password-input-field-CgQEW15R.cjs.js.map} +1 -1
  135. package/dist/chunks/{password-input-8bkpGOIX.es.js → password-input-vu3kFdzW.es.js} +3 -3
  136. package/dist/chunks/{password-input-8bkpGOIX.es.js.map → password-input-vu3kFdzW.es.js.map} +1 -1
  137. package/dist/chunks/{progress-bar-dRKyuT1-.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
  138. package/dist/chunks/{progress-bar-dRKyuT1-.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
  139. package/dist/chunks/{progress-bar-C2ZnGdLv.es.js → progress-bar-D99U1mF3.es.js} +2 -2
  140. package/dist/chunks/{progress-bar-C2ZnGdLv.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
  141. package/dist/chunks/{radio-input-BecbxXcF.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
  142. package/dist/chunks/{radio-input-BecbxXcF.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
  143. package/dist/chunks/{radio-input-DV-hhL4S.es.js → radio-input-S4OwAttR.es.js} +3 -3
  144. package/dist/chunks/{radio-input-DV-hhL4S.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
  145. package/dist/chunks/{range-calendar-CEIaa08T.es.js → range-calendar-qoiJRxsH.es.js} +4 -4
  146. package/dist/chunks/{range-calendar-CEIaa08T.es.js.map → range-calendar-qoiJRxsH.es.js.map} +1 -1
  147. package/dist/chunks/{range-calendar-Dq5Gtsb6.cjs.js → range-calendar-tLrCZyTQ.cjs.js} +2 -2
  148. package/dist/chunks/{range-calendar-Dq5Gtsb6.cjs.js.map → range-calendar-tLrCZyTQ.cjs.js.map} +1 -1
  149. package/dist/chunks/{rich-text-input-CRGUa5d2.es.js → rich-text-input-COjV3y9x.es.js} +8 -8
  150. package/dist/chunks/{rich-text-input-CRGUa5d2.es.js.map → rich-text-input-COjV3y9x.es.js.map} +1 -1
  151. package/dist/chunks/{rich-text-input-Dml5F7pU.cjs.js → rich-text-input-Cx9u2DDm.cjs.js} +2 -2
  152. package/dist/chunks/{rich-text-input-Dml5F7pU.cjs.js.map → rich-text-input-Cx9u2DDm.cjs.js.map} +1 -1
  153. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js +2 -0
  154. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js.map +1 -0
  155. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js +151 -0
  156. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js.map +1 -0
  157. package/dist/chunks/{search-input-BDUJ48BC.es.js → search-input-Ba7KSi4m.es.js} +4 -4
  158. package/dist/chunks/{search-input-BDUJ48BC.es.js.map → search-input-Ba7KSi4m.es.js.map} +1 -1
  159. package/dist/chunks/{search-input-BNXlpYtP.cjs.js → search-input-DrTdsAJB.cjs.js} +2 -2
  160. package/dist/chunks/{search-input-BNXlpYtP.cjs.js.map → search-input-DrTdsAJB.cjs.js.map} +1 -1
  161. package/dist/chunks/{search-input-field-v60x1oiw.cjs.js → search-input-field-Dan6FtWD.cjs.js} +2 -2
  162. package/dist/chunks/{search-input-field-v60x1oiw.cjs.js.map → search-input-field-Dan6FtWD.cjs.js.map} +1 -1
  163. package/dist/chunks/{search-input-field-CEemw2P1.es.js → search-input-field-G080Ti8W.es.js} +3 -3
  164. package/dist/chunks/{search-input-field-CEemw2P1.es.js.map → search-input-field-G080Ti8W.es.js.map} +1 -1
  165. package/dist/chunks/{select-D9yYDW0d.es.js → select-B3w10lhg.es.js} +4 -4
  166. package/dist/chunks/{select-D9yYDW0d.es.js.map → select-B3w10lhg.es.js.map} +1 -1
  167. package/dist/chunks/{select-Dq_6o0BB.cjs.js → select-DzHoPh1S.cjs.js} +2 -2
  168. package/dist/chunks/{select-Dq_6o0BB.cjs.js.map → select-DzHoPh1S.cjs.js.map} +1 -1
  169. package/dist/chunks/{separator-u_4por07.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
  170. package/dist/chunks/{separator-u_4por07.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
  171. package/dist/chunks/{separator-BJ9k_D4l.es.js → separator-DX_ZJMkp.es.js} +3 -3
  172. package/dist/chunks/{separator-BJ9k_D4l.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
  173. package/dist/chunks/{split-button-C94SY3qF.es.js → split-button-BGDUOZcq.es.js} +4 -4
  174. package/dist/chunks/{split-button-C94SY3qF.es.js.map → split-button-BGDUOZcq.es.js.map} +1 -1
  175. package/dist/chunks/{split-button-B4gVhpP9.cjs.js → split-button-Cu7MwPgo.cjs.js} +2 -2
  176. package/dist/chunks/{split-button-B4gVhpP9.cjs.js.map → split-button-Cu7MwPgo.cjs.js.map} +1 -1
  177. package/dist/chunks/{switch-Nn1Fbk5O.es.js → switch-GD8BjCPZ.es.js} +3 -3
  178. package/dist/chunks/{switch-Nn1Fbk5O.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
  179. package/dist/chunks/{switch-CsiG41ZR.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
  180. package/dist/chunks/{switch-CsiG41ZR.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
  181. package/dist/chunks/{tabs-D0OPeQ_J.es.js → tabs-Dh_AK8jc.es.js} +38 -33
  182. package/dist/chunks/{tabs-D0OPeQ_J.es.js.map → tabs-Dh_AK8jc.es.js.map} +1 -1
  183. package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
  184. package/dist/chunks/{tabs-iV08OTqG.cjs.js.map → tabs-Dxwwd4jH.cjs.js.map} +1 -1
  185. package/dist/chunks/{tag-group-BE8d6xcP.es.js → tag-group-CMfyCIc3.es.js} +2 -2
  186. package/dist/chunks/{tag-group-BE8d6xcP.es.js.map → tag-group-CMfyCIc3.es.js.map} +1 -1
  187. package/dist/chunks/{tag-group-BI8_32rM.cjs.js → tag-group-rbUwxsaP.cjs.js} +2 -2
  188. package/dist/chunks/{tag-group-BI8_32rM.cjs.js.map → tag-group-rbUwxsaP.cjs.js.map} +1 -1
  189. package/dist/chunks/{text-input-CCiZeQad.es.js → text-input-UaixbZjE.es.js} +3 -3
  190. package/dist/chunks/{text-input-CCiZeQad.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
  191. package/dist/chunks/{text-input-field-Cmht3hDK.cjs.js → text-input-field-C_Ykb6V3.cjs.js} +2 -2
  192. package/dist/chunks/{text-input-field-Cmht3hDK.cjs.js.map → text-input-field-C_Ykb6V3.cjs.js.map} +1 -1
  193. package/dist/chunks/{text-input-field-6Cj35cYL.es.js → text-input-field-ChGQsEAJ.es.js} +3 -3
  194. package/dist/chunks/{text-input-field-6Cj35cYL.es.js.map → text-input-field-ChGQsEAJ.es.js.map} +1 -1
  195. package/dist/chunks/{text-input-BlxK2Naj.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
  196. package/dist/chunks/{text-input-BlxK2Naj.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
  197. package/dist/chunks/{time-input-9Q5vV4UD.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
  198. package/dist/chunks/{time-input-9Q5vV4UD.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
  199. package/dist/chunks/{time-input-CCuIFoY2.es.js → time-input-T4jAE9kM.es.js} +3 -3
  200. package/dist/chunks/{time-input-CCuIFoY2.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
  201. package/dist/chunks/{toggle-button-UcXy5q2C.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
  202. package/dist/chunks/{toggle-button-UcXy5q2C.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
  203. package/dist/chunks/{toggle-button-L7i1XaWg.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
  204. package/dist/chunks/{toggle-button-L7i1XaWg.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
  205. package/dist/chunks/{toolbar-D4fLFiSb.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
  206. package/dist/chunks/{toolbar-D4fLFiSb.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
  207. package/dist/chunks/{toolbar-C7-6gqba.es.js → toolbar-QZSD0kko.es.js} +3 -3
  208. package/dist/chunks/{toolbar-C7-6gqba.es.js.map → toolbar-QZSD0kko.es.js.map} +1 -1
  209. package/dist/components/accordion.cjs +1 -1
  210. package/dist/components/accordion.es.js +2 -2
  211. package/dist/components/alert.cjs +1 -1
  212. package/dist/components/alert.es.js +1 -1
  213. package/dist/components/button.cjs +1 -1
  214. package/dist/components/button.es.js +1 -1
  215. package/dist/components/calendar.cjs +1 -1
  216. package/dist/components/calendar.es.js +1 -1
  217. package/dist/components/card.cjs +1 -1
  218. package/dist/components/card.es.js +1 -1
  219. package/dist/components/checkbox.cjs +1 -1
  220. package/dist/components/checkbox.es.js +1 -1
  221. package/dist/components/collapsible-motion.cjs +1 -1
  222. package/dist/components/collapsible-motion.es.js +1 -1
  223. package/dist/components/combobox.cjs +1 -1
  224. package/dist/components/combobox.es.js +1 -1
  225. package/dist/components/components.cjs +1 -1
  226. package/dist/components/components.es.js +1 -1
  227. package/dist/components/data-table/components/data-table.body.d.ts +1 -1
  228. package/dist/components/data-table/components/data-table.header.d.ts +1 -1
  229. package/dist/components/data-table/components/data-table.table.d.ts +1 -1
  230. package/dist/components/data-table/data-table.d.ts +3 -3
  231. package/dist/components/data-table/data-table.i18n.d.ts +5 -0
  232. package/dist/components/data-table/data-table.messages.d.ts +1 -1
  233. package/dist/components/data-table/intl/de.d.ts +1 -0
  234. package/dist/components/data-table/intl/en.d.ts +1 -0
  235. package/dist/components/data-table/intl/es.d.ts +1 -0
  236. package/dist/components/data-table/intl/fr-FR.d.ts +1 -0
  237. package/dist/components/data-table/intl/pt-BR.d.ts +1 -0
  238. package/dist/components/data-table.cjs +1 -1
  239. package/dist/components/data-table.es.js +1 -1
  240. package/dist/components/date-input.cjs +1 -1
  241. package/dist/components/date-input.es.js +1 -1
  242. package/dist/components/date-picker.cjs +1 -1
  243. package/dist/components/date-picker.es.js +1 -1
  244. package/dist/components/date-range-picker-field.cjs +1 -1
  245. package/dist/components/date-range-picker-field.es.js +1 -1
  246. package/dist/components/date-range-picker.cjs +1 -1
  247. package/dist/components/date-range-picker.es.js +1 -1
  248. package/dist/components/dialog.cjs +1 -1
  249. package/dist/components/dialog.es.js +1 -1
  250. package/dist/components/draggable-list.cjs +1 -1
  251. package/dist/components/draggable-list.es.js +1 -1
  252. package/dist/components/drawer.cjs +1 -1
  253. package/dist/components/drawer.es.js +1 -1
  254. package/dist/components/fields.cjs +1 -1
  255. package/dist/components/fields.es.js +7 -7
  256. package/dist/components/form-field.cjs +1 -1
  257. package/dist/components/form-field.es.js +1 -1
  258. package/dist/components/icon-button.cjs +1 -1
  259. package/dist/components/icon-button.es.js +1 -1
  260. package/dist/components/icon-toggle-button.cjs +1 -1
  261. package/dist/components/icon-toggle-button.es.js +1 -1
  262. package/dist/components/localized-field.cjs +1 -1
  263. package/dist/components/localized-field.es.js +1 -1
  264. package/dist/components/money-input-field.cjs +1 -1
  265. package/dist/components/money-input-field.es.js +1 -1
  266. package/dist/components/money-input.cjs +1 -1
  267. package/dist/components/money-input.es.js +1 -1
  268. package/dist/components/multiline-text-input-field.cjs +1 -1
  269. package/dist/components/multiline-text-input-field.es.js +1 -1
  270. package/dist/components/multiline-text-input.cjs +1 -1
  271. package/dist/components/multiline-text-input.es.js +1 -1
  272. package/dist/components/nimbus-provider.cjs +1 -1
  273. package/dist/components/nimbus-provider.es.js +1 -1
  274. package/dist/components/number-input-field.cjs +1 -1
  275. package/dist/components/number-input-field.es.js +1 -1
  276. package/dist/components/number-input.cjs +1 -1
  277. package/dist/components/number-input.es.js +1 -1
  278. package/dist/components/pagination.cjs +1 -1
  279. package/dist/components/pagination.es.js +1 -1
  280. package/dist/components/password-input-field.cjs +1 -1
  281. package/dist/components/password-input-field.es.js +1 -1
  282. package/dist/components/password-input.cjs +1 -1
  283. package/dist/components/password-input.es.js +1 -1
  284. package/dist/components/patterns.cjs +1 -1
  285. package/dist/components/patterns.es.js +7 -7
  286. package/dist/components/progress-bar.cjs +1 -1
  287. package/dist/components/progress-bar.es.js +1 -1
  288. package/dist/components/radio-input.cjs +1 -1
  289. package/dist/components/radio-input.es.js +1 -1
  290. package/dist/components/range-calendar.cjs +1 -1
  291. package/dist/components/range-calendar.es.js +1 -1
  292. package/dist/components/rich-text-input.cjs +1 -1
  293. package/dist/components/rich-text-input.es.js +1 -1
  294. package/dist/components/scoped-search-input.cjs +1 -1
  295. package/dist/components/scoped-search-input.es.js +1 -1
  296. package/dist/components/search-input-field.cjs +1 -1
  297. package/dist/components/search-input-field.es.js +1 -1
  298. package/dist/components/search-input.cjs +1 -1
  299. package/dist/components/search-input.es.js +1 -1
  300. package/dist/components/select.cjs +1 -1
  301. package/dist/components/select.es.js +1 -1
  302. package/dist/components/separator.cjs +1 -1
  303. package/dist/components/separator.es.js +1 -1
  304. package/dist/components/split-button.cjs +1 -1
  305. package/dist/components/split-button.es.js +1 -1
  306. package/dist/components/switch.cjs +1 -1
  307. package/dist/components/switch.es.js +1 -1
  308. package/dist/components/tabs/components/tabs.root.d.ts +1 -1
  309. package/dist/components/tabs/tabs.d.ts +1 -1
  310. package/dist/components/tabs/tabs.types.d.ts +5 -0
  311. package/dist/components/tabs.cjs +1 -1
  312. package/dist/components/tabs.es.js +1 -1
  313. package/dist/components/tag-group.cjs +1 -1
  314. package/dist/components/tag-group.es.js +1 -1
  315. package/dist/components/text-input-field.cjs +1 -1
  316. package/dist/components/text-input-field.es.js +1 -1
  317. package/dist/components/text-input.cjs +1 -1
  318. package/dist/components/text-input.es.js +1 -1
  319. package/dist/components/time-input.cjs +1 -1
  320. package/dist/components/time-input.es.js +1 -1
  321. package/dist/components/toggle-button.cjs +1 -1
  322. package/dist/components/toggle-button.es.js +1 -1
  323. package/dist/components/toolbar.cjs +1 -1
  324. package/dist/components/toolbar.es.js +1 -1
  325. package/dist/index.cjs +1 -1
  326. package/dist/index.es.js +53 -53
  327. package/dist/setup-jsdom-polyfills.cjs +1 -1
  328. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  329. package/dist/setup-jsdom-polyfills.es.js +17 -0
  330. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  331. package/package.json +5 -5
  332. package/dist/chunks/combobox-B7ck7gxL.cjs.js +0 -2
  333. package/dist/chunks/combobox-B7ck7gxL.cjs.js.map +0 -1
  334. package/dist/chunks/combobox-vjauyzlS.es.js.map +0 -1
  335. package/dist/chunks/data-table-CBZLbe9h.cjs.js +0 -2
  336. package/dist/chunks/drawer-BPcEUbUt.es.js.map +0 -1
  337. package/dist/chunks/drawer-DbSJSCl_.cjs.js +0 -2
  338. package/dist/chunks/drawer-DbSJSCl_.cjs.js.map +0 -1
  339. package/dist/chunks/index-C2qW4ynb.es.js.map +0 -1
  340. package/dist/chunks/index-CVXB9mwf.cjs.js.map +0 -1
  341. package/dist/chunks/scoped-search-input-CSpFefUJ.es.js +0 -147
  342. package/dist/chunks/scoped-search-input-CSpFefUJ.es.js.map +0 -1
  343. package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js +0 -2
  344. package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js.map +0 -1
  345. package/dist/chunks/tabs-iV08OTqG.cjs.js +0 -2
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";const oe=require("./chunks/date-range-picker-field-DcIo1YzI.cjs.js"),ne=require("./chunks/money-input-field-BGZ_9HKh.cjs.js"),ae=require("./chunks/multiline-text-input-field-BX-w2v1Y.cjs.js"),ie=require("./chunks/number-input-field-BDNpAP6t.cjs.js"),ue=require("./chunks/search-input-field-v60x1oiw.cjs.js"),ce=require("./chunks/password-input-field-B5lWzWAQ.cjs.js"),le=require("./chunks/text-input-field-Cmht3hDK.cjs.js"),se=require("./chunks/index-CVXB9mwf.cjs.js"),W=require("./chunks/rich-text-input-Dml5F7pU.cjs.js"),g=require("react"),de=require("./chunks/avatar-BVQ91Ccd.cjs.js"),pe=require("./chunks/box-CWni3A32.cjs.js"),ge=require("./chunks/button-BR4fvcmi.cjs.js"),me=require("./chunks/code-q31e3vT2.cjs.js"),fe=require("./chunks/combobox-B7ck7gxL.cjs.js"),be=require("./chunks/dialog-gyrFT8w0.cjs.js"),X=require("./chunks/field-errors-aqrV93vp.cjs.js"),Bt=require("@chakra-ui/react/flex"),ye=require("./chunks/group-Cjq5lNQD.cjs.js"),Te=require("./chunks/heading-DWweWKGQ.cjs.js"),Ce=require("./chunks/nimbus-i18n-provider-BbsapOze.cjs.js"),he=require("./chunks/icon-button-CeB8_Yyr.cjs.js"),ve=require("./chunks/icon-toggle-button-C4Tnlt4t.cjs.js"),Ie=require("./chunks/image-CGOYoc2s.cjs.js"),De=require("./chunks/kbd-tKeWcdmy.cjs.js"),we=require("./chunks/link-CI7W-6L3.cjs.js"),L=require("./chunks/list-DJC9BmoC.cjs.js"),E=require("./chunks/draggable-list-fvTG-VYt.cjs.js"),qe=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),Nt=require("@chakra-ui/react/table"),Se=require("./chunks/text-BtRhIklG.cjs.js"),Fe=require("./chunks/tooltip-Bv-QlJ1O.cjs.js"),_e=require("./chunks/make-element-focusable-Cdmdc8sd.cjs.js"),Q=require("./chunks/nimbus-provider-Dnu5ohMR.cjs.js"),ke=require("./chunks/checkbox-BJANm94D.cjs.js"),x=require("./chunks/collapsible-motion-Biq0QGUr.cjs.js"),Re=require("./chunks/stack-CIN13EDn.cjs.js"),Le=require("./chunks/visually-hidden-BjtXUoFK.cjs.js"),Ee=require("./chunks/text-input-BlxK2Naj.cjs.js"),xe=require("./chunks/number-input-CR1hdy-B.cjs.js"),Me=require("./chunks/grid-Chuw1xje.cjs.js"),Ae=require("./chunks/select-Dq_6o0BB.cjs.js"),Pe=require("./chunks/separator-u_4por07.cjs.js"),Be=require("./chunks/spacer-BvQD2vU1.cjs.js"),Ne=require("./chunks/accordion-CVpg-FdJ.cjs.js"),k=require("./chunks/accordion.content-Cqet9SQ-.cjs.js"),F=require("./chunks/alert-pPmN9CXZ.cjs.js"),Ke=require("./chunks/badge-5F6i4KSF.cjs.js"),M=require("./chunks/card-Bk3xHlo2.cjs.js"),q=require("./chunks/form-field-FdRNl2bZ.cjs.js"),He=require("./chunks/icon-RyFjTAmU.cjs.js"),Oe=require("./chunks/inline-svg-BzzKpbrB.cjs.js"),Ge=require("./chunks/loading-spinner-DYEYnI5N.cjs.js"),Ue=require("./chunks/password-input-BVbQ42NG.cjs.js"),je=require("./chunks/search-input-BNXlpYtP.cjs.js"),ze=require("./chunks/scoped-search-input-DKCK7idN.cjs.js"),Ve=require("./chunks/split-button-B4gVhpP9.cjs.js"),$e=require("./chunks/time-input-9Q5vV4UD.cjs.js"),We=require("./chunks/multiline-text-input-CULLuZBp.cjs.js"),Xe=require("./chunks/money-input-C9eVmgeL.cjs.js"),Qe=require("./chunks/radio-input-BecbxXcF.cjs.js"),Ye=require("./chunks/switch-CsiG41ZR.cjs.js"),Ze=require("./chunks/tag-group-BI8_32rM.cjs.js"),Je=require("./chunks/toggle-button-L7i1XaWg.cjs.js"),H=require("./chunks/toggle-button-group-Lfn3zYmC.cjs.js"),et=require("./chunks/date-input-DkYcGwBy.cjs.js"),tt=require("./chunks/calendar-B01Vti5k.cjs.js"),rt=require("./chunks/date-picker-DQ5IZcRe.cjs.js"),ot=require("./chunks/progress-bar-dRKyuT1-.cjs.js"),nt=require("./chunks/range-calendar-Dq5Gtsb6.cjs.js"),D=require("./chunks/menu-Dno8yFDE.cjs.js"),at=require("./chunks/date-range-picker-CO2HH0mY.cjs.js"),it=require("./chunks/toolbar-D4fLFiSb.cjs.js"),b=require("./chunks/data-table-CBZLbe9h.cjs.js"),ut=require("./chunks/pagination-BIxlGft7.cjs.js"),I=require("./chunks/drawer-DbSJSCl_.cjs.js"),_=require("./chunks/tabs-iV08OTqG.cjs.js"),ct=require("./chunks/localized-field-D78l88ux.cjs.js");require("react/jsx-runtime");const lt=require("./chunks/normalize-messages-CaDzkuUm.cjs.js"),Y=["shift","alt","meta","mod","ctrl","control"],st={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function S(e){return(st[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Z(e){return Y.includes(e)}function P(e,t=","){return e.toLowerCase().split(t)}function B(e,t="+",r=">",i=!1,u){let n=[],a=!1;e=e.trim(),e.includes(r)?(a=!0,n=e.toLocaleLowerCase().split(r).map(f=>S(f))):n=e.toLocaleLowerCase().split(t).map(f=>S(f));const d={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod"),useKey:i},l=n.filter(f=>!Y.includes(f));return{...d,keys:l,description:u,isSequence:a,hotkey:e}}const w=new Set;function O(e){return Array.isArray(e)}function dt(e,t=","){return(O(e)?e:e.split(t)).every(r=>w.has(r.trim().toLowerCase()))}function pt(e){const t=Array.isArray(e)?e:[e];w.has("meta")&&w.forEach(r=>!Z(r)&&w.delete(r.toLowerCase())),t.forEach(r=>w.add(r.toLowerCase()))}function gt(e){const t=Array.isArray(e)?e:[e];e==="meta"?w.clear():t.forEach(r=>w.delete(r.toLowerCase()))}function mt(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ft(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const bt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function yt(e){return J(e,bt)}function J(e,t=!1){const{target:r,composed:i}=e;let u,n;return Tt(r)&&i?(u=e.composedPath()[0]&&e.composedPath()[0].tagName,n=e.composedPath()[0]&&e.composedPath()[0].role):(u=r&&r.tagName,n=r&&r.role),O(t)?!!(u&&t&&t.some(a=>a.toLowerCase()===u.toLowerCase()||a===n)):!!(u&&t&&t)}function Tt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function Ct(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const ht=(e,t,r=!1)=>{const{alt:i,meta:u,mod:n,shift:a,ctrl:d,keys:l,useKey:f}=t,{code:y,key:o,ctrlKey:s,metaKey:T,shiftKey:C,altKey:p}=e,m=S(y);if(f&&l?.length===1&&l.includes(o))return!0;if(!l?.includes(m)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(m))return!1;if(!r){if(i!==p&&m!=="alt"||a!==C&&m!=="shift")return!1;if(n){if(!T&&!s)return!1}else if(u!==T&&m!=="meta"&&m!=="os"||d!==s&&m!=="ctrl"&&m!=="control")return!1}return l&&l.length===1&&l.includes(m)?!0:l?dt(l):!l},vt=g.createContext(void 0),It=()=>g.useContext(vt);function ee(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,i)=>r&&ee(e[i],t[i]),!0):e===t}const Dt=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),wt=()=>g.useContext(Dt);function qt(e){const t=g.useRef(void 0);return ee(t.current,e)||(t.current=e),t.current}const z=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},St=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ft(e,t,r,i){const u=g.useRef(null),n=g.useRef(!1),a=Array.isArray(r)?Array.isArray(i)?void 0:i:r,d=O(e)?e.join(a?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(i)?i:void 0,f=g.useCallback(t,l??[]),y=g.useRef(f);l?y.current=f:y.current=t;const o=qt(a),{activeScopes:s}=wt(),T=It();return St(()=>{if(o?.enabled===!1||!Ct(s,o?.scopes))return;let C=[],p;const m=(c,j=!1)=>{if(!(yt(c)&&!J(c,o?.enableOnFormTags))){if(u.current!==null){const v=u.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==u.current&&!u.current.contains(v.activeElement)){z(c);return}}c.target?.isContentEditable&&!o?.enableOnContentEditable||P(d,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const h=B(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description);if(h.isSequence){p=setTimeout(()=>{C=[]},o?.sequenceTimeoutMs??1e3);const A=h.useKey?c.key:S(c.code);if(Z(A.toLowerCase()))return;C.push(A);const re=h.keys?.[C.length-1];if(A!==re){C=[],p&&clearTimeout(p);return}C.length===h.keys?.length&&(y.current(c,h),p&&clearTimeout(p),C=[])}else if(ht(c,h,o?.ignoreModifiers)||h.keys?.includes("*")){if(o?.ignoreEventWhen?.(c)||j&&n.current)return;if(mt(c,h,o?.preventDefault),!ft(c,h,o?.enabled)){z(c);return}y.current(c,h),j||(n.current=!0)}})}},G=c=>{c.code!==void 0&&(pt(S(c.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&m(c))},U=c=>{c.code!==void 0&&(gt(S(c.code)),n.current=!1,o?.keyup&&m(c,!0))},R=u.current||a?.document||document;return R.addEventListener("keyup",U,a?.eventListenerOptions),R.addEventListener("keydown",G,a?.eventListenerOptions),T&&P(d,o?.delimiter).forEach(c=>T.addHotkey(B(c,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),()=>{R.removeEventListener("keyup",U,a?.eventListenerOptions),R.removeEventListener("keydown",G,a?.eventListenerOptions),T&&P(d,o?.delimiter).forEach(c=>T.removeHotkey(B(c,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),C=[],p&&clearTimeout(p)}},[d,o,s]),u}function _t(){var e=g.useRef(!1),t=g.useCallback(function(){return e.current},[]);return g.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var kt=function(e){e===void 0&&(e={});var t=g.useState(e),r=t[0],i=t[1],u=g.useCallback(function(n){i(function(a){return Object.assign({},a,n instanceof Function?n(a):n)})},[]);return[r,u]},N,V;function Rt(){return V||(V=1,N=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(u){e.addRange(u)}),t&&t.focus()}}),N}var K,$;function Lt(){if($)return K;$=1;var e=Rt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function u(n,a){var d,l,f,y,o,s,T=!1;a||(a={}),d=a.debug||!1;try{f=e(),y=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=n,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(p){if(p.stopPropagation(),a.format)if(p.preventDefault(),typeof p.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,n)}else p.clipboardData.clearData(),p.clipboardData.setData(a.format,n);a.onCopy&&(p.preventDefault(),a.onCopy(p.clipboardData))}),document.body.appendChild(s),y.selectNodeContents(s),o.addRange(y);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");T=!0}catch(p){d&&console.error("unable to copy using execCommand: ",p),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),T=!0}catch(m){d&&console.error("unable to copy using clipboardData: ",m),d&&console.error("falling back to prompt"),l=i("message"in a?a.message:r),window.prompt(l,n)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(y):o.removeAllRanges()),s&&document.body.removeChild(s),f()}return T}return K=u,K}var Et=Lt();const xt=W.getDefaultExportFromCjs(Et);var Mt=function(){var e=_t(),t=kt({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],i=t[1],u=g.useCallback(function(n){if(e()){var a,d;try{if(typeof n!="string"&&typeof n!="number"){var l=new Error("Cannot copy typeof "+typeof n+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}else if(n===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}d=n.toString(),a=xt(d),i({value:d,error:void 0,noUserInteraction:a})}catch(f){i({value:d,error:f,noUserInteraction:a})}}},[]);return[r,u]};function At(){const[e,t]=g.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return g.useEffect(()=>{const i=document.documentElement,u=new MutationObserver(()=>{const n=r();t(n)});return u.observe(i,{attributes:!0,attributeFilter:["style"]}),()=>u.disconnect()},[]),e}function te(){const{resolvedTheme:e,setTheme:t}=Q.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Pt(e,t){const{colorMode:r}=te();return r==="light"?e:t}exports.DateRangePickerField=oe.DateRangePickerField;exports.MoneyInputField=ne.MoneyInputField;exports.MultilineTextInputField=ae.MultilineTextInputField;exports.NumberInputField=ie.NumberInputField;exports.SearchInputField=ue.SearchInputField;exports.PasswordInputField=ce.PasswordInputField;exports.TextInputField=le.TextInputField;exports.system=se.system;exports.RichTextInput=W.RichTextInput;exports.Avatar=de.Avatar;exports.Box=pe.Box;exports.Button=ge.Button;exports.Code=me.Code;exports.ComboBox=fe.ComboBox;exports.Dialog=be.Dialog;exports.FieldErrorTypes=X.FieldErrorTypes;exports.FieldErrors=X.FieldErrors;exports.Group=ye.Group;exports.Heading=Te.Heading;exports.NimbusI18nProvider=Ce.NimbusI18nProvider;exports.IconButton=he.IconButton;exports.IconToggleButton=ve.IconToggleButton;exports.Image=Ie.Image;exports.Kbd=De.Kbd;exports.Link=we.Link;exports.List=L.List;exports._ListIndicator=L.ListIndicator;exports._ListItem=L.ListItem;exports._ListRoot=L.ListRoot;exports.DraggableList=E.DraggableList;exports._DraggableListField=E.DraggableListField;exports._DraggableListItem=E.DraggableListItem;exports._DraggableListRoot=E.DraggableListRoot;exports.SimpleGrid=qe.SimpleGrid;exports.Text=Se.Text;exports.Tooltip=Fe.Tooltip;exports.MakeElementFocusable=_e.MakeElementFocusable;exports.NimbusProvider=Q.NimbusProvider;exports.Checkbox=ke.Checkbox;exports.CollapsibleMotion=x.CollapsibleMotion;exports._CollapsibleMotionContent=x.CollapsibleMotionContent;exports._CollapsibleMotionRoot=x.CollapsibleMotionRoot;exports._CollapsibleMotionTrigger=x.CollapsibleMotionTrigger;exports.Stack=Re.Stack;exports.VisuallyHidden=Le.VisuallyHidden;exports.TextInput=Ee.TextInput;exports.NumberInput=xe.NumberInput;exports.Grid=Me.Grid;exports.Select=Ae.Select;exports.Separator=Pe.Separator;exports.Spacer=Be.Spacer;exports.Accordion=Ne.Accordion;exports._AccordionContent=k.AccordionContent;exports._AccordionHeader=k.AccordionHeader;exports._AccordionHeaderRightContent=k.AccordionHeaderRightContent;exports._AccordionItem=k.AccordionItem;exports._AccordionRoot=k.AccordionRoot;exports.Alert=F.Alert;exports._AlertActions=F.AlertActions;exports._AlertDescription=F.AlertDescription;exports._AlertDismissButton=F.AlertDismissButton;exports._AlertRoot=F.AlertRoot;exports._AlertTitle=F.AlertTitle;exports.Badge=Ke.Badge;exports.Card=M.Card;exports._CardContent=M.CardContent;exports._CardHeader=M.CardHeader;exports._CardRoot=M.CardRoot;exports.FormField=q.FormField;exports._FormFieldDescription=q.FormFieldDescription;exports._FormFieldError=q.FormFieldError;exports._FormFieldInfoBox=q.FormFieldInfoBox;exports._FormFieldInput=q.FormFieldInput;exports._FormFieldLabel=q.FormFieldLabel;exports._FormFieldRoot=q.FormFieldRoot;exports.Icon=He.Icon;exports.InlineSvg=Oe.InlineSvg;exports.LoadingSpinner=Ge.LoadingSpinner;exports.PasswordInput=Ue.PasswordInput;exports.SearchInput=je.SearchInput;exports.ScopedSearchInput=ze.ScopedSearchInput;exports.SplitButton=Ve.SplitButton;exports.TimeInput=$e.TimeInput;exports.MultilineTextInput=We.MultilineTextInput;exports.MoneyInput=Xe.MoneyInput;exports.RadioInput=Qe.RadioInput;exports.Switch=Ye.Switch;exports.TagGroup=Ze.TagGroup;exports.ToggleButton=Je.ToggleButton;exports.ToggleButtonGroup=H.ToggleButtonGroup;exports._ToggleButtonGroupButton=H.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=H.ToggleButtonGroupRoot;exports.DateInput=et.DateInput;exports.Calendar=tt.Calendar;exports.DatePicker=rt.DatePicker;exports.ProgressBar=ot.ProgressBar;exports.RangeCalendar=nt.RangeCalendar;exports.Menu=D.Menu;exports._MenuContent=D.MenuContent;exports._MenuItem=D.MenuItem;exports._MenuRoot=D.MenuRoot;exports._MenuSection=D.MenuSection;exports._MenuSubmenu=D.MenuSubmenu;exports._MenuSubmenuTrigger=D.MenuSubmenuTrigger;exports._MenuTrigger=D.MenuTrigger;exports.DateRangePicker=at.DateRangePicker;exports.Toolbar=it.Toolbar;exports.DataTable=b.DataTable;exports.UPDATE_ACTIONS=b.UPDATE_ACTIONS;exports._DataTableBody=b.DataTableBody;exports._DataTableCell=b.DataTableCell;exports._DataTableColumn=b.DataTableColumn;exports._DataTableExpandButton=b.DataTableExpandButton;exports._DataTableFooter=b.DataTableFooter;exports._DataTableHeader=b.DataTableHeader;exports._DataTableManager=b.DataTableManager;exports._DataTableNestedIcon=b.DataTableNestedIcon;exports._DataTableRoot=b.DataTableRoot;exports._DataTableRow=b.DataTableRow;exports._DataTableSelectionCell=b.DataTableSelectionCell;exports._DataTableTable=b.DataTableTable;exports.Pagination=ut.Pagination;exports.Drawer=I.Drawer;exports._DrawerBody=I.DrawerBody;exports._DrawerCloseTrigger=I.DrawerCloseTrigger;exports._DrawerContent=I.DrawerContent;exports._DrawerFooter=I.DrawerFooter;exports._DrawerHeader=I.DrawerHeader;exports._DrawerRoot=I.DrawerRoot;exports._DrawerTitle=I.DrawerTitle;exports._DrawerTrigger=I.DrawerTrigger;exports.Tabs=_.Tabs;exports._TabsList=_.TabsList;exports._TabsPanel=_.TabsPanel;exports._TabsPanels=_.TabsPanels;exports._TabsRoot=_.TabsRoot;exports._TabsTab=_.TabsTab;exports.LocalizedField=ct.LocalizedField;exports.useLocalizedStringFormatter=lt.useLocalizedStringFormatter;exports.useColorMode=te;exports.useColorModeValue=Pt;exports.useColorScheme=At;exports.useCopyToClipboard=Mt;exports.useHotkeys=Ft;
1
+ "use strict";const oe=require("./chunks/date-range-picker-field-J2b1-A1l.cjs.js"),ne=require("./chunks/money-input-field-DjpKPCGo.cjs.js"),ae=require("./chunks/multiline-text-input-field-QLmo_I6Q.cjs.js"),ie=require("./chunks/number-input-field-DHBy_GKG.cjs.js"),ue=require("./chunks/search-input-field-Dan6FtWD.cjs.js"),ce=require("./chunks/password-input-field-CgQEW15R.cjs.js"),le=require("./chunks/text-input-field-C_Ykb6V3.cjs.js"),se=require("./chunks/index-CBRmb4jF.cjs.js"),W=require("./chunks/rich-text-input-Cx9u2DDm.cjs.js"),g=require("react"),de=require("./chunks/avatar-BVQ91Ccd.cjs.js"),pe=require("./chunks/box-CWni3A32.cjs.js"),ge=require("./chunks/button-Bz1hc0LL.cjs.js"),me=require("./chunks/code-q31e3vT2.cjs.js"),fe=require("./chunks/combobox-D_L2EmTy.cjs.js"),be=require("./chunks/dialog-ByHd6RlA.cjs.js"),X=require("./chunks/field-errors-aqrV93vp.cjs.js"),Bt=require("@chakra-ui/react/flex"),ye=require("./chunks/group-Cjq5lNQD.cjs.js"),Te=require("./chunks/heading-DWweWKGQ.cjs.js"),Ce=require("./chunks/nimbus-i18n-provider-BbsapOze.cjs.js"),he=require("./chunks/icon-button-5pYAEokc.cjs.js"),ve=require("./chunks/icon-toggle-button-BsQzSrKe.cjs.js"),Ie=require("./chunks/image-CGOYoc2s.cjs.js"),De=require("./chunks/kbd-tKeWcdmy.cjs.js"),we=require("./chunks/link-CI7W-6L3.cjs.js"),L=require("./chunks/list-DJC9BmoC.cjs.js"),E=require("./chunks/draggable-list-CGpLzk-D.cjs.js"),qe=require("./chunks/simple-grid-Cd2MJxSX.cjs.js"),Nt=require("@chakra-ui/react/table"),Se=require("./chunks/text-BtRhIklG.cjs.js"),Fe=require("./chunks/tooltip-Bv-QlJ1O.cjs.js"),_e=require("./chunks/make-element-focusable-Cdmdc8sd.cjs.js"),Q=require("./chunks/nimbus-provider-CbD64J_V.cjs.js"),ke=require("./chunks/checkbox-BYBGaSV9.cjs.js"),x=require("./chunks/collapsible-motion-Cj6ESwsR.cjs.js"),Re=require("./chunks/stack-CIN13EDn.cjs.js"),Le=require("./chunks/visually-hidden-BjtXUoFK.cjs.js"),Ee=require("./chunks/text-input-n7jUFat6.cjs.js"),xe=require("./chunks/number-input-B29DJ2_U.cjs.js"),Me=require("./chunks/grid-Chuw1xje.cjs.js"),Ae=require("./chunks/select-DzHoPh1S.cjs.js"),Pe=require("./chunks/separator-D0uGdP2M.cjs.js"),Be=require("./chunks/spacer-BvQD2vU1.cjs.js"),Ne=require("./chunks/accordion-DvftRW7J.cjs.js"),k=require("./chunks/accordion.content-DBBMLq5x.cjs.js"),F=require("./chunks/alert-D5SDMEKA.cjs.js"),Ke=require("./chunks/badge-5F6i4KSF.cjs.js"),M=require("./chunks/card-CgBcH7Zm.cjs.js"),q=require("./chunks/form-field-52--hhlj.cjs.js"),He=require("./chunks/icon-RyFjTAmU.cjs.js"),Oe=require("./chunks/inline-svg-BzzKpbrB.cjs.js"),Ge=require("./chunks/loading-spinner-DYEYnI5N.cjs.js"),Ue=require("./chunks/password-input-DQM-caak.cjs.js"),je=require("./chunks/search-input-DrTdsAJB.cjs.js"),ze=require("./chunks/scoped-search-input-DYOcOZ0t.cjs.js"),Ve=require("./chunks/split-button-Cu7MwPgo.cjs.js"),$e=require("./chunks/time-input-G64QnJLm.cjs.js"),We=require("./chunks/multiline-text-input-DN9yF7Di.cjs.js"),Xe=require("./chunks/money-input-CBKb1D73.cjs.js"),Qe=require("./chunks/radio-input-B91hQHjX.cjs.js"),Ye=require("./chunks/switch-dDLFRsag.cjs.js"),Ze=require("./chunks/tag-group-rbUwxsaP.cjs.js"),Je=require("./chunks/toggle-button-aX7Gr-Ib.cjs.js"),H=require("./chunks/toggle-button-group-Lfn3zYmC.cjs.js"),et=require("./chunks/date-input-BL7owE4Q.cjs.js"),tt=require("./chunks/calendar-D0OrT88Y.cjs.js"),rt=require("./chunks/date-picker-Bm6DjFOx.cjs.js"),ot=require("./chunks/progress-bar-CMRmoNou.cjs.js"),nt=require("./chunks/range-calendar-tLrCZyTQ.cjs.js"),D=require("./chunks/menu-Cu7gIVGQ.cjs.js"),at=require("./chunks/date-range-picker-DaSUwkke.cjs.js"),it=require("./chunks/toolbar-Bw9mLuBU.cjs.js"),b=require("./chunks/data-table-Cg75JPdu.cjs.js"),ut=require("./chunks/pagination-D8Tn2HGh.cjs.js"),I=require("./chunks/drawer-CmxHDgtW.cjs.js"),_=require("./chunks/tabs-Dxwwd4jH.cjs.js"),ct=require("./chunks/localized-field-BJTWKclB.cjs.js");require("react/jsx-runtime");const lt=require("./chunks/normalize-messages-CaDzkuUm.cjs.js"),Y=["shift","alt","meta","mod","ctrl","control"],st={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function S(e){return(st[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Z(e){return Y.includes(e)}function P(e,t=","){return e.toLowerCase().split(t)}function B(e,t="+",r=">",i=!1,u){let n=[],a=!1;e=e.trim(),e.includes(r)?(a=!0,n=e.toLocaleLowerCase().split(r).map(f=>S(f))):n=e.toLocaleLowerCase().split(t).map(f=>S(f));const d={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod"),useKey:i},l=n.filter(f=>!Y.includes(f));return{...d,keys:l,description:u,isSequence:a,hotkey:e}}const w=new Set;function O(e){return Array.isArray(e)}function dt(e,t=","){return(O(e)?e:e.split(t)).every(r=>w.has(r.trim().toLowerCase()))}function pt(e){const t=Array.isArray(e)?e:[e];w.has("meta")&&w.forEach(r=>!Z(r)&&w.delete(r.toLowerCase())),t.forEach(r=>w.add(r.toLowerCase()))}function gt(e){const t=Array.isArray(e)?e:[e];e==="meta"?w.clear():t.forEach(r=>w.delete(r.toLowerCase()))}function mt(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ft(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const bt=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function yt(e){return J(e,bt)}function J(e,t=!1){const{target:r,composed:i}=e;let u,n;return Tt(r)&&i?(u=e.composedPath()[0]&&e.composedPath()[0].tagName,n=e.composedPath()[0]&&e.composedPath()[0].role):(u=r&&r.tagName,n=r&&r.role),O(t)?!!(u&&t&&t.some(a=>a.toLowerCase()===u.toLowerCase()||a===n)):!!(u&&t&&t)}function Tt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function Ct(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const ht=(e,t,r=!1)=>{const{alt:i,meta:u,mod:n,shift:a,ctrl:d,keys:l,useKey:f}=t,{code:y,key:o,ctrlKey:s,metaKey:T,shiftKey:C,altKey:p}=e,m=S(y);if(f&&l?.length===1&&l.includes(o))return!0;if(!l?.includes(m)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(m))return!1;if(!r){if(i!==p&&m!=="alt"||a!==C&&m!=="shift")return!1;if(n){if(!T&&!s)return!1}else if(u!==T&&m!=="meta"&&m!=="os"||d!==s&&m!=="ctrl"&&m!=="control")return!1}return l&&l.length===1&&l.includes(m)?!0:l?dt(l):!l},vt=g.createContext(void 0),It=()=>g.useContext(vt);function ee(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,i)=>r&&ee(e[i],t[i]),!0):e===t}const Dt=g.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),wt=()=>g.useContext(Dt);function qt(e){const t=g.useRef(void 0);return ee(t.current,e)||(t.current=e),t.current}const z=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},St=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ft(e,t,r,i){const u=g.useRef(null),n=g.useRef(!1),a=Array.isArray(r)?Array.isArray(i)?void 0:i:r,d=O(e)?e.join(a?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(i)?i:void 0,f=g.useCallback(t,l??[]),y=g.useRef(f);l?y.current=f:y.current=t;const o=qt(a),{activeScopes:s}=wt(),T=It();return St(()=>{if(o?.enabled===!1||!Ct(s,o?.scopes))return;let C=[],p;const m=(c,j=!1)=>{if(!(yt(c)&&!J(c,o?.enableOnFormTags))){if(u.current!==null){const v=u.current.getRootNode();if((v instanceof Document||v instanceof ShadowRoot)&&v.activeElement!==u.current&&!u.current.contains(v.activeElement)){z(c);return}}c.target?.isContentEditable&&!o?.enableOnContentEditable||P(d,o?.delimiter).forEach(v=>{if(v.includes(o?.splitKey??"+")&&v.includes(o?.sequenceSplitKey??">")){console.warn(`Hotkey ${v} contains both ${o?.splitKey??"+"} and ${o?.sequenceSplitKey??">"} which is not supported.`);return}const h=B(v,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description);if(h.isSequence){p=setTimeout(()=>{C=[]},o?.sequenceTimeoutMs??1e3);const A=h.useKey?c.key:S(c.code);if(Z(A.toLowerCase()))return;C.push(A);const re=h.keys?.[C.length-1];if(A!==re){C=[],p&&clearTimeout(p);return}C.length===h.keys?.length&&(y.current(c,h),p&&clearTimeout(p),C=[])}else if(ht(c,h,o?.ignoreModifiers)||h.keys?.includes("*")){if(o?.ignoreEventWhen?.(c)||j&&n.current)return;if(mt(c,h,o?.preventDefault),!ft(c,h,o?.enabled)){z(c);return}y.current(c,h),j||(n.current=!0)}})}},G=c=>{c.code!==void 0&&(pt(S(c.code)),(o?.keydown===void 0&&o?.keyup!==!0||o?.keydown)&&m(c))},U=c=>{c.code!==void 0&&(gt(S(c.code)),n.current=!1,o?.keyup&&m(c,!0))},R=u.current||a?.document||document;return R.addEventListener("keyup",U,a?.eventListenerOptions),R.addEventListener("keydown",G,a?.eventListenerOptions),T&&P(d,o?.delimiter).forEach(c=>T.addHotkey(B(c,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),()=>{R.removeEventListener("keyup",U,a?.eventListenerOptions),R.removeEventListener("keydown",G,a?.eventListenerOptions),T&&P(d,o?.delimiter).forEach(c=>T.removeHotkey(B(c,o?.splitKey,o?.sequenceSplitKey,o?.useKey,o?.description))),C=[],p&&clearTimeout(p)}},[d,o,s]),u}function _t(){var e=g.useRef(!1),t=g.useCallback(function(){return e.current},[]);return g.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var kt=function(e){e===void 0&&(e={});var t=g.useState(e),r=t[0],i=t[1],u=g.useCallback(function(n){i(function(a){return Object.assign({},a,n instanceof Function?n(a):n)})},[]);return[r,u]},N,V;function Rt(){return V||(V=1,N=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(u){e.addRange(u)}),t&&t.focus()}}),N}var K,$;function Lt(){if($)return K;$=1;var e=Rt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function u(n,a){var d,l,f,y,o,s,T=!1;a||(a={}),d=a.debug||!1;try{f=e(),y=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.textContent=n,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(p){if(p.stopPropagation(),a.format)if(p.preventDefault(),typeof p.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,n)}else p.clipboardData.clearData(),p.clipboardData.setData(a.format,n);a.onCopy&&(p.preventDefault(),a.onCopy(p.clipboardData))}),document.body.appendChild(s),y.selectNodeContents(s),o.addRange(y);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");T=!0}catch(p){d&&console.error("unable to copy using execCommand: ",p),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),T=!0}catch(m){d&&console.error("unable to copy using clipboardData: ",m),d&&console.error("falling back to prompt"),l=i("message"in a?a.message:r),window.prompt(l,n)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(y):o.removeAllRanges()),s&&document.body.removeChild(s),f()}return T}return K=u,K}var Et=Lt();const xt=W.getDefaultExportFromCjs(Et);var Mt=function(){var e=_t(),t=kt({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],i=t[1],u=g.useCallback(function(n){if(e()){var a,d;try{if(typeof n!="string"&&typeof n!="number"){var l=new Error("Cannot copy typeof "+typeof n+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}else if(n===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),i({value:n,error:l,noUserInteraction:!0});return}d=n.toString(),a=xt(d),i({value:d,error:void 0,noUserInteraction:a})}catch(f){i({value:d,error:f,noUserInteraction:a})}}},[]);return[r,u]};function At(){const[e,t]=g.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return g.useEffect(()=>{const i=document.documentElement,u=new MutationObserver(()=>{const n=r();t(n)});return u.observe(i,{attributes:!0,attributeFilter:["style"]}),()=>u.disconnect()},[]),e}function te(){const{resolvedTheme:e,setTheme:t}=Q.z();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Pt(e,t){const{colorMode:r}=te();return r==="light"?e:t}exports.DateRangePickerField=oe.DateRangePickerField;exports.MoneyInputField=ne.MoneyInputField;exports.MultilineTextInputField=ae.MultilineTextInputField;exports.NumberInputField=ie.NumberInputField;exports.SearchInputField=ue.SearchInputField;exports.PasswordInputField=ce.PasswordInputField;exports.TextInputField=le.TextInputField;exports.system=se.system;exports.RichTextInput=W.RichTextInput;exports.Avatar=de.Avatar;exports.Box=pe.Box;exports.Button=ge.Button;exports.Code=me.Code;exports.ComboBox=fe.ComboBox;exports.Dialog=be.Dialog;exports.FieldErrorTypes=X.FieldErrorTypes;exports.FieldErrors=X.FieldErrors;exports.Group=ye.Group;exports.Heading=Te.Heading;exports.NimbusI18nProvider=Ce.NimbusI18nProvider;exports.IconButton=he.IconButton;exports.IconToggleButton=ve.IconToggleButton;exports.Image=Ie.Image;exports.Kbd=De.Kbd;exports.Link=we.Link;exports.List=L.List;exports._ListIndicator=L.ListIndicator;exports._ListItem=L.ListItem;exports._ListRoot=L.ListRoot;exports.DraggableList=E.DraggableList;exports._DraggableListField=E.DraggableListField;exports._DraggableListItem=E.DraggableListItem;exports._DraggableListRoot=E.DraggableListRoot;exports.SimpleGrid=qe.SimpleGrid;exports.Text=Se.Text;exports.Tooltip=Fe.Tooltip;exports.MakeElementFocusable=_e.MakeElementFocusable;exports.NimbusProvider=Q.NimbusProvider;exports.Checkbox=ke.Checkbox;exports.CollapsibleMotion=x.CollapsibleMotion;exports._CollapsibleMotionContent=x.CollapsibleMotionContent;exports._CollapsibleMotionRoot=x.CollapsibleMotionRoot;exports._CollapsibleMotionTrigger=x.CollapsibleMotionTrigger;exports.Stack=Re.Stack;exports.VisuallyHidden=Le.VisuallyHidden;exports.TextInput=Ee.TextInput;exports.NumberInput=xe.NumberInput;exports.Grid=Me.Grid;exports.Select=Ae.Select;exports.Separator=Pe.Separator;exports.Spacer=Be.Spacer;exports.Accordion=Ne.Accordion;exports._AccordionContent=k.AccordionContent;exports._AccordionHeader=k.AccordionHeader;exports._AccordionHeaderRightContent=k.AccordionHeaderRightContent;exports._AccordionItem=k.AccordionItem;exports._AccordionRoot=k.AccordionRoot;exports.Alert=F.Alert;exports._AlertActions=F.AlertActions;exports._AlertDescription=F.AlertDescription;exports._AlertDismissButton=F.AlertDismissButton;exports._AlertRoot=F.AlertRoot;exports._AlertTitle=F.AlertTitle;exports.Badge=Ke.Badge;exports.Card=M.Card;exports._CardContent=M.CardContent;exports._CardHeader=M.CardHeader;exports._CardRoot=M.CardRoot;exports.FormField=q.FormField;exports._FormFieldDescription=q.FormFieldDescription;exports._FormFieldError=q.FormFieldError;exports._FormFieldInfoBox=q.FormFieldInfoBox;exports._FormFieldInput=q.FormFieldInput;exports._FormFieldLabel=q.FormFieldLabel;exports._FormFieldRoot=q.FormFieldRoot;exports.Icon=He.Icon;exports.InlineSvg=Oe.InlineSvg;exports.LoadingSpinner=Ge.LoadingSpinner;exports.PasswordInput=Ue.PasswordInput;exports.SearchInput=je.SearchInput;exports.ScopedSearchInput=ze.ScopedSearchInput;exports.SplitButton=Ve.SplitButton;exports.TimeInput=$e.TimeInput;exports.MultilineTextInput=We.MultilineTextInput;exports.MoneyInput=Xe.MoneyInput;exports.RadioInput=Qe.RadioInput;exports.Switch=Ye.Switch;exports.TagGroup=Ze.TagGroup;exports.ToggleButton=Je.ToggleButton;exports.ToggleButtonGroup=H.ToggleButtonGroup;exports._ToggleButtonGroupButton=H.ToggleButtonGroupButton;exports._ToggleButtonGroupRoot=H.ToggleButtonGroupRoot;exports.DateInput=et.DateInput;exports.Calendar=tt.Calendar;exports.DatePicker=rt.DatePicker;exports.ProgressBar=ot.ProgressBar;exports.RangeCalendar=nt.RangeCalendar;exports.Menu=D.Menu;exports._MenuContent=D.MenuContent;exports._MenuItem=D.MenuItem;exports._MenuRoot=D.MenuRoot;exports._MenuSection=D.MenuSection;exports._MenuSubmenu=D.MenuSubmenu;exports._MenuSubmenuTrigger=D.MenuSubmenuTrigger;exports._MenuTrigger=D.MenuTrigger;exports.DateRangePicker=at.DateRangePicker;exports.Toolbar=it.Toolbar;exports.DataTable=b.DataTable;exports.UPDATE_ACTIONS=b.UPDATE_ACTIONS;exports._DataTableBody=b.DataTableBody;exports._DataTableCell=b.DataTableCell;exports._DataTableColumn=b.DataTableColumn;exports._DataTableExpandButton=b.DataTableExpandButton;exports._DataTableFooter=b.DataTableFooter;exports._DataTableHeader=b.DataTableHeader;exports._DataTableManager=b.DataTableManager;exports._DataTableNestedIcon=b.DataTableNestedIcon;exports._DataTableRoot=b.DataTableRoot;exports._DataTableRow=b.DataTableRow;exports._DataTableSelectionCell=b.DataTableSelectionCell;exports._DataTableTable=b.DataTableTable;exports.Pagination=ut.Pagination;exports.Drawer=I.Drawer;exports._DrawerBody=I.DrawerBody;exports._DrawerCloseTrigger=I.DrawerCloseTrigger;exports._DrawerContent=I.DrawerContent;exports._DrawerFooter=I.DrawerFooter;exports._DrawerHeader=I.DrawerHeader;exports._DrawerRoot=I.DrawerRoot;exports._DrawerTitle=I.DrawerTitle;exports._DrawerTrigger=I.DrawerTrigger;exports.Tabs=_.Tabs;exports._TabsList=_.TabsList;exports._TabsPanel=_.TabsPanel;exports._TabsPanels=_.TabsPanels;exports._TabsRoot=_.TabsRoot;exports._TabsTab=_.TabsTab;exports.LocalizedField=ct.LocalizedField;exports.useLocalizedStringFormatter=lt.useLocalizedStringFormatter;exports.useColorMode=te;exports.useColorModeValue=Pt;exports.useColorScheme=At;exports.useCopyToClipboard=Mt;exports.useHotkeys=Ft;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.es.js CHANGED
@@ -1,83 +1,83 @@
1
- import { D as ke } from "./chunks/date-range-picker-field-BuI6eLMY.es.js";
2
- import { M as Ae } from "./chunks/money-input-field-CSnaaDk-.es.js";
3
- import { M as Me } from "./chunks/multiline-text-input-field-C6UTl_c8.es.js";
4
- import { N as Pe } from "./chunks/number-input-field-C90uFO4e.es.js";
5
- import { S as Ne } from "./chunks/search-input-field-CEemw2P1.es.js";
6
- import { P as Oe } from "./chunks/password-input-field-XXaNUALk.es.js";
7
- import { T as Ue } from "./chunks/text-input-field-6Cj35cYL.es.js";
8
- import { s as je } from "./chunks/index-C2qW4ynb.es.js";
9
- import { g as z } from "./chunks/rich-text-input-CRGUa5d2.es.js";
10
- import { R as Ve } from "./chunks/rich-text-input-CRGUa5d2.es.js";
1
+ import { D as ke } from "./chunks/date-range-picker-field-D-kCkHEF.es.js";
2
+ import { M as Ae } from "./chunks/money-input-field-0vXOOTvx.es.js";
3
+ import { M as Me } from "./chunks/multiline-text-input-field-ipwTTNg6.es.js";
4
+ import { N as Pe } from "./chunks/number-input-field-DenXeCQQ.es.js";
5
+ import { S as Ne } from "./chunks/search-input-field-G080Ti8W.es.js";
6
+ import { P as Oe } from "./chunks/password-input-field-CNLpabCL.es.js";
7
+ import { T as Ue } from "./chunks/text-input-field-ChGQsEAJ.es.js";
8
+ import { s as je } from "./chunks/index-D3KlpJA5.es.js";
9
+ import { g as z } from "./chunks/rich-text-input-COjV3y9x.es.js";
10
+ import { R as Ve } from "./chunks/rich-text-input-COjV3y9x.es.js";
11
11
  import { useRef as T, useCallback as D, useContext as B, useLayoutEffect as $, useEffect as E, createContext as O, useState as H } from "react";
12
12
  import { A as $e } from "./chunks/avatar-1Y7cLjZT.es.js";
13
13
  import { B as Xe } from "./chunks/box-DuBoAZvq.es.js";
14
- import { B as Ye } from "./chunks/button-BEJnxXsL.es.js";
14
+ import { B as Ye } from "./chunks/button-CANeXX_D.es.js";
15
15
  import { C as Je } from "./chunks/code-Dl7u63Zn.es.js";
16
- import { C as tt } from "./chunks/combobox-vjauyzlS.es.js";
17
- import { D as ot } from "./chunks/dialog-DuS3dXVi.es.js";
16
+ import { C as tt } from "./chunks/combobox-B30crY-T.es.js";
17
+ import { D as ot } from "./chunks/dialog-vnnSNnUC.es.js";
18
18
  import { a as nt, F as st } from "./chunks/field-errors-D1BQvoYg.es.js";
19
19
  import { Flex as ct } from "@chakra-ui/react/flex";
20
20
  import { G as ut } from "./chunks/group-CCBgdph2.es.js";
21
21
  import { H as ft } from "./chunks/heading-nfjoR4vL.es.js";
22
22
  import { N as mt } from "./chunks/nimbus-i18n-provider-CZh1r8F5.es.js";
23
- import { I as yt } from "./chunks/icon-button-CosIm3oY.es.js";
24
- import { I as xt } from "./chunks/icon-toggle-button-8fX8JAXp.es.js";
23
+ import { I as yt } from "./chunks/icon-button-DhHKxd27.es.js";
24
+ import { I as xt } from "./chunks/icon-toggle-button-C7HZUXh5.es.js";
25
25
  import { I as ht } from "./chunks/image-DRigLU80.es.js";
26
26
  import { K as Tt } from "./chunks/kbd-Bl5Ncm2d.es.js";
27
27
  import { L as Dt } from "./chunks/link-BMUyXcmC.es.js";
28
28
  import { L as St, c as It, b as Lt, a as kt } from "./chunks/list-Nz5KjWzs.es.js";
29
- import { D as At, c as Rt, b as Mt, a as Ft } from "./chunks/draggable-list-z7a7tu_F.es.js";
29
+ import { D as At, c as Rt, b as Mt, a as Ft } from "./chunks/draggable-list-DR-559Qk.es.js";
30
30
  import { S as Kt } from "./chunks/simple-grid-DU5v66TG.es.js";
31
31
  import { Table as Bt } from "@chakra-ui/react/table";
32
32
  import { T as Ht } from "./chunks/text-CIb_VDvO.es.js";
33
33
  import { T as qt } from "./chunks/tooltip-D3QrrizN.es.js";
34
34
  import { M as Gt } from "./chunks/make-element-focusable-7-aXFtDJ.es.js";
35
- import { z as W } from "./chunks/nimbus-provider-S02SpkpM.es.js";
36
- import { N as zt } from "./chunks/nimbus-provider-S02SpkpM.es.js";
37
- import { C as Wt } from "./chunks/checkbox-CputcCVr.es.js";
38
- import { c as Qt, b as Yt, C as Zt, a as Jt } from "./chunks/collapsible-motion-DvtUDuxb.es.js";
35
+ import { z as W } from "./chunks/nimbus-provider-4H3HucGg.es.js";
36
+ import { N as zt } from "./chunks/nimbus-provider-4H3HucGg.es.js";
37
+ import { C as Wt } from "./chunks/checkbox-UATxAVti.es.js";
38
+ import { c as Qt, b as Yt, C as Zt, a as Jt } from "./chunks/collapsible-motion-BsyuKtxS.es.js";
39
39
  import { S as tr } from "./chunks/stack-CoNreM7B.es.js";
40
40
  import { V as or } from "./chunks/visually-hidden-Dj5CT-u_.es.js";
41
- import { T as nr } from "./chunks/text-input-CCiZeQad.es.js";
42
- import { N as ir } from "./chunks/number-input-Dp13Mn-8.es.js";
41
+ import { T as nr } from "./chunks/text-input-UaixbZjE.es.js";
42
+ import { N as ir } from "./chunks/number-input-BVTqEzzS.es.js";
43
43
  import { G as lr } from "./chunks/grid-De8qjf98.es.js";
44
- import { S as dr } from "./chunks/select-D9yYDW0d.es.js";
45
- import { S as pr } from "./chunks/separator-BJ9k_D4l.es.js";
44
+ import { S as dr } from "./chunks/select-B3w10lhg.es.js";
45
+ import { S as pr } from "./chunks/separator-DX_ZJMkp.es.js";
46
46
  import { S as gr } from "./chunks/spacer-pHklG6Ri.es.js";
47
- import { A as br } from "./chunks/accordion-Dh0RVlNx.es.js";
48
- import { c as Cr, b as hr, d as vr, a as Tr, A as wr } from "./chunks/accordion.content-GGayEeqD.es.js";
49
- import { A as _r, d as Sr, c as Ir, e as Lr, a as kr, b as Er } from "./chunks/alert-DCgWOaY2.es.js";
47
+ import { A as br } from "./chunks/accordion-Cwy8ywRo.es.js";
48
+ import { c as Cr, b as hr, d as vr, a as Tr, A as wr } from "./chunks/accordion.content-DR_1dtdK.es.js";
49
+ import { A as _r, d as Sr, c as Ir, e as Lr, a as kr, b as Er } from "./chunks/alert-WiLa3ap4.es.js";
50
50
  import { B as Rr } from "./chunks/badge-CgYpum7D.es.js";
51
- import { C as Fr, c as Pr, b as Kr, a as Nr } from "./chunks/card-q5i119kB.es.js";
52
- import { F as Or, d as Hr, e as Ur, f as qr, c as jr, b as Gr, a as Vr } from "./chunks/form-field-BfDU18h3.es.js";
51
+ import { C as Fr, c as Pr, b as Kr, a as Nr } from "./chunks/card-BHw7lWYe.es.js";
52
+ import { F as Or, d as Hr, e as Ur, f as qr, c as jr, b as Gr, a as Vr } from "./chunks/form-field-DCWDyNJx.es.js";
53
53
  import { I as $r } from "./chunks/icon-DJsVh7VR.es.js";
54
54
  import { I as Xr } from "./chunks/inline-svg-Cwl9dFvu.es.js";
55
55
  import { L as Yr } from "./chunks/loading-spinner-gf62wtm3.es.js";
56
- import { P as Jr } from "./chunks/password-input-8bkpGOIX.es.js";
57
- import { S as to } from "./chunks/search-input-BDUJ48BC.es.js";
58
- import { S as oo } from "./chunks/scoped-search-input-CSpFefUJ.es.js";
59
- import { S as no } from "./chunks/split-button-C94SY3qF.es.js";
60
- import { T as io } from "./chunks/time-input-CCuIFoY2.es.js";
61
- import { M as lo } from "./chunks/multiline-text-input-CrDTYrM3.es.js";
62
- import { M as fo } from "./chunks/money-input-D65vrUj4.es.js";
63
- import { R as mo } from "./chunks/radio-input-DV-hhL4S.es.js";
64
- import { S as yo } from "./chunks/switch-Nn1Fbk5O.es.js";
65
- import { T as xo } from "./chunks/tag-group-BE8d6xcP.es.js";
66
- import { T as ho } from "./chunks/toggle-button-UcXy5q2C.es.js";
56
+ import { P as Jr } from "./chunks/password-input-vu3kFdzW.es.js";
57
+ import { S as to } from "./chunks/search-input-Ba7KSi4m.es.js";
58
+ import { S as oo } from "./chunks/scoped-search-input-Qf2F3cu-.es.js";
59
+ import { S as no } from "./chunks/split-button-BGDUOZcq.es.js";
60
+ import { T as io } from "./chunks/time-input-T4jAE9kM.es.js";
61
+ import { M as lo } from "./chunks/multiline-text-input-DkruVK6m.es.js";
62
+ import { M as fo } from "./chunks/money-input-B5kFhLR0.es.js";
63
+ import { R as mo } from "./chunks/radio-input-S4OwAttR.es.js";
64
+ import { S as yo } from "./chunks/switch-GD8BjCPZ.es.js";
65
+ import { T as xo } from "./chunks/tag-group-CMfyCIc3.es.js";
66
+ import { T as ho } from "./chunks/toggle-button-J0Vys1xC.es.js";
67
67
  import { T as To, b as wo, a as Do } from "./chunks/toggle-button-group-BWpmMkEz.es.js";
68
- import { D as So } from "./chunks/date-input-Cd9q4qBj.es.js";
69
- import { C as Lo } from "./chunks/calendar-lSoXK-yt.es.js";
70
- import { D as Eo } from "./chunks/date-picker-B8VVNXU3.es.js";
71
- import { P as Ro } from "./chunks/progress-bar-C2ZnGdLv.es.js";
72
- import { R as Fo } from "./chunks/range-calendar-CEIaa08T.es.js";
73
- import { M as Ko, c as No, d as Bo, a as Oo, e as Ho, g as Uo, f as qo, b as jo } from "./chunks/menu-Zlnps1eW.es.js";
74
- import { D as Vo } from "./chunks/date-range-picker-BnbKgO1E.es.js";
75
- import { T as $o } from "./chunks/toolbar-C7-6gqba.es.js";
76
- import { D as Xo, U as Qo, e as Yo, g as Zo, d as Jo, j as ea, h as ta, c as ra, i as oa, k as aa, a as na, f as sa, l as ia, b as ca } from "./chunks/data-table-DA4SdIgU.es.js";
77
- import { P as ua } from "./chunks/pagination-BlrGdyD5.es.js";
78
- import { D as fa, e as pa, h as ma, c as ga, f as ya, d as ba, a as xa, g as Ca, b as ha } from "./chunks/drawer-BPcEUbUt.es.js";
79
- import { T as Ta, b as wa, e as Da, d as _a, a as Sa, c as Ia } from "./chunks/tabs-D0OPeQ_J.es.js";
80
- import { L as ka } from "./chunks/localized-field-DdeHzXdh.es.js";
68
+ import { D as So } from "./chunks/date-input-Ba6r9wMb.es.js";
69
+ import { C as Lo } from "./chunks/calendar-Bnw0u0vz.es.js";
70
+ import { D as Eo } from "./chunks/date-picker-DwQ1WWNP.es.js";
71
+ import { P as Ro } from "./chunks/progress-bar-D99U1mF3.es.js";
72
+ import { R as Fo } from "./chunks/range-calendar-qoiJRxsH.es.js";
73
+ import { M as Ko, c as No, d as Bo, a as Oo, e as Ho, g as Uo, f as qo, b as jo } from "./chunks/menu-SxqgiwJf.es.js";
74
+ import { D as Vo } from "./chunks/date-range-picker-dw7c9idV.es.js";
75
+ import { T as $o } from "./chunks/toolbar-QZSD0kko.es.js";
76
+ import { D as Xo, U as Qo, e as Yo, g as Zo, d as Jo, j as ea, h as ta, c as ra, i as oa, k as aa, a as na, f as sa, l as ia, b as ca } from "./chunks/data-table-B7orK0Y6.es.js";
77
+ import { P as ua } from "./chunks/pagination-BjUXs0hd.es.js";
78
+ import { D as fa, e as pa, h as ma, c as ga, f as ya, d as ba, a as xa, g as Ca, b as ha } from "./chunks/drawer-CasegOAE.es.js";
79
+ import { T as Ta, b as wa, e as Da, d as _a, a as Sa, c as Ia } from "./chunks/tabs-Dh_AK8jc.es.js";
80
+ import { L as ka } from "./chunks/localized-field-CHXN7Zf1.es.js";
81
81
  import "react/jsx-runtime";
82
82
  import { u as Aa } from "./chunks/normalize-messages-D5T4I93D.es.js";
83
83
  const U = ["shift", "alt", "meta", "mod", "ctrl", "control"], X = {
@@ -1,2 +1,2 @@
1
- "use strict";typeof globalThis.structuredClone!="function"&&(globalThis.structuredClone=function(e){if(e==null)return e;try{return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}catch(t){return console.warn("structuredClone polyfill failed:",t),Array.isArray(e)?[...e]:{...e}}});if(typeof globalThis.ResizeObserver>"u"){class r{observe(){}unobserve(){}disconnect(){}}globalThis.ResizeObserver=r}if(typeof globalThis.IntersectionObserver>"u"){class r{root=null;rootMargin="";thresholds=[];disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}globalThis.IntersectionObserver=r}typeof Element<"u"&&(Element.prototype.scrollTo=Element.prototype.scrollTo||(()=>{}),Element.prototype.scrollIntoView=Element.prototype.scrollIntoView||(()=>{}));typeof window<"u"&&!window.requestAnimationFrame&&(window.requestAnimationFrame=r=>setTimeout(()=>r(Date.now()),1e3/60));
1
+ "use strict";typeof globalThis.structuredClone!="function"&&(globalThis.structuredClone=function(e){if(e==null)return e;try{return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}catch(t){return console.warn("structuredClone polyfill failed:",t),Array.isArray(e)?[...e]:{...e}}});typeof window<"u"&&!window.matchMedia&&(window.matchMedia=r=>({matches:!1,media:r,onchange:null,addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}));if(typeof globalThis.ResizeObserver>"u"){class r{observe(){}unobserve(){}disconnect(){}}globalThis.ResizeObserver=r}if(typeof globalThis.IntersectionObserver>"u"){class r{root=null;rootMargin="";thresholds=[];disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}globalThis.IntersectionObserver=r}typeof Element<"u"&&(Element.prototype.scrollTo=Element.prototype.scrollTo||(()=>{}),Element.prototype.scrollIntoView=Element.prototype.scrollIntoView||(()=>{}));typeof window<"u"&&!window.requestAnimationFrame&&(window.requestAnimationFrame=r=>setTimeout(()=>r(Date.now()),1e3/60));
2
2
  //# sourceMappingURL=setup-jsdom-polyfills.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup-jsdom-polyfills.cjs","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills for JSDOM test environments\n *\n * These polyfills prevent `NimbusProvider` from crashing in JSDOM\n * environments (e.g., Jest, Vitest).\n *\n * **Usage with Jest:**\n * ```js\n * // jest.config.js\n * module.exports = {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * };\n * ```\n *\n * **Usage with Vitest:**\n * ```ts\n * // vitest.config.ts\n * export default defineConfig({\n * test: {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * }\n * });\n * ```\n\n */\n\n/**\n * Mock structuredClone\n *\n * **Why**: Required by Chakra UI provider for deep cloning objects\n *\n * **Use cases**:\n * - NimbusProvider initialization\n * - Chakra UI theme configuration\n * - Deep cloning of component state\n * - React context value cloning\n */\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n/**\n * Mock window.matchMedia\n *\n * **Why**: Required for responsive design and theme system\n *\n * **Use cases**:\n * - Chakra UI color mode and theme detection\n * - Responsive component behavior\n * - Media query hooks (useMediaQuery)\n * - Breakpoint-based rendering\n */\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default, can be overridden in tests\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed\n removeListener: () => {}, // Deprecated but needed\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n\n/**\n * Mock ResizeObserver\n *\n * **Why**: Required for components that adjust based on size\n *\n * **Use cases**:\n * - Chakra UI responsive components\n * - React Aria components with responsive behavior\n * - Components that measure container dimensions\n */\nif (typeof globalThis.ResizeObserver === \"undefined\") {\n class ResizeObserverMock {\n observe() {}\n unobserve() {}\n disconnect() {}\n }\n globalThis.ResizeObserver =\n ResizeObserverMock as unknown as typeof ResizeObserver;\n}\n\n/**\n * Mock IntersectionObserver\n *\n * **Why**: Required for lazy loading and viewport-based effects\n *\n * **Use cases**:\n * - Components that trigger actions when entering viewport\n * - Infinite scroll implementations\n * - Lazy image loading\n * - Visibility tracking for analytics\n */\nif (typeof globalThis.IntersectionObserver === \"undefined\") {\n class IntersectionObserverMock {\n readonly root: Element | null = null;\n readonly rootMargin: string = \"\";\n readonly thresholds: ReadonlyArray<number> = [];\n\n disconnect() {}\n observe() {}\n takeRecords(): IntersectionObserverEntry[] {\n return [];\n }\n unobserve() {}\n }\n globalThis.IntersectionObserver =\n IntersectionObserverMock as unknown as typeof IntersectionObserver;\n}\n\n/**\n * Mock Element.prototype scroll methods\n *\n * **Why**: Used by navigation, modals, and focus management\n *\n * **Use cases**:\n * - React Aria focus management\n * - Scroll-to-top features\n * - Dialog auto-focus and scroll behavior\n * - Dropdown and menu positioning\n */\nif (typeof Element !== \"undefined\") {\n Element.prototype.scrollTo = Element.prototype.scrollTo || (() => {});\n Element.prototype.scrollIntoView =\n Element.prototype.scrollIntoView || (() => {});\n}\n\n/**\n * Mock requestAnimationFrame\n *\n * **Why**: Used in animations and transitions\n *\n * **Use cases**:\n * - Chakra UI animations and motion components\n * - React Aria transition hooks\n * - Smooth UI updates and state changes\n * - Custom animation implementations\n */\nif (typeof window !== \"undefined\" && !window.requestAnimationFrame) {\n window.requestAnimationFrame = (callback: FrameRequestCallback) => {\n return setTimeout(\n () => callback(Date.now()),\n 1000 / 60\n ) as unknown as number;\n };\n}\n"],"names":["value","error","ResizeObserverMock","IntersectionObserverMock","callback"],"mappings":"aAyCI,OAAO,WAAW,iBAAoB,aAExC,WAAW,gBAAkB,SAAyBA,EAAY,CAChE,GAAIA,GAAU,KACZ,OAAOA,EAGT,GAAI,CAEF,OAAI,OAAOA,GAAU,SACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,EAGlCA,CACT,OAASC,EAAO,CACd,eAAQ,KAAK,mCAAoCA,CAAK,EAG/C,MAAM,QAAQD,CAAK,EAAI,CAAC,GAAGA,CAAK,EAAI,CAAE,GAAGA,CAAA,CAClD,CACF,GAsCF,GAAI,OAAO,WAAW,eAAmB,IAAa,CACpD,MAAME,CAAmB,CACvB,SAAU,CAAC,CACX,WAAY,CAAC,CACb,YAAa,CAAC,CAAA,CAEhB,WAAW,eACTA,CACJ,CAaA,GAAI,OAAO,WAAW,qBAAyB,IAAa,CAC1D,MAAMC,CAAyB,CACpB,KAAuB,KACvB,WAAqB,GACrB,WAAoC,CAAA,EAE7C,YAAa,CAAC,CACd,SAAU,CAAC,CACX,aAA2C,CACzC,MAAO,CAAA,CACT,CACA,WAAY,CAAC,CAAA,CAEf,WAAW,qBACTA,CACJ,CAaI,OAAO,QAAY,MACrB,QAAQ,UAAU,SAAW,QAAQ,UAAU,WAAa,IAAM,CAAC,GACnE,QAAQ,UAAU,eAChB,QAAQ,UAAU,iBAAmB,IAAM,CAAC,IAc5C,OAAO,OAAW,KAAe,CAAC,OAAO,wBAC3C,OAAO,sBAAyBC,GACvB,WACL,IAAMA,EAAS,KAAK,KAAK,EACzB,IAAO,EAAA"}
1
+ {"version":3,"file":"setup-jsdom-polyfills.cjs","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills for JSDOM test environments\n *\n * These polyfills prevent `NimbusProvider` from crashing in JSDOM\n * environments (e.g., Jest, Vitest).\n *\n * **Usage with Jest:**\n * ```js\n * // jest.config.js\n * module.exports = {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * };\n * ```\n *\n * **Usage with Vitest:**\n * ```ts\n * // vitest.config.ts\n * export default defineConfig({\n * test: {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * }\n * });\n * ```\n\n */\n\n/**\n * Mock structuredClone\n *\n * **Why**: Required by Chakra UI provider for deep cloning objects\n *\n * **Use cases**:\n * - NimbusProvider initialization\n * - Chakra UI theme configuration\n * - Deep cloning of component state\n * - React context value cloning\n */\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n/**\n * Mock window.matchMedia\n *\n * **Why**: Required for responsive design and theme system\n *\n * **Use cases**:\n * - Chakra UI color mode and theme detection\n * - Responsive component behavior\n * - Media query hooks (useMediaQuery)\n * - Breakpoint-based rendering\n */\nif (typeof window !== \"undefined\" && !window.matchMedia) {\n window.matchMedia = (query: string) =>\n ({\n matches: false, // Default, can be overridden in tests\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed\n removeListener: () => {}, // Deprecated but needed\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }) as MediaQueryList;\n}\n\n/**\n * Mock ResizeObserver\n *\n * **Why**: Required for components that adjust based on size\n *\n * **Use cases**:\n * - Chakra UI responsive components\n * - React Aria components with responsive behavior\n * - Components that measure container dimensions\n */\nif (typeof globalThis.ResizeObserver === \"undefined\") {\n class ResizeObserverMock {\n observe() {}\n unobserve() {}\n disconnect() {}\n }\n globalThis.ResizeObserver =\n ResizeObserverMock as unknown as typeof ResizeObserver;\n}\n\n/**\n * Mock IntersectionObserver\n *\n * **Why**: Required for lazy loading and viewport-based effects\n *\n * **Use cases**:\n * - Components that trigger actions when entering viewport\n * - Infinite scroll implementations\n * - Lazy image loading\n * - Visibility tracking for analytics\n */\nif (typeof globalThis.IntersectionObserver === \"undefined\") {\n class IntersectionObserverMock {\n readonly root: Element | null = null;\n readonly rootMargin: string = \"\";\n readonly thresholds: ReadonlyArray<number> = [];\n\n disconnect() {}\n observe() {}\n takeRecords(): IntersectionObserverEntry[] {\n return [];\n }\n unobserve() {}\n }\n globalThis.IntersectionObserver =\n IntersectionObserverMock as unknown as typeof IntersectionObserver;\n}\n\n/**\n * Mock Element.prototype scroll methods\n *\n * **Why**: Used by navigation, modals, and focus management\n *\n * **Use cases**:\n * - React Aria focus management\n * - Scroll-to-top features\n * - Dialog auto-focus and scroll behavior\n * - Dropdown and menu positioning\n */\nif (typeof Element !== \"undefined\") {\n Element.prototype.scrollTo = Element.prototype.scrollTo || (() => {});\n Element.prototype.scrollIntoView =\n Element.prototype.scrollIntoView || (() => {});\n}\n\n/**\n * Mock requestAnimationFrame\n *\n * **Why**: Used in animations and transitions\n *\n * **Use cases**:\n * - Chakra UI animations and motion components\n * - React Aria transition hooks\n * - Smooth UI updates and state changes\n * - Custom animation implementations\n */\nif (typeof window !== \"undefined\" && !window.requestAnimationFrame) {\n window.requestAnimationFrame = (callback: FrameRequestCallback) => {\n return setTimeout(\n () => callback(Date.now()),\n 1000 / 60\n ) as unknown as number;\n };\n}\n"],"names":["value","error","query","ResizeObserverMock","IntersectionObserverMock","callback"],"mappings":"aAyCI,OAAO,WAAW,iBAAoB,aAExC,WAAW,gBAAkB,SAAyBA,EAAY,CAChE,GAAIA,GAAU,KACZ,OAAOA,EAGT,GAAI,CAEF,OAAI,OAAOA,GAAU,SACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,EAGlCA,CACT,OAASC,EAAO,CACd,eAAQ,KAAK,mCAAoCA,CAAK,EAG/C,MAAM,QAAQD,CAAK,EAAI,CAAC,GAAGA,CAAK,EAAI,CAAE,GAAGA,CAAA,CAClD,CACF,GAcE,OAAO,OAAW,KAAe,CAAC,OAAO,aAC3C,OAAO,WAAcE,IAClB,CACC,QAAS,GACT,MAAOA,EACP,SAAU,KACV,YAAa,IAAM,CAAC,EACpB,eAAgB,IAAM,CAAC,EACvB,iBAAkB,IAAM,CAAC,EACzB,oBAAqB,IAAM,CAAC,EAC5B,cAAe,IAAM,EAAA,IAc3B,GAAI,OAAO,WAAW,eAAmB,IAAa,CACpD,MAAMC,CAAmB,CACvB,SAAU,CAAC,CACX,WAAY,CAAC,CACb,YAAa,CAAC,CAAA,CAEhB,WAAW,eACTA,CACJ,CAaA,GAAI,OAAO,WAAW,qBAAyB,IAAa,CAC1D,MAAMC,CAAyB,CACpB,KAAuB,KACvB,WAAqB,GACrB,WAAoC,CAAA,EAE7C,YAAa,CAAC,CACd,SAAU,CAAC,CACX,aAA2C,CACzC,MAAO,CAAA,CACT,CACA,WAAY,CAAC,CAAA,CAEf,WAAW,qBACTA,CACJ,CAaI,OAAO,QAAY,MACrB,QAAQ,UAAU,SAAW,QAAQ,UAAU,WAAa,IAAM,CAAC,GACnE,QAAQ,UAAU,eAChB,QAAQ,UAAU,iBAAmB,IAAM,CAAC,IAc5C,OAAO,OAAW,KAAe,CAAC,OAAO,wBAC3C,OAAO,sBAAyBC,GACvB,WACL,IAAMA,EAAS,KAAK,KAAK,EACzB,IAAO,EAAA"}
@@ -7,6 +7,23 @@ typeof globalThis.structuredClone != "function" && (globalThis.structuredClone =
7
7
  return console.warn("structuredClone polyfill failed:", t), Array.isArray(e) ? [...e] : { ...e };
8
8
  }
9
9
  });
10
+ typeof window < "u" && !window.matchMedia && (window.matchMedia = (r) => ({
11
+ matches: !1,
12
+ // Default, can be overridden in tests
13
+ media: r,
14
+ onchange: null,
15
+ addListener: () => {
16
+ },
17
+ // Deprecated but needed
18
+ removeListener: () => {
19
+ },
20
+ // Deprecated but needed
21
+ addEventListener: () => {
22
+ },
23
+ removeEventListener: () => {
24
+ },
25
+ dispatchEvent: () => !1
26
+ }));
10
27
  if (typeof globalThis.ResizeObserver > "u") {
11
28
  class r {
12
29
  observe() {
@@ -1 +1 @@
1
- {"version":3,"file":"setup-jsdom-polyfills.es.js","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills for JSDOM test environments\n *\n * These polyfills prevent `NimbusProvider` from crashing in JSDOM\n * environments (e.g., Jest, Vitest).\n *\n * **Usage with Jest:**\n * ```js\n * // jest.config.js\n * module.exports = {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * };\n * ```\n *\n * **Usage with Vitest:**\n * ```ts\n * // vitest.config.ts\n * export default defineConfig({\n * test: {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * }\n * });\n * ```\n\n */\n\n/**\n * Mock structuredClone\n *\n * **Why**: Required by Chakra UI provider for deep cloning objects\n *\n * **Use cases**:\n * - NimbusProvider initialization\n * - Chakra UI theme configuration\n * - Deep cloning of component state\n * - React context value cloning\n */\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n/**\n * Mock window.matchMedia\n *\n * **Why**: Required for responsive design and theme system\n *\n * **Use cases**:\n * - Chakra UI color mode and theme detection\n * - Responsive component behavior\n * - Media query hooks (useMediaQuery)\n * - Breakpoint-based rendering\n */\nObject.defineProperty(window, \"matchMedia\", {\n writable: true,\n value: (query: unknown) => ({\n matches: false, // Default, can be overridden in tests\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed\n removeListener: () => {}, // Deprecated but needed\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }),\n});\n\n/**\n * Mock ResizeObserver\n *\n * **Why**: Required for components that adjust based on size\n *\n * **Use cases**:\n * - Chakra UI responsive components\n * - React Aria components with responsive behavior\n * - Components that measure container dimensions\n */\nif (typeof globalThis.ResizeObserver === \"undefined\") {\n class ResizeObserverMock {\n observe() {}\n unobserve() {}\n disconnect() {}\n }\n globalThis.ResizeObserver =\n ResizeObserverMock as unknown as typeof ResizeObserver;\n}\n\n/**\n * Mock IntersectionObserver\n *\n * **Why**: Required for lazy loading and viewport-based effects\n *\n * **Use cases**:\n * - Components that trigger actions when entering viewport\n * - Infinite scroll implementations\n * - Lazy image loading\n * - Visibility tracking for analytics\n */\nif (typeof globalThis.IntersectionObserver === \"undefined\") {\n class IntersectionObserverMock {\n readonly root: Element | null = null;\n readonly rootMargin: string = \"\";\n readonly thresholds: ReadonlyArray<number> = [];\n\n disconnect() {}\n observe() {}\n takeRecords(): IntersectionObserverEntry[] {\n return [];\n }\n unobserve() {}\n }\n globalThis.IntersectionObserver =\n IntersectionObserverMock as unknown as typeof IntersectionObserver;\n}\n\n/**\n * Mock Element.prototype scroll methods\n *\n * **Why**: Used by navigation, modals, and focus management\n *\n * **Use cases**:\n * - React Aria focus management\n * - Scroll-to-top features\n * - Dialog auto-focus and scroll behavior\n * - Dropdown and menu positioning\n */\nif (typeof Element !== \"undefined\") {\n Element.prototype.scrollTo = Element.prototype.scrollTo || (() => {});\n Element.prototype.scrollIntoView =\n Element.prototype.scrollIntoView || (() => {});\n}\n\n/**\n * Mock requestAnimationFrame\n *\n * **Why**: Used in animations and transitions\n *\n * **Use cases**:\n * - Chakra UI animations and motion components\n * - React Aria transition hooks\n * - Smooth UI updates and state changes\n * - Custom animation implementations\n */\nif (typeof window !== \"undefined\" && !window.requestAnimationFrame) {\n window.requestAnimationFrame = (callback: FrameRequestCallback) => {\n return setTimeout(\n () => callback(Date.now()),\n 1000 / 60\n ) as unknown as number;\n };\n}\n"],"names":["value","error","ResizeObserverMock","IntersectionObserverMock","callback"],"mappings":"AAyCI,OAAO,WAAW,mBAAoB,eAExC,WAAW,kBAAkB,SAAyBA,GAAY;AAChE,MAAIA,KAAU;AACZ,WAAOA;AAGT,MAAI;AAEF,WAAI,OAAOA,KAAU,WACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,IAGlCA;AAAA,EACT,SAASC,GAAO;AACd,mBAAQ,KAAK,oCAAoCA,CAAK,GAG/C,MAAM,QAAQD,CAAK,IAAI,CAAC,GAAGA,CAAK,IAAI,EAAE,GAAGA,EAAA;AAAA,EAClD;AACF;AAsCF,IAAI,OAAO,WAAW,iBAAmB,KAAa;AAAA,EACpD,MAAME,EAAmB;AAAA,IACvB,UAAU;AAAA,IAAC;AAAA,IACX,YAAY;AAAA,IAAC;AAAA,IACb,aAAa;AAAA,IAAC;AAAA,EAAA;AAEhB,aAAW,iBACTA;AACJ;AAaA,IAAI,OAAO,WAAW,uBAAyB,KAAa;AAAA,EAC1D,MAAMC,EAAyB;AAAA,IACpB,OAAuB;AAAA,IACvB,aAAqB;AAAA,IACrB,aAAoC,CAAA;AAAA,IAE7C,aAAa;AAAA,IAAC;AAAA,IACd,UAAU;AAAA,IAAC;AAAA,IACX,cAA2C;AACzC,aAAO,CAAA;AAAA,IACT;AAAA,IACA,YAAY;AAAA,IAAC;AAAA,EAAA;AAEf,aAAW,uBACTA;AACJ;AAaI,OAAO,UAAY,QACrB,QAAQ,UAAU,WAAW,QAAQ,UAAU,aAAa,MAAM;AAAC,IACnE,QAAQ,UAAU,iBAChB,QAAQ,UAAU,mBAAmB,MAAM;AAAC;AAc5C,OAAO,SAAW,OAAe,CAAC,OAAO,0BAC3C,OAAO,wBAAwB,CAACC,MACvB;AAAA,EACL,MAAMA,EAAS,KAAK,KAAK;AAAA,EACzB,MAAO;AAAA;"}
1
+ {"version":3,"file":"setup-jsdom-polyfills.es.js","sources":["../src/test/setup-jsdom-polyfills.ts"],"sourcesContent":["/**\n * Polyfills for JSDOM test environments\n *\n * These polyfills prevent `NimbusProvider` from crashing in JSDOM\n * environments (e.g., Jest, Vitest).\n *\n * **Usage with Jest:**\n * ```js\n * // jest.config.js\n * module.exports = {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * };\n * ```\n *\n * **Usage with Vitest:**\n * ```ts\n * // vitest.config.ts\n * export default defineConfig({\n * test: {\n * setupFiles: [\n * '@commercetools/nimbus/setup-jsdom-polyfills'\n * ]\n * }\n * });\n * ```\n\n */\n\n/**\n * Mock structuredClone\n *\n * **Why**: Required by Chakra UI provider for deep cloning objects\n *\n * **Use cases**:\n * - NimbusProvider initialization\n * - Chakra UI theme configuration\n * - Deep cloning of component state\n * - React context value cloning\n */\nif (typeof globalThis.structuredClone !== \"function\") {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n globalThis.structuredClone = function structuredClone(value: any) {\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n // For objects and arrays, use JSON methods\n if (typeof value === \"object\") {\n return JSON.parse(JSON.stringify(value));\n }\n // For primitive values, return directly\n return value;\n } catch (error) {\n console.warn(\"structuredClone polyfill failed:\", error);\n\n // Returns a shallow copy as fallback\n return Array.isArray(value) ? [...value] : { ...value };\n }\n };\n}\n\n/**\n * Mock window.matchMedia\n *\n * **Why**: Required for responsive design and theme system\n *\n * **Use cases**:\n * - Chakra UI color mode and theme detection\n * - Responsive component behavior\n * - Media query hooks (useMediaQuery)\n * - Breakpoint-based rendering\n */\nif (typeof window !== \"undefined\" && !window.matchMedia) {\n window.matchMedia = (query: string) =>\n ({\n matches: false, // Default, can be overridden in tests\n media: query,\n onchange: null,\n addListener: () => {}, // Deprecated but needed\n removeListener: () => {}, // Deprecated but needed\n addEventListener: () => {},\n removeEventListener: () => {},\n dispatchEvent: () => false,\n }) as MediaQueryList;\n}\n\n/**\n * Mock ResizeObserver\n *\n * **Why**: Required for components that adjust based on size\n *\n * **Use cases**:\n * - Chakra UI responsive components\n * - React Aria components with responsive behavior\n * - Components that measure container dimensions\n */\nif (typeof globalThis.ResizeObserver === \"undefined\") {\n class ResizeObserverMock {\n observe() {}\n unobserve() {}\n disconnect() {}\n }\n globalThis.ResizeObserver =\n ResizeObserverMock as unknown as typeof ResizeObserver;\n}\n\n/**\n * Mock IntersectionObserver\n *\n * **Why**: Required for lazy loading and viewport-based effects\n *\n * **Use cases**:\n * - Components that trigger actions when entering viewport\n * - Infinite scroll implementations\n * - Lazy image loading\n * - Visibility tracking for analytics\n */\nif (typeof globalThis.IntersectionObserver === \"undefined\") {\n class IntersectionObserverMock {\n readonly root: Element | null = null;\n readonly rootMargin: string = \"\";\n readonly thresholds: ReadonlyArray<number> = [];\n\n disconnect() {}\n observe() {}\n takeRecords(): IntersectionObserverEntry[] {\n return [];\n }\n unobserve() {}\n }\n globalThis.IntersectionObserver =\n IntersectionObserverMock as unknown as typeof IntersectionObserver;\n}\n\n/**\n * Mock Element.prototype scroll methods\n *\n * **Why**: Used by navigation, modals, and focus management\n *\n * **Use cases**:\n * - React Aria focus management\n * - Scroll-to-top features\n * - Dialog auto-focus and scroll behavior\n * - Dropdown and menu positioning\n */\nif (typeof Element !== \"undefined\") {\n Element.prototype.scrollTo = Element.prototype.scrollTo || (() => {});\n Element.prototype.scrollIntoView =\n Element.prototype.scrollIntoView || (() => {});\n}\n\n/**\n * Mock requestAnimationFrame\n *\n * **Why**: Used in animations and transitions\n *\n * **Use cases**:\n * - Chakra UI animations and motion components\n * - React Aria transition hooks\n * - Smooth UI updates and state changes\n * - Custom animation implementations\n */\nif (typeof window !== \"undefined\" && !window.requestAnimationFrame) {\n window.requestAnimationFrame = (callback: FrameRequestCallback) => {\n return setTimeout(\n () => callback(Date.now()),\n 1000 / 60\n ) as unknown as number;\n };\n}\n"],"names":["value","error","query","ResizeObserverMock","IntersectionObserverMock","callback"],"mappings":"AAyCI,OAAO,WAAW,mBAAoB,eAExC,WAAW,kBAAkB,SAAyBA,GAAY;AAChE,MAAIA,KAAU;AACZ,WAAOA;AAGT,MAAI;AAEF,WAAI,OAAOA,KAAU,WACZ,KAAK,MAAM,KAAK,UAAUA,CAAK,CAAC,IAGlCA;AAAA,EACT,SAASC,GAAO;AACd,mBAAQ,KAAK,oCAAoCA,CAAK,GAG/C,MAAM,QAAQD,CAAK,IAAI,CAAC,GAAGA,CAAK,IAAI,EAAE,GAAGA,EAAA;AAAA,EAClD;AACF;AAcE,OAAO,SAAW,OAAe,CAAC,OAAO,eAC3C,OAAO,aAAa,CAACE,OAClB;AAAA,EACC,SAAS;AAAA;AAAA,EACT,OAAOA;AAAA,EACP,UAAU;AAAA,EACV,aAAa,MAAM;AAAA,EAAC;AAAA;AAAA,EACpB,gBAAgB,MAAM;AAAA,EAAC;AAAA;AAAA,EACvB,kBAAkB,MAAM;AAAA,EAAC;AAAA,EACzB,qBAAqB,MAAM;AAAA,EAAC;AAAA,EAC5B,eAAe,MAAM;AAAA;AAc3B,IAAI,OAAO,WAAW,iBAAmB,KAAa;AAAA,EACpD,MAAMC,EAAmB;AAAA,IACvB,UAAU;AAAA,IAAC;AAAA,IACX,YAAY;AAAA,IAAC;AAAA,IACb,aAAa;AAAA,IAAC;AAAA,EAAA;AAEhB,aAAW,iBACTA;AACJ;AAaA,IAAI,OAAO,WAAW,uBAAyB,KAAa;AAAA,EAC1D,MAAMC,EAAyB;AAAA,IACpB,OAAuB;AAAA,IACvB,aAAqB;AAAA,IACrB,aAAoC,CAAA;AAAA,IAE7C,aAAa;AAAA,IAAC;AAAA,IACd,UAAU;AAAA,IAAC;AAAA,IACX,cAA2C;AACzC,aAAO,CAAA;AAAA,IACT;AAAA,IACA,YAAY;AAAA,IAAC;AAAA,EAAA;AAEf,aAAW,uBACTA;AACJ;AAaI,OAAO,UAAY,QACrB,QAAQ,UAAU,WAAW,QAAQ,UAAU,aAAa,MAAM;AAAC,IACnE,QAAQ,UAAU,iBAChB,QAAQ,UAAU,mBAAmB,MAAM;AAAC;AAc5C,OAAO,SAAW,OAAe,CAAC,OAAO,0BAC3C,OAAO,wBAAwB,CAACC,MACvB;AAAA,EACL,MAAMA,EAAS,KAAK,KAAK;AAAA,EACzB,MAAO;AAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/nimbus",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.es.js",
6
6
  "type": "module",
@@ -106,8 +106,8 @@
106
106
  "vite-plugin-dts": "^4.5.4",
107
107
  "vite-tsconfig-paths": "^5.1.4",
108
108
  "vitest": "^4.0.17",
109
- "@commercetools/nimbus-icons": "^2.2.0",
110
- "@commercetools/nimbus-tokens": "^2.2.0"
109
+ "@commercetools/nimbus-icons": "^2.3.0",
110
+ "@commercetools/nimbus-tokens": "^2.3.0"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@chakra-ui/react": "^3.31.0",
@@ -116,8 +116,8 @@
116
116
  "slate-history": "^0.113.1",
117
117
  "slate-hyperscript": "^0.77.0",
118
118
  "slate-react": "^0.75.0",
119
- "@commercetools/nimbus-icons": "^2.2.0",
120
- "@commercetools/nimbus-tokens": "^2.2.0"
119
+ "@commercetools/nimbus-icons": "^2.3.0",
120
+ "@commercetools/nimbus-tokens": "^2.3.0"
121
121
  },
122
122
  "scripts": {
123
123
  "build": "pnpm run build-theme-typings && pnpm run build:lib",
@@ -1,2 +0,0 @@
1
- "use strict";const m=require("react/jsx-runtime"),o=require("react"),gt=require("./Header-BXEPjypM.cjs.js"),ue=require("./ListBox-rm_vuzPg.cjs.js"),We=require("./CollectionBuilder-DjRx57vm.cjs.js"),yt=require("@chakra-ui/react"),Ee=require("@commercetools/nimbus-icons"),de=require("./extract-style-props-B4hqila-.cjs.js"),bt=require("./popover-Dhg--8YC.cjs.js"),qe=require("./icon-button-CeB8_Yyr.cjs.js"),xt=require("./loading-spinner-DYEYnI5N.cjs.js"),xe=require("./Input-2FU1rljx.cjs.js"),ae=require("./tag-group-BI8_32rM.cjs.js"),ht=require("@chakra-ui/react/styled-system"),vt=require("./RSPContexts-BdKenzIN.cjs.js"),Fe=require("./Button-DLCecw8f.cjs.js"),Le=require("./utils-DVb3jcp5.cjs.js"),Ct=require("./Group-1nWkximy.cjs.js"),St=require("./Label-szabofdc.cjs.js"),$t=require("./Dialog-CSr6lHSd.cjs.js"),wt=require("./Text-BWSfeB9p.cjs.js"),ce=require("./normalize-messages-CaDzkuUm.cjs.js"),Kt=require("./useListData-BGzhnkuO.cjs.js"),Ne=require("./mergeProps-CxnHrnow.cjs.js"),It=require("./useListState-BjCb6LLO.cjs.js");function Mt(e,t){let r;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var l,n;return{...e,filterText:(l=t.filterText)!==null&&l!==void 0?l:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,sortDescriptor:(n=t.sortDescriptor)!==null&&n!==void 0?n:e.sortDescriptor,abortController:t.abortController};case"update":var s;return{...e,...(s=t.updater)===null||s===void 0?void 0:s.call(t,e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":if(t.abortController!==e.abortController)return e;var a;r=(a=t.selectedKeys)!==null&&a!==void 0?a:e.selectedKeys;var i,d,x;return{...e,filterText:(i=t.filterText)!==null&&i!==void 0?i:e.filterText,state:"idle",items:[...(d=t.items)!==null&&d!==void 0?d:[]],selectedKeys:r==="all"?"all":new Set(r),sortDescriptor:(x=t.sortDescriptor)!==null&&x!==void 0?x:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:void 0};case"loading":case"loadingMore":case"sorting":case"filtering":var h;(h=e.abortController)===null||h===void 0||h.abort();var f;return{...e,filterText:(f=t.filterText)!==null&&f!==void 0?f:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"update":var w;return{...e,...(w=t.updater)===null||w===void 0?void 0:w.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var y;r=e.selectedKeys==="all"||t.selectedKeys==="all"?"all":new Set([...e.selectedKeys,...(y=t.selectedKeys)!==null&&y!==void 0?y:[]]);var I,O;return{...e,state:"idle",items:[...e.items,...(I=t.items)!==null&&I!==void 0?I:[]],selectedKeys:r,sortDescriptor:(O=t.sortDescriptor)!==null&&O!==void 0?O:e.sortDescriptor,abortController:void 0,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var M;(M=e.abortController)===null||M===void 0||M.abort();var b;return{...e,filterText:(b=t.filterText)!==null&&b!==void 0?b:e.filterText,state:t.type,items:t.type==="loading"?[]:e.items,abortController:t.abortController};case"loadingMore":var A;return(A=t.abortController)===null||A===void 0||A.abort(),e;case"update":var K;return{...e,...(K=t.updater)===null||K===void 0?void 0:K.call(t,e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function Bt(e){const{load:t,sort:r,initialSelectedKeys:l,initialSortDescriptor:n,getKey:s=f=>f.id||f.key,initialFilterText:a=""}=e;let[i,d]=o.useReducer(Mt,{state:"idle",error:void 0,items:[],selectedKeys:l==="all"?"all":new Set(l),sortDescriptor:n,filterText:a});const x=async(f,w)=>{let y=new AbortController;try{d({...f,abortController:y});var I;let b=(I=f.filterText)!==null&&I!==void 0?I:i.filterText;var O;let A=await w({items:i.items.slice(),selectedKeys:i.selectedKeys,sortDescriptor:(O=f.sortDescriptor)!==null&&O!==void 0?O:i.sortDescriptor,signal:y.signal,cursor:f.type==="loadingMore"?i.cursor:void 0,filterText:b,loadingState:i.state});var M;let K=(M=A.filterText)!==null&&M!==void 0?M:b;d({type:"success",...A,abortController:y}),K&&K!==b&&!y.signal.aborted&&x({type:"filtering",filterText:K},t)}catch(b){d({type:"error",error:b,abortController:y})}};let h=o.useRef(!1);return o.useEffect(()=>{h.current||(x({type:"loading"},t),h.current=!0)},[]),{items:i.items,selectedKeys:i.selectedKeys,sortDescriptor:i.sortDescriptor,isLoading:i.state==="loading"||i.state==="loadingMore"||i.state==="sorting"||i.state==="filtering",loadingState:i.state,error:i.error,filterText:i.filterText,getItem(f){return i.items.find(w=>s(w)===f)},reload(){x({type:"loading"},t)},loadMore(){i.state==="loading"||i.state==="loadingMore"||i.state==="filtering"||i.cursor==null||x({type:"loadingMore"},t)},sort(f){x({type:"sorting",sortDescriptor:f},r||t)},...Kt.$0d86e9c8f07f9a7b$export$79c0c687a5963b0a({...e,getKey:s,cursor:i.cursor},f=>{d({type:"update",updater:f})}),setFilterText(f){x({type:"filtering",filterText:f},t)}}}const Rt=o.createContext(null);function At(e,t,r,l){var n=this,s=o.useRef(null),a=o.useRef(0),i=o.useRef(0),d=o.useRef(null),x=o.useRef([]),h=o.useRef(),f=o.useRef(),w=o.useRef(e),y=o.useRef(!0),I=o.useRef(),O=o.useRef();w.current=e;var M=typeof window<"u",b=!t&&t!==0&&M;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var A=!!(r=r||{}).leading,K=!("trailing"in r)||!!r.trailing,G=!!r.flushOnExit&&K,H="maxWait"in r,N="debounceOnServer"in r&&!!r.debounceOnServer,U=H?Math.max(+r.maxWait||0,t):null,ee=o.useMemo(function(){var P=function(v){var E=x.current,V=h.current;return x.current=h.current=null,a.current=v,i.current=i.current||v,f.current=w.current.apply(V,E)},J=function(v,E){b&&cancelAnimationFrame(d.current),d.current=b?requestAnimationFrame(v):setTimeout(v,E)},te=function(v){if(!y.current)return!1;var E=v-s.current;return!s.current||E>=t||E<0||H&&v-a.current>=U},re=function(v){return d.current=null,K&&x.current?P(v):(x.current=h.current=null,f.current)},B=function v(){var E=Date.now();if(A&&i.current===a.current&&fe(),te(E))return re(E);if(y.current){var V=t-(E-s.current),W=H?Math.min(V,U-(E-a.current)):V;J(v,W)}},fe=function(){},X=function(){if(M||N){var v,E=Date.now(),V=te(E);if(x.current=[].slice.call(arguments),h.current=n,s.current=E,G&&!I.current&&(I.current=function(){var W;((W=global.document)==null?void 0:W.visibilityState)==="hidden"&&O.current.flush()},(v=global.document)==null||v.addEventListener==null||v.addEventListener("visibilitychange",I.current)),V){if(!d.current&&y.current)return a.current=s.current,J(B,t),A?P(s.current):f.current;if(H)return J(B,t),P(s.current)}return d.current||J(B,t),f.current}};return X.cancel=function(){var v=d.current;v&&(b?cancelAnimationFrame(d.current):clearTimeout(d.current)),a.current=0,x.current=s.current=h.current=d.current=null},X.isPending=function(){return!!d.current},X.flush=function(){return d.current?re(Date.now()):f.current},X},[A,H,t,U,K,G,b,M,N,l]);return O.current=ee,o.useEffect(function(){return y.current=!0,function(){var P;G&&O.current.flush(),I.current&&((P=global.document)==null||P.removeEventListener==null||P.removeEventListener("visibilitychange",I.current),I.current=null),y.current=!1}},[G]),ee}const{withProvider:Et,withContext:q}=yt.createSlotRecipeContext({key:"combobox"}),Ft=Et("div","root"),Lt=q("div","trigger"),Ot=q("div","leadingElement"),Tt=q("div","content"),Pt=q("div","tagGroup"),Vt=q("div","input"),jt=q("div","popover"),Dt=q("div","listBox"),kt=q("div","section"),zt=q("div","option"),qt=q("div","optionIndicator"),Nt=q("div","optionContent"),Wt={clearSelection:"Clear selection",toggleOptions:"Toggle options",selectedValues:"Selected values",options:"Options menu"},Gt={clearSelection:"Auswahl löschen",toggleOptions:"Optionen umschalten",selectedValues:"Ausgewählte Werte",options:"Optionsmenü"},Ht={clearSelection:"Borrar selección",toggleOptions:"Alternar opciones",selectedValues:"Valores seleccionados",options:"Menú de opciones"},Ut={clearSelection:"Effacer la sélection",toggleOptions:"Basculer les options",selectedValues:"Valeurs sélectionnées",options:"Menu des options"},Jt={clearSelection:"Limpar seleção",toggleOptions:"Alternar opções",selectedValues:"Valores selecionados",options:"Menu de opções"},Qt={en:ce.normalizeMessages(Wt),de:ce.normalizeMessages(Gt),es:ce.normalizeMessages(Ht),"fr-FR":ce.normalizeMessages(Ut),"pt-BR":ce.normalizeMessages(Jt)};function Ge(e){if(typeof e=="string"||typeof e=="number")return e;if("id"in e)return e.id;throw new Error("ComboBox - Item must have an 'id' property or provide getKey function")}function Xt(e){return typeof e=="string"?e:"name"in e?String(e.name):"label"in e?String(e.label):(console.warn("ComboBox - Item should have 'name' or 'label' property. Provide a getTextValue function to ensure proper item display and filtering."),String(e))}function Yt(e){return{id:e,name:e}}const Zt=e=>e?e instanceof Set?e:new Set(Array.isArray(e)?e:[e]):new Set,_t=e=>Array.from(e),Oe=o.createContext(null),Ie=()=>{const e=o.useContext(Oe);if(!e)throw new Error("Nimbus - ComboBox components must be used within ComboBox.Root");return e},He=e=>{const{name:t,form:r,selectedKeys:l,selectionMode:n,formValue:s,allowsCustomOptions:a,collection:i,inputValue:d}=e;if(!t)return null;const x=o.useMemo(()=>{if(n==="single"){const h=Array.from(l)[0];return h?s==="text"||a?Array.from(i).find(w=>w.key===h)?.textValue||d||"":String(h):""}else{const h=Array.from(l);return s==="text"||a?h.map(f=>Array.from(i).find(y=>y.key===f)?.textValue||"").filter(Boolean).join(","):h.join(",")}},[n,l,s,a,i,d]);return m.jsx("input",{type:"hidden",name:t,form:typeof r=="string"?r:void 0,value:x})};He.displayName="ComboBoxHiddenInput";function Ue(e){let t;[e,t]=Le.$64fa3d84918910a7$export$29f1550f4b0d4415(e,null,Rt);const{selectionMode:r="single",size:l="md",getKey:n=Ge,getTextValue:s=Xt,children:a,leadingElement:i,inputValue:d,onInputChange:x,isLoading:h,allowsEmptyMenu:f,renderEmptyState:w,async:y,filter:I,allowsCustomOptions:O=!1,isDisabled:M=!1,isInvalid:b=!1,isRequired:A=!1,isReadOnly:K=!1}=e,G=ht.useSlotRecipe({key:"combobox"}),[H,N]=G.splitVariantProps(e),[U,ee]=de.extractStyleProps(N),P=o.useRef(null),J=o.useRef(null),[te,re]=o.useState([]),B=Bt({getKey:n,async load({signal:R,filterText:k}){if(!y)return{items:[]};const C=y.minSearchLength??0;if(!k||k.length<C)return{items:[]};try{return{items:await y.load(k,R)}}catch(F){if(F.name==="AbortError")throw F;const Y=F;return y.onError?.(Y),{items:[]}}}}),[fe,X]=o.useState(d),[v,E]=o.useState(!1),[V,W]=o.useState([]),Me=y?.debounce??300,he=At(R=>{E(!1),B.setFilterText(R)},Me),ve=o.useCallback(R=>{X(R),E(!0),he(R)},[he]),j=y?fe:d,Ce=y?ve:x,Q=y?v||B.loadingState==="loading"||B.loadingState==="loadingMore"||B.loadingState==="filtering":h,Se=y||O?!0:f,$e=o.useCallback(()=>Q?j?.length?`loading results for "${j}"`:"loading results":j?.length&&y?.minSearchLength&&j.length>=y.minSearchLength?`no results for "${j}"`:y?.minSearchLength?`enter at least ${y?.minSearchLength} characters`:"type to search",[y?.minSearchLength,Q,j]),we=o.useCallback(()=>Q?j?.length?`loading results for "${j}"`:"loading results":'hit "enter" to create an option',[Q,j]),me=(O?we:y?$e:void 0)??w,le=o.useMemo(()=>{const R=y?Array.from(B.items):e.items,k=R?Array.from(R):[],C=new Set(k.map(ne=>n(ne)));let Y=[...te.filter(ne=>!C.has(n(ne))),...k];if(y&&r==="multiple"&&V.length>0){const ne=new Set(Y.map(L=>n(L)));Y=[...V.filter(L=>!ne.has(n(L))),...Y]}return Y},[y,B.items,e.items,te,V,r,n]),ge=o.useMemo(()=>({selectionMode:r,size:l,getKey:n,getTextValue:s,leadingElement:i,triggerRef:P,inputRef:J,isLoading:Q,isDisabled:M,isRequired:A,isInvalid:b,isReadOnly:K}),[r,n,s,i,P,J,M,A,b,K]),ye=o.useMemo(()=>{if(le)return Array.from(le).map(R=>{const k="id"in R,C="textValue"in R;return k&&C?R:{...R,...k?{}:{id:n(R)},...C?{}:{textValue:s(R)}}})},[le,n,s]),Be=o.useMemo(()=>m.jsx(Oe.Provider,{value:ge,children:m.jsx(ue.$eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider,{value:{items:ye},children:typeof a=="function"?a({isOpen:!1,isDisabled:M,isInvalid:b,isRequired:A,defaultChildren:null}):a})}),[a,M,b,A,ye,ge]);return m.jsx(Le.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{}],[xe.$3985021b0ad6602f$export$37fb8590cf2c088c,{}],[ae.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{}]],children:m.jsx(Oe.Provider,{value:ge,children:m.jsx(Ft,{ref:t,...H,...U,size:l,"data-disabled":M,"data-invalid":b,"data-required":A,"data-readonly":K,"data-open":e.isOpen,role:"group",children:m.jsx(We.$e1995378a142960e$export$bf788dd355e3a401,{content:Be,children:R=>m.jsx(er,{...ee,size:l,filter:I,selectionMode:r,inputValue:j,onInputChange:Ce,getKey:n,getTextValue:s,allowsEmptyMenu:Se,renderEmptyState:me,isDisabled:M,isRequired:A,isInvalid:b,isReadOnly:K,collection:R,allowsCustomOptions:O,asyncConfig:y,onAsyncSelectedItemsChange:y&&r==="multiple"?W:void 0,onAddCustomItem:re,onAddAsyncSelectedItem:W})})})})})}Ue.displayName="ComboBox.Root";const er=e=>{const t=ce.useLocalizedStringFormatter(Qt),{selectionMode:r="single",items:l,collection:n,getKey:s=Ge,children:a,selectedKeys:i=[],onSelectionChange:d,disabledKeys:x,inputValue:h="",onInputChange:f,filter:w,placeholder:y,menuTrigger:I="input",shouldCloseOnBlur:O=!0,shouldCloseOnSelect:M=!0,isOpen:b,defaultOpen:A=!1,onOpenChange:K,allowsEmptyMenu:G=!1,renderEmptyState:H,allowsCustomOptions:N=!1,isValidNewOption:U,getNewOptionData:ee=Yt,onCreateOption:P,"aria-label":J,"aria-labelledby":te,"aria-describedby":re,isDisabled:B=!1,isRequired:fe=!1,isInvalid:X=!1,isReadOnly:v=!1,shouldFocusWrap:E=!0,autoFocus:V=!1,name:W,formValue:Me,validationBehavior:he="aria",form:ve,validate:j,isLoading:Ce,asyncConfig:Q,onAsyncSelectedItemsChange:Se,onAddCustomItem:$e,onAddAsyncSelectedItem:we}=e,pe=Ne.$bdb11010cef70236$export$f680877a34711e37(),me=Ne.$bdb11010cef70236$export$f680877a34711e37(),le=o.useRef(null),ge=o.useRef(null),ye=o.useMemo(()=>Zt(i),[i]),Be=!!d,[R,k]=o.useState(ye),C=Be?ye:R,F=f!==void 0,Y=()=>{if(h)return h;if(F||r!=="single")return"";const c=Array.from(C);if(c.length===0)return"";const u=c[0];return n.getItem(u)?.textValue??""},[ne,Z]=o.useState(Y),L=F?h:ne,_=o.useRef(L),[rt,Te]=o.useState(A),S=b??rt,[Re,be]=o.useState(null),T=o.useCallback(c=>{b===void 0&&Te(c),K?.(c)},[b,K]),nt=o.useMemo(()=>{if(L.trim()==="")return n;if(r==="single"){const u=Array.from(C);if(u.length>0){const p=u[0];if(n.getItem(p)?.textValue===L)return n}}if(w){const u=Array.from(n),p=Array.from(w(u,L)),$=new Set(p.map(Ke=>Ke.key));return n.filter?.((Ke,Ae)=>$.has(Ae.key))??n}const c=L.toLowerCase();return n.filter?.(u=>u.toLowerCase().includes(c))??n},[n,L,w,r,C]),ot=o.useMemo(()=>r==="multiple"?Array.from(C).map(c=>n.getItem(c)?.value).filter(c=>c!==void 0):[],[r,C,n]),[st,lt]=o.useState(null),it=o.useCallback(()=>{const c=b===void 0?!S:!b;b===void 0?Te(u=>!u):K?.(!b),c&&(oe.current?.focus(),be("first"))},[b,S,K]),ct=o.useCallback(c=>{F||Z(c),f?.(c),I==="input"&&c!==_.current&&T(!0),_.current=c},[F,f,I,T]),z=o.useCallback((c,u)=>{let p=c==="all"?new Set(Array.from(n).map(D=>D.key)):c;const $=u??C,Ke=p.size>0&&Array.from(p).every(D=>$.has(D))&&p.size<$.size;if(r==="multiple"&&p.size===1&&!Ke){const D=Array.from(p)[0],ie=$.has(D),se=new Set($);ie?se.delete(D):se.add(D),p=se}const Ae=_t(p);if(d?d(Ae):k(p),Q&&r==="multiple"&&Se){const D=Array.from(p).map(ie=>n.getItem(ie)?.value).filter(ie=>ie!==void 0);Se(D)}if(r==="single"){const D=Array.from(p)[0];if(D!==null){const se=n.getItem(D)?.textValue??"";F||(Z(se),_.current=se),f?.(se)}M&&T(!1)}},[n,r,C,d,f,M,T,F]),g=It.$e72dd72e1c76a225$export$2f645645f7bca764({selectionMode:r,collection:nt,selectedKeys:C,onSelectionChange:z,disabledKeys:x}),at=o.useCallback(()=>{g.selectionManager.setSelectedKeys(new Set),r==="single"&&(F||(Z(""),_.current=""),f?.(""))},[g.selectionManager,r,F,f]),Pe=o.useCallback(c=>{$e?.($=>[...$,c]),Q&&r==="multiple"&&we?.($=>[...$,c]);const u=s(c),p=C;if(r==="single")z(new Set([u]),p);else{const $=new Set(p);$.add(u),z($,p)}},[$e,Q,r,we,s,C,z]),Ve=o.useCallback(()=>{if(!N)return!1;const c=L.trim();if(!c||Array.from(n).some($=>$.textValue?.toLowerCase()===c.toLowerCase())||U&&!U(c))return!1;const p=ee(c);return Pe(p),r==="multiple"?(F||(Z(""),_.current=""),f?.("")):(F||(Z(c),_.current=c),f?.(c)),P?.(p),!0},[N,ee,U,L,n,r,f,P,Pe,F,Z,_]),ut=o.useCallback(c=>{if(B||v)return;const u=C,p=new Set(u);c.forEach($=>p.delete($)),z(p,u),p.size===0&&oe.current?.focus()},[C,z,B,v]),dt=o.useCallback(c=>{switch(c.key){case"ArrowDown":if(c.preventDefault(),!S)T(!0),be("first");else{const u=g.selectionManager.focusedKey,p=u?g.collection.getKeyAfter(u):g.collection.getFirstKey();g.selectionManager.setFocusedKey(p??g.collection.getFirstKey())}break;case"ArrowUp":if(c.preventDefault(),!S)T(!0),be("last");else{const u=g.selectionManager.focusedKey,p=u?g.collection.getKeyBefore(u):g.collection.getLastKey();g.selectionManager.setFocusedKey(p??g.collection.getLastKey())}break;case"Enter":if(S&&g.selectionManager.focusedKey){c.preventDefault();const u=g.selectionManager.focusedKey;if(r==="multiple"){const p=new Set(C);p.has(u)?p.delete(u):p.add(u),z(p)}else z(new Set([u])),g.selectionManager.setFocusedKey(null)}else S&&!g.selectionManager.focusedKey&&N&&Ve()&&c.preventDefault();break;case"Escape":S&&(c.preventDefault(),T(!1),g.selectionManager.setFocusedKey(null));break;case"Home":if(S){c.preventDefault();const u=g.collection.getFirstKey();g.selectionManager.setFocusedKey(u)}break;case"End":if(S){c.preventDefault();const u=g.collection.getLastKey();g.selectionManager.setFocusedKey(u)}break;case"Backspace":if(L===""){const u=Array.from(C);if(u.length>0)if(c.preventDefault(),r==="single")z(new Set);else{const p=new Set(u);p.delete(u[u.length-1]),z(p)}}break}},[S,g.selectionManager,g.collection,z,T,be,r,L,C,N,Ve]),ft=o.useCallback(()=>{I==="focus"&&!B&&!v&&T(!0),r==="single"&&L&&oe.current&&oe.current.select()},[I,B,v,T,r,L]),pt=o.useCallback(c=>{if(!O)return;const u=c.currentTarget;setTimeout(()=>{const p=document.activeElement;u.contains(p)||T(!1)},150)},[O,T]),je=o.useRef(null);o.useEffect(()=>{V&&oe.current&&!B&&oe.current.focus()},[V,B]);const De=o.useRef(S);o.useEffect(()=>{b===void 0&&De.current!==S&&(De.current=S,K?.(S))},[S,b,K]),o.useEffect(()=>{if(r!=="single")return;const c=Array.from(g.selectionManager.selectedKeys),u=c.length>0?c[0]:null;if(u===je.current)return;je.current=u;const p=u!==null?g.collection.getItem(u):null;if(u!==null&&!p)return;const $=p?.textValue??"";F?f?.($):(Z($),_.current=$)},[r,g.selectionManager.selectedKeys,g.collection,F,f]),o.useEffect(()=>{if(S&&Re){const c=Re==="first"?g.collection.getFirstKey():g.collection.getLastKey();g.selectionManager.setFocusedKey(c??null),be(null)}},[S,Re,g.collection,g.selectionManager]),o.useEffect(()=>{S?g.selectionManager.setFocused(!0):(g.selectionManager.setFocused(!1),g.selectionManager.setFocusedKey(null))},[S,g.selectionManager]);const ke=o.useRef(!1);g.collection.size>0&&(ke.current=!0),o.useEffect(()=>{if(!S||G||Ce||!ke.current)return;g.collection.size>0||T(!1)},[S,G,Ce,g.collection.size,T,L]);const{triggerRef:ze,inputRef:oe}=Ie();o.useEffect(()=>{const c=ze.current;if(!c)return;const u=()=>{const $=c.offsetWidth;lt(`${$}px`)};u();const p=new ResizeObserver(u);return p.observe(c),()=>{p.disconnect()}},[]);const mt=[[xe.$3985021b0ad6602f$export$37fb8590cf2c088c,{ref:oe,role:"combobox","aria-autocomplete":"list","aria-controls":r==="multiple"?`${me} ${pe}`:pe,"aria-expanded":S,"aria-activedescendant":g.selectionManager.focusedKey?`${pe}-option-${g.selectionManager.focusedKey}`:void 0,"aria-describedby":r==="multiple"?`${me} ${re??""}`:re,"aria-label":J,"aria-labelledby":te,value:L,onChange:c=>ct(c.target.value),onKeyDown:dt,onFocus:ft,onBlur:pt,disabled:B,readOnly:v,required:fe,"aria-invalid":X,placeholder:y,name:W,form:ve,validationbehavior:he,validate:j}],[ae.$eaf9e70818b436db$export$5b07b5dd2cbd96e3,{id:me,"aria-label":t.format("selectedValues"),items:ot,onRemove:ut}],[Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{toggle:{onPress:it,"aria-label":t.format("toggleOptions"),isDisabled:B||v,isPressed:S},clear:{onPress:at,"aria-label":t.format("clearSelection"),style:C.size>0?void 0:{display:"none"},isDisabled:B||v||g.selectionManager.selectedKeys.size===0}}}],[$t.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{isOpen:S,onOpenChange:()=>{},ref:ge,triggerRef:ze,scrollRef:le,isNonModal:!0,trigger:"ComboBox",placement:"bottom start",style:{"--nimbus-combobox-trigger-width":st},clearContexts:[St.$01b77f81d0f07f68$export$75b6ee27786ba447,Fe.$d2b4bc8c273e7be6$export$24d547caef80ccd1,xe.$3985021b0ad6602f$export$37fb8590cf2c088c,Ct.$a049562f99e7db0e$export$f9c6924e160136d1,wt.$514c0188e459b4c0$export$9afb8bc826b033ea]}],[vt.$4e85f108e88277b8$export$b0d3ecf7112093a7,{shouldUseVirtualFocus:!0}],[ue.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{items:l,id:pe,ref:le,renderEmptyState:H,shouldFocusWrap:E,"aria-label":t.format("options")}],[ue.$eed445e0843c11d0$export$7c5906fe4f1f2af2,g]];return m.jsxs(Le.$64fa3d84918910a7$export$2881499e37b75b9a,{values:mt,children:[m.jsx(He,{name:W,form:ve,selectedKeys:C,selectionMode:r,formValue:Me,allowsCustomOptions:N,collection:g.collection,inputValue:L}),a]})},Je=e=>{const[t,r]=de.extractStyleProps(e),l=o.useContext(xe.$3985021b0ad6602f$export$37fb8590cf2c088c),{inputRef:n}=Ie();let s="",a="";l&&typeof l=="object"&&"value"in l&&(s=l.value||"",a=l.placeholder||"");const i=Math.max(s.length||a.length||1,1);return m.jsx(Vt,{asChild:!0,...t,children:m.jsx(xe.$3985021b0ad6602f$export$f5b8910cec6cf069,{ref:n,...r,size:i,"data-empty":!(s.length||a.length)})})};Je.displayName="ComboBox.Input";const tr=({children:e})=>m.jsx(Ot,{children:e}),Qe=e=>{const{selectionMode:t,size:r,getKey:l,getTextValue:n,isDisabled:s,isReadOnly:a}=Ie(),[i,d]=de.extractStyleProps(e),x=o.useContext(ae.$eaf9e70818b436db$export$5b07b5dd2cbd96e3),h=(x&&"items"in x?x.items:void 0)??[];return t!=="multiple"?null:m.jsx(Pt,{...i,...d,asChild:!0,children:m.jsx(ae.TagGroup.Root,{size:r,children:m.jsx(ae.TagGroup.TagList,{items:h,display:"contents",children:f=>{const w=l(f),y=n(f);return m.jsx(ae.TagGroup.Tag,{id:w,textValue:y,isDisabled:s||a,maxW:"100%",children:y})}})})})};Qe.displayName="ComboBox.TagGroup";const Xe=({children:e,...t})=>{const{triggerRef:r,leadingElement:l,inputRef:n,isLoading:s,isDisabled:a}=Ie(),i=d=>{!a&&d.target instanceof HTMLElement&&!d.target.closest("button")&&n.current?.focus()};return m.jsxs(Lt,{ref:r,onClick:i,...t,children:[l&&m.jsx(tr,{children:l}),m.jsxs(Tt,{children:[m.jsx(Qe,{}),m.jsx(Je,{})]}),m.jsx(qe.IconButton,{slot:"clear",size:"2xs",variant:"ghost",colorPalette:"primary",children:m.jsx(Ee.Close,{})}),m.jsx(qe.IconButton,{slot:"toggle",size:"2xs",variant:"ghost",colorPalette:"neutral",excludeFromTabOrder:!0,children:s?m.jsx(xt.LoadingSpinner,{size:"xs",margin:"50"}):m.jsx(Ee.KeyboardArrowDown,{})}),e]})};Xe.displayName="ComboBox.Trigger";const Ye=({children:e,ref:t,...r})=>{const[l,n]=de.extractStyleProps(r);return m.jsx(jt,{asChild:!0,...l,children:m.jsx(bt.Popover,{ref:t,isNonModal:!0,autoFocus:!0,...n,children:e})})};Ye.displayName="ComboBox.Popover";function Ze({children:e,ref:t,...r}){const[l,n]=de.extractStyleProps(r),s=typeof e=="function"?a=>{const i=e(a),d=a;return o.isValidElement(i)&&(d.id||d.textValue)?o.cloneElement(i,{...i.props,...d.id?{id:d.id}:{},...d.textValue?{textValue:d.textValue}:{}}):i}:e;return m.jsx(Dt,{...l,ref:t,asChild:!0,children:m.jsx(ue.$eed445e0843c11d0$export$41f133550aa26f48,{...n,children:s})})}Ze.displayName="ComboBox.ListBox";function _e({children:e,ref:t,...r}){const[l,n]=de.extractStyleProps(r);return m.jsx(zt,{...l,asChild:!0,children:m.jsx(ue.$eed445e0843c11d0$export$a11e76429ed99b4,{ref:t,...n,children:s=>{const a=typeof e=="function"?e({...s}):e;return s.selectionMode==="multiple"?m.jsxs(m.Fragment,{children:[m.jsx(qt,{children:m.jsx("span",{"data-selected":s.isSelected,children:s.isSelected&&m.jsx(Ee.Check,{})})}),m.jsx(Nt,{children:a})]}):m.jsx(m.Fragment,{children:a})}})})}_e.displayName="ComboBox.Option";function et({children:e,label:t,items:r,ref:l,...n}){if(r&&typeof e!="function")throw new Error('ComboBox.Section: When "items" is provided, "children" must be a function');return m.jsxs(ue.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:l,...n,children:[t&&m.jsx(kt,{asChild:!0,children:m.jsx(gt.$72a5793c14baf454$export$8b251419efc915eb,{children:t})}),r?m.jsx(We.$e1995378a142960e$export$fb8073518f34e6ec,{items:r,children:s=>typeof e=="function"?e(s):null}):e]})}et.displayName="ComboBox.Section";function tt(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const n of e)n.textValue.toLowerCase().includes(r)&&l.push(n);return l}function rr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const n of e)n.textValue.toLowerCase().startsWith(r)&&l.push(n);return l}function nr(e,t){if(!t.trim())return e;const r=[];for(const l of e)l.textValue.includes(t)&&r.push(l);return r}function or(e,t){if(!t.trim())return e;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(`\\b${r}`,"i"),n=[];for(const s of e)l.test(s.textValue)&&n.push(s);return n}function sr(e,t){if(!t.trim())return e;const r=t.toLowerCase(),l=[];for(const n of e){const s=n.textValue.toLowerCase();let a=0;for(let i=0;i<s.length&&a<r.length;i++)s[i]===r[a]&&a++;a===r.length&&l.push(n)}return l}function lr(e){return(t,r)=>{if(!r.trim())return t;const l=r.toLowerCase(),n=[];for(const s of t){const a=s.value;if(!a)continue;e.some(d=>{const x=d.split(".").reduce((f,w)=>f&&typeof f=="object"?f[w]:void 0,a);return x==null?!1:String(x).toLowerCase().includes(l)})&&n.push(s)}return n}}function ir(e){return(t,r)=>{if(!r.trim())return t;const l=[];for(const n of t){const s=e(n,r);s>0&&l.push({node:n,score:s})}return l.sort((n,s)=>s.score-n.score),l.map(n=>n.node)}}function cr(e=tt){return(t,r)=>{if(!r.trim())return t;const l=r.split(/\s+/).filter(a=>a.length>0);if(l.length===0)return t;const n=new Set;for(const a of l){const i=e(t,a);for(const d of i)n.add(d.key)}const s=[];for(const a of t)n.has(a.key)&&s.push(a);return s}}function ar(e){return(t,r)=>{if(!r.trim())return t;const l=[];let n=null;const s=[],a=()=>{n&&s.length>0&&(l.push(n),l.push(...s)),s.length=0};for(const i of t)if(i.type==="section")a(),n=i;else{const d=Array.from(e([i],r));d.length>0&&s.push(...d)}return a(),l}}const ur={Root:Ue,Trigger:Xe,Popover:Ye,ListBox:Ze,Option:_e,Section:et,filters:{filterByText:tt,filterByStartsWith:rr,filterByCaseSensitive:nr,filterByWordBoundary:or,filterByFuzzy:sr,createMultiPropertyFilter:lr,createRankedFilter:ir,createMultiTermFilter:cr,createSectionAwareFilter:ar}};exports.ComboBox=ur;
2
- //# sourceMappingURL=combobox-B7ck7gxL.cjs.js.map