@commercetools/nimbus 0.0.0-canary-20251203100745 → 0.0.0-canary-20251203143009

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 (497) hide show
  1. package/dist/chunks/{Button-CmpJG0ec.es.js → Button-BjcDZ5eb.es.js} +7 -7
  2. package/dist/chunks/{Button-CmpJG0ec.es.js.map → Button-BjcDZ5eb.es.js.map} +1 -1
  3. package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js → CollectionBuilder-BnYe2z4W.es.js} +2 -2
  4. package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js.map → CollectionBuilder-BnYe2z4W.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-Bpk0AwB2.es.js → DateField-C5JgBb30.es.js} +21 -21
  6. package/dist/chunks/{DateField-Bpk0AwB2.es.js.map → DateField-C5JgBb30.es.js.map} +1 -1
  7. package/dist/chunks/{DatePicker-CUW1A5A8.es.js → DatePicker-9m2POezC.es.js} +17 -17
  8. package/dist/chunks/{DatePicker-CUW1A5A8.es.js.map → DatePicker-9m2POezC.es.js.map} +1 -1
  9. package/dist/chunks/{Dialog-BYVU-i0Y.es.js → Dialog-DcnmO0xr.es.js} +24 -24
  10. package/dist/chunks/{Dialog-BYVU-i0Y.es.js.map → Dialog-DcnmO0xr.es.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-bj_mamFe.es.js → FocusScope-CqEZq7sr.es.js} +36 -36
  12. package/dist/chunks/{FocusScope-bj_mamFe.es.js.map → FocusScope-CqEZq7sr.es.js.map} +1 -1
  13. package/dist/chunks/{Group-C9jsb9_m.es.js → Group-BQc9LuMT.es.js} +8 -8
  14. package/dist/chunks/{Group-C9jsb9_m.es.js.map → Group-BQc9LuMT.es.js.map} +1 -1
  15. package/dist/chunks/{Header-CNoClAau.es.js → Header-CliQVNVa.es.js} +5 -5
  16. package/dist/chunks/{Header-CNoClAau.es.js.map → Header-CliQVNVa.es.js.map} +1 -1
  17. package/dist/chunks/{Heading-D804NNml.es.js → Heading-D7Ut7eK3.es.js} +14 -14
  18. package/dist/chunks/{Heading-D804NNml.es.js.map → Heading-D7Ut7eK3.es.js.map} +1 -1
  19. package/dist/chunks/{Input-aKSXZBAh.es.js → Input-Cmg08oRP.es.js} +5 -5
  20. package/dist/chunks/{Input-aKSXZBAh.es.js.map → Input-Cmg08oRP.es.js.map} +1 -1
  21. package/dist/chunks/{Label-Bu5lTMzy.es.js → Label-DIseLESi.es.js} +2 -2
  22. package/dist/chunks/{Label-Bu5lTMzy.es.js.map → Label-DIseLESi.es.js.map} +1 -1
  23. package/dist/chunks/{ListBox-DYbGAoet.es.js → ListBox-CcSs4yTw.es.js} +15 -15
  24. package/dist/chunks/{ListBox-DYbGAoet.es.js.map → ListBox-CcSs4yTw.es.js.map} +1 -1
  25. package/dist/chunks/{Modal-2TttSPy4.es.js → Modal-3QPNDzpi.es.js} +7 -7
  26. package/dist/chunks/{Modal-2TttSPy4.es.js.map → Modal-3QPNDzpi.es.js.map} +1 -1
  27. package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js → OverlayArrow-BIjbCSXk.es.js} +2 -2
  28. package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js.map → OverlayArrow-BIjbCSXk.es.js.map} +1 -1
  29. package/dist/chunks/{ProgressBar-DogfCeuX.es.js → ProgressBar-Dm2Ge45l.es.js} +5 -5
  30. package/dist/chunks/{ProgressBar-DogfCeuX.es.js.map → ProgressBar-Dm2Ge45l.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-CXicxYqF.es.js → SelectionManager-B0Cb1kHW.es.js} +10 -10
  32. package/dist/chunks/{SelectionManager-CXicxYqF.es.js.map → SelectionManager-B0Cb1kHW.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-WCa1iR4U.es.js → Separator-DP89PKAS.es.js} +4 -4
  34. package/dist/chunks/{Separator-WCa1iR4U.es.js.map → Separator-DP89PKAS.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-JHqAZ7HD.es.js → TextArea-CXEdUjgW.es.js} +5 -5
  36. package/dist/chunks/{TextArea-JHqAZ7HD.es.js.map → TextArea-CXEdUjgW.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-B-feHlsu.es.js → ToggleButton-BqW-X6iJ.es.js} +7 -7
  38. package/dist/chunks/{ToggleButton-B-feHlsu.es.js.map → ToggleButton-BqW-X6iJ.es.js.map} +1 -1
  39. package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js → VisuallyHidden-BLRzeMsq.es.js} +3 -3
  40. package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js.map → VisuallyHidden-BLRzeMsq.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-_4Vtr930.es.js → accordion-BacJkt5n.es.js} +2 -2
  42. package/dist/chunks/{accordion-_4Vtr930.es.js.map → accordion-BacJkt5n.es.js.map} +1 -1
  43. package/dist/chunks/{accordion-B978Ssd8.cjs.js → accordion-qzbckNub.cjs.js} +2 -2
  44. package/dist/chunks/{accordion-B978Ssd8.cjs.js.map → accordion-qzbckNub.cjs.js.map} +1 -1
  45. package/dist/chunks/accordion.content-Cslx-S6p.cjs.js +2 -0
  46. package/dist/chunks/{accordion.content-Bd2PESBz.cjs.js.map → accordion.content-Cslx-S6p.cjs.js.map} +1 -1
  47. package/dist/chunks/{accordion.content-YkB30Nl0.es.js → accordion.content-SFS_lHjk.es.js} +23 -24
  48. package/dist/chunks/{accordion.content-YkB30Nl0.es.js.map → accordion.content-SFS_lHjk.es.js.map} +1 -1
  49. package/dist/chunks/{alert-_J_dHFj_.es.js → alert-CoJ8asOZ.es.js} +2 -2
  50. package/dist/chunks/{alert-_J_dHFj_.es.js.map → alert-CoJ8asOZ.es.js.map} +1 -1
  51. package/dist/chunks/{alert-55tm3vfU.cjs.js → alert-D6ENEy8f.cjs.js} +2 -2
  52. package/dist/chunks/{alert-55tm3vfU.cjs.js.map → alert-D6ENEy8f.cjs.js.map} +1 -1
  53. package/dist/chunks/badge-CgYpum7D.es.js +17 -0
  54. package/dist/chunks/{badge-DUiqk6w9.es.js.map → badge-CgYpum7D.es.js.map} +1 -1
  55. package/dist/chunks/{button-CvWz8q1N.cjs.js → button-CxL9YuuF.cjs.js} +2 -2
  56. package/dist/chunks/{button-CvWz8q1N.cjs.js.map → button-CxL9YuuF.cjs.js.map} +1 -1
  57. package/dist/chunks/{button-DTxnOPiN.es.js → button-DZew_Si4.es.js} +6 -6
  58. package/dist/chunks/{button-DTxnOPiN.es.js.map → button-DZew_Si4.es.js.map} +1 -1
  59. package/dist/chunks/{calendar-C0WVsTa4.es.js → calendar-CDVjB0zo.es.js} +9 -9
  60. package/dist/chunks/{calendar-C0WVsTa4.es.js.map → calendar-CDVjB0zo.es.js.map} +1 -1
  61. package/dist/chunks/{calendar-CMCE8As1.cjs.js → calendar-Dx5LLOml.cjs.js} +2 -2
  62. package/dist/chunks/{calendar-CMCE8As1.cjs.js.map → calendar-Dx5LLOml.cjs.js.map} +1 -1
  63. package/dist/chunks/{card-D9xReN37.cjs.js → card-DB6gUcAw.cjs.js} +2 -2
  64. package/dist/chunks/{card-D9xReN37.cjs.js.map → card-DB6gUcAw.cjs.js.map} +1 -1
  65. package/dist/chunks/{card-DSxEwCmQ.es.js → card-ydiSozha.es.js} +2 -2
  66. package/dist/chunks/{card-DSxEwCmQ.es.js.map → card-ydiSozha.es.js.map} +1 -1
  67. package/dist/chunks/{checkbox-DMpI_oaX.es.js → checkbox-DuPKJsWQ.es.js} +10 -10
  68. package/dist/chunks/{checkbox-DMpI_oaX.es.js.map → checkbox-DuPKJsWQ.es.js.map} +1 -1
  69. package/dist/chunks/{checkbox-CdXKptM4.cjs.js → checkbox-fwmjQ4Uk.cjs.js} +2 -2
  70. package/dist/chunks/{checkbox-CdXKptM4.cjs.js.map → checkbox-fwmjQ4Uk.cjs.js.map} +1 -1
  71. package/dist/chunks/{collapsible-motion-Dw8EugiR.es.js → collapsible-motion-B5YFRwO4.es.js} +5 -5
  72. package/dist/chunks/{collapsible-motion-Dw8EugiR.es.js.map → collapsible-motion-B5YFRwO4.es.js.map} +1 -1
  73. package/dist/chunks/{collapsible-motion-CA8uQuKZ.cjs.js → collapsible-motion-BiF9lLAN.cjs.js} +2 -2
  74. package/dist/chunks/{collapsible-motion-CA8uQuKZ.cjs.js.map → collapsible-motion-BiF9lLAN.cjs.js.map} +1 -1
  75. package/dist/chunks/{combobox-BMpAKWKs.es.js → combobox-BobLAXh8.es.js} +74 -74
  76. package/dist/chunks/{combobox-BMpAKWKs.es.js.map → combobox-BobLAXh8.es.js.map} +1 -1
  77. package/dist/chunks/{combobox-DPZmJZJF.cjs.js → combobox-CEyLEi9S.cjs.js} +2 -2
  78. package/dist/chunks/{combobox-DPZmJZJF.cjs.js.map → combobox-CEyLEi9S.cjs.js.map} +1 -1
  79. package/dist/chunks/{data-table-B5tlvmbJ.cjs.js → data-table-DpRmr71N.cjs.js} +2 -2
  80. package/dist/chunks/{data-table-B5tlvmbJ.cjs.js.map → data-table-DpRmr71N.cjs.js.map} +1 -1
  81. package/dist/chunks/{data-table-Ch0tFro2.es.js → data-table-uvxFiIVK.es.js} +37 -37
  82. package/dist/chunks/{data-table-Ch0tFro2.es.js.map → data-table-uvxFiIVK.es.js.map} +1 -1
  83. package/dist/chunks/{date-input-lsbLlxie.cjs.js → date-input-BDkIVUEJ.cjs.js} +2 -2
  84. package/dist/chunks/{date-input-lsbLlxie.cjs.js.map → date-input-BDkIVUEJ.cjs.js.map} +1 -1
  85. package/dist/chunks/{date-input-COUAItnm.es.js → date-input-C_dX1XXD.es.js} +4 -4
  86. package/dist/chunks/{date-input-COUAItnm.es.js.map → date-input-C_dX1XXD.es.js.map} +1 -1
  87. package/dist/chunks/{date-picker-B5ZR0GJ3.es.js → date-picker-Cq8qD5Ff.es.js} +14 -14
  88. package/dist/chunks/{date-picker-B5ZR0GJ3.es.js.map → date-picker-Cq8qD5Ff.es.js.map} +1 -1
  89. package/dist/chunks/{date-picker-JA1Mh2WY.cjs.js → date-picker-DODeu1jH.cjs.js} +2 -2
  90. package/dist/chunks/{date-picker-JA1Mh2WY.cjs.js.map → date-picker-DODeu1jH.cjs.js.map} +1 -1
  91. package/dist/chunks/{date-range-picker-CMhOBPtp.es.js → date-range-picker-Bf14iS4A.es.js} +14 -14
  92. package/dist/chunks/{date-range-picker-CMhOBPtp.es.js.map → date-range-picker-Bf14iS4A.es.js.map} +1 -1
  93. package/dist/chunks/{date-range-picker-yzo8osGE.cjs.js → date-range-picker-D1gUgq_6.cjs.js} +2 -2
  94. package/dist/chunks/{date-range-picker-yzo8osGE.cjs.js.map → date-range-picker-D1gUgq_6.cjs.js.map} +1 -1
  95. package/dist/chunks/{date-range-picker-field-UFUo2JuI.cjs.js → date-range-picker-field-Bvvmu7oL.cjs.js} +2 -2
  96. package/dist/chunks/{date-range-picker-field-UFUo2JuI.cjs.js.map → date-range-picker-field-Bvvmu7oL.cjs.js.map} +1 -1
  97. package/dist/chunks/{date-range-picker-field-DaoP69E2.es.js → date-range-picker-field-CqG7wwZc.es.js} +3 -3
  98. package/dist/chunks/{date-range-picker-field-DaoP69E2.es.js.map → date-range-picker-field-CqG7wwZc.es.js.map} +1 -1
  99. package/dist/chunks/{dialog-DNl_apyv.cjs.js → dialog-CS8h46ov.cjs.js} +2 -2
  100. package/dist/chunks/{dialog-DNl_apyv.cjs.js.map → dialog-CS8h46ov.cjs.js.map} +1 -1
  101. package/dist/chunks/{dialog-cV8_ifAL.es.js → dialog-DUZOjwNj.es.js} +7 -7
  102. package/dist/chunks/{dialog-cV8_ifAL.es.js.map → dialog-DUZOjwNj.es.js.map} +1 -1
  103. package/dist/chunks/{draggable-list-4w8RgF1w.cjs.js → draggable-list-CUcHb55R.cjs.js} +2 -2
  104. package/dist/chunks/{draggable-list-4w8RgF1w.cjs.js.map → draggable-list-CUcHb55R.cjs.js.map} +1 -1
  105. package/dist/chunks/{draggable-list-B6YVD64W.es.js → draggable-list-LtLBvlhK.es.js} +22 -22
  106. package/dist/chunks/{draggable-list-B6YVD64W.es.js.map → draggable-list-LtLBvlhK.es.js.map} +1 -1
  107. package/dist/chunks/{drawer-BcgvPugV.cjs.js → drawer-DZt4nA9C.cjs.js} +2 -2
  108. package/dist/chunks/{drawer-BcgvPugV.cjs.js.map → drawer-DZt4nA9C.cjs.js.map} +1 -1
  109. package/dist/chunks/{drawer-ByFci-Lp.es.js → drawer-YCoDb7TU.es.js} +8 -8
  110. package/dist/chunks/{drawer-ByFci-Lp.es.js.map → drawer-YCoDb7TU.es.js.map} +1 -1
  111. package/dist/chunks/{extract-style-props-CJjpdqym.es.js → extract-style-props-CIoUvqFb.es.js} +2 -2
  112. package/dist/chunks/{extract-style-props-CJjpdqym.es.js.map → extract-style-props-CIoUvqFb.es.js.map} +1 -1
  113. package/dist/chunks/{extract-style-props-DL4zPQSN.cjs.js → extract-style-props-DGdckd6P.cjs.js} +2 -2
  114. package/dist/chunks/{extract-style-props-DL4zPQSN.cjs.js.map → extract-style-props-DGdckd6P.cjs.js.map} +1 -1
  115. package/dist/chunks/{focusSafely-RvsgqoUt.es.js → focusSafely-Cwb0Tyy6.es.js} +3 -3
  116. package/dist/chunks/{focusSafely-RvsgqoUt.es.js.map → focusSafely-Cwb0Tyy6.es.js.map} +1 -1
  117. package/dist/chunks/{form-field-D36wdkEj.cjs.js → form-field-CozKmli4.cjs.js} +2 -2
  118. package/dist/chunks/{form-field-D36wdkEj.cjs.js.map → form-field-CozKmli4.cjs.js.map} +1 -1
  119. package/dist/chunks/{form-field-Po_Y_5wQ.es.js → form-field-Df4_JmSU.es.js} +4 -4
  120. package/dist/chunks/{form-field-Po_Y_5wQ.es.js.map → form-field-Df4_JmSU.es.js.map} +1 -1
  121. package/dist/chunks/{getScrollParent-DlqhSzBC.es.js → getScrollParent-MZgwmCKW.es.js} +2 -2
  122. package/dist/chunks/{getScrollParent-DlqhSzBC.es.js.map → getScrollParent-MZgwmCKW.es.js.map} +1 -1
  123. package/dist/chunks/{group-jGsHh1w7.es.js → group-CCBgdph2.es.js} +2 -2
  124. package/dist/chunks/{group-jGsHh1w7.es.js.map → group-CCBgdph2.es.js.map} +1 -1
  125. package/dist/chunks/{heading-CwsT9zp_.es.js → heading-nfjoR4vL.es.js} +2 -2
  126. package/dist/chunks/{heading-CwsT9zp_.es.js.map → heading-nfjoR4vL.es.js.map} +1 -1
  127. package/dist/chunks/{icon-button-ClTyaPhB.cjs.js → icon-button-BPzrehNJ.cjs.js} +2 -2
  128. package/dist/chunks/{icon-button-ClTyaPhB.cjs.js.map → icon-button-BPzrehNJ.cjs.js.map} +1 -1
  129. package/dist/chunks/{icon-button-Cnas4bnJ.es.js → icon-button-hZxuTfRy.es.js} +2 -2
  130. package/dist/chunks/{icon-button-Cnas4bnJ.es.js.map → icon-button-hZxuTfRy.es.js.map} +1 -1
  131. package/dist/chunks/{icon-toggle-button-3hAIS1Mt.es.js → icon-toggle-button-BtyMh4Ys.es.js} +2 -2
  132. package/dist/chunks/{icon-toggle-button-3hAIS1Mt.es.js.map → icon-toggle-button-BtyMh4Ys.es.js.map} +1 -1
  133. package/dist/chunks/{icon-toggle-button-B8ycCaqk.cjs.js → icon-toggle-button-DzoifEyi.cjs.js} +2 -2
  134. package/dist/chunks/{icon-toggle-button-B8ycCaqk.cjs.js.map → icon-toggle-button-DzoifEyi.cjs.js.map} +1 -1
  135. package/dist/chunks/{index-CmfW40Im.es.js → index-CqOsUykV.es.js} +185 -185
  136. package/dist/chunks/index-CqOsUykV.es.js.map +1 -0
  137. package/dist/chunks/{index-DIQn6o2R.cjs.js → index-DdyUbTzB.cjs.js} +3 -3
  138. package/dist/chunks/index-DdyUbTzB.cjs.js.map +1 -0
  139. package/dist/chunks/{kbd-B11Qoo4k.es.js → kbd-Bl5Ncm2d.es.js} +2 -2
  140. package/dist/chunks/{kbd-B11Qoo4k.es.js.map → kbd-Bl5Ncm2d.es.js.map} +1 -1
  141. package/dist/chunks/{link-Db65JZE6.es.js → link-BMUyXcmC.es.js} +9 -9
  142. package/dist/chunks/{link-Db65JZE6.es.js.map → link-BMUyXcmC.es.js.map} +1 -1
  143. package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js → loading-spinner-DF6c3rBM.es.js} +3 -3
  144. package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js.map → loading-spinner-DF6c3rBM.es.js.map} +1 -1
  145. package/dist/chunks/{localized-field-BqedmRuV.es.js → localized-field-BTtMYX2e.es.js} +25 -25
  146. package/dist/chunks/{localized-field-BqedmRuV.es.js.map → localized-field-BTtMYX2e.es.js.map} +1 -1
  147. package/dist/chunks/{localized-field-BudXks_7.cjs.js → localized-field-CKzOQS8a.cjs.js} +2 -2
  148. package/dist/chunks/{localized-field-BudXks_7.cjs.js.map → localized-field-CKzOQS8a.cjs.js.map} +1 -1
  149. package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js → make-element-focusable-7-aXFtDJ.es.js} +6 -6
  150. package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js.map → make-element-focusable-7-aXFtDJ.es.js.map} +1 -1
  151. package/dist/chunks/{menu-DMtIo54m.es.js → menu-9gmr8hQj.es.js} +6 -6
  152. package/dist/chunks/{menu-DMtIo54m.es.js.map → menu-9gmr8hQj.es.js.map} +1 -1
  153. package/dist/chunks/{menu-DGuxJIC6.cjs.js → menu-DbUVggzL.cjs.js} +2 -2
  154. package/dist/chunks/{menu-DGuxJIC6.cjs.js.map → menu-DbUVggzL.cjs.js.map} +1 -1
  155. package/dist/chunks/{mergeProps-D1jjFfMs.es.js → mergeProps-Dsl8k3Ig.es.js} +6 -6
  156. package/dist/chunks/{mergeProps-D1jjFfMs.es.js.map → mergeProps-Dsl8k3Ig.es.js.map} +1 -1
  157. package/dist/chunks/{money-input-B3fxVHDJ.cjs.js → money-input-BelTJgi2.cjs.js} +2 -2
  158. package/dist/chunks/{money-input-B3fxVHDJ.cjs.js.map → money-input-BelTJgi2.cjs.js.map} +1 -1
  159. package/dist/chunks/{money-input-BHveN9w0.es.js → money-input-DiuaCRAq.es.js} +9 -9
  160. package/dist/chunks/{money-input-BHveN9w0.es.js.map → money-input-DiuaCRAq.es.js.map} +1 -1
  161. package/dist/chunks/{money-input-field-CsChyLci.es.js → money-input-field-B8gMfNW7.es.js} +3 -3
  162. package/dist/chunks/{money-input-field-CsChyLci.es.js.map → money-input-field-B8gMfNW7.es.js.map} +1 -1
  163. package/dist/chunks/{money-input-field-FVpMq6tJ.cjs.js → money-input-field-tgZ_nN7r.cjs.js} +2 -2
  164. package/dist/chunks/{money-input-field-FVpMq6tJ.cjs.js.map → money-input-field-tgZ_nN7r.cjs.js.map} +1 -1
  165. package/dist/chunks/{multiline-text-input-C5pMVuYM.cjs.js → multiline-text-input-DJeOCh8z.cjs.js} +2 -2
  166. package/dist/chunks/{multiline-text-input-C5pMVuYM.cjs.js.map → multiline-text-input-DJeOCh8z.cjs.js.map} +1 -1
  167. package/dist/chunks/{multiline-text-input-CTop15Kc.es.js → multiline-text-input-fb-1IzTw.es.js} +5 -5
  168. package/dist/chunks/{multiline-text-input-CTop15Kc.es.js.map → multiline-text-input-fb-1IzTw.es.js.map} +1 -1
  169. package/dist/chunks/{multiline-text-input-field-D_M3z9GG.es.js → multiline-text-input-field-DIjx7INz.es.js} +3 -3
  170. package/dist/chunks/{multiline-text-input-field-D_M3z9GG.es.js.map → multiline-text-input-field-DIjx7INz.es.js.map} +1 -1
  171. package/dist/chunks/{multiline-text-input-field-B3eQzuAg.cjs.js → multiline-text-input-field-EiZALVr9.cjs.js} +2 -2
  172. package/dist/chunks/{multiline-text-input-field-B3eQzuAg.cjs.js.map → multiline-text-input-field-EiZALVr9.cjs.js.map} +1 -1
  173. package/dist/chunks/{nimbus-provider-COP-MGlb.cjs.js → nimbus-provider-BZ1AjgyS.cjs.js} +2 -2
  174. package/dist/chunks/{nimbus-provider-COP-MGlb.cjs.js.map → nimbus-provider-BZ1AjgyS.cjs.js.map} +1 -1
  175. package/dist/chunks/{nimbus-provider-BZuDgONW.es.js → nimbus-provider-XoinDagw.es.js} +2 -2
  176. package/dist/chunks/{nimbus-provider-BZuDgONW.es.js.map → nimbus-provider-XoinDagw.es.js.map} +1 -1
  177. package/dist/chunks/{number-input-Dj9jPceO.cjs.js → number-input-BY8SeNuT.cjs.js} +2 -2
  178. package/dist/chunks/{number-input-Dj9jPceO.cjs.js.map → number-input-BY8SeNuT.cjs.js.map} +1 -1
  179. package/dist/chunks/{number-input-CLoBlpiD.es.js → number-input-DKGtPqlr.es.js} +14 -14
  180. package/dist/chunks/{number-input-CLoBlpiD.es.js.map → number-input-DKGtPqlr.es.js.map} +1 -1
  181. package/dist/chunks/{number-input-field-BKxrwzEz.es.js → number-input-field-DnIN5wjh.es.js} +3 -3
  182. package/dist/chunks/{number-input-field-BKxrwzEz.es.js.map → number-input-field-DnIN5wjh.es.js.map} +1 -1
  183. package/dist/chunks/{number-input-field-DYJa53Un.cjs.js → number-input-field-l6_xjbpB.cjs.js} +2 -2
  184. package/dist/chunks/{number-input-field-DYJa53Un.cjs.js.map → number-input-field-l6_xjbpB.cjs.js.map} +1 -1
  185. package/dist/chunks/{pagination-DNTHTYbV.cjs.js → pagination-Cks7-saP.cjs.js} +2 -2
  186. package/dist/chunks/{pagination-DNTHTYbV.cjs.js.map → pagination-Cks7-saP.cjs.js.map} +1 -1
  187. package/dist/chunks/{pagination-WCa7N8As.es.js → pagination-DAPyY6Zk.es.js} +5 -5
  188. package/dist/chunks/{pagination-WCa7N8As.es.js.map → pagination-DAPyY6Zk.es.js.map} +1 -1
  189. package/dist/chunks/{password-input-B1aemp6U.es.js → password-input-BXrS2-3k.es.js} +4 -4
  190. package/dist/chunks/{password-input-B1aemp6U.es.js.map → password-input-BXrS2-3k.es.js.map} +1 -1
  191. package/dist/chunks/{password-input-CWPQT3AJ.cjs.js → password-input-DG0_r6H_.cjs.js} +2 -2
  192. package/dist/chunks/{password-input-CWPQT3AJ.cjs.js.map → password-input-DG0_r6H_.cjs.js.map} +1 -1
  193. package/dist/chunks/{password-input-field-DGjkta8d.es.js → password-input-field-BIH25kaL.es.js} +3 -3
  194. package/dist/chunks/{password-input-field-DGjkta8d.es.js.map → password-input-field-BIH25kaL.es.js.map} +1 -1
  195. package/dist/chunks/{password-input-field-C3ct8JqT.cjs.js → password-input-field-DMQAWO16.cjs.js} +2 -2
  196. package/dist/chunks/{password-input-field-C3ct8JqT.cjs.js.map → password-input-field-DMQAWO16.cjs.js.map} +1 -1
  197. package/dist/chunks/{popover-B1aRr1CU.es.js → popover-zNeVW5hN.es.js} +2 -2
  198. package/dist/chunks/{popover-B1aRr1CU.es.js.map → popover-zNeVW5hN.es.js.map} +1 -1
  199. package/dist/chunks/{progress-bar-Dny28r_G.cjs.js → progress-bar-DG9JB9bR.cjs.js} +2 -2
  200. package/dist/chunks/{progress-bar-Dny28r_G.cjs.js.map → progress-bar-DG9JB9bR.cjs.js.map} +1 -1
  201. package/dist/chunks/{progress-bar-VQAbvri1.es.js → progress-bar-DYbU-4Vi.es.js} +4 -4
  202. package/dist/chunks/{progress-bar-VQAbvri1.es.js.map → progress-bar-DYbU-4Vi.es.js.map} +1 -1
  203. package/dist/chunks/{radio-input-CIqZ2V6i.cjs.js → radio-input-CA4Y8LF8.cjs.js} +2 -2
  204. package/dist/chunks/{radio-input-CIqZ2V6i.cjs.js.map → radio-input-CA4Y8LF8.cjs.js.map} +1 -1
  205. package/dist/chunks/{radio-input-6FtNHf0N.es.js → radio-input-tsryyQ63.es.js} +42 -42
  206. package/dist/chunks/{radio-input-6FtNHf0N.es.js.map → radio-input-tsryyQ63.es.js.map} +1 -1
  207. package/dist/chunks/{range-calendar-Cumbca_6.es.js → range-calendar-CCKqVOdF.es.js} +10 -10
  208. package/dist/chunks/{range-calendar-Cumbca_6.es.js.map → range-calendar-CCKqVOdF.es.js.map} +1 -1
  209. package/dist/chunks/{range-calendar-Bjst1nRD.cjs.js → range-calendar-CFfa_h1A.cjs.js} +2 -2
  210. package/dist/chunks/{range-calendar-Bjst1nRD.cjs.js.map → range-calendar-CFfa_h1A.cjs.js.map} +1 -1
  211. package/dist/chunks/{rich-text-input-C7jglLdt.es.js → rich-text-input-CoIBknUh.es.js} +13 -13
  212. package/dist/chunks/{rich-text-input-C7jglLdt.es.js.map → rich-text-input-CoIBknUh.es.js.map} +1 -1
  213. package/dist/chunks/{rich-text-input-CpQVkFRl.cjs.js → rich-text-input-D7zyqfNG.cjs.js} +2 -2
  214. package/dist/chunks/{rich-text-input-CpQVkFRl.cjs.js.map → rich-text-input-D7zyqfNG.cjs.js.map} +1 -1
  215. package/dist/chunks/{scoped-search-input-CIUdBb04.cjs.js → scoped-search-input-B7lz2Odg.cjs.js} +2 -2
  216. package/dist/chunks/{scoped-search-input-CIUdBb04.cjs.js.map → scoped-search-input-B7lz2Odg.cjs.js.map} +1 -1
  217. package/dist/chunks/{scoped-search-input-C3N9xhiG.es.js → scoped-search-input-DM_clkPu.es.js} +5 -5
  218. package/dist/chunks/{scoped-search-input-C3N9xhiG.es.js.map → scoped-search-input-DM_clkPu.es.js.map} +1 -1
  219. package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js → scrollIntoView-B7D07fJk.es.js} +5 -5
  220. package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js.map → scrollIntoView-B7D07fJk.es.js.map} +1 -1
  221. package/dist/chunks/{search-input-xfX98rpy.es.js → search-input-CaJyfxW-.es.js} +11 -11
  222. package/dist/chunks/{search-input-xfX98rpy.es.js.map → search-input-CaJyfxW-.es.js.map} +1 -1
  223. package/dist/chunks/{search-input-B2eu94HO.cjs.js → search-input-Cq5nPtbF.cjs.js} +2 -2
  224. package/dist/chunks/{search-input-B2eu94HO.cjs.js.map → search-input-Cq5nPtbF.cjs.js.map} +1 -1
  225. package/dist/chunks/{search-input-field-CiEbfoqx.cjs.js → search-input-field-4wVwDFiQ.cjs.js} +2 -2
  226. package/dist/chunks/{search-input-field-CiEbfoqx.cjs.js.map → search-input-field-4wVwDFiQ.cjs.js.map} +1 -1
  227. package/dist/chunks/{search-input-field-Bt94J1Xu.es.js → search-input-field-zzVNsLn3.es.js} +3 -3
  228. package/dist/chunks/{search-input-field-Bt94J1Xu.es.js.map → search-input-field-zzVNsLn3.es.js.map} +1 -1
  229. package/dist/chunks/{select-OOmONm5T.cjs.js → select-AaF9VDYS.cjs.js} +2 -2
  230. package/dist/chunks/{select-OOmONm5T.cjs.js.map → select-AaF9VDYS.cjs.js.map} +1 -1
  231. package/dist/chunks/{select-6rfY6mk9.es.js → select-C4gMn8gq.es.js} +21 -21
  232. package/dist/chunks/{select-6rfY6mk9.es.js.map → select-C4gMn8gq.es.js.map} +1 -1
  233. package/dist/chunks/{separator-DoOgit09.cjs.js → separator-BadgCkrO.cjs.js} +2 -2
  234. package/dist/chunks/{separator-DoOgit09.cjs.js.map → separator-BadgCkrO.cjs.js.map} +1 -1
  235. package/dist/chunks/{separator-ByExde_2.es.js → separator-Bc2_grIr.es.js} +4 -4
  236. package/dist/chunks/{separator-ByExde_2.es.js.map → separator-Bc2_grIr.es.js.map} +1 -1
  237. package/dist/chunks/{split-button-DtNcxPjS.cjs.js → split-button-CbGHEymu.cjs.js} +2 -2
  238. package/dist/chunks/{split-button-DtNcxPjS.cjs.js.map → split-button-CbGHEymu.cjs.js.map} +1 -1
  239. package/dist/chunks/{split-button-CcfdSUWT.es.js → split-button-DT1Anaq1.es.js} +4 -4
  240. package/dist/chunks/{split-button-CcfdSUWT.es.js.map → split-button-DT1Anaq1.es.js.map} +1 -1
  241. package/dist/chunks/{switch-ZhX47Ufo.es.js → switch-1tLtDt7M.es.js} +7 -7
  242. package/dist/chunks/{switch-ZhX47Ufo.es.js.map → switch-1tLtDt7M.es.js.map} +1 -1
  243. package/dist/chunks/{switch-Bttbn3oV.cjs.js → switch-BxR5TD9Q.cjs.js} +2 -2
  244. package/dist/chunks/{switch-Bttbn3oV.cjs.js.map → switch-BxR5TD9Q.cjs.js.map} +1 -1
  245. package/dist/chunks/{tabs-DWMVR5Mq.cjs.js → tabs-C4EfvdVt.cjs.js} +2 -2
  246. package/dist/chunks/{tabs-DWMVR5Mq.cjs.js.map → tabs-C4EfvdVt.cjs.js.map} +1 -1
  247. package/dist/chunks/{tabs-B7qKxKnI.es.js → tabs-CgoUJCIx.es.js} +13 -13
  248. package/dist/chunks/{tabs-B7qKxKnI.es.js.map → tabs-CgoUJCIx.es.js.map} +1 -1
  249. package/dist/chunks/{tag-group-BkoC3DAk.cjs.js → tag-group-Bu4IPJY2.cjs.js} +2 -2
  250. package/dist/chunks/{tag-group-BkoC3DAk.cjs.js.map → tag-group-Bu4IPJY2.cjs.js.map} +1 -1
  251. package/dist/chunks/{tag-group-7rUsjnet.es.js → tag-group-DauMcIZX.es.js} +19 -19
  252. package/dist/chunks/{tag-group-7rUsjnet.es.js.map → tag-group-DauMcIZX.es.js.map} +1 -1
  253. package/dist/chunks/{text-DvqDjbwb.es.js → text-CIb_VDvO.es.js} +2 -2
  254. package/dist/chunks/{text-DvqDjbwb.es.js.map → text-CIb_VDvO.es.js.map} +1 -1
  255. package/dist/chunks/{text-input-D_3g3kxm.es.js → text-input-BpdFm4J-.es.js} +7 -7
  256. package/dist/chunks/{text-input-D_3g3kxm.es.js.map → text-input-BpdFm4J-.es.js.map} +1 -1
  257. package/dist/chunks/{text-input-Dv2HkOIG.cjs.js → text-input-YkL8bx31.cjs.js} +2 -2
  258. package/dist/chunks/{text-input-Dv2HkOIG.cjs.js.map → text-input-YkL8bx31.cjs.js.map} +1 -1
  259. package/dist/chunks/{text-input-field-DWpejDcH.es.js → text-input-field-B0WhjD0U.es.js} +3 -3
  260. package/dist/chunks/{text-input-field-DWpejDcH.es.js.map → text-input-field-B0WhjD0U.es.js.map} +1 -1
  261. package/dist/chunks/{text-input-field-vYxpIFXm.cjs.js → text-input-field-CPLVnqlr.cjs.js} +2 -2
  262. package/dist/chunks/{text-input-field-vYxpIFXm.cjs.js.map → text-input-field-CPLVnqlr.cjs.js.map} +1 -1
  263. package/dist/chunks/{time-input-CZWkAErU.es.js → time-input-DMyhDH5j.es.js} +4 -4
  264. package/dist/chunks/{time-input-CZWkAErU.es.js.map → time-input-DMyhDH5j.es.js.map} +1 -1
  265. package/dist/chunks/{time-input-CMAP5QkL.cjs.js → time-input-m8zeR_8L.cjs.js} +2 -2
  266. package/dist/chunks/{time-input-CMAP5QkL.cjs.js.map → time-input-m8zeR_8L.cjs.js.map} +1 -1
  267. package/dist/chunks/{toggle-button-QMUjECJO.es.js → toggle-button-B2uXtvzj.es.js} +4 -4
  268. package/dist/chunks/{toggle-button-QMUjECJO.es.js.map → toggle-button-B2uXtvzj.es.js.map} +1 -1
  269. package/dist/chunks/{toggle-button-BnDf2yfy.cjs.js → toggle-button-CHZm868U.cjs.js} +2 -2
  270. package/dist/chunks/{toggle-button-BnDf2yfy.cjs.js.map → toggle-button-CHZm868U.cjs.js.map} +1 -1
  271. package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js → toggle-button-group-BWpmMkEz.es.js} +2 -2
  272. package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js.map → toggle-button-group-BWpmMkEz.es.js.map} +1 -1
  273. package/dist/chunks/{toolbar-Bg2OUmFi.cjs.js → toolbar-BAETJxml.cjs.js} +2 -2
  274. package/dist/chunks/{toolbar-Bg2OUmFi.cjs.js.map → toolbar-BAETJxml.cjs.js.map} +1 -1
  275. package/dist/chunks/{toolbar-C3GiZF_9.es.js → toolbar-BnS73QeG.es.js} +6 -6
  276. package/dist/chunks/{toolbar-C3GiZF_9.es.js.map → toolbar-BnS73QeG.es.js.map} +1 -1
  277. package/dist/chunks/{tooltip-CzEuq_Qi.es.js → tooltip-D3QrrizN.es.js} +7 -7
  278. package/dist/chunks/{tooltip-CzEuq_Qi.es.js.map → tooltip-D3QrrizN.es.js.map} +1 -1
  279. package/dist/chunks/{useButton-B2TbwHSy.es.js → useButton-CiPiehgC.es.js} +4 -4
  280. package/dist/chunks/{useButton-B2TbwHSy.es.js.map → useButton-CiPiehgC.es.js.map} +1 -1
  281. package/dist/chunks/{useDateFormatter-CO08GpLe.es.js → useDateFormatter-886GJ5w1.es.js} +2 -2
  282. package/dist/chunks/{useDateFormatter-CO08GpLe.es.js.map → useDateFormatter-886GJ5w1.es.js.map} +1 -1
  283. package/dist/chunks/{useDisclosureState-BqxwXawT.es.js → useDisclosureState-CWZTR2xM.es.js} +3 -3
  284. package/dist/chunks/{useDisclosureState-BqxwXawT.es.js.map → useDisclosureState-CWZTR2xM.es.js.map} +1 -1
  285. package/dist/chunks/{useEvent-D8bTsAyx.es.js → useEvent-CRo5BZDX.es.js} +6 -6
  286. package/dist/chunks/{useEvent-D8bTsAyx.es.js.map → useEvent-CRo5BZDX.es.js.map} +1 -1
  287. package/dist/chunks/{useField-BfW84CS4.es.js → useField-CHrpmkxe.es.js} +8 -8
  288. package/dist/chunks/{useField-BfW84CS4.es.js.map → useField-CHrpmkxe.es.js.map} +1 -1
  289. package/dist/chunks/{useFocus-TCNvrvTC.es.js → useFocus-CrgTusM3.es.js} +6 -6
  290. package/dist/chunks/{useFocus-TCNvrvTC.es.js.map → useFocus-CrgTusM3.es.js.map} +1 -1
  291. package/dist/chunks/{useFocusRing-oMAqzr3e.es.js → useFocusRing-FPt2Rwil.es.js} +4 -4
  292. package/dist/chunks/{useFocusRing-oMAqzr3e.es.js.map → useFocusRing-FPt2Rwil.es.js.map} +1 -1
  293. package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js → useFocusVisible-B3HmFL2Q.es.js} +6 -6
  294. package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js.map → useFocusVisible-B3HmFL2Q.es.js.map} +1 -1
  295. package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js → useFocusWithin-EFOG-Jn1.es.js} +6 -6
  296. package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js.map → useFocusWithin-EFOG-Jn1.es.js.map} +1 -1
  297. package/dist/chunks/{useFocusable-Bm-DQaak.es.js → useFocusable-Cs6i58WP.es.js} +5 -5
  298. package/dist/chunks/{useFocusable-Bm-DQaak.es.js.map → useFocusable-Cs6i58WP.es.js.map} +1 -1
  299. package/dist/chunks/{useFormReset-C52dSDoe.es.js → useFormReset-BGuIA_u2.es.js} +2 -2
  300. package/dist/chunks/{useFormReset-C52dSDoe.es.js.map → useFormReset-BGuIA_u2.es.js.map} +1 -1
  301. package/dist/chunks/{useFormValidation-DxDV9X1M.es.js → useFormValidation-BCVLtR0U.es.js} +3 -3
  302. package/dist/chunks/{useFormValidation-DxDV9X1M.es.js.map → useFormValidation-BCVLtR0U.es.js.map} +1 -1
  303. package/dist/chunks/{useGridListItem-DTjO497o.es.js → useGridListItem-CjGTTOtc.es.js} +10 -10
  304. package/dist/chunks/{useGridListItem-DTjO497o.es.js.map → useGridListItem-CjGTTOtc.es.js.map} +1 -1
  305. package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js → useHasTabbableChild-DXq72IE3.es.js} +3 -3
  306. package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js.map → useHasTabbableChild-DXq72IE3.es.js.map} +1 -1
  307. package/dist/chunks/{useHover-BtRK9g2L.es.js → useHover-BQRSM3qT.es.js} +2 -2
  308. package/dist/chunks/{useHover-BtRK9g2L.es.js.map → useHover-BQRSM3qT.es.js.map} +1 -1
  309. package/dist/chunks/{useLabel-DfbcmKTa.es.js → useLabel-DQaRD22u.es.js} +5 -5
  310. package/dist/chunks/{useLabel-DfbcmKTa.es.js.map → useLabel-DQaRD22u.es.js.map} +1 -1
  311. package/dist/chunks/{useLabels-Gn8v9XZB.es.js → useLabels-BDqWMehi.es.js} +2 -2
  312. package/dist/chunks/{useLabels-Gn8v9XZB.es.js.map → useLabels-BDqWMehi.es.js.map} +1 -1
  313. package/dist/chunks/{useListState-D9k6HiWm.es.js → useListState-CRfmjiWx.es.js} +2 -2
  314. package/dist/chunks/{useListState-D9k6HiWm.es.js.map → useListState-CRfmjiWx.es.js.map} +1 -1
  315. package/dist/chunks/{usePress-C_IPaF8I.es.js → usePress-BuLomD_X.es.js} +6 -6
  316. package/dist/chunks/{usePress-C_IPaF8I.es.js.map → usePress-BuLomD_X.es.js.map} +1 -1
  317. package/dist/chunks/{useProgressBar-DCj794Zv.es.js → useProgressBar--OvVKto2.es.js} +7 -7
  318. package/dist/chunks/{useProgressBar-DCj794Zv.es.js.map → useProgressBar--OvVKto2.es.js.map} +1 -1
  319. package/dist/chunks/{useSingleSelectListState-C_tE7a5E.es.js → useSingleSelectListState-DFR33TSw.es.js} +2 -2
  320. package/dist/chunks/{useSingleSelectListState-C_tE7a5E.es.js.map → useSingleSelectListState-DFR33TSw.es.js.map} +1 -1
  321. package/dist/chunks/{useSpinButton-BiQ20B5n.es.js → useSpinButton-YcV6vlPf.es.js} +15 -15
  322. package/dist/chunks/{useSpinButton-BiQ20B5n.es.js.map → useSpinButton-YcV6vlPf.es.js.map} +1 -1
  323. package/dist/chunks/{useSyncRef-DmY05o2G.es.js → useSyncRef-BpLviItW.es.js} +2 -2
  324. package/dist/chunks/{useSyncRef-DmY05o2G.es.js.map → useSyncRef-BpLviItW.es.js.map} +1 -1
  325. package/dist/chunks/{useTextField-9WuJfc9u.es.js → useTextField-yuaT8-G4.es.js} +7 -7
  326. package/dist/chunks/{useTextField-9WuJfc9u.es.js.map → useTextField-yuaT8-G4.es.js.map} +1 -1
  327. package/dist/chunks/{useToggle-BZPMewLP.es.js → useToggle-DKP3zVOY.es.js} +5 -5
  328. package/dist/chunks/{useToggle-BZPMewLP.es.js.map → useToggle-DKP3zVOY.es.js.map} +1 -1
  329. package/dist/chunks/{useToolbar-C673xD3E.es.js → useToolbar-CbJkugif.es.js} +3 -3
  330. package/dist/chunks/{useToolbar-C673xD3E.es.js.map → useToolbar-CbJkugif.es.js.map} +1 -1
  331. package/dist/chunks/{utils-9vu7GUaz.es.js → utils-B6pV5ewr.es.js} +12 -12
  332. package/dist/chunks/{utils-9vu7GUaz.es.js.map → utils-B6pV5ewr.es.js.map} +1 -1
  333. package/dist/chunks/{utils-Bl-3nKLa.es.js → utils-oAGBWzI5.es.js} +14 -14
  334. package/dist/chunks/{utils-Bl-3nKLa.es.js.map → utils-oAGBWzI5.es.js.map} +1 -1
  335. package/dist/chunks/{visually-hidden-m5QY9YV7.es.js → visually-hidden-Dj5CT-u_.es.js} +2 -2
  336. package/dist/chunks/{visually-hidden-m5QY9YV7.es.js.map → visually-hidden-Dj5CT-u_.es.js.map} +1 -1
  337. package/dist/components/accordion/accordion.recipe.d.ts +1 -1
  338. package/dist/components/accordion/accordion.slots.d.ts +5 -5
  339. package/dist/components/accordion.cjs +1 -1
  340. package/dist/components/accordion.es.js +2 -2
  341. package/dist/components/alert/alert.recipe.d.ts +1 -1
  342. package/dist/components/alert/alert.slots.d.ts +3 -3
  343. package/dist/components/alert.cjs +1 -1
  344. package/dist/components/alert.es.js +1 -1
  345. package/dist/components/avatar/avatar.slots.d.ts +1 -1
  346. package/dist/components/badge/badge.slots.d.ts +1 -1
  347. package/dist/components/badge.es.js +1 -1
  348. package/dist/components/button.cjs +1 -1
  349. package/dist/components/button.es.js +1 -1
  350. package/dist/components/calendar/calendar.slots.d.ts +8 -8
  351. package/dist/components/calendar.cjs +1 -1
  352. package/dist/components/calendar.es.js +1 -1
  353. package/dist/components/card.cjs +1 -1
  354. package/dist/components/card.es.js +1 -1
  355. package/dist/components/checkbox.cjs +1 -1
  356. package/dist/components/checkbox.es.js +1 -1
  357. package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
  358. package/dist/components/collapsible-motion.cjs +1 -1
  359. package/dist/components/collapsible-motion.es.js +1 -1
  360. package/dist/components/combobox/combobox.recipe.d.ts +1 -1
  361. package/dist/components/combobox/combobox.slots.d.ts +9 -9
  362. package/dist/components/combobox.cjs +1 -1
  363. package/dist/components/combobox.es.js +1 -1
  364. package/dist/components/components.cjs +1 -1
  365. package/dist/components/components.es.js +1 -1
  366. package/dist/components/data-table/data-table.d.ts +3 -3
  367. package/dist/components/data-table/data-table.slots.d.ts +12 -12
  368. package/dist/components/data-table.cjs +1 -1
  369. package/dist/components/data-table.es.js +1 -1
  370. package/dist/components/date-input/date-input.slots.d.ts +5 -5
  371. package/dist/components/date-input.cjs +1 -1
  372. package/dist/components/date-input.es.js +1 -1
  373. package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
  374. package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
  375. package/dist/components/date-picker.cjs +1 -1
  376. package/dist/components/date-picker.es.js +1 -1
  377. package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
  378. package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
  379. package/dist/components/date-range-picker-field.cjs +1 -1
  380. package/dist/components/date-range-picker-field.es.js +1 -1
  381. package/dist/components/date-range-picker.cjs +1 -1
  382. package/dist/components/date-range-picker.es.js +1 -1
  383. package/dist/components/dialog/dialog.slots.d.ts +9 -9
  384. package/dist/components/dialog.cjs +1 -1
  385. package/dist/components/dialog.es.js +1 -1
  386. package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
  387. package/dist/components/draggable-list.cjs +1 -1
  388. package/dist/components/draggable-list.es.js +1 -1
  389. package/dist/components/drawer/drawer.slots.d.ts +10 -10
  390. package/dist/components/drawer.cjs +1 -1
  391. package/dist/components/drawer.es.js +1 -1
  392. package/dist/components/fields.cjs +1 -1
  393. package/dist/components/fields.es.js +7 -7
  394. package/dist/components/form-field/form-field.recipe.d.ts +1 -1
  395. package/dist/components/form-field/form-field.slots.d.ts +2 -2
  396. package/dist/components/form-field.cjs +1 -1
  397. package/dist/components/form-field.es.js +1 -1
  398. package/dist/components/group.es.js +1 -1
  399. package/dist/components/heading.es.js +1 -1
  400. package/dist/components/icon-button.cjs +1 -1
  401. package/dist/components/icon-button.es.js +1 -1
  402. package/dist/components/icon-toggle-button.cjs +1 -1
  403. package/dist/components/icon-toggle-button.es.js +1 -1
  404. package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
  405. package/dist/components/kbd.es.js +1 -1
  406. package/dist/components/link/link.slots.d.ts +1 -1
  407. package/dist/components/link.es.js +1 -1
  408. package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
  409. package/dist/components/loading-spinner.es.js +1 -1
  410. package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
  411. package/dist/components/localized-field.cjs +1 -1
  412. package/dist/components/localized-field.es.js +1 -1
  413. package/dist/components/menu/menu.recipe.d.ts +1 -1
  414. package/dist/components/money-input/money-input.slots.d.ts +6 -6
  415. package/dist/components/money-input-field.cjs +1 -1
  416. package/dist/components/money-input-field.es.js +1 -1
  417. package/dist/components/money-input.cjs +1 -1
  418. package/dist/components/money-input.es.js +1 -1
  419. package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
  420. package/dist/components/multiline-text-input-field.cjs +1 -1
  421. package/dist/components/multiline-text-input-field.es.js +1 -1
  422. package/dist/components/multiline-text-input.cjs +1 -1
  423. package/dist/components/multiline-text-input.es.js +1 -1
  424. package/dist/components/nimbus-provider.cjs +1 -1
  425. package/dist/components/nimbus-provider.es.js +1 -1
  426. package/dist/components/number-input/number-input.slots.d.ts +6 -6
  427. package/dist/components/number-input-field.cjs +1 -1
  428. package/dist/components/number-input-field.es.js +1 -1
  429. package/dist/components/number-input.cjs +1 -1
  430. package/dist/components/number-input.es.js +1 -1
  431. package/dist/components/pagination.cjs +1 -1
  432. package/dist/components/pagination.es.js +1 -1
  433. package/dist/components/password-input-field.cjs +1 -1
  434. package/dist/components/password-input-field.es.js +1 -1
  435. package/dist/components/password-input.cjs +1 -1
  436. package/dist/components/password-input.es.js +1 -1
  437. package/dist/components/patterns.cjs +1 -1
  438. package/dist/components/patterns.es.js +7 -7
  439. package/dist/components/popover.es.js +1 -1
  440. package/dist/components/progress-bar/progress-bar.slots.d.ts +4 -4
  441. package/dist/components/progress-bar.cjs +1 -1
  442. package/dist/components/progress-bar.es.js +1 -1
  443. package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
  444. package/dist/components/radio-input.cjs +1 -1
  445. package/dist/components/radio-input.es.js +1 -1
  446. package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
  447. package/dist/components/range-calendar.cjs +1 -1
  448. package/dist/components/range-calendar.es.js +1 -1
  449. package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
  450. package/dist/components/rich-text-input.cjs +1 -1
  451. package/dist/components/rich-text-input.es.js +1 -1
  452. package/dist/components/scoped-search-input.cjs +1 -1
  453. package/dist/components/scoped-search-input.es.js +1 -1
  454. package/dist/components/search-input-field.cjs +1 -1
  455. package/dist/components/search-input-field.es.js +1 -1
  456. package/dist/components/search-input.cjs +1 -1
  457. package/dist/components/search-input.es.js +1 -1
  458. package/dist/components/select/select.slots.d.ts +7 -7
  459. package/dist/components/select.cjs +1 -1
  460. package/dist/components/select.es.js +1 -1
  461. package/dist/components/separator.cjs +1 -1
  462. package/dist/components/separator.es.js +1 -1
  463. package/dist/components/split-button/split-button.slots.d.ts +3 -3
  464. package/dist/components/split-button.cjs +1 -1
  465. package/dist/components/split-button.es.js +1 -1
  466. package/dist/components/switch/switch.slots.d.ts +3 -3
  467. package/dist/components/switch.cjs +1 -1
  468. package/dist/components/switch.es.js +1 -1
  469. package/dist/components/tabs/tabs.recipe.d.ts +1 -1
  470. package/dist/components/tabs/tabs.slots.d.ts +3 -3
  471. package/dist/components/tabs.cjs +1 -1
  472. package/dist/components/tabs.es.js +1 -1
  473. package/dist/components/tag-group.cjs +1 -1
  474. package/dist/components/tag-group.es.js +1 -1
  475. package/dist/components/text-input-field.cjs +1 -1
  476. package/dist/components/text-input-field.es.js +1 -1
  477. package/dist/components/text-input.cjs +1 -1
  478. package/dist/components/text-input.es.js +1 -1
  479. package/dist/components/text.es.js +1 -1
  480. package/dist/components/time-input/time-input.slots.d.ts +5 -5
  481. package/dist/components/time-input.cjs +1 -1
  482. package/dist/components/time-input.es.js +1 -1
  483. package/dist/components/toggle-button-group.es.js +1 -1
  484. package/dist/components/toggle-button.cjs +1 -1
  485. package/dist/components/toggle-button.es.js +1 -1
  486. package/dist/components/toolbar.cjs +1 -1
  487. package/dist/components/toolbar.es.js +1 -1
  488. package/dist/components/tooltip.es.js +2 -2
  489. package/dist/components/visually-hidden.es.js +1 -1
  490. package/dist/index.cjs +1 -1
  491. package/dist/index.es.js +64 -64
  492. package/dist/theme/slot-recipes/index.d.ts +8 -8
  493. package/package.json +5 -5
  494. package/dist/chunks/accordion.content-Bd2PESBz.cjs.js +0 -2
  495. package/dist/chunks/badge-DUiqk6w9.es.js +0 -17
  496. package/dist/chunks/index-CmfW40Im.es.js.map +0 -1
  497. package/dist/chunks/index-DIQn6o2R.cjs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-C0WVsTa4.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\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\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @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 colorPalette=\"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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,OAAO,MAAM,GAExDI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAEJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAEHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAERM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAEJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAEVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAEPS,KAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAERU,KAAmB,gBAAAV,EAG9B,MAAM,UAAU,GC3DLW,IAAW,gBAAAC,EAAe;AAAA,EACrC,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,UAAU;AAAA,IACR,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCXYC,KAAwB,CAAC;AAAA,EACpC,UAAAC;AACF,MAEM;AACJ,QAAMC,IAAOC,EAAA,GACP,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAgBC,EAAWC,CA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AAA,CACF;AAEJ,GC1EaC,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAc,EAAE,KAAK,YAAY,GAC1C,CAACC,GAAaC,CAAc,IAAIH,EAAO,kBAAkBD,CAAK,GAC9D,CAACK,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAvC,EAAC9B,GAAA,EAAkB,GAAGoE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"calendar-CDVjB0zo.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\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\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @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 colorPalette=\"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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,OAAO,MAAM,GAExDI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAEJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAEHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAERM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAEJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAEVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAEPS,KAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAERU,KAAmB,gBAAAV,EAG9B,MAAM,UAAU,GC3DLW,IAAW,gBAAAC,EAAe;AAAA,EACrC,WAAW;AAAA,IACT,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,UAAU;AAAA,IACR,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCXYC,KAAwB,CAAC;AAAA,EACpC,UAAAC;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,4BAACG,GAAA,CAAA,CAAmB;AAAA,QAAA;AAAA,MAAA;AAAA,IACtB,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ,GC1EaC,KAAW,CAACC,MAAoC;AAC3D,QAAMC,IAASC,EAAc,EAAE,KAAK,YAAY,GAC1C,CAACC,GAAaC,CAAc,IAAIH,EAAO,kBAAkBD,CAAK,GAC9D,CAACK,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAvC,EAAC9B,GAAA,EAAkB,GAAGoE,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAxC,EAAC2C,GAAA,EAAY,GAAGF,GACd,4BAAC5D,IAAA,EACC,UAAA;AAAA,IAAA,gBAAAmB,EAACwB,IAAA,EAAe;AAAA,sBACftB,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-kcnZ-PKv.cjs.js"),q=require("@chakra-ui/react"),D=require("@chakra-ui/react/styled-system"),I=require("./extract-style-props-DL4zPQSN.cjs.js"),i=require("./useDateFormatter-WCaFojul.cjs.js"),$=require("react"),y=require("./Button-DLCecw8f.cjs.js"),p=require("./utils-DVb3jcp5.cjs.js"),j=require("./Text-BWSfeB9p.cjs.js"),S=require("react-intl"),P=require("./context-CyT9C4U4.cjs.js"),u=require("@commercetools/nimbus-icons"),v=require("./stack-CIN13EDn.cjs.js"),C=require("./text-BtRhIklG.cjs.js"),R=require("@chakra-ui/react/flex"),T=require("./visually-hidden-BjtXUoFK.cjs.js"),h=require("./icon-button-ClTyaPhB.cjs.js"),w=require("./box-CWni3A32.cjs.js"),{withProvider:B,withContext:c}=q.createSlotRecipeContext({key:"calendar"}),N=B("div","root"),H=c("div","header"),A=c("div","grids"),F=c("div","monthTitle"),k=c("table","grid"),G=c("thead","gridHeader"),L=c("th","headerCell"),Y=c("tbody","gridBody"),z=c("td","bodyCell"),b=S.defineMessages({nextMonth:{id:"Nimbus.Calendar.nextMonth",description:"aria-label for next month navigation button",defaultMessage:"Next month"},previousMonth:{id:"Nimbus.Calendar.previousMonth",description:"aria-label for previous month navigation button",defaultMessage:"Previous month"},nextYear:{id:"Nimbus.Calendar.nextYear",description:"aria-label for next year navigation button",defaultMessage:"Next year"},previousYear:{id:"Nimbus.Calendar.previousYear",description:"aria-label for previous year navigation button",defaultMessage:"Previous year"}}),K=({children:d})=>{const n=S.useIntl(),{locale:t}=P.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=$.useContext(y.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=$.useContext(j.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),g={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":n.formatMessage(b.nextMonth)},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":n.formatMessage(b.previousMonth)},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":n.formatMessage(b.nextYear)},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":n.formatMessage(b.previousYear)}},f=new Intl.DateTimeFormat(t,{month:"long"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),m=[new Intl.DateTimeFormat(t,{month:"long"}).format(o.visibleRange.start.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(t,{month:"long"}).format(o.visibleRange.end.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),x=new Intl.DateTimeFormat(t,{year:"numeric"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:f},monthRange:{children:m},year:{children:x}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[y.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...g}}],[j.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},V=()=>{const{locale:d}=P.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,s=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),o=r>1;return e.jsx(A,{children:Array.from({length:r},(g,f)=>{const m=t.visibleRange.start.add({months:f}),x=new Intl.DateTimeFormat(d,{month:"long"}).format(m.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(w.Box,{width:r==1?"full":"auto",children:[o&&e.jsx(F,{children:x}),e.jsx(k,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:f},weekdayStyle:"short",children:[e.jsx(G,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(Y,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const M=l.compare(s)===0;return e.jsx(z,{asChild:!0,"data-today":M,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},x)})})},W=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(H,{children:e.jsxs(R.Flex,{children:[e.jsxs(v.Stack,{direction:"row",alignItems:"center",children:[e.jsx(T.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(C.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",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(w.Box,{flexGrow:"1"}),e.jsxs(v.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(C.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",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},_=d=>{const n=D.useSlotRecipe({key:"calendar"}),[t,r]=n.splitVariantProps(d),[s,o]=I.extractStyleProps(r);return e.jsx(N,{...t,...s,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...o,children:e.jsxs(K,{children:[e.jsx(W,{}),e.jsx(V,{})]})})})};exports.Calendar=_;
2
- //# sourceMappingURL=calendar-CMCE8As1.cjs.js.map
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-kcnZ-PKv.cjs.js"),q=require("@chakra-ui/react"),D=require("@chakra-ui/react/styled-system"),I=require("./extract-style-props-DGdckd6P.cjs.js"),i=require("./useDateFormatter-WCaFojul.cjs.js"),$=require("react"),y=require("./Button-DLCecw8f.cjs.js"),p=require("./utils-DVb3jcp5.cjs.js"),j=require("./Text-BWSfeB9p.cjs.js"),S=require("react-intl"),P=require("./context-CyT9C4U4.cjs.js"),u=require("@commercetools/nimbus-icons"),v=require("./stack-CIN13EDn.cjs.js"),C=require("./text-BtRhIklG.cjs.js"),R=require("@chakra-ui/react/flex"),T=require("./visually-hidden-BjtXUoFK.cjs.js"),h=require("./icon-button-BPzrehNJ.cjs.js"),w=require("./box-CWni3A32.cjs.js"),{withProvider:B,withContext:c}=q.createSlotRecipeContext({key:"calendar"}),N=B("div","root"),H=c("div","header"),A=c("div","grids"),F=c("div","monthTitle"),k=c("table","grid"),G=c("thead","gridHeader"),L=c("th","headerCell"),Y=c("tbody","gridBody"),z=c("td","bodyCell"),b=S.defineMessages({nextMonth:{id:"Nimbus.Calendar.nextMonth",description:"aria-label for next month navigation button",defaultMessage:"Next month"},previousMonth:{id:"Nimbus.Calendar.previousMonth",description:"aria-label for previous month navigation button",defaultMessage:"Previous month"},nextYear:{id:"Nimbus.Calendar.nextYear",description:"aria-label for next year navigation button",defaultMessage:"Next year"},previousYear:{id:"Nimbus.Calendar.previousYear",description:"aria-label for previous year navigation button",defaultMessage:"Previous year"}}),K=({children:d})=>{const n=S.useIntl(),{locale:t}=P.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=$.useContext(y.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=$.useContext(j.$514c0188e459b4c0$export$9afb8bc826b033ea),o=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),g={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":n.formatMessage(b.nextMonth)},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":n.formatMessage(b.previousMonth)},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":n.formatMessage(b.nextYear)},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":n.formatMessage(b.previousYear)}},f=new Intl.DateTimeFormat(t,{month:"long"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),m=[new Intl.DateTimeFormat(t,{month:"long"}).format(o.visibleRange.start.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(t,{month:"long"}).format(o.visibleRange.end.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),x=new Intl.DateTimeFormat(t,{year:"numeric"}).format(o.focusedDate.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:f},monthRange:{children:m},year:{children:x}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[y.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...g}}],[j.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},V=()=>{const{locale:d}=P.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=$.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,s=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),o=r>1;return e.jsx(A,{children:Array.from({length:r},(g,f)=>{const m=t.visibleRange.start.add({months:f}),x=new Intl.DateTimeFormat(d,{month:"long"}).format(m.toDate(i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(w.Box,{width:r==1?"full":"auto",children:[o&&e.jsx(F,{children:x}),e.jsx(k,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:f},weekdayStyle:"short",children:[e.jsx(G,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(Y,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const M=l.compare(s)===0;return e.jsx(z,{asChild:!0,"data-today":M,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},x)})})},W=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(H,{children:e.jsxs(R.Flex,{children:[e.jsxs(v.Stack,{direction:"row",alignItems:"center",children:[e.jsx(T.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(C.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",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(w.Box,{flexGrow:"1"}),e.jsxs(v.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",colorPalette:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(C.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",colorPalette:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},_=d=>{const n=D.useSlotRecipe({key:"calendar"}),[t,r]=n.splitVariantProps(d),[s,o]=I.extractStyleProps(r);return e.jsx(N,{...t,...s,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...o,children:e.jsxs(K,{children:[e.jsx(W,{}),e.jsx(V,{})]})})})};exports.Calendar=_;
2
+ //# sourceMappingURL=calendar-Dx5LLOml.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-CMCE8As1.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\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\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @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 colorPalette=\"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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"ytBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAEYC,EAGTH,EAAoD,MAAO,MAAM,EAExDI,EAAqBH,EAGhC,MAAO,Q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B,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,EC1EaC,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAK,EAC9D,CAACK,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEvC,EAAAA,IAAC9B,EAAA,CAAkB,GAAGoE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAxC,EAAAA,IAAC2C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAAC5D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACwB,EAAA,EAAe,QACftB,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
1
+ {"version":3,"file":"calendar-Dx5LLOml.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/calendar.i18n.ts","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n CalendarCellSlotProps,\n CalendarGridBodySlotProps,\n CalendarGridHeaderSlotProps,\n CalendarGridSlotProps,\n CalendarGridsSlotProps,\n CalendarHeaderCellSlotProps,\n CalendarHeaderSlotProps,\n CalendarMonthTitleSlotProps,\n CalendarRootSlotProps,\n} from \"./calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport const CalendarRootSlot: SlotComponent<\n HTMLDivElement,\n CalendarRootSlotProps\n> = withProvider<HTMLDivElement, CalendarRootSlotProps>(\"div\", \"root\");\n\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.Calendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.Calendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.Calendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.Calendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\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\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../calendar.i18n\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\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\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @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 colorPalette=\"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 colorPalette=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"next-year\"\n size=\"xs\"\n variant=\"ghost\"\n colorPalette=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport {\n CalendarGrids,\n CalendarHeader,\n CalendarCustomContext,\n} from \"./components\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * # Calendar\n *\n * Calendars display a grid of days in one or more months and allow users to select a single date.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/calendar}\n */\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useSlotRecipe({ key: \"calendar\" });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","messages","defineMessages","CalendarCustomContext","children","intl","useIntl","locale","useLocale","buttonContext","useContext","ButtonContext","textContext","TextContext","calendarState","CalendarStateContext","buttonSlots","monthLabel","getLocalTimeZone","monthRangeLabel","yearLabel","textSlots","jsx","Provider","CalendarGrids","context","useSlottedContext","CalendarContext","visibleMonthsCount","todayDate","today","showMonthTitles","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","Calendar","props","recipe","useSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"ytBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAEYC,EAGTH,EAAoD,MAAO,MAAM,EAExDI,EAAqBH,EAGhC,MAAO,QAAQ,EAEJI,EAAoBJ,EAG/B,MAAO,OAAO,EAEHK,EAAyBL,EAGpC,MAAO,YAAY,EAERM,EAAmBN,EAG9B,QAAS,MAAM,EAEJO,EAAyBP,EAGpC,QAAS,YAAY,EAEVQ,EAAyBR,EAGpC,KAAM,YAAY,EAEPS,EAAuBT,EAGlC,QAAS,UAAU,EAERU,EAAmBV,EAG9B,KAAM,UAAU,EC3DLW,EAAWC,EAAAA,eAAe,CACrC,UAAW,CACT,GAAI,4BACJ,YAAa,8CACb,eAAgB,YAAA,EAElB,cAAe,CACb,GAAI,gCACJ,YAAa,kDACb,eAAgB,gBAAA,EAElB,SAAU,CACR,GAAI,2BACJ,YAAa,6CACb,eAAgB,WAAA,EAElB,aAAc,CACZ,GAAI,+BACJ,YAAa,iDACb,eAAgB,eAAA,CAEpB,CAAC,ECXYC,EAAwB,CAAC,CACpC,SAAAC,CACF,IAEM,CACJ,MAAMC,EAAOC,EAAAA,QAAA,EACP,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAgBC,EAAAA,WAAWC,2CAAa,EACxCC,EAAcF,EAAAA,WAAWG,2CAAW,EACpCC,EAAgBJ,EAAAA,WAAWK,2CA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CAAI,SAAS,GAAA,CAAI,EAClBD,EAAAA,KAACa,EAAAA,MAAA,CAAM,UAAU,MAAM,WAAW,SAEhC,SAAA,CAAA3B,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,gBACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACC,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAErB/B,EAAAA,IAACgC,EAAAA,KAAA,CACC,UAAU,KACV,WAAW,MACX,MAAM,aACN,MAAM,OACN,UAAU,SACV,cAAY,OACZ,KAAK,MAAA,CAAA,EAGPhC,EAAAA,IAAC8B,EAAAA,WAAA,CACC,KAAK,YACL,KAAK,KACL,QAAQ,QACR,aAAa,UAEb,eAACG,EAAAA,mBAAA,CAAA,CAAmB,CAAA,CAAA,CACtB,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAEJ,EC1EaC,EAAYC,GAAoC,CAC3D,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,WAAY,EAC1C,CAACC,EAAaC,CAAc,EAAIH,EAAO,kBAAkBD,CAAK,EAC9D,CAACK,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEvC,EAAAA,IAAC9B,EAAA,CAAkB,GAAGoE,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAxC,EAAAA,IAAC2C,EAAAA,0CAAA,CAAY,GAAGF,EACd,gBAAC5D,EAAA,CACC,SAAA,CAAAmB,EAAAA,IAACwB,EAAA,EAAe,QACftB,EAAA,CAAA,CAAc,CAAA,CAAA,CACjB,EACF,EACF,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),v=require("@chakra-ui/react/styled-system"),j=require("./stack-CIN13EDn.cjs.js"),d=require("./extract-style-props-DL4zPQSN.cjs.js"),{withProvider:q,withContext:P}=H.createSlotRecipeContext({key:"card"}),h=q("div","root"),N=P("div","header"),$=P("div","content"),l=e.createContext(void 0),i=({ref:o,children:s,...t})=>{const r=v.useSlotRecipe({key:"card"}),[n,c]=r.splitVariantProps(t),[y,S]=d.extractStyleProps(c),[R,p]=e.useState(null),[f,x]=e.useState(null),m=e.useMemo(()=>({setHeader:p,setContent:x}),[p,x]);return a.jsx(l.Provider,{value:m,children:a.jsxs(h,{ref:o,...n,...y,...S,children:[a.jsxs(j.Stack,{direction:"column",gap:"200",children:[R,f]}),s]})})};i.displayName="Card.Root";const u=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx(N,{...r,...n,children:o});return t.setHeader(c),()=>t.setHeader(null)}},[o,r,n,t]),null};u.displayName="Card.Header";const C=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx($,{...r,...n,children:o});return t.setContent(c),()=>t.setContent(null)}},[o,r,n,t]),null};C.displayName="Card.Content";const k={Root:i,Header:u,Content:C};exports.Card=k;exports.CardContent=C;exports.CardHeader=u;exports.CardRoot=i;
2
- //# sourceMappingURL=card-D9xReN37.cjs.js.map
1
+ "use strict";const a=require("react/jsx-runtime"),e=require("react"),H=require("@chakra-ui/react"),v=require("@chakra-ui/react/styled-system"),j=require("./stack-CIN13EDn.cjs.js"),d=require("./extract-style-props-DGdckd6P.cjs.js"),{withProvider:q,withContext:P}=H.createSlotRecipeContext({key:"card"}),h=q("div","root"),N=P("div","header"),$=P("div","content"),l=e.createContext(void 0),i=({ref:o,children:s,...t})=>{const r=v.useSlotRecipe({key:"card"}),[n,c]=r.splitVariantProps(t),[y,S]=d.extractStyleProps(c),[R,p]=e.useState(null),[f,x]=e.useState(null),m=e.useMemo(()=>({setHeader:p,setContent:x}),[p,x]);return a.jsx(l.Provider,{value:m,children:a.jsxs(h,{ref:o,...n,...y,...S,children:[a.jsxs(j.Stack,{direction:"column",gap:"200",children:[R,f]}),s]})})};i.displayName="Card.Root";const u=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx(N,{...r,...n,children:o});return t.setHeader(c),()=>t.setHeader(null)}},[o,r,n,t]),null};u.displayName="Card.Header";const C=({children:o,...s})=>{const t=e.useContext(l),[r,n]=d.extractStyleProps(s);return e.useEffect(()=>{if(t){const c=a.jsx($,{...r,...n,children:o});return t.setContent(c),()=>t.setContent(null)}},[o,r,n,t]),null};C.displayName="Card.Content";const k={Root:i,Header:u,Content:C};exports.Card=k;exports.CardContent=C;exports.CardHeader=u;exports.CardRoot=i;
2
+ //# sourceMappingURL=card-DB6gUcAw.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-D9xReN37.cjs.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"uOAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,MACP,CAAC,EAMYC,EACXH,EAAgD,MAAO,MAAM,EAElDI,EACXH,EAAiD,MAAO,QAAQ,EAErDI,EACXJ,EAAkD,MAAO,SAAS,ECXvDK,EAAcC,EAAAA,cACzB,MACF,EAOaJ,EAAW,CAAC,CAAE,IAAAK,EAAK,SAAAC,EAAU,GAAGC,KAAuB,CAElE,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,OAAQ,EACtC,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAG/D,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE,CAACI,EAAYC,CAAS,EAAIC,EAAAA,SAAoB,IAAI,EAClD,CAACC,EAAaC,CAAU,EAAIF,EAAAA,SAAoB,IAAI,EAGpDG,EAAeC,EAAAA,QACnB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M,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EAEAxB,EAAY,YAAc,eChBnB,MAAM8B,EAAO,CAgBlB,KAAMhC,EAgBN,OAAQC,EAkBR,QAASC,CACX"}
1
+ {"version":3,"file":"card-DB6gUcAw.cjs.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"uOAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,MACP,CAAC,EAMYC,EACXH,EAAgD,MAAO,MAAM,EAElDI,EACXH,EAAiD,MAAO,QAAQ,EAErDI,EACXJ,EAAkD,MAAO,SAAS,ECXvDK,EAAcC,EAAAA,cACzB,MACF,EAOaJ,EAAW,CAAC,CAAE,IAAAK,EAAK,SAAAC,EAAU,GAAGC,KAAuB,CAElE,MAAMC,EAASC,EAAAA,cAAc,CAAE,IAAK,OAAQ,EACtC,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAG/D,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE,CAACI,EAAYC,CAAS,EAAIC,EAAAA,SAAoB,IAAI,EAClD,CAACC,EAAaC,CAAU,EAAIF,EAAAA,SAAoB,IAAI,EAGpDG,EAAeC,EAAAA,QACnB,KAAO,CACL,UAAAL,EACA,WAAAG,CAAA,GAEF,CAACH,EAAWG,CAAU,CAAA,EAGxB,OACEG,EAAAA,IAACnB,EAAY,SAAZ,CAAqB,MAAOiB,EAC3B,SAAAG,EAAAA,KAACC,EAAA,CACC,IAAAnB,EACC,GAAGK,EACH,GAAGE,EACH,GAAGC,EAGJ,SAAA,CAAAU,EAAAA,KAACE,EAAAA,MAAA,CAAM,UAAU,SAAS,IAAI,MAC3B,SAAA,CAAAV,EACAG,CAAA,EACH,EAGCZ,CAAA,CAAA,CAAA,EAEL,CAEJ,EAEAN,EAAS,YAAc,YCnDhB,MAAMC,EAAa,CAAC,CAAE,SAAAK,EAAU,GAAGC,KAA6B,CACrE,MAAMmB,EAAUC,EAAAA,WAAWxB,CAAW,EAGhC,CAACS,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBP,CAAK,EAE7DqB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACQ,EAAA,CAAgB,GAAGlB,EAAa,GAAGC,EACjC,SAAAP,EACH,EAGF,OAAAoB,EAAQ,UAAUG,CAAW,EAGtB,IAAMH,EAAQ,UAAU,IAAI,CACrC,CACF,EAAG,CAACpB,EAAUM,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EACAzB,EAAW,YAAc,cCvBlB,MAAMC,EAAc,CAAC,CAAE,SAAAI,EAAU,GAAGC,KAA8B,CACvE,MAAMmB,EAAUC,EAAAA,WAAWxB,CAAW,EAGhC,CAACS,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBP,CAAK,EAE7DqB,OAAAA,EAAAA,UAAU,IAAM,CACd,GAAIF,EAAS,CACX,MAAMG,EACJP,EAAAA,IAACS,EAAA,CAAiB,GAAGnB,EAAa,GAAGC,EAClC,SAAAP,EACH,EAGF,OAAAoB,EAAQ,WAAWG,CAAW,EAGvB,IAAMH,EAAQ,WAAW,IAAI,CACtC,CACF,EAAG,CAACpB,EAAUM,EAAYC,EAAiBa,CAAO,CAAC,EAE5C,IACT,EAEAxB,EAAY,YAAc,eChBnB,MAAM8B,EAAO,CAgBlB,KAAMhC,EAgBN,OAAQC,EAkBR,QAASC,CACX"}
@@ -3,7 +3,7 @@ import { createContext as N, useState as C, useMemo as k, useContext as u, useEf
3
3
  import { createSlotRecipeContext as E } from "@chakra-ui/react";
4
4
  import { useSlotRecipe as $ } from "@chakra-ui/react/styled-system";
5
5
  import { S as j } from "./stack-CoNreM7B.es.js";
6
- import { e as c } from "./extract-style-props-CJjpdqym.es.js";
6
+ import { e as c } from "./extract-style-props-CIoUvqFb.es.js";
7
7
  const { withProvider: w, withContext: f } = /* @__PURE__ */ E({
8
8
  key: "card"
9
9
  }), V = /* @__PURE__ */ w("div", "root"), b = /* @__PURE__ */ f("div", "header"), g = /* @__PURE__ */ f("div", "content"), d = /* @__PURE__ */ N(
@@ -112,4 +112,4 @@ export {
112
112
  P as b,
113
113
  y as c
114
114
  };
115
- //# sourceMappingURL=card-DSxEwCmQ.es.js.map
115
+ //# sourceMappingURL=card-ydiSozha.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-DSxEwCmQ.es.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAH,EAAgD,OAAO,MAAM,GAElDI,IACX,gBAAAH,EAAiD,OAAO,QAAQ,GAErDI,IACX,gBAAAJ,EAAkD,OAAO,SAAS,GCXvDK,IAAc,gBAAAC;AAAA,EACzB;AACF,GAOaJ,IAAW,CAAC,EAAE,KAAAK,GAAK,UAAAC,GAAU,GAAGC,QAAuB;AAElE,QAAMC,IAASC,EAAc,EAAE,KAAK,QAAQ,GACtC,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAG/D,CAACK,GAAYC,CAAe,IAAIC,EAAkBH,CAAe,GAEjE,CAACI,GAAYC,CAAS,IAAIC,EAAoB,IAAI,GAClD,CAACC,GAAaC,CAAU,IAAIF,EAAoB,IAAI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AAAP,GACH;AAGF,aAAAoB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACpB,GAAUM,GAAYC,GAAiBa,CAAO,CAAC,GAE5C;AACT;AAEAxB,EAAY,cAAc;AChBnB,MAAM8B,IAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBlB,MAAMhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBN,QAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBR,SAASC;AACX;"}
1
+ {"version":3,"file":"card-ydiSozha.es.js","sources":["../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"../../type-utils/slot-types\";\nimport type {\n CardContentSlotProps,\n CardHeaderSlotProps,\n CardRootSlotProps,\n} from \"./card.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"card\",\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot: SlotComponent<HTMLDivElement, CardRootSlotProps> =\n withProvider<HTMLDivElement, CardRootSlotProps>(\"div\", \"root\");\n\nexport const CardHeader: SlotComponent<HTMLDivElement, CardHeaderSlotProps> =\n withContext<HTMLDivElement, CardHeaderSlotProps>(\"div\", \"header\");\n\nexport const CardContent: SlotComponent<HTMLDivElement, CardContentSlotProps> =\n withContext<HTMLDivElement, CardContentSlotProps>(\"div\", \"content\");\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { extractStyleProps } from \"@/utils\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\n/**\n * Card.Root - The root component that provides context and styling for the card\n *\n * @supportsStyleProps\n */\nexport const CardRoot = ({ ref, children, ...props }: CardProps) => {\n // Standard pattern: First split recipe variants\n const recipe = useSlotRecipe({ key: \"card\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n\n // Standard pattern: Second extract style props from remaining\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...recipeProps}\n {...styleProps}\n {...functionalProps}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport { CardHeader as CardHeaderSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardHeaderProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Header - The header section of the card\n *\n * @supportsStyleProps\n */\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...styleProps} {...functionalProps}>\n {children}\n </CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport { CardContent as CardContentSlot } from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\nimport type { CardContentProps } from \"../card.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Card.Content - The main content area of the card\n *\n * @supportsStyleProps\n */\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n // Standard pattern: Extract and forward style props\n const [styleProps, functionalProps] = extractStyleProps(props);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...styleProps} {...functionalProps}>\n {children}\n </CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, styleProps, functionalProps, context]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot, CardHeader, CardContent } from \"./components\";\n\n/**\n * Card\n * ============================================================\n * A versatile container component that presents self-contained information\n * in a visually distinct way. Cards group related content and actions\n * together, making it easy to scan and interact with information.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/card}\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Card content goes here</Card.Content>\n * </Card.Root>\n * ```\n */\nexport const Card = {\n /**\n * # Card.Root\n *\n * The root component that provides context and styling for the card.\n * Must wrap all card parts (Header, Content) to coordinate their behavior.\n * Accepts styling variants for padding, border, elevation, and background.\n *\n * @example\n * ```tsx\n * <Card.Root cardPadding=\"md\" borderStyle=\"outlined\" elevation=\"elevated\">\n * <Card.Header>Title</Card.Header>\n * <Card.Content>Content</Card.Content>\n * </Card.Root>\n * ```\n */\n Root: CardRoot,\n /**\n * # Card.Header\n *\n * The header section of the card, typically containing the card title\n * or primary heading. Automatically positioned above the card content\n * in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Card Title</Card.Header>\n * <Card.Content>Content here</Card.Content>\n * </Card.Root>\n * ```\n */\n Header: CardHeader,\n /**\n * # Card.Content\n *\n * The main content area of the card. Contains the primary information,\n * body text, or interactive elements. Automatically positioned below\n * the card header in a consistent layout.\n *\n * @example\n * ```tsx\n * <Card.Root>\n * <Card.Header>Title</Card.Header>\n * <Card.Content>\n * <Text>This is the main card content.</Text>\n * </Card.Content>\n * </Card.Root>\n * ```\n */\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","ref","children","props","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IACX,gBAAAH,EAAgD,OAAO,MAAM,GAElDI,IACX,gBAAAH,EAAiD,OAAO,QAAQ,GAErDI,IACX,gBAAAJ,EAAkD,OAAO,SAAS,GCXvDK,IAAc,gBAAAC;AAAA,EACzB;AACF,GAOaJ,IAAW,CAAC,EAAE,KAAAK,GAAK,UAAAC,GAAU,GAAGC,QAAuB;AAElE,QAAMC,IAASC,EAAc,EAAE,KAAK,QAAQ,GACtC,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAG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,EAAkBP,CAAK;AAE7D,SAAAqB,EAAU,MAAM;AACd,QAAIF,GAAS;AACX,YAAMG,IACJ,gBAAAP,EAACS,GAAA,EAAiB,GAAGnB,GAAa,GAAGC,GAClC,UAAAP,GACH;AAGF,aAAAoB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACpB,GAAUM,GAAYC,GAAiBa,CAAO,CAAC,GAE5C;AACT;AAEAxB,EAAY,cAAc;AChBnB,MAAM8B,IAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBlB,MAAMhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBN,QAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBR,SAASC;AACX;"}
@@ -1,22 +1,22 @@
1
1
  import { jsx as P, jsxs as D, Fragment as j } from "react/jsx-runtime";
2
2
  import { useSlotRecipe as H } from "@chakra-ui/react/styled-system";
3
3
  import { Check as N, Remove as L } from "@commercetools/nimbus-icons";
4
- import { e as T } from "./extract-style-props-CJjpdqym.es.js";
4
+ import { e as T } from "./extract-style-props-CIoUvqFb.es.js";
5
5
  import { createSlotRecipeContext as W } from "@chakra-ui/react";
6
6
  import { a as z } from "./RSPContexts-DLgb84PF.es.js";
7
- import { $ as A, c as G, d as J, f as S, a as K } from "./utils-9vu7GUaz.es.js";
7
+ import { $ as A, c as G, d as J, f as S, a as K } from "./utils-B6pV5ewr.es.js";
8
8
  import { $ as Q } from "./Form-CXcEMuBf.es.js";
9
- import { a as V } from "./mergeProps-D1jjFfMs.es.js";
9
+ import { $ as V } from "./mergeProps-Dsl8k3Ig.es.js";
10
10
  import { $ as U } from "./filterDOMProps-BSVCO5jK.es.js";
11
11
  import { $ as X } from "./useObjectRef-CaJ5pgjX.es.js";
12
12
  import R, { useEffect as k, useMemo as B, useRef as Y, forwardRef as Z, useContext as ee, createContext as ie } from "react";
13
- import { $ as g, a as ae, b as O, c as de } from "./useFormValidation-DxDV9X1M.es.js";
14
- import { $ as te } from "./usePress-C_IPaF8I.es.js";
15
- import { $ as le } from "./useToggle-BZPMewLP.es.js";
13
+ import { $ as g, a as ae, b as O, c as de } from "./useFormValidation-BCVLtR0U.es.js";
14
+ import { $ as te } from "./usePress-BuLomD_X.es.js";
15
+ import { $ as le } from "./useToggle-DKP3zVOY.es.js";
16
16
  import { $ as q } from "./useToggleState-Uh0wTgdI.es.js";
17
- import { $ as oe } from "./useFocusRing-oMAqzr3e.es.js";
18
- import { $ as ne } from "./useHover-BtRK9g2L.es.js";
19
- import { $ as re } from "./VisuallyHidden-BIA5VRNP.es.js";
17
+ import { $ as oe } from "./useFocusRing-FPt2Rwil.es.js";
18
+ import { $ as ne } from "./useHover-BQRSM3qT.es.js";
19
+ import { $ as re } from "./VisuallyHidden-BLRzeMsq.es.js";
20
20
  function _(i, e, a) {
21
21
  let o = g({
22
22
  ...i,
@@ -218,4 +218,4 @@ he.displayName = "Checkbox";
218
218
  export {
219
219
  he as C
220
220
  };
221
- //# sourceMappingURL=checkbox-DMpI_oaX.es.js.map
221
+ //# sourceMappingURL=checkbox-DuPKJsWQ.es.js.map