@commercetools/nimbus 0.0.0-canary-20250902075758 → 0.0.0-canary-20250902091333

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 (608) hide show
  1. package/dist/chunks/{Button-Bh-FLo_8.cjs.js → Button-BtJHe9xY.cjs.js} +2 -2
  2. package/dist/chunks/{Button-Bh-FLo_8.cjs.js.map → Button-BtJHe9xY.cjs.js.map} +1 -1
  3. package/dist/chunks/{Button--gemnXF8.es.js → Button-CNBS3n5a.es.js} +3 -3
  4. package/dist/chunks/{Button--gemnXF8.es.js.map → Button-CNBS3n5a.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-DVzmD_D6.es.js → DateField-Dm2Qlhbk.es.js} +71 -58
  6. package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -0
  7. package/dist/chunks/DateField-rweHHCKR.cjs.js +2 -0
  8. package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -0
  9. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js +2 -0
  10. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js.map +1 -0
  11. package/dist/chunks/{DatePicker-_A7-hp_b.es.js → DatePicker-BthC1bZ_.es.js} +109 -105
  12. package/dist/chunks/DatePicker-BthC1bZ_.es.js.map +1 -0
  13. package/dist/chunks/Dialog-BeQ6Z6l2.es.js +1924 -0
  14. package/dist/chunks/Dialog-BeQ6Z6l2.es.js.map +1 -0
  15. package/dist/chunks/Dialog-CYa26HlL.cjs.js +2 -0
  16. package/dist/chunks/Dialog-CYa26HlL.cjs.js.map +1 -0
  17. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
  18. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
  19. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
  20. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
  21. package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -1
  22. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -1
  23. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
  24. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
  25. package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -1
  26. package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -1
  27. package/dist/chunks/{Heading-BI5vqfiY.cjs.js → Heading-BaW6t55l.cjs.js} +2 -2
  28. package/dist/chunks/{Heading-BI5vqfiY.cjs.js.map → Heading-BaW6t55l.cjs.js.map} +1 -1
  29. package/dist/chunks/{Heading-sepFdCCa.es.js → Heading-DEfy_f01.es.js} +5 -5
  30. package/dist/chunks/{Heading-sepFdCCa.es.js.map → Heading-DEfy_f01.es.js.map} +1 -1
  31. package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
  32. package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
  33. package/dist/chunks/Input-BiHwUBo4.es.js.map +1 -1
  34. package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -1
  35. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  36. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  37. package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
  38. package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
  39. package/dist/chunks/ListBox-CikEmFBx.cjs.js +2 -0
  40. package/dist/chunks/ListBox-CikEmFBx.cjs.js.map +1 -0
  41. package/dist/chunks/ListBox-DF3NHeEX.es.js +605 -0
  42. package/dist/chunks/ListBox-DF3NHeEX.es.js.map +1 -0
  43. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  44. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  45. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js +2 -0
  46. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -0
  47. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js +491 -0
  48. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -0
  49. package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js → ProgressBar-BA3sLh1k.cjs.js} +2 -2
  50. package/dist/chunks/{ProgressBar-BNPexoD9.cjs.js.map → ProgressBar-BA3sLh1k.cjs.js.map} +1 -1
  51. package/dist/chunks/{ProgressBar-BnGsEC_2.es.js → ProgressBar-DjaUQI7N.es.js} +2 -2
  52. package/dist/chunks/{ProgressBar-BnGsEC_2.es.js.map → ProgressBar-DjaUQI7N.es.js.map} +1 -1
  53. package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
  54. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
  55. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  56. package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
  57. package/dist/chunks/{Collection-Df3FPouy.es.js → SelectionManager-CLyu96pU.es.js} +627 -577
  58. package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +1 -0
  59. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +18 -0
  60. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +1 -0
  61. package/dist/chunks/Separator-3-E2tRbk.es.js +92 -0
  62. package/dist/chunks/Separator-3-E2tRbk.es.js.map +1 -0
  63. package/dist/chunks/Separator-CAOg-vqY.cjs.js +2 -0
  64. package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +1 -0
  65. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  66. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  67. package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -1
  68. package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -1
  69. package/dist/chunks/{ToggleButton-BoIyPi3U.es.js → ToggleButton-C3JL0pgD.es.js} +3 -3
  70. package/dist/chunks/{ToggleButton-BoIyPi3U.es.js.map → ToggleButton-C3JL0pgD.es.js.map} +1 -1
  71. package/dist/chunks/{ToggleButton-By3cqA7R.cjs.js → ToggleButton-CPAdPTCr.cjs.js} +2 -2
  72. package/dist/chunks/{ToggleButton-By3cqA7R.cjs.js.map → ToggleButton-CPAdPTCr.cjs.js.map} +1 -1
  73. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -1
  74. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js.map +1 -1
  75. package/dist/chunks/{accordion-CAC36XIK.cjs.js → accordion-Be--VNW6.cjs.js} +2 -2
  76. package/dist/chunks/{accordion-CAC36XIK.cjs.js.map → accordion-Be--VNW6.cjs.js.map} +1 -1
  77. package/dist/chunks/{accordion-8XmJkF18.es.js → accordion-Drl_Y6QC.es.js} +4 -4
  78. package/dist/chunks/{accordion-8XmJkF18.es.js.map → accordion-Drl_Y6QC.es.js.map} +1 -1
  79. package/dist/chunks/{alert-CbAPX3xQ.es.js → alert-CTCZ5bln.es.js} +5 -5
  80. package/dist/chunks/{alert-CbAPX3xQ.es.js.map → alert-CTCZ5bln.es.js.map} +1 -1
  81. package/dist/chunks/{alert-STlW7NU8.cjs.js → alert-_ZQT8Lkj.cjs.js} +2 -2
  82. package/dist/chunks/{alert-STlW7NU8.cjs.js.map → alert-_ZQT8Lkj.cjs.js.map} +1 -1
  83. package/dist/chunks/{avatar-mL-2hOve.cjs.js → avatar-DEAravTR.cjs.js} +2 -2
  84. package/dist/chunks/{avatar-mL-2hOve.cjs.js.map → avatar-DEAravTR.cjs.js.map} +1 -1
  85. package/dist/chunks/{avatar-B7CMxFNg.es.js → avatar-DXWmY247.es.js} +3 -3
  86. package/dist/chunks/{avatar-B7CMxFNg.es.js.map → avatar-DXWmY247.es.js.map} +1 -1
  87. package/dist/chunks/{badge-HHzfG1BI.cjs.js → badge-BjhZ-byo.cjs.js} +2 -2
  88. package/dist/chunks/{badge-HHzfG1BI.cjs.js.map → badge-BjhZ-byo.cjs.js.map} +1 -1
  89. package/dist/chunks/{badge-C2elCKPp.es.js → badge-Cg7jASs5.es.js} +2 -2
  90. package/dist/chunks/{badge-C2elCKPp.es.js.map → badge-Cg7jASs5.es.js.map} +1 -1
  91. package/dist/chunks/{box-C8731OYq.es.js → box-BK_2R49p.es.js} +2 -2
  92. package/dist/chunks/{box-C8731OYq.es.js.map → box-BK_2R49p.es.js.map} +1 -1
  93. package/dist/chunks/{box-BPfqlznQ.cjs.js → box-BwCVnAwb.cjs.js} +2 -2
  94. package/dist/chunks/{box-BPfqlznQ.cjs.js.map → box-BwCVnAwb.cjs.js.map} +1 -1
  95. package/dist/chunks/{button-_TqIjVy-.es.js → button-CXRRo1Zo.es.js} +5 -5
  96. package/dist/chunks/{button-_TqIjVy-.es.js.map → button-CXRRo1Zo.es.js.map} +1 -1
  97. package/dist/chunks/{button-CtWoT2k5.cjs.js → button-DYpzmnga.cjs.js} +2 -2
  98. package/dist/chunks/{button-CtWoT2k5.cjs.js.map → button-DYpzmnga.cjs.js.map} +1 -1
  99. package/dist/chunks/{calendar-DFhIC3YS.cjs.js → calendar-D7q7B1ej.cjs.js} +2 -2
  100. package/dist/chunks/{calendar-DFhIC3YS.cjs.js.map → calendar-D7q7B1ej.cjs.js.map} +1 -1
  101. package/dist/chunks/{calendar-Cgm2jctu.es.js → calendar-DAPG3st4.es.js} +12 -12
  102. package/dist/chunks/{calendar-Cgm2jctu.es.js.map → calendar-DAPG3st4.es.js.map} +1 -1
  103. package/dist/chunks/{card-R8oaAKgo.es.js → card-DX8r4prk.es.js} +3 -3
  104. package/dist/chunks/{card-R8oaAKgo.es.js.map → card-DX8r4prk.es.js.map} +1 -1
  105. package/dist/chunks/{card-CHfjhPF8.cjs.js → card-DgvP36g1.cjs.js} +2 -2
  106. package/dist/chunks/{card-CHfjhPF8.cjs.js.map → card-DgvP36g1.cjs.js.map} +1 -1
  107. package/dist/chunks/{checkbox-pYAJn7HX.cjs.js → checkbox-Bfms-o7I.cjs.js} +2 -2
  108. package/dist/chunks/{checkbox-pYAJn7HX.cjs.js.map → checkbox-Bfms-o7I.cjs.js.map} +1 -1
  109. package/dist/chunks/{checkbox-Ce37pKIe.es.js → checkbox-KT-n-5er.es.js} +2 -2
  110. package/dist/chunks/{checkbox-Ce37pKIe.es.js.map → checkbox-KT-n-5er.es.js.map} +1 -1
  111. package/dist/chunks/code-C3WbF6Qh.cjs.js +2 -0
  112. package/dist/chunks/{code-CTuEvrXA.cjs.js.map → code-C3WbF6Qh.cjs.js.map} +1 -1
  113. package/dist/chunks/{code-CieYW1ER.es.js → code-DM_AtVy-.es.js} +2 -2
  114. package/dist/chunks/{code-CieYW1ER.es.js.map → code-DM_AtVy-.es.js.map} +1 -1
  115. package/dist/chunks/combobox-BOXZUeIh.cjs.js +2 -0
  116. package/dist/chunks/combobox-BOXZUeIh.cjs.js.map +1 -0
  117. package/dist/chunks/combobox-DpnWEs47.es.js +2392 -0
  118. package/dist/chunks/combobox-DpnWEs47.es.js.map +1 -0
  119. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -1
  120. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -1
  121. package/dist/chunks/context-OoV8SSWX.cjs.js +2 -0
  122. package/dist/chunks/{context-D0_cRaDZ.cjs.js.map → context-OoV8SSWX.cjs.js.map} +1 -1
  123. package/dist/chunks/context-R4YUlO9Y.es.js +108 -0
  124. package/dist/chunks/{context-Pt-0ojuK.es.js.map → context-R4YUlO9Y.es.js.map} +1 -1
  125. package/dist/chunks/{create-recipe-context-i2odau3L.es.js → create-recipe-context-CrNaylZN.es.js} +4 -4
  126. package/dist/chunks/{create-recipe-context-i2odau3L.es.js.map → create-recipe-context-CrNaylZN.es.js.map} +1 -1
  127. package/dist/chunks/{create-recipe-context-D0_lCuqq.cjs.js → create-recipe-context-bXYFTZLs.cjs.js} +2 -2
  128. package/dist/chunks/{create-recipe-context-D0_lCuqq.cjs.js.map → create-recipe-context-bXYFTZLs.cjs.js.map} +1 -1
  129. package/dist/chunks/{create-slot-recipe-context-DBNItnlK.es.js → create-slot-recipe-context--T0CaFjW.es.js} +3 -3
  130. package/dist/chunks/{create-slot-recipe-context-DBNItnlK.es.js.map → create-slot-recipe-context--T0CaFjW.es.js.map} +1 -1
  131. package/dist/chunks/{create-slot-recipe-context-HIF51Igr.cjs.js → create-slot-recipe-context-CimocFDH.cjs.js} +2 -2
  132. package/dist/chunks/{create-slot-recipe-context-HIF51Igr.cjs.js.map → create-slot-recipe-context-CimocFDH.cjs.js.map} +1 -1
  133. package/dist/chunks/{data-table-BvYN1Stn.es.js → data-table-CkldF9nZ.es.js} +1612 -1564
  134. package/dist/chunks/data-table-CkldF9nZ.es.js.map +1 -0
  135. package/dist/chunks/data-table-DPetwlWs.cjs.js +2 -0
  136. package/dist/chunks/data-table-DPetwlWs.cjs.js.map +1 -0
  137. package/dist/chunks/{date-input-BmKSBIL2.cjs.js → date-input-jXS-SVpU.cjs.js} +2 -2
  138. package/dist/chunks/{date-input-BmKSBIL2.cjs.js.map → date-input-jXS-SVpU.cjs.js.map} +1 -1
  139. package/dist/chunks/{date-input-DFx77xwE.es.js → date-input-wQ1WdB4N.es.js} +4 -4
  140. package/dist/chunks/{date-input-DFx77xwE.es.js.map → date-input-wQ1WdB4N.es.js.map} +1 -1
  141. package/dist/chunks/{date-picker-CsGYO3HW.cjs.js → date-picker-CDbiNEBg.cjs.js} +2 -2
  142. package/dist/chunks/{date-picker-CsGYO3HW.cjs.js.map → date-picker-CDbiNEBg.cjs.js.map} +1 -1
  143. package/dist/chunks/{date-picker-BzkAJfXO.es.js → date-picker-Do5hNEe5.es.js} +13 -13
  144. package/dist/chunks/{date-picker-BzkAJfXO.es.js.map → date-picker-Do5hNEe5.es.js.map} +1 -1
  145. package/dist/chunks/{date-range-picker-uomzPtYK.cjs.js → date-range-picker-Bq6Wkwwo.cjs.js} +2 -2
  146. package/dist/chunks/{date-range-picker-uomzPtYK.cjs.js.map → date-range-picker-Bq6Wkwwo.cjs.js.map} +1 -1
  147. package/dist/chunks/{date-range-picker-B1Sxvj0C.es.js → date-range-picker-DhX5QVXh.es.js} +13 -13
  148. package/dist/chunks/{date-range-picker-B1Sxvj0C.es.js.map → date-range-picker-DhX5QVXh.es.js.map} +1 -1
  149. package/dist/chunks/dialog-BQa_NWSr.cjs.js +2 -0
  150. package/dist/chunks/dialog-BQa_NWSr.cjs.js.map +1 -0
  151. package/dist/chunks/dialog-D4u5so0e.es.js +1912 -0
  152. package/dist/chunks/dialog-D4u5so0e.es.js.map +1 -0
  153. package/dist/chunks/{divider-CpctZ_-U.es.js → divider-Cjs3ESH7.es.js} +2 -2
  154. package/dist/chunks/{divider-CpctZ_-U.es.js.map → divider-Cjs3ESH7.es.js.map} +1 -1
  155. package/dist/chunks/{divider-CTTExmLv.cjs.js → divider-DU351gdE.cjs.js} +2 -2
  156. package/dist/chunks/{divider-CTTExmLv.cjs.js.map → divider-DU351gdE.cjs.js.map} +1 -1
  157. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -1
  158. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -1
  159. package/dist/chunks/{factory-DlCuwIGL.cjs.js → factory-CVGqU9CD.cjs.js} +2 -2
  160. package/dist/chunks/{factory-DlCuwIGL.cjs.js.map → factory-CVGqU9CD.cjs.js.map} +1 -1
  161. package/dist/chunks/{factory-BpxiKxSs.es.js → factory-DmIX2puY.es.js} +2 -2
  162. package/dist/chunks/{factory-BpxiKxSs.es.js.map → factory-DmIX2puY.es.js.map} +1 -1
  163. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
  164. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
  165. package/dist/chunks/{flex-B81RbgfK.es.js → flex-BFC_f5BH.es.js} +2 -2
  166. package/dist/chunks/{flex-B81RbgfK.es.js.map → flex-BFC_f5BH.es.js.map} +1 -1
  167. package/dist/chunks/{flex-BhVeeItQ.cjs.js → flex-yqydM5z_.cjs.js} +2 -2
  168. package/dist/chunks/{flex-BhVeeItQ.cjs.js.map → flex-yqydM5z_.cjs.js.map} +1 -1
  169. package/dist/chunks/focusSafely-DJpphVHF.es.js.map +1 -1
  170. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -1
  171. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  172. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  173. package/dist/chunks/{form-field-B1B4BtvO.es.js → form-field-B8N-bvac.es.js} +5 -5
  174. package/dist/chunks/{form-field-B1B4BtvO.es.js.map → form-field-B8N-bvac.es.js.map} +1 -1
  175. package/dist/chunks/{form-field-6_jyAhgo.cjs.js → form-field-CH2EUQMc.cjs.js} +2 -2
  176. package/dist/chunks/{form-field-6_jyAhgo.cjs.js.map → form-field-CH2EUQMc.cjs.js.map} +1 -1
  177. package/dist/chunks/{grid-Cdmh4YaF.es.js → grid-B3Ggy_FW.es.js} +2 -2
  178. package/dist/chunks/{grid-Cdmh4YaF.es.js.map → grid-B3Ggy_FW.es.js.map} +1 -1
  179. package/dist/chunks/{grid-CWdLtU5p.cjs.js → grid-CXpKN2OR.cjs.js} +2 -2
  180. package/dist/chunks/{grid-CWdLtU5p.cjs.js.map → grid-CXpKN2OR.cjs.js.map} +1 -1
  181. package/dist/chunks/{grid-item-CJHf3veC.cjs.js → grid-item-CGwfSnm7.cjs.js} +2 -2
  182. package/dist/chunks/{grid-item-CJHf3veC.cjs.js.map → grid-item-CGwfSnm7.cjs.js.map} +1 -1
  183. package/dist/chunks/{grid-item-CpPkpUVF.es.js → grid-item-DuAynDd1.es.js} +3 -3
  184. package/dist/chunks/{grid-item-CpPkpUVF.es.js.map → grid-item-DuAynDd1.es.js.map} +1 -1
  185. package/dist/chunks/{icon-DTe62Nqz.es.js → icon-BDsjJ4Zi.es.js} +2 -2
  186. package/dist/chunks/{icon-DTe62Nqz.es.js.map → icon-BDsjJ4Zi.es.js.map} +1 -1
  187. package/dist/chunks/{icon-C_BZeqkm.cjs.js → icon-DHoLo7_S.cjs.js} +2 -2
  188. package/dist/chunks/{icon-C_BZeqkm.cjs.js.map → icon-DHoLo7_S.cjs.js.map} +1 -1
  189. package/dist/chunks/{icon-button-Dqhm4rBI.cjs.js → icon-button-1MQYEWVd.cjs.js} +2 -2
  190. package/dist/chunks/{icon-button-Dqhm4rBI.cjs.js.map → icon-button-1MQYEWVd.cjs.js.map} +1 -1
  191. package/dist/chunks/{icon-button-oIKucbza.es.js → icon-button-Bp92vS0I.es.js} +2 -2
  192. package/dist/chunks/{icon-button-oIKucbza.es.js.map → icon-button-Bp92vS0I.es.js.map} +1 -1
  193. package/dist/chunks/{icon-toggle-button-DIfDVDd4.cjs.js → icon-toggle-button-D42wYTJF.cjs.js} +2 -2
  194. package/dist/chunks/{icon-toggle-button-DIfDVDd4.cjs.js.map → icon-toggle-button-D42wYTJF.cjs.js.map} +1 -1
  195. package/dist/chunks/{icon-toggle-button-BYKHQRsq.es.js → icon-toggle-button-D7N1RxnR.es.js} +2 -2
  196. package/dist/chunks/{icon-toggle-button-BYKHQRsq.es.js.map → icon-toggle-button-D7N1RxnR.es.js.map} +1 -1
  197. package/dist/chunks/{image-BP9LcU28.cjs.js → image-B3ISQSVL.cjs.js} +2 -2
  198. package/dist/chunks/{image-BP9LcU28.cjs.js.map → image-B3ISQSVL.cjs.js.map} +1 -1
  199. package/dist/chunks/{image-BycsRl2K.es.js → image-CwcCZREa.es.js} +2 -2
  200. package/dist/chunks/{image-BycsRl2K.es.js.map → image-CwcCZREa.es.js.map} +1 -1
  201. package/dist/chunks/{image-B2WbQ5hi.es.js → image-MeWmLoV0.es.js} +2 -2
  202. package/dist/chunks/{image-B2WbQ5hi.es.js.map → image-MeWmLoV0.es.js.map} +1 -1
  203. package/dist/chunks/image-bt28epM5.cjs.js +2 -0
  204. package/dist/chunks/{image-BAqoLZQB.cjs.js.map → image-bt28epM5.cjs.js.map} +1 -1
  205. package/dist/chunks/{index-0CyuQQet.es.js → index-46Tt2Ww4.es.js} +2 -2
  206. package/dist/chunks/{index-0CyuQQet.es.js.map → index-46Tt2Ww4.es.js.map} +1 -1
  207. package/dist/chunks/index-BYEAMD8A.cjs.js +2 -0
  208. package/dist/chunks/{index-x9OhLGGf.cjs.js.map → index-BYEAMD8A.cjs.js.map} +1 -1
  209. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
  210. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
  211. package/dist/chunks/{kbd-CDEXQyg2.es.js → kbd-Bc97Bwq3.es.js} +2 -2
  212. package/dist/chunks/{kbd-CDEXQyg2.es.js.map → kbd-Bc97Bwq3.es.js.map} +1 -1
  213. package/dist/chunks/{kbd-DP3lZ80W.cjs.js → kbd-BlZ2RGfa.cjs.js} +2 -2
  214. package/dist/chunks/{kbd-DP3lZ80W.cjs.js.map → kbd-BlZ2RGfa.cjs.js.map} +1 -1
  215. package/dist/chunks/{link-BoUhLeO-.es.js → link-DjzrPyx3.es.js} +2 -2
  216. package/dist/chunks/{link-BoUhLeO-.es.js.map → link-DjzrPyx3.es.js.map} +1 -1
  217. package/dist/chunks/{link-DTUiEXYJ.cjs.js → link-DzUonoQg.cjs.js} +2 -2
  218. package/dist/chunks/{link-DTUiEXYJ.cjs.js.map → link-DzUonoQg.cjs.js.map} +1 -1
  219. package/dist/chunks/{list-x423RThD.es.js → list-BTkkDy6B.es.js} +2 -2
  220. package/dist/chunks/{list-x423RThD.es.js.map → list-BTkkDy6B.es.js.map} +1 -1
  221. package/dist/chunks/{list-r1G4iBXo.cjs.js → list-DokC0Ks-.cjs.js} +2 -2
  222. package/dist/chunks/{list-r1G4iBXo.cjs.js.map → list-DokC0Ks-.cjs.js.map} +1 -1
  223. package/dist/chunks/{loading-spinner-C7yZE-QF.es.js → loading-spinner-DuBf2cIy.es.js} +3 -3
  224. package/dist/chunks/{loading-spinner-C7yZE-QF.es.js.map → loading-spinner-DuBf2cIy.es.js.map} +1 -1
  225. package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js → loading-spinner-VVQyl725.cjs.js} +2 -2
  226. package/dist/chunks/{loading-spinner-BLDpwNFm.cjs.js.map → loading-spinner-VVQyl725.cjs.js.map} +1 -1
  227. package/dist/chunks/{menu-BZWMAG92.es.js → menu-DFrwX16L.es.js} +25 -25
  228. package/dist/chunks/{menu-BZWMAG92.es.js.map → menu-DFrwX16L.es.js.map} +1 -1
  229. package/dist/chunks/menu-DHZ-kLy2.cjs.js +2 -0
  230. package/dist/chunks/{menu-C41LRy4b.cjs.js.map → menu-DHZ-kLy2.cjs.js.map} +1 -1
  231. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
  232. package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -1
  233. package/dist/chunks/{multiline-text-input-Dy6gbL7T.es.js → multiline-text-input-DJUUQQcc.es.js} +3 -3
  234. package/dist/chunks/{multiline-text-input-Dy6gbL7T.es.js.map → multiline-text-input-DJUUQQcc.es.js.map} +1 -1
  235. package/dist/chunks/{multiline-text-input-B5XtIAAO.cjs.js → multiline-text-input-c-ycPy7O.cjs.js} +2 -2
  236. package/dist/chunks/{multiline-text-input-B5XtIAAO.cjs.js.map → multiline-text-input-c-ycPy7O.cjs.js.map} +1 -1
  237. package/dist/chunks/{namespace-HxAMZBwF.es.js → namespace---Td8pR2.es.js} +3 -3
  238. package/dist/chunks/{namespace-HxAMZBwF.es.js.map → namespace---Td8pR2.es.js.map} +1 -1
  239. package/dist/chunks/{namespace-CYjqWfVn.cjs.js → namespace-CpLmDcCq.cjs.js} +2 -2
  240. package/dist/chunks/{namespace-CYjqWfVn.cjs.js.map → namespace-CpLmDcCq.cjs.js.map} +1 -1
  241. package/dist/chunks/{nimbus-provider-Yka95N38.cjs.js → nimbus-provider-CVhVm-aq.cjs.js} +2 -2
  242. package/dist/chunks/{nimbus-provider-Yka95N38.cjs.js.map → nimbus-provider-CVhVm-aq.cjs.js.map} +1 -1
  243. package/dist/chunks/{nimbus-provider-C68IpiXi.es.js → nimbus-provider-_f5vEIR_.es.js} +3 -3
  244. package/dist/chunks/{nimbus-provider-C68IpiXi.es.js.map → nimbus-provider-_f5vEIR_.es.js.map} +1 -1
  245. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
  246. package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
  247. package/dist/chunks/{number-input-Dm2FFtQx.cjs.js → number-input-BFmnS-UB.cjs.js} +2 -2
  248. package/dist/chunks/{number-input-Dm2FFtQx.cjs.js.map → number-input-BFmnS-UB.cjs.js.map} +1 -1
  249. package/dist/chunks/{number-input-BxLU6AgG.es.js → number-input-DloMrtt6.es.js} +8 -8
  250. package/dist/chunks/{number-input-BxLU6AgG.es.js.map → number-input-DloMrtt6.es.js.map} +1 -1
  251. package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
  252. package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
  253. package/dist/chunks/{password-input-CwWWxcly.cjs.js → password-input-C-tPs6EJ.cjs.js} +2 -2
  254. package/dist/chunks/{password-input-CwWWxcly.cjs.js.map → password-input-C-tPs6EJ.cjs.js.map} +1 -1
  255. package/dist/chunks/{password-input-DJjAz3TP.es.js → password-input-CBdBny43.es.js} +5 -5
  256. package/dist/chunks/{password-input-DJjAz3TP.es.js.map → password-input-CBdBny43.es.js.map} +1 -1
  257. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
  258. package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
  259. package/dist/chunks/{progress-bar-CDRI279T.es.js → progress-bar-Dx1MVCsz.es.js} +5 -5
  260. package/dist/chunks/{progress-bar-CDRI279T.es.js.map → progress-bar-Dx1MVCsz.es.js.map} +1 -1
  261. package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js → progress-bar-vPPXrzbA.cjs.js} +2 -2
  262. package/dist/chunks/{progress-bar-nQCcdv_4.cjs.js.map → progress-bar-vPPXrzbA.cjs.js.map} +1 -1
  263. package/dist/chunks/{provider-DxFdjgyb.es.js → provider-CHFgwvsP.es.js} +3 -3
  264. package/dist/chunks/provider-CHFgwvsP.es.js.map +1 -0
  265. package/dist/chunks/provider-DFlBEH6q.cjs.js +16 -0
  266. package/dist/chunks/provider-DFlBEH6q.cjs.js.map +1 -0
  267. package/dist/chunks/{radio-input-BXFY8CaT.cjs.js → radio-input-1eswyY0o.cjs.js} +2 -2
  268. package/dist/chunks/{radio-input-BXFY8CaT.cjs.js.map → radio-input-1eswyY0o.cjs.js.map} +1 -1
  269. package/dist/chunks/{radio-input-CAogtJP7.es.js → radio-input-D-9Q8REK.es.js} +3 -3
  270. package/dist/chunks/{radio-input-CAogtJP7.es.js.map → radio-input-D-9Q8REK.es.js.map} +1 -1
  271. package/dist/chunks/{range-calendar-D-CvB2-1.es.js → range-calendar-B6T5RB2u.es.js} +12 -12
  272. package/dist/chunks/{range-calendar-D-CvB2-1.es.js.map → range-calendar-B6T5RB2u.es.js.map} +1 -1
  273. package/dist/chunks/{range-calendar-BuzvPCc1.cjs.js → range-calendar-NhqUtCdU.cjs.js} +2 -2
  274. package/dist/chunks/{range-calendar-BuzvPCc1.cjs.js.map → range-calendar-NhqUtCdU.cjs.js.map} +1 -1
  275. package/dist/chunks/{rich-text-input-Dv7OofX2.es.js → rich-text-input-BvYBUkt_.es.js} +12 -12
  276. package/dist/chunks/{rich-text-input-Dv7OofX2.es.js.map → rich-text-input-BvYBUkt_.es.js.map} +1 -1
  277. package/dist/chunks/{rich-text-input-Dmp5hx2t.cjs.js → rich-text-input-DXzaZuhE.cjs.js} +2 -2
  278. package/dist/chunks/{rich-text-input-Dmp5hx2t.cjs.js.map → rich-text-input-DXzaZuhE.cjs.js.map} +1 -1
  279. package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -1
  280. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
  281. package/dist/chunks/select-CXwoEwFo.cjs.js +2 -0
  282. package/dist/chunks/{select-IUEop3i7.cjs.js.map → select-CXwoEwFo.cjs.js.map} +1 -1
  283. package/dist/chunks/{select-Dlg0m5Ww.es.js → select-CanxdDbU.es.js} +15 -15
  284. package/dist/chunks/{select-Dlg0m5Ww.es.js.map → select-CanxdDbU.es.js.map} +1 -1
  285. package/dist/chunks/{simple-grid-yOwvCBEN.cjs.js → simple-grid-B7BgfVAS.cjs.js} +2 -2
  286. package/dist/chunks/{simple-grid-yOwvCBEN.cjs.js.map → simple-grid-B7BgfVAS.cjs.js.map} +1 -1
  287. package/dist/chunks/{simple-grid-Crtlocqj.es.js → simple-grid-C6GRMtip.es.js} +4 -4
  288. package/dist/chunks/{simple-grid-Crtlocqj.es.js.map → simple-grid-C6GRMtip.es.js.map} +1 -1
  289. package/dist/chunks/{slate-helpers-CMAwCMk0.cjs.js → slate-helpers-BN_9Hky2.cjs.js} +3 -3
  290. package/dist/chunks/{slate-helpers-CMAwCMk0.cjs.js.map → slate-helpers-BN_9Hky2.cjs.js.map} +1 -1
  291. package/dist/chunks/{slate-helpers-BwRHJO4o.es.js → slate-helpers-DunxggA8.es.js} +45 -45
  292. package/dist/chunks/{slate-helpers-BwRHJO4o.es.js.map → slate-helpers-DunxggA8.es.js.map} +1 -1
  293. package/dist/chunks/{split-button-Dpj44F6g.es.js → split-button-BTheahW8.es.js} +4 -4
  294. package/dist/chunks/{split-button-Dpj44F6g.es.js.map → split-button-BTheahW8.es.js.map} +1 -1
  295. package/dist/chunks/{split-button-B4Wp7H3n.cjs.js → split-button-CM-MvUGD.cjs.js} +2 -2
  296. package/dist/chunks/{split-button-B4Wp7H3n.cjs.js.map → split-button-CM-MvUGD.cjs.js.map} +1 -1
  297. package/dist/chunks/{stack-B6PqFPMh.cjs.js → stack-BG0j9HvT.cjs.js} +2 -2
  298. package/dist/chunks/{stack-B6PqFPMh.cjs.js.map → stack-BG0j9HvT.cjs.js.map} +1 -1
  299. package/dist/chunks/{stack-CBx-c8hI.es.js → stack-QzuqKTKb.es.js} +3 -3
  300. package/dist/chunks/{stack-CBx-c8hI.es.js.map → stack-QzuqKTKb.es.js.map} +1 -1
  301. package/dist/chunks/{switch-CeNcr608.cjs.js → switch-D2Wfgfnu.cjs.js} +2 -2
  302. package/dist/chunks/{switch-CeNcr608.cjs.js.map → switch-D2Wfgfnu.cjs.js.map} +1 -1
  303. package/dist/chunks/{switch-Ba9WXDDP.es.js → switch-DfH87j5a.es.js} +2 -2
  304. package/dist/chunks/{switch-Ba9WXDDP.es.js.map → switch-DfH87j5a.es.js.map} +1 -1
  305. package/dist/chunks/tag-group-BxRaZjiA.cjs.js +2 -0
  306. package/dist/chunks/tag-group-BxRaZjiA.cjs.js.map +1 -0
  307. package/dist/chunks/{tag-group-BY7yGmmv.es.js → tag-group-EIsTAERM.es.js} +278 -265
  308. package/dist/chunks/tag-group-EIsTAERM.es.js.map +1 -0
  309. package/dist/chunks/{text-B2wziCK6.es.js → text-DSjt3Sqv.es.js} +2 -2
  310. package/dist/chunks/{text-B2wziCK6.es.js.map → text-DSjt3Sqv.es.js.map} +1 -1
  311. package/dist/chunks/{text-hUMahKuA.cjs.js → text-Dg1sFCuC.cjs.js} +2 -2
  312. package/dist/chunks/{text-hUMahKuA.cjs.js.map → text-Dg1sFCuC.cjs.js.map} +1 -1
  313. package/dist/chunks/{text-input-82882hyq.es.js → text-input-BnwR9awD.es.js} +3 -3
  314. package/dist/chunks/{text-input-82882hyq.es.js.map → text-input-BnwR9awD.es.js.map} +1 -1
  315. package/dist/chunks/{text-input-CBcEG79G.cjs.js → text-input-DtwV2zvu.cjs.js} +2 -2
  316. package/dist/chunks/{text-input-CBcEG79G.cjs.js.map → text-input-DtwV2zvu.cjs.js.map} +1 -1
  317. package/dist/chunks/{time-input-CCnD_SWq.cjs.js → time-input-BS5RS11d.cjs.js} +2 -2
  318. package/dist/chunks/{time-input-CCnD_SWq.cjs.js.map → time-input-BS5RS11d.cjs.js.map} +1 -1
  319. package/dist/chunks/{time-input-DAA-IK0I.es.js → time-input-BuFPyNcW.es.js} +4 -4
  320. package/dist/chunks/{time-input-DAA-IK0I.es.js.map → time-input-BuFPyNcW.es.js.map} +1 -1
  321. package/dist/chunks/{toggle-button-163ZMcpk.es.js → toggle-button-B5nYtXCP.es.js} +5 -5
  322. package/dist/chunks/{toggle-button-163ZMcpk.es.js.map → toggle-button-B5nYtXCP.es.js.map} +1 -1
  323. package/dist/chunks/{toggle-button-BTYd563-.cjs.js → toggle-button-CZcbVyDV.cjs.js} +2 -2
  324. package/dist/chunks/{toggle-button-BTYd563-.cjs.js.map → toggle-button-CZcbVyDV.cjs.js.map} +1 -1
  325. package/dist/chunks/{toggle-button-group-D-sGsuZ_.es.js → toggle-button-group-DHMnBWSg.es.js} +3 -3
  326. package/dist/chunks/{toggle-button-group-D-sGsuZ_.es.js.map → toggle-button-group-DHMnBWSg.es.js.map} +1 -1
  327. package/dist/chunks/{toggle-button-group-Dq51N27j.cjs.js → toggle-button-group-LddoXszz.cjs.js} +2 -2
  328. package/dist/chunks/{toggle-button-group-Dq51N27j.cjs.js.map → toggle-button-group-LddoXszz.cjs.js.map} +1 -1
  329. package/dist/chunks/{toolbar-Ch-bOLkm.es.js → toolbar-CWst3Tik.es.js} +2 -2
  330. package/dist/chunks/{toolbar-Ch-bOLkm.es.js.map → toolbar-CWst3Tik.es.js.map} +1 -1
  331. package/dist/chunks/{toolbar-CzXpYEbP.cjs.js → toolbar-CrxjHhQi.cjs.js} +2 -2
  332. package/dist/chunks/{toolbar-CzXpYEbP.cjs.js.map → toolbar-CrxjHhQi.cjs.js.map} +1 -1
  333. package/dist/chunks/tooltip-CIAEV4_B.cjs.js +2 -0
  334. package/dist/chunks/tooltip-CIAEV4_B.cjs.js.map +1 -0
  335. package/dist/chunks/tooltip-CTvNYvui.es.js +269 -0
  336. package/dist/chunks/tooltip-CTvNYvui.es.js.map +1 -0
  337. package/dist/chunks/{use-formatting-state-Denpy3Zo.cjs.js → use-formatting-state-DVcnyVBl.cjs.js} +2 -2
  338. package/dist/chunks/{use-formatting-state-Denpy3Zo.cjs.js.map → use-formatting-state-DVcnyVBl.cjs.js.map} +1 -1
  339. package/dist/chunks/{use-formatting-state-RJvSR-Zg.es.js → use-formatting-state-DdKYccZs.es.js} +2 -2
  340. package/dist/chunks/{use-formatting-state-RJvSR-Zg.es.js.map → use-formatting-state-DdKYccZs.es.js.map} +1 -1
  341. package/dist/chunks/{use-recipe-CR4W7Dne.es.js → use-recipe-DuU8En0C.es.js} +2 -2
  342. package/dist/chunks/{use-recipe-CR4W7Dne.es.js.map → use-recipe-DuU8En0C.es.js.map} +1 -1
  343. package/dist/chunks/use-recipe-pbWWLWIq.cjs.js +2 -0
  344. package/dist/chunks/{use-recipe-BZ_iqCkN.cjs.js.map → use-recipe-pbWWLWIq.cjs.js.map} +1 -1
  345. package/dist/chunks/{useButton-C8n_NtBu.cjs.js → useButton-BgBfaV_L.cjs.js} +2 -2
  346. package/dist/chunks/{useButton-C8n_NtBu.cjs.js.map → useButton-BgBfaV_L.cjs.js.map} +1 -1
  347. package/dist/chunks/{useButton-M3_syr-Y.es.js → useButton-DAeSjgg9.es.js} +19 -18
  348. package/dist/chunks/{useButton-M3_syr-Y.es.js.map → useButton-DAeSjgg9.es.js.map} +1 -1
  349. package/dist/chunks/{useCollator-BvjDbml1.es.js → useCollator-BHMZd1r6.es.js} +2 -2
  350. package/dist/chunks/{useCollator-BvjDbml1.es.js.map → useCollator-BHMZd1r6.es.js.map} +1 -1
  351. package/dist/chunks/{useCollator-ZqnkTllN.cjs.js → useCollator-YVJAe1GI.cjs.js} +2 -2
  352. package/dist/chunks/{useCollator-ZqnkTllN.cjs.js.map → useCollator-YVJAe1GI.cjs.js.map} +1 -1
  353. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  354. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  355. package/dist/chunks/{useDateFormatter-BqJA667a.es.js → useDateFormatter-C7Kxzwro.es.js} +2 -2
  356. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js.map +1 -0
  357. package/dist/chunks/{useDateFormatter-Dq2Ly1Je.cjs.js → useDateFormatter-CS19Cch2.cjs.js} +2 -2
  358. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -0
  359. package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
  360. package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -1
  361. package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -1
  362. package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
  363. package/dist/chunks/{useFilter-Du48WXDn.cjs.js → useFilter-CG8lxfCP.cjs.js} +2 -2
  364. package/dist/chunks/{useFilter-Du48WXDn.cjs.js.map → useFilter-CG8lxfCP.cjs.js.map} +1 -1
  365. package/dist/chunks/{useFilter-Bh0adxQ-.es.js → useFilter-DOfNzeZ9.es.js} +2 -2
  366. package/dist/chunks/{useFilter-Bh0adxQ-.es.js.map → useFilter-DOfNzeZ9.es.js.map} +1 -1
  367. package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -1
  368. package/dist/chunks/useFocus-DkWJ2TJC.es.js.map +1 -1
  369. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -1
  370. package/dist/chunks/useFocusRing-updnkDQg.es.js.map +1 -1
  371. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -1
  372. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -1
  373. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -1
  374. package/dist/chunks/useFocusWithin-ByYlHjju.es.js.map +1 -1
  375. package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -1
  376. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -1
  377. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
  378. package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -1
  379. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js.map +1 -1
  380. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -1
  381. package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
  382. package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
  383. package/dist/chunks/{useHighlightSelectionDescription-CsL0QM95.es.js → useHighlightSelectionDescription-BQg1WcM3.es.js} +2 -2
  384. package/dist/chunks/{useHighlightSelectionDescription-CsL0QM95.es.js.map → useHighlightSelectionDescription-BQg1WcM3.es.js.map} +1 -1
  385. package/dist/chunks/{useHighlightSelectionDescription-DwBGGESb.cjs.js → useHighlightSelectionDescription-CpDw-Mgj.cjs.js} +2 -2
  386. package/dist/chunks/{useHighlightSelectionDescription-DwBGGESb.cjs.js.map → useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map} +1 -1
  387. package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -1
  388. package/dist/chunks/useHover-DhoE75lX.es.js.map +1 -1
  389. package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -1
  390. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
  391. package/dist/chunks/{useLocalizedStringFormatter-CvzOUusg.es.js → useLocalizedStringFormatter-BRnRyxJp.es.js} +2 -2
  392. package/dist/chunks/{useLocalizedStringFormatter-CvzOUusg.es.js.map → useLocalizedStringFormatter-BRnRyxJp.es.js.map} +1 -1
  393. package/dist/chunks/{useLocalizedStringFormatter-fJnbqb2x.cjs.js → useLocalizedStringFormatter-sB0mFYtL.cjs.js} +2 -2
  394. package/dist/chunks/{useLocalizedStringFormatter-fJnbqb2x.cjs.js.map → useLocalizedStringFormatter-sB0mFYtL.cjs.js.map} +1 -1
  395. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  396. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  397. package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -1
  398. package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -1
  399. package/dist/chunks/{useProgressBar-BgURyN6q.es.js → useProgressBar-DHFmTHqL.es.js} +2 -2
  400. package/dist/chunks/{useProgressBar-BgURyN6q.es.js.map → useProgressBar-DHFmTHqL.es.js.map} +1 -1
  401. package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js → useProgressBar-DWH4I0qR.cjs.js} +2 -2
  402. package/dist/chunks/{useProgressBar-8ZyM2_T3.cjs.js.map → useProgressBar-DWH4I0qR.cjs.js.map} +1 -1
  403. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -1
  404. package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -1
  405. package/dist/chunks/{useSingleSelectListState-CYqW_Fx5.es.js → useSingleSelectListState-D1rjgMv_.es.js} +2 -2
  406. package/dist/chunks/{useSingleSelectListState-CYqW_Fx5.es.js.map → useSingleSelectListState-D1rjgMv_.es.js.map} +1 -1
  407. package/dist/chunks/{useSingleSelectListState-8Jfm9Pr1.cjs.js → useSingleSelectListState-F2WkLZRg.cjs.js} +2 -2
  408. package/dist/chunks/{useSingleSelectListState-8Jfm9Pr1.cjs.js.map → useSingleSelectListState-F2WkLZRg.cjs.js.map} +1 -1
  409. package/dist/chunks/{useSpinButton-C-tpK-T9.es.js → useSpinButton-C9DPDo0r.es.js} +30 -30
  410. package/dist/chunks/useSpinButton-C9DPDo0r.es.js.map +1 -0
  411. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js +2 -0
  412. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -0
  413. package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -1
  414. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
  415. package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -1
  416. package/dist/chunks/useTextField-BnL6tOdd.es.js.map +1 -1
  417. package/dist/chunks/useToggle-DqruaaTq.es.js.map +1 -1
  418. package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -1
  419. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
  420. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
  421. package/dist/chunks/{useToolbar-Coi7qK2U.cjs.js → useToolbar-Bqn3EANT.cjs.js} +2 -2
  422. package/dist/chunks/{useToolbar-Coi7qK2U.cjs.js.map → useToolbar-Bqn3EANT.cjs.js.map} +1 -1
  423. package/dist/chunks/{useToolbar-9B43whQM.es.js → useToolbar-CLH6Sjes.es.js} +2 -2
  424. package/dist/chunks/{useToolbar-9B43whQM.es.js.map → useToolbar-CLH6Sjes.es.js.map} +1 -1
  425. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  426. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  427. package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -1
  428. package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
  429. package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
  430. package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -1
  431. package/dist/chunks/{walk-object-Ad4Rz5Gh.cjs.js → walk-object-CPVtf-bb.cjs.js} +2 -2
  432. package/dist/chunks/{walk-object-Ad4Rz5Gh.cjs.js.map → walk-object-CPVtf-bb.cjs.js.map} +1 -1
  433. package/dist/chunks/{walk-object-Drjey5HY.es.js → walk-object-Dpb8i9wi.es.js} +2 -2
  434. package/dist/chunks/{walk-object-Drjey5HY.es.js.map → walk-object-Dpb8i9wi.es.js.map} +1 -1
  435. package/dist/components/accordion.cjs +1 -1
  436. package/dist/components/accordion.es.js +1 -1
  437. package/dist/components/alert.cjs +1 -1
  438. package/dist/components/alert.es.js +1 -1
  439. package/dist/components/avatar.cjs +1 -1
  440. package/dist/components/avatar.es.js +1 -1
  441. package/dist/components/badge.cjs +1 -1
  442. package/dist/components/badge.es.js +1 -1
  443. package/dist/components/box.cjs +1 -1
  444. package/dist/components/box.es.js +1 -1
  445. package/dist/components/button.cjs +1 -1
  446. package/dist/components/button.es.js +1 -1
  447. package/dist/components/calendar.cjs +1 -1
  448. package/dist/components/calendar.es.js +1 -1
  449. package/dist/components/card.cjs +1 -1
  450. package/dist/components/card.es.js +1 -1
  451. package/dist/components/checkbox.cjs +1 -1
  452. package/dist/components/checkbox.es.js +1 -1
  453. package/dist/components/code.cjs +1 -1
  454. package/dist/components/code.es.js +1 -1
  455. package/dist/components/combobox.cjs +1 -1
  456. package/dist/components/combobox.es.js +1 -1
  457. package/dist/components/components.cjs +1 -1
  458. package/dist/components/components.es.js +52 -52
  459. package/dist/components/data-table.cjs +1 -1
  460. package/dist/components/data-table.es.js +1 -1
  461. package/dist/components/date-input.cjs +1 -1
  462. package/dist/components/date-input.es.js +1 -1
  463. package/dist/components/date-picker.cjs +1 -1
  464. package/dist/components/date-picker.es.js +1 -1
  465. package/dist/components/date-range-picker.cjs +1 -1
  466. package/dist/components/date-range-picker.es.js +1 -1
  467. package/dist/components/dialog.cjs +1 -1
  468. package/dist/components/dialog.es.js +1 -1
  469. package/dist/components/divider.cjs +1 -1
  470. package/dist/components/divider.es.js +1 -1
  471. package/dist/components/flex.cjs +1 -1
  472. package/dist/components/flex.es.js +1 -1
  473. package/dist/components/form-field.cjs +1 -1
  474. package/dist/components/form-field.es.js +1 -1
  475. package/dist/components/grid.cjs +1 -1
  476. package/dist/components/grid.es.js +1 -1
  477. package/dist/components/heading.cjs +1 -1
  478. package/dist/components/heading.es.js +1 -1
  479. package/dist/components/hooks.cjs +1 -1
  480. package/dist/components/hooks.es.js +1 -1
  481. package/dist/components/icon-button.cjs +1 -1
  482. package/dist/components/icon-button.es.js +1 -1
  483. package/dist/components/icon-toggle-button.cjs +1 -1
  484. package/dist/components/icon-toggle-button.es.js +1 -1
  485. package/dist/components/icon.cjs +1 -1
  486. package/dist/components/icon.es.js +1 -1
  487. package/dist/components/image.cjs +1 -1
  488. package/dist/components/image.es.js +1 -1
  489. package/dist/components/kbd.cjs +1 -1
  490. package/dist/components/kbd.es.js +1 -1
  491. package/dist/components/link.cjs +1 -1
  492. package/dist/components/link.es.js +1 -1
  493. package/dist/components/list.cjs +1 -1
  494. package/dist/components/list.es.js +1 -1
  495. package/dist/components/loading-spinner.cjs +1 -1
  496. package/dist/components/loading-spinner.es.js +1 -1
  497. package/dist/components/multiline-text-input.cjs +1 -1
  498. package/dist/components/multiline-text-input.es.js +1 -1
  499. package/dist/components/nimbus-provider.cjs +1 -1
  500. package/dist/components/nimbus-provider.es.js +1 -1
  501. package/dist/components/number-input.cjs +1 -1
  502. package/dist/components/number-input.es.js +1 -1
  503. package/dist/components/password-input.cjs +1 -1
  504. package/dist/components/password-input.es.js +1 -1
  505. package/dist/components/popover.cjs +1 -1
  506. package/dist/components/popover.es.js +2 -2
  507. package/dist/components/progress-bar.cjs +1 -1
  508. package/dist/components/progress-bar.es.js +1 -1
  509. package/dist/components/radio-input.cjs +1 -1
  510. package/dist/components/radio-input.es.js +1 -1
  511. package/dist/components/range-calendar.cjs +1 -1
  512. package/dist/components/range-calendar.es.js +1 -1
  513. package/dist/components/rich-text-input.cjs +1 -1
  514. package/dist/components/rich-text-input.es.js +1 -1
  515. package/dist/components/select.cjs +1 -1
  516. package/dist/components/select.es.js +1 -1
  517. package/dist/components/simple-grid.cjs +1 -1
  518. package/dist/components/simple-grid.es.js +1 -1
  519. package/dist/components/split-button.cjs +1 -1
  520. package/dist/components/split-button.es.js +1 -1
  521. package/dist/components/stack.cjs +1 -1
  522. package/dist/components/stack.es.js +1 -1
  523. package/dist/components/switch.cjs +1 -1
  524. package/dist/components/switch.es.js +1 -1
  525. package/dist/components/table.cjs +1 -1
  526. package/dist/components/table.es.js +1 -1
  527. package/dist/components/tag-group.cjs +1 -1
  528. package/dist/components/tag-group.es.js +1 -1
  529. package/dist/components/text-input.cjs +1 -1
  530. package/dist/components/text-input.es.js +1 -1
  531. package/dist/components/text.cjs +1 -1
  532. package/dist/components/text.es.js +1 -1
  533. package/dist/components/time-input.cjs +1 -1
  534. package/dist/components/time-input.es.js +1 -1
  535. package/dist/components/toggle-button-group.cjs +1 -1
  536. package/dist/components/toggle-button-group.es.js +1 -1
  537. package/dist/components/toggle-button.cjs +1 -1
  538. package/dist/components/toggle-button.es.js +1 -1
  539. package/dist/components/toolbar.cjs +1 -1
  540. package/dist/components/toolbar.es.js +1 -1
  541. package/dist/components/tooltip.cjs +1 -1
  542. package/dist/components/tooltip.es.js +1 -1
  543. package/dist/components/utils.cjs +1 -1
  544. package/dist/components/utils.es.js +2 -2
  545. package/dist/index.cjs +1 -1
  546. package/dist/index.cjs.map +1 -1
  547. package/dist/index.es.js +54 -54
  548. package/dist/index.es.js.map +1 -1
  549. package/package.json +12 -12
  550. package/dist/chunks/Collection-BYX373AD.cjs.js +0 -18
  551. package/dist/chunks/Collection-BYX373AD.cjs.js.map +0 -1
  552. package/dist/chunks/Collection-Df3FPouy.es.js.map +0 -1
  553. package/dist/chunks/DateField-DVzmD_D6.es.js.map +0 -1
  554. package/dist/chunks/DateField-Dh2hoOBr.cjs.js +0 -2
  555. package/dist/chunks/DateField-Dh2hoOBr.cjs.js.map +0 -1
  556. package/dist/chunks/DatePicker-C0NXSwOw.cjs.js +0 -2
  557. package/dist/chunks/DatePicker-C0NXSwOw.cjs.js.map +0 -1
  558. package/dist/chunks/DatePicker-_A7-hp_b.es.js.map +0 -1
  559. package/dist/chunks/Dialog-BnIvgMq1.cjs.js +0 -2
  560. package/dist/chunks/Dialog-BnIvgMq1.cjs.js.map +0 -1
  561. package/dist/chunks/Dialog-C3wKnoBH.es.js +0 -1903
  562. package/dist/chunks/Dialog-C3wKnoBH.es.js.map +0 -1
  563. package/dist/chunks/ListBox-B2Z13FyL.cjs.js +0 -2
  564. package/dist/chunks/ListBox-B2Z13FyL.cjs.js.map +0 -1
  565. package/dist/chunks/ListBox-BzuLanGT.es.js +0 -615
  566. package/dist/chunks/ListBox-BzuLanGT.es.js.map +0 -1
  567. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +0 -2
  568. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +0 -1
  569. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js +0 -479
  570. package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js.map +0 -1
  571. package/dist/chunks/Separator-QdyS03-E.cjs.js +0 -2
  572. package/dist/chunks/Separator-QdyS03-E.cjs.js.map +0 -1
  573. package/dist/chunks/Separator-T5Cc3sUj.es.js +0 -573
  574. package/dist/chunks/Separator-T5Cc3sUj.es.js.map +0 -1
  575. package/dist/chunks/code-CTuEvrXA.cjs.js +0 -2
  576. package/dist/chunks/combobox-C3FEfver.es.js +0 -1912
  577. package/dist/chunks/combobox-C3FEfver.es.js.map +0 -1
  578. package/dist/chunks/combobox-CnUfDGC-.cjs.js +0 -2
  579. package/dist/chunks/combobox-CnUfDGC-.cjs.js.map +0 -1
  580. package/dist/chunks/context-D0_cRaDZ.cjs.js +0 -2
  581. package/dist/chunks/context-Pt-0ojuK.es.js +0 -94
  582. package/dist/chunks/data-table-BvTXYpZB.cjs.js +0 -2
  583. package/dist/chunks/data-table-BvTXYpZB.cjs.js.map +0 -1
  584. package/dist/chunks/data-table-BvYN1Stn.es.js.map +0 -1
  585. package/dist/chunks/dialog-CG-cCFkg.es.js +0 -1889
  586. package/dist/chunks/dialog-CG-cCFkg.es.js.map +0 -1
  587. package/dist/chunks/dialog-CNZGNU5Q.cjs.js +0 -2
  588. package/dist/chunks/dialog-CNZGNU5Q.cjs.js.map +0 -1
  589. package/dist/chunks/image-BAqoLZQB.cjs.js +0 -2
  590. package/dist/chunks/index-x9OhLGGf.cjs.js +0 -2
  591. package/dist/chunks/menu-C41LRy4b.cjs.js +0 -2
  592. package/dist/chunks/provider-BzZZw3fF.cjs.js +0 -16
  593. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +0 -1
  594. package/dist/chunks/provider-DxFdjgyb.es.js.map +0 -1
  595. package/dist/chunks/select-IUEop3i7.cjs.js +0 -2
  596. package/dist/chunks/tag-group-BY7yGmmv.es.js.map +0 -1
  597. package/dist/chunks/tag-group-DXKC_JuG.cjs.js +0 -2
  598. package/dist/chunks/tag-group-DXKC_JuG.cjs.js.map +0 -1
  599. package/dist/chunks/tooltip-BFuuQNa4.cjs.js +0 -2
  600. package/dist/chunks/tooltip-BFuuQNa4.cjs.js.map +0 -1
  601. package/dist/chunks/tooltip-BpUbO0NA.es.js +0 -274
  602. package/dist/chunks/tooltip-BpUbO0NA.es.js.map +0 -1
  603. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js +0 -2
  604. package/dist/chunks/useDateFormatter-BqJA667a.es.js.map +0 -1
  605. package/dist/chunks/useDateFormatter-Dq2Ly1Je.cjs.js.map +0 -1
  606. package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
  607. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
  608. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"badge-HHzfG1BI.cjs.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","jsx","mergeProps"],"mappings":"oRAMaA,EAAcC,EAAAA,aAAa,CACtC,UAAW,eAGX,KAAM,CACJ,QAAS,cACT,WAAY,SACZ,aAAc,MACd,eAAgB,SAChB,WAAY,SACZ,cAAe,SACf,GAAI,KACJ,WAAY,MACZ,gBAAiB,iBACjB,MAAO,kBACP,EAAG,OACH,WAAY,OACZ,MAAO,CACL,WAAY,GAAA,CACd,EAIF,SAAU,CACR,KAAM,CACJ,MAAO,CACL,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,OACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,CACF,CACF,EAIF,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,EClEK,CAAE,YAAAC,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQH,EAAa,EAEtDI,EAAYF,EAA6C,MAAM,ECM/DG,EAASC,GAAsB,CAC1C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,SAAAC,EAAU,GAAGC,GAASJ,EAE/CK,EAAWC,EAAAA,OAAwB,IAAI,EACvCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUJ,CAAY,CAAC,EAEpDS,EAAcR,GAAM,OAE1B,OACES,MAACb,EAAA,CAAU,GAAIY,EAAc,GAAGE,4CAAWR,EAAM,CAAE,IAAAG,EAAK,EACrD,SAAAJ,CAAA,CACH,CAEJ,EAEAJ,EAAM,YAAc"}
1
+ {"version":3,"file":"badge-BjhZ-byo.cjs.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","jsx","mergeProps"],"mappings":"oRAMaA,EAAcC,EAAAA,aAAa,CACtC,UAAW,eAGX,KAAM,CACJ,QAAS,cACT,WAAY,SACZ,aAAc,MACd,eAAgB,SAChB,WAAY,SACZ,cAAe,SACf,GAAI,KACJ,WAAY,MACZ,gBAAiB,iBACjB,MAAO,kBACP,EAAG,OACH,WAAY,OACZ,MAAO,CACL,WAAY,GAAA,CACd,EAIF,SAAU,CACR,KAAM,CACJ,MAAO,CACL,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,OACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,CACF,CACF,EAIF,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,EClEK,CAAE,YAAAC,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQH,EAAa,EAEtDI,EAAYF,EAA6C,MAAM,ECM/DG,EAASC,GAAsB,CAC1C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,SAAAC,EAAU,GAAGC,GAASJ,EAE/CK,EAAWC,EAAAA,OAAwB,IAAI,EACvCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUJ,CAAY,CAAC,EAEpDS,EAAcR,GAAM,OAE1B,OACES,MAACb,EAAA,CAAU,GAAIY,EAAc,GAAGE,4CAAWR,EAAM,CAAE,IAAAG,EAAK,EACrD,SAAAJ,CAAA,CACH,CAEJ,EAEAJ,EAAM,YAAc"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { useRef as c } from "react";
3
3
  import { d as f } from "./config-ufbQ08Vi.es.js";
4
- import { c as p } from "./create-recipe-context-i2odau3L.es.js";
4
+ import { c as p } from "./create-recipe-context-CrNaylZN.es.js";
5
5
  import { mergeRefs as l } from "@chakra-ui/react";
6
6
  import { $ as d } from "./useObjectRef-CaJ5pgjX.es.js";
7
7
  import { $ as m } from "./mergeProps-B_9syxhT.es.js";
@@ -75,4 +75,4 @@ b.displayName = "Badge";
75
75
  export {
76
76
  b as B
77
77
  };
78
- //# sourceMappingURL=badge-C2elCKPp.es.js.map
78
+ //# sourceMappingURL=badge-Cg7jASs5.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge-C2elCKPp.es.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA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,KAAM,QAGK,GAAGS,EAAWP,GAAM,EAAE,KAAAG,GAAK,GACrD,UAAAJ,EAAA,CACH;AAEJ;AAEAJ,EAAM,cAAc;"}
1
+ {"version":3,"file":"badge-Cg7jASs5.es.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react/styled-system\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,IAAI;AAAA,IACJ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,OAAO;AAAA,IACP,GAAG;AAAA,IACH,YAAY;AAAA,IACZ,OAAO;AAAA,MACL,YAAY;AAAA,IAAA;AAAA,EACd;AAAA;AAAA,EAIF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,MAEF,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,MAEF,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,IAAI;AAAA,QACJ,OAAO;AAAA,UACL,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,IACF;AAAA,EACF;AAAA;AAAA,EAIF,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GClEK,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQH,GAAa,GAEtDI,IAAY,gBAAAF,EAA6C,MAAM,GCM/DG,IAAQ,CAACC,MAAsB;AAC1C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,UAAAC,GAAU,GAAGC,MAASJ,GAE/CK,IAAWC,EAAwB,IAAI,GACvCC,IAAMC,EAAaC,EAAUJ,GAAUJ,CAAY,CAAC;AAI1D,SACE,gBAAAS,EAACZ,GAAA,EAAU,IAHOI,KAAM,QAGK,GAAGS,EAAWP,GAAM,EAAE,KAAAG,GAAK,GACrD,UAAAJ,EAAA,CACH;AAEJ;AAEAJ,EAAM,cAAc;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { c as e } from "./factory-BpxiKxSs.es.js";
2
+ import { c as e } from "./factory-DmIX2puY.es.js";
3
3
  const o = /* @__PURE__ */ e("div");
4
4
  o.displayName = "Box";
5
5
  const m = (r) => {
@@ -10,4 +10,4 @@ m.displayName = "Box";
10
10
  export {
11
11
  m as B
12
12
  };
13
- //# sourceMappingURL=box-C8731OYq.es.js.map
13
+ //# sourceMappingURL=box-BK_2R49p.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"box-C8731OYq.es.js","sources":["../../../../node_modules/.pnpm/@chakra-ui+react@3.25.0_@emotion+react@11.14.0_@types+react@19.1.8_react@19.1.0__react-_080bab95896e407042c07bd6c96a3f79/node_modules/@chakra-ui/react/dist/esm/components/box/index.js","../../src/components/box/box.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Box = chakra(\"div\");\nBox.displayName = \"Box\";\n\nexport { Box };\n","import { type HTMLChakraProps } from \"@chakra-ui/react/styled-system\";\nimport { Box as ChakraBox } from \"@chakra-ui/react/box\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","chakra","props","ref","restProps","jsx","ChakraBox"],"mappings":";;AAIA,MAAMA,IAAM,gBAAAC,EAAO,KAAK;AACxBD,EAAI,cAAc;ACUX,MAAMA,IAAM,CAACE,MAAoB;AACtC,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACC,GAAA,EAAU,KAAAH,GAAW,GAAGC,EAAA,CAAW;AAC7C;AAEAJ,EAAI,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"box-BK_2R49p.es.js","sources":["../../../../node_modules/.pnpm/@chakra-ui+react@3.26.0_@emotion+react@11.14.0_@types+react@19.1.12_react@19.1.1__react_cde2bdb0fef9fb736bd8b62efad0d89e/node_modules/@chakra-ui/react/dist/esm/components/box/index.js","../../src/components/box/box.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Box = chakra(\"div\");\nBox.displayName = \"Box\";\n\nexport { Box };\n","import { type HTMLChakraProps } from \"@chakra-ui/react/styled-system\";\nimport { Box as ChakraBox } from \"@chakra-ui/react/box\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","chakra","props","ref","restProps","jsx","ChakraBox"],"mappings":";;AAIA,MAAMA,IAAM,gBAAAC,EAAO,KAAK;AACxBD,EAAI,cAAc;ACUX,MAAMA,IAAM,CAACE,MAAoB;AACtC,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACC,GAAA,EAAU,KAAAH,GAAW,GAAGC,EAAA,CAAW;AAC7C;AAEAJ,EAAI,cAAc;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("react/jsx-runtime"),a=require("./factory-DlCuwIGL.cjs.js"),s=a.chakra("div");s.displayName="Box";const o=r=>{const{ref:e,...t}=r;return c.jsx(s,{ref:e,...t})};o.displayName="Box";exports.Box=o;
2
- //# sourceMappingURL=box-BPfqlznQ.cjs.js.map
1
+ "use strict";const c=require("react/jsx-runtime"),a=require("./factory-CVGqU9CD.cjs.js"),s=a.chakra("div");s.displayName="Box";const o=r=>{const{ref:e,...t}=r;return c.jsx(s,{ref:e,...t})};o.displayName="Box";exports.Box=o;
2
+ //# sourceMappingURL=box-BwCVnAwb.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"box-BPfqlznQ.cjs.js","sources":["../../../../node_modules/.pnpm/@chakra-ui+react@3.25.0_@emotion+react@11.14.0_@types+react@19.1.8_react@19.1.0__react-_080bab95896e407042c07bd6c96a3f79/node_modules/@chakra-ui/react/dist/esm/components/box/index.js","../../src/components/box/box.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Box = chakra(\"div\");\nBox.displayName = \"Box\";\n\nexport { Box };\n","import { type HTMLChakraProps } from \"@chakra-ui/react/styled-system\";\nimport { Box as ChakraBox } from \"@chakra-ui/react/box\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","chakra","props","ref","restProps","jsx","ChakraBox"],"mappings":"yFAIMA,EAAMC,EAAAA,OAAO,KAAK,EACxBD,EAAI,YAAc,MCUX,MAAMA,EAAOE,GAAoB,CACtC,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACC,EAAA,CAAU,IAAAH,EAAW,GAAGC,CAAA,CAAW,CAC7C,EAEAJ,EAAI,YAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"box-BwCVnAwb.cjs.js","sources":["../../../../node_modules/.pnpm/@chakra-ui+react@3.26.0_@emotion+react@11.14.0_@types+react@19.1.12_react@19.1.1__react_cde2bdb0fef9fb736bd8b62efad0d89e/node_modules/@chakra-ui/react/dist/esm/components/box/index.js","../../src/components/box/box.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { chakra } from '../../styled-system/factory.js';\n\nconst Box = chakra(\"div\");\nBox.displayName = \"Box\";\n\nexport { Box };\n","import { type HTMLChakraProps } from \"@chakra-ui/react/styled-system\";\nimport { Box as ChakraBox } from \"@chakra-ui/react/box\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\n/**\n * # Box\n *\n * A basic layout component that serves as a wrapper or container.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/layout/box}\n */\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","chakra","props","ref","restProps","jsx","ChakraBox"],"mappings":"yFAIMA,EAAMC,EAAAA,OAAO,KAAK,EACxBD,EAAI,YAAc,MCUX,MAAMA,EAAOE,GAAoB,CACtC,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACC,EAAA,CAAU,IAAAH,EAAW,GAAGC,CAAA,CAAW,CAC7C,EAEAJ,EAAI,YAAc","x_google_ignoreList":[0]}
@@ -1,15 +1,15 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { useRef as b } from "react";
3
- import { $ as l } from "./Button--gemnXF8.es.js";
3
+ import { $ as l } from "./Button-CNBS3n5a.es.js";
4
4
  import { $ } from "./utils-BkdW_cdL.es.js";
5
5
  import { mergeRefs as u } from "@chakra-ui/react";
6
6
  import { b as x } from "./button.recipe-D9e9Gh9L.es.js";
7
- import { b as P } from "./factory-BpxiKxSs.es.js";
7
+ import { b as P } from "./factory-DmIX2puY.es.js";
8
8
  import { s as R } from "./index-DRWeBbu8.es.js";
9
- import { c as h } from "./create-recipe-context-i2odau3L.es.js";
9
+ import { c as h } from "./create-recipe-context-CrNaylZN.es.js";
10
10
  import { $ as y } from "./useObjectRef-CaJ5pgjX.es.js";
11
11
  import { $ as B } from "./mergeProps-B_9syxhT.es.js";
12
- import { $ as v } from "./useButton-M3_syr-Y.es.js";
12
+ import { $ as v } from "./useButton-DAeSjgg9.es.js";
13
13
  const { withContext: w } = /* @__PURE__ */ h({
14
14
  recipe: x
15
15
  }), C = /* @__PURE__ */ w(
@@ -56,4 +56,4 @@ D.displayName = "Button";
56
56
  export {
57
57
  D as B
58
58
  };
59
- //# sourceMappingURL=button-_TqIjVy-.es.js.map
59
+ //# sourceMappingURL=button-CXRRo1Zo.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-_TqIjVy-.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":";;;;;;;;;;;;AA2BA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GClCaK,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA,GAGIS,IAAiBC,EAAWP,GAAcI,GAAa;AAAA,IAC3D,IAAAb;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAQ;AAAA,IAAC1B;AAAA,IAAA;AAAA,MACC,KAAAe;AAAA,MACC,GAAGS;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAb;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;"}
1
+ {"version":3,"file":"button-CXRRo1Zo.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":";;;;;;;;;;;;AA2BA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GClCaK,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA,GAGIS,IAAiBC,EAAWP,GAAcI,GAAa;AAAA,IAC3D,IAAAb;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAQ;AAAA,IAAC1B;AAAA,IAAA;AAAA,MACC,KAAAe;AAAA,MACC,GAAGS;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAb;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";const b=require("react/jsx-runtime"),p=require("react"),$=require("./Button-Bh-FLo_8.cjs.js"),q=require("./utils-BHdR5Nww.cjs.js"),x=require("@chakra-ui/react"),R=require("./button.recipe-ClPhJ93N.cjs.js"),P=require("./factory-DlCuwIGL.cjs.js"),m=require("./index-COhQ_99G.cjs.js"),y=require("./create-recipe-context-D0_lCuqq.cjs.js"),B=require("./useObjectRef-dXOJdONs.cjs.js"),h=require("./mergeProps-BA5Cwf5w.cjs.js"),C=require("./useButton-C8n_NtBu.cjs.js"),{withContext:j}=y.createRecipeContext({recipe:R.buttonRecipe}),v=j("button",{defaultProps:{type:"button"},shouldForwardProp(e,o){const t=!o?.includes(e)&&!m.system.isValidProperty(e);return P.isPropValid(e)&&t&&!e.includes("onPress")}}),i=e=>{const{ref:o,as:t,asChild:n,children:u,...a}=e,d=p.useRef(null),r=B.$df56164dff5785e2$export$4338b53315abf666(x.mergeRefs(d,o)),[s]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(a,r,$.$d2b4bc8c273e7be6$export$24d547caef80ccd1),f=t||(n?"a":"button"),{buttonProps:l}=C.$701a24aa0da5b062$export$ea18c227d4417cc3({...s,elementType:f},r),c=h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,l,{as:t,asChild:n,slot:s.slot||void 0});return b.jsx(v,{ref:r,...c,"aria-disabled":c.isDisabled||void 0,"data-disabled":c.isDisabled||void 0,children:u})};i.displayName="Button";exports.Button=i;
2
- //# sourceMappingURL=button-CtWoT2k5.cjs.js.map
1
+ "use strict";const b=require("react/jsx-runtime"),p=require("react"),$=require("./Button-BtJHe9xY.cjs.js"),q=require("./utils-BHdR5Nww.cjs.js"),x=require("@chakra-ui/react"),R=require("./button.recipe-ClPhJ93N.cjs.js"),P=require("./factory-CVGqU9CD.cjs.js"),m=require("./index-COhQ_99G.cjs.js"),y=require("./create-recipe-context-bXYFTZLs.cjs.js"),B=require("./useObjectRef-dXOJdONs.cjs.js"),h=require("./mergeProps-BA5Cwf5w.cjs.js"),C=require("./useButton-BgBfaV_L.cjs.js"),{withContext:j}=y.createRecipeContext({recipe:R.buttonRecipe}),v=j("button",{defaultProps:{type:"button"},shouldForwardProp(e,o){const t=!o?.includes(e)&&!m.system.isValidProperty(e);return P.isPropValid(e)&&t&&!e.includes("onPress")}}),i=e=>{const{ref:o,as:t,asChild:n,children:u,...a}=e,d=p.useRef(null),r=B.$df56164dff5785e2$export$4338b53315abf666(x.mergeRefs(d,o)),[s]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(a,r,$.$d2b4bc8c273e7be6$export$24d547caef80ccd1),f=t||(n?"a":"button"),{buttonProps:l}=C.$701a24aa0da5b062$export$ea18c227d4417cc3({...s,elementType:f},r),c=h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,l,{as:t,asChild:n,slot:s.slot||void 0});return b.jsx(v,{ref:r,...c,"aria-disabled":c.isDisabled||void 0,"data-disabled":c.isDisabled||void 0,children:u})};i.displayName="Button";exports.Button=i;
2
+ //# sourceMappingURL=button-DYpzmnga.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-CtWoT2k5.cjs.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":"2dA2BM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBI,EAAMC,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASD,CAAI,GAAK,CAACG,EAAAA,OAAO,gBAAgBH,CAAI,EAC9D,OAAOI,EAAAA,YAAkBJ,CAAI,GAAKE,GAAa,CAACF,EAAK,SAAS,SAAS,CACzE,CAAA,CAEJ,EClCaK,EAAUC,GAAuB,CAC5C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGpD,CAACU,CAAY,EAAIC,EAAAA,0CAAgBP,EAAMG,EAAKK,EAAAA,yCAAa,EAKzDC,EAAcZ,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAY,GAAgBC,EAAAA,0CACtB,CACE,GAAGL,EACH,YAAAG,CAAA,EAEFN,CAAA,EAGIS,EAAiBC,EAAAA,0CAAWP,EAAcI,EAAa,CAC3D,GAAAb,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EAED,OACEQ,EAAAA,IAAC1B,EAAA,CACC,IAAAe,EACC,GAAGS,EACJ,gBAAeA,EAAe,YAAc,OAC5C,gBAAeA,EAAe,YAAc,OAE3C,SAAAb,CAAA,CAAA,CAGP,EAGAL,EAAO,YAAc"}
1
+ {"version":3,"file":"button-DYpzmnga.cjs.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={ref}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx"],"mappings":"2dA2BM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBI,EAAMC,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASD,CAAI,GAAK,CAACG,EAAAA,OAAO,gBAAgBH,CAAI,EAC9D,OAAOI,EAAAA,YAAkBJ,CAAI,GAAKE,GAAa,CAACF,EAAK,SAAS,SAAS,CACzE,CAAA,CAEJ,EClCaK,EAAUC,GAAuB,CAC5C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGpD,CAACU,CAAY,EAAIC,EAAAA,0CAAgBP,EAAMG,EAAKK,EAAAA,yCAAa,EAKzDC,EAAcZ,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAY,GAAgBC,EAAAA,0CACtB,CACE,GAAGL,EACH,YAAAG,CAAA,EAEFN,CAAA,EAGIS,EAAiBC,EAAAA,0CAAWP,EAAcI,EAAa,CAC3D,GAAAb,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EAED,OACEQ,EAAAA,IAAC1B,EAAA,CACC,IAAAe,EACC,GAAGS,EACJ,gBAAeA,EAAe,YAAc,OAC5C,gBAAeA,EAAe,YAAc,OAE3C,SAAAb,CAAA,CAAA,CAGP,EAGAL,EAAO,YAAc"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-BI5vqfiY.cjs.js"),q=require("./create-slot-recipe-context-HIF51Igr.cjs.js"),$=require("react"),c=require("./useDateFormatter-Dq2Ly1Je.cjs.js"),p=require("./utils-BHdR5Nww.cjs.js"),v=require("./box-BPfqlznQ.cjs.js"),S=require("./context-D0_cRaDZ.cjs.js"),h=require("./icon-button-Dqhm4rBI.cjs.js"),j=require("./text-hUMahKuA.cjs.js"),y=require("./stack-B6PqFPMh.cjs.js"),D=require("./visually-hidden-Bh-G5QHv.cjs.js"),u=require("@commercetools/nimbus-icons"),P=require("./flex-BhVeeItQ.cjs.js"),R=require("./index-COhQ_99G.cjs.js"),I=require("./extractStyleProps-yFm0qaXg.cjs.js"),C=require("./Button-Bh-FLo_8.cjs.js"),g=require("./Text-BWSfeB9p.cjs.js"),T=require("./use-recipe-BZ_iqCkN.cjs.js"),{withProvider:B,withContext:s}=q.createSlotRecipeContext({key:"calendar"}),H=B("div","root"),A=s("div","header"),F=s("div","grids"),G=s("div","monthTitle"),L=s("table","grid"),k=s("thead","gridHeader"),M=s("th","headerCell"),N=s("tbody","gridBody"),z=s("td","bodyCell"),K=()=>{const{locale:d}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(F,{children:Array.from({length:r},(m,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(v.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(G,{children:f}),e.jsx(L,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(M,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const w=x.compare(o)===0;return e.jsx(z,{asChild:!0,"data-today":w,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},V=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(A,{children:e.jsxs(P.Flex,{children:[e.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[e.jsx(D.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"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(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(v.Box,{flexGrow:"1"}),e.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"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(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},W=({children:d})=>{const{locale:n}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=$.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=$.useContext(g.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},m=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:m},monthRange:{children:l},year:{children:b}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[g.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},_=d=>{const n=T.useRecipe({recipe:R.calendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=I.extractStyleProps(r);return e.jsx(H,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...i,children:e.jsxs(W,{children:[e.jsx(V,{}),e.jsx(K,{})]})})})};exports.Calendar=_;
2
- //# sourceMappingURL=calendar-DFhIC3YS.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-BaW6t55l.cjs.js"),q=require("./create-slot-recipe-context-CimocFDH.cjs.js"),$=require("react"),c=require("./useDateFormatter-CS19Cch2.cjs.js"),p=require("./utils-BHdR5Nww.cjs.js"),v=require("./box-BwCVnAwb.cjs.js"),S=require("./context-OoV8SSWX.cjs.js"),h=require("./icon-button-1MQYEWVd.cjs.js"),j=require("./text-Dg1sFCuC.cjs.js"),y=require("./stack-BG0j9HvT.cjs.js"),D=require("./visually-hidden-Bh-G5QHv.cjs.js"),u=require("@commercetools/nimbus-icons"),P=require("./flex-yqydM5z_.cjs.js"),R=require("./index-COhQ_99G.cjs.js"),I=require("./extractStyleProps-yFm0qaXg.cjs.js"),C=require("./Button-BtJHe9xY.cjs.js"),g=require("./Text-BWSfeB9p.cjs.js"),T=require("./use-recipe-pbWWLWIq.cjs.js"),{withProvider:B,withContext:s}=q.createSlotRecipeContext({key:"calendar"}),H=B("div","root"),A=s("div","header"),F=s("div","grids"),G=s("div","monthTitle"),L=s("table","grid"),k=s("thead","gridHeader"),M=s("th","headerCell"),N=s("tbody","gridBody"),z=s("td","bodyCell"),K=()=>{const{locale:d}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(F,{children:Array.from({length:r},(m,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(v.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(G,{children:f}),e.jsx(L,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(M,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(N,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const w=x.compare(o)===0;return e.jsx(z,{asChild:!0,"data-today":w,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},V=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(A,{children:e.jsxs(P.Flex,{children:[e.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[e.jsx(D.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"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(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(v.Box,{flexGrow:"1"}),e.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"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(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},W=({children:d})=>{const{locale:n}=S.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=$.useContext(C.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=$.useContext(g.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},m=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:m},monthRange:{children:l},year:{children:b}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[g.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},_=d=>{const n=T.useRecipe({recipe:R.calendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=I.extractStyleProps(r);return e.jsx(H,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...i,children:e.jsxs(W,{children:[e.jsx(V,{}),e.jsx(K,{})]})})})};exports.Calendar=_;
2
+ //# sourceMappingURL=calendar-D7q7B1ej.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-DFhIC3YS.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\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\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\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\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\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 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 { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\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 = useRecipe({ recipe: calendarSlotRecipe });\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","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"+vBAUM,CAAE,aAAAA,EAAc,YAAAC,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GAAGiE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAA5C,EAAAA,IAAC+C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAACpB,EAAA,CACC,SAAA,CAAAzB,EAAAA,IAACe,EAAA,EAAe,QACf7B,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
1
+ {"version":3,"file":"calendar-D7q7B1ej.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\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\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\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\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\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 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 { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\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 = useRecipe({ recipe: calendarSlotRecipe });\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","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"+vBAUM,CAAE,aAA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vB,EAAA,CAAkB,GAAGiE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAA5C,EAAAA,IAAC+C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAACpB,EAAA,CACC,SAAA,CAAAzB,EAAAA,IAACe,EAAA,EAAe,QACf7B,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
@@ -1,22 +1,22 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { $ as S, a as I, b as F, c as G, d as H, e as j, f as w, g as A, h as B } from "./Heading-sepFdCCa.es.js";
3
- import { c as L } from "./create-slot-recipe-context-DBNItnlK.es.js";
2
+ import { $ as S, a as I, b as F, c as G, d as H, e as j, f as w, g as A, h as B } from "./Heading-DEfy_f01.es.js";
3
+ import { c as L } from "./create-slot-recipe-context--T0CaFjW.es.js";
4
4
  import { useContext as p } from "react";
5
- import { $ as M, a as i } from "./useDateFormatter-BqJA667a.es.js";
5
+ import { $ as M, a as i } from "./useDateFormatter-C7Kxzwro.es.js";
6
6
  import { c as D, d as N } from "./utils-BkdW_cdL.es.js";
7
- import { B as P } from "./box-C8731OYq.es.js";
8
- import { $ as R } from "./context-Pt-0ojuK.es.js";
9
- import { I as h } from "./icon-button-oIKucbza.es.js";
10
- import { T as u } from "./text-B2wziCK6.es.js";
11
- import { S as x } from "./stack-CBx-c8hI.es.js";
7
+ import { B as P } from "./box-BK_2R49p.es.js";
8
+ import { $ as R } from "./context-R4YUlO9Y.es.js";
9
+ import { I as h } from "./icon-button-Bp92vS0I.es.js";
10
+ import { T as u } from "./text-DSjt3Sqv.es.js";
11
+ import { S as x } from "./stack-QzuqKTKb.es.js";
12
12
  import { V as z } from "./visually-hidden-BluyWhUI.es.js";
13
13
  import { KeyboardArrowLeft as y, KeyboardArrowRight as C } from "@commercetools/nimbus-icons";
14
- import { F as k } from "./flex-B81RbgfK.es.js";
14
+ import { F as k } from "./flex-BFC_f5BH.es.js";
15
15
  import { h as V } from "./index-DRWeBbu8.es.js";
16
16
  import { e as K } from "./extractStyleProps-DX5GBd9K.es.js";
17
- import { $ as g } from "./Button--gemnXF8.es.js";
17
+ import { $ as g } from "./Button-CNBS3n5a.es.js";
18
18
  import { $ as v } from "./Text-DOcU1ycg.es.js";
19
- import { u as W } from "./use-recipe-CR4W7Dne.es.js";
19
+ import { u as W } from "./use-recipe-DuU8En0C.es.js";
20
20
  const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
21
21
  key: "calendar"
22
22
  }), q = /* @__PURE__ */ _("div", "root"), E = /* @__PURE__ */ n("div", "header"), J = /* @__PURE__ */ n("div", "grids"), O = /* @__PURE__ */ n("div", "monthTitle"), Q = /* @__PURE__ */ n("table", "grid"), U = /* @__PURE__ */ n("thead", "gridHeader"), X = /* @__PURE__ */ n("th", "headerCell"), Y = /* @__PURE__ */ n("tbody", "gridBody"), Z = /* @__PURE__ */ n("td", "bodyCell"), ee = () => {
@@ -184,4 +184,4 @@ const { withProvider: _, withContext: n } = /* @__PURE__ */ L({
184
184
  export {
185
185
  ve as C
186
186
  };
187
- //# sourceMappingURL=calendar-Cgm2jctu.es.js.map
187
+ //# sourceMappingURL=calendar-DAPG3st4.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-Cgm2jctu.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\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\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\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\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\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 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 { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\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 = useRecipe({ recipe: calendarSlotRecipe });\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","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAmB,gBAAAH,EAG9B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAGJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAGHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAGRM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAGJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAGVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAGPS,IAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAGRU,IAAmB,gBAAAV,EAG9B,MAAM,UAAU,GC5CLW,KAAgB,MAAM;AACjC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAUC,EAAkBC,CAAe,GAC3CC,IAAgBC,EAAWC,CAAoB,GAC/CC,IAAqBN,GAAS,iBAAiB,UAAU,GACzDO,IAAYC,EAAMC,GAAkB,GACpCC,IAAkBJ,IAA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GE,GAAY,SAAO,IACxD,UAAA,gBAAA5C,EAAC+C,GAAA,EAAY,GAAGF,GACd,4BAACpB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAzB,EAACe,IAAA,EAAe;AAAA,sBACf7B,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"calendar-DAPG3st4.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"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 {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\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\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\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\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\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 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 { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\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 = useRecipe({ recipe: calendarSlotRecipe });\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","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAUA,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ACN;AAAA,UACER;AAAAA,UACA;AAAA,YACE,GAAGD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAkB,YACzB,WAAWA,IACPA,EAAc,QACd,CAAA;AAAA,cACJ,GAAGI;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,QAEF;AAAA,UACED;AAAAA,UACA;AAAA,YACE,GAAGD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAgB,YACvB,WAAWA,IACPA,EAAY,QACZ,CAAA;AAAA,cACJ,GAAGM;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,MACF;AAAA,MAGD,UAAAT;AAAA,IAAA;AAAA,EAAA;AAGP,GCtFaW,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAoB,GACjD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAK,GAC9D,CAACM,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAA3C,EAACvB,GAAA,EAAkB,GAAGiE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAA5C,EAAC+C,GAAA,EAAY,GAAGF,GACd,4BAACpB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAzB,EAACe,IAAA,EAAe;AAAA,sBACf7B,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
2
  import { createContext as R, useState as l, useMemo as P, useContext as i, useEffect as u } from "react";
3
3
  import { a as h } from "./config-ufbQ08Vi.es.js";
4
- import { c as H } from "./create-slot-recipe-context-DBNItnlK.es.js";
5
- import { S } from "./stack-CBx-c8hI.es.js";
4
+ import { c as H } from "./create-slot-recipe-context--T0CaFjW.es.js";
5
+ import { S } from "./stack-QzuqKTKb.es.js";
6
6
  import { $ as y } from "./useFocusRing-updnkDQg.es.js";
7
7
  import { $ as N } from "./mergeProps-B_9syxhT.es.js";
8
8
  const k = /* @__PURE__ */ h({
@@ -136,4 +136,4 @@ export {
136
136
  C as b,
137
137
  p as c
138
138
  };
139
- //# sourceMappingURL=card-R8oaAKgo.es.js.map
139
+ //# sourceMappingURL=card-DX8r4prk.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-R8oaAKgo.es.js","sources":["../../src/components/card/card.recipe.tsx","../../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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\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 = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\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\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\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 {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\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 {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</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, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</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, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;;AAMO,MAAMA,IAAa,gBAAAC,EAAiB;AAAA,EACzC,OAAO,CAAC,QAAQ,UAAU,SAAS;AAAA,EAEnC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,kBAAkB;AAAA,IAAA;AAAA,EACpB;AAAA,EAGF,UAAU;AAAA,IACR,aAAa;AAAA,MACX,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,IACF;AAAA,IAGF,aAAa;AAAA,MACX,MAAM,CAAA;AAAA,MACN,UAAU;AAAA,QACR,MAAM;AAAA,UACJ,QAAQ;AAAA,UACR,aAAa;AAAA,QAAA;AAAA,MACf;AAAA,IACF;AAAA,IAEF,WAAW;AAAA,MACT,MAAM,CAAA;AAAA,MACN,UAAU;AAAA,QACR,MAAM;AAAA,UACJ,QAAQ;AAAA,QAAA;AAAA,MACV;AAAA,IACF;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,QACP,MAAM;AAAA,UACJ,iBAAiB;AAAA,QAAA;AAAA,MACnB;AAAA,MAEF,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,iBAAiB;AAAA,QAAA;AA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,SAAAuB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAR,EAACS,GAAA,EAAgB,GAAGrB,GAAQ,UAAAF,GAAS;AAGvC,aAAAmB,EAAQ,UAAUG,CAAW,GAGtB,MAAMH,EAAQ,UAAU,IAAI;AAAA,IACrC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AACAN,EAAW,cAAc;AClBlB,MAAMC,IAAc,CAAC,EAAE,UAAAG,GAAU,GAAGE,QAA8B;AACvE,QAAMiB,IAAUC,EAAWtB,CAAW;AAEtC,SAAAuB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAR,EAACU,GAAA,EAAiB,GAAGtB,GAAQ,UAAAF,GAAS;AAGxC,aAAAmB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AAEAL,EAAY,cAAc;ACtBnB,MAAM4B,IAAO;AAAA,EAClB,MAAM9B;AAAA,EACN,QAAQC;AAAA,EACR,SAASC;AACX;"}
1
+ {"version":3,"file":"card-DX8r4prk.es.js","sources":["../../src/components/card/card.recipe.tsx","../../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 { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react/styled-system\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\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 = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\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\n *\n * A versatile container component presents self-contained information\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n */\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\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 {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\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 {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</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, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</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, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;;AAMO,MAAMA,IAAa,gBAAAC,EAAiB;AAAA,EACzC,OAAO,CAAC,QAAQ,UAAU,SAAS;AAAA,EAEnC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,kBAAkB;AAAA,IAAA;AAAA,EACpB;AAAA,EAGF,UAAU;AAAA,IACR,aAAa;AAAA,MACX,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;AAAA,QACF,MAAM;AAAA,UACJ,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAEF,IAAI;A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