@commercetools/nimbus 0.0.0-canary-20251203094041 → 0.0.0-canary-20251203100409
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.
- package/dist/chunks/{Button-BjcDZ5eb.es.js → Button-CmpJG0ec.es.js} +7 -7
- package/dist/chunks/{Button-BjcDZ5eb.es.js.map → Button-CmpJG0ec.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js → CollectionBuilder-BqQjeKfi.es.js} +2 -2
- package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js.map → CollectionBuilder-BqQjeKfi.es.js.map} +1 -1
- package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-Bpk0AwB2.es.js} +21 -21
- package/dist/chunks/{DateField-C5JgBb30.es.js.map → DateField-Bpk0AwB2.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-9m2POezC.es.js → DatePicker-CUW1A5A8.es.js} +17 -17
- package/dist/chunks/{DatePicker-9m2POezC.es.js.map → DatePicker-CUW1A5A8.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DcnmO0xr.es.js → Dialog-BYVU-i0Y.es.js} +24 -24
- package/dist/chunks/{Dialog-DcnmO0xr.es.js.map → Dialog-BYVU-i0Y.es.js.map} +1 -1
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js → FocusScope-bj_mamFe.es.js} +36 -36
- package/dist/chunks/{FocusScope-CqEZq7sr.es.js.map → FocusScope-bj_mamFe.es.js.map} +1 -1
- package/dist/chunks/{Group-BQc9LuMT.es.js → Group-C9jsb9_m.es.js} +8 -8
- package/dist/chunks/{Group-BQc9LuMT.es.js.map → Group-C9jsb9_m.es.js.map} +1 -1
- package/dist/chunks/{Header-CliQVNVa.es.js → Header-CNoClAau.es.js} +5 -5
- package/dist/chunks/{Header-CliQVNVa.es.js.map → Header-CNoClAau.es.js.map} +1 -1
- package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-D804NNml.es.js} +14 -14
- package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-D804NNml.es.js.map} +1 -1
- package/dist/chunks/{Input-Cmg08oRP.es.js → Input-aKSXZBAh.es.js} +5 -5
- package/dist/chunks/{Input-Cmg08oRP.es.js.map → Input-aKSXZBAh.es.js.map} +1 -1
- package/dist/chunks/{Label-DIseLESi.es.js → Label-Bu5lTMzy.es.js} +2 -2
- package/dist/chunks/{Label-DIseLESi.es.js.map → Label-Bu5lTMzy.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CcSs4yTw.es.js → ListBox-DYbGAoet.es.js} +15 -15
- package/dist/chunks/{ListBox-CcSs4yTw.es.js.map → ListBox-DYbGAoet.es.js.map} +1 -1
- package/dist/chunks/{Modal-3QPNDzpi.es.js → Modal-2TttSPy4.es.js} +7 -7
- package/dist/chunks/{Modal-3QPNDzpi.es.js.map → Modal-2TttSPy4.es.js.map} +1 -1
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js → OverlayArrow-qm-lnjhS.es.js} +2 -2
- package/dist/chunks/{OverlayArrow-BIjbCSXk.es.js.map → OverlayArrow-qm-lnjhS.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js → ProgressBar-DogfCeuX.es.js} +5 -5
- package/dist/chunks/{ProgressBar-Dm2Ge45l.es.js.map → ProgressBar-DogfCeuX.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js → SelectionManager-CXicxYqF.es.js} +10 -10
- package/dist/chunks/{SelectionManager-B0Cb1kHW.es.js.map → SelectionManager-CXicxYqF.es.js.map} +1 -1
- package/dist/chunks/{Separator-DP89PKAS.es.js → Separator-WCa1iR4U.es.js} +4 -4
- package/dist/chunks/{Separator-DP89PKAS.es.js.map → Separator-WCa1iR4U.es.js.map} +1 -1
- package/dist/chunks/{TextArea-CXEdUjgW.es.js → TextArea-JHqAZ7HD.es.js} +5 -5
- package/dist/chunks/{TextArea-CXEdUjgW.es.js.map → TextArea-JHqAZ7HD.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js → ToggleButton-B-feHlsu.es.js} +7 -7
- package/dist/chunks/{ToggleButton-BqW-X6iJ.es.js.map → ToggleButton-B-feHlsu.es.js.map} +1 -1
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js → VisuallyHidden-BIA5VRNP.es.js} +3 -3
- package/dist/chunks/{VisuallyHidden-BLRzeMsq.es.js.map → VisuallyHidden-BIA5VRNP.es.js.map} +1 -1
- package/dist/chunks/{accordion-qzbckNub.cjs.js → accordion-B978Ssd8.cjs.js} +2 -2
- package/dist/chunks/{accordion-qzbckNub.cjs.js.map → accordion-B978Ssd8.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BacJkt5n.es.js → accordion-_4Vtr930.es.js} +2 -2
- package/dist/chunks/{accordion-BacJkt5n.es.js.map → accordion-_4Vtr930.es.js.map} +1 -1
- package/dist/chunks/accordion.content-Bd2PESBz.cjs.js +2 -0
- package/dist/chunks/{accordion.content-Cslx-S6p.cjs.js.map → accordion.content-Bd2PESBz.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-SFS_lHjk.es.js → accordion.content-YkB30Nl0.es.js} +24 -23
- package/dist/chunks/{accordion.content-SFS_lHjk.es.js.map → accordion.content-YkB30Nl0.es.js.map} +1 -1
- package/dist/chunks/{alert-D6ENEy8f.cjs.js → alert-55tm3vfU.cjs.js} +2 -2
- package/dist/chunks/{alert-D6ENEy8f.cjs.js.map → alert-55tm3vfU.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CoJ8asOZ.es.js → alert-_J_dHFj_.es.js} +2 -2
- package/dist/chunks/{alert-CoJ8asOZ.es.js.map → alert-_J_dHFj_.es.js.map} +1 -1
- package/dist/chunks/badge-DUiqk6w9.es.js +17 -0
- package/dist/chunks/{badge-CgYpum7D.es.js.map → badge-DUiqk6w9.es.js.map} +1 -1
- package/dist/chunks/{button-CxL9YuuF.cjs.js → button-CvWz8q1N.cjs.js} +2 -2
- package/dist/chunks/{button-CxL9YuuF.cjs.js.map → button-CvWz8q1N.cjs.js.map} +1 -1
- package/dist/chunks/{button-DZew_Si4.es.js → button-DTxnOPiN.es.js} +6 -6
- package/dist/chunks/{button-DZew_Si4.es.js.map → button-DTxnOPiN.es.js.map} +1 -1
- package/dist/chunks/{calendar-CDVjB0zo.es.js → calendar-C0WVsTa4.es.js} +9 -9
- package/dist/chunks/{calendar-CDVjB0zo.es.js.map → calendar-C0WVsTa4.es.js.map} +1 -1
- package/dist/chunks/{calendar-Dx5LLOml.cjs.js → calendar-CMCE8As1.cjs.js} +2 -2
- package/dist/chunks/{calendar-Dx5LLOml.cjs.js.map → calendar-CMCE8As1.cjs.js.map} +1 -1
- package/dist/chunks/{card-DB6gUcAw.cjs.js → card-D9xReN37.cjs.js} +2 -2
- package/dist/chunks/{card-DB6gUcAw.cjs.js.map → card-D9xReN37.cjs.js.map} +1 -1
- package/dist/chunks/{card-ydiSozha.es.js → card-DSxEwCmQ.es.js} +2 -2
- package/dist/chunks/{card-ydiSozha.es.js.map → card-DSxEwCmQ.es.js.map} +1 -1
- package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js → checkbox-CdXKptM4.cjs.js} +2 -2
- package/dist/chunks/{checkbox-fwmjQ4Uk.cjs.js.map → checkbox-CdXKptM4.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-DuPKJsWQ.es.js → checkbox-DMpI_oaX.es.js} +10 -10
- package/dist/chunks/{checkbox-DuPKJsWQ.es.js.map → checkbox-DMpI_oaX.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js → collapsible-motion-CA8uQuKZ.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-BiF9lLAN.cjs.js.map → collapsible-motion-CA8uQuKZ.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js → collapsible-motion-Dw8EugiR.es.js} +5 -5
- package/dist/chunks/{collapsible-motion-B5YFRwO4.es.js.map → collapsible-motion-Dw8EugiR.es.js.map} +1 -1
- package/dist/chunks/{combobox-BobLAXh8.es.js → combobox-BMpAKWKs.es.js} +74 -74
- package/dist/chunks/{combobox-BobLAXh8.es.js.map → combobox-BMpAKWKs.es.js.map} +1 -1
- package/dist/chunks/{combobox-CEyLEi9S.cjs.js → combobox-DPZmJZJF.cjs.js} +2 -2
- package/dist/chunks/{combobox-CEyLEi9S.cjs.js.map → combobox-DPZmJZJF.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-DpRmr71N.cjs.js → data-table-B5tlvmbJ.cjs.js} +2 -2
- package/dist/chunks/{data-table-DpRmr71N.cjs.js.map → data-table-B5tlvmbJ.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-uvxFiIVK.es.js → data-table-Ch0tFro2.es.js} +37 -37
- package/dist/chunks/{data-table-uvxFiIVK.es.js.map → data-table-Ch0tFro2.es.js.map} +1 -1
- package/dist/chunks/{date-input-C_dX1XXD.es.js → date-input-COUAItnm.es.js} +4 -4
- package/dist/chunks/{date-input-C_dX1XXD.es.js.map → date-input-COUAItnm.es.js.map} +1 -1
- package/dist/chunks/{date-input-BDkIVUEJ.cjs.js → date-input-lsbLlxie.cjs.js} +2 -2
- package/dist/chunks/{date-input-BDkIVUEJ.cjs.js.map → date-input-lsbLlxie.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-Cq8qD5Ff.es.js → date-picker-B5ZR0GJ3.es.js} +14 -14
- package/dist/chunks/{date-picker-Cq8qD5Ff.es.js.map → date-picker-B5ZR0GJ3.es.js.map} +1 -1
- package/dist/chunks/{date-picker-DODeu1jH.cjs.js → date-picker-JA1Mh2WY.cjs.js} +2 -2
- package/dist/chunks/{date-picker-DODeu1jH.cjs.js.map → date-picker-JA1Mh2WY.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Bf14iS4A.es.js → date-range-picker-CMhOBPtp.es.js} +14 -14
- package/dist/chunks/{date-range-picker-Bf14iS4A.es.js.map → date-range-picker-CMhOBPtp.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js → date-range-picker-field-DaoP69E2.es.js} +3 -3
- package/dist/chunks/{date-range-picker-field-CqG7wwZc.es.js.map → date-range-picker-field-DaoP69E2.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js → date-range-picker-field-UFUo2JuI.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-field-Bvvmu7oL.cjs.js.map → date-range-picker-field-UFUo2JuI.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js → date-range-picker-yzo8osGE.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-D1gUgq_6.cjs.js.map → date-range-picker-yzo8osGE.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-CS8h46ov.cjs.js → dialog-DNl_apyv.cjs.js} +2 -2
- package/dist/chunks/{dialog-CS8h46ov.cjs.js.map → dialog-DNl_apyv.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DUZOjwNj.es.js → dialog-cV8_ifAL.es.js} +7 -7
- package/dist/chunks/{dialog-DUZOjwNj.es.js.map → dialog-cV8_ifAL.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-CUcHb55R.cjs.js → draggable-list-4w8RgF1w.cjs.js} +2 -2
- package/dist/chunks/{draggable-list-CUcHb55R.cjs.js.map → draggable-list-4w8RgF1w.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-LtLBvlhK.es.js → draggable-list-B6YVD64W.es.js} +22 -22
- package/dist/chunks/{draggable-list-LtLBvlhK.es.js.map → draggable-list-B6YVD64W.es.js.map} +1 -1
- package/dist/chunks/{drawer-DZt4nA9C.cjs.js → drawer-BcgvPugV.cjs.js} +2 -2
- package/dist/chunks/{drawer-DZt4nA9C.cjs.js.map → drawer-BcgvPugV.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-YCoDb7TU.es.js → drawer-ByFci-Lp.es.js} +8 -8
- package/dist/chunks/{drawer-YCoDb7TU.es.js.map → drawer-ByFci-Lp.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CIoUvqFb.es.js → extract-style-props-CJjpdqym.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CIoUvqFb.es.js.map → extract-style-props-CJjpdqym.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js → extract-style-props-DL4zPQSN.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-DGdckd6P.cjs.js.map → extract-style-props-DL4zPQSN.cjs.js.map} +1 -1
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js → focusSafely-RvsgqoUt.es.js} +3 -3
- package/dist/chunks/{focusSafely-Cwb0Tyy6.es.js.map → focusSafely-RvsgqoUt.es.js.map} +1 -1
- package/dist/chunks/{form-field-CozKmli4.cjs.js → form-field-D36wdkEj.cjs.js} +2 -2
- package/dist/chunks/{form-field-CozKmli4.cjs.js.map → form-field-D36wdkEj.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-Df4_JmSU.es.js → form-field-Po_Y_5wQ.es.js} +4 -4
- package/dist/chunks/{form-field-Df4_JmSU.es.js.map → form-field-Po_Y_5wQ.es.js.map} +1 -1
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js → getScrollParent-DlqhSzBC.es.js} +2 -2
- package/dist/chunks/{getScrollParent-MZgwmCKW.es.js.map → getScrollParent-DlqhSzBC.es.js.map} +1 -1
- package/dist/chunks/{group-CCBgdph2.es.js → group-jGsHh1w7.es.js} +2 -2
- package/dist/chunks/{group-CCBgdph2.es.js.map → group-jGsHh1w7.es.js.map} +1 -1
- package/dist/chunks/{heading-nfjoR4vL.es.js → heading-CwsT9zp_.es.js} +2 -2
- package/dist/chunks/{heading-nfjoR4vL.es.js.map → heading-CwsT9zp_.es.js.map} +1 -1
- package/dist/chunks/{icon-button-BPzrehNJ.cjs.js → icon-button-ClTyaPhB.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BPzrehNJ.cjs.js.map → icon-button-ClTyaPhB.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-hZxuTfRy.es.js → icon-button-Cnas4bnJ.es.js} +2 -2
- package/dist/chunks/{icon-button-hZxuTfRy.es.js.map → icon-button-Cnas4bnJ.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js → icon-toggle-button-3hAIS1Mt.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BtyMh4Ys.es.js.map → icon-toggle-button-3hAIS1Mt.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js → icon-toggle-button-B8ycCaqk.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DzoifEyi.cjs.js.map → icon-toggle-button-B8ycCaqk.cjs.js.map} +1 -1
- package/dist/chunks/{index-CqOsUykV.es.js → index-CmfW40Im.es.js} +185 -185
- package/dist/chunks/index-CmfW40Im.es.js.map +1 -0
- package/dist/chunks/{index-DdyUbTzB.cjs.js → index-DIQn6o2R.cjs.js} +3 -3
- package/dist/chunks/index-DIQn6o2R.cjs.js.map +1 -0
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js → kbd-B11Qoo4k.es.js} +2 -2
- package/dist/chunks/{kbd-Bl5Ncm2d.es.js.map → kbd-B11Qoo4k.es.js.map} +1 -1
- package/dist/chunks/{link-BMUyXcmC.es.js → link-Db65JZE6.es.js} +9 -9
- package/dist/chunks/{link-BMUyXcmC.es.js.map → link-Db65JZE6.es.js.map} +1 -1
- package/dist/chunks/{loading-spinner-DF6c3rBM.es.js → loading-spinner-FBgHlqXQ.es.js} +3 -3
- package/dist/chunks/{loading-spinner-DF6c3rBM.es.js.map → loading-spinner-FBgHlqXQ.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BTtMYX2e.es.js → localized-field-BqedmRuV.es.js} +25 -25
- package/dist/chunks/{localized-field-BTtMYX2e.es.js.map → localized-field-BqedmRuV.es.js.map} +1 -1
- package/dist/chunks/{localized-field-CKzOQS8a.cjs.js → localized-field-BudXks_7.cjs.js} +2 -2
- package/dist/chunks/{localized-field-CKzOQS8a.cjs.js.map → localized-field-BudXks_7.cjs.js.map} +1 -1
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js → make-element-focusable-DVfaQntJ.es.js} +6 -6
- package/dist/chunks/{make-element-focusable-7-aXFtDJ.es.js.map → make-element-focusable-DVfaQntJ.es.js.map} +1 -1
- package/dist/chunks/{menu-DbUVggzL.cjs.js → menu-DGuxJIC6.cjs.js} +2 -2
- package/dist/chunks/{menu-DbUVggzL.cjs.js.map → menu-DGuxJIC6.cjs.js.map} +1 -1
- package/dist/chunks/{menu-9gmr8hQj.es.js → menu-DMtIo54m.es.js} +6 -6
- package/dist/chunks/{menu-9gmr8hQj.es.js.map → menu-DMtIo54m.es.js.map} +1 -1
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js → mergeProps-D1jjFfMs.es.js} +6 -6
- package/dist/chunks/{mergeProps-Dsl8k3Ig.es.js.map → mergeProps-D1jjFfMs.es.js.map} +1 -1
- package/dist/chunks/{money-input-BelTJgi2.cjs.js → money-input-B3fxVHDJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-BelTJgi2.cjs.js.map → money-input-B3fxVHDJ.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-DiuaCRAq.es.js → money-input-BHveN9w0.es.js} +9 -9
- package/dist/chunks/{money-input-DiuaCRAq.es.js.map → money-input-BHveN9w0.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-B8gMfNW7.es.js → money-input-field-CsChyLci.es.js} +3 -3
- package/dist/chunks/{money-input-field-B8gMfNW7.es.js.map → money-input-field-CsChyLci.es.js.map} +1 -1
- package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js → money-input-field-FVpMq6tJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-field-tgZ_nN7r.cjs.js.map → money-input-field-FVpMq6tJ.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js → multiline-text-input-C5pMVuYM.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-DJeOCh8z.cjs.js.map → multiline-text-input-C5pMVuYM.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js → multiline-text-input-CTop15Kc.es.js} +5 -5
- package/dist/chunks/{multiline-text-input-fb-1IzTw.es.js.map → multiline-text-input-CTop15Kc.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js → multiline-text-input-field-B3eQzuAg.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-field-EiZALVr9.cjs.js.map → multiline-text-input-field-B3eQzuAg.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js → multiline-text-input-field-D_M3z9GG.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-field-DIjx7INz.es.js.map → multiline-text-input-field-D_M3z9GG.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-XoinDagw.es.js → nimbus-provider-BZuDgONW.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-XoinDagw.es.js.map → nimbus-provider-BZuDgONW.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js → nimbus-provider-COP-MGlb.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-BZ1AjgyS.cjs.js.map → nimbus-provider-COP-MGlb.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-DKGtPqlr.es.js → number-input-CLoBlpiD.es.js} +14 -14
- package/dist/chunks/{number-input-DKGtPqlr.es.js.map → number-input-CLoBlpiD.es.js.map} +1 -1
- package/dist/chunks/{number-input-BY8SeNuT.cjs.js → number-input-Dj9jPceO.cjs.js} +2 -2
- package/dist/chunks/{number-input-BY8SeNuT.cjs.js.map → number-input-Dj9jPceO.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-field-DnIN5wjh.es.js → number-input-field-BKxrwzEz.es.js} +3 -3
- package/dist/chunks/{number-input-field-DnIN5wjh.es.js.map → number-input-field-BKxrwzEz.es.js.map} +1 -1
- package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js → number-input-field-DYJa53Un.cjs.js} +2 -2
- package/dist/chunks/{number-input-field-l6_xjbpB.cjs.js.map → number-input-field-DYJa53Un.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-Cks7-saP.cjs.js → pagination-DNTHTYbV.cjs.js} +2 -2
- package/dist/chunks/{pagination-Cks7-saP.cjs.js.map → pagination-DNTHTYbV.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-DAPyY6Zk.es.js → pagination-WCa7N8As.es.js} +5 -5
- package/dist/chunks/{pagination-DAPyY6Zk.es.js.map → pagination-WCa7N8As.es.js.map} +1 -1
- package/dist/chunks/{password-input-BXrS2-3k.es.js → password-input-B1aemp6U.es.js} +4 -4
- package/dist/chunks/{password-input-BXrS2-3k.es.js.map → password-input-B1aemp6U.es.js.map} +1 -1
- package/dist/chunks/{password-input-DG0_r6H_.cjs.js → password-input-CWPQT3AJ.cjs.js} +2 -2
- package/dist/chunks/{password-input-DG0_r6H_.cjs.js.map → password-input-CWPQT3AJ.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-DMQAWO16.cjs.js → password-input-field-C3ct8JqT.cjs.js} +2 -2
- package/dist/chunks/{password-input-field-DMQAWO16.cjs.js.map → password-input-field-C3ct8JqT.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-field-BIH25kaL.es.js → password-input-field-DGjkta8d.es.js} +3 -3
- package/dist/chunks/{password-input-field-BIH25kaL.es.js.map → password-input-field-DGjkta8d.es.js.map} +1 -1
- package/dist/chunks/{popover-zNeVW5hN.es.js → popover-B1aRr1CU.es.js} +2 -2
- package/dist/chunks/{popover-zNeVW5hN.es.js.map → popover-B1aRr1CU.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js → progress-bar-Dny28r_G.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-DG9JB9bR.cjs.js.map → progress-bar-Dny28r_G.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DYbU-4Vi.es.js → progress-bar-VQAbvri1.es.js} +4 -4
- package/dist/chunks/{progress-bar-DYbU-4Vi.es.js.map → progress-bar-VQAbvri1.es.js.map} +1 -1
- package/dist/chunks/{radio-input-tsryyQ63.es.js → radio-input-6FtNHf0N.es.js} +42 -42
- package/dist/chunks/{radio-input-tsryyQ63.es.js.map → radio-input-6FtNHf0N.es.js.map} +1 -1
- package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js → radio-input-CIqZ2V6i.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CA4Y8LF8.cjs.js.map → radio-input-CIqZ2V6i.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js → range-calendar-Bjst1nRD.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-CFfa_h1A.cjs.js.map → range-calendar-Bjst1nRD.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-CCKqVOdF.es.js → range-calendar-Cumbca_6.es.js} +10 -10
- package/dist/chunks/{range-calendar-CCKqVOdF.es.js.map → range-calendar-Cumbca_6.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CoIBknUh.es.js → rich-text-input-C7jglLdt.es.js} +13 -13
- package/dist/chunks/{rich-text-input-CoIBknUh.es.js.map → rich-text-input-C7jglLdt.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js → rich-text-input-CpQVkFRl.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-D7zyqfNG.cjs.js.map → rich-text-input-CpQVkFRl.cjs.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DM_clkPu.es.js → scoped-search-input-C3N9xhiG.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DM_clkPu.es.js.map → scoped-search-input-C3N9xhiG.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js → scoped-search-input-CIUdBb04.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-B7lz2Odg.cjs.js.map → scoped-search-input-CIUdBb04.cjs.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js → scrollIntoView-CQMm8-SR.es.js} +5 -5
- package/dist/chunks/{scrollIntoView-B7D07fJk.es.js.map → scrollIntoView-CQMm8-SR.es.js.map} +1 -1
- package/dist/chunks/{search-input-Cq5nPtbF.cjs.js → search-input-B2eu94HO.cjs.js} +2 -2
- package/dist/chunks/{search-input-Cq5nPtbF.cjs.js.map → search-input-B2eu94HO.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-field-zzVNsLn3.es.js → search-input-field-Bt94J1Xu.es.js} +3 -3
- package/dist/chunks/{search-input-field-zzVNsLn3.es.js.map → search-input-field-Bt94J1Xu.es.js.map} +1 -1
- package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js → search-input-field-CiEbfoqx.cjs.js} +2 -2
- package/dist/chunks/{search-input-field-4wVwDFiQ.cjs.js.map → search-input-field-CiEbfoqx.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-CaJyfxW-.es.js → search-input-xfX98rpy.es.js} +11 -11
- package/dist/chunks/{search-input-CaJyfxW-.es.js.map → search-input-xfX98rpy.es.js.map} +1 -1
- package/dist/chunks/{select-C4gMn8gq.es.js → select-6rfY6mk9.es.js} +21 -21
- package/dist/chunks/{select-C4gMn8gq.es.js.map → select-6rfY6mk9.es.js.map} +1 -1
- package/dist/chunks/{select-AaF9VDYS.cjs.js → select-OOmONm5T.cjs.js} +2 -2
- package/dist/chunks/{select-AaF9VDYS.cjs.js.map → select-OOmONm5T.cjs.js.map} +1 -1
- package/dist/chunks/{separator-Bc2_grIr.es.js → separator-ByExde_2.es.js} +4 -4
- package/dist/chunks/{separator-Bc2_grIr.es.js.map → separator-ByExde_2.es.js.map} +1 -1
- package/dist/chunks/{separator-BadgCkrO.cjs.js → separator-DoOgit09.cjs.js} +2 -2
- package/dist/chunks/{separator-BadgCkrO.cjs.js.map → separator-DoOgit09.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-DT1Anaq1.es.js → split-button-CcfdSUWT.es.js} +4 -4
- package/dist/chunks/{split-button-DT1Anaq1.es.js.map → split-button-CcfdSUWT.es.js.map} +1 -1
- package/dist/chunks/{split-button-CbGHEymu.cjs.js → split-button-DtNcxPjS.cjs.js} +2 -2
- package/dist/chunks/{split-button-CbGHEymu.cjs.js.map → split-button-DtNcxPjS.cjs.js.map} +1 -1
- package/dist/chunks/{switch-BxR5TD9Q.cjs.js → switch-Bttbn3oV.cjs.js} +2 -2
- package/dist/chunks/{switch-BxR5TD9Q.cjs.js.map → switch-Bttbn3oV.cjs.js.map} +1 -1
- package/dist/chunks/{switch-1tLtDt7M.es.js → switch-ZhX47Ufo.es.js} +7 -7
- package/dist/chunks/{switch-1tLtDt7M.es.js.map → switch-ZhX47Ufo.es.js.map} +1 -1
- package/dist/chunks/{tabs-CgoUJCIx.es.js → tabs-B7qKxKnI.es.js} +13 -13
- package/dist/chunks/{tabs-CgoUJCIx.es.js.map → tabs-B7qKxKnI.es.js.map} +1 -1
- package/dist/chunks/{tabs-C4EfvdVt.cjs.js → tabs-DWMVR5Mq.cjs.js} +2 -2
- package/dist/chunks/{tabs-C4EfvdVt.cjs.js.map → tabs-DWMVR5Mq.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-DauMcIZX.es.js → tag-group-7rUsjnet.es.js} +19 -19
- package/dist/chunks/{tag-group-DauMcIZX.es.js.map → tag-group-7rUsjnet.es.js.map} +1 -1
- package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js → tag-group-BkoC3DAk.cjs.js} +2 -2
- package/dist/chunks/{tag-group-Bu4IPJY2.cjs.js.map → tag-group-BkoC3DAk.cjs.js.map} +1 -1
- package/dist/chunks/{text-CIb_VDvO.es.js → text-DvqDjbwb.es.js} +2 -2
- package/dist/chunks/{text-CIb_VDvO.es.js.map → text-DvqDjbwb.es.js.map} +1 -1
- package/dist/chunks/{text-input-BpdFm4J-.es.js → text-input-D_3g3kxm.es.js} +7 -7
- package/dist/chunks/{text-input-BpdFm4J-.es.js.map → text-input-D_3g3kxm.es.js.map} +1 -1
- package/dist/chunks/{text-input-YkL8bx31.cjs.js → text-input-Dv2HkOIG.cjs.js} +2 -2
- package/dist/chunks/{text-input-YkL8bx31.cjs.js.map → text-input-Dv2HkOIG.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-field-B0WhjD0U.es.js → text-input-field-DWpejDcH.es.js} +3 -3
- package/dist/chunks/{text-input-field-B0WhjD0U.es.js.map → text-input-field-DWpejDcH.es.js.map} +1 -1
- package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js → text-input-field-vYxpIFXm.cjs.js} +2 -2
- package/dist/chunks/{text-input-field-CPLVnqlr.cjs.js.map → text-input-field-vYxpIFXm.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-m8zeR_8L.cjs.js → time-input-CMAP5QkL.cjs.js} +2 -2
- package/dist/chunks/{time-input-m8zeR_8L.cjs.js.map → time-input-CMAP5QkL.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-DMyhDH5j.es.js → time-input-CZWkAErU.es.js} +4 -4
- package/dist/chunks/{time-input-DMyhDH5j.es.js.map → time-input-CZWkAErU.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-CHZm868U.cjs.js → toggle-button-BnDf2yfy.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-CHZm868U.cjs.js.map → toggle-button-BnDf2yfy.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-B2uXtvzj.es.js → toggle-button-QMUjECJO.es.js} +4 -4
- package/dist/chunks/{toggle-button-B2uXtvzj.es.js.map → toggle-button-QMUjECJO.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js → toggle-button-group-P0oS-q6h.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-BWpmMkEz.es.js.map → toggle-button-group-P0oS-q6h.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BAETJxml.cjs.js → toolbar-Bg2OUmFi.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BAETJxml.cjs.js.map → toolbar-Bg2OUmFi.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-BnS73QeG.es.js → toolbar-C3GiZF_9.es.js} +6 -6
- package/dist/chunks/{toolbar-BnS73QeG.es.js.map → toolbar-C3GiZF_9.es.js.map} +1 -1
- package/dist/chunks/{tooltip-D3QrrizN.es.js → tooltip-CzEuq_Qi.es.js} +7 -7
- package/dist/chunks/{tooltip-D3QrrizN.es.js.map → tooltip-CzEuq_Qi.es.js.map} +1 -1
- package/dist/chunks/{useButton-CiPiehgC.es.js → useButton-B2TbwHSy.es.js} +4 -4
- package/dist/chunks/{useButton-CiPiehgC.es.js.map → useButton-B2TbwHSy.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-CO08GpLe.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js.map → useDateFormatter-CO08GpLe.es.js.map} +1 -1
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js → useDisclosureState-BqxwXawT.es.js} +3 -3
- package/dist/chunks/{useDisclosureState-CWZTR2xM.es.js.map → useDisclosureState-BqxwXawT.es.js.map} +1 -1
- package/dist/chunks/{useEvent-CRo5BZDX.es.js → useEvent-D8bTsAyx.es.js} +6 -6
- package/dist/chunks/{useEvent-CRo5BZDX.es.js.map → useEvent-D8bTsAyx.es.js.map} +1 -1
- package/dist/chunks/{useField-CHrpmkxe.es.js → useField-BfW84CS4.es.js} +8 -8
- package/dist/chunks/{useField-CHrpmkxe.es.js.map → useField-BfW84CS4.es.js.map} +1 -1
- package/dist/chunks/{useFocus-CrgTusM3.es.js → useFocus-TCNvrvTC.es.js} +6 -6
- package/dist/chunks/{useFocus-CrgTusM3.es.js.map → useFocus-TCNvrvTC.es.js.map} +1 -1
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js → useFocusRing-oMAqzr3e.es.js} +4 -4
- package/dist/chunks/{useFocusRing-FPt2Rwil.es.js.map → useFocusRing-oMAqzr3e.es.js.map} +1 -1
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js → useFocusVisible-Uw6yFmFY.es.js} +6 -6
- package/dist/chunks/{useFocusVisible-B3HmFL2Q.es.js.map → useFocusVisible-Uw6yFmFY.es.js.map} +1 -1
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js → useFocusWithin-nAsP7Ru3.es.js} +6 -6
- package/dist/chunks/{useFocusWithin-EFOG-Jn1.es.js.map → useFocusWithin-nAsP7Ru3.es.js.map} +1 -1
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js → useFocusable-Bm-DQaak.es.js} +5 -5
- package/dist/chunks/{useFocusable-Cs6i58WP.es.js.map → useFocusable-Bm-DQaak.es.js.map} +1 -1
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js → useFormReset-C52dSDoe.es.js} +2 -2
- package/dist/chunks/{useFormReset-BGuIA_u2.es.js.map → useFormReset-C52dSDoe.es.js.map} +1 -1
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js → useFormValidation-DxDV9X1M.es.js} +3 -3
- package/dist/chunks/{useFormValidation-BCVLtR0U.es.js.map → useFormValidation-DxDV9X1M.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-CjGTTOtc.es.js → useGridListItem-DTjO497o.es.js} +10 -10
- package/dist/chunks/{useGridListItem-CjGTTOtc.es.js.map → useGridListItem-DTjO497o.es.js.map} +1 -1
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js → useHasTabbableChild-DemFbZRn.es.js} +3 -3
- package/dist/chunks/{useHasTabbableChild-DXq72IE3.es.js.map → useHasTabbableChild-DemFbZRn.es.js.map} +1 -1
- package/dist/chunks/{useHover-BQRSM3qT.es.js → useHover-BtRK9g2L.es.js} +2 -2
- package/dist/chunks/{useHover-BQRSM3qT.es.js.map → useHover-BtRK9g2L.es.js.map} +1 -1
- package/dist/chunks/{useLabel-DQaRD22u.es.js → useLabel-DfbcmKTa.es.js} +5 -5
- package/dist/chunks/{useLabel-DQaRD22u.es.js.map → useLabel-DfbcmKTa.es.js.map} +1 -1
- package/dist/chunks/{useLabels-BDqWMehi.es.js → useLabels-Gn8v9XZB.es.js} +2 -2
- package/dist/chunks/{useLabels-BDqWMehi.es.js.map → useLabels-Gn8v9XZB.es.js.map} +1 -1
- package/dist/chunks/{useListState-CRfmjiWx.es.js → useListState-D9k6HiWm.es.js} +2 -2
- package/dist/chunks/{useListState-CRfmjiWx.es.js.map → useListState-D9k6HiWm.es.js.map} +1 -1
- package/dist/chunks/{usePress-BuLomD_X.es.js → usePress-C_IPaF8I.es.js} +6 -6
- package/dist/chunks/{usePress-BuLomD_X.es.js.map → usePress-C_IPaF8I.es.js.map} +1 -1
- package/dist/chunks/{useProgressBar--OvVKto2.es.js → useProgressBar-DCj794Zv.es.js} +7 -7
- package/dist/chunks/{useProgressBar--OvVKto2.es.js.map → useProgressBar-DCj794Zv.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js → useSingleSelectListState-C_tE7a5E.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-DFR33TSw.es.js.map → useSingleSelectListState-C_tE7a5E.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-BiQ20B5n.es.js} +15 -15
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-BiQ20B5n.es.js.map} +1 -1
- package/dist/chunks/{useSyncRef-BpLviItW.es.js → useSyncRef-DmY05o2G.es.js} +2 -2
- package/dist/chunks/{useSyncRef-BpLviItW.es.js.map → useSyncRef-DmY05o2G.es.js.map} +1 -1
- package/dist/chunks/{useTextField-yuaT8-G4.es.js → useTextField-9WuJfc9u.es.js} +7 -7
- package/dist/chunks/{useTextField-yuaT8-G4.es.js.map → useTextField-9WuJfc9u.es.js.map} +1 -1
- package/dist/chunks/{useToggle-DKP3zVOY.es.js → useToggle-BZPMewLP.es.js} +5 -5
- package/dist/chunks/{useToggle-DKP3zVOY.es.js.map → useToggle-BZPMewLP.es.js.map} +1 -1
- package/dist/chunks/{useToolbar-CbJkugif.es.js → useToolbar-C673xD3E.es.js} +3 -3
- package/dist/chunks/{useToolbar-CbJkugif.es.js.map → useToolbar-C673xD3E.es.js.map} +1 -1
- package/dist/chunks/{utils-B6pV5ewr.es.js → utils-9vu7GUaz.es.js} +12 -12
- package/dist/chunks/{utils-B6pV5ewr.es.js.map → utils-9vu7GUaz.es.js.map} +1 -1
- package/dist/chunks/{utils-oAGBWzI5.es.js → utils-Bl-3nKLa.es.js} +14 -14
- package/dist/chunks/{utils-oAGBWzI5.es.js.map → utils-Bl-3nKLa.es.js.map} +1 -1
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js → visually-hidden-m5QY9YV7.es.js} +2 -2
- package/dist/chunks/{visually-hidden-Dj5CT-u_.es.js.map → visually-hidden-m5QY9YV7.es.js.map} +1 -1
- package/dist/components/accordion/accordion.recipe.d.ts +1 -1
- package/dist/components/accordion/accordion.slots.d.ts +5 -5
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.recipe.d.ts +1 -1
- package/dist/components/alert/alert.slots.d.ts +3 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.slots.d.ts +1 -1
- package/dist/components/badge/badge.slots.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.slots.d.ts +8 -8
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.recipe.d.ts +1 -1
- package/dist/components/combobox/combobox.slots.d.ts +9 -9
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.slots.d.ts +12 -12
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input/date-input.slots.d.ts +5 -5
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
- package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
- package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog/dialog.slots.d.ts +9 -9
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/drawer.slots.d.ts +10 -10
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +7 -7
- package/dist/components/form-field/form-field.recipe.d.ts +1 -1
- package/dist/components/form-field/form-field.slots.d.ts +2 -2
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link/link.slots.d.ts +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/menu/menu.recipe.d.ts +1 -1
- package/dist/components/money-input/money-input.slots.d.ts +6 -6
- package/dist/components/money-input-field.cjs +1 -1
- package/dist/components/money-input-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
- package/dist/components/multiline-text-input-field.cjs +1 -1
- package/dist/components/multiline-text-input-field.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.slots.d.ts +6 -6
- package/dist/components/number-input-field.cjs +1 -1
- package/dist/components/number-input-field.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input-field.cjs +1 -1
- package/dist/components/password-input-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +7 -7
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar/progress-bar.slots.d.ts +4 -4
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input-field.cjs +1 -1
- package/dist/components/search-input-field.es.js +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.slots.d.ts +7 -7
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/split-button.slots.d.ts +3 -3
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch/switch.slots.d.ts +3 -3
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +1 -1
- package/dist/components/tabs/tabs.slots.d.ts +3 -3
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input/time-input.slots.d.ts +5 -5
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.es.js +2 -2
- package/dist/components/visually-hidden.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +64 -64
- package/dist/theme/slot-recipes/index.d.ts +8 -8
- package/package.json +5 -5
- package/dist/chunks/accordion.content-Cslx-S6p.cjs.js +0 -2
- package/dist/chunks/badge-CgYpum7D.es.js +0 -17
- package/dist/chunks/index-CqOsUykV.es.js.map +0 -1
- package/dist/chunks/index-DdyUbTzB.cjs.js.map +0 -1
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { jsx as i, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { useSlotRecipe as _ } from "@chakra-ui/react/styled-system";
|
|
3
|
-
import { e as p } from "./extract-style-props-
|
|
3
|
+
import { e as p } from "./extract-style-props-CJjpdqym.es.js";
|
|
4
4
|
import c, { useMemo as m, useEffect as j, forwardRef as P, createContext as $, useContext as D } from "react";
|
|
5
5
|
import { KeyboardArrowRight as T } from "@commercetools/nimbus-icons";
|
|
6
|
-
import { $ as w, a as G } from "./Button-
|
|
6
|
+
import { $ as w, a as G } from "./Button-CmpJG0ec.es.js";
|
|
7
7
|
import { Flex as z } from "@chakra-ui/react/flex";
|
|
8
8
|
import { createSlotRecipeContext as B } from "@chakra-ui/react";
|
|
9
|
-
import { a as g, $ as O, e as A, g as q, d as J } from "./utils-
|
|
10
|
-
import {
|
|
9
|
+
import { a as g, $ as O, e as A, g as q, d as J } from "./utils-9vu7GUaz.es.js";
|
|
10
|
+
import { $ as L, a as R } from "./mergeProps-D1jjFfMs.es.js";
|
|
11
11
|
import { $ as C } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
12
12
|
import { $ as Q } from "./useControlledState-u436Wbp1.es.js";
|
|
13
|
-
import { $ as U, a as X } from "./useDisclosureState-
|
|
14
|
-
import { $ as S } from "./useFocusRing-
|
|
15
|
-
|
|
13
|
+
import { $ as U, a as X } from "./useDisclosureState-BqxwXawT.es.js";
|
|
14
|
+
import { $ as S } from "./useFocusRing-oMAqzr3e.es.js";
|
|
15
|
+
const { withProvider: Y, withContext: f } = /* @__PURE__ */ B({
|
|
16
|
+
key: "accordion"
|
|
17
|
+
}), Z = /* @__PURE__ */ Y("div", "root"), k = /* @__PURE__ */ f("div", "disclosure"), ee = /* @__PURE__ */ f("button", "trigger"), te = /* @__PURE__ */ f("div", "panel"), oe = /* @__PURE__ */ f("div", "accordionTitle"), h = /* @__PURE__ */ f("div", "headerContentRight");
|
|
18
|
+
function de(o) {
|
|
16
19
|
let { allowsMultipleExpanded: e = !1, isDisabled: s = !1 } = o, [t, a] = Q(m(() => o.expandedKeys ? new Set(o.expandedKeys) : void 0, [
|
|
17
20
|
o.expandedKeys
|
|
18
21
|
]), m(() => o.defaultExpandedKeys ? new Set(o.defaultExpandedKeys) : /* @__PURE__ */ new Set(), [
|
|
@@ -38,8 +41,8 @@ function Y(o) {
|
|
|
38
41
|
}
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
|
-
const K = /* @__PURE__ */ $(null),
|
|
42
|
-
let t =
|
|
44
|
+
const K = /* @__PURE__ */ $(null), ae = /* @__PURE__ */ P(function(e, s) {
|
|
45
|
+
let t = de(e), a = g({
|
|
43
46
|
...e,
|
|
44
47
|
defaultClassName: "react-aria-DisclosureGroup",
|
|
45
48
|
values: {
|
|
@@ -57,8 +60,8 @@ const K = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ P(function(e, s) {
|
|
|
57
60
|
}, /* @__PURE__ */ c.createElement(K.Provider, {
|
|
58
61
|
value: t
|
|
59
62
|
}, a.children));
|
|
60
|
-
}),
|
|
61
|
-
[e, s] = O(e, s,
|
|
63
|
+
}), se = /* @__PURE__ */ $(null), ne = /* @__PURE__ */ $(null), N = /* @__PURE__ */ $(null), re = /* @__PURE__ */ P(function(e, s) {
|
|
64
|
+
[e, s] = O(e, s, se);
|
|
62
65
|
let t = D(K), { id: a, ...d } = e, n = L();
|
|
63
66
|
a || (a = n);
|
|
64
67
|
let l = t ? t.expandedKeys.has(a) : e.isExpanded, r = U({
|
|
@@ -106,7 +109,7 @@ const K = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ P(function(e, s) {
|
|
|
106
109
|
}
|
|
107
110
|
],
|
|
108
111
|
[
|
|
109
|
-
|
|
112
|
+
ne,
|
|
110
113
|
r
|
|
111
114
|
]
|
|
112
115
|
]
|
|
@@ -117,7 +120,7 @@ const K = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ P(function(e, s) {
|
|
|
117
120
|
"data-disabled": b || void 0,
|
|
118
121
|
"data-focus-visible-within": E || void 0
|
|
119
122
|
}, y.children));
|
|
120
|
-
}),
|
|
123
|
+
}), ie = /* @__PURE__ */ P(function(e, s) {
|
|
121
124
|
let { role: t = "group" } = e, { panelProps: a, panelRef: d } = D(N), { isFocusVisible: n, focusProps: l } = S({
|
|
122
125
|
within: !0
|
|
123
126
|
}), r = g({
|
|
@@ -142,11 +145,9 @@ const K = /* @__PURE__ */ $(null), Z = /* @__PURE__ */ P(function(e, s) {
|
|
|
142
145
|
]
|
|
143
146
|
]
|
|
144
147
|
}, e.children));
|
|
145
|
-
}),
|
|
146
|
-
key: "accordion"
|
|
147
|
-
}), ae = /* @__PURE__ */ de("div", "root"), se = /* @__PURE__ */ f("div", "disclosure"), ne = /* @__PURE__ */ f("button", "trigger"), re = /* @__PURE__ */ f("div", "panel"), ie = /* @__PURE__ */ f("div", "accordionTitle"), h = /* @__PURE__ */ f("div", "headerContentRight"), le = (o) => {
|
|
148
|
+
}), le = (o) => {
|
|
148
149
|
const { ref: e, ...s } = o, t = _({ key: "accordion" }), [a, d] = t.splitVariantProps(s), [n, l] = p(d);
|
|
149
|
-
return /* @__PURE__ */ i(
|
|
150
|
+
return /* @__PURE__ */ i(Z, { ref: e, ...a, ...n, asChild: !0, children: /* @__PURE__ */ i(ae, { ...l }) });
|
|
150
151
|
};
|
|
151
152
|
le.displayName = "Accordion.Root";
|
|
152
153
|
const ce = ({
|
|
@@ -161,13 +162,13 @@ const ce = ({
|
|
|
161
162
|
// React Aria uses id for the key
|
|
162
163
|
};
|
|
163
164
|
return /* @__PURE__ */ i(
|
|
164
|
-
|
|
165
|
+
k,
|
|
165
166
|
{
|
|
166
167
|
"data-value": e,
|
|
167
168
|
ref: s,
|
|
168
169
|
...a,
|
|
169
170
|
asChild: !0,
|
|
170
|
-
children: /* @__PURE__ */ i(
|
|
171
|
+
children: /* @__PURE__ */ i(re, { ...n, children: o })
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
174
|
};
|
|
@@ -198,9 +199,9 @@ const fe = ({
|
|
|
198
199
|
borderColor: "neutral.4",
|
|
199
200
|
...t,
|
|
200
201
|
children: [
|
|
201
|
-
/* @__PURE__ */ i(
|
|
202
|
+
/* @__PURE__ */ i(ee, { ref: e, slot: "trigger", asChild: !0, children: /* @__PURE__ */ v(G, { ...a, children: [
|
|
202
203
|
/* @__PURE__ */ i(T, {}),
|
|
203
|
-
/* @__PURE__ */ i(
|
|
204
|
+
/* @__PURE__ */ i(oe, { children: d.main })
|
|
204
205
|
] }) }),
|
|
205
206
|
d.rightContent.length > 0 && /* @__PURE__ */ i(h, { children: d.rightContent })
|
|
206
207
|
]
|
|
@@ -214,7 +215,7 @@ const ue = ({
|
|
|
214
215
|
...s
|
|
215
216
|
}) => {
|
|
216
217
|
const [t, a] = p(s);
|
|
217
|
-
return /* @__PURE__ */ i(
|
|
218
|
+
return /* @__PURE__ */ i(te, { ref: e, ...t, asChild: !0, children: /* @__PURE__ */ i(ie, { ...a, children: o }) });
|
|
218
219
|
};
|
|
219
220
|
ue.displayName = "Accordion.Content";
|
|
220
221
|
export {
|
|
@@ -224,4 +225,4 @@ export {
|
|
|
224
225
|
ue as c,
|
|
225
226
|
V as d
|
|
226
227
|
};
|
|
227
|
-
//# sourceMappingURL=accordion.content-
|
|
228
|
+
//# sourceMappingURL=accordion.content-YkB30Nl0.es.js.map
|
package/dist/chunks/{accordion.content-SFS_lHjk.es.js.map → accordion.content-YkB30Nl0.es.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.content-SFS_lHjk.es.js","sources":["../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.8_react@19.2.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/Disclosure.mjs","../../src/components/accordion/accordion.slots.tsx","../../src/components/accordion/components/accordion.root.tsx","../../src/components/accordion/components/accordion.item.tsx","../../src/components/accordion/components/accordion.header-right-content.tsx","../../src/components/accordion/components/accordion.header.tsx","../../src/components/accordion/components/accordion.content.tsx"],"sourcesContent":["import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {ButtonContext as $d2b4bc8c273e7be6$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useDisclosure as $hI1OT$useDisclosure, useFocusRing as $hI1OT$useFocusRing} from \"react-aria\";\nimport {useDisclosureGroupState as $hI1OT$useDisclosureGroupState, useDisclosureState as $hI1OT$useDisclosureState} from \"react-stately\";\nimport {filterDOMProps as $hI1OT$filterDOMProps, useId as $hI1OT$useId, mergeProps as $hI1OT$mergeProps, mergeRefs as $hI1OT$mergeRefs} from \"@react-aria/utils\";\nimport $hI1OT$react, {createContext as $hI1OT$createContext, forwardRef as $hI1OT$forwardRef, useContext as $hI1OT$useContext} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nconst $28f4fd908f0de97f$export$1d40e3e0cc4d5de = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$944aceb4f8c89f10 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosureGroup(props, ref) {\n let state = (0, $hI1OT$useDisclosureGroupState)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosureGroup',\n values: {\n isDisabled: state.isDisabled,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...domProps,\n ...renderProps,\n ref: ref,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement($28f4fd908f0de97f$export$1d40e3e0cc4d5de.Provider, {\n value: state\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$d665dd135a51b28a = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$dab3ea4a6ef094da = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$var$InternalDisclosureContext = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$74a362b31437ec83 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function Disclosure(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $28f4fd908f0de97f$export$d665dd135a51b28a);\n let groupState = (0, $hI1OT$useContext)($28f4fd908f0de97f$export$1d40e3e0cc4d5de);\n let { id: id, ...otherProps } = props;\n // Generate an id if one wasn't provided.\n // (can't pass id into useId since it can also be a number)\n let defaultId = (0, $hI1OT$useId)();\n id || (id = defaultId);\n let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;\n let state = (0, $hI1OT$useDisclosureState)({\n ...props,\n isExpanded: isExpanded,\n onExpandedChange (isExpanded) {\n var _props_onExpandedChange;\n if (groupState) groupState.toggleKey(id);\n (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);\n }\n });\n let panelRef = (0, $hI1OT$react).useRef(null);\n let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;\n let { buttonProps: buttonProps, panelProps: panelProps } = (0, $hI1OT$useDisclosure)({\n ...props,\n isExpanded: isExpanded,\n isDisabled: isDisabled\n }, state, panelRef);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n defaultClassName: 'react-aria-Disclosure',\n values: {\n isExpanded: state.isExpanded,\n isDisabled: isDisabled,\n isFocusVisibleWithin: isFocusVisibleWithin,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(otherProps, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},\n trigger: buttonProps\n }\n }\n ],\n [\n $28f4fd908f0de97f$var$InternalDisclosureContext,\n {\n panelProps: panelProps,\n panelRef: panelRef\n }\n ],\n [\n $28f4fd908f0de97f$export$dab3ea4a6ef094da,\n state\n ]\n ]\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(domProps, renderProps, focusWithinProps),\n ref: ref,\n \"data-expanded\": state.isExpanded || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$feabaa331e1d464c = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosurePanel(props, ref) {\n let { role: role = 'group' } = props;\n let { panelProps: panelProps, panelRef: panelRef } = (0, $hI1OT$useContext)($28f4fd908f0de97f$var$InternalDisclosureContext);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosurePanel',\n values: {\n isFocusVisibleWithin: isFocusVisibleWithin\n }\n });\n let DOMProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(DOMProps, renderProps, panelProps, focusWithinProps),\n ref: (0, $hI1OT$mergeRefs)(ref, panelRef),\n role: role,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n null\n ]\n ]\n }, props.children));\n});\n\n\nexport {$28f4fd908f0de97f$export$1d40e3e0cc4d5de as DisclosureGroupStateContext, $28f4fd908f0de97f$export$944aceb4f8c89f10 as DisclosureGroup, $28f4fd908f0de97f$export$d665dd135a51b28a as DisclosureContext, $28f4fd908f0de97f$export$dab3ea4a6ef094da as DisclosureStateContext, $28f4fd908f0de97f$export$74a362b31437ec83 as Disclosure, $28f4fd908f0de97f$export$feabaa331e1d464c as DisclosurePanel};\n//# sourceMappingURL=Disclosure.module.js.map\n","import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { AccordionRootSlotProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRootSlot: SlotComponent<\n HTMLDivElement,\n AccordionRootSlotProps\n> = withProvider<HTMLDivElement, AccordionRootSlotProps>(\"div\", \"root\");\n\nexport const AccordionDisclosureSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanelSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitleSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import { AccordionRootSlot } from \"../accordion.slots\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DisclosureGroup as RaDisclosureGroup } from \"react-aria-components\";\nimport type { AccordionRootProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Root\n *\n * Provides context and configuration for all accordion items.\n *\n * @supportsStyleProps\n */\nexport const AccordionRoot = (props: AccordionRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, raProps] = extractStyleProps(restRecipeProps);\n\n return (\n <AccordionRootSlot ref={ref} {...recipeProps} {...styleProps} asChild>\n <RaDisclosureGroup {...raProps} />\n </AccordionRootSlot>\n );\n};\n\nAccordionRoot.displayName = \"Accordion.Root\";\n","import { AccordionDisclosureSlot } from \"../accordion.slots\";\nimport { Disclosure as RaDisclosure } from \"react-aria-components\";\nimport type { AccordionItemProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Item - An individual accordion item\n *\n * Contains a header and collapsible content.\n * Multiple items can be placed within an Accordion.Root.\n *\n * @supportsStyleProps\n */\nexport const AccordionItem = ({\n children,\n value,\n ref,\n ...props\n}: AccordionItemProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n const disclosureProps = {\n ...restProps,\n id: value, // React Aria uses id for the key\n };\n\n return (\n <AccordionDisclosureSlot\n data-value={value}\n ref={ref}\n {...styleProps}\n asChild\n >\n <RaDisclosure {...disclosureProps}>{children}</RaDisclosure>\n </AccordionDisclosureSlot>\n );\n};\n\nAccordionItem.displayName = \"Accordion.Item\";\n","import { AccordionHeaderRightContentSlot } from \"../accordion.slots\";\nimport type { AccordionHeaderRightContentProps } from \"../accordion.types\";\n\n/**\n * Accordion.HeaderRightContent - Content displayed on the right side of the accordion header\n *\n * Used to add actions, badges, or additional information to the header.\n * Positioned to the right of the header title.\n *\n * @supportsStyleProps\n */\nexport const AccordionHeaderRightContent = ({\n children,\n ref,\n ...props\n}: AccordionHeaderRightContentProps) => {\n return (\n <AccordionHeaderRightContentSlot ref={ref} {...props}>\n {children}\n </AccordionHeaderRightContentSlot>\n );\n};\n\nAccordionHeaderRightContent.displayName = \"Accordion.HeaderRightContent\";\n","import React, { useMemo } from \"react\";\nimport {\n AccordionTriggerSlot,\n AccordionTitleSlot,\n AccordionHeaderRightContentSlot,\n} from \"../accordion.slots\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport type { AccordionHeaderProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { AccordionHeaderRightContent } from \"./accordion.header-right-content\";\n\n/**\n * Accordion.Header - The clickable header for accordion items\n *\n * Expands/collapses the accordion content when activated.\n * Handles keyboard and mouse interactions.\n *\n * @supportsStyleProps\n */\nexport const AccordionHeader = ({\n children,\n ref,\n ...props\n}: AccordionHeaderProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n // Extract HeaderRightContent if present\n const headerContent = useMemo(() => {\n const main: React.ReactNode[] = [];\n const rightContent: React.ReactNode[] = [];\n\n React.Children.forEach(children, (child) => {\n if (\n React.isValidElement(child) &&\n (child.type === AccordionHeaderRightContent ||\n child.type === AccordionHeaderRightContentSlot)\n ) {\n rightContent.push(child);\n } else {\n main.push(child);\n }\n });\n\n return { main, rightContent };\n }, [children]);\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n {...styleProps}\n >\n <AccordionTriggerSlot ref={ref} slot=\"trigger\" asChild>\n <RaButton {...restProps}>\n <KeyboardArrowRight />\n <AccordionTitleSlot>{headerContent.main}</AccordionTitleSlot>\n </RaButton>\n </AccordionTriggerSlot>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContentSlot>\n {headerContent.rightContent}\n </AccordionHeaderRightContentSlot>\n )}\n </Flex>\n );\n};\n\nAccordionHeader.displayName = \"Accordion.Header\";\n","import { AccordionPanelSlot } from \"../accordion.slots\";\nimport { DisclosurePanel as RaDisclosurePanel } from \"react-aria-components\";\nimport type { AccordionContentProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Content - The collapsible content area\n *\n * Contains the main content that is shown/hidden when the header is activated.\n *\n * @supportsStyleProps\n */\nexport const AccordionContent = ({\n children,\n ref,\n ...props\n}: AccordionContentProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <AccordionPanelSlot ref={ref} {...styleProps} asChild>\n <RaDisclosurePanel {...restProps}>{children}</RaDisclosurePanel>\n </AccordionPanelSlot>\n );\n};\n\nAccordionContent.displayName = \"Accordion.Content\";\n"],"names":["$9385b3affbdec831$export$f36461af0ef4707d","props","allowsMultipleExpanded","isDisabled","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","$28f4fd908f0de97f$export$1d40e3e0cc4d5de","$hI1OT$createContext","$28f4fd908f0de97f$export$944aceb4f8c89f10","$hI1OT$forwardRef","ref","state","$hI1OT$useDisclosureGroupState","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","domProps","$hI1OT$filterDOMProps","$hI1OT$react","$28f4fd908f0de97f$export$d665dd135a51b28a","$28f4fd908f0de97f$export$dab3ea4a6ef094da","$28f4fd908f0de97f$var$InternalDisclosureContext","$28f4fd908f0de97f$export$74a362b31437ec83","$64fa3d84918910a7$export$29f1550f4b0d4415","groupState","$hI1OT$useContext","id","otherProps","defaultId","$hI1OT$useId","isExpanded","$hI1OT$useDisclosureState","_props_onExpandedChange","panelRef","buttonProps","panelProps","$hI1OT$useDisclosure","isFocusVisibleWithin","focusWithinProps","$hI1OT$useFocusRing","$64fa3d84918910a7$export$2881499e37b75b9a","$d2b4bc8c273e7be6$export$24d547caef80ccd1","$64fa3d84918910a7$export$c62b8e45d58ddad9","$hI1OT$mergeProps","$28f4fd908f0de97f$export$feabaa331e1d464c","role","DOMProps","$hI1OT$mergeRefs","withProvider","withContext","createSlotRecipeContext","AccordionRootSlot","AccordionDisclosureSlot","AccordionTriggerSlot","AccordionPanelSlot","AccordionTitleSlot","AccordionHeaderRightContentSlot","AccordionRoot","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","raProps","extractStyleProps","jsx","RaDisclosureGroup","AccordionItem","children","value","disclosureProps","RaDisclosure","AccordionHeaderRightContent","AccordionHeader","headerContent","useMemo","main","rightContent","React","child","jsxs","Flex","RaButton","KeyboardArrowRight","AccordionContent","RaDisclosurePanel"],"mappings":";;;;;;;;;;;;;;AAeA,SAASA,EAA0CC,GAAO;AACtD,MAAI,EAAE,wBAAwBC,IAAyB,IAAO,YAAYC,IAAa,GAAK,IAAKF,GAC7F,CAACG,GAAcC,CAAe,IAAQC,EAA+BC,EAAg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T,CAAQ,CAAC;AAEb,SACE,gBAAAY;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAe;AAAA,MACf,YAAW;AAAA,MACX,cAAa;AAAA,MACb,aAAY;AAAA,MACX,GAAGnB;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAG,EAACb,IAAA,EAAqB,KAAA1C,GAAU,MAAK,WAAU,SAAO,IACpD,UAAA,gBAAAsE,EAACE,GAAA,EAAU,GAAGzB,GACZ,UAAA;AAAA,UAAA,gBAAAQ,EAACkB,GAAA,EAAmB;AAAA,UACpB,gBAAAlB,EAACX,IAAA,EAAoB,UAAAoB,EAAc,KAAA,CAAK;AAAA,QAAA,EAAA,CAC1C,EAAA,CACF;AAAA,QACCA,EAAc,aAAa,SAAS,KACnC,gBAAAT,EAACV,GAAA,EACE,YAAc,aAAA,CACjB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AAEAkB,GAAgB,cAAc;AC1DvB,MAAMW,KAAmB,CAAC;AAAA,EAC/B,UAAAhB;AAAA,EACA,KAAA1D;AAAA,EACA,GAAGf;AACL,MAA6B;AAC3B,QAAM,CAACmE,GAAYL,CAAS,IAAIO,EAAkBrE,CAAK;AAEvD,SACE,gBAAAsE,EAACZ,IAAA,EAAmB,KAAA3C,GAAW,GAAGoD,GAAY,SAAO,IACnD,UAAA,gBAAAG,EAACoB,IAAA,EAAmB,GAAG5B,GAAY,UAAAW,EAAA,CAAS,GAC9C;AAEJ;AAEAgB,GAAiB,cAAc;","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"accordion.content-YkB30Nl0.es.js","sources":["../../src/components/accordion/accordion.slots.tsx","../../../../node_modules/.pnpm/@react-stately+disclosure@3.0.8_react@19.2.0/node_modules/@react-stately/disclosure/dist/useDisclosureGroupState.mjs","../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/dist/Disclosure.mjs","../../src/components/accordion/components/accordion.root.tsx","../../src/components/accordion/components/accordion.item.tsx","../../src/components/accordion/components/accordion.header-right-content.tsx","../../src/components/accordion/components/accordion.header.tsx","../../src/components/accordion/components/accordion.content.tsx"],"sourcesContent":["import {\n createSlotRecipeContext,\n type HTMLChakraProps,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type { AccordionRootSlotProps } from \"./accordion.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"accordion\",\n});\n\nexport const AccordionRootSlot: SlotComponent<\n HTMLDivElement,\n AccordionRootSlotProps\n> = withProvider<HTMLDivElement, AccordionRootSlotProps>(\"div\", \"root\");\n\nexport const AccordionDisclosureSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"disclosure\");\n\nexport const AccordionTriggerSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"button\">\n>(\"button\", \"trigger\");\n\nexport const AccordionPanelSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"panel\");\n\nexport const AccordionTitleSlot = withContext<\n HTMLButtonElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"accordionTitle\");\n\nexport const AccordionHeaderRightContentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"headerContentRight\");\n","import {useControlledState as $j4gLc$useControlledState} from \"@react-stately/utils\";\nimport {useMemo as $j4gLc$useMemo, useEffect as $j4gLc$useEffect} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $9385b3affbdec831$export$f36461af0ef4707d(props) {\n let { allowsMultipleExpanded: allowsMultipleExpanded = false, isDisabled: isDisabled = false } = props;\n let [expandedKeys, setExpandedKeys] = (0, $j4gLc$useControlledState)((0, $j4gLc$useMemo)(()=>props.expandedKeys ? new Set(props.expandedKeys) : undefined, [\n props.expandedKeys\n ]), (0, $j4gLc$useMemo)(()=>props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : new Set(), [\n props.defaultExpandedKeys\n ]), props.onExpandedChange);\n (0, $j4gLc$useEffect)(()=>{\n // Ensure only one item is expanded if allowsMultipleExpanded is false.\n if (!allowsMultipleExpanded && expandedKeys.size > 1) {\n let firstKey = expandedKeys.values().next().value;\n if (firstKey != null) setExpandedKeys(new Set([\n firstKey\n ]));\n }\n });\n return {\n allowsMultipleExpanded: allowsMultipleExpanded,\n isDisabled: isDisabled,\n expandedKeys: expandedKeys,\n setExpandedKeys: setExpandedKeys,\n toggleKey (key) {\n let keys;\n if (allowsMultipleExpanded) {\n keys = new Set(expandedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n } else keys = new Set(expandedKeys.has(key) ? [] : [\n key\n ]);\n setExpandedKeys(keys);\n }\n };\n}\n\n\nexport {$9385b3affbdec831$export$f36461af0ef4707d as useDisclosureGroupState};\n//# sourceMappingURL=useDisclosureGroupState.module.js.map\n","import {ButtonContext as $d2b4bc8c273e7be6$export$24d547caef80ccd1} from \"./Button.mjs\";\nimport {DEFAULT_SLOT as $64fa3d84918910a7$export$c62b8e45d58ddad9, Provider as $64fa3d84918910a7$export$2881499e37b75b9a, useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useDisclosure as $hI1OT$useDisclosure, useFocusRing as $hI1OT$useFocusRing} from \"react-aria\";\nimport {useDisclosureGroupState as $hI1OT$useDisclosureGroupState, useDisclosureState as $hI1OT$useDisclosureState} from \"react-stately\";\nimport {filterDOMProps as $hI1OT$filterDOMProps, useId as $hI1OT$useId, mergeProps as $hI1OT$mergeProps, mergeRefs as $hI1OT$mergeRefs} from \"@react-aria/utils\";\nimport $hI1OT$react, {createContext as $hI1OT$createContext, forwardRef as $hI1OT$forwardRef, useContext as $hI1OT$useContext} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nconst $28f4fd908f0de97f$export$1d40e3e0cc4d5de = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$944aceb4f8c89f10 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosureGroup(props, ref) {\n let state = (0, $hI1OT$useDisclosureGroupState)(props);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosureGroup',\n values: {\n isDisabled: state.isDisabled,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...domProps,\n ...renderProps,\n ref: ref,\n \"data-disabled\": props.isDisabled || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement($28f4fd908f0de97f$export$1d40e3e0cc4d5de.Provider, {\n value: state\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$d665dd135a51b28a = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$dab3ea4a6ef094da = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$var$InternalDisclosureContext = /*#__PURE__*/ (0, $hI1OT$createContext)(null);\nconst $28f4fd908f0de97f$export$74a362b31437ec83 = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function Disclosure(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $28f4fd908f0de97f$export$d665dd135a51b28a);\n let groupState = (0, $hI1OT$useContext)($28f4fd908f0de97f$export$1d40e3e0cc4d5de);\n let { id: id, ...otherProps } = props;\n // Generate an id if one wasn't provided.\n // (can't pass id into useId since it can also be a number)\n let defaultId = (0, $hI1OT$useId)();\n id || (id = defaultId);\n let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;\n let state = (0, $hI1OT$useDisclosureState)({\n ...props,\n isExpanded: isExpanded,\n onExpandedChange (isExpanded) {\n var _props_onExpandedChange;\n if (groupState) groupState.toggleKey(id);\n (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);\n }\n });\n let panelRef = (0, $hI1OT$react).useRef(null);\n let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;\n let { buttonProps: buttonProps, panelProps: panelProps } = (0, $hI1OT$useDisclosure)({\n ...props,\n isExpanded: isExpanded,\n isDisabled: isDisabled\n }, state, panelRef);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n id: undefined,\n defaultClassName: 'react-aria-Disclosure',\n values: {\n isExpanded: state.isExpanded,\n isDisabled: isDisabled,\n isFocusVisibleWithin: isFocusVisibleWithin,\n state: state\n }\n });\n let domProps = (0, $hI1OT$filterDOMProps)(otherProps, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n {\n slots: {\n [(0, $64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},\n trigger: buttonProps\n }\n }\n ],\n [\n $28f4fd908f0de97f$var$InternalDisclosureContext,\n {\n panelProps: panelProps,\n panelRef: panelRef\n }\n ],\n [\n $28f4fd908f0de97f$export$dab3ea4a6ef094da,\n state\n ]\n ]\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(domProps, renderProps, focusWithinProps),\n ref: ref,\n \"data-expanded\": state.isExpanded || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, renderProps.children));\n});\nconst $28f4fd908f0de97f$export$feabaa331e1d464c = /*#__PURE__*/ (0, $hI1OT$forwardRef)(function DisclosurePanel(props, ref) {\n let { role: role = 'group' } = props;\n let { panelProps: panelProps, panelRef: panelRef } = (0, $hI1OT$useContext)($28f4fd908f0de97f$var$InternalDisclosureContext);\n let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = (0, $hI1OT$useFocusRing)({\n within: true\n });\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n defaultClassName: 'react-aria-DisclosurePanel',\n values: {\n isFocusVisibleWithin: isFocusVisibleWithin\n }\n });\n let DOMProps = (0, $hI1OT$filterDOMProps)(props, {\n global: true\n });\n return /*#__PURE__*/ (0, $hI1OT$react).createElement(\"div\", {\n ...(0, $hI1OT$mergeProps)(DOMProps, renderProps, panelProps, focusWithinProps),\n ref: (0, $hI1OT$mergeRefs)(ref, panelRef),\n role: role,\n \"data-focus-visible-within\": isFocusVisibleWithin || undefined\n }, /*#__PURE__*/ (0, $hI1OT$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {\n values: [\n [\n (0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),\n null\n ]\n ]\n }, props.children));\n});\n\n\nexport {$28f4fd908f0de97f$export$1d40e3e0cc4d5de as DisclosureGroupStateContext, $28f4fd908f0de97f$export$944aceb4f8c89f10 as DisclosureGroup, $28f4fd908f0de97f$export$d665dd135a51b28a as DisclosureContext, $28f4fd908f0de97f$export$dab3ea4a6ef094da as DisclosureStateContext, $28f4fd908f0de97f$export$74a362b31437ec83 as Disclosure, $28f4fd908f0de97f$export$feabaa331e1d464c as DisclosurePanel};\n//# sourceMappingURL=Disclosure.module.js.map\n","import { AccordionRootSlot } from \"../accordion.slots\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { DisclosureGroup as RaDisclosureGroup } from \"react-aria-components\";\nimport type { AccordionRootProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Root\n *\n * Provides context and configuration for all accordion items.\n *\n * @supportsStyleProps\n */\nexport const AccordionRoot = (props: AccordionRootProps) => {\n const { ref, ...restProps } = props;\n const recipe = useSlotRecipe({ key: \"accordion\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(restProps);\n const [styleProps, raProps] = extractStyleProps(restRecipeProps);\n\n return (\n <AccordionRootSlot ref={ref} {...recipeProps} {...styleProps} asChild>\n <RaDisclosureGroup {...raProps} />\n </AccordionRootSlot>\n );\n};\n\nAccordionRoot.displayName = \"Accordion.Root\";\n","import { AccordionDisclosureSlot } from \"../accordion.slots\";\nimport { Disclosure as RaDisclosure } from \"react-aria-components\";\nimport type { AccordionItemProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Item - An individual accordion item\n *\n * Contains a header and collapsible content.\n * Multiple items can be placed within an Accordion.Root.\n *\n * @supportsStyleProps\n */\nexport const AccordionItem = ({\n children,\n value,\n ref,\n ...props\n}: AccordionItemProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n const disclosureProps = {\n ...restProps,\n id: value, // React Aria uses id for the key\n };\n\n return (\n <AccordionDisclosureSlot\n data-value={value}\n ref={ref}\n {...styleProps}\n asChild\n >\n <RaDisclosure {...disclosureProps}>{children}</RaDisclosure>\n </AccordionDisclosureSlot>\n );\n};\n\nAccordionItem.displayName = \"Accordion.Item\";\n","import { AccordionHeaderRightContentSlot } from \"../accordion.slots\";\nimport type { AccordionHeaderRightContentProps } from \"../accordion.types\";\n\n/**\n * Accordion.HeaderRightContent - Content displayed on the right side of the accordion header\n *\n * Used to add actions, badges, or additional information to the header.\n * Positioned to the right of the header title.\n *\n * @supportsStyleProps\n */\nexport const AccordionHeaderRightContent = ({\n children,\n ref,\n ...props\n}: AccordionHeaderRightContentProps) => {\n return (\n <AccordionHeaderRightContentSlot ref={ref} {...props}>\n {children}\n </AccordionHeaderRightContentSlot>\n );\n};\n\nAccordionHeaderRightContent.displayName = \"Accordion.HeaderRightContent\";\n","import React, { useMemo } from \"react\";\nimport {\n AccordionTriggerSlot,\n AccordionTitleSlot,\n AccordionHeaderRightContentSlot,\n} from \"../accordion.slots\";\nimport { Flex } from \"@/components\";\nimport { KeyboardArrowRight } from \"@commercetools/nimbus-icons\";\nimport { Button as RaButton } from \"react-aria-components\";\nimport type { AccordionHeaderProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { AccordionHeaderRightContent } from \"./accordion.header-right-content\";\n\n/**\n * Accordion.Header - The clickable header for accordion items\n *\n * Expands/collapses the accordion content when activated.\n * Handles keyboard and mouse interactions.\n *\n * @supportsStyleProps\n */\nexport const AccordionHeader = ({\n children,\n ref,\n ...props\n}: AccordionHeaderProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n // Extract HeaderRightContent if present\n const headerContent = useMemo(() => {\n const main: React.ReactNode[] = [];\n const rightContent: React.ReactNode[] = [];\n\n React.Children.forEach(children, (child) => {\n if (\n React.isValidElement(child) &&\n (child.type === AccordionHeaderRightContent ||\n child.type === AccordionHeaderRightContentSlot)\n ) {\n rightContent.push(child);\n } else {\n main.push(child);\n }\n });\n\n return { main, rightContent };\n }, [children]);\n\n return (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"center\"\n borderBottom=\"solid-25\"\n borderColor=\"neutral.4\"\n {...styleProps}\n >\n <AccordionTriggerSlot ref={ref} slot=\"trigger\" asChild>\n <RaButton {...restProps}>\n <KeyboardArrowRight />\n <AccordionTitleSlot>{headerContent.main}</AccordionTitleSlot>\n </RaButton>\n </AccordionTriggerSlot>\n {headerContent.rightContent.length > 0 && (\n <AccordionHeaderRightContentSlot>\n {headerContent.rightContent}\n </AccordionHeaderRightContentSlot>\n )}\n </Flex>\n );\n};\n\nAccordionHeader.displayName = \"Accordion.Header\";\n","import { AccordionPanelSlot } from \"../accordion.slots\";\nimport { DisclosurePanel as RaDisclosurePanel } from \"react-aria-components\";\nimport type { AccordionContentProps } from \"../accordion.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Accordion.Content - The collapsible content area\n *\n * Contains the main content that is shown/hidden when the header is activated.\n *\n * @supportsStyleProps\n */\nexport const AccordionContent = ({\n children,\n ref,\n ...props\n}: AccordionContentProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <AccordionPanelSlot ref={ref} {...styleProps} asChild>\n <RaDisclosurePanel {...restProps}>{children}</RaDisclosurePanel>\n </AccordionPanelSlot>\n );\n};\n\nAccordionContent.displayName = \"Accordion.Content\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","AccordionRootSlot","AccordionDisclosureSlot","AccordionTriggerSlot","AccordionPanelSlot","AccordionTitleSlot","AccordionHeaderRightContentSlot","$9385b3affbdec831$export$f36461af0ef4707d","props","allowsMultipleExpanded","isDisabled","expandedKeys","setExpandedKeys","$j4gLc$useControlledState","$j4gLc$useMemo","$j4gLc$useEffect","firstKey","key","keys","$28f4fd908f0de97f$export$1d40e3e0cc4d5de","$hI1OT$createContext","$28f4fd908f0de97f$export$944aceb4f8c89f10","$hI1OT$forwardRef","ref","state","$hI1OT$useDisclosureGroupState","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","domProps","$hI1OT$filterDOMProps","$hI1OT$react","$28f4fd908f0de97f$export$d665dd135a51b28a","$28f4fd908f0de97f$export$dab3ea4a6ef094da","$28f4fd908f0de97f$var$InternalDisclosureContext","$28f4fd908f0de97f$export$74a362b31437ec83","$64fa3d84918910a7$export$29f1550f4b0d4415","groupState","$hI1OT$useContext","id","otherProps","defaultId","$hI1OT$useId","isExpanded","$hI1OT$useDisclosureState","_props_onExpandedChange","panelRef","buttonProps","panelProps","$hI1OT$useDisclosure","isFocusVisibleWithin","focusWithinProps","$hI1OT$useFocusRing","$64fa3d84918910a7$export$2881499e37b75b9a","$d2b4bc8c273e7be6$export$24d547caef80ccd1","$64fa3d84918910a7$export$c62b8e45d58ddad9","$hI1OT$mergeProps","$28f4fd908f0de97f$export$feabaa331e1d464c","role","DOMProps","$hI1OT$mergeRefs","AccordionRoot","restProps","recipe","useSlotRecipe","recipeProps","restRecipeProps","styleProps","raProps","extractStyleProps","jsx","RaDisclosureGroup","AccordionItem","children","value","disclosureProps","RaDisclosure","AccordionHeaderRightContent","AccordionHeader","headerContent","useMemo","main","rightContent","React","child","jsxs","Flex","RaButton","KeyboardArrowRight","AccordionContent","RaDisclosurePanel"],"mappings":";;;;;;;;;;;;;;AAOA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAqD,OAAO,MAAM,GAEzDI,IAA0B,gBAAAH,EAGrC,OAAO,YAAY,GAERI,KAAuB,gBAAAJ,EAGlC,UAAU,SAAS,GAERK,KAAqB,gBAAAL,EAGhC,OAAO,OAAO,GAEHM,KAAqB,gBAAAN,EAGhC,OAAO,gBAAgB,GAEZO,IAAkC,gBAAAP,EAG7C,OAAO,oBAAoB;ACxB7B,SAASQ,GAA0CC,GAAO;AACtD,MAAI,EAAE,wBAAwBC,IAAyB,IAAO,YAAYC,IAAa,GAAK,IAAKF,GAC7F,CAACG,GAAcC,CAAe,IAAQC,EAA+BC,EAAgB,MAAIN,EAAM,eAAe,IAA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E,IAAA,EAAoB,UAAAyE,EAAc,KAAA,CAAK;AAAA,QAAA,EAAA,CAC1C,EAAA,CACF;AAAA,QACCA,EAAc,aAAa,SAAS,KACnC,gBAAAT,EAAC/D,GAAA,EACE,YAAc,aAAA,CACjB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AAEAuE,GAAgB,cAAc;AC1DvB,MAAMW,KAAmB,CAAC;AAAA,EAC/B,UAAAhB;AAAA,EACA,KAAAjD;AAAA,EACA,GAAGf;AACL,MAA6B;AAC3B,QAAM,CAAC0D,GAAYL,CAAS,IAAIO,EAAkB5D,CAAK;AAEvD,SACE,gBAAA6D,EAACjE,IAAA,EAAmB,KAAAmB,GAAW,GAAG2C,GAAY,SAAO,IACnD,UAAA,gBAAAG,EAACoB,IAAA,EAAmB,GAAG5B,GAAY,UAAAW,EAAA,CAAS,GAC9C;AAEJ;AAEAgB,GAAiB,cAAc;","x_google_ignoreList":[1,2]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),m=require("@chakra-ui/react"),i=require("@commercetools/nimbus-icons"),x=require("./icon-button-
|
|
2
|
-
//# sourceMappingURL=alert-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),m=require("@chakra-ui/react"),i=require("@commercetools/nimbus-icons"),x=require("./icon-button-ClTyaPhB.cjs.js"),A=require("react-intl"),{withProvider:p,withContext:r}=m.createSlotRecipeContext({key:"alert"}),j=p("div","root"),h=r("div","title"),g=r("div","description"),D=r("div","icon"),f=r("div","actions"),v=r("div","dismissButton"),B=e=>{switch(e){case"critical":return t.jsx(i.ErrorOutline,{});case"info":return t.jsx(i.Info,{});case"warning":return t.jsx(i.WarningAmber,{});case"positive":return t.jsx(i.CheckCircleOutline,{});default:return null}},n=e=>{const{ref:s,children:d,...u}=e;return t.jsxs(j,{ref:s,...u,role:"alert",children:[t.jsx(D,{alignItems:"flex-start",children:B(u.colorPalette)}),d]})};n.displayName="Alert.Root";const o=({children:e,...s})=>t.jsx(h,{...s,fontWeight:"600",children:e});o.displayName="Alert.Title";const l=({children:e,...s})=>t.jsx(g,{...s,children:e});l.displayName="Alert.Description";const c=({children:e,...s})=>t.jsx(f,{...s,children:e});c.displayName="Alert.Actions";const I=A.defineMessages({dismiss:{id:"Nimbus.Alert.dismiss",description:"aria-label for the dismiss button in an alert",defaultMessage:"Dismiss"}}),a=({...e})=>{const s=A.useIntl();return t.jsx(v,{children:t.jsx(x.IconButton,{"aria-label":s.formatMessage(I.dismiss),...e,variant:"ghost",size:"2xs",children:t.jsx(i.Clear,{role:"img"})})})};a.displayName="Alert.DismissButton";const R={Root:n,Title:o,Description:l,Actions:c,DismissButton:a};exports.Alert=R;exports.AlertActions=c;exports.AlertDescription=l;exports.AlertDismissButton=a;exports.AlertRoot=n;exports.AlertTitle=o;
|
|
2
|
+
//# sourceMappingURL=alert-55tm3vfU.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-D6ENEy8f.cjs.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"alert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for the dismiss button in an alert\",\n defaultMessage: \"Dismiss\",\n },\n});\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const intl = useIntl();\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.dismiss)}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"4LAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,OACP,CAAC,EAEYC,EAAYH,EACvB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,OACF,EAEaI,EAAmBJ,EAG9B,MAAO,aAAa,EAETK,EAAYL,EACvB,MACA,MACF,EAEaM,EAAeN,EAC1B,MACA,SACF,EAIaO,EAAqBP,EAGhC,MAAO,eAAe,ECnClBQ,EAA2BC,GAA6C,CAC5E,OAAQA,EAAA,CACN,IAAK,WACH,aAAQC,EAAAA,aAAA,EAAa,EACvB,IAAK,OACH,aAAQC,EAAAA,KAAA,EAAK,EACf,IAAK,UACH,aAAQC,EAAAA,aAAA,EAAa,EACvB,IAAK,WACH,aAAQC,EAAAA,mBAAA,EAAmB,EAC7B,QACE,OAAO,IAAA,CAEb,EAOaX,EAAiCY,GAAU,CACtD,KAAM,CAAE,IAAAC,EAAK,SAAAC,EAAU,GAAGC,GAAcH,EAExC,cACGI,EAAA,CAAc,IAAAH,EAAW,GAAGE,EAAW,KAAK,QAC3C,SAAA,CAAAE,MAACd,GAAU,WAAW,aACnB,SAAAG,EAAwBS,EAAU,YAAY,EACjD,EACCD,CAAA,EACH,CAEJ,EAEAd,EAAU,YAAc,aClCjB,MAAMC,EAAa,CAAC,CAAE,SAAAa,EAAU,GAAGF,WAErCM,EAAA,CAAgB,GAAGN,EAAO,WAAW,MACnC,SAAAE,EACH,EAIJb,EAAW,YAAc,cCRlB,MAAMC,EAAmB,CAAC,CAC/B,SAAAY,EACA,GAAGF,CACL,IACSK,EAAAA,IAACE,EAAA,CAAsB,GAAGP,EAAQ,SAAAE,CAAA,CAAS,EAGpDZ,EAAiB,YAAc,oBCPxB,MAAME,EAAe,CAAC,CAAE,SAAAU,EAAU,GAAGF,KACnCK,EAAAA,IAACG,EAAA,CAAkB,GAAGR,EAAQ,SAAAE,CAAA,CAAS,EAGhDV,EAAa,YAAc,gBCVpB,MAAMiB,EAAWC,EAAAA,eAAe,CACrC,QAAS,CACP,GAAI,uBACJ,YAAa,gDACb,eAAgB,SAAA,CAEpB,CAAC,ECIYjB,EAAqB,CAAC,CAAE,GAAGO,KAAqC,CAC3E,MAAMW,EAAOC,EAAAA,QAAA,EAEb,aACGC,EAAA,CACC,SAAAR,EAAAA,IAACS,EAAAA,WAAA,CACC,aAAYH,EAAK,cAAcF,EAAS,OAAO,EAC9C,GAAGT,EACJ,QAAQ,QACR,KAAK,MAEL,SAAAK,EAAAA,IAACU,EAAAA,MAAA,CAAM,KAAK,KAAA,CAAM,CAAA,CAAA,EAEtB,CAEJ,EAEAtB,EAAmB,YAAc,sBCN1B,MAAMuB,EAAQ,CAenB,KAAM5B,EAcN,MAAOC,EAeP,YAAaC,EAkBb,QAASE,EAgBT,cAAeC,CACjB"}
|
|
1
|
+
{"version":3,"file":"alert-55tm3vfU.cjs.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"alert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for the dismiss button in an alert\",\n defaultMessage: \"Dismiss\",\n },\n});\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const intl = useIntl();\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.dismiss)}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":"4LAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,OACP,CAAC,EAEYC,EAAYH,EACvB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,OACF,EAEaI,EAAmBJ,EAG9B,MAAO,aAAa,EAETK,EAAYL,EACvB,MACA,MACF,EAEaM,EAAeN,EAC1B,MACA,SACF,EAIaO,EAAqBP,EAGhC,MAAO,eAAe,ECnClBQ,EAA2BC,GAA6C,CAC5E,OAAQA,EAAA,CACN,IAAK,WACH,aAAQC,EAAAA,aAAA,EAAa,EACvB,IAAK,OACH,aAAQC,EAAAA,KAAA,EAAK,EACf,IAAK,UACH,aAAQC,EAAAA,aAA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,MAAOC,EAeP,YAAaC,EAkBb,QAASE,EAgBT,cAAeC,CACjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createSlotRecipeContext as u } from "@chakra-ui/react";
|
|
3
3
|
import { CheckCircleOutline as A, WarningAmber as p, Info as f, ErrorOutline as h, Clear as g } from "@commercetools/nimbus-icons";
|
|
4
|
-
import { I as v } from "./icon-button-
|
|
4
|
+
import { I as v } from "./icon-button-Cnas4bnJ.es.js";
|
|
5
5
|
import { defineMessages as D, useIntl as x } from "react-intl";
|
|
6
6
|
const { withProvider: I, withContext: i } = /* @__PURE__ */ u({
|
|
7
7
|
key: "alert"
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
a as d,
|
|
156
156
|
c as e
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=alert-
|
|
158
|
+
//# sourceMappingURL=alert-_J_dHFj_.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-CoJ8asOZ.es.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"alert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for the dismiss button in an alert\",\n defaultMessage: \"Dismiss\",\n },\n});\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const intl = useIntl();\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.dismiss)}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAAY,gBAAAH;AAAA,EACvB;AAAA,EACA;AACF,GAEaI,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AACF,GAEaI,IAAmB,gBAAAJ,EAG9B,OAAO,aAAa,GAETK,IAAY,gBAAAL;AAAA,EACvB;AAAA,EACA;AACF,GAEaM,IAAe,gBAAAN;AAAA,EAC1B;AAAA,EACA;AACF,GAIaO,IAAqB,gBAAAP,EAGhC,OAAO,eAAe,GCnClBQ,IAA0B,CAACC,MAA6C;AAC5E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAK;AAAA,IACf,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAmB;AAAA,IAC7B;AACE,aAAO;AAAA,EAAA;AAEb,GAOaX,IAAgC,CAACY,MAAU;AACtD,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAAcH;AAExC,2BACGI,G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M5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcN,OAAOC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeP,aAAaC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBb,SAASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBT,eAAeC;AACjB;"}
|
|
1
|
+
{"version":3,"file":"alert-_J_dHFj_.es.js","sources":["../../src/components/alert/alert.slots.tsx","../../src/components/alert/components/alert.root.tsx","../../src/components/alert/components/alert.title.tsx","../../src/components/alert/components/alert.description.tsx","../../src/components/alert/components/alert.actions.tsx","../../src/components/alert/alert.i18n.ts","../../src/components/alert/components/alert.dismiss-button.tsx","../../src/components/alert/alert.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n AlertActionsSlotProps,\n AlertDescriptionProps,\n AlertDismissButtonProps,\n AlertIconSlotProps,\n AlertRootSlotProps,\n AlertTitleProps,\n} from \"./alert.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"alert\",\n});\n\nexport const AlertRoot = withProvider<HTMLDivElement, AlertRootSlotProps>(\n \"div\",\n \"root\"\n);\n\nexport const AlertTitle = withContext<HTMLDivElement, AlertTitleProps>(\n \"div\",\n \"title\"\n);\n\nexport const AlertDescription = withContext<\n HTMLDivElement,\n AlertDescriptionProps\n>(\"div\", \"description\");\n\nexport const AlertIcon = withContext<HTMLDivElement, AlertIconSlotProps>(\n \"div\",\n \"icon\"\n);\n\nexport const AlertActions = withContext<HTMLDivElement, AlertActionsSlotProps>(\n \"div\",\n \"actions\"\n);\n\n// This is a div wrapper for layout placement - note that we expect it to receive `IconButton` props, but we use a `div`.\n// We then forward the consumer props to the interior `IconButton` component.\nexport const AlertDismissButton = withContext<\n HTMLDivElement,\n AlertDismissButtonProps\n>(\"div\", \"dismissButton\");\n","import { AlertRoot as AlertRootSlot, AlertIcon } from \"../alert.slots\";\nimport type { AlertProps, AlertRootComponent } from \"../alert.types\";\nimport {\n CheckCircleOutline,\n ErrorOutline,\n Info,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\n\nconst getIconFromColorPalette = (colorPalette: AlertProps[\"colorPalette\"]) => {\n switch (colorPalette) {\n case \"critical\":\n return <ErrorOutline />;\n case \"info\":\n return <Info />;\n case \"warning\":\n return <WarningAmber />;\n case \"positive\":\n return <CheckCircleOutline />;\n default:\n return null;\n }\n};\n\n/**\n * Alert.Root - Provides feedback to the user about the status of an action or system event\n *\n * @supportsStyleProps\n */\nexport const AlertRoot: AlertRootComponent = (props) => {\n const { ref, children, ...restProps } = props;\n\n return (\n <AlertRootSlot ref={ref} {...restProps} role=\"alert\">\n <AlertIcon alignItems=\"flex-start\">\n {getIconFromColorPalette(restProps.colorPalette)}\n </AlertIcon>\n {children}\n </AlertRootSlot>\n );\n};\n\nAlertRoot.displayName = \"Alert.Root\";\n","import { AlertTitle as AlertTitleSlot } from \"../alert.slots\";\nimport type { AlertTitleProps } from \"../alert.types\";\n\n/**\n * Alert.Title - Displays the title text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertTitle = ({ children, ...props }: AlertTitleProps) => {\n return (\n <AlertTitleSlot {...props} fontWeight=\"600\">\n {children}\n </AlertTitleSlot>\n );\n};\n\nAlertTitle.displayName = \"Alert.Title\";\n","import { AlertDescription as AlertDescriptionSlot } from \"../alert.slots\";\nimport type { AlertDescriptionProps } from \"../alert.types\";\n\n/**\n * Alert.Description - Displays the description text for the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDescription = ({\n children,\n ...props\n}: AlertDescriptionProps) => {\n return <AlertDescriptionSlot {...props}>{children}</AlertDescriptionSlot>;\n};\n\nAlertDescription.displayName = \"Alert.Description\";\n","import { AlertActions as AlertActionsSlot } from \"../alert.slots\";\nimport type { AlertActionsProps } from \"../alert.types\";\n\n/**\n * Alert.Actions - Container for action buttons within the alert\n *\n * @supportsStyleProps\n */\nexport const AlertActions = ({ children, ...props }: AlertActionsProps) => {\n return <AlertActionsSlot {...props}>{children}</AlertActionsSlot>;\n};\n\nAlertActions.displayName = \"Alert.Actions\";\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n dismiss: {\n id: \"Nimbus.Alert.dismiss\",\n description: \"aria-label for the dismiss button in an alert\",\n defaultMessage: \"Dismiss\",\n },\n});\n","import { AlertDismissButton as AlertDismissButtonSlot } from \"../alert.slots\";\nimport type { AlertDismissButtonProps } from \"../alert.types\";\nimport { Clear } from \"@commercetools/nimbus-icons\";\nimport { IconButton } from \"../../icon-button\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../alert.i18n\";\n\n/**\n * Alert.DismissButton - Button to dismiss or close the alert\n *\n * @supportsStyleProps\n */\nexport const AlertDismissButton = ({ ...props }: AlertDismissButtonProps) => {\n const intl = useIntl();\n\n return (\n <AlertDismissButtonSlot>\n <IconButton\n aria-label={intl.formatMessage(messages.dismiss)}\n {...props}\n variant=\"ghost\"\n size=\"2xs\"\n >\n <Clear role=\"img\" />\n </IconButton>\n </AlertDismissButtonSlot>\n );\n};\n\nAlertDismissButton.displayName = \"Alert.DismissButton\";\n","import {\n AlertTitle,\n AlertDescription,\n AlertActions,\n AlertDismissButton,\n AlertRoot,\n} from \"./components\";\n\n/**\n * Alert\n * ============================================================\n * Provides feedback to the user about the status of an action or system event\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/alert}\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Information</Alert.Title>\n * <Alert.Description>This is an informational alert message.</Alert.Description>\n * </Alert.Root>\n * ```\n */\nexport const Alert = {\n /**\n * # Alert.Root\n *\n * The root component that provides context and configuration for the alert.\n * Must wrap all alert parts (Title, Description, Actions, DismissButton) to coordinate their behavior.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\" variant=\"outlined\">\n * <Alert.Title>Title</Alert.Title>\n * <Alert.Description>Description</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Root: AlertRoot,\n /**\n * # Alert.Title\n *\n * Displays the title text for the alert.\n * Typically shown in bold to provide a clear heading for the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"critical\">\n * <Alert.Title>Error Occurred</Alert.Title>\n * </Alert.Root>\n * ```\n */\n Title: AlertTitle,\n /**\n * # Alert.Description\n *\n * Displays the descriptive text for the alert.\n * Provides detailed information about the alert's purpose or the action required.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"warning\">\n * <Alert.Title>Warning</Alert.Title>\n * <Alert.Description>Please review the following items before proceeding.</Alert.Description>\n * </Alert.Root>\n * ```\n */\n Description: AlertDescription,\n /**\n * # Alert.Actions\n *\n * Container for action buttons within the alert.\n * Allows users to take actions directly from the alert message.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"positive\">\n * <Alert.Title>Success</Alert.Title>\n * <Alert.Description>Your changes have been saved.</Alert.Description>\n * <Alert.Actions>\n * <Button>View Details</Button>\n * </Alert.Actions>\n * </Alert.Root>\n * ```\n */\n Actions: AlertActions,\n /**\n * # Alert.DismissButton\n *\n * Button to dismiss or close the alert.\n * Provides users with the ability to manually remove the alert from view.\n *\n * @example\n * ```tsx\n * <Alert.Root tone=\"info\">\n * <Alert.Title>Notification</Alert.Title>\n * <Alert.Description>You have new messages.</Alert.Description>\n * <Alert.DismissButton onClick={() => console.log('Dismissed')} />\n * </Alert.Root>\n * ```\n */\n DismissButton: AlertDismissButton,\n};\n\n// exports for internal use by react-docgen\nexport {\n AlertRoot as _AlertRoot,\n AlertTitle as _AlertTitle,\n AlertDescription as _AlertDescription,\n AlertActions as _AlertActions,\n AlertDismissButton as _AlertDismissButton,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","AlertRoot","AlertTitle","AlertDescription","AlertIcon","AlertActions","AlertDismissButton","getIconFromColorPalette","colorPalette","ErrorOutline","Info","WarningAmber","CheckCircleOutline","props","ref","children","restProps","AlertRootSlot","jsx","AlertTitleSlot","AlertDescriptionSlot","AlertActionsSlot","messages","defineMessages","intl","useIntl","AlertDismissButtonSlot","IconButton","Clear","Alert"],"mappings":";;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAAY,gBAAAH;AAAA,EACvB;AAAA,EACA;AACF,GAEaI,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AACF,GAEaI,IAAmB,gBAAAJ,EAG9B,OAAO,aAAa,GAETK,IAAY,gBAAAL;AAAA,EACvB;AAAA,EACA;AACF,GAEaM,IAAe,gBAAAN;AAAA,EAC1B;AAAA,EACA;AACF,GAIaO,IAAqB,gBAAAP,EAGhC,OAAO,eAAe,GCnClBQ,IAA0B,CAACC,MAA6C;AAC5E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAK;AAAA,IACf,KAAK;AACH,+BAAQC,GAAA,EAAa;AAAA,IACvB,KAAK;AACH,+BAAQC,GAAA,EAAmB;AAAA,IAC7B;AACE,aAAO;AAAA,EAAA;AAEb,GAOaX,IAAgC,CAACY,MAAU;AACtD,QAAM,EAAE,KAAAC,GAAK,UAAAC,GAAU,GAAGC,MAAcH;AAExC,2BACGI,GAAA,EAAc,KAAAH,GAAW,GAAGE,GAAW,MAAK,SAC3C,UAAA;AAAA,IAAA,gBAAAE,EAACd,KAAU,YAAW,cACnB,UAAAG,EAAwBS,EAAU,YAAY,GACjD;AAAA,IACCD;AAAA,EAAA,GACH;AAEJ;AAEAd,EA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AAAA;AAAA,EAeP,aAAaC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBb,SAASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgBT,eAAeC;AACjB;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as c } from "react";
|
|
3
|
+
import { createRecipeContext as m, mergeRefs as p } from "@chakra-ui/react";
|
|
4
|
+
import { b as d } from "./badge.recipe-DsV4A_UD.es.js";
|
|
5
|
+
import { $ as i } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
6
|
+
import { a as n } from "./mergeProps-D1jjFfMs.es.js";
|
|
7
|
+
const { withContext: R } = /* @__PURE__ */ m({ recipe: d }), $ = /* @__PURE__ */ R(
|
|
8
|
+
"span"
|
|
9
|
+
), b = (e) => {
|
|
10
|
+
const { ref: o, children: r, ...t } = e, f = c(null), a = i(p(f, o));
|
|
11
|
+
return /* @__PURE__ */ s($, { ...n(t, { ref: a }), children: r });
|
|
12
|
+
};
|
|
13
|
+
b.displayName = "Badge";
|
|
14
|
+
export {
|
|
15
|
+
b as B
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=badge-DUiqk6w9.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-
|
|
1
|
+
{"version":3,"file":"badge-DUiqk6w9.es.js","sources":["../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootSlotProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootSlotProps>(\n \"span\"\n);\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * # Badge\n *\n * Briefly highlights or categorizes associated UI elements with concise visual cues for status or metadata.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/data-display/badge}\n */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n return <BadgeRoot {...mergeProps(rest, { ref })}>{children}</BadgeRoot>;\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["withContext","createRecipeContext","badgeRecipe","BadgeRoot","Badge","props","forwardedRef","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;;AAIA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,QAAQC,GAAa,GAEtDC,IAAY,gBAAAH;AAAA,EACvB;AACF,GCKaI,IAAQ,CAACC,MAAsB;AAC1C,QAAM,EAAE,KAAKC,GAAc,UAAAC,GAAU,GAAGC,MAASH,GAE3CI,IAAWC,EAAwB,IAAI,GACvCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC;AAE1D,SAAO,gBAAAQ,EAACX,KAAW,GAAGY,EAAWP,GAAM,EAAE,KAAAG,EAAA,CAAK,GAAI,UAAAJ,GAAS;AAC7D;AAEAH,EAAM,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),R=require("react"),i=require("./Button-DLCecw8f.cjs.js"),q=require("./utils-DVb3jcp5.cjs.js"),d=require("@chakra-ui/react"),m=require("./toggle-button-group.recipe-COF-yHYR.cjs.js"),P=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),B=require("./index-
|
|
2
|
-
//# sourceMappingURL=button-
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),R=require("react"),i=require("./Button-DLCecw8f.cjs.js"),q=require("./utils-DVb3jcp5.cjs.js"),d=require("@chakra-ui/react"),m=require("./toggle-button-group.recipe-COF-yHYR.cjs.js"),P=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),B=require("./index-DIQn6o2R.cjs.js"),g=require("./useObjectRef-4v2MxSjQ.cjs.js"),h=require("./mergeProps-CxnHrnow.cjs.js"),y=require("./useButton-BwsmYrml.cjs.js"),{withContext:C}=d.createRecipeContext({recipe:m.buttonRecipe}),j=C("button",{defaultProps:{type:"button"},shouldForwardProp(e,o){const t=!o?.includes(e)&&!B.system.isValidProperty(e);return P.isPropValid(e)&&t&&!e.includes("onPress")}}),a=e=>{const{ref:o,as:t,asChild:n,children:u,...b}=e,f=R.useRef(null),l=g.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(f,o)),[s,c]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(b,l,i.$d2b4bc8c273e7be6$export$24d547caef80ccd1),$=t||(n?"a":"button"),{buttonProps:p}=y.$701a24aa0da5b062$export$ea18c227d4417cc3({...s,elementType:$},c),r=h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,p,{as:t,asChild:n,slot:s.slot||void 0});return x.jsx(j,{ref:c,...r,"aria-disabled":r.isDisabled||void 0,"data-disabled":r.isDisabled||void 0,children:u})};a.displayName="Button";const v=Object.assign(a,{Context:i.$d2b4bc8c273e7be6$export$24d547caef80ccd1});exports.Button=v;
|
|
2
|
+
//# sourceMappingURL=button-CvWz8q1N.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-CvWz8q1N.cjs.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ButtonRootSlotProps } from \"./button.types\";\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootSlotProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nconst ButtonComponent = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const baseRef = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps, contextRef] = useContextProps(\n rest,\n baseRef,\n ButtonContext\n );\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n contextRef\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={contextRef}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButtonComponent.displayName = \"Button\";\n\n/**\n * ### Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button: typeof ButtonComponent & {\n // TypeScript can't properly name the internal React Aria types when inferring\n // Button.Context, so we explicitly type it using typeof and Object.assign\n /**\n * ### Button.Context\n *\n * Re-exports React-Aria's `ButtonContext`\n *\n * For advanced use cases, **you generally will not need this**\n *\n * @see {@link https://react-spectrum.adobe.com/react-aria/advanced.html#contexts}\n * @see {@link https://react-spectrum.adobe.com/react-aria/Button.html#contexts}\n */\n Context: typeof ButtonContext;\n} = Object.assign(ButtonComponent, {\n Context: ButtonContext,\n});\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","ButtonComponent","props","forwardedRef","as","asChild","children","rest","localRef","useRef","baseRef","useObjectRef","mergeRefs","contextProps","contextRef","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx","Button"],"mappings":"qcAMM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBI,EAAMC,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASD,CAAI,GAAK,CAACG,EAAAA,OAAO,gBAAgBH,CAAI,EAC9D,OAAOI,EAAAA,YAAkBJ,CAAI,GAAKE,GAAa,CAACF,EAAK,SAAS,SAAS,CACzE,CAAA,CAEJ,ECbMK,EAAmBC,GAAuB,CAC9C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAUC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGxD,CAACU,EAAcC,CAAU,EAAIC,EAAAA,0CACjCR,EACAG,EACAM,EAAAA,yCAAA,EAMIC,EAAcb,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAa,GAAgBC,EAAAA,0CACtB,CACE,GAAGN,EACH,YAAAI,CAAA,EAEFH,CAAA,EAGIM,EAAiBC,EAAAA,0CAAWR,EAAcK,EAAa,CAC3D,GAAAd,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EAED,OACES,EAAAA,IAAC3B,EAAA,CACC,IAAKmB,EACJ,GAAGM,EACJ,gBAAeA,EAAe,YAAc,OAC5C,gBAAeA,EAAe,YAAc,OAE3C,SAAAd,CAAA,CAAA,CAGP,EAGAL,EAAgB,YAAc,SASvB,MAAMsB,EAcT,OAAO,OAAOtB,EAAiB,CACjC,QAASe,EAAAA,yCACX,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as $ } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as u } from "react";
|
|
3
|
-
import { $ as i } from "./Button-
|
|
4
|
-
import { $ as x } from "./utils-
|
|
3
|
+
import { $ as i } from "./Button-CmpJG0ec.es.js";
|
|
4
|
+
import { $ as x } from "./utils-9vu7GUaz.es.js";
|
|
5
5
|
import { createRecipeContext as R, mergeRefs as P } from "@chakra-ui/react";
|
|
6
6
|
import { b as h } from "./toggle-button-group.recipe-Cl3PTeGf.es.js";
|
|
7
7
|
import { i as y } from "./emotion-is-prop-valid.esm-BUuA3iy8.es.js";
|
|
8
|
-
import { s as B } from "./index-
|
|
8
|
+
import { s as B } from "./index-CmfW40Im.es.js";
|
|
9
9
|
import { $ as C } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
10
|
-
import {
|
|
11
|
-
import { $ as w } from "./useButton-
|
|
10
|
+
import { a as v } from "./mergeProps-D1jjFfMs.es.js";
|
|
11
|
+
import { $ as w } from "./useButton-B2TbwHSy.es.js";
|
|
12
12
|
const { withContext: g } = /* @__PURE__ */ R({
|
|
13
13
|
recipe: h
|
|
14
14
|
}), j = /* @__PURE__ */ g(
|
|
@@ -62,4 +62,4 @@ const E = /* @__PURE__ */ Object.assign(c, {
|
|
|
62
62
|
export {
|
|
63
63
|
E as B
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=button-
|
|
65
|
+
//# sourceMappingURL=button-DTxnOPiN.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-
|
|
1
|
+
{"version":3,"file":"button-DTxnOPiN.es.js","sources":["../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ButtonRootSlotProps } from \"./button.types\";\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootSlotProps>(\n \"button\",\n {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\n/**\n * # Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nconst ButtonComponent = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const baseRef = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps, contextRef] = useContextProps(\n rest,\n baseRef,\n ButtonContext\n );\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n contextRef\n );\n\n const componentProps = mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n });\n\n return (\n <ButtonRoot\n ref={contextRef}\n {...componentProps}\n aria-disabled={componentProps.isDisabled || undefined}\n data-disabled={componentProps.isDisabled || undefined}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButtonComponent.displayName = \"Button\";\n\n/**\n * ### Button\n *\n * Displays a Button.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/button}\n */\nexport const Button: typeof ButtonComponent & {\n // TypeScript can't properly name the internal React Aria types when inferring\n // Button.Context, so we explicitly type it using typeof and Object.assign\n /**\n * ### Button.Context\n *\n * Re-exports React-Aria's `ButtonContext`\n *\n * For advanced use cases, **you generally will not need this**\n *\n * @see {@link https://react-spectrum.adobe.com/react-aria/advanced.html#contexts}\n * @see {@link https://react-spectrum.adobe.com/react-aria/Button.html#contexts}\n */\n Context: typeof ButtonContext;\n} = Object.assign(ButtonComponent, {\n Context: ButtonContext,\n});\n"],"names":["withContext","createRecipeContext","buttonRecipe","ButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","ButtonComponent","props","forwardedRef","as","asChild","children","rest","localRef","useRef","baseRef","useObjectRef","mergeRefs","contextProps","contextRef","useContextProps","ButtonContext","elementType","buttonProps","useButton","componentProps","mergeProps","jsx","Button"],"mappings":";;;;;;;;;;;AAMA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBI,GAAMC,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,aAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GCbMK,IAAkB,CAACC,MAAuB;AAC9C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAUC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGxD,CAACU,GAAcC,CAAU,IAAIC;AAAAA,IACjCR;AAAA,IACAG;AAAA,IACAM;AAAAA,EAAA,GAMIC,IAAcb,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAa,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGN;AAAA,MACH,aAAAI;AAAA,IAAA;AAAA,IAEFH;AAAA,EAAA,GAGIM,IAAiBC,EAAWR,GAAcK,GAAa;AAAA,IAC3D,IAAAd;AAAA,IACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAMQ,EAAa,QAAQ;AAAA,EAAA,CAC5B;AAED,SACE,gBAAAS;AAAA,IAAC3B;AAAA,IAAA;AAAA,MACC,KAAKmB;AAAA,MACJ,GAAGM;AAAA,MACJ,iBAAeA,EAAe,cAAc;AAAA,MAC5C,iBAAeA,EAAe,cAAc;AAAA,MAE3C,UAAAd;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAgB,cAAc;AASvB,MAAMsB,IAcT,uBAAO,OAAOtB,GAAiB;AAAA,EACjC,SAASe;AACX,CAAC;"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { j as P, d as I, e as N, f as j, g as F, h as G, a as M, c as H, k as Y } from "./Heading-
|
|
2
|
+
import { j as P, d as I, e as N, f as j, g as F, h as G, a as M, c as H, k as Y } from "./Heading-D804NNml.es.js";
|
|
3
3
|
import { createSlotRecipeContext as k } from "@chakra-ui/react";
|
|
4
4
|
import { useSlotRecipe as A } from "@chakra-ui/react/styled-system";
|
|
5
|
-
import { e as B } from "./extract-style-props-
|
|
6
|
-
import { c as l, d as L } from "./useDateFormatter-
|
|
5
|
+
import { e as B } from "./extract-style-props-CJjpdqym.es.js";
|
|
6
|
+
import { c as l, d as L } from "./useDateFormatter-CO08GpLe.es.js";
|
|
7
7
|
import { useContext as u } from "react";
|
|
8
|
-
import { $ } from "./Button-
|
|
9
|
-
import { e as z, c as w } from "./utils-
|
|
8
|
+
import { $ } from "./Button-CmpJG0ec.es.js";
|
|
9
|
+
import { e as z, c as w } from "./utils-9vu7GUaz.es.js";
|
|
10
10
|
import { $ as g } from "./Text-DOcU1ycg.es.js";
|
|
11
11
|
import { defineMessages as V, useIntl as K } from "react-intl";
|
|
12
12
|
import { $ as D } from "./context-DW7UvQ8z.es.js";
|
|
13
13
|
import { KeyboardArrowLeft as v, KeyboardArrowRight as y } from "@commercetools/nimbus-icons";
|
|
14
14
|
import { S as C } from "./stack-CoNreM7B.es.js";
|
|
15
|
-
import { T as S } from "./text-
|
|
15
|
+
import { T as S } from "./text-DvqDjbwb.es.js";
|
|
16
16
|
import { Flex as W } from "@chakra-ui/react/flex";
|
|
17
|
-
import { V as _ } from "./visually-hidden-
|
|
18
|
-
import { I as h } from "./icon-button-
|
|
17
|
+
import { V as _ } from "./visually-hidden-m5QY9YV7.es.js";
|
|
18
|
+
import { I as h } from "./icon-button-Cnas4bnJ.es.js";
|
|
19
19
|
import { B as R } from "./box-DuBoAZvq.es.js";
|
|
20
20
|
const { withProvider: q, withContext: s } = /* @__PURE__ */ k({
|
|
21
21
|
key: "calendar"
|
|
@@ -214,4 +214,4 @@ const { withProvider: q, withContext: s } = /* @__PURE__ */ k({
|
|
|
214
214
|
export {
|
|
215
215
|
Pe as C
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=calendar-
|
|
217
|
+
//# sourceMappingURL=calendar-C0WVsTa4.es.js.map
|