@commercetools/nimbus 0.0.0-canary-20250903150359 → 0.0.0-canary-20250904053156
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/{DatePicker-BthC1bZ_.es.js → DatePicker-B1Unwe6C.es.js} +2 -2
- package/dist/chunks/{DatePicker-BthC1bZ_.es.js.map → DatePicker-B1Unwe6C.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-BdV6ICAm.cjs.js → DatePicker-_aG-c1ms.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-BdV6ICAm.cjs.js.map → DatePicker-_aG-c1ms.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-BeQ6Z6l2.es.js → Dialog-C9HXv1rP.es.js} +68 -67
- package/dist/chunks/{Dialog-BeQ6Z6l2.es.js.map → Dialog-C9HXv1rP.es.js.map} +1 -1
- package/dist/chunks/Dialog-DZm5Sj40.cjs.js +2 -0
- package/dist/chunks/{Dialog-CYa26HlL.cjs.js.map → Dialog-DZm5Sj40.cjs.js.map} +1 -1
- package/dist/chunks/Header-CZkkXWBA.es.js +58 -0
- package/dist/chunks/Header-CZkkXWBA.es.js.map +1 -0
- package/dist/chunks/Header-D24AtheW.cjs.js +2 -0
- package/dist/chunks/Header-D24AtheW.cjs.js.map +1 -0
- package/dist/chunks/{ListBox-DF3NHeEX.es.js → ListBox-DWMnhpDd.es.js} +46 -45
- package/dist/chunks/{ListBox-DF3NHeEX.es.js.map → ListBox-DWMnhpDd.es.js.map} +1 -1
- package/dist/chunks/ListBox-Dnuz2Daa.cjs.js +2 -0
- package/dist/chunks/{ListBox-CikEmFBx.cjs.js.map → ListBox-Dnuz2Daa.cjs.js.map} +1 -1
- package/dist/chunks/SelectionManager-CtwcAiw4.es.js +1267 -0
- package/dist/chunks/SelectionManager-CtwcAiw4.es.js.map +1 -0
- package/dist/chunks/SelectionManager-x0j8UpyW.cjs.js +2 -0
- package/dist/chunks/SelectionManager-x0j8UpyW.cjs.js.map +1 -0
- package/dist/chunks/Separator-BCuq0iz5.es.js +734 -0
- package/dist/chunks/Separator-BCuq0iz5.es.js.map +1 -0
- package/dist/chunks/Separator-CcMEmnGS.cjs.js +18 -0
- package/dist/chunks/Separator-CcMEmnGS.cjs.js.map +1 -0
- package/dist/chunks/{alert-BhoRNIWA.cjs.js → alert-Ce4-sHmy.cjs.js} +2 -2
- package/dist/chunks/{alert-BhoRNIWA.cjs.js.map → alert-Ce4-sHmy.cjs.js.map} +1 -1
- package/dist/chunks/{alert-D-ddqYG4.es.js → alert-fGOiy9nj.es.js} +2 -2
- package/dist/chunks/{alert-D-ddqYG4.es.js.map → alert-fGOiy9nj.es.js.map} +1 -1
- package/dist/chunks/{button-CRUdodZm.es.js → button-DEgBQobR.es.js} +2 -2
- package/dist/chunks/{button-CRUdodZm.es.js.map → button-DEgBQobR.es.js.map} +1 -1
- package/dist/chunks/{button-CU8FW_Pl.cjs.js → button-DJYITnqc.cjs.js} +2 -2
- package/dist/chunks/{button-CU8FW_Pl.cjs.js.map → button-DJYITnqc.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-DJKWldpV.cjs.js → calendar-BdL5nJXs.cjs.js} +2 -2
- package/dist/chunks/{calendar-DJKWldpV.cjs.js.map → calendar-BdL5nJXs.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-DzwFtg1t.es.js → calendar-Csq6ml4F.es.js} +4 -4
- package/dist/chunks/{calendar-DzwFtg1t.es.js.map → calendar-Csq6ml4F.es.js.map} +1 -1
- package/dist/chunks/{checkbox-GmYxVrZx.es.js → checkbox-BFQXCWuz.es.js} +2 -2
- package/dist/chunks/{checkbox-GmYxVrZx.es.js.map → checkbox-BFQXCWuz.es.js.map} +1 -1
- package/dist/chunks/{checkbox-6nLo9Jy2.cjs.js → checkbox-D-x7pyAC.cjs.js} +2 -2
- package/dist/chunks/{checkbox-6nLo9Jy2.cjs.js.map → checkbox-D-x7pyAC.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-gIwba2QG.es.js → combobox-DXzhNwE_.es.js} +128 -127
- package/dist/chunks/{combobox-gIwba2QG.es.js.map → combobox-DXzhNwE_.es.js.map} +1 -1
- package/dist/chunks/combobox-Zdlr1WyV.cjs.js +2 -0
- package/dist/chunks/{combobox-DtPDxCo3.cjs.js.map → combobox-Zdlr1WyV.cjs.js.map} +1 -1
- package/dist/chunks/data-table-DjXI7oCC.cjs.js +2 -0
- package/dist/chunks/{data-table-Cpk3q34E.cjs.js.map → data-table-DjXI7oCC.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-mXLxUWQz.es.js → data-table-M8ZE7bUF.es.js} +38 -37
- package/dist/chunks/{data-table-mXLxUWQz.es.js.map → data-table-M8ZE7bUF.es.js.map} +1 -1
- package/dist/chunks/{date-input-D5unoyMt.es.js → date-input-BGa-cgj-.es.js} +3 -3
- package/dist/chunks/{date-input-D5unoyMt.es.js.map → date-input-BGa-cgj-.es.js.map} +1 -1
- package/dist/chunks/{date-input-DJ_aFB9i.cjs.js → date-input-C4NM5AFC.cjs.js} +2 -2
- package/dist/chunks/{date-input-DJ_aFB9i.cjs.js.map → date-input-C4NM5AFC.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-f3TylaP5.cjs.js → date-picker-ChoImuv_.cjs.js} +2 -2
- package/dist/chunks/{date-picker-f3TylaP5.cjs.js.map → date-picker-ChoImuv_.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-CMqAI1lp.es.js → date-picker-S6C2mWMs.es.js} +9 -9
- package/dist/chunks/{date-picker-CMqAI1lp.es.js.map → date-picker-S6C2mWMs.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Dtji64Q9.es.js → date-range-picker-DL00UKjF.es.js} +9 -9
- package/dist/chunks/{date-range-picker-Dtji64Q9.es.js.map → date-range-picker-DL00UKjF.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-CxsPpWyX.cjs.js → date-range-picker-DLEQGtgO.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-CxsPpWyX.cjs.js.map → date-range-picker-DLEQGtgO.cjs.js.map} +1 -1
- package/dist/chunks/divider-BdtT_f-U.es.js +50 -0
- package/dist/chunks/divider-BdtT_f-U.es.js.map +1 -0
- package/dist/chunks/divider-o2LVtQJm.cjs.js +2 -0
- package/dist/chunks/divider-o2LVtQJm.cjs.js.map +1 -0
- package/dist/chunks/{extractStyleProps-vA4cNUoc.es.js → extractStyleProps-CFQKiz8b.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-vA4cNUoc.es.js.map → extractStyleProps-CFQKiz8b.es.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-CZpHKp1I.cjs.js → extractStyleProps-bWKBkEco.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-CZpHKp1I.cjs.js.map → extractStyleProps-bWKBkEco.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-DxcGAb23.cjs.js → form-field-D1lcT5f5.cjs.js} +2 -2
- package/dist/chunks/{form-field-DxcGAb23.cjs.js.map → form-field-D1lcT5f5.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-Dtcfgzyo.es.js → form-field-DDTIZj9s.es.js} +3 -3
- package/dist/chunks/{form-field-Dtcfgzyo.es.js.map → form-field-DDTIZj9s.es.js.map} +1 -1
- package/dist/chunks/{icon-button-Cc0MkBbk.cjs.js → icon-button-CPXhdrQY.cjs.js} +2 -2
- package/dist/chunks/{icon-button-Cc0MkBbk.cjs.js.map → icon-button-CPXhdrQY.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-C20Gw8gQ.es.js → icon-button-DPtCLr1A.es.js} +2 -2
- package/dist/chunks/{icon-button-C20Gw8gQ.es.js.map → icon-button-DPtCLr1A.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D-C99Q0s.cjs.js → icon-toggle-button-BG-F1KE7.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D-C99Q0s.cjs.js.map → icon-toggle-button-BG-F1KE7.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CgHQMDs3.es.js → icon-toggle-button-BItuQ_Lh.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CgHQMDs3.es.js.map → icon-toggle-button-BItuQ_Lh.es.js.map} +1 -1
- package/dist/chunks/{index-C8Yrk__l.cjs.js → index-B3DGNvyC.cjs.js} +3 -3
- package/dist/chunks/{index-C8Yrk__l.cjs.js.map → index-B3DGNvyC.cjs.js.map} +1 -1
- package/dist/chunks/{index-jAeaCpRm.es.js → index-BDXHumM1.es.js} +8 -9
- package/dist/chunks/{index-jAeaCpRm.es.js.map → index-BDXHumM1.es.js.map} +1 -1
- package/dist/chunks/menu-DxXsyeUG.cjs.js +2 -0
- package/dist/chunks/menu-DxXsyeUG.cjs.js.map +1 -0
- package/dist/chunks/menu-aLEA43vB.es.js +150 -0
- package/dist/chunks/menu-aLEA43vB.es.js.map +1 -0
- package/dist/chunks/{multiline-text-input-BGnvpB1r.es.js → multiline-text-input-sr-8f5JV.es.js} +2 -2
- package/dist/chunks/{multiline-text-input-BGnvpB1r.es.js.map → multiline-text-input-sr-8f5JV.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-sXIlwrvT.cjs.js → multiline-text-input-z1pACPVX.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-sXIlwrvT.cjs.js.map → multiline-text-input-z1pACPVX.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-D3DvYEDv.cjs.js → nimbus-provider-ClSAgdoD.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-D3DvYEDv.cjs.js.map → nimbus-provider-ClSAgdoD.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CybdU89B.es.js → nimbus-provider-DaWtjnp-.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-CybdU89B.es.js.map → nimbus-provider-DaWtjnp-.es.js.map} +1 -1
- package/dist/chunks/{number-input-CPnA0dO-.cjs.js → number-input-BszmEIip.cjs.js} +2 -2
- package/dist/chunks/{number-input-CPnA0dO-.cjs.js.map → number-input-BszmEIip.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CzObpfFa.es.js → number-input-D4DKdybl.es.js} +3 -3
- package/dist/chunks/{number-input-CzObpfFa.es.js.map → number-input-D4DKdybl.es.js.map} +1 -1
- package/dist/chunks/{password-input-C_rdTND7.es.js → password-input-7AyAmLgJ.es.js} +3 -3
- package/dist/chunks/{password-input-C_rdTND7.es.js.map → password-input-7AyAmLgJ.es.js.map} +1 -1
- package/dist/chunks/{password-input-BqhrDjyW.cjs.js → password-input-BtvFF-4B.cjs.js} +2 -2
- package/dist/chunks/{password-input-BqhrDjyW.cjs.js.map → password-input-BtvFF-4B.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-CrS1rODC.cjs.js → progress-bar-Dz8r8vuu.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-CrS1rODC.cjs.js.map → progress-bar-Dz8r8vuu.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-pPWJ1Sn8.es.js → progress-bar-Wka_eryr.es.js} +2 -2
- package/dist/chunks/{progress-bar-pPWJ1Sn8.es.js.map → progress-bar-Wka_eryr.es.js.map} +1 -1
- package/dist/chunks/{radio-input-OpbQD2zP.es.js → radio-input-B0qTg-Fb.es.js} +3 -3
- package/dist/chunks/{radio-input-OpbQD2zP.es.js.map → radio-input-B0qTg-Fb.es.js.map} +1 -1
- package/dist/chunks/{radio-input-BTEXrXaF.cjs.js → radio-input-D_pe6uBJ.cjs.js} +2 -2
- package/dist/chunks/{radio-input-BTEXrXaF.cjs.js.map → radio-input-D_pe6uBJ.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-BOP_J_5a.es.js → range-calendar-CoAszOTq.es.js} +4 -4
- package/dist/chunks/{range-calendar-BOP_J_5a.es.js.map → range-calendar-CoAszOTq.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-CFotnBzs.cjs.js → range-calendar-T1Wlvm-Z.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-CFotnBzs.cjs.js.map → range-calendar-T1Wlvm-Z.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-CgrxAPHc.es.js → rich-text-input-9MdutxJr.es.js} +190 -177
- package/dist/chunks/rich-text-input-9MdutxJr.es.js.map +1 -0
- package/dist/chunks/rich-text-input-D36fnIHb.cjs.js +7 -0
- package/dist/chunks/rich-text-input-D36fnIHb.cjs.js.map +1 -0
- package/dist/chunks/select-DFNyky2d.cjs.js +2 -0
- package/dist/chunks/{select-Coyt1pJN.cjs.js.map → select-DFNyky2d.cjs.js.map} +1 -1
- package/dist/chunks/{select-CAeD_ZuZ.es.js → select-Dz2O_cFR.es.js} +36 -35
- package/dist/chunks/{select-CAeD_ZuZ.es.js.map → select-Dz2O_cFR.es.js.map} +1 -1
- package/dist/chunks/slate-helpers-CcSj-DBm.cjs.js +24 -0
- package/dist/chunks/slate-helpers-CcSj-DBm.cjs.js.map +1 -0
- package/dist/chunks/slate-helpers-DsTiLoO8.es.js +9042 -0
- package/dist/chunks/slate-helpers-DsTiLoO8.es.js.map +1 -0
- package/dist/chunks/{split-button-BYrr5vRr.cjs.js → split-button-BIMKDmUe.cjs.js} +2 -2
- package/dist/chunks/split-button-BIMKDmUe.cjs.js.map +1 -0
- package/dist/chunks/{split-button-j2bgcP59.es.js → split-button-C5Op1s7Z.es.js} +5 -5
- package/dist/chunks/split-button-C5Op1s7Z.es.js.map +1 -0
- package/dist/chunks/{switch-BgNpbn2e.cjs.js → switch-BToNhl42.cjs.js} +2 -2
- package/dist/chunks/{switch-BgNpbn2e.cjs.js.map → switch-BToNhl42.cjs.js.map} +1 -1
- package/dist/chunks/{switch-Cid4U3m8.es.js → switch-Poa2k7a5.es.js} +3 -3
- package/dist/chunks/{switch-Cid4U3m8.es.js.map → switch-Poa2k7a5.es.js.map} +1 -1
- package/dist/chunks/{tag-group-CeNHz5QQ.es.js → tag-group-BCNooINR.es.js} +44 -43
- package/dist/chunks/{tag-group-CeNHz5QQ.es.js.map → tag-group-BCNooINR.es.js.map} +1 -1
- package/dist/chunks/tag-group-DzXa9m7w.cjs.js +2 -0
- package/dist/chunks/{tag-group-B3YSTBpb.cjs.js.map → tag-group-DzXa9m7w.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-C2y4O13I.cjs.js → text-input-5jfm2V1Y.cjs.js} +2 -2
- package/dist/chunks/{text-input-C2y4O13I.cjs.js.map → text-input-5jfm2V1Y.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-TZXg0lEQ.es.js → text-input-Dqx8GVHm.es.js} +3 -3
- package/dist/chunks/{text-input-TZXg0lEQ.es.js.map → text-input-Dqx8GVHm.es.js.map} +1 -1
- package/dist/chunks/{time-input-cHUvGWDc.cjs.js → time-input-B_PIpe-Z.cjs.js} +2 -2
- package/dist/chunks/{time-input-cHUvGWDc.cjs.js.map → time-input-B_PIpe-Z.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-CI_HoOGU.es.js → time-input-DxKFrUee.es.js} +2 -2
- package/dist/chunks/{time-input-CI_HoOGU.es.js.map → time-input-DxKFrUee.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-a0gCembi.es.js → toggle-button-C1bAVGF3.es.js} +3 -3
- package/dist/chunks/{toggle-button-a0gCembi.es.js.map → toggle-button-C1bAVGF3.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C9ezVsSp.cjs.js → toggle-button-Cg00z4JT.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-C9ezVsSp.cjs.js.map → toggle-button-Cg00z4JT.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CLGq6IO7.cjs.js → toolbar-ClUkHnY4.cjs.js} +2 -2
- package/dist/chunks/{toolbar-CLGq6IO7.cjs.js.map → toolbar-ClUkHnY4.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-hpBfKrTl.es.js → toolbar-Oxkd8pfI.es.js} +3 -3
- package/dist/chunks/{toolbar-hpBfKrTl.es.js.map → toolbar-Oxkd8pfI.es.js.map} +1 -1
- package/dist/chunks/use-formatting-state-B26nE9CO.es.js +113 -0
- package/dist/chunks/use-formatting-state-B26nE9CO.es.js.map +1 -0
- package/dist/chunks/use-formatting-state-D7zenGZW.cjs.js +2 -0
- package/dist/chunks/use-formatting-state-D7zenGZW.cjs.js.map +1 -0
- package/dist/chunks/{useSingleSelectListState-F2WkLZRg.cjs.js → useSingleSelectListState-C_48GoKf.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-F2WkLZRg.cjs.js.map → useSingleSelectListState-C_48GoKf.cjs.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-D1rjgMv_.es.js → useSingleSelectListState-DZavH1SN.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-D1rjgMv_.es.js.map → useSingleSelectListState-DZavH1SN.es.js.map} +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- 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 +46 -47
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.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/divider.cjs +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/hooks.cjs +1 -1
- package/dist/components/hooks.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/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.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.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.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.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/utils.cjs +1 -1
- package/dist/components/utils.es.js +2 -2
- package/dist/components.d.ts +5 -20
- package/dist/divider.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -20
- package/dist/index.es.js +100 -101
- package/dist/split-button.d.ts +2 -2
- package/package.json +8 -8
- package/dist/chunks/Dialog-CYa26HlL.cjs.js +0 -2
- package/dist/chunks/ListBox-CikEmFBx.cjs.js +0 -2
- package/dist/chunks/SelectionManager-CLyu96pU.es.js +0 -1946
- package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +0 -1
- package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +0 -18
- package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +0 -1
- package/dist/chunks/Separator-3-E2tRbk.es.js +0 -92
- package/dist/chunks/Separator-3-E2tRbk.es.js.map +0 -1
- package/dist/chunks/Separator-CAOg-vqY.cjs.js +0 -2
- package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +0 -1
- package/dist/chunks/combobox-DtPDxCo3.cjs.js +0 -2
- package/dist/chunks/data-table-Cpk3q34E.cjs.js +0 -2
- package/dist/chunks/divider--BAm3ca4.es.js +0 -53
- package/dist/chunks/divider--BAm3ca4.es.js.map +0 -1
- package/dist/chunks/divider-BuizjeAj.cjs.js +0 -2
- package/dist/chunks/divider-BuizjeAj.cjs.js.map +0 -1
- package/dist/chunks/menu-8g9Hn1nm.es.js +0 -157
- package/dist/chunks/menu-8g9Hn1nm.es.js.map +0 -1
- package/dist/chunks/menu-Bm1u-R6o.cjs.js +0 -2
- package/dist/chunks/menu-Bm1u-R6o.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js +0 -2
- package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CgrxAPHc.es.js.map +0 -1
- package/dist/chunks/select-Coyt1pJN.cjs.js +0 -2
- package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js +0 -24
- package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js.map +0 -1
- package/dist/chunks/slate-helpers-DunxggA8.es.js +0 -6919
- package/dist/chunks/slate-helpers-DunxggA8.es.js.map +0 -1
- package/dist/chunks/split-button-BYrr5vRr.cjs.js.map +0 -1
- package/dist/chunks/split-button-j2bgcP59.es.js.map +0 -1
- package/dist/chunks/tag-group-B3YSTBpb.cjs.js +0 -2
- package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js +0 -2
- package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js.map +0 -1
- package/dist/chunks/use-formatting-state-DdKYccZs.es.js +0 -247
- package/dist/chunks/use-formatting-state-DdKYccZs.es.js.map +0 -1
- package/dist/chunks/useSeparator-B-OtWwE7.cjs.js +0 -2
- package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +0 -1
- package/dist/chunks/useSeparator-Dg70ACBm.es.js +0 -19
- package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),R=require("./button-
|
|
2
|
-
//# sourceMappingURL=split-button-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),R=require("./button-DJYITnqc.cjs.js"),T=require("./icon-button-CPXhdrQY.cjs.js"),V=require("@chakra-ui/react"),O=require("./index-B3DGNvyC.cjs.js"),G=require("@commercetools/nimbus-icons"),u=require("./menu-DxXsyeUG.cjs.js"),{withProvider:N,withContext:d}=V.createSlotRecipeContext({recipe:O.splitButtonSlotRecipe}),z=N("div","root"),K=d("div","buttonGroup"),L=d("button","primaryButton"),W=d("button","dropdownTrigger"),D=p=>{const{size:S="md",variant:b="solid",tone:g,isDisabled:m=!1,"aria-label":y,onAction:l,isOpen:C,defaultOpen:j,onOpenChange:M}=p,h={size:S,variant:b,tone:g},f=t=>{if(!o.isValidElement(t)||!t.props)return!1;const n=t.props;return"id"in n&&typeof n.id=="string"},I=t=>!o.isValidElement(t)||!t.props?!1:"children"in t.props,x=o.Children.toArray(p.children),A=x.find(t=>o.isValidElement(t)&&t.props?.slot==="icon"),a=x.filter(t=>!o.isValidElement(t)||t.props?.slot!=="icon"),B=t=>{let n=!1;return o.Children.forEach(t,r=>{if(!n){if(f(r)&&!r.props.isDisabled){n=!0;return}I(r)&&(n=B(r.props.children))}}),n},q=()=>{const t=[],n=c=>{o.Children.forEach(c,i=>{f(i)&&t.push({content:i.props.children,isDisabled:i.props.isDisabled||!1,actionId:i.props.id}),I(i)&&n(i.props.children)})};return n(a),t.find(c=>!c.isDisabled)||t[0]||{content:"No actions available",isDisabled:!0,actionId:null}},E=B(a),s=q(),P=()=>{!s.isDisabled&&s.actionId&&l&&l(s.actionId)},v=m||s.isDisabled,w=m||!E;return e.jsx(z,{variant:b,"data-mode":"split",children:e.jsxs(K,{children:[e.jsx(L,{asChild:!0,children:e.jsxs(R.Button,{...h,isDisabled:v,onPress:P,children:[A,s.content]})}),e.jsxs(u.Menu.Root,{trigger:"press",isOpen:C,defaultOpen:j,onOpenChange:M,placement:"bottom end",selectionMode:"none",onAction:l?t=>l(String(t)):void 0,children:[e.jsx(u.Menu.Trigger,{asChild:!0,children:e.jsx(W,{asChild:!0,children:e.jsx(T.IconButton,{...h,"aria-label":y,isDisabled:w,children:e.jsx(G.KeyboardArrowDown,{})})})}),e.jsx(u.Menu.Content,{children:a})]})]})})};D.displayName="SplitButton";exports.SplitButton=D;
|
|
2
|
+
//# sourceMappingURL=split-button-BIMKDmUe.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button-BIMKDmUe.cjs.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { splitButtonSlotRecipe } from \"./split-button.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: splitButtonSlotRecipe,\n});\n\n// Root Container\nexport interface SplitButtonRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof splitButtonSlotRecipe>\n > {}\nexport const SplitButtonRootSlot = withProvider<\n HTMLDivElement,\n SplitButtonRootSlotProps\n>(\"div\", \"root\");\n\n// Button Group Container\nexport interface SplitButtonButtonGroupSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport interface SplitButtonPrimaryButtonSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport interface SplitButtonTriggerSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Divider components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n interface MenuItemProps {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n }\n\n interface ComponentWithChildren {\n children: React.ReactNode;\n }\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // Separate Icon slots from Menu items\n const childArray = React.Children.toArray(props.children);\n const iconElement = childArray.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) &&\n (child.props as { slot?: string })?.slot === \"icon\"\n );\n const menuItems = childArray.filter(\n (child) =>\n !React.isValidElement(child) ||\n (child.props as { slot?: string })?.slot !== \"icon\"\n );\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {iconElement}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","splitButtonSlotRecipe","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","buttonProps","isMenuItemWithId","element","React","hasChildren","childArray","iconElement","child","menuItems","hasActionableMenuItems","children","hasActionable","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Menu","key","IconButton","KeyboardArrowDown"],"mappings":"sSAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQC,EAAAA,qBACV,CAAC,EAQYC,EAAsBJ,EAGjC,MAAO,MAAM,EAKFK,EAA6BJ,EAGxC,MAAO,aAAa,EAKTK,EAA+BL,EAG1C,SAAU,eAAe,EAKdM,EAAyBN,EAGpC,SAAU,iBAAiB,EClBhBO,EAAeC,GAA4B,CACtD,KAAM,CACJ,KAAAC,EAAO,KACP,QAAAC,EAAU,QACV,KAAAC,EACA,WAAAC,EAAa,GACb,aAAcC,EACd,SAAAC,EACA,OAAAC,EACA,YAAAC,EACA,aAAAC,CAAA,EACET,EAEEU,EAAc,CAAE,KAAAT,EAAM,QAAAC,EAAS,KAAAC,CAAA,EA0B/BQ,EACJC,GACiD,CACjD,GAAI,CAACC,EAAM,eAAeD,CAAO,GAAK,CAACA,EAAQ,MAAO,MAAO,GAC7D,MAAMZ,EAAQY,EAAQ,MACtB,MAAO,OAAQZ,GAAS,OAAOA,EAAM,IAAO,QAC9C,EAGMc,E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AcuB,EAAc,WAChDG,EAA4B1B,GAAc,CAACsB,EAEjD,aACG/B,EAAA,CAAoB,QAAAO,EAAkB,YAAU,QAC/C,gBAACN,EAAA,CAEC,SAAA,CAAAmC,EAAAA,IAAClC,EAAA,CAA6B,QAAO,GACnC,SAAAmC,EAAAA,KAACC,EAAAA,OAAA,CACE,GAAGvB,EACJ,WAAYmB,EACZ,QAASD,EAER,SAAA,CAAAZ,EACAW,EAAc,OAAA,CAAA,CAAA,EAEnB,EAGAK,EAAAA,KAACE,EAAAA,KAAK,KAAL,CACC,QAAQ,QACR,OAAA3B,EACA,YAAAC,EACA,aAAAC,EACA,UAAU,aACV,cAAc,OACd,SAAUH,EAAY6B,GAAQ7B,EAAS,OAAO6B,CAAG,CAAC,EAAI,OAEtD,SAAA,CAAAJ,EAAAA,IAACG,EAAAA,KAAK,QAAL,CAAa,QAAO,GACnB,SAAAH,EAAAA,IAACjC,EAAA,CAAuB,QAAO,GAC7B,SAAAiC,EAAAA,IAACK,EAAAA,WAAA,CACE,GAAG1B,EACJ,aAAYL,EACZ,WAAYyB,EAEZ,eAACO,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAEvB,CAAA,CACF,EAEAN,EAAAA,IAACG,EAAAA,KAAK,QAAL,CAAc,SAAAhB,CAAA,CAAU,CAAA,CAAA,CAAA,CAC3B,CAAA,CACF,CAAA,CACF,CAEJ,EAEAnB,EAAY,YAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { B as V } from "./button-
|
|
4
|
-
import { I as O } from "./icon-button-
|
|
3
|
+
import { B as V } from "./button-DEgBQobR.es.js";
|
|
4
|
+
import { I as O } from "./icon-button-DPtCLr1A.es.js";
|
|
5
5
|
import { createSlotRecipeContext as j } from "@chakra-ui/react";
|
|
6
|
-
import { a as G } from "./index-
|
|
6
|
+
import { a as G } from "./index-BDXHumM1.es.js";
|
|
7
7
|
import { KeyboardArrowDown as N } from "@commercetools/nimbus-icons";
|
|
8
|
-
import { M as d } from "./menu-
|
|
8
|
+
import { M as d } from "./menu-aLEA43vB.es.js";
|
|
9
9
|
const { withProvider: _, withContext: u } = /* @__PURE__ */ j({
|
|
10
10
|
recipe: G
|
|
11
11
|
}), z = /* @__PURE__ */ _("div", "root"), K = /* @__PURE__ */ u("div", "buttonGroup"), L = /* @__PURE__ */ u("button", "primaryButton"), W = /* @__PURE__ */ u("button", "dropdownTrigger"), k = (m) => {
|
|
@@ -100,4 +100,4 @@ k.displayName = "SplitButton";
|
|
|
100
100
|
export {
|
|
101
101
|
k as S
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=split-button-
|
|
103
|
+
//# sourceMappingURL=split-button-C5Op1s7Z.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button-C5Op1s7Z.es.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { splitButtonSlotRecipe } from \"./split-button.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: splitButtonSlotRecipe,\n});\n\n// Root Container\nexport interface SplitButtonRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof splitButtonSlotRecipe>\n > {}\nexport const SplitButtonRootSlot = withProvider<\n HTMLDivElement,\n SplitButtonRootSlotProps\n>(\"div\", \"root\");\n\n// Button Group Container\nexport interface SplitButtonButtonGroupSlotProps\n extends HTMLChakraProps<\"div\"> {}\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport interface SplitButtonPrimaryButtonSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport interface SplitButtonTriggerSlotProps\n extends HTMLChakraProps<\"button\"> {}\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Divider components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n interface MenuItemProps {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n }\n\n interface ComponentWithChildren {\n children: React.ReactNode;\n }\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // Separate Icon slots from Menu items\n const childArray = React.Children.toArray(props.children);\n const iconElement = childArray.find(\n (child): child is React.ReactElement =>\n React.isValidElement(child) &&\n (child.props as { slot?: string })?.slot === \"icon\"\n );\n const menuItems = childArray.filter(\n (child) =>\n !React.isValidElement(child) ||\n (child.props as { slot?: string })?.slot !== \"icon\"\n );\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {iconElement}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","splitButtonSlotRecipe","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","buttonProps","isMenuItemWithId","element","React","hasChildren","childArray","iconElement","child","menuItems","hasActionableMenuItems","children","hasActionable","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Menu","key","IconButton","KeyboardArrowDown"],"mappings":";;;;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,QAAQC;AACV,CAAC,GAQYC,IAAsB,gBAAAJ,EAGjC,OAAO,MAAM,GAKFK,IAA6B,gBAAAJ,EAGxC,OAAO,aAAa,GAKTK,IAA+B,gBAAAL,EAG1C,UAAU,eAAe,GAKdM,IAAyB,gBAAAN,EAGpC,UAAU,iBAAiB,GClBhBO,IAAc,CAACC,MAA4B;AACtD,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,cAAcC;AAAA,IACd,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,IACET,GAEEU,IAAc,EAAE,MAAAT,GAAM,SAAAC,GAAS,MAAAC,EAAA,GA0B/BQ,IAAmB,CACvBC,MACiD;AACjD,QAAI,CAACC,EAAM,eAAeD,CAAO,KAAK,CAACA,EAAQ,MAAO,QAAO;AAC7D,UAAMZ,IAAQY,EAAQ;AACtB,WAAO,QAAQZ,KAAS,OAAOA,EAAM,MAAO;AAAA,EAC9C,GAGMc,IAAc,CAClBF,MAEI,CA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;AAEAnB,EAAY,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),$=require("react"),x=require("@chakra-ui/react"),f=require("@chakra-ui/react/styled-system"),R=require("./visually-hidden-Bh-G5QHv.cjs.js"),q=require("./extractStyleProps-
|
|
2
|
-
//# sourceMappingURL=switch-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),$=require("react"),x=require("@chakra-ui/react"),f=require("@chakra-ui/react/styled-system"),R=require("./visually-hidden-Bh-G5QHv.cjs.js"),q=require("./extractStyleProps-bWKBkEco.cjs.js"),w=require("./index-B3DGNvyC.cjs.js"),y=require("./useObjectRef-dXOJdONs.cjs.js"),j=require("./mergeProps-BA5Cwf5w.cjs.js"),m=require("./useToggleState-Dl-o05wQ.cjs.js"),g=require("./useToggle-VJWgbeCC.cjs.js"),k=require("./useFocusRing-CzFer4bD.cjs.js");function v(s,e,c){let{labelProps:i,inputProps:l,isSelected:o,isPressed:a,isDisabled:n,isReadOnly:d}=g.$d2c8e2b0480f3f34$export$cbe85ee05b554577(s,e,c);return{labelProps:i,inputProps:{...l,role:"switch",checked:o},isSelected:o,isPressed:a,isDisabled:n,isReadOnly:d}}const{withProvider:D,withContext:u}=f.createSlotRecipeContext({key:"switch"}),O=D("label","root"),T=u("span","label"),C=u("span","track"),F=u("span","thumb"),b=({ref:s,...e})=>{const c=$.useRef(null),i=y.$df56164dff5785e2$export$4338b53315abf666(s?x.mergeRefs(c,s):c),l=f.useSlotRecipe({recipe:w.switchSlotRecipe}),[o,a]=l.splitVariantProps(e),[n,d]=q.extractStyleProps(a),p=m.$3017fa7ffdddec74$export$8042c6c013fd5226(e),{inputProps:h}=v(d,p,i),{isFocused:S,focusProps:P}=k.$f7dceffc5ad7768b$export$4e328f61c538687f(),r={"data-selected":p.isSelected,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":S||void 0};return t.jsxs(O,{"data-slot":"root",...o,...r,...n,children:[t.jsxs(C,{"data-slot":"track",...r,children:[t.jsx(F,{"data-slot":"thumb",...r}),t.jsx(R.VisuallyHidden,{as:"span",children:t.jsx("input",{"data-slot":"input",...j.$3ef42575df84b30b$export$9d1611c77c2fe928(h,P),ref:i})})]}),e.children&&t.jsx(T,{"data-slot":"label",...r,children:e.children})]})};b.displayName="Switch";exports.Switch=b;
|
|
2
|
+
//# sourceMappingURL=switch-BToNhl42.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-
|
|
1
|
+
{"version":3,"file":"switch-BToNhl42.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":"6eAaA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,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AGoB,CAAA,CAAY,EACnDE,EAAAA,IAACC,EAAAA,eAAA,CAAe,GAAG,OACjB,SAAAD,EAAAA,IAAC,QAAA,CACC,YAAU,QACT,GAAGE,EAAAA,0CAAWpC,EAAY8B,CAAU,EACrC,IAAAhC,CAAA,CAAA,CACF,CACF,CAAA,EACF,EAECF,EAAM,UACLsC,MAACxB,EAAA,CAAgB,YAAU,QAAS,GAAGsB,EACpC,SAAApC,EAAM,QAAA,CACT,CAAA,CAAA,CAAA,CAIR,EACAiB,EAAO,YAAc","x_google_ignoreList":[0]}
|
|
@@ -3,8 +3,8 @@ import { useRef as u } from "react";
|
|
|
3
3
|
import { mergeRefs as P } from "@chakra-ui/react";
|
|
4
4
|
import { createSlotRecipeContext as S, useSlotRecipe as w } from "@chakra-ui/react/styled-system";
|
|
5
5
|
import { V as x } from "./visually-hidden-BluyWhUI.es.js";
|
|
6
|
-
import { e as R } from "./extractStyleProps-
|
|
7
|
-
import { c as y } from "./index-
|
|
6
|
+
import { e as R } from "./extractStyleProps-CFQKiz8b.es.js";
|
|
7
|
+
import { c as y } from "./index-BDXHumM1.es.js";
|
|
8
8
|
import { $ as k } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
9
9
|
import { $ as v } from "./mergeProps-B_9syxhT.es.js";
|
|
10
10
|
import { $ as D } from "./useToggleState-Uh0wTgdI.es.js";
|
|
@@ -76,4 +76,4 @@ H.displayName = "Switch";
|
|
|
76
76
|
export {
|
|
77
77
|
H as S
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=switch-
|
|
79
|
+
//# sourceMappingURL=switch-Poa2k7a5.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-
|
|
1
|
+
{"version":3,"file":"switch-Poa2k7a5.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":";;;;;;;;;;;;AAaA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,GAAY,YAAYC,GAAY,YAAYC,GAAY,WAAWC,GAAW,YAAYC,GAAY,YAAYC,EAAU,IAASC,EAAkBT,GAAOC,GAAOC,CAAG;AAC9L,SAAO;AAAA,IACH,YAAYC;AAAA,IACZ,YAAY;AAAA,MACR,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,SAASC;AAAA,IACrB;AAAA,IACQ,YAAYA;AAAA,IACZ,WAAWC;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,EACpB;AACA;ACnBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAiB,gBAAAH;AAAA,EAC5B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAH;AAAA,EAC7B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAJ;AAAA,EAC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,SAAS,GAAGsB,GACpC,UAAApC,EAAM,SAAA,CACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AACAiB,EAAO,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsx as M, jsxs as Xe, Fragment as Ye } from "react/jsx-runtime";
|
|
2
2
|
import { createSlotRecipeContext as Ze } from "@chakra-ui/react/styled-system";
|
|
3
3
|
import { $ as _e } from "./Button-CNBS3n5a.es.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as q, d as J, $ as z, b as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { b as N, $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { a as
|
|
4
|
+
import { c as eo, $ as oo, g as H, k as ro, l as to, h as ao } from "./SelectionManager-CtwcAiw4.es.js";
|
|
5
|
+
import { a as q, d as J, $ as z, b as io } from "./utils-BkdW_cdL.es.js";
|
|
6
|
+
import { $ as no } from "./Label-B2YyCdLl.es.js";
|
|
7
|
+
import { b as N, $ as lo, f as uo } from "./ListBox-DWMnhpDd.es.js";
|
|
8
|
+
import { $ as so } from "./Text-DOcU1ycg.es.js";
|
|
9
|
+
import { a as co, d as po, g as fo, f as bo } from "./Separator-BCuq0iz5.es.js";
|
|
10
|
+
import { a as Q, $ as k, b as $o, e as vo } from "./mergeProps-B_9syxhT.es.js";
|
|
10
11
|
import { $ as F } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
11
12
|
import { $ as mo } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
12
13
|
import y, { useRef as V, useState as go, useEffect as X, forwardRef as Y, useContext as K, createContext as Z } from "react";
|
|
13
14
|
import { $ as _ } from "./useFocusRing-updnkDQg.es.js";
|
|
14
15
|
import { $ as xo } from "./useHover-DhoE75lX.es.js";
|
|
15
16
|
import { $ as yo, a as Do, b as Bo } from "./useHighlightSelectionDescription-BQg1WcM3.es.js";
|
|
16
|
-
import { $ as Po } from "./
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as
|
|
17
|
+
import { $ as Po } from "./Header-CZkkXWBA.es.js";
|
|
18
|
+
import { $ as ho } from "./useField-Ce9zQxmx.es.js";
|
|
19
|
+
import { $ as ko } from "./useFocusWithin-ByYlHjju.es.js";
|
|
19
20
|
import { $ as ee } from "./context-R4YUlO9Y.es.js";
|
|
20
21
|
import { e as oe } from "./openLink-Ctl0AdAy.es.js";
|
|
21
22
|
import { c as T, $ as S, a as Eo } from "./scrollIntoView-BYF_8_6g.es.js";
|
|
@@ -25,7 +26,7 @@ import { b as U } from "./FocusScope-CNO0fzPs.es.js";
|
|
|
25
26
|
import { $ as C } from "./focusSafely-DJpphVHF.es.js";
|
|
26
27
|
import { $ as Ao } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
27
28
|
import { Close as To } from "@commercetools/nimbus-icons";
|
|
28
|
-
import { I as So } from "./icon-button-
|
|
29
|
+
import { I as So } from "./icon-button-DPtCLr1A.es.js";
|
|
29
30
|
const I = /* @__PURE__ */ new WeakMap();
|
|
30
31
|
function G(r, e) {
|
|
31
32
|
var o;
|
|
@@ -68,7 +69,7 @@ function Fo(r, e, o) {
|
|
|
68
69
|
isDisabled: e.collection.size !== 0
|
|
69
70
|
}), x = F(r, {
|
|
70
71
|
labelable: !0
|
|
71
|
-
}), D =
|
|
72
|
+
}), D = k(
|
|
72
73
|
x,
|
|
73
74
|
{
|
|
74
75
|
role: "grid",
|
|
@@ -161,8 +162,8 @@ function Ko(r, e, o) {
|
|
|
161
162
|
});
|
|
162
163
|
else {
|
|
163
164
|
f.currentNode = o.current;
|
|
164
|
-
let
|
|
165
|
-
|
|
165
|
+
let h = W(f);
|
|
166
|
+
h && (C(h), T(h, {
|
|
166
167
|
containingElement: S(o.current)
|
|
167
168
|
}));
|
|
168
169
|
}
|
|
@@ -181,8 +182,8 @@ function Ko(r, e, o) {
|
|
|
181
182
|
});
|
|
182
183
|
else {
|
|
183
184
|
f.currentNode = o.current;
|
|
184
|
-
let
|
|
185
|
-
|
|
185
|
+
let h = W(f);
|
|
186
|
+
h && (C(h), T(h, {
|
|
186
187
|
containingElement: S(o.current)
|
|
187
188
|
}));
|
|
188
189
|
}
|
|
@@ -212,7 +213,7 @@ function Ko(r, e, o) {
|
|
|
212
213
|
f.currentNode = document.activeElement, (a.shiftKey ? f.previousNode() : f.nextNode()) && a.stopPropagation();
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
|
-
}, He = oe(t.props), qe = A.hasAction ? He : {}, O =
|
|
216
|
+
}, He = oe(t.props), qe = A.hasAction ? He : {}, O = k(R, qe, {
|
|
216
217
|
role: "row",
|
|
217
218
|
onKeyDownCapture: Ge,
|
|
218
219
|
onKeyDown: We,
|
|
@@ -241,7 +242,7 @@ function Ko(r, e, o) {
|
|
|
241
242
|
};
|
|
242
243
|
return {
|
|
243
244
|
rowProps: {
|
|
244
|
-
...
|
|
245
|
+
...k(O, P)
|
|
245
246
|
},
|
|
246
247
|
gridCellProps: Je,
|
|
247
248
|
descriptionProps: {
|
|
@@ -266,7 +267,7 @@ function No(r, e, o) {
|
|
|
266
267
|
direction: i,
|
|
267
268
|
disabledKeys: e.disabledKeys,
|
|
268
269
|
disabledBehavior: e.selectionManager.disabledBehavior
|
|
269
|
-
}), { labelProps: t, fieldProps: n, descriptionProps: s, errorMessageProps: d } =
|
|
270
|
+
}), { labelProps: t, fieldProps: n, descriptionProps: s, errorMessageProps: d } = ho({
|
|
270
271
|
...r,
|
|
271
272
|
labelElementType: "span"
|
|
272
273
|
}), { gridProps: v } = Fo({
|
|
@@ -276,7 +277,7 @@ function No(r, e, o) {
|
|
|
276
277
|
shouldFocusWrap: !0,
|
|
277
278
|
linkBehavior: "override",
|
|
278
279
|
keyboardNavigationBehavior: "tab"
|
|
279
|
-
}, e, o), [l, g] = go(!1), { focusWithinProps: c } =
|
|
280
|
+
}, e, o), [l, g] = go(!1), { focusWithinProps: c } = ko({
|
|
280
281
|
onFocusWithinChange: g
|
|
281
282
|
}), $ = F(r), p = V(e.collection.size);
|
|
282
283
|
return X(() => {
|
|
@@ -288,7 +289,7 @@ function No(r, e, o) {
|
|
|
288
289
|
]), re.set(e, {
|
|
289
290
|
onRemove: r.onRemove
|
|
290
291
|
}), {
|
|
291
|
-
gridProps:
|
|
292
|
+
gridProps: k(v, $, {
|
|
292
293
|
role: e.collection.size ? "grid" : "group",
|
|
293
294
|
"aria-atomic": !1,
|
|
294
295
|
"aria-relevant": "additions",
|
|
@@ -406,13 +407,13 @@ Pe = {
|
|
|
406
407
|
removeButtonLabel: "Verwijderen",
|
|
407
408
|
removeDescription: "Druk op Verwijderen om de tag te verwijderen."
|
|
408
409
|
};
|
|
409
|
-
var
|
|
410
|
-
|
|
410
|
+
var he = {};
|
|
411
|
+
he = {
|
|
411
412
|
removeButtonLabel: "Usuń",
|
|
412
413
|
removeDescription: "Naciśnij Usuń, aby usunąć znacznik."
|
|
413
414
|
};
|
|
414
|
-
var
|
|
415
|
-
|
|
415
|
+
var ke = {};
|
|
416
|
+
ke = {
|
|
416
417
|
removeButtonLabel: "Remover",
|
|
417
418
|
removeDescription: "Pressione Delete para remover a tag."
|
|
418
419
|
};
|
|
@@ -494,8 +495,8 @@ Re = {
|
|
|
494
495
|
"lv-LV": De,
|
|
495
496
|
"nb-NO": Be,
|
|
496
497
|
"nl-NL": Pe,
|
|
497
|
-
"pl-PL":
|
|
498
|
-
"pt-BR":
|
|
498
|
+
"pl-PL": he,
|
|
499
|
+
"pt-BR": ke,
|
|
499
500
|
"pt-PT": Ee,
|
|
500
501
|
"ro-RO": we,
|
|
501
502
|
"ru-RU": Ce,
|
|
@@ -538,12 +539,12 @@ function zo(r, e, o) {
|
|
|
538
539
|
i.key
|
|
539
540
|
])) : null
|
|
540
541
|
},
|
|
541
|
-
rowProps:
|
|
542
|
+
rowProps: k(R, s, B, L, {
|
|
542
543
|
tabIndex: w,
|
|
543
544
|
onKeyDown: n ? $ : void 0,
|
|
544
545
|
"aria-describedby": x["aria-describedby"]
|
|
545
546
|
}),
|
|
546
|
-
gridCellProps:
|
|
547
|
+
gridCellProps: k(d, {
|
|
547
548
|
"aria-errormessage": r["aria-errormessage"],
|
|
548
549
|
"aria-label": r["aria-label"]
|
|
549
550
|
}),
|
|
@@ -552,7 +553,7 @@ function zo(r, e, o) {
|
|
|
552
553
|
};
|
|
553
554
|
}
|
|
554
555
|
const Vo = /* @__PURE__ */ Z(null), ze = /* @__PURE__ */ Z(null), Io = /* @__PURE__ */ Y(function(e, o) {
|
|
555
|
-
return [e, o] = z(e, o, Vo), /* @__PURE__ */ y.createElement(
|
|
556
|
+
return [e, o] = z(e, o, Vo), /* @__PURE__ */ y.createElement(bo, {
|
|
556
557
|
content: e.children
|
|
557
558
|
}, (i) => /* @__PURE__ */ y.createElement(Oo, {
|
|
558
559
|
props: e,
|
|
@@ -562,12 +563,12 @@ const Vo = /* @__PURE__ */ Z(null), ze = /* @__PURE__ */ Z(null), Io = /* @__PUR
|
|
|
562
563
|
});
|
|
563
564
|
function Oo({ props: r, forwardedRef: e, collection: o }) {
|
|
564
565
|
let i;
|
|
565
|
-
[i] = z({}, null,
|
|
566
|
-
let { filter: u, ...t } = i, { shouldUseVirtualFocus: n, disallowTypeAhead: s, ...d } = t || {}, v = V(null), [l, g] =
|
|
566
|
+
[i] = z({}, null, ao);
|
|
567
|
+
let { filter: u, ...t } = i, { shouldUseVirtualFocus: n, disallowTypeAhead: s, ...d } = t || {}, v = V(null), [l, g] = io(!r["aria-label"] && !r["aria-labelledby"]), c = lo({
|
|
567
568
|
...r,
|
|
568
569
|
children: void 0,
|
|
569
570
|
collection: o
|
|
570
|
-
}), $ =
|
|
571
|
+
}), $ = uo(c, u), p = F(r, {
|
|
571
572
|
global: !0
|
|
572
573
|
}), P = Object.fromEntries(Object.entries(p).map(([L]) => [
|
|
573
574
|
L,
|
|
@@ -588,7 +589,7 @@ function Oo({ props: r, forwardedRef: e, collection: o }) {
|
|
|
588
589
|
}, /* @__PURE__ */ y.createElement(J, {
|
|
589
590
|
values: [
|
|
590
591
|
[
|
|
591
|
-
|
|
592
|
+
no,
|
|
592
593
|
{
|
|
593
594
|
...D,
|
|
594
595
|
elementType: "span",
|
|
@@ -607,7 +608,7 @@ function Oo({ props: r, forwardedRef: e, collection: o }) {
|
|
|
607
608
|
$
|
|
608
609
|
],
|
|
609
610
|
[
|
|
610
|
-
|
|
611
|
+
so,
|
|
611
612
|
{
|
|
612
613
|
slots: {
|
|
613
614
|
description: E,
|
|
@@ -622,7 +623,7 @@ const Uo = /* @__PURE__ */ Y(function(e, o) {
|
|
|
622
623
|
return K(N) ? /* @__PURE__ */ y.createElement(Go, {
|
|
623
624
|
props: e,
|
|
624
625
|
forwardedRef: o
|
|
625
|
-
}) : /* @__PURE__ */ y.createElement(
|
|
626
|
+
}) : /* @__PURE__ */ y.createElement(fo, e);
|
|
626
627
|
});
|
|
627
628
|
function Go({ props: r, forwardedRef: e }) {
|
|
628
629
|
let o = K(N), { CollectionRoot: i } = K(H), [u, t] = z({}, e, ze), { focusProps: n, isFocused: s, isFocusVisible: d } = _(), v = {
|
|
@@ -635,11 +636,11 @@ function Go({ props: r, forwardedRef: e }) {
|
|
|
635
636
|
style: r.style,
|
|
636
637
|
defaultClassName: "react-aria-TagList",
|
|
637
638
|
values: v
|
|
638
|
-
}), g =
|
|
639
|
+
}), g = to(o.selectionManager.focusedKey), c = F(r, {
|
|
639
640
|
global: !0
|
|
640
641
|
});
|
|
641
642
|
return /* @__PURE__ */ y.createElement("div", {
|
|
642
|
-
...
|
|
643
|
+
...k(c, l, u, n),
|
|
643
644
|
ref: t,
|
|
644
645
|
"data-empty": o.collection.size === 0 || void 0,
|
|
645
646
|
"data-focused": s || void 0,
|
|
@@ -649,7 +650,7 @@ function Go({ props: r, forwardedRef: e }) {
|
|
|
649
650
|
persistedKeys: g
|
|
650
651
|
}));
|
|
651
652
|
}
|
|
652
|
-
const jo = /* @__PURE__ */
|
|
653
|
+
const jo = /* @__PURE__ */ co(po, (r, e, o) => {
|
|
653
654
|
let i = K(N), u = mo(e), { focusProps: t, isFocusVisible: n } = _({
|
|
654
655
|
within: !1
|
|
655
656
|
}), { rowProps: s, gridCellProps: d, removeButtonProps: v, ...l } = zo({
|
|
@@ -682,7 +683,7 @@ const jo = /* @__PURE__ */ ro(to, (r, e, o) => {
|
|
|
682
683
|
});
|
|
683
684
|
return delete p.id, delete p.onClick, /* @__PURE__ */ y.createElement("div", {
|
|
684
685
|
ref: u,
|
|
685
|
-
...
|
|
686
|
+
...k(p, $, s, t, g),
|
|
686
687
|
"data-selected": l.isSelected || void 0,
|
|
687
688
|
"data-disabled": l.isDisabled || void 0,
|
|
688
689
|
"data-hovered": c || void 0,
|
|
@@ -708,7 +709,7 @@ const jo = /* @__PURE__ */ ro(to, (r, e, o) => {
|
|
|
708
709
|
],
|
|
709
710
|
[
|
|
710
711
|
H,
|
|
711
|
-
|
|
712
|
+
ro
|
|
712
713
|
]
|
|
713
714
|
]
|
|
714
715
|
}, $.children)));
|
|
@@ -770,12 +771,12 @@ const Ue = ({
|
|
|
770
771
|
)
|
|
771
772
|
] }) });
|
|
772
773
|
Ue.displayName = "TagGroup.Tag";
|
|
773
|
-
const
|
|
774
|
+
const hr = {
|
|
774
775
|
Root: Ie,
|
|
775
776
|
TagList: Oe,
|
|
776
777
|
Tag: Ue
|
|
777
778
|
};
|
|
778
779
|
export {
|
|
779
|
-
|
|
780
|
+
hr as T
|
|
780
781
|
};
|
|
781
|
-
//# sourceMappingURL=tag-group-
|
|
782
|
+
//# sourceMappingURL=tag-group-BCNooINR.es.js.map
|