@commercetools/nimbus 2.1.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 (873) hide show
  1. package/README.md +87 -21
  2. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js → CollectionBuilder-BOe312C_.es.js} +6 -24
  3. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
  4. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js → CollectionBuilder-DjRx57vm.cjs.js} +2 -18
  5. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js.map → CollectionBuilder-DjRx57vm.cjs.js.map} +1 -1
  6. package/dist/chunks/DateField-BxXzaXAv.cjs.js +2 -0
  7. package/dist/chunks/DateField-BxXzaXAv.cjs.js.map +1 -0
  8. package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-DCWy1Ysp.es.js} +662 -631
  9. package/dist/chunks/DateField-DCWy1Ysp.es.js.map +1 -0
  10. package/dist/chunks/{DatePicker-DeknOPX6.es.js → DatePicker-CL72jbDo.es.js} +6 -6
  11. package/dist/chunks/{DatePicker-DeknOPX6.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
  12. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js → DatePicker-NWRDzwUt.cjs.js} +2 -2
  13. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js.map → DatePicker-NWRDzwUt.cjs.js.map} +1 -1
  14. package/dist/chunks/{Dialog-DUbUCf4o.es.js → Dialog-B0BQfdQa.es.js} +58 -58
  15. package/dist/chunks/{Dialog-DUbUCf4o.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
  16. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js → Dialog-CSr6lHSd.cjs.js} +2 -2
  17. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js.map → Dialog-CSr6lHSd.cjs.js.map} +1 -1
  18. package/dist/chunks/{Header-Bvl-gjeR.cjs.js → Header-BXEPjypM.cjs.js} +2 -2
  19. package/dist/chunks/{Header-Bvl-gjeR.cjs.js.map → Header-BXEPjypM.cjs.js.map} +1 -1
  20. package/dist/chunks/{Header-Bvo6aMcQ.es.js → Header-CiYtrnTw.es.js} +3 -3
  21. package/dist/chunks/{Header-Bvo6aMcQ.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
  22. package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-BMsylHxq.es.js} +3 -3
  23. package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
  24. package/dist/chunks/{Heading-kcnZ-PKv.cjs.js → Heading-C7J8IDnn.cjs.js} +2 -2
  25. package/dist/chunks/{Heading-kcnZ-PKv.cjs.js.map → Heading-C7J8IDnn.cjs.js.map} +1 -1
  26. package/dist/chunks/{ListBox-C8TVMFFY.es.js → ListBox-RrHJjnuq.es.js} +34 -36
  27. package/dist/chunks/{ListBox-C8TVMFFY.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
  28. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js → ListBox-rm_vuzPg.cjs.js} +2 -2
  29. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js.map → ListBox-rm_vuzPg.cjs.js.map} +1 -1
  30. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js +2 -0
  31. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js.map +1 -0
  32. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js +48 -0
  33. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js.map +1 -0
  34. package/dist/chunks/{Modal-CMJEwrBs.es.js → Modal-K4JEy19g.es.js} +3 -3
  35. package/dist/chunks/{Modal-CMJEwrBs.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
  36. package/dist/chunks/{Modal-DjOIA2BE.cjs.js → Modal-u97jKK9t.cjs.js} +2 -2
  37. package/dist/chunks/{Modal-DjOIA2BE.cjs.js.map → Modal-u97jKK9t.cjs.js.map} +1 -1
  38. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js → SelectionManager-5YkuhVau.cjs.js} +2 -2
  39. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js.map → SelectionManager-5YkuhVau.cjs.js.map} +1 -1
  40. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js → SelectionManager-CX9btso_.es.js} +24 -31
  41. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
  42. package/dist/chunks/{Separator-DyU2njbj.cjs.js → Separator-BvA4UGuq.cjs.js} +2 -2
  43. package/dist/chunks/{Separator-DyU2njbj.cjs.js.map → Separator-BvA4UGuq.cjs.js.map} +1 -1
  44. package/dist/chunks/{Separator-BmVimNX_.es.js → Separator-x6wk4JUe.es.js} +2 -2
  45. package/dist/chunks/{Separator-BmVimNX_.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
  46. package/dist/chunks/{accordion-Bu9iEN-Z.es.js → accordion-Cwy8ywRo.es.js} +2 -2
  47. package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
  48. package/dist/chunks/{accordion-AupzDJ2i.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
  49. package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
  50. package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
  51. package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
  52. package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
  53. package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
  54. package/dist/chunks/alert-D5SDMEKA.cjs.js +2 -0
  55. package/dist/chunks/alert-D5SDMEKA.cjs.js.map +1 -0
  56. package/dist/chunks/alert-WiLa3ap4.es.js +158 -0
  57. package/dist/chunks/alert-WiLa3ap4.es.js.map +1 -0
  58. package/dist/chunks/avatar-1Y7cLjZT.es.js +59 -0
  59. package/dist/chunks/avatar-1Y7cLjZT.es.js.map +1 -0
  60. package/dist/chunks/avatar-BVQ91Ccd.cjs.js +2 -0
  61. package/dist/chunks/avatar-BVQ91Ccd.cjs.js.map +1 -0
  62. package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
  63. package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
  64. package/dist/chunks/{button-DF_RV6pd.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
  65. package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
  66. package/dist/chunks/{button-czddlTvJ.es.js → button-CANeXX_D.es.js} +2 -2
  67. package/dist/chunks/{button-czddlTvJ.es.js.map → button-CANeXX_D.es.js.map} +1 -1
  68. package/dist/chunks/calendar-Bnw0u0vz.es.js +227 -0
  69. package/dist/chunks/calendar-Bnw0u0vz.es.js.map +1 -0
  70. package/dist/chunks/calendar-D0OrT88Y.cjs.js +2 -0
  71. package/dist/chunks/calendar-D0OrT88Y.cjs.js.map +1 -0
  72. package/dist/chunks/card-BHw7lWYe.es.js +115 -0
  73. package/dist/chunks/card-BHw7lWYe.es.js.map +1 -0
  74. package/dist/chunks/card-CgBcH7Zm.cjs.js +2 -0
  75. package/dist/chunks/card-CgBcH7Zm.cjs.js.map +1 -0
  76. package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
  77. package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
  78. package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-UATxAVti.es.js} +2 -2
  79. package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
  80. package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
  81. package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
  82. package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
  83. package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
  84. package/dist/chunks/combobox-B30crY-T.es.js +1563 -0
  85. package/dist/chunks/combobox-B30crY-T.es.js.map +1 -0
  86. package/dist/chunks/combobox-D_L2EmTy.cjs.js +2 -0
  87. package/dist/chunks/combobox-D_L2EmTy.cjs.js.map +1 -0
  88. package/dist/chunks/{data-table-C0rC7Jgu.es.js → data-table-B7orK0Y6.es.js} +1715 -1670
  89. package/dist/chunks/data-table-B7orK0Y6.es.js.map +1 -0
  90. package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
  91. package/dist/chunks/data-table-Cg75JPdu.cjs.js.map +1 -0
  92. package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
  93. package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
  94. package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Ba6r9wMb.es.js} +4 -4
  95. package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
  96. package/dist/chunks/date-picker-Bm6DjFOx.cjs.js +2 -0
  97. package/dist/chunks/date-picker-Bm6DjFOx.cjs.js.map +1 -0
  98. package/dist/chunks/date-picker-DwQ1WWNP.es.js +228 -0
  99. package/dist/chunks/date-picker-DwQ1WWNP.es.js.map +1 -0
  100. package/dist/chunks/date-range-picker-DaSUwkke.cjs.js +2 -0
  101. package/dist/chunks/date-range-picker-DaSUwkke.cjs.js.map +1 -0
  102. package/dist/chunks/date-range-picker-dw7c9idV.es.js +364 -0
  103. package/dist/chunks/date-range-picker-dw7c9idV.es.js.map +1 -0
  104. package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-D-kCkHEF.es.js} +4 -4
  105. package/dist/chunks/date-range-picker-field-D-kCkHEF.es.js.map +1 -0
  106. package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
  107. package/dist/chunks/date-range-picker-field-J2b1-A1l.cjs.js.map +1 -0
  108. package/dist/chunks/dialog-ByHd6RlA.cjs.js +2 -0
  109. package/dist/chunks/dialog-ByHd6RlA.cjs.js.map +1 -0
  110. package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-vnnSNnUC.es.js} +89 -89
  111. package/dist/chunks/dialog-vnnSNnUC.es.js.map +1 -0
  112. package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-CGpLzk-D.cjs.js} +3 -3
  113. package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
  114. package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-DR-559Qk.es.js} +1406 -1601
  115. package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
  116. package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-CasegOAE.es.js} +96 -88
  117. package/dist/chunks/drawer-CasegOAE.es.js.map +1 -0
  118. package/dist/chunks/drawer-CmxHDgtW.cjs.js +2 -0
  119. package/dist/chunks/drawer-CmxHDgtW.cjs.js.map +1 -0
  120. package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
  121. package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
  122. package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
  123. package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-CM4QZGaE.es.js.map} +1 -1
  124. package/dist/chunks/field-errors-D1BQvoYg.es.js +219 -0
  125. package/dist/chunks/field-errors-D1BQvoYg.es.js.map +1 -0
  126. package/dist/chunks/field-errors-aqrV93vp.cjs.js +2 -0
  127. package/dist/chunks/field-errors-aqrV93vp.cjs.js.map +1 -0
  128. package/dist/chunks/form-field-52--hhlj.cjs.js +2 -0
  129. package/dist/chunks/form-field-52--hhlj.cjs.js.map +1 -0
  130. package/dist/chunks/{form-field-BqlkPY29.es.js → form-field-DCWDyNJx.es.js} +16 -16
  131. package/dist/chunks/form-field-DCWDyNJx.es.js.map +1 -0
  132. package/dist/chunks/icon-DJsVh7VR.es.js +19 -0
  133. package/dist/chunks/{icon-CenxuChf.es.js.map → icon-DJsVh7VR.es.js.map} +1 -1
  134. package/dist/chunks/icon-RyFjTAmU.cjs.js +2 -0
  135. package/dist/chunks/{icon-D39U--jA.cjs.js.map → icon-RyFjTAmU.cjs.js.map} +1 -1
  136. package/dist/chunks/icon-button-5pYAEokc.cjs.js +2 -0
  137. package/dist/chunks/icon-button-5pYAEokc.cjs.js.map +1 -0
  138. package/dist/chunks/icon-button-DhHKxd27.es.js +28 -0
  139. package/dist/chunks/icon-button-DhHKxd27.es.js.map +1 -0
  140. package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
  141. package/dist/chunks/icon-toggle-button-BsQzSrKe.cjs.js.map +1 -0
  142. package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
  143. package/dist/chunks/icon-toggle-button-C7HZUXh5.es.js.map +1 -0
  144. package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
  145. package/dist/chunks/image-DRigLU80.es.js.map +1 -1
  146. package/dist/chunks/index-CBRmb4jF.cjs.js +34 -0
  147. package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
  148. package/dist/chunks/{index-BEgCT-l6.es.js → index-D3KlpJA5.es.js} +673 -559
  149. package/dist/chunks/index-D3KlpJA5.es.js.map +1 -0
  150. package/dist/chunks/inline-svg-BzzKpbrB.cjs.js +2 -0
  151. package/dist/chunks/{inline-svg-Yb2OyzRw.cjs.js.map → inline-svg-BzzKpbrB.cjs.js.map} +1 -1
  152. package/dist/chunks/inline-svg-Cwl9dFvu.es.js +21 -0
  153. package/dist/chunks/{inline-svg-CbSC6O5X.es.js.map → inline-svg-Cwl9dFvu.es.js.map} +1 -1
  154. package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -1
  155. package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -1
  156. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js +2 -0
  157. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js.map +1 -0
  158. package/dist/chunks/loading-spinner-gf62wtm3.es.js +53 -0
  159. package/dist/chunks/loading-spinner-gf62wtm3.es.js.map +1 -0
  160. package/dist/chunks/localized-field-BJTWKclB.cjs.js +2 -0
  161. package/dist/chunks/localized-field-BJTWKclB.cjs.js.map +1 -0
  162. package/dist/chunks/localized-field-CHXN7Zf1.es.js +483 -0
  163. package/dist/chunks/localized-field-CHXN7Zf1.es.js.map +1 -0
  164. package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
  165. package/dist/chunks/menu-Cu7gIVGQ.cjs.js.map +1 -0
  166. package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-SxqgiwJf.es.js} +6 -6
  167. package/dist/chunks/menu-SxqgiwJf.es.js.map +1 -0
  168. package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-B5kFhLR0.es.js} +116 -106
  169. package/dist/chunks/money-input-B5kFhLR0.es.js.map +1 -0
  170. package/dist/chunks/money-input-CBKb1D73.cjs.js +2 -0
  171. package/dist/chunks/money-input-CBKb1D73.cjs.js.map +1 -0
  172. package/dist/chunks/money-input-field-0vXOOTvx.es.js +51 -0
  173. package/dist/chunks/money-input-field-0vXOOTvx.es.js.map +1 -0
  174. package/dist/chunks/money-input-field-DjpKPCGo.cjs.js +2 -0
  175. package/dist/chunks/money-input-field-DjpKPCGo.cjs.js.map +1 -0
  176. package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js +2 -0
  177. package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js.map +1 -0
  178. package/dist/chunks/multiline-text-input-DkruVK6m.es.js +98 -0
  179. package/dist/chunks/multiline-text-input-DkruVK6m.es.js.map +1 -0
  180. package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js +2 -0
  181. package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js.map +1 -0
  182. package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js +56 -0
  183. package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js.map +1 -0
  184. package/dist/chunks/nimbus-provider-4H3HucGg.es.js +101 -0
  185. package/dist/chunks/nimbus-provider-4H3HucGg.es.js.map +1 -0
  186. package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js +2 -0
  187. package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js.map +1 -0
  188. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js +2 -0
  189. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js.map +1 -0
  190. package/dist/chunks/normalize-messages-D5T4I93D.es.js +52 -0
  191. package/dist/chunks/normalize-messages-D5T4I93D.es.js.map +1 -0
  192. package/dist/chunks/number-input-B29DJ2_U.cjs.js +2 -0
  193. package/dist/chunks/number-input-B29DJ2_U.cjs.js.map +1 -0
  194. package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-BVTqEzzS.es.js} +224 -229
  195. package/dist/chunks/number-input-BVTqEzzS.es.js.map +1 -0
  196. package/dist/chunks/number-input-field-DHBy_GKG.cjs.js +2 -0
  197. package/dist/chunks/number-input-field-DHBy_GKG.cjs.js.map +1 -0
  198. package/dist/chunks/number-input-field-DenXeCQQ.es.js +51 -0
  199. package/dist/chunks/number-input-field-DenXeCQQ.es.js.map +1 -0
  200. package/dist/chunks/pagination-BjUXs0hd.es.js +226 -0
  201. package/dist/chunks/pagination-BjUXs0hd.es.js.map +1 -0
  202. package/dist/chunks/pagination-D8Tn2HGh.cjs.js +2 -0
  203. package/dist/chunks/pagination-D8Tn2HGh.cjs.js.map +1 -0
  204. package/dist/chunks/password-input-DQM-caak.cjs.js +2 -0
  205. package/dist/chunks/password-input-DQM-caak.cjs.js.map +1 -0
  206. package/dist/chunks/password-input-field-CNLpabCL.es.js +56 -0
  207. package/dist/chunks/password-input-field-CNLpabCL.es.js.map +1 -0
  208. package/dist/chunks/password-input-field-CgQEW15R.cjs.js +2 -0
  209. package/dist/chunks/password-input-field-CgQEW15R.cjs.js.map +1 -0
  210. package/dist/chunks/password-input-vu3kFdzW.es.js +47 -0
  211. package/dist/chunks/password-input-vu3kFdzW.es.js.map +1 -0
  212. package/dist/chunks/popover-CuA9VugH.es.js +11 -0
  213. package/dist/chunks/popover-CuA9VugH.es.js.map +1 -0
  214. package/dist/chunks/popover-Dhg--8YC.cjs.js +2 -0
  215. package/dist/chunks/popover-Dhg--8YC.cjs.js.map +1 -0
  216. package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
  217. package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
  218. package/dist/chunks/{progress-bar-vRz1k6ol.es.js → progress-bar-D99U1mF3.es.js} +2 -2
  219. package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
  220. package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
  221. package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
  222. package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-S4OwAttR.es.js} +8 -8
  223. package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
  224. package/dist/chunks/range-calendar-qoiJRxsH.es.js +229 -0
  225. package/dist/chunks/range-calendar-qoiJRxsH.es.js.map +1 -0
  226. package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js +2 -0
  227. package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js.map +1 -0
  228. package/dist/chunks/rich-text-input-COjV3y9x.es.js +1200 -0
  229. package/dist/chunks/rich-text-input-COjV3y9x.es.js.map +1 -0
  230. package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js +4 -0
  231. package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js.map +1 -0
  232. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js +2 -0
  233. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js.map +1 -0
  234. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js +151 -0
  235. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js.map +1 -0
  236. package/dist/chunks/{search-input-CMrPbAUI.es.js → search-input-Ba7KSi4m.es.js} +147 -147
  237. package/dist/chunks/search-input-Ba7KSi4m.es.js.map +1 -0
  238. package/dist/chunks/search-input-DrTdsAJB.cjs.js +2 -0
  239. package/dist/chunks/search-input-DrTdsAJB.cjs.js.map +1 -0
  240. package/dist/chunks/search-input-field-Dan6FtWD.cjs.js +2 -0
  241. package/dist/chunks/search-input-field-Dan6FtWD.cjs.js.map +1 -0
  242. package/dist/chunks/search-input-field-G080Ti8W.es.js +51 -0
  243. package/dist/chunks/search-input-field-G080Ti8W.es.js.map +1 -0
  244. package/dist/chunks/{select-DG6qOekv.es.js → select-B3w10lhg.es.js} +229 -229
  245. package/dist/chunks/select-B3w10lhg.es.js.map +1 -0
  246. package/dist/chunks/select-DzHoPh1S.cjs.js +2 -0
  247. package/dist/chunks/select-DzHoPh1S.cjs.js.map +1 -0
  248. package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
  249. package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
  250. package/dist/chunks/{separator-B-ibkWW-.es.js → separator-DX_ZJMkp.es.js} +4 -4
  251. package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
  252. package/dist/chunks/split-button-BGDUOZcq.es.js +106 -0
  253. package/dist/chunks/split-button-BGDUOZcq.es.js.map +1 -0
  254. package/dist/chunks/split-button-Cu7MwPgo.cjs.js +2 -0
  255. package/dist/chunks/split-button-Cu7MwPgo.cjs.js.map +1 -0
  256. package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
  257. package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
  258. package/dist/chunks/{switch-_TfZ37Nm.es.js → switch-GD8BjCPZ.es.js} +3 -3
  259. package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
  260. package/dist/chunks/{switch-BzYS9qlr.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
  261. package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
  262. package/dist/chunks/tabs-Dh_AK8jc.es.js +521 -0
  263. package/dist/chunks/tabs-Dh_AK8jc.es.js.map +1 -0
  264. package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
  265. package/dist/chunks/tabs-Dxwwd4jH.cjs.js.map +1 -0
  266. package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-CMfyCIc3.es.js} +209 -208
  267. package/dist/chunks/tag-group-CMfyCIc3.es.js.map +1 -0
  268. package/dist/chunks/tag-group-rbUwxsaP.cjs.js +2 -0
  269. package/dist/chunks/tag-group-rbUwxsaP.cjs.js.map +1 -0
  270. package/dist/chunks/text-BtRhIklG.cjs.js.map +1 -1
  271. package/dist/chunks/text-CIb_VDvO.es.js.map +1 -1
  272. package/dist/chunks/{text-input-DOTYCJyJ.es.js → text-input-UaixbZjE.es.js} +3 -3
  273. package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
  274. package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js +2 -0
  275. package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js.map +1 -0
  276. package/dist/chunks/text-input-field-ChGQsEAJ.es.js +58 -0
  277. package/dist/chunks/text-input-field-ChGQsEAJ.es.js.map +1 -0
  278. package/dist/chunks/{text-input-D3KWm-NF.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
  279. package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
  280. package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
  281. package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
  282. package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-T4jAE9kM.es.js} +4 -4
  283. package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
  284. package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
  285. package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
  286. package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
  287. package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
  288. package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
  289. package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
  290. package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-QZSD0kko.es.js} +3 -3
  291. package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-QZSD0kko.es.js.map} +1 -1
  292. package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-9juUpmrj.es.js} +246 -244
  293. package/dist/chunks/useDateFormatter-9juUpmrj.es.js.map +1 -0
  294. package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js +2 -0
  295. package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js.map +1 -0
  296. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js → useGridListItem-Bjqm2KGe.cjs.js} +2 -2
  297. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js.map → useGridListItem-Bjqm2KGe.cjs.js.map} +1 -1
  298. package/dist/chunks/{useGridListItem-DAGp36bD.es.js → useGridListItem-CJrr2QNO.es.js} +4 -4
  299. package/dist/chunks/{useGridListItem-DAGp36bD.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
  300. package/dist/chunks/useListData-BGzhnkuO.cjs.js +2 -0
  301. package/dist/chunks/useListData-BGzhnkuO.cjs.js.map +1 -0
  302. package/dist/chunks/useListData-CX8_NxJv.es.js +211 -0
  303. package/dist/chunks/useListData-CX8_NxJv.es.js.map +1 -0
  304. package/dist/chunks/useListState-BjCb6LLO.cjs.js +2 -0
  305. package/dist/chunks/{useListState-QQtJHpsQ.cjs.js.map → useListState-BjCb6LLO.cjs.js.map} +1 -1
  306. package/dist/chunks/{useListState-BHLGQlP3.es.js → useListState-Dd0Mtev3.es.js} +17 -18
  307. package/dist/chunks/{useListState-BHLGQlP3.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
  308. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js +2 -0
  309. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js.map +1 -0
  310. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js +53 -0
  311. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js.map +1 -0
  312. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-D8B_x4uj.es.js} +2 -2
  313. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
  314. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js → useSpinButton-RB0J1fiP.cjs.js} +2 -2
  315. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js.map → useSpinButton-RB0J1fiP.cjs.js.map} +1 -1
  316. package/dist/components/accordion.cjs +1 -1
  317. package/dist/components/accordion.es.js +2 -2
  318. package/dist/components/alert/alert.d.ts +4 -4
  319. package/dist/components/alert/alert.messages.d.ts +6 -0
  320. package/dist/components/alert/alert.types.d.ts +2 -2
  321. package/dist/components/alert/components/alert.actions.d.ts +1 -1
  322. package/dist/components/alert/components/alert.description.d.ts +1 -1
  323. package/dist/components/alert/components/alert.dismiss-button.d.ts +1 -1
  324. package/dist/components/alert/components/alert.root.d.ts +0 -9
  325. package/dist/components/alert/components/alert.title.d.ts +1 -1
  326. package/dist/components/alert/intl/de.d.ts +9 -0
  327. package/dist/components/alert/intl/en.d.ts +9 -0
  328. package/dist/components/alert/intl/es.d.ts +9 -0
  329. package/dist/components/alert/intl/fr-FR.d.ts +9 -0
  330. package/dist/components/alert/intl/pt-BR.d.ts +9 -0
  331. package/dist/components/alert.cjs +1 -1
  332. package/dist/components/alert.es.js +1 -1
  333. package/dist/components/avatar/avatar.messages.d.ts +6 -0
  334. package/dist/components/avatar/intl/de.d.ts +9 -0
  335. package/dist/components/avatar/intl/en.d.ts +9 -0
  336. package/dist/components/avatar/intl/es.d.ts +9 -0
  337. package/dist/components/avatar/intl/fr-FR.d.ts +9 -0
  338. package/dist/components/avatar/intl/pt-BR.d.ts +9 -0
  339. package/dist/components/avatar.cjs +1 -1
  340. package/dist/components/avatar.es.js +1 -1
  341. package/dist/components/box/box.d.ts +2 -0
  342. package/dist/components/button.cjs +1 -1
  343. package/dist/components/button.es.js +1 -1
  344. package/dist/components/calendar/calendar.messages.d.ts +6 -0
  345. package/dist/components/calendar/intl/de.d.ts +12 -0
  346. package/dist/components/calendar/intl/en.d.ts +12 -0
  347. package/dist/components/calendar/intl/es.d.ts +12 -0
  348. package/dist/components/calendar/intl/fr-FR.d.ts +12 -0
  349. package/dist/components/calendar/intl/pt-BR.d.ts +12 -0
  350. package/dist/components/calendar.cjs +1 -1
  351. package/dist/components/calendar.es.js +1 -1
  352. package/dist/components/card/card.recipe.d.ts +1 -1
  353. package/dist/components/card.cjs +1 -1
  354. package/dist/components/card.es.js +1 -1
  355. package/dist/components/checkbox.cjs +1 -1
  356. package/dist/components/checkbox.es.js +1 -1
  357. package/dist/components/collapsible-motion.cjs +1 -1
  358. package/dist/components/collapsible-motion.es.js +1 -1
  359. package/dist/components/combo-box/combo-box.messages.d.ts +6 -0
  360. package/dist/components/combo-box/intl/de.d.ts +12 -0
  361. package/dist/components/combo-box/intl/en.d.ts +12 -0
  362. package/dist/components/combo-box/intl/es.d.ts +12 -0
  363. package/dist/components/combo-box/intl/fr-FR.d.ts +12 -0
  364. package/dist/components/combo-box/intl/pt-BR.d.ts +12 -0
  365. package/dist/components/combobox/combobox.d.ts +203 -27
  366. package/dist/components/combobox/combobox.i18n.d.ts +3 -13
  367. package/dist/components/combobox/combobox.messages.d.ts +6 -0
  368. package/dist/components/combobox/combobox.recipe.d.ts +18 -17
  369. package/dist/components/combobox/combobox.slots.d.ts +14 -28
  370. package/dist/components/combobox/combobox.types.d.ts +704 -105
  371. package/dist/components/combobox/components/combobox.hidden-input.d.ts +17 -0
  372. package/dist/components/combobox/components/combobox.input.d.ts +20 -0
  373. package/dist/components/combobox/components/combobox.leading-element.d.ts +5 -5
  374. package/dist/components/combobox/components/combobox.listbox.d.ts +27 -0
  375. package/dist/components/combobox/components/combobox.option.d.ts +29 -5
  376. package/dist/components/combobox/components/combobox.popover.d.ts +27 -0
  377. package/dist/components/combobox/components/combobox.root-context.d.ts +13 -0
  378. package/dist/components/combobox/components/combobox.root.d.ts +26 -6
  379. package/dist/components/combobox/components/combobox.section.d.ts +32 -0
  380. package/dist/components/combobox/components/combobox.tag-group.d.ts +26 -0
  381. package/dist/components/combobox/components/combobox.trigger.d.ts +26 -0
  382. package/dist/components/combobox/components/index.d.ts +4 -9
  383. package/dist/components/combobox/index.d.ts +1 -1
  384. package/dist/components/combobox/intl/de.d.ts +12 -0
  385. package/dist/components/combobox/intl/en.d.ts +12 -0
  386. package/dist/components/combobox/intl/es.d.ts +12 -0
  387. package/dist/components/combobox/intl/fr-FR.d.ts +12 -0
  388. package/dist/components/combobox/intl/pt-BR.d.ts +12 -0
  389. package/dist/components/combobox/utils/collection.d.ts +13 -0
  390. package/dist/components/combobox/utils/filters.d.ts +339 -0
  391. package/dist/components/combobox/utils/selection.d.ts +10 -0
  392. package/dist/components/combobox/utils/test-data.d.ts +6 -0
  393. package/dist/components/combobox/utils/test-utils.d.ts +30 -0
  394. package/dist/components/combobox.cjs +1 -1
  395. package/dist/components/combobox.es.js +1 -1
  396. package/dist/components/components.cjs +1 -1
  397. package/dist/components/components.es.js +1 -1
  398. package/dist/components/data-table/components/data-table.body.d.ts +1 -1
  399. package/dist/components/data-table/components/data-table.context.d.ts +3 -1
  400. package/dist/components/data-table/components/data-table.header.d.ts +1 -1
  401. package/dist/components/data-table/components/data-table.table.d.ts +1 -1
  402. package/dist/components/data-table/components/index.d.ts +1 -1
  403. package/dist/components/data-table/data-table.d.ts +3 -3
  404. package/dist/components/data-table/data-table.i18n.d.ts +5 -0
  405. package/dist/components/data-table/data-table.messages.d.ts +6 -0
  406. package/dist/components/data-table/data-table.recipe.d.ts +1 -1
  407. package/dist/components/data-table/data-table.types.d.ts +11 -2
  408. package/dist/components/data-table/intl/de.d.ts +40 -0
  409. package/dist/components/data-table/intl/en.d.ts +40 -0
  410. package/dist/components/data-table/intl/es.d.ts +40 -0
  411. package/dist/components/data-table/intl/fr-FR.d.ts +40 -0
  412. package/dist/components/data-table/intl/pt-BR.d.ts +40 -0
  413. package/dist/components/data-table.cjs +1 -1
  414. package/dist/components/data-table.es.js +1 -1
  415. package/dist/components/date-input.cjs +1 -1
  416. package/dist/components/date-input.es.js +1 -1
  417. package/dist/components/date-picker/date-picker.messages.d.ts +6 -0
  418. package/dist/components/date-picker/date-picker.types.d.ts +1 -1
  419. package/dist/components/date-picker/intl/de.d.ts +14 -0
  420. package/dist/components/date-picker/intl/en.d.ts +14 -0
  421. package/dist/components/date-picker/intl/es.d.ts +14 -0
  422. package/dist/components/date-picker/intl/fr-FR.d.ts +14 -0
  423. package/dist/components/date-picker/intl/pt-BR.d.ts +14 -0
  424. package/dist/components/date-picker.cjs +1 -1
  425. package/dist/components/date-picker.es.js +1 -1
  426. package/dist/components/date-range-picker/date-range-picker.messages.d.ts +6 -0
  427. package/dist/components/date-range-picker/intl/de.d.ts +21 -0
  428. package/dist/components/date-range-picker/intl/en.d.ts +21 -0
  429. package/dist/components/date-range-picker/intl/es.d.ts +21 -0
  430. package/dist/components/date-range-picker/intl/fr-FR.d.ts +21 -0
  431. package/dist/components/date-range-picker/intl/pt-BR.d.ts +21 -0
  432. package/dist/components/date-range-picker-field.cjs +1 -1
  433. package/dist/components/date-range-picker-field.es.js +1 -1
  434. package/dist/components/date-range-picker.cjs +1 -1
  435. package/dist/components/date-range-picker.es.js +1 -1
  436. package/dist/components/dialog/dialog.messages.d.ts +6 -0
  437. package/dist/components/dialog/dialog.types.d.ts +2 -2
  438. package/dist/components/dialog/intl/de.d.ts +9 -0
  439. package/dist/components/dialog/intl/en.d.ts +9 -0
  440. package/dist/components/dialog/intl/es.d.ts +9 -0
  441. package/dist/components/dialog/intl/fr-FR.d.ts +9 -0
  442. package/dist/components/dialog/intl/pt-BR.d.ts +9 -0
  443. package/dist/components/dialog.cjs +1 -1
  444. package/dist/components/dialog.es.js +1 -1
  445. package/dist/components/draggable-list/draggable-list.messages.d.ts +6 -0
  446. package/dist/components/draggable-list/intl/de.d.ts +10 -0
  447. package/dist/components/draggable-list/intl/en.d.ts +10 -0
  448. package/dist/components/draggable-list/intl/es.d.ts +10 -0
  449. package/dist/components/draggable-list/intl/fr-FR.d.ts +10 -0
  450. package/dist/components/draggable-list/intl/pt-BR.d.ts +10 -0
  451. package/dist/components/draggable-list.cjs +1 -1
  452. package/dist/components/draggable-list.es.js +1 -1
  453. package/dist/components/drawer/components/drawer.context.d.ts +8 -2
  454. package/dist/components/drawer/drawer.messages.d.ts +6 -0
  455. package/dist/components/drawer/drawer.types.d.ts +2 -2
  456. package/dist/components/drawer/intl/de.d.ts +9 -0
  457. package/dist/components/drawer/intl/en.d.ts +9 -0
  458. package/dist/components/drawer/intl/es.d.ts +9 -0
  459. package/dist/components/drawer/intl/fr-FR.d.ts +9 -0
  460. package/dist/components/drawer/intl/pt-BR.d.ts +9 -0
  461. package/dist/components/drawer.cjs +1 -1
  462. package/dist/components/drawer.es.js +1 -1
  463. package/dist/components/field-errors/field-errors.d.ts +1 -1
  464. package/dist/components/field-errors/field-errors.messages.d.ts +6 -0
  465. package/dist/components/field-errors/field-errors.types.d.ts +1 -1
  466. package/dist/components/field-errors/intl/de.d.ts +23 -0
  467. package/dist/components/field-errors/intl/en.d.ts +23 -0
  468. package/dist/components/field-errors/intl/es.d.ts +23 -0
  469. package/dist/components/field-errors/intl/fr-FR.d.ts +23 -0
  470. package/dist/components/field-errors/intl/pt-BR.d.ts +23 -0
  471. package/dist/components/field-errors.cjs +1 -1
  472. package/dist/components/field-errors.es.js +1 -1
  473. package/dist/components/fields.cjs +1 -1
  474. package/dist/components/fields.es.js +13 -3
  475. package/dist/components/fields.es.js.map +1 -1
  476. package/dist/components/form-field.cjs +1 -1
  477. package/dist/components/form-field.es.js +1 -1
  478. package/dist/components/icon-button/icon-button.types.d.ts +15 -3
  479. package/dist/components/icon-button.cjs +1 -1
  480. package/dist/components/icon-button.es.js +1 -1
  481. package/dist/components/icon-toggle-button/icon-toggle-button.types.d.ts +1 -1
  482. package/dist/components/icon-toggle-button.cjs +1 -1
  483. package/dist/components/icon-toggle-button.es.js +1 -1
  484. package/dist/components/icon.cjs +1 -1
  485. package/dist/components/icon.es.js +1 -1
  486. package/dist/components/image/image.d.ts +2 -0
  487. package/dist/components/inline-svg.cjs +1 -1
  488. package/dist/components/inline-svg.es.js +1 -1
  489. package/dist/components/list/components/index.d.ts +3 -0
  490. package/dist/components/list/components/list.indicator.d.ts +19 -0
  491. package/dist/components/list/components/list.item.d.ts +15 -0
  492. package/dist/components/list/components/list.root.d.ts +25 -0
  493. package/dist/components/list/list.d.ts +3 -6
  494. package/dist/components/loading-spinner/intl/de.d.ts +9 -0
  495. package/dist/components/loading-spinner/intl/en.d.ts +9 -0
  496. package/dist/components/loading-spinner/intl/es.d.ts +9 -0
  497. package/dist/components/loading-spinner/intl/fr-FR.d.ts +9 -0
  498. package/dist/components/loading-spinner/intl/pt-BR.d.ts +9 -0
  499. package/dist/components/loading-spinner/loading-spinner.messages.d.ts +6 -0
  500. package/dist/components/loading-spinner.cjs +1 -1
  501. package/dist/components/loading-spinner.es.js +1 -1
  502. package/dist/components/localized-field/intl/de.d.ts +14 -0
  503. package/dist/components/localized-field/intl/en.d.ts +14 -0
  504. package/dist/components/localized-field/intl/es.d.ts +14 -0
  505. package/dist/components/localized-field/intl/fr-FR.d.ts +14 -0
  506. package/dist/components/localized-field/intl/pt-BR.d.ts +14 -0
  507. package/dist/components/localized-field/localized-field.messages.d.ts +6 -0
  508. package/dist/components/localized-field/localized-field.types.d.ts +1 -1
  509. package/dist/components/localized-field.cjs +1 -1
  510. package/dist/components/localized-field.es.js +1 -1
  511. package/dist/components/money-input/intl/de.d.ts +11 -0
  512. package/dist/components/money-input/intl/en.d.ts +11 -0
  513. package/dist/components/money-input/intl/es.d.ts +11 -0
  514. package/dist/components/money-input/intl/fr-FR.d.ts +11 -0
  515. package/dist/components/money-input/intl/pt-BR.d.ts +11 -0
  516. package/dist/components/money-input/money-input.messages.d.ts +6 -0
  517. package/dist/components/money-input/money-input.recipe.d.ts +1 -1
  518. package/dist/components/money-input-field.cjs +2 -0
  519. package/dist/components/money-input-field.cjs.map +1 -0
  520. package/dist/components/money-input-field.es.js +5 -0
  521. package/dist/components/money-input-field.es.js.map +1 -0
  522. package/dist/components/money-input.cjs +1 -1
  523. package/dist/components/money-input.es.js +1 -1
  524. package/dist/components/multiline-text-input/multiline-text-input.types.d.ts +1 -1
  525. package/dist/components/multiline-text-input-field.cjs +2 -0
  526. package/dist/components/multiline-text-input-field.cjs.map +1 -0
  527. package/dist/components/multiline-text-input-field.es.js +5 -0
  528. package/dist/components/multiline-text-input-field.es.js.map +1 -0
  529. package/dist/components/multiline-text-input.cjs +1 -1
  530. package/dist/components/multiline-text-input.es.js +1 -1
  531. package/dist/components/nimbus-provider/index.d.ts +0 -1
  532. package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -0
  533. package/dist/components/nimbus-provider.cjs +1 -1
  534. package/dist/components/nimbus-provider.es.js +1 -3
  535. package/dist/components/nimbus-provider.es.js.map +1 -1
  536. package/dist/components/number-input/intl/de.d.ts +10 -0
  537. package/dist/components/number-input/intl/en.d.ts +10 -0
  538. package/dist/components/number-input/intl/es.d.ts +10 -0
  539. package/dist/components/number-input/intl/fr-FR.d.ts +10 -0
  540. package/dist/components/number-input/intl/pt-BR.d.ts +10 -0
  541. package/dist/components/number-input/number-input.messages.d.ts +6 -0
  542. package/dist/components/number-input-field.cjs +2 -0
  543. package/dist/components/number-input-field.cjs.map +1 -0
  544. package/dist/components/number-input-field.es.js +5 -0
  545. package/dist/components/number-input-field.es.js.map +1 -0
  546. package/dist/components/number-input.cjs +1 -1
  547. package/dist/components/number-input.es.js +1 -1
  548. package/dist/components/pagination/intl/de.d.ts +16 -0
  549. package/dist/components/pagination/intl/en.d.ts +16 -0
  550. package/dist/components/pagination/intl/es.d.ts +16 -0
  551. package/dist/components/pagination/intl/fr-FR.d.ts +16 -0
  552. package/dist/components/pagination/intl/pt-BR.d.ts +16 -0
  553. package/dist/components/pagination/pagination.messages.d.ts +6 -0
  554. package/dist/components/pagination.cjs +1 -1
  555. package/dist/components/pagination.es.js +1 -1
  556. package/dist/components/password-input/intl/de.d.ts +10 -0
  557. package/dist/components/password-input/intl/en.d.ts +10 -0
  558. package/dist/components/password-input/intl/es.d.ts +10 -0
  559. package/dist/components/password-input/intl/fr-FR.d.ts +10 -0
  560. package/dist/components/password-input/intl/pt-BR.d.ts +10 -0
  561. package/dist/components/password-input/password-input.messages.d.ts +6 -0
  562. package/dist/components/password-input-field.cjs +2 -0
  563. package/dist/components/password-input-field.cjs.map +1 -0
  564. package/dist/components/password-input-field.es.js +5 -0
  565. package/dist/components/password-input-field.es.js.map +1 -0
  566. package/dist/components/password-input.cjs +1 -1
  567. package/dist/components/password-input.es.js +1 -1
  568. package/dist/components/patterns.cjs +1 -1
  569. package/dist/components/patterns.es.js +13 -3
  570. package/dist/components/patterns.es.js.map +1 -1
  571. package/dist/components/popover/popover.d.ts +1 -1
  572. package/dist/components/popover/popover.slots.d.ts +2 -4
  573. package/dist/components/popover/popover.types.d.ts +12 -2
  574. package/dist/components/popover.cjs +1 -1
  575. package/dist/components/popover.es.js +1 -1
  576. package/dist/components/progress-bar.cjs +1 -1
  577. package/dist/components/progress-bar.es.js +1 -1
  578. package/dist/components/radio-input.cjs +1 -1
  579. package/dist/components/radio-input.es.js +1 -1
  580. package/dist/components/range-calendar/intl/de.d.ts +12 -0
  581. package/dist/components/range-calendar/intl/en.d.ts +12 -0
  582. package/dist/components/range-calendar/intl/es.d.ts +12 -0
  583. package/dist/components/range-calendar/intl/fr-FR.d.ts +12 -0
  584. package/dist/components/range-calendar/intl/pt-BR.d.ts +12 -0
  585. package/dist/components/range-calendar/range-calendar.messages.d.ts +6 -0
  586. package/dist/components/range-calendar.cjs +1 -1
  587. package/dist/components/range-calendar.es.js +1 -1
  588. package/dist/components/rich-text-input/constants/text-styles.d.ts +2 -3
  589. package/dist/components/rich-text-input/intl/de.d.ts +32 -0
  590. package/dist/components/rich-text-input/intl/en.d.ts +32 -0
  591. package/dist/components/rich-text-input/intl/es.d.ts +32 -0
  592. package/dist/components/rich-text-input/intl/fr-FR.d.ts +32 -0
  593. package/dist/components/rich-text-input/intl/pt-BR.d.ts +32 -0
  594. package/dist/components/rich-text-input/rich-text-input.messages.d.ts +6 -0
  595. package/dist/components/rich-text-input.cjs +1 -1
  596. package/dist/components/rich-text-input.es.js +1 -1
  597. package/dist/components/scoped-search-input/intl/de.d.ts +10 -0
  598. package/dist/components/scoped-search-input/intl/en.d.ts +10 -0
  599. package/dist/components/scoped-search-input/intl/es.d.ts +10 -0
  600. package/dist/components/scoped-search-input/intl/fr-FR.d.ts +10 -0
  601. package/dist/components/scoped-search-input/intl/pt-BR.d.ts +10 -0
  602. package/dist/components/scoped-search-input/scoped-search-input.messages.d.ts +6 -0
  603. package/dist/components/scoped-search-input.cjs +1 -1
  604. package/dist/components/scoped-search-input.es.js +1 -1
  605. package/dist/components/search-input/intl/de.d.ts +9 -0
  606. package/dist/components/search-input/intl/en.d.ts +9 -0
  607. package/dist/components/search-input/intl/es.d.ts +9 -0
  608. package/dist/components/search-input/intl/fr-FR.d.ts +9 -0
  609. package/dist/components/search-input/intl/pt-BR.d.ts +9 -0
  610. package/dist/components/search-input/search-input.messages.d.ts +6 -0
  611. package/dist/components/search-input-field.cjs +2 -0
  612. package/dist/components/search-input-field.cjs.map +1 -0
  613. package/dist/components/search-input-field.es.js +5 -0
  614. package/dist/components/search-input-field.es.js.map +1 -0
  615. package/dist/components/search-input.cjs +1 -1
  616. package/dist/components/search-input.es.js +1 -1
  617. package/dist/components/select/components/select.root.d.ts +2 -2
  618. package/dist/components/select/intl/de.d.ts +9 -0
  619. package/dist/components/select/intl/en.d.ts +9 -0
  620. package/dist/components/select/intl/es.d.ts +9 -0
  621. package/dist/components/select/intl/fr-FR.d.ts +9 -0
  622. package/dist/components/select/intl/pt-BR.d.ts +9 -0
  623. package/dist/components/select/select.d.ts +1 -1
  624. package/dist/components/select/select.messages.d.ts +6 -0
  625. package/dist/components/select/select.recipe.d.ts +1 -1
  626. package/dist/components/select/select.types.d.ts +1 -1
  627. package/dist/components/select.cjs +1 -1
  628. package/dist/components/select.es.js +1 -1
  629. package/dist/components/separator.cjs +1 -1
  630. package/dist/components/separator.es.js +1 -1
  631. package/dist/components/split-button/intl/de.d.ts +9 -0
  632. package/dist/components/split-button/intl/en.d.ts +9 -0
  633. package/dist/components/split-button/intl/es.d.ts +9 -0
  634. package/dist/components/split-button/intl/fr-FR.d.ts +9 -0
  635. package/dist/components/split-button/intl/pt-BR.d.ts +9 -0
  636. package/dist/components/split-button/split-button.messages.d.ts +6 -0
  637. package/dist/components/split-button/split-button.types.d.ts +1 -1
  638. package/dist/components/split-button.cjs +1 -1
  639. package/dist/components/split-button.es.js +1 -1
  640. package/dist/components/stack/index.d.ts +2 -1
  641. package/dist/components/stack/stack.d.ts +3 -5
  642. package/dist/components/stack/stack.types.d.ts +33 -0
  643. package/dist/components/switch.cjs +1 -1
  644. package/dist/components/switch.es.js +1 -1
  645. package/dist/components/tabs/components/tabs.root.d.ts +1 -1
  646. package/dist/components/tabs/tabs.d.ts +1 -1
  647. package/dist/components/tabs/tabs.recipe.d.ts +12 -11
  648. package/dist/components/tabs/tabs.slots.d.ts +10 -0
  649. package/dist/components/tabs/tabs.types.d.ts +14 -0
  650. package/dist/components/tabs.cjs +1 -1
  651. package/dist/components/tabs.es.js +1 -1
  652. package/dist/components/tag-group/intl/de.d.ts +9 -0
  653. package/dist/components/tag-group/intl/en.d.ts +9 -0
  654. package/dist/components/tag-group/intl/es.d.ts +9 -0
  655. package/dist/components/tag-group/intl/fr-FR.d.ts +9 -0
  656. package/dist/components/tag-group/intl/pt-BR.d.ts +9 -0
  657. package/dist/components/tag-group/tag-group.messages.d.ts +6 -0
  658. package/dist/components/tag-group.cjs +1 -1
  659. package/dist/components/tag-group.es.js +1 -1
  660. package/dist/components/text/text.d.ts +2 -0
  661. package/dist/components/text-input-field.cjs +1 -1
  662. package/dist/components/text-input-field.es.js +1 -1
  663. package/dist/components/text-input.cjs +1 -1
  664. package/dist/components/text-input.es.js +1 -1
  665. package/dist/components/time-input.cjs +1 -1
  666. package/dist/components/time-input.es.js +1 -1
  667. package/dist/components/toggle-button.cjs +1 -1
  668. package/dist/components/toggle-button.es.js +1 -1
  669. package/dist/components/toolbar.cjs +1 -1
  670. package/dist/components/toolbar.es.js +1 -1
  671. package/dist/components/utils.cjs +2 -2
  672. package/dist/components/utils.cjs.map +1 -1
  673. package/dist/components/utils.es.js +121 -122
  674. package/dist/components/utils.es.js.map +1 -1
  675. package/dist/constants/color-palettes.d.ts +24 -0
  676. package/dist/constants/index.d.ts +1 -0
  677. package/dist/hooks/index.d.ts +1 -0
  678. package/dist/hooks/use-localized-string-formatter/index.d.ts +1 -0
  679. package/dist/hooks/use-localized-string-formatter/use-localized-string-formatter.d.ts +56 -0
  680. package/dist/index.cjs +1 -1
  681. package/dist/index.cjs.map +1 -1
  682. package/dist/index.es.js +278 -268
  683. package/dist/index.es.js.map +1 -1
  684. package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.types.d.ts +12 -14
  685. package/dist/patterns/fields/index.d.ts +5 -0
  686. package/dist/patterns/fields/money-input-field/index.d.ts +2 -0
  687. package/dist/patterns/fields/money-input-field/money-input-field.d.ts +32 -0
  688. package/dist/patterns/fields/money-input-field/money-input-field.types.d.ts +56 -0
  689. package/dist/patterns/fields/multiline-text-input-field/index.d.ts +2 -0
  690. package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.d.ts +30 -0
  691. package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.types.d.ts +44 -0
  692. package/dist/patterns/fields/number-input-field/index.d.ts +2 -0
  693. package/dist/patterns/fields/number-input-field/number-input-field.d.ts +31 -0
  694. package/dist/patterns/fields/number-input-field/number-input-field.types.d.ts +52 -0
  695. package/dist/patterns/fields/password-input-field/index.d.ts +2 -0
  696. package/dist/patterns/fields/password-input-field/password-input-field.d.ts +28 -0
  697. package/dist/patterns/fields/password-input-field/password-input-field.types.d.ts +43 -0
  698. package/dist/patterns/fields/search-input-field/index.d.ts +2 -0
  699. package/dist/patterns/fields/search-input-field/search-input-field.d.ts +30 -0
  700. package/dist/patterns/fields/search-input-field/search-input-field.types.d.ts +50 -0
  701. package/dist/patterns/fields/text-input-field/text-input-field.d.ts +1 -1
  702. package/dist/patterns/fields/text-input-field/text-input-field.types.d.ts +8 -3
  703. package/dist/setup-jsdom-polyfills.cjs +1 -1
  704. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  705. package/dist/setup-jsdom-polyfills.es.js +17 -0
  706. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  707. package/dist/theme/semantic-tokens/colors.d.ts +2 -8
  708. package/dist/theme/semantic-tokens/index.d.ts +1 -4
  709. package/dist/theme/slot-recipes/index.d.ts +34 -32
  710. package/dist/type-utils/shared-types.d.ts +12 -4
  711. package/dist/utils/display-color-palettes.d.ts +39 -0
  712. package/dist/utils/index.d.ts +1 -0
  713. package/dist/utils/normalize-messages.d.ts +10 -0
  714. package/package.json +32 -28
  715. package/dist/chunks/DateField-B5u8QZFY.cjs.js +0 -2
  716. package/dist/chunks/DateField-B5u8QZFY.cjs.js.map +0 -1
  717. package/dist/chunks/DateField-C5JgBb30.es.js.map +0 -1
  718. package/dist/chunks/TextArea-2QJpeMJq.cjs.js +0 -2
  719. package/dist/chunks/TextArea-2QJpeMJq.cjs.js.map +0 -1
  720. package/dist/chunks/TextArea-CXEdUjgW.es.js +0 -42
  721. package/dist/chunks/TextArea-CXEdUjgW.es.js.map +0 -1
  722. package/dist/chunks/alert-ByKnzJtr.cjs.js +0 -2
  723. package/dist/chunks/alert-ByKnzJtr.cjs.js.map +0 -1
  724. package/dist/chunks/alert-Cb8WoJYV.es.js +0 -211
  725. package/dist/chunks/alert-Cb8WoJYV.es.js.map +0 -1
  726. package/dist/chunks/avatar-Dx_Cda2J.es.js +0 -47
  727. package/dist/chunks/avatar-Dx_Cda2J.es.js.map +0 -1
  728. package/dist/chunks/avatar-wRR1leVi.cjs.js +0 -2
  729. package/dist/chunks/avatar-wRR1leVi.cjs.js.map +0 -1
  730. package/dist/chunks/calendar-B--ZxTlQ.es.js +0 -217
  731. package/dist/chunks/calendar-B--ZxTlQ.es.js.map +0 -1
  732. package/dist/chunks/calendar-DLSOwy_e.cjs.js +0 -2
  733. package/dist/chunks/calendar-DLSOwy_e.cjs.js.map +0 -1
  734. package/dist/chunks/card-B2TxE_Ez.cjs.js +0 -2
  735. package/dist/chunks/card-B2TxE_Ez.cjs.js.map +0 -1
  736. package/dist/chunks/card-CEfEgF48.es.js +0 -120
  737. package/dist/chunks/card-CEfEgF48.es.js.map +0 -1
  738. package/dist/chunks/combobox-B2nkVE2H.cjs.js +0 -2
  739. package/dist/chunks/combobox-B2nkVE2H.cjs.js.map +0 -1
  740. package/dist/chunks/combobox-COyroO64.es.js +0 -2497
  741. package/dist/chunks/combobox-COyroO64.es.js.map +0 -1
  742. package/dist/chunks/data-table-BzY3lLyR.cjs.js +0 -2
  743. package/dist/chunks/data-table-BzY3lLyR.cjs.js.map +0 -1
  744. package/dist/chunks/data-table-C0rC7Jgu.es.js.map +0 -1
  745. package/dist/chunks/date-picker-8kdn6Ih5.es.js +0 -218
  746. package/dist/chunks/date-picker-8kdn6Ih5.es.js.map +0 -1
  747. package/dist/chunks/date-picker-CxJ6zMkz.cjs.js +0 -2
  748. package/dist/chunks/date-picker-CxJ6zMkz.cjs.js.map +0 -1
  749. package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js +0 -2
  750. package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js.map +0 -1
  751. package/dist/chunks/date-range-picker-Di9p8cKs.es.js +0 -356
  752. package/dist/chunks/date-range-picker-Di9p8cKs.es.js.map +0 -1
  753. package/dist/chunks/date-range-picker-field-D3tLPzMb.es.js.map +0 -1
  754. package/dist/chunks/date-range-picker-field-DipL5QZq.cjs.js.map +0 -1
  755. package/dist/chunks/dialog-qw6IMWj3.cjs.js +0 -2
  756. package/dist/chunks/dialog-qw6IMWj3.cjs.js.map +0 -1
  757. package/dist/chunks/dialog-z8EM12xr.es.js.map +0 -1
  758. package/dist/chunks/drawer-BZBluK-I.es.js.map +0 -1
  759. package/dist/chunks/drawer-DfJY_5pD.cjs.js +0 -2
  760. package/dist/chunks/drawer-DfJY_5pD.cjs.js.map +0 -1
  761. package/dist/chunks/field-errors-ClQprmQz.es.js +0 -213
  762. package/dist/chunks/field-errors-ClQprmQz.es.js.map +0 -1
  763. package/dist/chunks/field-errors-D2re_C_c.cjs.js +0 -2
  764. package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +0 -1
  765. package/dist/chunks/form-field-BqlkPY29.es.js.map +0 -1
  766. package/dist/chunks/form-field-lALRYL6D.cjs.js +0 -2
  767. package/dist/chunks/form-field-lALRYL6D.cjs.js.map +0 -1
  768. package/dist/chunks/icon-CenxuChf.es.js +0 -11
  769. package/dist/chunks/icon-D39U--jA.cjs.js +0 -2
  770. package/dist/chunks/icon-button-BUmqYcIF.cjs.js +0 -2
  771. package/dist/chunks/icon-button-BUmqYcIF.cjs.js.map +0 -1
  772. package/dist/chunks/icon-button-DgL7XNUZ.es.js +0 -14
  773. package/dist/chunks/icon-button-DgL7XNUZ.es.js.map +0 -1
  774. package/dist/chunks/icon-toggle-button-BKmjmlZt.es.js.map +0 -1
  775. package/dist/chunks/icon-toggle-button-D3spgxe2.cjs.js.map +0 -1
  776. package/dist/chunks/index-BEgCT-l6.es.js.map +0 -1
  777. package/dist/chunks/index-DzRjEtIu.cjs.js +0 -34
  778. package/dist/chunks/index-DzRjEtIu.cjs.js.map +0 -1
  779. package/dist/chunks/inline-svg-CbSC6O5X.es.js +0 -21
  780. package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +0 -2
  781. package/dist/chunks/loading-spinner-DF6c3rBM.es.js +0 -59
  782. package/dist/chunks/loading-spinner-DF6c3rBM.es.js.map +0 -1
  783. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js +0 -2
  784. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +0 -1
  785. package/dist/chunks/localized-field-CtLqzEnl.cjs.js +0 -2
  786. package/dist/chunks/localized-field-CtLqzEnl.cjs.js.map +0 -1
  787. package/dist/chunks/localized-field-XLDcWlU1.es.js +0 -470
  788. package/dist/chunks/localized-field-XLDcWlU1.es.js.map +0 -1
  789. package/dist/chunks/menu-C3Ovi5Mr.es.js.map +0 -1
  790. package/dist/chunks/menu-Vj3cVc_v.cjs.js.map +0 -1
  791. package/dist/chunks/money-input-B2tSXXU9.cjs.js +0 -2
  792. package/dist/chunks/money-input-B2tSXXU9.cjs.js.map +0 -1
  793. package/dist/chunks/money-input-BEek-VSq.es.js.map +0 -1
  794. package/dist/chunks/multiline-text-input-D5vbZHyU.es.js +0 -64
  795. package/dist/chunks/multiline-text-input-D5vbZHyU.es.js.map +0 -1
  796. package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js +0 -2
  797. package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js.map +0 -1
  798. package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js +0 -102
  799. package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js.map +0 -1
  800. package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js +0 -2
  801. package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js.map +0 -1
  802. package/dist/chunks/number-input-CwrgDAWw.cjs.js +0 -2
  803. package/dist/chunks/number-input-CwrgDAWw.cjs.js.map +0 -1
  804. package/dist/chunks/number-input-DrhSvm6o.es.js.map +0 -1
  805. package/dist/chunks/pagination-C6OYOaIl.cjs.js +0 -2
  806. package/dist/chunks/pagination-C6OYOaIl.cjs.js.map +0 -1
  807. package/dist/chunks/pagination-aj1F0182.es.js +0 -210
  808. package/dist/chunks/pagination-aj1F0182.es.js.map +0 -1
  809. package/dist/chunks/password-input-BILx_1d0.cjs.js +0 -2
  810. package/dist/chunks/password-input-BILx_1d0.cjs.js.map +0 -1
  811. package/dist/chunks/password-input-DTPr52a3.es.js +0 -54
  812. package/dist/chunks/password-input-DTPr52a3.es.js.map +0 -1
  813. package/dist/chunks/popover-BAIwOPdC.es.js +0 -14
  814. package/dist/chunks/popover-BAIwOPdC.es.js.map +0 -1
  815. package/dist/chunks/popover-DY7ASSCU.cjs.js +0 -2
  816. package/dist/chunks/popover-DY7ASSCU.cjs.js.map +0 -1
  817. package/dist/chunks/range-calendar-BagHIF-Y.es.js +0 -219
  818. package/dist/chunks/range-calendar-BagHIF-Y.es.js.map +0 -1
  819. package/dist/chunks/range-calendar-sHWelH3C.cjs.js +0 -2
  820. package/dist/chunks/range-calendar-sHWelH3C.cjs.js.map +0 -1
  821. package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js +0 -10
  822. package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js.map +0 -1
  823. package/dist/chunks/rich-text-input-CZqXRWdM.es.js +0 -1200
  824. package/dist/chunks/rich-text-input-CZqXRWdM.es.js.map +0 -1
  825. package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js +0 -2
  826. package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js.map +0 -1
  827. package/dist/chunks/scoped-search-input-DY4w22Ki.es.js +0 -152
  828. package/dist/chunks/scoped-search-input-DY4w22Ki.es.js.map +0 -1
  829. package/dist/chunks/search-input-Bl0EswfK.cjs.js +0 -2
  830. package/dist/chunks/search-input-Bl0EswfK.cjs.js.map +0 -1
  831. package/dist/chunks/search-input-CMrPbAUI.es.js.map +0 -1
  832. package/dist/chunks/select-B2MAR-fq.cjs.js +0 -2
  833. package/dist/chunks/select-B2MAR-fq.cjs.js.map +0 -1
  834. package/dist/chunks/select-DG6qOekv.es.js.map +0 -1
  835. package/dist/chunks/split-button-BpZ8jMvw.es.js +0 -106
  836. package/dist/chunks/split-button-BpZ8jMvw.es.js.map +0 -1
  837. package/dist/chunks/split-button-C99oShiQ.cjs.js +0 -2
  838. package/dist/chunks/split-button-C99oShiQ.cjs.js.map +0 -1
  839. package/dist/chunks/tabs-HOHhoLn5.es.js +0 -502
  840. package/dist/chunks/tabs-HOHhoLn5.es.js.map +0 -1
  841. package/dist/chunks/tabs-gitNliDG.cjs.js +0 -2
  842. package/dist/chunks/tabs-gitNliDG.cjs.js.map +0 -1
  843. package/dist/chunks/tag-group-Aa30DcsU.es.js.map +0 -1
  844. package/dist/chunks/tag-group-Ci_H89V0.cjs.js +0 -2
  845. package/dist/chunks/tag-group-Ci_H89V0.cjs.js.map +0 -1
  846. package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js +0 -2
  847. package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js.map +0 -1
  848. package/dist/chunks/text-input-field-CkcoMrv2.es.js +0 -55
  849. package/dist/chunks/text-input-field-CkcoMrv2.es.js.map +0 -1
  850. package/dist/chunks/useDateFormatter-886GJ5w1.es.js.map +0 -1
  851. package/dist/chunks/useDateFormatter-WCaFojul.cjs.js +0 -2
  852. package/dist/chunks/useDateFormatter-WCaFojul.cjs.js.map +0 -1
  853. package/dist/chunks/useFilter-BgT0isJK.es.js +0 -36
  854. package/dist/chunks/useFilter-BgT0isJK.es.js.map +0 -1
  855. package/dist/chunks/useFilter-CAVKltBB.cjs.js +0 -2
  856. package/dist/chunks/useFilter-CAVKltBB.cjs.js.map +0 -1
  857. package/dist/chunks/useListState-QQtJHpsQ.cjs.js +0 -2
  858. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js +0 -97
  859. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js.map +0 -1
  860. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js +0 -2
  861. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js.map +0 -1
  862. package/dist/chunks/useSingleSelectListState-B29G7the.es.js +0 -35
  863. package/dist/chunks/useSingleSelectListState-B29G7the.es.js.map +0 -1
  864. package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js +0 -2
  865. package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js.map +0 -1
  866. package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +0 -7
  867. package/dist/components/combobox/components/combobox.multi-select-root.d.ts +0 -7
  868. package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +0 -7
  869. package/dist/components/combobox/components/combobox.option-group.d.ts +0 -11
  870. package/dist/components/combobox/components/combobox.options.d.ts +0 -10
  871. package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +0 -7
  872. package/dist/components/combobox/components/combobox.single-select-input.d.ts +0 -7
  873. package/dist/components/combobox/components/combobox.single-select-root.d.ts +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-Bnw0u0vz.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/intl/en.ts","../../src/components/calendar/intl/de.ts","../../src/components/calendar/intl/es.ts","../../src/components/calendar/intl/fr-FR.ts","../../src/components/calendar/intl/pt-BR.ts","../../src/components/calendar/calendar.messages.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","/**\n * Pre-compiled en messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Next month`,\n nextYear: `Next year`,\n previousMonth: `Previous month`,\n previousYear: `Previous year`,\n};\n","/**\n * Pre-compiled de messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Nächsten Monat`,\n nextYear: `Nächstes Jahr`,\n previousMonth: `Letzten Monat`,\n previousYear: `Letztes Jahr`,\n};\n","/**\n * Pre-compiled es messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mes`,\n nextYear: `Próximo año`,\n previousMonth: `Mes anterior`,\n previousYear: `Año anterior`,\n};\n","/**\n * Pre-compiled fr-FR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Mois suivant`,\n nextYear: `Année suivante`,\n previousMonth: `Mois précédent`,\n previousYear: `Année précédente`,\n};\n","/**\n * Pre-compiled pt-BR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mês`,\n nextYear: `Próximo ano`,\n previousMonth: `Mês anterior`,\n previousYear: `Ano anterior`,\n};\n","/**\n * Pre-compiled localized messages for Calendar component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport calendarMessages_en from \"./intl/en\";\nimport calendarMessages_de from \"./intl/de\";\nimport calendarMessages_es from \"./intl/es\";\nimport calendarMessages_fr from \"./intl/fr-FR\";\nimport calendarMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const calendarMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(calendarMessages_en),\n de: normalizeMessages(calendarMessages_de),\n es: normalizeMessages(calendarMessages_es),\n \"fr-FR\": normalizeMessages(calendarMessages_fr),\n \"pt-BR\": normalizeMessages(calendarMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Calendar component\n */\nexport type CalendarMessageKey =\n | \"nextMonth\"\n | \"nextYear\"\n | \"previousMonth\"\n | \"previousYear\";\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { calendarMessagesStrings } from \"../calendar.messages\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const msg = useLocalizedStringFormatter(calendarMessagesStrings);\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": msg.format(\"nextMonth\"),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": msg.format(\"previousMonth\"),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": msg.format(\"nextYear\"),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": msg.format(\"previousYear\"),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","calendarMessages_en","calendarMessages_de","calendarMessages_es","calendarMessages_fr","calendarMessages_pt","calendarMessagesStrings","normalizeMessages","CalendarCustomContext","children","locale","useLocale","msg","useLocalizedStringFormatter","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,OAAO,MAAM,GAExDI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAEJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAEHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAERM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAEJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAEVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAEPS,IAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAERU,KAAmB,gBAAAV,EAG9B,MAAM,UAAU,GCvDlBW,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB,GCLAC,KAAe;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAA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,QAAA;AAAA,MAAA;AAAA,MAErB,gBAAA/B;AAAA,QAACgC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,YAAW;AAAA,UACX,OAAM;AAAA,UACN,OAAM;AAAA,UACN,WAAU;AAAA,UACV,eAAY;AAAA,UACZ,MAAK;AAAA,QAAA;AAAA,MAAA;AAAA,MAEP,gBAAAhC;AAAA,QAAC8B;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,cAAa;AAAA,UAEb,4BAACG,GAAA,CAAA,CAAmB;AAAA,QAAA;AAAA,MAAA;AAAA,IACtB,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ,GCtEaC,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAc,EAAE,KAAK,YAAY,GAC1C,CAACC,GAAaC,CAAc,IAAIH,EAAO,kBAAkBD,CAAK,GAC9D,CAACK,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAvC,EAACnC,GAAA,EAAkB,GAAGyE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-C7J8IDnn.cjs.js"),w=require("@chakra-ui/react"),q=require("@chakra-ui/react/styled-system"),D=require("./extract-style-props-BvvBKXOu.cjs.js"),i=require("./useDateFormatter-Bq98mt4A.cjs.js"),b=require("react"),v=require("./Button-DLCecw8f.cjs.js"),p=require("./utils-DVb3jcp5.cjs.js"),y=require("./Text-BWSfeB9p.cjs.js"),f=require("./normalize-messages-CaDzkuUm.cjs.js"),M=require("./context-CyT9C4U4.cjs.js"),u=require("@commercetools/nimbus-icons"),j=require("./text-BtRhIklG.cjs.js"),R=require("@chakra-ui/react/flex"),C=require("./stack-CIN13EDn.cjs.js"),z=require("./visually-hidden-BjtXUoFK.cjs.js"),$=require("./icon-button-5pYAEokc.cjs.js"),S=require("./box-CWni3A32.cjs.js"),{withProvider:I,withContext:c}=w.createSlotRecipeContext({key:"calendar"}),T=I("div","root"),Y=c("div","header"),A=c("div","grids"),B=c("div","monthTitle"),F=c("table","grid"),L=c("thead","gridHeader"),H=c("th","headerCell"),N=c("tbody","gridBody"),k=c("td","bodyCell"),G={nextMonth:"Next month",nextYear:"Next year",previousMonth:"Previous month",previousYear:"Previous year"},_={nextMonth:"Nächsten Monat",nextYear:"Nächstes Jahr",previousMonth:"Letzten Monat",previousYear:"Letztes Jahr"},K={nextMonth:"Próximo mes",nextYear:"Próximo año",previousMonth:"Mes anterior",previousYear:"Año anterior"},J={nextMonth:"Mois suivant",nextYear:"Année suivante",previousMonth:"Mois précédent",previousYear:"Année précédente"},V={nextMonth:"Próximo mês",nextYear:"Próximo ano",previousMonth:"Mês anterior",previousYear:"Ano anterior"},W={en:f.normalizeMessages(G),de:f.normalizeMessages(_),es:f.normalizeMessages(K),"fr-FR":f.normalizeMessages(J),"pt-BR":f.normalizeMessages(V)},E=({children:d})=>{const{locale:n}=M.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=f.useLocalizedStringFormatter(W),r=b.useContext(v.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=b.useContext(y.$514c0188e459b4c0$export$9afb8bc826b033ea),o=b.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),g={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":t.format("nextMonth")},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":t.format("previousMonth")},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":t.format("nextYear")},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":t.format("previousYear")}},x=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),m=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),h=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:x},monthRange:{children:m},year:{children:h}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...g}}],[y.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},O=()=>{const{locale:d}=M.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=b.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,s=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),o=r>1;return e.jsx(A,{children:Array.from({length:r},(g,x)=>{const m=t.visibleRange.start.add({months:x}),h=new Intl.DateTimeFormat(d,{month:"long"}).format(m.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(S.Box,{width:r==1?"full":"auto",children:[o&&e.jsx(B,{children:h}),e.jsx(F,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:x},weekdayStyle:"short",children:[e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(H,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const P=l.compare(s)===0;return e.jsx(k,{asChild:!0,"data-today":P,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},h)})})},Q=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(Y,{children:e.jsxs(R.Flex,{children:[e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(z.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx($.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(j.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx($.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(S.Box,{flexGrow:"1"}),e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx($.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(j.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx($.IconButton,{slot:"next-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},U=d=>{const n=q.useSlotRecipe({key:"calendar"}),[t,r]=n.splitVariantProps(d),[s,o]=D.extractStyleProps(r);return e.jsx(T,{...t,...s,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...o,children:e.jsxs(E,{children:[e.jsx(Q,{}),e.jsx(O,{})]})})})};exports.Calendar=U;
2
+ //# sourceMappingURL=calendar-D0OrT88Y.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-D0OrT88Y.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/intl/en.ts","../../src/components/calendar/intl/de.ts","../../src/components/calendar/intl/es.ts","../../src/components/calendar/intl/fr-FR.ts","../../src/components/calendar/intl/pt-BR.ts","../../src/components/calendar/calendar.messages.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","/**\n * Pre-compiled en messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Next month`,\n nextYear: `Next year`,\n previousMonth: `Previous month`,\n previousYear: `Previous year`,\n};\n","/**\n * Pre-compiled de messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Nächsten Monat`,\n nextYear: `Nächstes Jahr`,\n previousMonth: `Letzten Monat`,\n previousYear: `Letztes Jahr`,\n};\n","/**\n * Pre-compiled es messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mes`,\n nextYear: `Próximo año`,\n previousMonth: `Mes anterior`,\n previousYear: `Año anterior`,\n};\n","/**\n * Pre-compiled fr-FR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Mois suivant`,\n nextYear: `Année suivante`,\n previousMonth: `Mois précédent`,\n previousYear: `Année précédente`,\n};\n","/**\n * Pre-compiled pt-BR messages for Calendar\n * Generated by @internationalized/string-compiler\n * DO NOT EDIT MANUALLY\n */\n\nexport default {\n nextMonth: `Próximo mês`,\n nextYear: `Próximo ano`,\n previousMonth: `Mês anterior`,\n previousYear: `Ano anterior`,\n};\n","/**\n * Pre-compiled localized messages for Calendar component\n *\n * Generated by scripts/generate-dictionaries.ts\n * DO NOT EDIT MANUALLY\n *\n * @see https://react-spectrum.adobe.com/react-aria/internationalization.html\n */\n\nimport {\n type LocalizedString,\n type LocalizedStrings,\n} from \"@internationalized/string\";\nimport { normalizeMessages } from \"../../utils/normalize-messages\";\n\n// Pre-compiled message functions\nimport calendarMessages_en from \"./intl/en\";\nimport calendarMessages_de from \"./intl/de\";\nimport calendarMessages_es from \"./intl/es\";\nimport calendarMessages_fr from \"./intl/fr-FR\";\nimport calendarMessages_pt from \"./intl/pt-BR\";\n\n// Raw LocalizedStrings object for use with useLocalizedStringFormatter hook\nexport const calendarMessagesStrings: LocalizedStrings<\n string,\n LocalizedString\n> = {\n en: normalizeMessages(calendarMessages_en),\n de: normalizeMessages(calendarMessages_de),\n es: normalizeMessages(calendarMessages_es),\n \"fr-FR\": normalizeMessages(calendarMessages_fr),\n \"pt-BR\": normalizeMessages(calendarMessages_pt),\n} as LocalizedStrings<string, LocalizedString>;\n\n/**\n * Available message keys for Calendar component\n */\nexport type CalendarMessageKey =\n | \"nextMonth\"\n | \"nextYear\"\n | \"previousMonth\"\n | \"previousYear\";\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useLocalizedStringFormatter } from \"@/hooks\";\nimport { calendarMessagesStrings } from \"../calendar.messages\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const msg = useLocalizedStringFormatter(calendarMessagesStrings);\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": msg.format(\"nextMonth\"),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": msg.format(\"previousMonth\"),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": msg.format(\"nextYear\"),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": msg.format(\"previousYear\"),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","calendarMessages_en","calendarMessages_de","calendarMessages_es","calendarMessages_fr","calendarMessages_pt","calendarMessagesStrings","normalizeMessages","CalendarCustomContext","children","locale","useLocale","msg","useLocalizedStringFormatter","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","rem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AU,MAAM,WAAW,SAChC,SAAA,CAAA3B,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,gBACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACC,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAErB/B,EAAAA,IAACgC,EAAAA,KAAA,CACC,UAAU,KACV,WAAW,MACX,MAAM,aACN,MAAM,OACN,UAAU,SACV,cAAY,OACZ,KAAK,MAAA,CAAA,EAEPhC,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,YACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACG,EAAAA,mBAAA,CAAA,CAAmB,CAAA,CAAA,CACtB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,ECtEaC,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAK,EAC9D,CAACK,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEvC,EAAAA,IAACnC,EAAA,CAAkB,GAAGyE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAxC,EAAAA,IAAC2C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAAC5D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACwB,EAAA,EAAe,QACftB,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
@@ -0,0 +1,115 @@
1
+ import { jsx as a, jsxs as p } from "react/jsx-runtime";
2
+ import { createContext as N, useState as C, useMemo as k, useContext as u, useEffect as m } from "react";
3
+ import { createSlotRecipeContext as E } from "@chakra-ui/react";
4
+ import { useSlotRecipe as $ } from "@chakra-ui/react/styled-system";
5
+ import { S as j } from "./stack-CoNreM7B.es.js";
6
+ import { e as c } from "./extract-style-props-CM4QZGaE.es.js";
7
+ const { withProvider: w, withContext: f } = /* @__PURE__ */ E({
8
+ key: "card"
9
+ }), V = /* @__PURE__ */ w("div", "root"), b = /* @__PURE__ */ f("div", "header"), g = /* @__PURE__ */ f("div", "content"), d = /* @__PURE__ */ N(
10
+ void 0
11
+ ), x = ({ ref: e, children: r, ...t }) => {
12
+ const o = $({ key: "card" }), [n, s] = o.splitVariantProps(t), [v, H] = c(s), [R, l] = C(null), [S, i] = C(null), h = k(
13
+ () => ({
14
+ setHeader: l,
15
+ setContent: i
16
+ }),
17
+ [l, i]
18
+ );
19
+ return /* @__PURE__ */ a(d.Provider, { value: h, children: /* @__PURE__ */ p(
20
+ V,
21
+ {
22
+ ref: e,
23
+ ...n,
24
+ ...v,
25
+ ...H,
26
+ children: [
27
+ /* @__PURE__ */ p(j, { direction: "column", gap: "200", children: [
28
+ R,
29
+ S
30
+ ] }),
31
+ r
32
+ ]
33
+ }
34
+ ) });
35
+ };
36
+ x.displayName = "Card.Root";
37
+ const P = ({ children: e, ...r }) => {
38
+ const t = u(d), [o, n] = c(r);
39
+ return m(() => {
40
+ if (t) {
41
+ const s = /* @__PURE__ */ a(b, { ...o, ...n, children: e });
42
+ return t.setHeader(s), () => t.setHeader(null);
43
+ }
44
+ }, [e, o, n, t]), null;
45
+ };
46
+ P.displayName = "Card.Header";
47
+ const y = ({ children: e, ...r }) => {
48
+ const t = u(d), [o, n] = c(r);
49
+ return m(() => {
50
+ if (t) {
51
+ const s = /* @__PURE__ */ a(g, { ...o, ...n, children: e });
52
+ return t.setContent(s), () => t.setContent(null);
53
+ }
54
+ }, [e, o, n, t]), null;
55
+ };
56
+ y.displayName = "Card.Content";
57
+ const F = {
58
+ /**
59
+ * # Card.Root
60
+ *
61
+ * The root component that provides context and styling for the card.
62
+ * Must wrap all card parts (Header, Content) to coordinate their behavior.
63
+ * Accepts styling variants for padding, border, elevation, and background.
64
+ *
65
+ * @example
66
+ * ```tsx
67
+ * <Card.Root cardPadding="md" borderStyle="outlined" elevation="elevated">
68
+ * <Card.Header>Title</Card.Header>
69
+ * <Card.Content>Content</Card.Content>
70
+ * </Card.Root>
71
+ * ```
72
+ */
73
+ Root: x,
74
+ /**
75
+ * # Card.Header
76
+ *
77
+ * The header section of the card, typically containing the card title
78
+ * or primary heading. Automatically positioned above the card content
79
+ * in a consistent layout.
80
+ *
81
+ * @example
82
+ * ```tsx
83
+ * <Card.Root>
84
+ * <Card.Header>Card Title</Card.Header>
85
+ * <Card.Content>Content here</Card.Content>
86
+ * </Card.Root>
87
+ * ```
88
+ */
89
+ Header: P,
90
+ /**
91
+ * # Card.Content
92
+ *
93
+ * The main content area of the card. Contains the primary information,
94
+ * body text, or interactive elements. Automatically positioned below
95
+ * the card header in a consistent layout.
96
+ *
97
+ * @example
98
+ * ```tsx
99
+ * <Card.Root>
100
+ * <Card.Header>Title</Card.Header>
101
+ * <Card.Content>
102
+ * <Text>This is the main card content.</Text>
103
+ * </Card.Content>
104
+ * </Card.Root>
105
+ * ```
106
+ */
107
+ Content: y
108
+ };
109
+ export {
110
+ F as C,
111
+ x as a,
112
+ P as b,
113
+ y as c
114
+ };
115
+ //# sourceMappingURL=card-BHw7lWYe.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-BHw7lWYe.es.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAH,EAAgD,OAAO,MAAM,GAElDI,IACX,gBAAAH,EAAiD,OAAO,QAAQ,GAErDI,IACX,gBAAAJ,EAAkD,OAAO,SAAS,GCXvDK,IAAc,gBAAAC;AAAA,EACzB;AACF,GAOaJ,IAAW,CAAC,EAAE,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,EAAW,cAAc;ACvBlB,MAAMC,IAAc,CAAC,EAAE,UAAAI,GAAU,GAAGC,QAA8B;AACvE,QAAMmB,IAAUC,EAAWxB,CAAW,GAGhC,CAACS,GAAYC,CAAe,IAAIC,EAAkBP,CAAK;AAE7D,SAAAqB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAP,EAACS,GAAA,EAAiB,GAAGnB,GAAa,GAAGC,GAClC,UAAAP,GACH;AAGF,aAAAoB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACpB,GAAUM,GAAYC,GAAiBa,CAAO,CAAC,GAE5C;AACT;AAEAxB,EAAY,cAAc;AChBnB,MAAM8B,IAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBlB,MAAMhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBN,QAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBR,SAASC;AACX;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const a=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),v=require("@chakra-ui/react/styled-system"),j=require("./stack-CIN13EDn.cjs.js"),d=require("./extract-style-props-BvvBKXOu.cjs.js"),{withProvider:q,withContext:P}=H.createSlotRecipeContext({key:"card"}),h=q("div","root"),N=P("div","header"),$=P("div","content"),l=e.createContext(void 0),i=({ref:o,children:s,...t})=>{const r=v.useSlotRecipe({key:"card"}),[n,c]=r.splitVariantProps(t),[y,S]=d.extractStyleProps(c),[R,p]=e.useState(null),[f,x]=e.useState(null),m=e.useMemo(()=>({setHeader:p,setContent:x}),[p,x]);return a.jsx(l.Provider,{value:m,children:a.jsxs(h,{ref:o,...n,...y,...S,children:[a.jsxs(j.Stack,{direction:"column",gap:"200",children:[R,f]}),s]})})};i.displayName="Card.Root";const u=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx(N,{...r,...n,children:o});return t.setHeader(c),()=>t.setHeader(null)}},[o,r,n,t]),null};u.displayName="Card.Header";const C=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx($,{...r,...n,children:o});return t.setContent(c),()=>t.setContent(null)}},[o,r,n,t]),null};C.displayName="Card.Content";const k={Root:i,Header:u,Content:C};exports.Card=k;exports.CardContent=C;exports.CardHeader=u;exports.CardRoot=i;
2
+ //# sourceMappingURL=card-CgBcH7Zm.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-CgBcH7Zm.cjs.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"uOAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,MACP,CAAC,EAMYC,EACXH,EAAgD,MAAO,MAAM,EAElDI,EACXH,EAAiD,MAAO,QAAQ,EAErDI,EACXJ,EAAkD,MAAO,SAAS,ECXvDK,EAAcC,EAAAA,cACzB,MACF,EAOaJ,EAAW,CAAC,CAAE,IAAAK,EAAK,SAAAC,EAAU,GAAGC,KAAuB,CAElE,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,OAAQ,EACtC,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAG/D,CAACK,EAAYC,CAAe,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,EAAAA,IAACS,EAAA,CAAiB,GAAGnB,EAAa,GAAGC,EAClC,SAAAP,EACH,EAGF,OAAAoB,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACpB,EAAUM,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EAEAxB,EAAY,YAAc,eChBnB,MAAM8B,EAAO,CAgBlB,KAAMhC,EAgBN,OAAQC,EAkBR,QAASC,CACX"}
@@ -1,2 +1,2 @@
1
- "use strict";const P=require("react/jsx-runtime"),M=require("@chakra-ui/react/styled-system"),C=require("@commercetools/nimbus-icons"),_=require("./extract-style-props-BilMyFTD.cjs.js"),w=require("@chakra-ui/react"),H=require("./RSPContexts-BdKenzIN.cjs.js"),R=require("./utils-DVb3jcp5.cjs.js"),T=require("./Form-BuOomA4T.cjs.js"),p=require("./mergeProps-CxnHrnow.cjs.js"),N=require("./filterDOMProps-WUskt27c.cjs.js"),L=require("./useObjectRef-4v2MxSjQ.cjs.js"),o=require("react"),q=require("./useFormValidation-BfTV0EQ1.cjs.js"),W=require("./usePress-MEEljcWP.cjs.js"),z=require("./useToggle-DWRQYar0.cjs.js"),D=require("./useToggleState-D7k4zllv.cjs.js"),A=require("./useFocusRing-B7_ogYbr.cjs.js"),G=require("./useHover-xrdh1GG9.cjs.js"),J=require("./VisuallyHidden-CDvZiyH6.cjs.js");function k(i,e,a){let r=q.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:e.isSelected}),{isInvalid:x,validationErrors:m,validationDetails:u}=r.displayValidation,{labelProps:f,inputProps:s,isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b}=z.$d2c8e2b0480f3f34$export$cbe85ee05b554577({...i,isInvalid:x},e,a);q.$e93e671b31057976$export$b8473d3665f3a75a(i,r,a);let{isIndeterminate:v,isRequired:l,validationBehavior:c="aria"}=i;o.useEffect(()=>{a.current&&(a.current.indeterminate=!!v)});let{pressProps:h}=W.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||b,onPress(){let{[q.$e5be200c675c3b3a$export$a763b9476acd3eb]:n}=i,{commitValidation:y}=n||r;y()}});return{labelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,h,o.useMemo(()=>({onMouseDown:n=>n.preventDefault()}),[])),inputProps:{...s,checked:d,"aria-required":l&&c==="aria"||void 0,required:l&&c==="native"},isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b,isInvalid:x,validationErrors:m,validationDetails:u}}const K=new WeakMap;function Q(i,e,a){const r=D.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:i.isReadOnly||e.isReadOnly,isSelected:e.isSelected(i.value),defaultSelected:e.defaultValue.includes(i.value),onChange(n){n?e.addValue(i.value):e.removeValue(i.value),i.onChange&&i.onChange(n)}});let{name:x,form:m,descriptionId:u,errorMessageId:f,validationBehavior:s}=K.get(e);var d;s=(d=i.validationBehavior)!==null&&d!==void 0?d:s;let{realtimeValidation:t}=q.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:r.isSelected,name:void 0,validationBehavior:"aria"}),$=o.useRef(q.$e5be200c675c3b3a$export$dad6ae84456c676a),b=()=>{e.setInvalid(i.value,t.isInvalid?t:$.current)};o.useEffect(b);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:t,l=s==="native"?e.displayValidation:v;var c;let h=k({...i,isReadOnly:i.isReadOnly||e.isReadOnly,isDisabled:i.isDisabled||e.isDisabled,name:i.name||x,form:i.form||m,isRequired:(c=i.isRequired)!==null&&c!==void 0?c:e.isRequired,validationBehavior:s,[q.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:v,displayValidation:l,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(n){$.current=n,b()}}},r,a);return{...h,inputProps:{...h.inputProps,"aria-describedby":[i["aria-describedby"],e.isInvalid?f:null,u].filter(Boolean).join(" ")||void 0}}}const U=o.createContext(null),X=o.forwardRef(function(e,a){let{inputRef:r=null,...x}=e;[e,a]=R.$64fa3d84918910a7$export$29f1550f4b0d4415(x,a,H.$4e85f108e88277b8$export$b085522c77523c51);let{validationBehavior:m}=R.$64fa3d84918910a7$export$fabf2dc03a41866e(T.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var u,f;let s=(f=(u=e.validationBehavior)!==null&&u!==void 0?u:m)!==null&&f!==void 0?f:"native",d=o.useContext(U),t=L.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>R.$5dc95899b306f630$export$c9058316764c140e(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:$,inputProps:b,isSelected:v,isDisabled:l,isReadOnly:c,isPressed:h,isInvalid:n}=d?Q({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,t):k({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:s},D.$3017fa7ffdddec74$export$8042c6c013fd5226(e),t),{isFocused:y,isFocusVisible:I,focusProps:F}=A.$f7dceffc5ad7768b$export$4e328f61c538687f(),j=l||c,{hoverProps:E,isHovered:S}=G.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:j}),g=R.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:h,isHovered:S,isFocused:y,isFocusVisible:I,isDisabled:l,isReadOnly:c,isInvalid:n,isRequired:e.isRequired||!1}}),V=N.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete V.id,delete V.onClick,o.createElement("label",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(V,$,E,g),ref:a,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":h||void 0,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":I||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":n||void 0,"data-required":e.isRequired||void 0},o.createElement(J.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(b,F),ref:t})),g.children)}),{withProvider:Y,withContext:B}=w.createSlotRecipeContext({key:"checkbox"}),Z=Y(X,"root"),ee=B("span","label"),ie=B("span","indicator"),O=i=>{const{ref:e,children:a,...r}=i,x=M.useSlotRecipe({key:"checkbox"}),[m,u]=x.splitVariantProps(r),[f,s]=_.extractStyleProps(u);return P.jsx(Z,{ref:e,"data-slot":"root",...s,...m,...f,children:({isSelected:d,isIndeterminate:t,isInvalid:$,isDisabled:b,isFocused:v})=>{const l={"data-selected":d,"data-indeterminate":t,"data-invalid":$,"data-disabled":b,"data-focus":v||void 0};return P.jsxs(P.Fragment,{children:[P.jsxs(ie,{"data-slot":"indicator",...l,children:[d&&P.jsx(C.Check,{}),t&&P.jsx(C.Remove,{})]}),a&&P.jsx(ee,{"data-slot":"label",...l,children:a})]})}})};O.displayName="Checkbox";exports.Checkbox=O;
2
- //# sourceMappingURL=checkbox-CWhwDnrI.cjs.js.map
1
+ "use strict";const P=require("react/jsx-runtime"),M=require("@chakra-ui/react/styled-system"),C=require("@commercetools/nimbus-icons"),_=require("./extract-style-props-BvvBKXOu.cjs.js"),w=require("@chakra-ui/react"),H=require("./RSPContexts-BdKenzIN.cjs.js"),R=require("./utils-DVb3jcp5.cjs.js"),T=require("./Form-BuOomA4T.cjs.js"),p=require("./mergeProps-CxnHrnow.cjs.js"),N=require("./filterDOMProps-WUskt27c.cjs.js"),L=require("./useObjectRef-4v2MxSjQ.cjs.js"),o=require("react"),q=require("./useFormValidation-BfTV0EQ1.cjs.js"),W=require("./usePress-MEEljcWP.cjs.js"),z=require("./useToggle-DWRQYar0.cjs.js"),D=require("./useToggleState-D7k4zllv.cjs.js"),A=require("./useFocusRing-B7_ogYbr.cjs.js"),G=require("./useHover-xrdh1GG9.cjs.js"),J=require("./VisuallyHidden-CDvZiyH6.cjs.js");function k(i,e,a){let r=q.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:e.isSelected}),{isInvalid:x,validationErrors:m,validationDetails:u}=r.displayValidation,{labelProps:f,inputProps:s,isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b}=z.$d2c8e2b0480f3f34$export$cbe85ee05b554577({...i,isInvalid:x},e,a);q.$e93e671b31057976$export$b8473d3665f3a75a(i,r,a);let{isIndeterminate:v,isRequired:l,validationBehavior:c="aria"}=i;o.useEffect(()=>{a.current&&(a.current.indeterminate=!!v)});let{pressProps:h}=W.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||b,onPress(){let{[q.$e5be200c675c3b3a$export$a763b9476acd3eb]:n}=i,{commitValidation:y}=n||r;y()}});return{labelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(f,h,o.useMemo(()=>({onMouseDown:n=>n.preventDefault()}),[])),inputProps:{...s,checked:d,"aria-required":l&&c==="aria"||void 0,required:l&&c==="native"},isSelected:d,isPressed:t,isDisabled:$,isReadOnly:b,isInvalid:x,validationErrors:m,validationDetails:u}}const K=new WeakMap;function Q(i,e,a){const r=D.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:i.isReadOnly||e.isReadOnly,isSelected:e.isSelected(i.value),defaultSelected:e.defaultValue.includes(i.value),onChange(n){n?e.addValue(i.value):e.removeValue(i.value),i.onChange&&i.onChange(n)}});let{name:x,form:m,descriptionId:u,errorMessageId:f,validationBehavior:s}=K.get(e);var d;s=(d=i.validationBehavior)!==null&&d!==void 0?d:s;let{realtimeValidation:t}=q.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...i,value:r.isSelected,name:void 0,validationBehavior:"aria"}),$=o.useRef(q.$e5be200c675c3b3a$export$dad6ae84456c676a),b=()=>{e.setInvalid(i.value,t.isInvalid?t:$.current)};o.useEffect(b);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:t,l=s==="native"?e.displayValidation:v;var c;let h=k({...i,isReadOnly:i.isReadOnly||e.isReadOnly,isDisabled:i.isDisabled||e.isDisabled,name:i.name||x,form:i.form||m,isRequired:(c=i.isRequired)!==null&&c!==void 0?c:e.isRequired,validationBehavior:s,[q.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:v,displayValidation:l,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(n){$.current=n,b()}}},r,a);return{...h,inputProps:{...h.inputProps,"aria-describedby":[i["aria-describedby"],e.isInvalid?f:null,u].filter(Boolean).join(" ")||void 0}}}const U=o.createContext(null),X=o.forwardRef(function(e,a){let{inputRef:r=null,...x}=e;[e,a]=R.$64fa3d84918910a7$export$29f1550f4b0d4415(x,a,H.$4e85f108e88277b8$export$b085522c77523c51);let{validationBehavior:m}=R.$64fa3d84918910a7$export$fabf2dc03a41866e(T.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var u,f;let s=(f=(u=e.validationBehavior)!==null&&u!==void 0?u:m)!==null&&f!==void 0?f:"native",d=o.useContext(U),t=L.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>R.$5dc95899b306f630$export$c9058316764c140e(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:$,inputProps:b,isSelected:v,isDisabled:l,isReadOnly:c,isPressed:h,isInvalid:n}=d?Q({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),value:e.value,children:typeof e.children=="function"?!0:e.children},d,t):k({...R.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:s},D.$3017fa7ffdddec74$export$8042c6c013fd5226(e),t),{isFocused:y,isFocusVisible:I,focusProps:F}=A.$f7dceffc5ad7768b$export$4e328f61c538687f(),j=l||c,{hoverProps:E,isHovered:S}=G.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:j}),g=R.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:h,isHovered:S,isFocused:y,isFocusVisible:I,isDisabled:l,isReadOnly:c,isInvalid:n,isRequired:e.isRequired||!1}}),V=N.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete V.id,delete V.onClick,o.createElement("label",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(V,$,E,g),ref:a,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":h||void 0,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":I||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":n||void 0,"data-required":e.isRequired||void 0},o.createElement(J.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(b,F),ref:t})),g.children)}),{withProvider:Y,withContext:B}=w.createSlotRecipeContext({key:"checkbox"}),Z=Y(X,"root"),ee=B("span","label"),ie=B("span","indicator"),O=i=>{const{ref:e,children:a,...r}=i,x=M.useSlotRecipe({key:"checkbox"}),[m,u]=x.splitVariantProps(r),[f,s]=_.extractStyleProps(u);return P.jsx(Z,{ref:e,"data-slot":"root",...s,...m,...f,children:({isSelected:d,isIndeterminate:t,isInvalid:$,isDisabled:b,isFocused:v})=>{const l={"data-selected":d,"data-indeterminate":t,"data-invalid":$,"data-disabled":b,"data-focus":v||void 0};return P.jsxs(P.Fragment,{children:[P.jsxs(ie,{"data-slot":"indicator",...l,children:[d&&P.jsx(C.Check,{}),t&&P.jsx(C.Remove,{})]}),a&&P.jsx(ee,{"data-slot":"label",...l,children:a})]})}})};O.displayName="Checkbox";exports.Checkbox=O;
2
+ //# sourceMappingURL=checkbox-BYBGaSV9.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-CWhwDnrI.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/useCheckboxGroupItem.mjs","../../../../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/Checkbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useEffect as $jNP0e$useEffect, useMemo as $jNP0e$useMemo} from \"react\";\nimport {mergeProps as $jNP0e$mergeProps} from \"@react-aria/utils\";\nimport {useFormValidationState as $jNP0e$useFormValidationState, privateValidationStateProp as $jNP0e$privateValidationStateProp} from \"@react-stately/form\";\nimport {useFormValidation as $jNP0e$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $jNP0e$usePress} from \"@react-aria/interactions\";\nimport {useToggle as $jNP0e$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jNP0e$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $jNP0e$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $jNP0e$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = 'aria' } = props;\n (0, $jNP0e$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n // Reset validation state on label press for checkbox with a hidden input.\n let { pressProps: pressProps } = (0, $jNP0e$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n // @ts-expect-error\n let { [(0, $jNP0e$privateValidationStateProp)]: groupValidationState } = props;\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n }\n });\n return {\n labelProps: (0, $jNP0e$mergeProps)(labelProps, pressProps, (0, $jNP0e$useMemo)(()=>({\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: {\n ...inputProps,\n checked: isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native'\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$406796ff087fe49b$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $1ae600c947479353$export$ec98120685d4f57d = new WeakMap();\n\n\nexport {$1ae600c947479353$export$ec98120685d4f57d as checkboxGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {useCheckbox as $406796ff087fe49b$export$e375f10ce42261c5} from \"./useCheckbox.mjs\";\nimport {checkboxGroupData as $1ae600c947479353$export$ec98120685d4f57d} from \"./utils.mjs\";\nimport {useFormValidationState as $6clEo$useFormValidationState, DEFAULT_VALIDATION_RESULT as $6clEo$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $6clEo$privateValidationStateProp} from \"@react-stately/form\";\nimport {useRef as $6clEo$useRef, useEffect as $6clEo$useEffect} from \"react\";\nimport {useToggleState as $6clEo$useToggleState} from \"@react-stately/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {\n const toggleState = (0, $6clEo$useToggleState)({\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isSelected: state.isSelected(props.value),\n defaultSelected: state.defaultValue.includes(props.value),\n onChange (isSelected) {\n if (isSelected) state.addValue(props.value);\n else state.removeValue(props.value);\n if (props.onChange) props.onChange(isSelected);\n }\n });\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $1ae600c947479353$export$ec98120685d4f57d).get(state);\n var _props_validationBehavior;\n validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;\n // Local validation for this checkbox.\n let { realtimeValidation: realtimeValidation } = (0, $6clEo$useFormValidationState)({\n ...props,\n value: toggleState.isSelected,\n // Server validation is handled at the group level.\n name: undefined,\n validationBehavior: 'aria'\n });\n // Update the checkbox group state when realtime validation changes.\n let nativeValidation = (0, $6clEo$useRef)((0, $6clEo$DEFAULT_VALIDATION_RESULT));\n let updateValidation = ()=>{\n state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);\n };\n (0, $6clEo$useEffect)(updateValidation);\n // Combine group and checkbox level validation.\n let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;\n let displayValidation = validationBehavior === 'native' ? state.displayValidation : combinedRealtimeValidation;\n var _props_isRequired;\n let res = (0, $406796ff087fe49b$export$e375f10ce42261c5)({\n ...props,\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isDisabled: props.isDisabled || state.isDisabled,\n name: props.name || name,\n form: props.form || form,\n isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,\n validationBehavior: validationBehavior,\n [(0, $6clEo$privateValidationStateProp)]: {\n realtimeValidation: combinedRealtimeValidation,\n displayValidation: displayValidation,\n resetValidation: state.resetValidation,\n commitValidation: state.commitValidation,\n updateValidation (v) {\n nativeValidation.current = v;\n updateValidation();\n }\n }\n }, toggleState, inputRef);\n return {\n ...res,\n inputProps: {\n ...res.inputProps,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }\n };\n}\n\n\nexport {$fba3e38d5ca8983f$export$353b32fc6898d37d as useCheckboxGroupItem};\n//# sourceMappingURL=useCheckboxGroupItem.module.js.map\n","import {CheckboxContext as $4e85f108e88277b8$export$b085522c77523c51} from \"./RSPContexts.mjs\";\nimport {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useCheckboxGroup as $kPH7g$useCheckboxGroup, mergeProps as $kPH7g$mergeProps, useCheckboxGroupItem as $kPH7g$useCheckboxGroupItem, useCheckbox as $kPH7g$useCheckbox, useFocusRing as $kPH7g$useFocusRing, useHover as $kPH7g$useHover, VisuallyHidden as $kPH7g$VisuallyHidden} from \"react-aria\";\nimport {useCheckboxGroupState as $kPH7g$useCheckboxGroupState, useToggleState as $kPH7g$useToggleState} from \"react-stately\";\nimport {filterDOMProps as $kPH7g$filterDOMProps, useObjectRef as $kPH7g$useObjectRef, mergeRefs as $kPH7g$mergeRefs} from \"@react-aria/utils\";\nimport $kPH7g$react, {createContext as $kPH7g$createContext, forwardRef as $kPH7g$forwardRef, useContext as $kPH7g$useContext, useMemo as $kPH7g$useMemo} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\nconst $bc237834342dbd75$export$baf37c4be89255b8 = /*#__PURE__*/ (0, $kPH7g$createContext)(null);\nconst $bc237834342dbd75$export$139c5b8563afc1fc = /*#__PURE__*/ (0, $kPH7g$createContext)(null);\nconst $bc237834342dbd75$export$4aa08d5625cb8ead = /*#__PURE__*/ (0, $kPH7g$forwardRef)(function CheckboxGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bc237834342dbd75$export$baf37c4be89255b8);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $kPH7g$useCheckboxGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { groupProps: groupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $kPH7g$useCheckboxGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: props.isRequired || false,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-CheckboxGroup'\n });\n let DOMProps = (0, $kPH7g$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $kPH7g$react).createElement(\"div\", {\n ...(0, $kPH7g$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": props.isRequired || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $bc237834342dbd75$export$139c5b8563afc1fc,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $bc237834342dbd75$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $kPH7g$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, (0, $4e85f108e88277b8$export$b085522c77523c51));\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let groupState = (0, $kPH7g$useContext)($bc237834342dbd75$export$139c5b8563afc1fc);\n let inputRef = (0, $kPH7g$useObjectRef)((0, $kPH7g$useMemo)(()=>(0, $kPH7g$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid } = groupState ? (0, $kPH7g$useCheckboxGroupItem)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // Value is optional for standalone checkboxes, but required for CheckboxGroup items;\n // it's passed explicitly here to avoid typescript error (requires ignore).\n // @ts-ignore\n value: props.value,\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, groupState, inputRef) : (0, $kPH7g$useCheckbox)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n children: typeof props.children === 'function' ? true : props.children,\n validationBehavior: validationBehavior\n }, (0, $kPH7g$useToggleState)(props), inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $kPH7g$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $kPH7g$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Checkbox',\n values: {\n isSelected: isSelected,\n isIndeterminate: props.isIndeterminate || false,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false\n }\n });\n let DOMProps = (0, $kPH7g$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kPH7g$react).createElement(\"label\", {\n ...(0, $kPH7g$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": props.isIndeterminate || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement((0, $kPH7g$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement(\"input\", {\n ...(0, $kPH7g$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$bc237834342dbd75$export$baf37c4be89255b8 as CheckboxGroupContext, $bc237834342dbd75$export$139c5b8563afc1fc as CheckboxGroupStateContext, $bc237834342dbd75$export$4aa08d5625cb8ead as CheckboxGroup, $bc237834342dbd75$export$48513f6b9f8ce62d as Checkbox};\n//# sourceMappingURL=Checkbox.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { Checkbox as RaCheckbox } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils/slot-types\";\nimport type {\n CheckboxRootSlotProps,\n CheckboxIndicatorSlotProps,\n CheckboxLabelSlotProps,\n} from \"./checkbox.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"checkbox\",\n});\n\nexport const CheckboxRoot: SlotComponent<\n HTMLLabelElement,\n CheckboxRootSlotProps\n> = withProvider<HTMLLabelElement, CheckboxRootSlotProps>(RaCheckbox, \"root\");\n\nexport const CheckboxLabel: SlotComponent<\n HTMLSpanElement,\n CheckboxLabelSlotProps\n> = withContext<HTMLSpanElement, CheckboxLabelSlotProps>(\"span\", \"label\");\n\nexport const CheckboxIndicator: SlotComponent<\n HTMLSpanElement,\n CheckboxIndicatorSlotProps\n> = withContext<HTMLSpanElement, CheckboxIndicatorSlotProps>(\n \"span\",\n \"indicator\"\n);\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport type { CheckboxRenderProps } from \"react-aria-components\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const recipe = useSlotRecipe({ key: \"checkbox\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n\n return (\n <CheckboxRoot\n ref={forwardedRef}\n data-slot=\"root\"\n {...functionalProps}\n {...recipeProps}\n {...styleProps}\n >\n {({\n isSelected,\n isIndeterminate,\n isInvalid,\n isDisabled,\n isFocused,\n }: CheckboxRenderProps) => {\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": isInvalid,\n \"data-disabled\": isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <>\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n </CheckboxIndicator>\n\n {children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {children}\n </CheckboxLabel>\n )}\n </>\n );\n }}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"names":["$406796ff087fe49b$export$e375f10ce42261c5","props","state","inputRef","validationState","$jNP0e$useFormValidationState","isInvalid","validationErrors","validationDetails","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$jNP0e$useToggle","$jNP0e$useFormValidation","isIndeterminate","isRequired","validationBehavior","$jNP0e$useEffect","pressProps","$jNP0e$usePress","$jNP0e$privateValidationStateProp","groupValidationState","commitValidation","$jNP0e$mergeProps","$jNP0e$useMemo","e","$1ae600c947479353$export$ec98120685d4f57d","$fba3e38d5ca8983f$export$353b32fc6898d37d","toggleState","$6clEo$useToggleState","name","form","descriptionId","errorMessageId","_props_validationBehavior","realtimeValidation","$6clEo$useFormValidationState","nativeValidation","$6clEo$useRef","$6clEo$DEFAULT_VALIDATION_RESULT","updateValidation","$6clEo$useEffect","combinedRealtimeValidation","displayValidation","_props_isRequired","res","$6clEo$privateValidationStateProp","v","$bc237834342dbd75$export$139c5b8563afc1fc","$kPH7g$createContext","$bc237834342dbd75$export$48513f6b9f8ce62d","$kPH7g$forwardRef","ref","userProvidedInputRef","otherProps","$64fa3d84918910a7$export$29f1550f4b0d4415","$4e85f108e88277b8$export$b085522c77523c51","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_ref","groupState","$kPH7g$useContext","$kPH7g$useObjectRef","$kPH7g$useMemo","$kPH7g$mergeRefs","$kPH7g$useCheckboxGroupItem","$64fa3d84918910a7$export$ef03459518577ad4","$kPH7g$useCheckbox","$kPH7g$useToggleState","isFocused","isFocusVisible","focusProps","$kPH7g$useFocusRing","isInteractionDisabled","hoverProps","isHovered","$kPH7g$useHover","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$kPH7g$filterDOMProps","$kPH7g$react","$kPH7g$mergeProps","$kPH7g$VisuallyHidden","withProvider","withContext","createSlotRecipeContext","CheckboxRoot","RaCheckbox","CheckboxLabel","CheckboxIndicator","Checkbox","forwardedRef","children","restProps","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","jsx","stateProps","jsxs","Fragment","Check","Minus"],"mappings":"qxBAuBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAU,CAEvE,IAAIC,EAAsBC,4CAA+B,CACrD,GAAGJ,EACH,MAAOC,EAAM,UACrB,CAAK,EACG,CAAE,UAAWI,EAAW,iBAAkBC,EAAkB,kBAAmBC,GAAsBJ,EAAgB,kBACrH,CAAE,WAAYK,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,CAAU,EAASC,4CAAkB,CACzK,GAAGd,EACH,UAAWK,CACnB,EAAOJ,EAAOC,CAA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,EAEhDkG,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAS,EAElE,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAc,EAEtE,OACEI,EAAAA,IAACf,EAAA,CACC,IAAKK,EACL,YAAU,OACT,GAAGQ,EACH,GAAGH,EACH,GAAGE,EAEH,SAAA,CAAC,CACA,WAAA5F,EACA,gBAAAM,EACA,UAAAX,EACA,WAAAO,EACA,UAAA4D,CAAA,IACyB,CACzB,MAAMkC,EAAa,CACjB,gBAAiBhG,EACjB,qBAAsBM,EACtB,eAAgBX,EAChB,gBAAiBO,EACjB,aAAc4D,GAAa,MAAA,EAG7B,OACEmC,EAAAA,KAAAC,WAAA,CACE,SAAA,CAAAD,EAAAA,KAACd,GAAA,CAAkB,YAAU,YAAa,GAAGa,EAC1C,SAAA,CAAAhG,SAAemG,EAAAA,MAAA,EAAM,EACrB7F,SAAoB8F,EAAAA,OAAA,CAAA,CAAM,CAAA,EAC7B,EAECd,GACCS,EAAAA,IAACb,GAAA,CAAc,YAAU,QAAS,GAAGc,EAClC,SAAAV,CAAA,CACH,CAAA,EAEJ,CAEJ,CAAA,CAAA,CAGN,EACAF,EAAS,YAAc","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"checkbox-BYBGaSV9.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs","../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+checkbox@3.16.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/checkbox/dist/useCheckboxGroupItem.mjs","../../../../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/Checkbox.mjs","../../src/components/checkbox/checkbox.slots.tsx","../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {useEffect as $jNP0e$useEffect, useMemo as $jNP0e$useMemo} from \"react\";\nimport {mergeProps as $jNP0e$mergeProps} from \"@react-aria/utils\";\nimport {useFormValidationState as $jNP0e$useFormValidationState, privateValidationStateProp as $jNP0e$privateValidationStateProp} from \"@react-stately/form\";\nimport {useFormValidation as $jNP0e$useFormValidation} from \"@react-aria/form\";\nimport {usePress as $jNP0e$usePress} from \"@react-aria/interactions\";\nimport {useToggle as $jNP0e$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {\n // Create validation state here because it doesn't make sense to add to general useToggleState.\n let validationState = (0, $jNP0e$useFormValidationState)({\n ...props,\n value: state.isSelected\n });\n let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = validationState.displayValidation;\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $jNP0e$useToggle)({\n ...props,\n isInvalid: isInvalid\n }, state, inputRef);\n (0, $jNP0e$useFormValidation)(props, validationState, inputRef);\n let { isIndeterminate: isIndeterminate, isRequired: isRequired, validationBehavior: validationBehavior = 'aria' } = props;\n (0, $jNP0e$useEffect)(()=>{\n // indeterminate is a property, but it can only be set via javascript\n // https://css-tricks.com/indeterminate-checkboxes/\n if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;\n });\n // Reset validation state on label press for checkbox with a hidden input.\n let { pressProps: pressProps } = (0, $jNP0e$usePress)({\n isDisabled: isDisabled || isReadOnly,\n onPress () {\n // @ts-expect-error\n let { [(0, $jNP0e$privateValidationStateProp)]: groupValidationState } = props;\n let { commitValidation: commitValidation } = groupValidationState ? groupValidationState : validationState;\n commitValidation();\n }\n });\n return {\n labelProps: (0, $jNP0e$mergeProps)(labelProps, pressProps, (0, $jNP0e$useMemo)(()=>({\n // Prevent label from being focused when mouse down on it.\n // Note, this does not prevent the input from being focused in the `click` event.\n onMouseDown: (e)=>e.preventDefault()\n }), [])),\n inputProps: {\n ...inputProps,\n checked: isSelected,\n 'aria-required': isRequired && validationBehavior === 'aria' || undefined,\n required: isRequired && validationBehavior === 'native'\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n validationErrors: validationErrors,\n validationDetails: validationDetails\n };\n}\n\n\nexport {$406796ff087fe49b$export$e375f10ce42261c5 as useCheckbox};\n//# sourceMappingURL=useCheckbox.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $1ae600c947479353$export$ec98120685d4f57d = new WeakMap();\n\n\nexport {$1ae600c947479353$export$ec98120685d4f57d as checkboxGroupData};\n//# sourceMappingURL=utils.module.js.map\n","import {useCheckbox as $406796ff087fe49b$export$e375f10ce42261c5} from \"./useCheckbox.mjs\";\nimport {checkboxGroupData as $1ae600c947479353$export$ec98120685d4f57d} from \"./utils.mjs\";\nimport {useFormValidationState as $6clEo$useFormValidationState, DEFAULT_VALIDATION_RESULT as $6clEo$DEFAULT_VALIDATION_RESULT, privateValidationStateProp as $6clEo$privateValidationStateProp} from \"@react-stately/form\";\nimport {useRef as $6clEo$useRef, useEffect as $6clEo$useEffect} from \"react\";\nimport {useToggleState as $6clEo$useToggleState} from \"@react-stately/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {\n const toggleState = (0, $6clEo$useToggleState)({\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isSelected: state.isSelected(props.value),\n defaultSelected: state.defaultValue.includes(props.value),\n onChange (isSelected) {\n if (isSelected) state.addValue(props.value);\n else state.removeValue(props.value);\n if (props.onChange) props.onChange(isSelected);\n }\n });\n let { name: name, form: form, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = (0, $1ae600c947479353$export$ec98120685d4f57d).get(state);\n var _props_validationBehavior;\n validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;\n // Local validation for this checkbox.\n let { realtimeValidation: realtimeValidation } = (0, $6clEo$useFormValidationState)({\n ...props,\n value: toggleState.isSelected,\n // Server validation is handled at the group level.\n name: undefined,\n validationBehavior: 'aria'\n });\n // Update the checkbox group state when realtime validation changes.\n let nativeValidation = (0, $6clEo$useRef)((0, $6clEo$DEFAULT_VALIDATION_RESULT));\n let updateValidation = ()=>{\n state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);\n };\n (0, $6clEo$useEffect)(updateValidation);\n // Combine group and checkbox level validation.\n let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;\n let displayValidation = validationBehavior === 'native' ? state.displayValidation : combinedRealtimeValidation;\n var _props_isRequired;\n let res = (0, $406796ff087fe49b$export$e375f10ce42261c5)({\n ...props,\n isReadOnly: props.isReadOnly || state.isReadOnly,\n isDisabled: props.isDisabled || state.isDisabled,\n name: props.name || name,\n form: props.form || form,\n isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,\n validationBehavior: validationBehavior,\n [(0, $6clEo$privateValidationStateProp)]: {\n realtimeValidation: combinedRealtimeValidation,\n displayValidation: displayValidation,\n resetValidation: state.resetValidation,\n commitValidation: state.commitValidation,\n updateValidation (v) {\n nativeValidation.current = v;\n updateValidation();\n }\n }\n }, toggleState, inputRef);\n return {\n ...res,\n inputProps: {\n ...res.inputProps,\n 'aria-describedby': [\n props['aria-describedby'],\n state.isInvalid ? errorMessageId : null,\n descriptionId\n ].filter(Boolean).join(' ') || undefined\n }\n };\n}\n\n\nexport {$fba3e38d5ca8983f$export$353b32fc6898d37d as useCheckboxGroupItem};\n//# sourceMappingURL=useCheckboxGroupItem.module.js.map\n","import {CheckboxContext as $4e85f108e88277b8$export$b085522c77523c51} from \"./RSPContexts.mjs\";\nimport {Provider as $64fa3d84918910a7$export$2881499e37b75b9a, removeDataAttributes as $64fa3d84918910a7$export$ef03459518577ad4, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3, useSlot as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, useSlottedContext as $64fa3d84918910a7$export$fabf2dc03a41866e} from \"./utils.mjs\";\nimport {FieldErrorContext as $ee014567cb39d3f0$export$ff05c3ac10437e03} from \"./FieldError.mjs\";\nimport {FormContext as $d3e0e05bdfcf66bd$export$c24727297075ec6a} from \"./Form.mjs\";\nimport {LabelContext as $01b77f81d0f07f68$export$75b6ee27786ba447} from \"./Label.mjs\";\nimport {TextContext as $514c0188e459b4c0$export$9afb8bc826b033ea} from \"./Text.mjs\";\nimport {useCheckboxGroup as $kPH7g$useCheckboxGroup, mergeProps as $kPH7g$mergeProps, useCheckboxGroupItem as $kPH7g$useCheckboxGroupItem, useCheckbox as $kPH7g$useCheckbox, useFocusRing as $kPH7g$useFocusRing, useHover as $kPH7g$useHover, VisuallyHidden as $kPH7g$VisuallyHidden} from \"react-aria\";\nimport {useCheckboxGroupState as $kPH7g$useCheckboxGroupState, useToggleState as $kPH7g$useToggleState} from \"react-stately\";\nimport {filterDOMProps as $kPH7g$filterDOMProps, useObjectRef as $kPH7g$useObjectRef, mergeRefs as $kPH7g$mergeRefs} from \"@react-aria/utils\";\nimport $kPH7g$react, {createContext as $kPH7g$createContext, forwardRef as $kPH7g$forwardRef, useContext as $kPH7g$useContext, useMemo as $kPH7g$useMemo} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\nconst $bc237834342dbd75$export$baf37c4be89255b8 = /*#__PURE__*/ (0, $kPH7g$createContext)(null);\nconst $bc237834342dbd75$export$139c5b8563afc1fc = /*#__PURE__*/ (0, $kPH7g$createContext)(null);\nconst $bc237834342dbd75$export$4aa08d5625cb8ead = /*#__PURE__*/ (0, $kPH7g$forwardRef)(function CheckboxGroup(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bc237834342dbd75$export$baf37c4be89255b8);\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let state = (0, $kPH7g$useCheckboxGroupState)({\n ...props,\n validationBehavior: validationBehavior\n });\n let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)(!props['aria-label'] && !props['aria-labelledby']);\n let { groupProps: groupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = (0, $kPH7g$useCheckboxGroup)({\n ...props,\n label: label,\n validationBehavior: validationBehavior\n }, state);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly,\n isRequired: props.isRequired || false,\n isInvalid: state.isInvalid,\n state: state\n },\n defaultClassName: 'react-aria-CheckboxGroup'\n });\n let DOMProps = (0, $kPH7g$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $kPH7g$react).createElement(\"div\", {\n ...(0, $kPH7g$mergeProps)(DOMProps, renderProps, groupProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-readonly\": state.isReadOnly || undefined,\n \"data-required\": props.isRequired || undefined,\n \"data-invalid\": state.isInvalid || undefined,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n $bc237834342dbd75$export$139c5b8563afc1fc,\n state\n ],\n [\n (0, $01b77f81d0f07f68$export$75b6ee27786ba447),\n {\n ...labelProps,\n ref: labelRef,\n elementType: 'span'\n }\n ],\n [\n (0, $514c0188e459b4c0$export$9afb8bc826b033ea),\n {\n slots: {\n description: descriptionProps,\n errorMessage: errorMessageProps\n }\n }\n ],\n [\n (0, $ee014567cb39d3f0$export$ff05c3ac10437e03),\n validation\n ]\n ]\n }, renderProps.children));\n});\nconst $bc237834342dbd75$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $kPH7g$forwardRef)(function Checkbox(props, ref) {\n let { inputRef: userProvidedInputRef = null, ...otherProps } = props;\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, (0, $4e85f108e88277b8$export$b085522c77523c51));\n let { validationBehavior: formValidationBehavior } = (0, $64fa3d84918910a7$export$fabf2dc03a41866e)((0, $d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};\n var _props_validationBehavior, _ref;\n let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';\n let groupState = (0, $kPH7g$useContext)($bc237834342dbd75$export$139c5b8563afc1fc);\n let inputRef = (0, $kPH7g$useObjectRef)((0, $kPH7g$useMemo)(()=>(0, $kPH7g$mergeRefs)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null), [\n userProvidedInputRef,\n props.inputRef\n ]));\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid } = groupState ? (0, $kPH7g$useCheckboxGroupItem)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n // Value is optional for standalone checkboxes, but required for CheckboxGroup items;\n // it's passed explicitly here to avoid typescript error (requires ignore).\n // @ts-ignore\n value: props.value,\n // ReactNode type doesn't allow function children.\n children: typeof props.children === 'function' ? true : props.children\n }, groupState, inputRef) : (0, $kPH7g$useCheckbox)({\n ...(0, $64fa3d84918910a7$export$ef03459518577ad4)(props),\n children: typeof props.children === 'function' ? true : props.children,\n validationBehavior: validationBehavior\n }, (0, $kPH7g$useToggleState)(props), inputRef);\n let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = (0, $kPH7g$useFocusRing)();\n let isInteractionDisabled = isDisabled || isReadOnly;\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $kPH7g$useHover)({\n ...props,\n isDisabled: isInteractionDisabled\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-Checkbox',\n values: {\n isSelected: isSelected,\n isIndeterminate: props.isIndeterminate || false,\n isPressed: isPressed,\n isHovered: isHovered,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isInvalid: isInvalid,\n isRequired: props.isRequired || false\n }\n });\n let DOMProps = (0, $kPH7g$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $kPH7g$react).createElement(\"label\", {\n ...(0, $kPH7g$mergeProps)(DOMProps, labelProps, hoverProps, renderProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-selected\": isSelected || undefined,\n \"data-indeterminate\": props.isIndeterminate || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-readonly\": isReadOnly || undefined,\n \"data-invalid\": isInvalid || undefined,\n \"data-required\": props.isRequired || undefined\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement((0, $kPH7g$VisuallyHidden), {\n elementType: \"span\"\n }, /*#__PURE__*/ (0, $kPH7g$react).createElement(\"input\", {\n ...(0, $kPH7g$mergeProps)(inputProps, focusProps),\n ref: inputRef\n })), renderProps.children);\n});\n\n\nexport {$bc237834342dbd75$export$baf37c4be89255b8 as CheckboxGroupContext, $bc237834342dbd75$export$139c5b8563afc1fc as CheckboxGroupStateContext, $bc237834342dbd75$export$4aa08d5625cb8ead as CheckboxGroup, $bc237834342dbd75$export$48513f6b9f8ce62d as Checkbox};\n//# sourceMappingURL=Checkbox.module.js.map\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport { Checkbox as RaCheckbox } from \"react-aria-components\";\nimport type { SlotComponent } from \"@/type-utils/slot-types\";\nimport type {\n CheckboxRootSlotProps,\n CheckboxIndicatorSlotProps,\n CheckboxLabelSlotProps,\n} from \"./checkbox.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"checkbox\",\n});\n\nexport const CheckboxRoot: SlotComponent<\n HTMLLabelElement,\n CheckboxRootSlotProps\n> = withProvider<HTMLLabelElement, CheckboxRootSlotProps>(RaCheckbox, \"root\");\n\nexport const CheckboxLabel: SlotComponent<\n HTMLSpanElement,\n CheckboxLabelSlotProps\n> = withContext<HTMLSpanElement, CheckboxLabelSlotProps>(\"span\", \"label\");\n\nexport const CheckboxIndicator: SlotComponent<\n HTMLSpanElement,\n CheckboxIndicatorSlotProps\n> = withContext<HTMLSpanElement, CheckboxIndicatorSlotProps>(\n \"span\",\n \"indicator\"\n);\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { Check, Remove as Minus } from \"@commercetools/nimbus-icons\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { CheckboxProps } from \"./checkbox.types\";\nimport type { CheckboxRenderProps } from \"react-aria-components\";\nimport {\n CheckboxIndicator,\n CheckboxRoot,\n CheckboxLabel,\n} from \"./checkbox.slots\";\n\n/**\n * # Checkbox\n *\n * Displays a checkbox.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/checkbox}\n */\nexport const Checkbox = (props: CheckboxProps) => {\n const { ref: forwardedRef, children, ...restProps } = props;\n\n const recipe = useSlotRecipe({ key: \"checkbox\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const [styleProps, functionalProps] = extractStyleProps(remainingProps);\n\n return (\n <CheckboxRoot\n ref={forwardedRef}\n data-slot=\"root\"\n {...functionalProps}\n {...recipeProps}\n {...styleProps}\n >\n {({\n isSelected,\n isIndeterminate,\n isInvalid,\n isDisabled,\n isFocused,\n }: CheckboxRenderProps) => {\n const stateProps = {\n \"data-selected\": isSelected,\n \"data-indeterminate\": isIndeterminate,\n \"data-invalid\": isInvalid,\n \"data-disabled\": isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n\n return (\n <>\n <CheckboxIndicator data-slot=\"indicator\" {...stateProps}>\n {isSelected && <Check />}\n {isIndeterminate && <Minus />}\n </CheckboxIndicator>\n\n {children && (\n <CheckboxLabel data-slot=\"label\" {...stateProps}>\n {children}\n </CheckboxLabel>\n )}\n </>\n );\n }}\n </CheckboxRoot>\n );\n};\nCheckbox.displayName = \"Checkbox\";\n"],"names":["$406796ff087fe49b$export$e375f10ce42261c5","props","state","inputRef","validationState","$jNP0e$useFormValidationState","isInvalid","validationErrors","validationDetails","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$jNP0e$useToggle","$jNP0e$useFormValidation","isIndeterminate","isRequired","validationBehavior","$jNP0e$useEffect","pressProps","$jNP0e$usePress","$jNP0e$privateValidationStateProp","groupValidationState","commitValidation","$jNP0e$mergeProps","$jNP0e$useMemo","e","$1ae600c947479353$export$ec98120685d4f57d","$fba3e38d5ca8983f$export$353b32fc6898d37d","toggleState","$6clEo$useToggleState","name","form","descriptionId","errorMessageId","_props_validationBehavior","realtimeValidation","$6clEo$useFormValidationState","nativeValidation","$6clEo$useRef","$6clEo$DEFAULT_VALIDATION_RESULT","updateValidation","$6clEo$useEffect","combinedRealtimeValidation","displayValidation","_props_isRequired","res","$6clEo$privateValidationStateProp","v","$bc237834342dbd75$export$139c5b8563afc1fc","$kPH7g$createContext","$bc237834342dbd75$export$48513f6b9f8ce62d","$kPH7g$forwardRef","ref","userProvidedInputRef","otherProps","$64fa3d84918910a7$export$29f1550f4b0d4415","$4e85f108e88277b8$export$b085522c77523c51","formValidationBehavior","$64fa3d84918910a7$export$fabf2dc03a41866e","$d3e0e05bdfcf66bd$export$c24727297075ec6a","_ref","groupState","$kPH7g$useContext","$kPH7g$useObjectRef","$kPH7g$useMemo","$kPH7g$mergeRefs","$kPH7g$useCheckboxGroupItem","$64fa3d84918910a7$export$ef03459518577ad4","$kPH7g$useCheckbox","$kPH7g$useToggleState","isFocused","isFocusVisible","focusProps","$kPH7g$useFocusRing","isInteractionDisabled","hoverProps","isHovered","$kPH7g$useHover","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$kPH7g$filterDOMProps","$kPH7g$react","$kPH7g$mergeProps","$kPH7g$VisuallyHidden","withProvider","withContext","createSlotRecipeContext","CheckboxRoot","RaCheckbox","CheckboxLabel","CheckboxIndicator","Checkbox","forwardedRef","children","restProps","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","functionalProps","extractStyleProps","jsx","stateProps","jsxs","Fragment","Check","Minus"],"mappings":"qxBAuBA,SAASA,EAA0CC,EAAOC,EAAOC,EAAU,CAEvE,IAAIC,EAAsBC,4CAA+B,CACrD,GAAGJ,EACH,MAAOC,EAAM,UACrB,CAAK,EACG,CAAE,UAAWI,EAAW,iBAAkBC,EAAkB,kBAAmBC,GAAsBJ,EAAgB,kBACrH,CAAE,WAAYK,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,CAAU,EAASC,4CAAkB,CACzK,GAAGd,EACH,UAAWK,CACnB,EAAOJ,EAAOC,CAAQ,EACda,4CAA0Bf,EAAOG,EAAiBD,CAAQ,EAC9D,GAAI,CAAE,gBAAiBc,EAAiB,WAAYC,EAAY,mBAAoBC,EAAqB,MAAM,EAAKlB,EAChHmB,EAAAA,UAAkB,IAAI,CAGlBjB,EAAS,UAASA,EAAS,QAAQ,cAAgB,CAAC,CAACc,EAC7D,CAAC,EAED,GAAI,CAAE,WAAYI,CAAU,EAASC,EAAAA,0CAAiB,CAClD,WAAYT,GA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,gBAAAM,EACA,UAAAX,EACA,WAAAO,EACA,UAAA4D,CAAA,IACyB,CACzB,MAAMkC,EAAa,CACjB,gBAAiBhG,EACjB,qBAAsBM,EACtB,eAAgBX,EAChB,gBAAiBO,EACjB,aAAc4D,GAAa,MAAA,EAG7B,OACEmC,EAAAA,KAAAC,WAAA,CACE,SAAA,CAAAD,EAAAA,KAACd,GAAA,CAAkB,YAAU,YAAa,GAAGa,EAC1C,SAAA,CAAAhG,SAAemG,EAAAA,MAAA,EAAM,EACrB7F,SAAoB8F,EAAAA,OAAA,CAAA,CAAM,CAAA,EAC7B,EAECd,GACCS,EAAAA,IAACb,GAAA,CAAc,YAAU,QAAS,GAAGc,EAClC,SAAAV,CAAA,CACH,CAAA,EAEJ,CAEJ,CAAA,CAAA,CAGN,EACAF,EAAS,YAAc","x_google_ignoreList":[0,1,2,3]}
@@ -1,7 +1,7 @@
1
1
  import { jsx as P, jsxs as D, Fragment as j } from "react/jsx-runtime";
2
2
  import { useSlotRecipe as H } from "@chakra-ui/react/styled-system";
3
3
  import { Check as N, Remove as L } from "@commercetools/nimbus-icons";
4
- import { e as T } from "./extract-style-props-DChosa6I.es.js";
4
+ import { e as T } from "./extract-style-props-CM4QZGaE.es.js";
5
5
  import { createSlotRecipeContext as W } from "@chakra-ui/react";
6
6
  import { a as z } from "./RSPContexts-DLgb84PF.es.js";
7
7
  import { $ as A, c as G, d as J, f as S, a as K } from "./utils-B6pV5ewr.es.js";
@@ -218,4 +218,4 @@ he.displayName = "Checkbox";
218
218
  export {
219
219
  he as C
220
220
  };
221
- //# sourceMappingURL=checkbox-BAZ2ps7B.es.js.map
221
+ //# sourceMappingURL=checkbox-UATxAVti.es.js.map