@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
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),f=require("./money-input-C9eVmgeL.cjs.js"),r=require("./form-field-FdRNl2bZ.cjs.js"),h=require("./field-errors-aqrV93vp.cjs.js"),t=({id:l,label:F,description:n,info:o,errors:s,renderError:c,touched:u=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:x=!1,size:i="md",...I})=>{const d=u&&s&&Object.values(s).some(Boolean);return e.jsxs(r.FormField.Root,{id:l,size:i,isInvalid:d||x,isRequired:a,isDisabled:m,isReadOnly:j,children:[e.jsx(r.FormField.Label,{children:F}),e.jsx(r.FormField.Input,{children:e.jsx(f.MoneyInput,{size:i,...I})}),n&&e.jsx(r.FormField.Description,{children:n}),o&&e.jsx(r.FormField.InfoBox,{children:o}),d&&e.jsx(r.FormField.Error,{children:e.jsx(h.FieldErrors,{id:`${l}-errors`,errors:s,renderError:c})})]})};t.displayName="MoneyInputField";exports.MoneyInputField=t;
2
- //# sourceMappingURL=money-input-field-BGZ_9HKh.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),f=require("./money-input-CBKb1D73.cjs.js"),r=require("./form-field-52--hhlj.cjs.js"),h=require("./field-errors-aqrV93vp.cjs.js"),t=({id:l,label:F,description:n,info:o,errors:s,renderError:c,touched:u=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:x=!1,size:i="md",...I})=>{const d=u&&s&&Object.values(s).some(Boolean);return e.jsxs(r.FormField.Root,{id:l,size:i,isInvalid:d||x,isRequired:a,isDisabled:m,isReadOnly:j,children:[e.jsx(r.FormField.Label,{children:F}),e.jsx(r.FormField.Input,{children:e.jsx(f.MoneyInput,{size:i,...I})}),n&&e.jsx(r.FormField.Description,{children:n}),o&&e.jsx(r.FormField.InfoBox,{children:o}),d&&e.jsx(r.FormField.Error,{children:e.jsx(h.FieldErrors,{id:`${l}-errors`,errors:s,renderError:c})})]})};t.displayName="MoneyInputField";exports.MoneyInputField=t;
2
+ //# sourceMappingURL=money-input-field-DjpKPCGo.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"money-input-field-BGZ_9HKh.cjs.js","sources":["../../src/patterns/fields/money-input-field/money-input-field.tsx"],"sourcesContent":["import { MoneyInput } from \"@/components/money-input/money-input\";\nimport { FormField, FieldErrors } from \"@/components\";\nimport type { MoneyInputFieldProps } from \"./money-input-field.types\";\n\n/**\n * # MoneyInputField\n *\n * A pre-composed form field component that combines MoneyInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for monetary input use cases, combining\n * a currency selector and amount input into a single field.\n *\n * Contains two focusable inputs: currency selector and amount input.\n *\n * @supportsStyleProps\n *\n * @example\n * ```tsx\n * <MoneyInputField\n * label=\"Product Price\"\n * description=\"Enter the product price with currency\"\n * currencies={[\"USD\", \"EUR\", \"GBP\", \"JPY\"]}\n * value={{ amount: \"99.99\", currencyCode: \"USD\" }}\n * onValueChange={setValue}\n * errors={{ missing: true }}\n * touched={touched}\n * isRequired\n * />\n * ```\n */\n\nexport const MoneyInputField = ({\n id,\n label,\n description,\n info,\n errors,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n ...moneyInputProps\n}: MoneyInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isInvalid={hasErrors || isInvalid}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MoneyInput size={size} {...moneyInputProps} />\n </FormField.Input>\n\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors\n id={`${id}-errors`}\n errors={errors}\n renderError={renderError}\n />\n </FormField.Error>\n )}\n </FormField.Root>\n );\n};\n\nMoneyInputField.displayName = \"MoneyInputField\";\n"],"names":["MoneyInputField","id","label","description","info","errors","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","moneyInputProps","hasErrors","jsxs","FormField","jsx","MoneyInput","FieldErrors"],"mappings":"mLAgCaA,EAAkB,CAAC,CAC9B,GAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,OAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,GACV,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,UAAAC,EAAY,GACZ,KAAAC,EAAO,KACP,GAAGC,CACL,IAA4B,CAE1B,MAAMC,EAAYP,GAAWF,GAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO,EAEzE,OACEU,EAAAA,KAACC,EAAAA,UAAU,KAAV,CACC,GAAAf,EACA,KAAAW,EACA,UAAWE,GAAaH,EACxB,WAAAH,EACA,WAAAC,EACA,WAAAC,EAEA,SAAA,CAAAO,EAAAA,IAACD,EAAAA,UAAU,MAAV,CAAiB,SAAAd,CAAA,CAAM,EACxBe,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,eAACE,EAAAA,WAAA,CAAW,KAAAN,EAAa,GAAGC,CAAA,CAAiB,CAAA,CAC/C,EAECV,GACCc,EAAAA,IAACD,EAAAA,UAAU,YAAV,CAAuB,SAAAb,EAAY,EAGrCC,GAAQa,EAAAA,IAACD,EAAAA,UAAU,QAAV,CAAmB,SAAAZ,EAAK,EACjCU,GACCG,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACE,EAAAA,YAAA,CACC,GAAI,GAAGlB,CAAE,UACT,OAAAI,EACA,YAAAC,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CAIR,EAEAN,EAAgB,YAAc"}
1
+ {"version":3,"file":"money-input-field-DjpKPCGo.cjs.js","sources":["../../src/patterns/fields/money-input-field/money-input-field.tsx"],"sourcesContent":["import { MoneyInput } from \"@/components/money-input/money-input\";\nimport { FormField, FieldErrors } from \"@/components\";\nimport type { MoneyInputFieldProps } from \"./money-input-field.types\";\n\n/**\n * # MoneyInputField\n *\n * A pre-composed form field component that combines MoneyInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for monetary input use cases, combining\n * a currency selector and amount input into a single field.\n *\n * Contains two focusable inputs: currency selector and amount input.\n *\n * @supportsStyleProps\n *\n * @example\n * ```tsx\n * <MoneyInputField\n * label=\"Product Price\"\n * description=\"Enter the product price with currency\"\n * currencies={[\"USD\", \"EUR\", \"GBP\", \"JPY\"]}\n * value={{ amount: \"99.99\", currencyCode: \"USD\" }}\n * onValueChange={setValue}\n * errors={{ missing: true }}\n * touched={touched}\n * isRequired\n * />\n * ```\n */\n\nexport const MoneyInputField = ({\n id,\n label,\n description,\n info,\n errors,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n ...moneyInputProps\n}: MoneyInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isInvalid={hasErrors || isInvalid}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MoneyInput size={size} {...moneyInputProps} />\n </FormField.Input>\n\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors\n id={`${id}-errors`}\n errors={errors}\n renderError={renderError}\n />\n </FormField.Error>\n )}\n </FormField.Root>\n );\n};\n\nMoneyInputField.displayName = \"MoneyInputField\";\n"],"names":["MoneyInputField","id","label","description","info","errors","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","moneyInputProps","hasErrors","jsxs","FormField","jsx","MoneyInput","FieldErrors"],"mappings":"mLAgCaA,EAAkB,CAAC,CAC9B,GAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,OAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,GACV,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,UAAAC,EAAY,GACZ,KAAAC,EAAO,KACP,GAAGC,CACL,IAA4B,CAE1B,MAAMC,EAAYP,GAAWF,GAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO,EAEzE,OACEU,EAAAA,KAACC,EAAAA,UAAU,KAAV,CACC,GAAAf,EACA,KAAAW,EACA,UAAWE,GAAaH,EACxB,WAAAH,EACA,WAAAC,EACA,WAAAC,EAEA,SAAA,CAAAO,EAAAA,IAACD,EAAAA,UAAU,MAAV,CAAiB,SAAAd,CAAA,CAAM,EACxBe,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,eAACE,EAAAA,WAAA,CAAW,KAAAN,EAAa,GAAGC,CAAA,CAAiB,CAAA,CAC/C,EAECV,GACCc,EAAAA,IAACD,EAAAA,UAAU,YAAV,CAAuB,SAAAb,EAAY,EAGrCC,GAAQa,EAAAA,IAACD,EAAAA,UAAU,QAAV,CAAmB,SAAAZ,EAAK,EACjCU,GACCG,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACE,EAAAA,YAAA,CACC,GAAI,GAAGlB,CAAE,UACT,OAAAI,EACA,YAAAC,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAAA,CAIR,EAEAN,EAAgB,YAAc"}
@@ -1,2 +1,2 @@
1
- "use strict";const d=require("react/jsx-runtime"),l=require("react"),x=require("@chakra-ui/react"),P=require("@chakra-ui/react/styled-system"),f=require("./utils-DVb3jcp5.cjs.js"),H=require("./useHover-xrdh1GG9.cjs.js"),I=require("./useFocusRing-B7_ogYbr.cjs.js"),R=require("./mergeProps-CxnHrnow.cjs.js"),T=require("./extract-style-props-B4hqila-.cjs.js"),q=require("./index-CVXB9mwf.cjs.js"),S=require("./useObjectRef-4v2MxSjQ.cjs.js"),y=require("./useTextField-B1RrrtMI.cjs.js"),F=l.createContext({});let w=r=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,...e}=r;return e};const C=l.forwardRef(function(t,n){[t,n]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(t,n,F);let{hoverProps:s,isHovered:e}=H.$6179b936705e76d3$export$ae780daf29e6d456(t),{isFocused:i,isFocusVisible:c,focusProps:a}=I.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:t.autoFocus}),o=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",u=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,values:{isHovered:e,isFocused:i,isFocusVisible:c,isDisabled:t.disabled||!1,isInvalid:o},defaultClassName:"react-aria-TextArea"});return l.createElement("textarea",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(w(t),a,s),...u,ref:n,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":e||void 0,"data-focus-visible":c||void 0,"data-invalid":o||void 0})}),{withContext:$,withProvider:E}=x.createSlotRecipeContext({key:"multilineTextInput"}),j=E("div","root"),M=$("div","leadingElement"),N=$("textarea","textarea");function V(r,t={}){const{enabled:n=!1}=t,s=l.useCallback(()=>{const e=r.current;if(!e||!n)return;e.style.height="auto";const i=e.scrollHeight,c=window.getComputedStyle(e),a=parseInt(c.maxHeight,10),o=!isNaN(a)&&a>0?Math.min(i,a):i;e.style.height=`${o}px`},[n]);l.useEffect(()=>{const e=r.current;if(!e||!n)return;s();const i=()=>{s()};return e.addEventListener("input",i),()=>{e.removeEventListener("input",i)}},[s,n])}const p=r=>{const{ref:t,leadingElement:n,rows:s=1,autoGrow:e=!1,...i}=r,c=P.useRecipe({recipe:q.multilineTextInputRecipe}),a=l.useRef(null),o=S.$df56164dff5785e2$export$4338b53315abf666(x.mergeRefs(a,t)),[u,v]=c.splitVariantProps(i),[b,h]=T.extractStyleProps(v),{inputProps:m}=y.$2d73ec29415bd339$export$712718f7aec83d5(h,o);V(o,{enabled:e});const g={"data-disabled":i.isDisabled?"true":void 0,"data-invalid":i.isInvalid?"true":"false"};return d.jsx(j,{className:r?.className,...u,...b,...g,children:d.jsxs(d.Fragment,{children:[n&&d.jsx(M,{children:n}),d.jsx(N,{asChild:!0,children:d.jsx(C,{ref:o,rows:s,...m})})]})})};p.displayName="MultilineTextInput";exports.MultilineTextInput=p;
2
- //# sourceMappingURL=multiline-text-input-CULLuZBp.cjs.js.map
1
+ "use strict";const d=require("react/jsx-runtime"),l=require("react"),x=require("@chakra-ui/react"),P=require("@chakra-ui/react/styled-system"),f=require("./utils-DVb3jcp5.cjs.js"),H=require("./useHover-xrdh1GG9.cjs.js"),I=require("./useFocusRing-B7_ogYbr.cjs.js"),R=require("./mergeProps-CxnHrnow.cjs.js"),T=require("./extract-style-props-BvvBKXOu.cjs.js"),q=require("./index-CBRmb4jF.cjs.js"),S=require("./useObjectRef-4v2MxSjQ.cjs.js"),y=require("./useTextField-B1RrrtMI.cjs.js"),F=l.createContext({});let w=r=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,...e}=r;return e};const C=l.forwardRef(function(t,n){[t,n]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(t,n,F);let{hoverProps:s,isHovered:e}=H.$6179b936705e76d3$export$ae780daf29e6d456(t),{isFocused:i,isFocusVisible:c,focusProps:a}=I.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:t.autoFocus}),o=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",u=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,values:{isHovered:e,isFocused:i,isFocusVisible:c,isDisabled:t.disabled||!1,isInvalid:o},defaultClassName:"react-aria-TextArea"});return l.createElement("textarea",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(w(t),a,s),...u,ref:n,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":e||void 0,"data-focus-visible":c||void 0,"data-invalid":o||void 0})}),{withContext:$,withProvider:E}=x.createSlotRecipeContext({key:"multilineTextInput"}),j=E("div","root"),M=$("div","leadingElement"),N=$("textarea","textarea");function V(r,t={}){const{enabled:n=!1}=t,s=l.useCallback(()=>{const e=r.current;if(!e||!n)return;e.style.height="auto";const i=e.scrollHeight,c=window.getComputedStyle(e),a=parseInt(c.maxHeight,10),o=!isNaN(a)&&a>0?Math.min(i,a):i;e.style.height=`${o}px`},[n]);l.useEffect(()=>{const e=r.current;if(!e||!n)return;s();const i=()=>{s()};return e.addEventListener("input",i),()=>{e.removeEventListener("input",i)}},[s,n])}const p=r=>{const{ref:t,leadingElement:n,rows:s=1,autoGrow:e=!1,...i}=r,c=P.useRecipe({recipe:q.multilineTextInputRecipe}),a=l.useRef(null),o=S.$df56164dff5785e2$export$4338b53315abf666(x.mergeRefs(a,t)),[u,v]=c.splitVariantProps(i),[b,h]=T.extractStyleProps(v),{inputProps:m}=y.$2d73ec29415bd339$export$712718f7aec83d5(h,o);V(o,{enabled:e});const g={"data-disabled":i.isDisabled?"true":void 0,"data-invalid":i.isInvalid?"true":"false"};return d.jsx(j,{className:r?.className,...u,...b,...g,children:d.jsxs(d.Fragment,{children:[n&&d.jsx(M,{children:n}),d.jsx(N,{asChild:!0,children:d.jsx(C,{ref:o,rows:s,...m})})]})})};p.displayName="MultilineTextInput";exports.MultilineTextInput=p;
2
+ //# sourceMappingURL=multiline-text-input-DN9yF7Di.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiline-text-input-CULLuZBp.cjs.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/TextArea.mjs","../../src/components/multiline-text-input/multiline-text-input.slots.tsx","../../src/components/multiline-text-input/hooks/use-autogrow.ts","../../src/components/multiline-text-input/multiline-text-input.tsx"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n MultilineTextInputRootSlotProps,\n MultilineTextInputLeadingElementSlotProps,\n MultilineTextInputTextAreaSlotProps,\n} from \"./multiline-text-input.types\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({\n key: \"multilineTextInput\",\n});\n\n/**\n * Root component that provides the styling context for the MultilineTextInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const MultilineTextInputRootSlot = withProvider<\n HTMLDivElement,\n MultilineTextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const MultilineTextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n MultilineTextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const MultilineTextInputTextAreaSlot = withContext<\n HTMLTextAreaElement,\n MultilineTextInputTextAreaSlotProps\n>(\"textarea\", \"textarea\");\n","import { useEffect, useCallback } from \"react\";\nimport type { RefObject } from \"react\";\n\ntype UseAutogrowOptions = {\n enabled?: boolean;\n};\n\n/**\n * Hook for managing textarea autogrow behavior\n *\n * @param ref - Reference to the textarea element (RefObject<HTMLTextAreaElement | null>)\n * @param options - Configuration options\n * @param options.enabled - Whether autogrow is enabled\n * @returns {void} This hook does not return a value\n *\n * @internal\n */\nexport function useAutogrow(\n ref: RefObject<HTMLTextAreaElement | null>,\n options: UseAutogrowOptions = {}\n): void {\n const { enabled = false } = options;\n\n const adjustHeight = useCallback(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Reset height to auto to get the correct scrollHeight\n textarea.style.height = \"auto\";\n\n // Calculate the new height based on content\n const contentHeight = textarea.scrollHeight;\n\n // Apply maxHeight constraint if specified\n const computedStyle = window.getComputedStyle(textarea);\n const maxHeightPxValue = parseInt(computedStyle.maxHeight, 10);\n\n // Check if maxHeight is a valid number and apply constraint\n const finalHeight =\n !isNaN(maxHeightPxValue) && maxHeightPxValue > 0\n ? Math.min(contentHeight, maxHeightPxValue)\n : contentHeight;\n\n // Set the new height\n textarea.style.height = `${finalHeight}px`;\n }, [enabled]);\n\n // Set up auto-grow behavior with event listeners\n useEffect(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Initial adjustment\n adjustHeight();\n\n // Add input event listener for real-time adjustments\n const handleInput = () => {\n adjustHeight();\n };\n\n textarea.addEventListener(\"input\", handleInput);\n\n // Cleanup\n return () => {\n textarea.removeEventListener(\"input\", handleInput);\n };\n }, [adjustHeight, enabled]);\n}\n","import { useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { TextArea } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\n\nimport {\n MultilineTextInputRootSlot,\n MultilineTextInputLeadingElementSlot,\n MultilineTextInputTextAreaSlot,\n} from \"./multiline-text-input.slots\";\nimport type { MultilineTextInputProps } from \"./multiline-text-input.types\";\nimport { multilineTextInputRecipe } from \"./multiline-text-input.recipe\";\nimport { useAutogrow } from \"./hooks\";\n\n/**\n * # Multiline Text Input\n *\n * A multiline text input component for capturing longer text content.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/forms/multiline-text-input}\n */\nexport const MultilineTextInput = (props: MultilineTextInputProps) => {\n const {\n ref: forwardedRef,\n leadingElement,\n rows = 1,\n autoGrow = false,\n ...restProps\n } = props; // The default `rows` attribute for a textarea is 2, so we need to override it\n const recipe = useRecipe({ recipe: multilineTextInputRecipe });\n\n const localRef = useRef<HTMLTextAreaElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField<\"textarea\">(functionalProps, ref);\n\n // Use autogrow hook for auto-grow functionality\n useAutogrow(ref, { enabled: autoGrow });\n\n const additionalRootProps = {\n \"data-disabled\": restProps.isDisabled ? \"true\" : undefined,\n \"data-invalid\": restProps.isInvalid ? \"true\" : \"false\",\n };\n\n return (\n <MultilineTextInputRootSlot\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...additionalRootProps}\n >\n <>\n {leadingElement && (\n <MultilineTextInputLeadingElementSlot>\n {leadingElement}\n </MultilineTextInputLeadingElementSlot>\n )}\n <MultilineTextInputTextAreaSlot asChild>\n <TextArea ref={ref} rows={rows} {...inputProps} />\n </MultilineTextInputTextAreaSlot>\n </>\n </MultilineTextInputRootSlot>\n );\n};\n\nMultilineTextInput.displayName = \"MultilineTextInput\";\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps","withContext","withProvider","createSlotRecipeContext","MultilineTextInputRootSlot","MultilineTextInputLeadingElementSlot","MultilineTextInputTextAreaSlot","useAutogrow","options","enabled","adjustHeight","useCallback","textarea","contentHeight","computedStyle","maxHeightPxValue","finalHeight","useEffect","handleInput","MultilineTextInput","forwardedRef","leadingElement","rows","autoGrow","restProps","recipe","useRecipe","multilineTextInputRecipe","localRef","useRef","useObjectRef","mergeRefs","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","inputProps","useTextField","additionalRootProps","jsx","jsxs","Fragment","TextArea"],"mappings":"keAOMA,EAA8DC,EAAAA,cAAsB,EAAE,EAC5F,IAAIC,EAA0CC,GAAQ,CAElD,GAAI,CAAE,aAAcC,EAAc,cAAeC,EAAe,WAAYC,EAAY,GAAGC,CAAU,EAAKJ,EAC1G,OAAOI,CACX,EACA,MAAMC,EAA8DC,EAAAA,WAAmB,SAAkBN,EAAOO,EAAK,CACjH,CAACP,EAAOO,CAAG,EAAQC,EAAAA,0CAA2CR,EAAOO,EAAKV,CAAyC,EACnH,GAAI,CAAE,WAAYY,EAAY,UAAWC,GAAkBC,EAAAA,0CAAiBX,CAAK,EAC7E,CAAE,UAAWY,EAAW,eAAgBC,EAAgB,WAAYC,GAAmBC,4CAAqB,CAC5G,YAAa,GACb,UAAWf,EAAM,SACzB,CAAK,EACGgB,EAAY,CAAC,CAAChB,EAAM,cAAc,GAAKA,EAAM,cAAc,IAAM,QACjEiB,EAAkBC,0CAAyC,CAC3D,GAAGlB,EACH,OAAQ,CACJ,UAAWU,EACX,UAAWE,EACX,eAAgBC,EAChB,WAAYb,EAAM,UAAY,GAC9B,UAAWgB,CACvB,EACQ,iBAAkB,qBAC1B,CAAK,EACD,OAAyBG,EAAc,cAAc,WAAY,CAC7D,GAAOC,EAAAA,0CAAmBrB,EAAuCC,CAAK,EAAGc,EAAYL,CAAU,EAC/F,GAAGQ,EACH,IAAKV,EACL,eAAgBK,GAAa,OAC7B,gBAAiBZ,EAAM,UAAY,OACnC,eAAgBU,GAAa,OAC7B,qBAAsBG,GAAkB,OACxC,eAAgBG,GAAa,MACrC,CAAK,CACL,CAAC,ECnCK,CAAE,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,CAACY,EAAaC,CAAc,EAAIR,EAAO,kBAAkBD,CAAS,EAClE,CAACU,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAc,EAChE,CAAE,WAAAI,CAAA,EAAeC,2CAAyBH,EAAiBhD,CAAG,EAGpEoB,EAAYpB,EAAK,CAAE,QAASoC,CAAA,CAAU,EAEtC,MAAMgB,EAAsB,CAC1B,gBAAiBf,EAAU,WAAa,OAAS,OACjD,eAAgBA,EAAU,UAAY,OAAS,OAAA,EAGjD,OACEgB,EAAAA,IAACpC,EAAA,CACC,UAAWxB,GAAO,UACjB,GAAGoD,EACH,GAAGE,EACH,GAAGK,EAEJ,SAAAE,EAAAA,KAAAC,WAAA,CACG,SAAA,CAAArB,GACCmB,EAAAA,IAACnC,GACE,SAAAgB,CAAA,CACH,EAEFmB,EAAAA,IAAClC,EAAA,CAA+B,QAAO,GACrC,SAAAkC,EAAAA,IAACG,GAAS,IAAAxD,EAAU,KAAAmC,EAAa,GAAGe,CAAA,CAAY,CAAA,CAClD,CAAA,CAAA,CACF,CAAA,CAAA,CAGN,EAEAlB,EAAmB,YAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"multiline-text-input-DN9yF7Di.cjs.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/TextArea.mjs","../../src/components/multiline-text-input/multiline-text-input.slots.tsx","../../src/components/multiline-text-input/hooks/use-autogrow.ts","../../src/components/multiline-text-input/multiline-text-input.tsx"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n MultilineTextInputRootSlotProps,\n MultilineTextInputLeadingElementSlotProps,\n MultilineTextInputTextAreaSlotProps,\n} from \"./multiline-text-input.types\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({\n key: \"multilineTextInput\",\n});\n\n/**\n * Root component that provides the styling context for the MultilineTextInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const MultilineTextInputRootSlot = withProvider<\n HTMLDivElement,\n MultilineTextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const MultilineTextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n MultilineTextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const MultilineTextInputTextAreaSlot = withContext<\n HTMLTextAreaElement,\n MultilineTextInputTextAreaSlotProps\n>(\"textarea\", \"textarea\");\n","import { useEffect, useCallback } from \"react\";\nimport type { RefObject } from \"react\";\n\ntype UseAutogrowOptions = {\n enabled?: boolean;\n};\n\n/**\n * Hook for managing textarea autogrow behavior\n *\n * @param ref - Reference to the textarea element (RefObject<HTMLTextAreaElement | null>)\n * @param options - Configuration options\n * @param options.enabled - Whether autogrow is enabled\n * @returns {void} This hook does not return a value\n *\n * @internal\n */\nexport function useAutogrow(\n ref: RefObject<HTMLTextAreaElement | null>,\n options: UseAutogrowOptions = {}\n): void {\n const { enabled = false } = options;\n\n const adjustHeight = useCallback(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Reset height to auto to get the correct scrollHeight\n textarea.style.height = \"auto\";\n\n // Calculate the new height based on content\n const contentHeight = textarea.scrollHeight;\n\n // Apply maxHeight constraint if specified\n const computedStyle = window.getComputedStyle(textarea);\n const maxHeightPxValue = parseInt(computedStyle.maxHeight, 10);\n\n // Check if maxHeight is a valid number and apply constraint\n const finalHeight =\n !isNaN(maxHeightPxValue) && maxHeightPxValue > 0\n ? Math.min(contentHeight, maxHeightPxValue)\n : contentHeight;\n\n // Set the new height\n textarea.style.height = `${finalHeight}px`;\n }, [enabled]);\n\n // Set up auto-grow behavior with event listeners\n useEffect(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Initial adjustment\n adjustHeight();\n\n // Add input event listener for real-time adjustments\n const handleInput = () => {\n adjustHeight();\n };\n\n textarea.addEventListener(\"input\", handleInput);\n\n // Cleanup\n return () => {\n textarea.removeEventListener(\"input\", handleInput);\n };\n }, [adjustHeight, enabled]);\n}\n","import { useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { TextArea } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\n\nimport {\n MultilineTextInputRootSlot,\n MultilineTextInputLeadingElementSlot,\n MultilineTextInputTextAreaSlot,\n} from \"./multiline-text-input.slots\";\nimport type { MultilineTextInputProps } from \"./multiline-text-input.types\";\nimport { multilineTextInputRecipe } from \"./multiline-text-input.recipe\";\nimport { useAutogrow } from \"./hooks\";\n\n/**\n * # Multiline Text Input\n *\n * A multiline text input component for capturing longer text content.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/forms/multiline-text-input}\n */\nexport const MultilineTextInput = (props: MultilineTextInputProps) => {\n const {\n ref: forwardedRef,\n leadingElement,\n rows = 1,\n autoGrow = false,\n ...restProps\n } = props; // The default `rows` attribute for a textarea is 2, so we need to override it\n const recipe = useRecipe({ recipe: multilineTextInputRecipe });\n\n const localRef = useRef<HTMLTextAreaElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField<\"textarea\">(functionalProps, ref);\n\n // Use autogrow hook for auto-grow functionality\n useAutogrow(ref, { enabled: autoGrow });\n\n const additionalRootProps = {\n \"data-disabled\": restProps.isDisabled ? \"true\" : undefined,\n \"data-invalid\": restProps.isInvalid ? \"true\" : \"false\",\n };\n\n return (\n <MultilineTextInputRootSlot\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...additionalRootProps}\n >\n <>\n {leadingElement && (\n <MultilineTextInputLeadingElementSlot>\n {leadingElement}\n </MultilineTextInputLeadingElementSlot>\n )}\n <MultilineTextInputTextAreaSlot asChild>\n <TextArea ref={ref} rows={rows} {...inputProps} />\n </MultilineTextInputTextAreaSlot>\n </>\n </MultilineTextInputRootSlot>\n );\n};\n\nMultilineTextInput.displayName = \"MultilineTextInput\";\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps","withContext","withProvider","createSlotRecipeContext","MultilineTextInputRootSlot","MultilineTextInputLeadingElementSlot","MultilineTextInputTextAreaSlot","useAutogrow","options","enabled","adjustHeight","useCallback","textarea","contentHeight","computedStyle","maxHeightPxValue","finalHeight","useEffect","handleInput","MultilineTextInput","forwardedRef","leadingElement","rows","autoGrow","restProps","recipe","useRecipe","multilineTextInputRecipe","localRef","useRef","useObjectRef","mergeRefs","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","inputProps","useTextField","additionalRootProps","jsx","jsxs","Fragment","TextArea"],"mappings":"keAOMA,EAA8DC,EAAAA,cAAsB,EAAE,EAC5F,IAAIC,EAA0CC,GAAQ,CAElD,GAAI,CAAE,aAAcC,EAAc,cAAeC,EAAe,WAAYC,EAAY,GAAGC,CAAU,EAAKJ,EAC1G,OAAOI,CACX,EACA,MAAMC,EAA8DC,EAAAA,WAAmB,SAAkBN,EAAOO,EAAK,CACjH,CAACP,EAAOO,CAAG,EAAQC,EAAAA,0CAA2CR,EAAOO,EAAKV,CAAyC,EACnH,GAAI,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AAAA,IAACG,GAAS,IAAAxD,EAAU,KAAAmC,EAAa,GAAGe,CAAA,CAAY,CAAA,CAClD,CAAA,CAAA,CACF,CAAA,CAAA,CAGN,EAEAlB,EAAmB,YAAc","x_google_ignoreList":[0]}
@@ -6,8 +6,8 @@ import { $ as C, a as E } from "./utils-B6pV5ewr.es.js";
6
6
  import { $ as F } from "./useHover-BQRSM3qT.es.js";
7
7
  import { $ as y } from "./useFocusRing-FPt2Rwil.es.js";
8
8
  import { $ as M } from "./mergeProps-Dsl8k3Ig.es.js";
9
- import { e as N } from "./extract-style-props-BdibuNZ7.es.js";
10
- import { m as V } from "./index-C2qW4ynb.es.js";
9
+ import { e as N } from "./extract-style-props-CM4QZGaE.es.js";
10
+ import { m as V } from "./index-D3KlpJA5.es.js";
11
11
  import { $ as A } from "./useObjectRef-CaJ5pgjX.es.js";
12
12
  import { $ as j } from "./useTextField-yuaT8-G4.es.js";
13
13
  const L = /* @__PURE__ */ P({});
@@ -95,4 +95,4 @@ J.displayName = "MultilineTextInput";
95
95
  export {
96
96
  J as M
97
97
  };
98
- //# sourceMappingURL=multiline-text-input-CrDTYrM3.es.js.map
98
+ //# sourceMappingURL=multiline-text-input-DkruVK6m.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiline-text-input-CrDTYrM3.es.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/TextArea.mjs","../../src/components/multiline-text-input/multiline-text-input.slots.tsx","../../src/components/multiline-text-input/hooks/use-autogrow.ts","../../src/components/multiline-text-input/multiline-text-input.tsx"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n MultilineTextInputRootSlotProps,\n MultilineTextInputLeadingElementSlotProps,\n MultilineTextInputTextAreaSlotProps,\n} from \"./multiline-text-input.types\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({\n key: \"multilineTextInput\",\n});\n\n/**\n * Root component that provides the styling context for the MultilineTextInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const MultilineTextInputRootSlot = withProvider<\n HTMLDivElement,\n MultilineTextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const MultilineTextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n MultilineTextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const MultilineTextInputTextAreaSlot = withContext<\n HTMLTextAreaElement,\n MultilineTextInputTextAreaSlotProps\n>(\"textarea\", \"textarea\");\n","import { useEffect, useCallback } from \"react\";\nimport type { RefObject } from \"react\";\n\ntype UseAutogrowOptions = {\n enabled?: boolean;\n};\n\n/**\n * Hook for managing textarea autogrow behavior\n *\n * @param ref - Reference to the textarea element (RefObject<HTMLTextAreaElement | null>)\n * @param options - Configuration options\n * @param options.enabled - Whether autogrow is enabled\n * @returns {void} This hook does not return a value\n *\n * @internal\n */\nexport function useAutogrow(\n ref: RefObject<HTMLTextAreaElement | null>,\n options: UseAutogrowOptions = {}\n): void {\n const { enabled = false } = options;\n\n const adjustHeight = useCallback(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Reset height to auto to get the correct scrollHeight\n textarea.style.height = \"auto\";\n\n // Calculate the new height based on content\n const contentHeight = textarea.scrollHeight;\n\n // Apply maxHeight constraint if specified\n const computedStyle = window.getComputedStyle(textarea);\n const maxHeightPxValue = parseInt(computedStyle.maxHeight, 10);\n\n // Check if maxHeight is a valid number and apply constraint\n const finalHeight =\n !isNaN(maxHeightPxValue) && maxHeightPxValue > 0\n ? Math.min(contentHeight, maxHeightPxValue)\n : contentHeight;\n\n // Set the new height\n textarea.style.height = `${finalHeight}px`;\n }, [enabled]);\n\n // Set up auto-grow behavior with event listeners\n useEffect(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Initial adjustment\n adjustHeight();\n\n // Add input event listener for real-time adjustments\n const handleInput = () => {\n adjustHeight();\n };\n\n textarea.addEventListener(\"input\", handleInput);\n\n // Cleanup\n return () => {\n textarea.removeEventListener(\"input\", handleInput);\n };\n }, [adjustHeight, enabled]);\n}\n","import { useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { TextArea } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\n\nimport {\n MultilineTextInputRootSlot,\n MultilineTextInputLeadingElementSlot,\n MultilineTextInputTextAreaSlot,\n} from \"./multiline-text-input.slots\";\nimport type { MultilineTextInputProps } from \"./multiline-text-input.types\";\nimport { multilineTextInputRecipe } from \"./multiline-text-input.recipe\";\nimport { useAutogrow } from \"./hooks\";\n\n/**\n * # Multiline Text Input\n *\n * A multiline text input component for capturing longer text content.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/forms/multiline-text-input}\n */\nexport const MultilineTextInput = (props: MultilineTextInputProps) => {\n const {\n ref: forwardedRef,\n leadingElement,\n rows = 1,\n autoGrow = false,\n ...restProps\n } = props; // The default `rows` attribute for a textarea is 2, so we need to override it\n const recipe = useRecipe({ recipe: multilineTextInputRecipe });\n\n const localRef = useRef<HTMLTextAreaElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField<\"textarea\">(functionalProps, ref);\n\n // Use autogrow hook for auto-grow functionality\n useAutogrow(ref, { enabled: autoGrow });\n\n const additionalRootProps = {\n \"data-disabled\": restProps.isDisabled ? \"true\" : undefined,\n \"data-invalid\": restProps.isInvalid ? \"true\" : \"false\",\n };\n\n return (\n <MultilineTextInputRootSlot\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...additionalRootProps}\n >\n <>\n {leadingElement && (\n <MultilineTextInputLeadingElementSlot>\n {leadingElement}\n </MultilineTextInputLeadingElementSlot>\n )}\n <MultilineTextInputTextAreaSlot asChild>\n <TextArea ref={ref} rows={rows} {...inputProps} />\n </MultilineTextInputTextAreaSlot>\n </>\n </MultilineTextInputRootSlot>\n );\n};\n\nMultilineTextInput.displayName = \"MultilineTextInput\";\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps","withContext","withProvider","createSlotRecipeContext","MultilineTextInputRootSlot","MultilineTextInputLeadingElementSlot","MultilineTextInputTextAreaSlot","useAutogrow","options","enabled","adjustHeight","useCallback","textarea","contentHeight","computedStyle","maxHeightPxValue","finalHeight","useEffect","handleInput","MultilineTextInput","forwardedRef","leadingElement","rows","autoGrow","restProps","recipe","useRecipe","multilineTextInputRecipe","localRef","useRef","useObjectRef","mergeRefs","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","inputProps","useTextField","additionalRootProps","jsx","jsxs","Fragment","TextArea"],"mappings":";;;;;;;;;;;;AAOA,MAAMA,IAA8DC,gBAAAA,EAAsB,EAAE;AAC5F,IAAIC,IAAyC,CAACC,MAAQ;AAElD,MAAI,EAAE,cAAcC,GAAc,eAAeC,GAAe,YAAYC,GAAY,GAAGC,EAAU,IAAKJ;AAC1G,SAAOI;AACX;AACA,MAAMC,IAA8DC,gBAAAA,EAAmB,SAAkBN,GAAOO,GAAK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;AAAA,IACjD,gBAAgBA,EAAU,YAAY,SAAS;AAAA,EAAA;AAGjD,SACE,gBAAAgB;AAAA,IAACpC;AAAA,IAAA;AAAA,MACC,WAAWxB,GAAO;AAAA,MACjB,GAAGoD;AAAA,MACH,GAAGE;AAAA,MACH,GAAGK;AAAA,MAEJ,UAAA,gBAAAE,EAAAC,GAAA,EACG,UAAA;AAAA,QAAArB,KACC,gBAAAmB,EAACnC,KACE,UAAAgB,EAAA,CACH;AAAA,QAEF,gBAAAmB,EAAClC,GAAA,EAA+B,SAAO,IACrC,UAAA,gBAAAkC,EAACG,KAAS,KAAAxD,GAAU,MAAAmC,GAAa,GAAGe,EAAA,CAAY,EAAA,CAClD;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAlB,EAAmB,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"multiline-text-input-DkruVK6m.es.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/TextArea.mjs","../../src/components/multiline-text-input/multiline-text-input.slots.tsx","../../src/components/multiline-text-input/hooks/use-autogrow.ts","../../src/components/multiline-text-input/multiline-text-input.tsx"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useHover as $9Usiy$useHover, useFocusRing as $9Usiy$useFocusRing, mergeProps as $9Usiy$mergeProps} from \"react-aria\";\nimport $9Usiy$react, {createContext as $9Usiy$createContext, forwardRef as $9Usiy$forwardRef} from \"react\";\n\n\n\n\nconst $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $9Usiy$createContext)({});\nlet $216918bed6669f72$var$filterHoverProps = (props)=>{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n let { onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;\n return otherProps;\n};\nconst $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $9Usiy$forwardRef)(function TextArea(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9Usiy$useHover)(props);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $9Usiy$useFocusRing)({\n isTextInput: true,\n autoFocus: props.autoFocus\n });\n let isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.disabled || false,\n isInvalid: isInvalid\n },\n defaultClassName: 'react-aria-TextArea'\n });\n return /*#__PURE__*/ (0, $9Usiy$react).createElement(\"textarea\", {\n ...(0, $9Usiy$mergeProps)($216918bed6669f72$var$filterHoverProps(props), focusProps, hoverProps),\n ...renderProps,\n ref: ref,\n \"data-focused\": isFocused || undefined,\n \"data-disabled\": props.disabled || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-invalid\": isInvalid || undefined\n });\n});\n\n\nexport {$216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea};\n//# sourceMappingURL=TextArea.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n MultilineTextInputRootSlotProps,\n MultilineTextInputLeadingElementSlotProps,\n MultilineTextInputTextAreaSlotProps,\n} from \"./multiline-text-input.types\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({\n key: \"multilineTextInput\",\n});\n\n/**\n * Root component that provides the styling context for the MultilineTextInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const MultilineTextInputRootSlot = withProvider<\n HTMLDivElement,\n MultilineTextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const MultilineTextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n MultilineTextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const MultilineTextInputTextAreaSlot = withContext<\n HTMLTextAreaElement,\n MultilineTextInputTextAreaSlotProps\n>(\"textarea\", \"textarea\");\n","import { useEffect, useCallback } from \"react\";\nimport type { RefObject } from \"react\";\n\ntype UseAutogrowOptions = {\n enabled?: boolean;\n};\n\n/**\n * Hook for managing textarea autogrow behavior\n *\n * @param ref - Reference to the textarea element (RefObject<HTMLTextAreaElement | null>)\n * @param options - Configuration options\n * @param options.enabled - Whether autogrow is enabled\n * @returns {void} This hook does not return a value\n *\n * @internal\n */\nexport function useAutogrow(\n ref: RefObject<HTMLTextAreaElement | null>,\n options: UseAutogrowOptions = {}\n): void {\n const { enabled = false } = options;\n\n const adjustHeight = useCallback(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Reset height to auto to get the correct scrollHeight\n textarea.style.height = \"auto\";\n\n // Calculate the new height based on content\n const contentHeight = textarea.scrollHeight;\n\n // Apply maxHeight constraint if specified\n const computedStyle = window.getComputedStyle(textarea);\n const maxHeightPxValue = parseInt(computedStyle.maxHeight, 10);\n\n // Check if maxHeight is a valid number and apply constraint\n const finalHeight =\n !isNaN(maxHeightPxValue) && maxHeightPxValue > 0\n ? Math.min(contentHeight, maxHeightPxValue)\n : contentHeight;\n\n // Set the new height\n textarea.style.height = `${finalHeight}px`;\n }, [enabled]);\n\n // Set up auto-grow behavior with event listeners\n useEffect(() => {\n const textarea = ref.current;\n if (!textarea || !enabled) return;\n\n // Initial adjustment\n adjustHeight();\n\n // Add input event listener for real-time adjustments\n const handleInput = () => {\n adjustHeight();\n };\n\n textarea.addEventListener(\"input\", handleInput);\n\n // Cleanup\n return () => {\n textarea.removeEventListener(\"input\", handleInput);\n };\n }, [adjustHeight, enabled]);\n}\n","import { useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { TextArea } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils\";\n\nimport {\n MultilineTextInputRootSlot,\n MultilineTextInputLeadingElementSlot,\n MultilineTextInputTextAreaSlot,\n} from \"./multiline-text-input.slots\";\nimport type { MultilineTextInputProps } from \"./multiline-text-input.types\";\nimport { multilineTextInputRecipe } from \"./multiline-text-input.recipe\";\nimport { useAutogrow } from \"./hooks\";\n\n/**\n * # Multiline Text Input\n *\n * A multiline text input component for capturing longer text content.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/forms/multiline-text-input}\n */\nexport const MultilineTextInput = (props: MultilineTextInputProps) => {\n const {\n ref: forwardedRef,\n leadingElement,\n rows = 1,\n autoGrow = false,\n ...restProps\n } = props; // The default `rows` attribute for a textarea is 2, so we need to override it\n const recipe = useRecipe({ recipe: multilineTextInputRecipe });\n\n const localRef = useRef<HTMLTextAreaElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField<\"textarea\">(functionalProps, ref);\n\n // Use autogrow hook for auto-grow functionality\n useAutogrow(ref, { enabled: autoGrow });\n\n const additionalRootProps = {\n \"data-disabled\": restProps.isDisabled ? \"true\" : undefined,\n \"data-invalid\": restProps.isInvalid ? \"true\" : \"false\",\n };\n\n return (\n <MultilineTextInputRootSlot\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...additionalRootProps}\n >\n <>\n {leadingElement && (\n <MultilineTextInputLeadingElementSlot>\n {leadingElement}\n </MultilineTextInputLeadingElementSlot>\n )}\n <MultilineTextInputTextAreaSlot asChild>\n <TextArea ref={ref} rows={rows} {...inputProps} />\n </MultilineTextInputTextAreaSlot>\n </>\n </MultilineTextInputRootSlot>\n );\n};\n\nMultilineTextInput.displayName = \"MultilineTextInput\";\n"],"names":["$216918bed6669f72$export$2dc6166a7e65358c","$9Usiy$createContext","$216918bed6669f72$var$filterHoverProps","props","onHoverStart","onHoverChange","onHoverEnd","otherProps","$216918bed6669f72$export$f5c9f3c2c4054eec","$9Usiy$forwardRef","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","hoverProps","isHovered","$9Usiy$useHover","isFocused","isFocusVisible","focusProps","$9Usiy$useFocusRing","isInvalid","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$9Usiy$react","$9Usiy$mergeProps","withContext","withProvider","createSlotRecipeContext","MultilineTextInputRootSlot","MultilineTextInputLeadingElementSlot","MultilineTextInputTextAreaSlot","useAutogrow","options","enabled","adjustHeight","useCallback","textarea","contentHeight","computedStyle","maxHeightPxValue","finalHeight","useEffect","handleInput","MultilineTextInput","forwardedRef","leadingElement","rows","autoGrow","restProps","recipe","useRecipe","multilineTextInputRecipe","localRef","useRef","useObjectRef","mergeRefs","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","inputProps","useTextField","additionalRootProps","jsx","jsxs","Fragment","TextArea"],"mappings":";;;;;;;;;;;;AAOA,MAAMA,IAA8DC,gBAAAA,EAAsB,EAAE;AAC5F,IAAIC,IAAyC,CAACC,MAAQ;AAElD,MAAI,EAAE,cAAcC,GAAc,eAAeC,GAAe,YAAYC,GAAY,GAAGC,EAAU,IAAKJ;AAC1G,SAAOI;AACX;AACA,MAAMC,IAA8DC,gBAAAA,EAAmB,SAAkBN,GAAOO,GAAK;AACjH,GAACP,GAAOO,CAAG,IAAQC,EAA2CR,GAAOO,GAAKV,CAAyC;AACnH,MAAI,EAAE,YAAYY,GAAY,WAAWC,MAAkBC,EAAiBX,CAAK,GAC7E,EAAE,WAAWY,GAAW,gBAAgBC,GAAgB,YAAYC,MAAmBC,EAAqB;AAAA,IAC5G,aAAa;AAAA,IACb,WAAWf,EAAM;AAAA,EAC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ArB,KACC,gBAAAmB,EAACnC,KACE,UAAAgB,EAAA,CACH;AAAA,QAEF,gBAAAmB,EAAClC,GAAA,EAA+B,SAAO,IACrC,UAAA,gBAAAkC,EAACG,KAAS,KAAAxD,GAAU,MAAAmC,GAAa,GAAGe,EAAA,CAAY,EAAA,CAClD;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAlB,EAAmB,cAAc;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),T=require("./multiline-text-input-CULLuZBp.cjs.js"),l=require("./form-field-FdRNl2bZ.cjs.js"),q=require("./field-errors-aqrV93vp.cjs.js"),o=({id:d,label:u,description:r,info:s,errors:i,onChange:F,renderError:x,touched:c=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:I=!1,size:t="md",value:f,placeholder:h,...p})=>{const n=c&&i&&Object.values(i).some(Boolean);return e.jsxs(l.FormField.Root,{id:d,size:t,isRequired:a,isDisabled:m,isReadOnly:j,isInvalid:n||I,children:[e.jsx(l.FormField.Label,{children:u}),e.jsx(l.FormField.Input,{children:e.jsx(T.MultilineTextInput,{...p,size:t,placeholder:h,onChange:F,value:f})}),r&&e.jsx(l.FormField.Description,{children:r}),n&&e.jsx(l.FormField.Error,{children:e.jsx(q.FieldErrors,{errors:i,renderError:x})}),s&&e.jsx(l.FormField.InfoBox,{children:s})]})};o.displayName="MultilineTextInputField";exports.MultilineTextInputField=o;
2
- //# sourceMappingURL=multiline-text-input-field-BX-w2v1Y.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),T=require("./multiline-text-input-DN9yF7Di.cjs.js"),l=require("./form-field-52--hhlj.cjs.js"),q=require("./field-errors-aqrV93vp.cjs.js"),o=({id:d,label:u,description:r,info:s,errors:i,onChange:F,renderError:x,touched:c=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:I=!1,size:t="md",value:f,placeholder:h,...p})=>{const n=c&&i&&Object.values(i).some(Boolean);return e.jsxs(l.FormField.Root,{id:d,size:t,isRequired:a,isDisabled:m,isReadOnly:j,isInvalid:n||I,children:[e.jsx(l.FormField.Label,{children:u}),e.jsx(l.FormField.Input,{children:e.jsx(T.MultilineTextInput,{...p,size:t,placeholder:h,onChange:F,value:f})}),r&&e.jsx(l.FormField.Description,{children:r}),n&&e.jsx(l.FormField.Error,{children:e.jsx(q.FieldErrors,{errors:i,renderError:x})}),s&&e.jsx(l.FormField.InfoBox,{children:s})]})};o.displayName="MultilineTextInputField";exports.MultilineTextInputField=o;
2
+ //# sourceMappingURL=multiline-text-input-field-QLmo_I6Q.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiline-text-input-field-BX-w2v1Y.cjs.js","sources":["../../src/patterns/fields/multiline-text-input-field/multiline-text-input-field.tsx"],"sourcesContent":["import { MultilineTextInput } from \"@/components/multiline-text-input/multiline-text-input\";\nimport type { MultilineTextInputFieldProps } from \"./multiline-text-input-field.types\";\nimport { FormField, FieldErrors } from \"@/components\";\n\n/**\n * # MultilineTextInputField\n *\n * A pre-composed form field component that combines MultilineTextInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for common text area use cases and serves\n * as a drop-in replacement for UI-Kit's MultilineTextField, maintaining compatibility with the\n * same error format and localized error messages.\n *\n * @example\n * ```tsx\n * <MultilineTextInputField\n * label=\"Project description\"\n * description=\"Enter a descriptive summary for your project\"\n * placeholder=\"Describe your project...\"\n * value={value}\n * onChange={setValue}\n * errors={{ missing: true }}\n * isRequired\n * rows={4}\n * autoGrow\n * />\n * ```\n */\n\nexport const MultilineTextInputField = ({\n id,\n label,\n description,\n info,\n errors,\n onChange,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n value,\n placeholder,\n ...rest\n}: MultilineTextInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={hasErrors || isInvalid}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MultilineTextInput\n {...rest}\n size={size}\n placeholder={placeholder}\n onChange={onChange}\n value={value}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors errors={errors} renderError={renderError} />\n </FormField.Error>\n )}\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nMultilineTextInputField.displayName = \"MultilineTextInputField\";\n"],"names":["MultilineTextInputField","id","label","description","info","errors","onChange","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","value","placeholder","rest","hasErrors","jsxs","FormField","jsx","MultilineTextInput","FieldErrors"],"mappings":"4LA8BaA,EAA0B,CAAC,CACtC,GAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,GACV,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,UAAAC,EAAY,GACZ,KAAAC,EAAO,KACP,MAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAAoC,CAElC,MAAMC,EAAYT,GAAWH,GAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO,EAEzE,OACEa,EAAAA,KAACC,EAAAA,UAAU,KAAV,CACC,GAAAlB,EACA,KAAAY,EACA,WAAAJ,EACA,WAAAC,EACA,WAAAC,EACA,UAAWM,GAAaL,EAExB,SAAA,CAAAQ,EAAAA,IAACD,EAAAA,UAAU,MAAV,CAAiB,SAAAjB,CAAA,CAAM,EACxBkB,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACC,EAAAA,mBAAA,CACE,GAAGL,EACJ,KAAAH,EACA,YAAAE,EACA,SAAAT,EACA,MAAAQ,CAAA,CAAA,EAEJ,EACCX,GACCiB,EAAAA,IAACD,EAAAA,UAAU,YAAV,CAAuB,SAAAhB,EAAY,EAErCc,SACEE,YAAU,MAAV,CACC,SAAAC,MAACE,EAAAA,YAAA,CAAY,OAAAjB,EAAgB,YAAAE,CAAA,CAA0B,CAAA,CACzD,EAEDH,GAAQgB,EAAAA,IAACD,EAAAA,UAAU,QAAV,CAAmB,SAAAf,CAAA,CAAK,CAAA,CAAA,CAAA,CAGxC,EAEAJ,EAAwB,YAAc"}
1
+ {"version":3,"file":"multiline-text-input-field-QLmo_I6Q.cjs.js","sources":["../../src/patterns/fields/multiline-text-input-field/multiline-text-input-field.tsx"],"sourcesContent":["import { MultilineTextInput } from \"@/components/multiline-text-input/multiline-text-input\";\nimport type { MultilineTextInputFieldProps } from \"./multiline-text-input-field.types\";\nimport { FormField, FieldErrors } from \"@/components\";\n\n/**\n * # MultilineTextInputField\n *\n * A pre-composed form field component that combines MultilineTextInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for common text area use cases and serves\n * as a drop-in replacement for UI-Kit's MultilineTextField, maintaining compatibility with the\n * same error format and localized error messages.\n *\n * @example\n * ```tsx\n * <MultilineTextInputField\n * label=\"Project description\"\n * description=\"Enter a descriptive summary for your project\"\n * placeholder=\"Describe your project...\"\n * value={value}\n * onChange={setValue}\n * errors={{ missing: true }}\n * isRequired\n * rows={4}\n * autoGrow\n * />\n * ```\n */\n\nexport const MultilineTextInputField = ({\n id,\n label,\n description,\n info,\n errors,\n onChange,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n value,\n placeholder,\n ...rest\n}: MultilineTextInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={hasErrors || isInvalid}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MultilineTextInput\n {...rest}\n size={size}\n placeholder={placeholder}\n onChange={onChange}\n value={value}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors errors={errors} renderError={renderError} />\n </FormField.Error>\n )}\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nMultilineTextInputField.displayName = \"MultilineTextInputField\";\n"],"names":["MultilineTextInputField","id","label","description","info","errors","onChange","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","value","placeholder","rest","hasErrors","jsxs","FormField","jsx","MultilineTextInput","FieldErrors"],"mappings":"4LA8BaA,EAA0B,CAAC,CACtC,GAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,GACV,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,WAAAC,EAAa,GACb,UAAAC,EAAY,GACZ,KAAAC,EAAO,KACP,MAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAAoC,CAElC,MAAMC,EAAYT,GAAWH,GAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO,EAEzE,OACEa,EAAAA,KAACC,EAAAA,UAAU,KAAV,CACC,GAAAlB,EACA,KAAAY,EACA,WAAAJ,EACA,WAAAC,EACA,WAAAC,EACA,UAAWM,GAAaL,EAExB,SAAA,CAAAQ,EAAAA,IAACD,EAAAA,UAAU,MAAV,CAAiB,SAAAjB,CAAA,CAAM,EACxBkB,EAAAA,IAACD,EAAAA,UAAU,MAAV,CACC,SAAAC,EAAAA,IAACC,EAAAA,mBAAA,CACE,GAAGL,EACJ,KAAAH,EACA,YAAAE,EACA,SAAAT,EACA,MAAAQ,CAAA,CAAA,EAEJ,EACCX,GACCiB,EAAAA,IAACD,EAAAA,UAAU,YAAV,CAAuB,SAAAhB,EAAY,EAErCc,SACEE,YAAU,MAAV,CACC,SAAAC,MAACE,EAAAA,YAAA,CAAY,OAAAjB,EAAgB,YAAAE,CAAA,CAA0B,CAAA,CACzD,EAEDH,GAAQgB,EAAAA,IAACD,EAAAA,UAAU,QAAV,CAAmB,SAAAf,CAAA,CAAK,CAAA,CAAA,CAAA,CAGxC,EAEAJ,EAAwB,YAAc"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as M, jsx as e } from "react/jsx-runtime";
2
- import { M as j } from "./multiline-text-input-CrDTYrM3.es.js";
3
- import { F as l } from "./form-field-BfDU18h3.es.js";
2
+ import { M as j } from "./multiline-text-input-DkruVK6m.es.js";
3
+ import { F as l } from "./form-field-DCWDyNJx.es.js";
4
4
  import { F as E } from "./field-errors-D1BQvoYg.es.js";
5
5
  const T = ({
6
6
  id: s,
@@ -53,4 +53,4 @@ T.displayName = "MultilineTextInputField";
53
53
  export {
54
54
  T as M
55
55
  };
56
- //# sourceMappingURL=multiline-text-input-field-C6UTl_c8.es.js.map
56
+ //# sourceMappingURL=multiline-text-input-field-ipwTTNg6.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiline-text-input-field-C6UTl_c8.es.js","sources":["../../src/patterns/fields/multiline-text-input-field/multiline-text-input-field.tsx"],"sourcesContent":["import { MultilineTextInput } from \"@/components/multiline-text-input/multiline-text-input\";\nimport type { MultilineTextInputFieldProps } from \"./multiline-text-input-field.types\";\nimport { FormField, FieldErrors } from \"@/components\";\n\n/**\n * # MultilineTextInputField\n *\n * A pre-composed form field component that combines MultilineTextInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for common text area use cases and serves\n * as a drop-in replacement for UI-Kit's MultilineTextField, maintaining compatibility with the\n * same error format and localized error messages.\n *\n * @example\n * ```tsx\n * <MultilineTextInputField\n * label=\"Project description\"\n * description=\"Enter a descriptive summary for your project\"\n * placeholder=\"Describe your project...\"\n * value={value}\n * onChange={setValue}\n * errors={{ missing: true }}\n * isRequired\n * rows={4}\n * autoGrow\n * />\n * ```\n */\n\nexport const MultilineTextInputField = ({\n id,\n label,\n description,\n info,\n errors,\n onChange,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n value,\n placeholder,\n ...rest\n}: MultilineTextInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={hasErrors || isInvalid}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MultilineTextInput\n {...rest}\n size={size}\n placeholder={placeholder}\n onChange={onChange}\n value={value}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors errors={errors} renderError={renderError} />\n </FormField.Error>\n )}\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nMultilineTextInputField.displayName = \"MultilineTextInputField\";\n"],"names":["MultilineTextInputField","id","label","description","info","errors","onChange","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","value","placeholder","rest","hasErrors","jsxs","FormField","jsx","MultilineTextInput","FieldErrors"],"mappings":";;;;AA8BO,MAAMA,IAA0B,CAAC;AAAA,EACtC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,MAAoC;AAElC,QAAMC,IAAYT,KAAWH,KAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO;AAEzE,SACE,gBAAAa;AAAA,IAACC,EAAU;AAAA,IAAV;AAAA,MACC,IAAAlB;AAAA,MACA,MAAAY;AAAA,MACA,YAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,MACA,WAAWM,KAAaL;AAAA,MAExB,UAAA;AAAA,QAAA,gBAAAQ,EAACD,EAAU,OAAV,EAAiB,UAAAjB,EAAA,CAAM;AAAA,QACxB,gBAAAkB,EAACD,EAAU,OAAV,EACC,UAAA,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YACE,GAAGL;AAAA,YACJ,MAAAH;AAAA,YACA,aAAAE;AAAA,YACA,UAAAT;AAAA,YACA,OAAAQ;AAAA,UAAA;AAAA,QAAA,GAEJ;AAAA,QACCX,KACC,gBAAAiB,EAACD,EAAU,aAAV,EAAuB,UAAAhB,GAAY;AAAA,QAErCc,uBACEE,EAAU,OAAV,EACC,UAAA,gBAAAC,EAACE,GAAA,EAAY,QAAAjB,GAAgB,aAAAE,EAAA,CAA0B,EAAA,CACzD;AAAA,QAEDH,KAAQ,gBAAAgB,EAACD,EAAU,SAAV,EAAmB,UAAAf,EAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGxC;AAEAJ,EAAwB,cAAc;"}
1
+ {"version":3,"file":"multiline-text-input-field-ipwTTNg6.es.js","sources":["../../src/patterns/fields/multiline-text-input-field/multiline-text-input-field.tsx"],"sourcesContent":["import { MultilineTextInput } from \"@/components/multiline-text-input/multiline-text-input\";\nimport type { MultilineTextInputFieldProps } from \"./multiline-text-input-field.types\";\nimport { FormField, FieldErrors } from \"@/components\";\n\n/**\n * # MultilineTextInputField\n *\n * A pre-composed form field component that combines MultilineTextInput with FormField features\n * like labels, descriptions, error handling, and validation feedback.\n *\n * This component provides a simple, flat API for common text area use cases and serves\n * as a drop-in replacement for UI-Kit's MultilineTextField, maintaining compatibility with the\n * same error format and localized error messages.\n *\n * @example\n * ```tsx\n * <MultilineTextInputField\n * label=\"Project description\"\n * description=\"Enter a descriptive summary for your project\"\n * placeholder=\"Describe your project...\"\n * value={value}\n * onChange={setValue}\n * errors={{ missing: true }}\n * isRequired\n * rows={4}\n * autoGrow\n * />\n * ```\n */\n\nexport const MultilineTextInputField = ({\n id,\n label,\n description,\n info,\n errors,\n onChange,\n renderError,\n touched = false,\n isRequired = false,\n isDisabled = false,\n isReadOnly = false,\n isInvalid = false,\n size = \"md\",\n value,\n placeholder,\n ...rest\n}: MultilineTextInputFieldProps) => {\n // Determine if we should show errors\n const hasErrors = touched && errors && Object.values(errors).some(Boolean);\n\n return (\n <FormField.Root\n id={id}\n size={size}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={hasErrors || isInvalid}\n >\n <FormField.Label>{label}</FormField.Label>\n <FormField.Input>\n <MultilineTextInput\n {...rest}\n size={size}\n placeholder={placeholder}\n onChange={onChange}\n value={value}\n />\n </FormField.Input>\n {description && (\n <FormField.Description>{description}</FormField.Description>\n )}\n {hasErrors && (\n <FormField.Error>\n <FieldErrors errors={errors} renderError={renderError} />\n </FormField.Error>\n )}\n {info && <FormField.InfoBox>{info}</FormField.InfoBox>}\n </FormField.Root>\n );\n};\n\nMultilineTextInputField.displayName = \"MultilineTextInputField\";\n"],"names":["MultilineTextInputField","id","label","description","info","errors","onChange","renderError","touched","isRequired","isDisabled","isReadOnly","isInvalid","size","value","placeholder","rest","hasErrors","jsxs","FormField","jsx","MultilineTextInput","FieldErrors"],"mappings":";;;;AA8BO,MAAMA,IAA0B,CAAC;AAAA,EACtC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,MAAoC;AAElC,QAAMC,IAAYT,KAAWH,KAAU,OAAO,OAAOA,CAAM,EAAE,KAAK,OAAO;AAEzE,SACE,gBAAAa;AAAA,IAACC,EAAU;AAAA,IAAV;AAAA,MACC,IAAAlB;AAAA,MACA,MAAAY;AAAA,MACA,YAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,MACA,WAAWM,KAAaL;AAAA,MAExB,UAAA;AAAA,QAAA,gBAAAQ,EAACD,EAAU,OAAV,EAAiB,UAAAjB,EAAA,CAAM;AAAA,QACxB,gBAAAkB,EAACD,EAAU,OAAV,EACC,UAAA,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YACE,GAAGL;AAAA,YACJ,MAAAH;AAAA,YACA,aAAAE;AAAA,YACA,UAAAT;AAAA,YACA,OAAAQ;AAAA,UAAA;AAAA,QAAA,GAEJ;AAAA,QACCX,KACC,gBAAAiB,EAACD,EAAU,aAAV,EAAuB,UAAAhB,GAAY;AAAA,QAErCc,uBACEE,EAAU,OAAV,EACC,UAAA,gBAAAC,EAACE,GAAA,EAAY,QAAAjB,GAAgB,aAAAE,EAAA,CAA0B,EAAA,CACzD;AAAA,QAEDH,KAAQ,gBAAAgB,EAACD,EAAU,SAAV,EAAmB,UAAAf,EAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGxC;AAEAJ,EAAwB,cAAc;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as w } from "react/jsx-runtime";
2
2
  import { ChakraProvider as H } from "@chakra-ui/react/styled-system";
3
3
  import { N as K } from "./nimbus-i18n-provider-CZh1r8F5.es.js";
4
- import { s as V } from "./index-C2qW4ynb.es.js";
4
+ import { s as V } from "./index-D3KlpJA5.es.js";
5
5
  import * as t from "react";
6
6
  import { $ as W } from "./openLink-BNz58j4a.es.js";
7
7
  var _ = (e, a, r, d, m, l, u, h) => {
@@ -98,4 +98,4 @@ export {
98
98
  te as N,
99
99
  ee as z
100
100
  };
101
- //# sourceMappingURL=nimbus-provider-S02SpkpM.es.js.map
101
+ //# sourceMappingURL=nimbus-provider-4H3HucGg.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nimbus-provider-S02SpkpM.es.js","sources":["../../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../../src/components/nimbus-provider/components/nimbus-provider.color-mode-provider.tsx","../../src/components/nimbus-provider/nimbus-provider.tsx"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import { ThemeProvider } from \"next-themes\";\nimport type { ColorModeProviderProps } from \"../nimbus-provider.types\";\n\nexport const NimbusColorModeProvider = (props: ColorModeProviderProps) => {\n return (\n <ThemeProvider attribute=\"class\" disableTransitionOnChange {...props} />\n );\n};\n","import { ChakraProvider } from \"@chakra-ui/react/styled-system\";\nimport { RouterProvider } from \"react-aria\";\nimport { NimbusI18nProvider } from \"@/components/nimbus-i18n-provider\";\nimport { system } from \"@/theme\";\nimport type { NimbusProviderProps } from \"./nimbus-provider.types\";\nimport { NimbusColorModeProvider } from \"./components/nimbus-provider.color-mode-provider\";\n\n/**\n * # NimbusProvider\n *\n * Provides an environment for the rest of the components to work in.\n * Components use `useLocale()` from `react-aria-components` to get the locale.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/utilities/nimbusprovider}\n */\nexport function NimbusProvider({\n children,\n locale,\n router,\n ...props\n}: NimbusProviderProps) {\n // Inner content with all the existing providers\n const content = (\n <ChakraProvider value={system}>\n <NimbusColorModeProvider enableSystem={false} {...props}>\n <NimbusI18nProvider locale={locale}>{children}</NimbusI18nProvider>\n </NimbusColorModeProvider>\n </ChakraProvider>\n );\n\n // If router config is provided, wrap with RouterProvider for client-side routing\n if (router) {\n return <RouterProvider {...router}>{content}</RouterProvider>;\n }\n\n // Default behavior when no router is configured\n return content;\n}\n"],"names":["M","i","s","u","a","l","d","w","p","k","S","f","R","c","b","I","O","x","t","U","z","V","N","H","T","y","E","r","v","C","W","P","L","g","D","A","Q","_","NimbusColorModeProvider","props","ThemeProvider","NimbusProvider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,SAAS,eAAe,6KAA6K,CAAC,GAAE,SAAS,KAAK,YAAYA,CAAC,GAAE,MAAI;AAAC,WAAO,iBAAiB,SAAS,IAAI,GAAE,WAAW,MAAI;AAAC,eAAS,KAAK,YAAYA,CAAC;AAAA,IAAC,GAAE,CAAC;AAAA,EAAC;AAAC,GAAEyB,IAAE,QAAI,MAAI,IAAE,OAAO,WAAWX,CAAC,IAAG,EAAE,UAAQ,SAAO;ACGtuG,MAAMuB,IAA0B,CAACC,wBAEnCC,GAAA,EAAc,WAAU,SAAQ,2BAAyB,IAAE,GAAGD,GAAO;ACUnE,SAASE,GAAe;AAAA,EAC7B,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,GAAGL;AACL,GAAwB;AAEtB,QAAMM,IACJ,gBAAAC,EAACC,GAAA,EAAe,OAAOC,GACrB,4BAACV,GAAA,EAAwB,cAAc,IAAQ,GAAGC,GAChD,UAAA,gBAAAO,EAACG,GAAA,EAAmB,QAAAN,GAAiB,UAAAD,EAAA,CAAS,GAChD,GACF;AAIF,SAAIE,IACK,gBAAAE,EAACI,GAAA,EAAgB,GAAGN,GAAS,UAAAC,GAAQ,IAIvCA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"nimbus-provider-4H3HucGg.es.js","sources":["../../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../../src/components/nimbus-provider/components/nimbus-provider.color-mode-provider.tsx","../../src/components/nimbus-provider/nimbus-provider.tsx"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import { ThemeProvider } from \"next-themes\";\nimport type { ColorModeProviderProps } from \"../nimbus-provider.types\";\n\nexport const NimbusColorModeProvider = (props: ColorModeProviderProps) => {\n return (\n <ThemeProvider attribute=\"class\" disableTransitionOnChange {...props} />\n );\n};\n","import { ChakraProvider } from \"@chakra-ui/react/styled-system\";\nimport { RouterProvider } from \"react-aria\";\nimport { NimbusI18nProvider } from \"@/components/nimbus-i18n-provider\";\nimport { system } from \"@/theme\";\nimport type { NimbusProviderProps } from \"./nimbus-provider.types\";\nimport { NimbusColorModeProvider } from \"./components/nimbus-provider.color-mode-provider\";\n\n/**\n * # NimbusProvider\n *\n * Provides an environment for the rest of the components to work in.\n * Components use `useLocale()` from `react-aria-components` to get the locale.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/utilities/nimbusprovider}\n */\nexport function NimbusProvider({\n children,\n locale,\n router,\n ...props\n}: NimbusProviderProps) {\n // Inner content with all the existing providers\n const content = (\n <ChakraProvider value={system}>\n <NimbusColorModeProvider enableSystem={false} {...props}>\n <NimbusI18nProvider locale={locale}>{children}</NimbusI18nProvider>\n </NimbusColorModeProvider>\n </ChakraProvider>\n );\n\n // If router config is provided, wrap with RouterProvider for client-side routing\n if (router) {\n return <RouterProvider {...router}>{content}</RouterProvider>;\n }\n\n // Default behavior when no router is configured\n return content;\n}\n"],"names":["M","i","s","u","a","l","d","w","p","k","S","f","R","c","b","I","O","x","t","U","z","V","N","H","T","y","E","r","v","C","W","P","L","g","D","A","Q","_","NimbusColorModeProvider","props","ThemeProvider","NimbusProvider","children","locale","router","content","jsx","ChakraProvider","system","NimbusI18nProvider","RouterProvider"],"mappings":";;;;;;AAAqC,IAAIA,IAAE,CAAC,GAAEC,GAAEC,GAAEC,GAAE,GAAEC,GAAEC,GAAE,MAAI;AAAC,MAAIC,IAAE,SAAS,iBAAgBC,IAAE,CAAC,SAAQ,MAAM;AAAE,WAASC,EAAE,GAAE;AAAC,KAAC,MAAM,QAAQ,CAAC,IAAE,IAAE,CAAC,CAAC,GAAG,QAAQ,OAAG;AAAC,UAAIC,IAAE,MAAI,SAAQC,IAAED,KAAGL,IAAE,EAAE,IAAI,CAAAO,MAAGP,EAAEO,CAAC,KAAGA,CAAC,IAAE;AAAE,MAAAF,KAAGH,EAAE,UAAU,OAAO,GAAGI,CAAC,GAAEJ,EAAE,UAAU,IAAIF,KAAGA,EAAE,CAAC,IAAEA,EAAE,CAAC,IAAE,CAAC,KAAGE,EAAE,aAAa,GAAE,CAAC;AAAA,IAAC,CAAC,GAAEM,EAAE,CAAC;AAAA,EAAC;AAAC,WAASA,EAAE,GAAE;AAAC,SAAGL,EAAE,SAAS,CAAC,MAAID,EAAE,MAAM,cAAY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AGN,GAAS,UAAAC,GAAQ,IAIvCA;AACT;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const w=require("react/jsx-runtime"),I=require("@chakra-ui/react/styled-system"),q=require("./nimbus-i18n-provider-BbsapOze.cjs.js"),_=require("./index-CVXB9mwf.cjs.js"),z=require("react"),R=require("./openLink-DkCJYbzq.cjs.js");function D(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=D(z);var H=(e,n,t,l,u,c,d,h)=>{let m=document.documentElement,p=["light","dark"];function f(s){(Array.isArray(e)?e:[e]).forEach(b=>{let C=b==="class",x=C&&c?u.map(v=>c[v]||v):u;C?(m.classList.remove(...x),m.classList.add(c&&c[s]?c[s]:s)):m.setAttribute(b,s)}),E(s)}function E(s){h&&p.includes(s)&&(m.style.colorScheme=s)}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)f(l);else try{let s=localStorage.getItem(n)||t,b=d&&s==="system"?i():s;f(b)}catch{}},A=["light","dark"],$="(prefers-color-scheme: dark)",K=typeof window>"u",j=r.createContext(void 0),V={setTheme:e=>{},themes:[]},W=()=>{var e;return(e=r.useContext(j))!=null?e:V},J=e=>r.useContext(j)?r.createElement(r.Fragment,null,e.children):r.createElement(Q,{...e}),F=["light","dark"],Q=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:t=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=F,defaultTheme:d=t?"system":"light",attribute:h="data-theme",value:m,children:p,nonce:f,scriptProps:E})=>{let[i,s]=r.useState(()=>B(u,d)),[b,C]=r.useState(()=>i==="system"?P():i),x=m?Object.values(m):c,v=r.useCallback(o=>{let a=o;if(!a)return;o==="system"&&t&&(a=P());let g=m?m[a]:a,L=n?G(f):null,S=document.documentElement,O=y=>{y==="class"?(S.classList.remove(...x),g&&S.classList.add(g)):y.startsWith("data-")&&(g?S.setAttribute(y,g):S.removeAttribute(y))};if(Array.isArray(h)?h.forEach(O):O(h),l){let y=A.includes(d)?d:null,N=A.includes(a)?a:y;S.style.colorScheme=N}L?.()},[f]),T=r.useCallback(o=>{let a=typeof o=="function"?o(i):o;s(a);try{localStorage.setItem(u,a)}catch{}},[i]),k=r.useCallback(o=>{let a=P(o);C(a),i==="system"&&t&&!e&&v("system")},[i,e]);r.useEffect(()=>{let o=window.matchMedia($);return o.addListener(k),k(o),()=>o.removeListener(k)},[k]),r.useEffect(()=>{let o=a=>{a.key===u&&(a.newValue?s(a.newValue):T(d))};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[T]),r.useEffect(()=>{v(e??i)},[e,i]);let M=r.useMemo(()=>({theme:i,setTheme:T,forcedTheme:e,resolvedTheme:i==="system"?b:i,themes:t?[...c,"system"]:c,systemTheme:t?b:void 0}),[i,T,e,b,t,c]);return r.createElement(j.Provider,{value:M},r.createElement(U,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:t,enableColorScheme:l,defaultTheme:d,value:m,themes:c,nonce:f,scriptProps:E}),p)},U=r.memo(({forcedTheme:e,storageKey:n,attribute:t,enableSystem:l,enableColorScheme:u,defaultTheme:c,value:d,themes:h,nonce:m,scriptProps:p})=>{let f=JSON.stringify([t,n,c,e,h,d,l,u]).slice(1,-1);return r.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${f})`}})}),B=(e,n)=>{if(K)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||n},G=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},P=e=>(e||(e=window.matchMedia($)),e.matches?"dark":"light");const X=e=>w.jsx(J,{attribute:"class",disableTransitionOnChange:!0,...e});function Y({children:e,locale:n,router:t,...l}){const u=w.jsx(I.ChakraProvider,{value:_.system,children:w.jsx(X,{enableSystem:!1,...l,children:w.jsx(q.NimbusI18nProvider,{locale:n,children:e})})});return t?w.jsx(R.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{...t,children:u}):u}exports.NimbusProvider=Y;exports.z=W;
2
- //# sourceMappingURL=nimbus-provider-Dnu5ohMR.cjs.js.map
1
+ "use strict";const w=require("react/jsx-runtime"),I=require("@chakra-ui/react/styled-system"),q=require("./nimbus-i18n-provider-BbsapOze.cjs.js"),_=require("./index-CBRmb4jF.cjs.js"),z=require("react"),R=require("./openLink-DkCJYbzq.cjs.js");function D(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=D(z);var H=(e,n,t,l,u,c,d,h)=>{let m=document.documentElement,p=["light","dark"];function f(s){(Array.isArray(e)?e:[e]).forEach(b=>{let C=b==="class",x=C&&c?u.map(v=>c[v]||v):u;C?(m.classList.remove(...x),m.classList.add(c&&c[s]?c[s]:s)):m.setAttribute(b,s)}),E(s)}function E(s){h&&p.includes(s)&&(m.style.colorScheme=s)}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)f(l);else try{let s=localStorage.getItem(n)||t,b=d&&s==="system"?i():s;f(b)}catch{}},A=["light","dark"],$="(prefers-color-scheme: dark)",K=typeof window>"u",j=r.createContext(void 0),V={setTheme:e=>{},themes:[]},W=()=>{var e;return(e=r.useContext(j))!=null?e:V},J=e=>r.useContext(j)?r.createElement(r.Fragment,null,e.children):r.createElement(Q,{...e}),F=["light","dark"],Q=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:t=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=F,defaultTheme:d=t?"system":"light",attribute:h="data-theme",value:m,children:p,nonce:f,scriptProps:E})=>{let[i,s]=r.useState(()=>B(u,d)),[b,C]=r.useState(()=>i==="system"?P():i),x=m?Object.values(m):c,v=r.useCallback(o=>{let a=o;if(!a)return;o==="system"&&t&&(a=P());let g=m?m[a]:a,L=n?G(f):null,S=document.documentElement,O=y=>{y==="class"?(S.classList.remove(...x),g&&S.classList.add(g)):y.startsWith("data-")&&(g?S.setAttribute(y,g):S.removeAttribute(y))};if(Array.isArray(h)?h.forEach(O):O(h),l){let y=A.includes(d)?d:null,N=A.includes(a)?a:y;S.style.colorScheme=N}L?.()},[f]),T=r.useCallback(o=>{let a=typeof o=="function"?o(i):o;s(a);try{localStorage.setItem(u,a)}catch{}},[i]),k=r.useCallback(o=>{let a=P(o);C(a),i==="system"&&t&&!e&&v("system")},[i,e]);r.useEffect(()=>{let o=window.matchMedia($);return o.addListener(k),k(o),()=>o.removeListener(k)},[k]),r.useEffect(()=>{let o=a=>{a.key===u&&(a.newValue?s(a.newValue):T(d))};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)},[T]),r.useEffect(()=>{v(e??i)},[e,i]);let M=r.useMemo(()=>({theme:i,setTheme:T,forcedTheme:e,resolvedTheme:i==="system"?b:i,themes:t?[...c,"system"]:c,systemTheme:t?b:void 0}),[i,T,e,b,t,c]);return r.createElement(j.Provider,{value:M},r.createElement(U,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:t,enableColorScheme:l,defaultTheme:d,value:m,themes:c,nonce:f,scriptProps:E}),p)},U=r.memo(({forcedTheme:e,storageKey:n,attribute:t,enableSystem:l,enableColorScheme:u,defaultTheme:c,value:d,themes:h,nonce:m,scriptProps:p})=>{let f=JSON.stringify([t,n,c,e,h,d,l,u]).slice(1,-1);return r.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${H.toString()})(${f})`}})}),B=(e,n)=>{if(K)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||n},G=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},P=e=>(e||(e=window.matchMedia($)),e.matches?"dark":"light");const X=e=>w.jsx(J,{attribute:"class",disableTransitionOnChange:!0,...e});function Y({children:e,locale:n,router:t,...l}){const u=w.jsx(I.ChakraProvider,{value:_.system,children:w.jsx(X,{enableSystem:!1,...l,children:w.jsx(q.NimbusI18nProvider,{locale:n,children:e})})});return t?w.jsx(R.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{...t,children:u}):u}exports.NimbusProvider=Y;exports.z=W;
2
+ //# sourceMappingURL=nimbus-provider-CbD64J_V.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nimbus-provider-Dnu5ohMR.cjs.js","sources":["../../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../../src/components/nimbus-provider/components/nimbus-provider.color-mode-provider.tsx","../../src/components/nimbus-provider/nimbus-provider.tsx"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import { ThemeProvider } from \"next-themes\";\nimport type { ColorModeProviderProps } from \"../nimbus-provider.types\";\n\nexport const NimbusColorModeProvider = (props: ColorModeProviderProps) => {\n return (\n <ThemeProvider attribute=\"class\" disableTransitionOnChange {...props} />\n );\n};\n","import { ChakraProvider } from \"@chakra-ui/react/styled-system\";\nimport { RouterProvider } from \"react-aria\";\nimport { NimbusI18nProvider } from \"@/components/nimbus-i18n-provider\";\nimport { system } from \"@/theme\";\nimport type { NimbusProviderProps } from \"./nimbus-provider.types\";\nimport { NimbusColorModeProvider } from \"./components/nimbus-provider.color-mode-provider\";\n\n/**\n * # NimbusProvider\n *\n * Provides an environment for the rest of the components to work in.\n * Components use `useLocale()` from `react-aria-components` to get the locale.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/utilities/nimbusprovider}\n */\nexport function NimbusProvider({\n children,\n locale,\n router,\n ...props\n}: NimbusProviderProps) {\n // Inner content with all the existing providers\n const content = (\n <ChakraProvider value={system}>\n <NimbusColorModeProvider enableSystem={false} {...props}>\n <NimbusI18nProvider locale={locale}>{children}</NimbusI18nProvider>\n </NimbusColorModeProvider>\n </ChakraProvider>\n );\n\n // If router config is provided, wrap with RouterProvider for client-side routing\n if (router) {\n return <RouterProvider {...router}>{content}</RouterProvider>;\n }\n\n // Default behavior when no router is configured\n return content;\n}\n"],"names":["M","i","s","u","m","a","l","d","w","p","n","y","k","S","f","R","c","b","I","O","x","t","U","z","V","N","H","T","E","r","v","C","W","P","L","g","D","A","Q","_","NimbusColorModeProvider","props","ThemeProvider","NimbusProvider","children","locale","router","content","jsx","ChakraProvider","system","NimbusI18nProvider","RouterProvider"],"mappings":"4gBAAqC,IAAIA,EAAE,CAAC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,IAAI,CAAC,IAAIC,EAAE,SAAS,gBAAgBC,EAAE,CAAC,QAAQ,MAAM,EAAE,SAASC,EAAEC,EAAE,EAAE,MAAM,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,QAAQC,GAAG,CAAC,IAAIC,EAAED,IAAI,QAAQE,EAAED,GAAGP,EAAED,EAAE,IAAIU,GAAGT,EAAES,CAAC,GAAGA,CAAC,EAAEV,EAAEQ,GAAGL,EAAE,UAAU,OAAO,GAAGM,CAAC,EAAEN,EAAE,UAAU,IAAIF,GAAGA,EAAEK,CAAC,EAAEL,EAAEK,CAAC,EAAEA,CAAC,GAAGH,EAAE,aAAaI,EAAED,CAAC,CAAC,CAAC,EAAEK,EAAEL,CAAC,CAAC,CAAC,SAASK,EAAEL,EAAE,CAAC,GAAGF,EAAE,SAASE,CAAC,IAAIH,EAAE,MAAM,YAAYG,EAAE,CAAC,SAASM,GAAG,CAAC,OAAO,OAAO,WAAW,8BAA8B,EAAE,QAAQ,OAAO,OAAO,CAAC,GAAGb,EAAEM,EAAEN,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,IAAI,CAAC,GAAGkB,EAAE,OAAO,IAAIjB,EAAE,GAAG,CAACA,EAAE,aAAa,QAAQ,CAAC,GAAG,MAAM,MAAS,CAAC,CAAC,OAAOA,GAAGD,CAAC,EAAE+B,EAAE,GAAG,CAAC,IAAI/B,EAAE,SAAS,cAAc,OAAO,EAAE,OAAO,GAAGA,EAAE,aAAa,QAAQ,CAAC,EAAEA,EAAE,YAAY,SAAS,eAAe,6KAA6K,CAAC,EAAE,SAAS,KAAK,YAAYA,CAAC,EAAE,IAAI,CAAC,OAAO,iBAAiB,SAAS,IAAI,EAAE,WAAW,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE2B,EAAE,IAAI,IAAI,EAAE,OAAO,WAAWV,CAAC,GAAG,EAAE,QAAQ,OAAO,SCGtuG,MAAMsB,EAA2BC,SAEnCC,EAAA,CAAc,UAAU,QAAQ,0BAAyB,GAAE,GAAGD,EAAO,ECUnE,SAASE,EAAe,CAC7B,SAAAC,EACA,OAAAC,EACA,OAAAC,EACA,GAAGL,CACL,EAAwB,CAEtB,MAAMM,EACJC,MAACC,EAAAA,eAAA,CAAe,MAAOC,EAAAA,OACrB,eAACV,EAAA,CAAwB,aAAc,GAAQ,GAAGC,EAChD,SAAAO,MAACG,EAAAA,mBAAA,CAAmB,OAAAN,EAAiB,SAAAD,CAAA,CAAS,EAChD,EACF,EAIF,OAAIE,EACKE,EAAAA,IAACI,EAAAA,0CAAA,CAAgB,GAAGN,EAAS,SAAAC,EAAQ,EAIvCA,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"nimbus-provider-CbD64J_V.cjs.js","sources":["../../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../../src/components/nimbus-provider/components/nimbus-provider.color-mode-provider.tsx","../../src/components/nimbus-provider/nimbus-provider.tsx"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import { ThemeProvider } from \"next-themes\";\nimport type { ColorModeProviderProps } from \"../nimbus-provider.types\";\n\nexport const NimbusColorModeProvider = (props: ColorModeProviderProps) => {\n return (\n <ThemeProvider attribute=\"class\" disableTransitionOnChange {...props} />\n );\n};\n","import { ChakraProvider } from \"@chakra-ui/react/styled-system\";\nimport { RouterProvider } from \"react-aria\";\nimport { NimbusI18nProvider } from \"@/components/nimbus-i18n-provider\";\nimport { system } from \"@/theme\";\nimport type { NimbusProviderProps } from \"./nimbus-provider.types\";\nimport { NimbusColorModeProvider } from \"./components/nimbus-provider.color-mode-provider\";\n\n/**\n * # NimbusProvider\n *\n * Provides an environment for the rest of the components to work in.\n * Components use `useLocale()` from `react-aria-components` to get the locale.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/utilities/nimbusprovider}\n */\nexport function NimbusProvider({\n children,\n locale,\n router,\n ...props\n}: NimbusProviderProps) {\n // Inner content with all the existing providers\n const content = (\n <ChakraProvider value={system}>\n <NimbusColorModeProvider enableSystem={false} {...props}>\n <NimbusI18nProvider locale={locale}>{children}</NimbusI18nProvider>\n </NimbusColorModeProvider>\n </ChakraProvider>\n );\n\n // If router config is provided, wrap with RouterProvider for client-side routing\n if (router) {\n return <RouterProvider {...router}>{content}</RouterProvider>;\n }\n\n // Default behavior when no router is configured\n return content;\n}\n"],"names":["M","i","s","u","m","a","l","d","w","p","n","y","k","S","f","R","c","b","I","O","x","t","U","z","V","N","H","T","E","r","v","C","W","P","L","g","D","A","Q","_","NimbusColorModeProvider","props","ThemeProvider","NimbusProvider","children","locale","router","content","jsx","ChakraProvider","system","NimbusI18nProvider","RouterProvider"],"mappings":"4gBAAqC,IAAIA,EAAE,CAAC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,IAAI,CAAC,IAAIC,EAAE,SAAS,gBAAgBC,EAAE,CAAC,QAAQ,MAAM,EAAE,SAASC,EAAEC,EAAE,EAAE,MAAM,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,QAAQC,GAAG,CAAC,IAAIC,EAAED,IAAI,QAAQE,EAAED,GAAGP,EAAED,EAAE,IAAIU,GAAGT,EAAES,CAAC,GAAGA,CAAC,EAAEV,EAAEQ,GAAGL,EAAE,UAAU,OAAO,GAAGM,CAAC,EAAEN,EAAE,UAAU,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I,EAAAA,0CAAA,CAAgB,GAAGN,EAAS,SAAAC,EAAQ,EAIvCA,CACT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const N=require("react/jsx-runtime"),s=require("react"),pe=require("@chakra-ui/react"),fa=require("@chakra-ui/react/styled-system"),be=require("@commercetools/nimbus-icons"),ma=require("./extract-style-props-B4hqila-.cjs.js"),xe=require("./Button-DLCecw8f.cjs.js"),$a=require("./Input-2FU1rljx.cjs.js"),pa=require("./index-CVXB9mwf.cjs.js"),q=require("./normalize-messages-CaDzkuUm.cjs.js"),xa=require("./context-CyT9C4U4.cjs.js"),va=require("./useObjectRef-4v2MxSjQ.cjs.js"),La=require("./useControlledState-D0L6S_5r.cjs.js"),L=require("./number-DHvo-MDe.cjs.js"),ve=require("./useFormValidation-BfTV0EQ1.cjs.js"),fe=require("./NumberFormatter-DewVDY5w.cjs.js"),Le=require("./useSpinButton-RB0J1fiP.cjs.js"),S=require("./mergeProps-CxnHrnow.cjs.js"),Da=require("./filterDOMProps-WUskt27c.cjs.js"),ee=require("./platform-BDLy2vDY.cjs.js"),Fa=require("./useFormReset-COoih4uI.cjs.js"),ga=require("./useFocus-9leARHB4.cjs.js"),Pa=require("./useFocusWithin-CX8GdFVw.cjs.js"),Na=require("./useEvent-D0r31Azw.cjs.js"),Sa=require("./useTextField-B1RrrtMI.cjs.js"),Ba=require("./useLocalizedStringFormatter-CJ-iYW1Z.cjs.js"),me=require("./useProgressBar-C_mJ1JKi.cjs.js"),Ea=require("./box-CWni3A32.cjs.js");function ha(e,r){let{onScroll:a,isDisabled:l}=e,o=s.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),a&&a({deltaX:i.deltaX,deltaY:i.deltaY}))},[a]);Na.$e9faafb641e167db$export$90fc3a17d93f704c(r,"wheel",l?void 0:o)}function $e(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Ca(e,r,a){let l=S.$8ae05eaa5c114e9c$export$7f54fc3180508a52(n=>{let t=a.current;if(!t)return;let f=null;switch(n.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":f=t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteContentForward":f=t.selectionEnd===t.selectionStart?t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd+1):t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteContentBackward":f=t.selectionEnd===t.selectionStart?t.value.slice(0,t.selectionStart-1)+t.value.slice(t.selectionStart):t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":f=t.value.slice(t.selectionStart);break;default:n.data!=null&&(f=t.value.slice(0,t.selectionStart)+n.data+t.value.slice(t.selectionEnd));break}(f==null||!r.validate(f))&&n.preventDefault()});s.useEffect(()=>{if(!$e()||!a.current)return;let n=a.current;return n.addEventListener("beforeinput",l,!1),()=>{n.removeEventListener("beforeinput",l,!1)}},[a,l]);let o=$e()?null:n=>{let t=n.target.value.slice(0,n.target.selectionStart)+n.data+n.target.value.slice(n.target.selectionEnd);r.validate(t)||n.preventDefault()},{labelProps:i,inputProps:c,descriptionProps:x,errorMessageProps:d,...D}=Sa.$2d73ec29415bd339$export$712718f7aec83d5(e,a),F=s.useRef(null);return{inputProps:S.$3ef42575df84b30b$export$9d1611c77c2fe928(c,{onBeforeInput:o,onCompositionStart(){let{value:n,selectionStart:t,selectionEnd:f}=a.current;F.current={value:n,selectionStart:t,selectionEnd:f}},onCompositionEnd(){if(a.current&&!r.validate(a.current.value)){let{value:n,selectionStart:t,selectionEnd:f}=F.current;a.current.value=n,a.current.setSelectionRange(t,f),r.setInputValue(n)}}}),labelProps:i,descriptionProps:x,errorMessageProps:d,...D}}function Va(e){let{minValue:r,maxValue:a,step:l,formatOptions:o,value:i,defaultValue:c=NaN,onChange:x,locale:d,isDisabled:D,isReadOnly:F}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(l!==void 0&&!isNaN(l)?i=L.$9446cca9a3875146$export$cb6e0bb50bc19463(i,r,a,l):i=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(i,r,a)),isNaN(c)||(l!==void 0&&!isNaN(l)?c=L.$9446cca9a3875146$export$cb6e0bb50bc19463(c,r,a,l):c=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(c,r,a));let[n,t]=La.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i,isNaN(c)?NaN:c,x),[f]=s.useState(n),[g,v]=s.useState(()=>isNaN(n)?"":new fe.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(d,o).format(n)),P=s.useMemo(()=>new Le.$6c7bd7858deea686$export$cd11ab140839f11d(d,o),[d,o]),h=s.useMemo(()=>P.getNumberingSystem(g),[P,g]),B=s.useMemo(()=>new fe.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(d,{...o,numberingSystem:h}),[d,o,h]),w=s.useMemo(()=>B.resolvedOptions(),[B]),m=s.useCallback(u=>isNaN(u)||u===null?"":B.format(u),[B]),E=ve.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:n}),$=l!==void 0&&!isNaN(l)?l:1;w.style==="percent"&&(l===void 0||isNaN(l))&&($=.01);let[k,_]=s.useState(n),[R,U]=s.useState(d),[I,Z]=s.useState(o);(!Object.is(n,k)||d!==R||o!==I)&&(v(m(n)),_(n),U(d),Z(o));let b=s.useMemo(()=>P.parse(g),[P,g]),T=()=>{if(!g.length){t(NaN),v(i===void 0?"":m(n));return}if(isNaN(b)){v(m(n));return}let u;l===void 0||isNaN(l)?u=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(b,r,a):u=L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,l),u=P.parse(m(u)),t(u),v(m(i===void 0?u:n)),E.commitValidation()},y=(u,W=0)=>{let C=b;if(isNaN(C)){let V=isNaN(W)?0:W;return L.$9446cca9a3875146$export$cb6e0bb50bc19463(V,r,a,$)}else{let V=L.$9446cca9a3875146$export$cb6e0bb50bc19463(C,r,a,$);return u==="+"&&V>C||u==="-"&&V<C?V:L.$9446cca9a3875146$export$cb6e0bb50bc19463(ae(u,C,$),r,a,$)}},O=()=>{let u=y("+",r);u===n&&v(m(u)),t(u),E.commitValidation()},Y=()=>{let u=y("-",a);u===n&&v(m(u)),t(u),E.commitValidation()},z=()=>{a!=null&&(t(L.$9446cca9a3875146$export$cb6e0bb50bc19463(a,r,a,$)),E.commitValidation())},H=()=>{r!=null&&(t(r),E.commitValidation())},K=s.useMemo(()=>!D&&!F&&(isNaN(b)||a===void 0||isNaN(a)||L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,$)>b||ae("+",b,$)<=a),[D,F,r,a,$,b]),G=s.useMemo(()=>!D&&!F&&(isNaN(b)||r===void 0||isNaN(r)||L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,$)<b||ae("-",b,$)>=r),[D,F,r,a,$,b]);return{...E,validate:u=>P.isValidPartialNumber(u,r,a),increment:O,incrementToMax:z,decrement:Y,decrementToMin:H,canIncrement:K,canDecrement:G,minValue:r,maxValue:a,numberValue:b,defaultNumberValue:isNaN(c)?f:c,setNumberValue:t,setInputValue:v,inputValue:g,commit:T}}function ae(e,r,a){let l=e==="+"?r+a:r-a;if(r%1!==0||a%1!==0){const o=r.toString().split("."),i=a.toString().split("."),c=o[1]&&o[1].length||0,x=i[1]&&i[1].length||0,d=Math.pow(10,Math.max(c,x));r=Math.round(r*d),a=Math.round(a*d),l=e==="+"?r+a:r-a,l/=d}return l}var De={};De={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var Fe={};Fe={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var ge={};ge={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Pe={};Pe={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Ne={};Ne={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Se={};Se={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Be={};Be={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Ee={};Ee={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var he={};he={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Ce={};Ce={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Ve={};Ve={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Me={};Me={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Ie={};Ie={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ye={};ye={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var qe={};qe={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var we={};we={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var ke={};ke={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var Re={};Re={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var Oe={};Oe={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Ae={};Ae={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var je={};je={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Te={};Te={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var ze={};ze={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ke={};Ke={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var We={};We={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var _e={};_e={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ue={};Ue={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ze={};Ze={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ye={};Ye={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var He={};He={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ge={};Ge={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Xe={};Xe={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Je={};Je={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Qe={};Qe={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var ea={};ea={"ar-AE":De,"bg-BG":Fe,"cs-CZ":ge,"da-DK":Pe,"de-DE":Ne,"el-GR":Se,"en-US":Be,"es-ES":Ee,"et-EE":he,"fi-FI":Ce,"fr-FR":Ve,"he-IL":Me,"hr-HR":Ie,"hu-HU":ye,"it-IT":qe,"ja-JP":we,"ko-KR":ke,"lt-LT":Re,"lv-LV":Oe,"nb-NO":Ae,"nl-NL":je,"pl-PL":Te,"pt-BR":ze,"pt-PT":Ke,"ro-RO":We,"ru-RU":_e,"sk-SK":Ue,"sl-SI":Ze,"sr-SP":Ye,"sv-SE":He,"tr-TR":Ge,"uk-UA":Xe,"zh-CN":Je,"zh-TW":Qe};function Ma(e){return e&&e.__esModule?e.default:e}function Ia(e,r,a){let{id:l,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:c,isReadOnly:x,isRequired:d,minValue:D,maxValue:F,autoFocus:n,label:t,formatOptions:f,onBlur:g=()=>{},onFocus:v,onFocusChange:P,onKeyDown:h,onKeyUp:B,description:w,errorMessage:m,isWheelDisabled:E,...$}=e,{increment:k,incrementToMax:_,decrement:R,decrementToMin:U,numberValue:I,inputValue:Z,commit:b,commitValidation:T}=r;const y=Ba.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ma(ea),"@react-aria/numberfield");let O=S.$bdb11010cef70236$export$f680877a34711e37(l),{focusProps:Y}=ga.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({onBlur(){b()}}),z=me.$a916eb452884faea$export$b7a616150fdb9f44(f),H=s.useMemo(()=>z.resolvedOptions(),[z]),K=me.$a916eb452884faea$export$b7a616150fdb9f44({...f,currencySign:void 0}),G=s.useMemo(()=>isNaN(I)?"":K.format(I),[K,I]),{spinButtonProps:re,incrementButtonProps:u,decrementButtonProps:W}=Le.$d2e8511e6f209edf$export$e908e06f4b8e3402({isDisabled:c,isReadOnly:x,isRequired:d,maxValue:F,minValue:D,onIncrement:k,onIncrementToMax:_,onDecrement:R,onDecrementToMin:U,value:I,textValue:G}),[C,V]=s.useState(!1),{focusWithinProps:ra}=Pa.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:c,onFocusWithinChange:V}),ta=s.useCallback(p=>{Math.abs(p.deltaY)<=Math.abs(p.deltaX)||(p.deltaY>0?k():p.deltaY<0&&R())},[R,k]);ha({onScroll:ta,isDisabled:E||c||x||!C},a);var X;let te=((X=H.maximumFractionDigits)!==null&&X!==void 0?X:0)>0,ne=r.minValue===void 0||isNaN(r.minValue)||r.minValue<0,A="numeric";ee.$c87311424ea30a05$export$186c6964ca17d99()?ne?A="text":te&&(A="decimal"):ee.$c87311424ea30a05$export$a11b0059900ceec8()&&(ne?A="numeric":te&&(A="decimal"));let na=p=>{r.validate(p)&&r.setInputValue(p)},la=Da.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),le=s.useCallback(p=>{p.nativeEvent.isComposing||(p.key==="Enter"?(b(),T()):p.continuePropagation())},[b,T]),{isInvalid:ie,validationErrors:ia,validationDetails:ua}=r.displayValidation,{labelProps:ue,inputProps:sa,descriptionProps:oa,errorMessageProps:ca}=Ca({...$,...la,name:void 0,form:void 0,label:t,autoFocus:n,isDisabled:c,isReadOnly:x,isRequired:d,validate:void 0,[ve.$e5be200c675c3b3a$export$a763b9476acd3eb]:r,value:Z,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:O,type:"text",inputMode:A,onChange:na,onBlur:g,onFocus:v,onFocusChange:P,onKeyDown:s.useMemo(()=>S.$ff5963eb1fccf552$export$e08e3b67e392101e(le,h),[le,h]),onKeyUp:B,description:w,errorMessage:m},r,a);Fa.$99facab73266f662$export$5add1d006293d136(a,r.defaultNumberValue,r.setNumberValue);let se=S.$3ef42575df84b30b$export$9d1611c77c2fe928(re,Y,sa,{role:null,"aria-roledescription":ee.$c87311424ea30a05$export$fedb369cb70207f1()?null:y.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(se["aria-required"]=void 0);let oe=p=>{var Q;document.activeElement!==a.current&&(p.pointerType==="mouse"?(Q=a.current)===null||Q===void 0||Q.focus():p.target.focus())},J=e["aria-label"]||(typeof e.label=="string"?e.label:""),M;J||(M=e.label!=null?ue.id:e["aria-labelledby"]);let ce=S.$bdb11010cef70236$export$f680877a34711e37(),de=S.$bdb11010cef70236$export$f680877a34711e37(),da=S.$3ef42575df84b30b$export$9d1611c77c2fe928(u,{"aria-label":i||y.format("increase",{fieldLabel:J}).trim(),id:M&&!i?ce:null,"aria-labelledby":M&&!i?`${ce} ${M}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canIncrement,onPressStart:oe}),ba=S.$3ef42575df84b30b$export$9d1611c77c2fe928(W,{"aria-label":o||y.format("decrease",{fieldLabel:J}).trim(),id:M&&!o?de:null,"aria-labelledby":M&&!o?`${de} ${M}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canDecrement,onPressStart:oe});return{groupProps:{...ra,role:"group","aria-disabled":c,"aria-invalid":ie?"true":void 0},labelProps:ue,inputProps:se,incrementButtonProps:da,decrementButtonProps:ba,errorMessageProps:ca,descriptionProps:oa,isInvalid:ie,validationErrors:ia,validationDetails:ua}}const{withContext:j,withProvider:ya}=pe.createSlotRecipeContext({key:"numberInput"}),qa=ya("div","root"),wa=j("div","leadingElement"),ka=j("div","trailingElement"),Ra=j($a.$3985021b0ad6602f$export$f5b8910cec6cf069,"input"),Oa=j(xe.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,"incrementButton"),Aa=j(xe.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,"decrementButton"),ja={decrement:"Decrement",increment:"Increment"},Ta={decrement:"Minderung",increment:"Erhöhung"},za={decrement:"Merma",increment:"Aumento"},Ka={decrement:"Décrément",increment:"Incrément"},Wa={decrement:"Redução",increment:"Aumento"},_a={en:q.normalizeMessages(ja),de:q.normalizeMessages(Ta),es:q.normalizeMessages(za),"fr-FR":q.normalizeMessages(Ka),"pt-BR":q.normalizeMessages(Wa)},aa=e=>{const{size:r,leadingElement:a,trailingElement:l,ref:o,...i}=e,{locale:c}=xa.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),x=q.useLocalizedStringFormatter(_a),d=s.useRef(null),D=va.$df56164dff5785e2$export$4338b53315abf666(pe.mergeRefs(d,o)),F=fa.useSlotRecipe({recipe:pa.numberInputRecipe}),[n,t]=F.splitVariantProps(i),[f,g]=ma.extractStyleProps(t),v={...g,locale:c,incrementAriaLabel:x.format("increment"),decrementAriaLabel:x.format("decrement")},P=Va(v),{inputProps:h,incrementButtonProps:B,decrementButtonProps:w}=Ia(v,P,D),m={"data-invalid":e.isInvalid,"data-disabled":e.isDisabled};return N.jsxs(qa,{className:e?.className,...m,...n,...f,size:r,children:[a&&N.jsx(wa,{children:a}),N.jsx(Ra,{ref:D,...h,...m,name:e.name}),l&&N.jsx(ka,{children:l}),N.jsxs(Ea.Box,{position:"absolute",top:"0",right:"0",display:"flex",flexDirection:"column",height:"full",children:[N.jsx(Oa,{...B,...m,children:N.jsx(be.KeyboardArrowUp,{})}),N.jsx(Aa,{...w,...m,children:N.jsx(be.KeyboardArrowDown,{})})]})]})};aa.displayName="NumberInput";exports.NumberInput=aa;
2
- //# sourceMappingURL=number-input-CR1hdy-B.cjs.js.map
1
+ "use strict";const N=require("react/jsx-runtime"),s=require("react"),pe=require("@chakra-ui/react"),fa=require("@chakra-ui/react/styled-system"),be=require("@commercetools/nimbus-icons"),ma=require("./extract-style-props-BvvBKXOu.cjs.js"),xe=require("./Button-DLCecw8f.cjs.js"),$a=require("./Input-2FU1rljx.cjs.js"),pa=require("./index-CBRmb4jF.cjs.js"),q=require("./normalize-messages-CaDzkuUm.cjs.js"),xa=require("./context-CyT9C4U4.cjs.js"),va=require("./useObjectRef-4v2MxSjQ.cjs.js"),La=require("./useControlledState-D0L6S_5r.cjs.js"),L=require("./number-DHvo-MDe.cjs.js"),ve=require("./useFormValidation-BfTV0EQ1.cjs.js"),fe=require("./NumberFormatter-DewVDY5w.cjs.js"),Le=require("./useSpinButton-RB0J1fiP.cjs.js"),S=require("./mergeProps-CxnHrnow.cjs.js"),Da=require("./filterDOMProps-WUskt27c.cjs.js"),ee=require("./platform-BDLy2vDY.cjs.js"),Fa=require("./useFormReset-COoih4uI.cjs.js"),ga=require("./useFocus-9leARHB4.cjs.js"),Pa=require("./useFocusWithin-CX8GdFVw.cjs.js"),Na=require("./useEvent-D0r31Azw.cjs.js"),Sa=require("./useTextField-B1RrrtMI.cjs.js"),Ba=require("./useLocalizedStringFormatter-CJ-iYW1Z.cjs.js"),me=require("./useProgressBar-C_mJ1JKi.cjs.js"),Ea=require("./box-CWni3A32.cjs.js");function ha(e,r){let{onScroll:a,isDisabled:l}=e,o=s.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),a&&a({deltaX:i.deltaX,deltaY:i.deltaY}))},[a]);Na.$e9faafb641e167db$export$90fc3a17d93f704c(r,"wheel",l?void 0:o)}function $e(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Ca(e,r,a){let l=S.$8ae05eaa5c114e9c$export$7f54fc3180508a52(n=>{let t=a.current;if(!t)return;let f=null;switch(n.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":f=t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteContentForward":f=t.selectionEnd===t.selectionStart?t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd+1):t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteContentBackward":f=t.selectionEnd===t.selectionStart?t.value.slice(0,t.selectionStart-1)+t.value.slice(t.selectionStart):t.value.slice(0,t.selectionStart)+t.value.slice(t.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":f=t.value.slice(t.selectionStart);break;default:n.data!=null&&(f=t.value.slice(0,t.selectionStart)+n.data+t.value.slice(t.selectionEnd));break}(f==null||!r.validate(f))&&n.preventDefault()});s.useEffect(()=>{if(!$e()||!a.current)return;let n=a.current;return n.addEventListener("beforeinput",l,!1),()=>{n.removeEventListener("beforeinput",l,!1)}},[a,l]);let o=$e()?null:n=>{let t=n.target.value.slice(0,n.target.selectionStart)+n.data+n.target.value.slice(n.target.selectionEnd);r.validate(t)||n.preventDefault()},{labelProps:i,inputProps:c,descriptionProps:x,errorMessageProps:d,...D}=Sa.$2d73ec29415bd339$export$712718f7aec83d5(e,a),F=s.useRef(null);return{inputProps:S.$3ef42575df84b30b$export$9d1611c77c2fe928(c,{onBeforeInput:o,onCompositionStart(){let{value:n,selectionStart:t,selectionEnd:f}=a.current;F.current={value:n,selectionStart:t,selectionEnd:f}},onCompositionEnd(){if(a.current&&!r.validate(a.current.value)){let{value:n,selectionStart:t,selectionEnd:f}=F.current;a.current.value=n,a.current.setSelectionRange(t,f),r.setInputValue(n)}}}),labelProps:i,descriptionProps:x,errorMessageProps:d,...D}}function Va(e){let{minValue:r,maxValue:a,step:l,formatOptions:o,value:i,defaultValue:c=NaN,onChange:x,locale:d,isDisabled:D,isReadOnly:F}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(l!==void 0&&!isNaN(l)?i=L.$9446cca9a3875146$export$cb6e0bb50bc19463(i,r,a,l):i=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(i,r,a)),isNaN(c)||(l!==void 0&&!isNaN(l)?c=L.$9446cca9a3875146$export$cb6e0bb50bc19463(c,r,a,l):c=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(c,r,a));let[n,t]=La.$458b0a5536c1a7cf$export$40bfa8c7b0832715(i,isNaN(c)?NaN:c,x),[f]=s.useState(n),[g,v]=s.useState(()=>isNaN(n)?"":new fe.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(d,o).format(n)),P=s.useMemo(()=>new Le.$6c7bd7858deea686$export$cd11ab140839f11d(d,o),[d,o]),h=s.useMemo(()=>P.getNumberingSystem(g),[P,g]),B=s.useMemo(()=>new fe.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(d,{...o,numberingSystem:h}),[d,o,h]),w=s.useMemo(()=>B.resolvedOptions(),[B]),m=s.useCallback(u=>isNaN(u)||u===null?"":B.format(u),[B]),E=ve.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:n}),$=l!==void 0&&!isNaN(l)?l:1;w.style==="percent"&&(l===void 0||isNaN(l))&&($=.01);let[k,_]=s.useState(n),[R,U]=s.useState(d),[I,Z]=s.useState(o);(!Object.is(n,k)||d!==R||o!==I)&&(v(m(n)),_(n),U(d),Z(o));let b=s.useMemo(()=>P.parse(g),[P,g]),T=()=>{if(!g.length){t(NaN),v(i===void 0?"":m(n));return}if(isNaN(b)){v(m(n));return}let u;l===void 0||isNaN(l)?u=L.$9446cca9a3875146$export$7d15b64cf5a3a4c4(b,r,a):u=L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,l),u=P.parse(m(u)),t(u),v(m(i===void 0?u:n)),E.commitValidation()},y=(u,W=0)=>{let C=b;if(isNaN(C)){let V=isNaN(W)?0:W;return L.$9446cca9a3875146$export$cb6e0bb50bc19463(V,r,a,$)}else{let V=L.$9446cca9a3875146$export$cb6e0bb50bc19463(C,r,a,$);return u==="+"&&V>C||u==="-"&&V<C?V:L.$9446cca9a3875146$export$cb6e0bb50bc19463(ae(u,C,$),r,a,$)}},O=()=>{let u=y("+",r);u===n&&v(m(u)),t(u),E.commitValidation()},Y=()=>{let u=y("-",a);u===n&&v(m(u)),t(u),E.commitValidation()},z=()=>{a!=null&&(t(L.$9446cca9a3875146$export$cb6e0bb50bc19463(a,r,a,$)),E.commitValidation())},H=()=>{r!=null&&(t(r),E.commitValidation())},K=s.useMemo(()=>!D&&!F&&(isNaN(b)||a===void 0||isNaN(a)||L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,$)>b||ae("+",b,$)<=a),[D,F,r,a,$,b]),G=s.useMemo(()=>!D&&!F&&(isNaN(b)||r===void 0||isNaN(r)||L.$9446cca9a3875146$export$cb6e0bb50bc19463(b,r,a,$)<b||ae("-",b,$)>=r),[D,F,r,a,$,b]);return{...E,validate:u=>P.isValidPartialNumber(u,r,a),increment:O,incrementToMax:z,decrement:Y,decrementToMin:H,canIncrement:K,canDecrement:G,minValue:r,maxValue:a,numberValue:b,defaultNumberValue:isNaN(c)?f:c,setNumberValue:t,setInputValue:v,inputValue:g,commit:T}}function ae(e,r,a){let l=e==="+"?r+a:r-a;if(r%1!==0||a%1!==0){const o=r.toString().split("."),i=a.toString().split("."),c=o[1]&&o[1].length||0,x=i[1]&&i[1].length||0,d=Math.pow(10,Math.max(c,x));r=Math.round(r*d),a=Math.round(a*d),l=e==="+"?r+a:r-a,l/=d}return l}var De={};De={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var Fe={};Fe={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var ge={};ge={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Pe={};Pe={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Ne={};Ne={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Se={};Se={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Be={};Be={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Ee={};Ee={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var he={};he={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Ce={};Ce={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Ve={};Ve={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Me={};Me={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Ie={};Ie={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ye={};ye={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var qe={};qe={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var we={};we={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var ke={};ke={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var Re={};Re={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var Oe={};Oe={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Ae={};Ae={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var je={};je={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Te={};Te={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var ze={};ze={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ke={};Ke={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var We={};We={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var _e={};_e={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ue={};Ue={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ze={};Ze={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Ye={};Ye={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var He={};He={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ge={};Ge={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Xe={};Xe={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Je={};Je={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Qe={};Qe={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var ea={};ea={"ar-AE":De,"bg-BG":Fe,"cs-CZ":ge,"da-DK":Pe,"de-DE":Ne,"el-GR":Se,"en-US":Be,"es-ES":Ee,"et-EE":he,"fi-FI":Ce,"fr-FR":Ve,"he-IL":Me,"hr-HR":Ie,"hu-HU":ye,"it-IT":qe,"ja-JP":we,"ko-KR":ke,"lt-LT":Re,"lv-LV":Oe,"nb-NO":Ae,"nl-NL":je,"pl-PL":Te,"pt-BR":ze,"pt-PT":Ke,"ro-RO":We,"ru-RU":_e,"sk-SK":Ue,"sl-SI":Ze,"sr-SP":Ye,"sv-SE":He,"tr-TR":Ge,"uk-UA":Xe,"zh-CN":Je,"zh-TW":Qe};function Ma(e){return e&&e.__esModule?e.default:e}function Ia(e,r,a){let{id:l,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:c,isReadOnly:x,isRequired:d,minValue:D,maxValue:F,autoFocus:n,label:t,formatOptions:f,onBlur:g=()=>{},onFocus:v,onFocusChange:P,onKeyDown:h,onKeyUp:B,description:w,errorMessage:m,isWheelDisabled:E,...$}=e,{increment:k,incrementToMax:_,decrement:R,decrementToMin:U,numberValue:I,inputValue:Z,commit:b,commitValidation:T}=r;const y=Ba.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ma(ea),"@react-aria/numberfield");let O=S.$bdb11010cef70236$export$f680877a34711e37(l),{focusProps:Y}=ga.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({onBlur(){b()}}),z=me.$a916eb452884faea$export$b7a616150fdb9f44(f),H=s.useMemo(()=>z.resolvedOptions(),[z]),K=me.$a916eb452884faea$export$b7a616150fdb9f44({...f,currencySign:void 0}),G=s.useMemo(()=>isNaN(I)?"":K.format(I),[K,I]),{spinButtonProps:re,incrementButtonProps:u,decrementButtonProps:W}=Le.$d2e8511e6f209edf$export$e908e06f4b8e3402({isDisabled:c,isReadOnly:x,isRequired:d,maxValue:F,minValue:D,onIncrement:k,onIncrementToMax:_,onDecrement:R,onDecrementToMin:U,value:I,textValue:G}),[C,V]=s.useState(!1),{focusWithinProps:ra}=Pa.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:c,onFocusWithinChange:V}),ta=s.useCallback(p=>{Math.abs(p.deltaY)<=Math.abs(p.deltaX)||(p.deltaY>0?k():p.deltaY<0&&R())},[R,k]);ha({onScroll:ta,isDisabled:E||c||x||!C},a);var X;let te=((X=H.maximumFractionDigits)!==null&&X!==void 0?X:0)>0,ne=r.minValue===void 0||isNaN(r.minValue)||r.minValue<0,A="numeric";ee.$c87311424ea30a05$export$186c6964ca17d99()?ne?A="text":te&&(A="decimal"):ee.$c87311424ea30a05$export$a11b0059900ceec8()&&(ne?A="numeric":te&&(A="decimal"));let na=p=>{r.validate(p)&&r.setInputValue(p)},la=Da.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),le=s.useCallback(p=>{p.nativeEvent.isComposing||(p.key==="Enter"?(b(),T()):p.continuePropagation())},[b,T]),{isInvalid:ie,validationErrors:ia,validationDetails:ua}=r.displayValidation,{labelProps:ue,inputProps:sa,descriptionProps:oa,errorMessageProps:ca}=Ca({...$,...la,name:void 0,form:void 0,label:t,autoFocus:n,isDisabled:c,isReadOnly:x,isRequired:d,validate:void 0,[ve.$e5be200c675c3b3a$export$a763b9476acd3eb]:r,value:Z,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:O,type:"text",inputMode:A,onChange:na,onBlur:g,onFocus:v,onFocusChange:P,onKeyDown:s.useMemo(()=>S.$ff5963eb1fccf552$export$e08e3b67e392101e(le,h),[le,h]),onKeyUp:B,description:w,errorMessage:m},r,a);Fa.$99facab73266f662$export$5add1d006293d136(a,r.defaultNumberValue,r.setNumberValue);let se=S.$3ef42575df84b30b$export$9d1611c77c2fe928(re,Y,sa,{role:null,"aria-roledescription":ee.$c87311424ea30a05$export$fedb369cb70207f1()?null:y.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(se["aria-required"]=void 0);let oe=p=>{var Q;document.activeElement!==a.current&&(p.pointerType==="mouse"?(Q=a.current)===null||Q===void 0||Q.focus():p.target.focus())},J=e["aria-label"]||(typeof e.label=="string"?e.label:""),M;J||(M=e.label!=null?ue.id:e["aria-labelledby"]);let ce=S.$bdb11010cef70236$export$f680877a34711e37(),de=S.$bdb11010cef70236$export$f680877a34711e37(),da=S.$3ef42575df84b30b$export$9d1611c77c2fe928(u,{"aria-label":i||y.format("increase",{fieldLabel:J}).trim(),id:M&&!i?ce:null,"aria-labelledby":M&&!i?`${ce} ${M}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canIncrement,onPressStart:oe}),ba=S.$3ef42575df84b30b$export$9d1611c77c2fe928(W,{"aria-label":o||y.format("decrease",{fieldLabel:J}).trim(),id:M&&!o?de:null,"aria-labelledby":M&&!o?`${de} ${M}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!r.canDecrement,onPressStart:oe});return{groupProps:{...ra,role:"group","aria-disabled":c,"aria-invalid":ie?"true":void 0},labelProps:ue,inputProps:se,incrementButtonProps:da,decrementButtonProps:ba,errorMessageProps:ca,descriptionProps:oa,isInvalid:ie,validationErrors:ia,validationDetails:ua}}const{withContext:j,withProvider:ya}=pe.createSlotRecipeContext({key:"numberInput"}),qa=ya("div","root"),wa=j("div","leadingElement"),ka=j("div","trailingElement"),Ra=j($a.$3985021b0ad6602f$export$f5b8910cec6cf069,"input"),Oa=j(xe.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,"incrementButton"),Aa=j(xe.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,"decrementButton"),ja={decrement:"Decrement",increment:"Increment"},Ta={decrement:"Minderung",increment:"Erhöhung"},za={decrement:"Merma",increment:"Aumento"},Ka={decrement:"Décrément",increment:"Incrément"},Wa={decrement:"Redução",increment:"Aumento"},_a={en:q.normalizeMessages(ja),de:q.normalizeMessages(Ta),es:q.normalizeMessages(za),"fr-FR":q.normalizeMessages(Ka),"pt-BR":q.normalizeMessages(Wa)},aa=e=>{const{size:r,leadingElement:a,trailingElement:l,ref:o,...i}=e,{locale:c}=xa.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),x=q.useLocalizedStringFormatter(_a),d=s.useRef(null),D=va.$df56164dff5785e2$export$4338b53315abf666(pe.mergeRefs(d,o)),F=fa.useSlotRecipe({recipe:pa.numberInputRecipe}),[n,t]=F.splitVariantProps(i),[f,g]=ma.extractStyleProps(t),v={...g,locale:c,incrementAriaLabel:x.format("increment"),decrementAriaLabel:x.format("decrement")},P=Va(v),{inputProps:h,incrementButtonProps:B,decrementButtonProps:w}=Ia(v,P,D),m={"data-invalid":e.isInvalid,"data-disabled":e.isDisabled};return N.jsxs(qa,{className:e?.className,...m,...n,...f,size:r,children:[a&&N.jsx(wa,{children:a}),N.jsx(Ra,{ref:D,...h,...m,name:e.name}),l&&N.jsx(ka,{children:l}),N.jsxs(Ea.Box,{position:"absolute",top:"0",right:"0",display:"flex",flexDirection:"column",height:"full",children:[N.jsx(Oa,{...B,...m,children:N.jsx(be.KeyboardArrowUp,{})}),N.jsx(Aa,{...w,...m,children:N.jsx(be.KeyboardArrowDown,{})})]})]})};aa.displayName="NumberInput";exports.NumberInput=aa;
2
+ //# sourceMappingURL=number-input-B29DJ2_U.cjs.js.map