@commercetools/nimbus 0.0.0-canary-20251027194157 → 0.0.0-canary-20251028202350
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-CqCJF7Kz.es.js → Button-SjGHt140.es.js} +2 -2
- package/dist/chunks/{Button-CqCJF7Kz.es.js.map → Button-SjGHt140.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-CoZRYV8T.es.js → CollectionBuilder-BhYUxJYI.es.js} +6 -6
- package/dist/chunks/{CollectionBuilder-CoZRYV8T.es.js.map → CollectionBuilder-BhYUxJYI.es.js.map} +1 -1
- package/dist/chunks/{DateField-ChNVEFNs.es.js → DateField-DMjgxual.es.js} +5 -5
- package/dist/chunks/{DateField-ChNVEFNs.es.js.map → DateField-DMjgxual.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-uW8Z5fWm.es.js → DatePicker-Cvad8nra.es.js} +7 -7
- package/dist/chunks/{DatePicker-uW8Z5fWm.es.js.map → DatePicker-Cvad8nra.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-Codg0QnC.cjs.js → DatePicker-DGLrUdLu.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-Codg0QnC.cjs.js.map → DatePicker-DGLrUdLu.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-DyQtQIZJ.es.js → Dialog-BUtdEtlF.es.js} +11 -11
- package/dist/chunks/{Dialog-DyQtQIZJ.es.js.map → Dialog-BUtdEtlF.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DINBl88u.cjs.js → Dialog-Ye_7tQZU.cjs.js} +2 -2
- package/dist/chunks/{Dialog-DINBl88u.cjs.js.map → Dialog-Ye_7tQZU.cjs.js.map} +1 -1
- package/dist/chunks/Header-Bvl-gjeR.cjs.js +2 -0
- package/dist/chunks/Header-Bvl-gjeR.cjs.js.map +1 -0
- package/dist/chunks/Header-CpF5ynyj.es.js +213 -0
- package/dist/chunks/Header-CpF5ynyj.es.js.map +1 -0
- package/dist/chunks/{Heading-C5BLc9Ds.es.js → Heading-DXod1zoy.es.js} +7 -7
- package/dist/chunks/{Heading-C5BLc9Ds.es.js.map → Heading-DXod1zoy.es.js.map} +1 -1
- package/dist/chunks/ListBox-CdtzuZzA.es.js +561 -0
- package/dist/chunks/ListBox-CdtzuZzA.es.js.map +1 -0
- package/dist/chunks/ListBox-Dcnj8pHo.cjs.js +2 -0
- package/dist/chunks/ListBox-Dcnj8pHo.cjs.js.map +1 -0
- package/dist/chunks/{Modal-DDTTtqGV.es.js → Modal-BgIeZMyG.es.js} +4 -4
- package/dist/chunks/{Modal-DDTTtqGV.es.js.map → Modal-BgIeZMyG.es.js.map} +1 -1
- package/dist/chunks/{Modal-C9uSJ3BN.cjs.js → Modal-DjOIA2BE.cjs.js} +2 -2
- package/dist/chunks/{Modal-C9uSJ3BN.cjs.js.map → Modal-DjOIA2BE.cjs.js.map} +1 -1
- package/dist/chunks/{RSPContexts-DV4cFLUV.es.js → RSPContexts-DLgb84PF.es.js} +3 -3
- package/dist/chunks/{RSPContexts-DV4cFLUV.es.js.map → RSPContexts-DLgb84PF.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-Bo1rTzWU.es.js → SelectionManager-S9Amkvfg.es.js} +9 -9
- package/dist/chunks/{SelectionManager-Bo1rTzWU.es.js.map → SelectionManager-S9Amkvfg.es.js.map} +1 -1
- package/dist/chunks/{Separator-OdAUxccH.es.js → Separator-kuF-Wo1o.es.js} +2 -2
- package/dist/chunks/{Separator-OdAUxccH.es.js.map → Separator-kuF-Wo1o.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-BlpcYfFt.es.js → ToggleButton-BIiBT_jL.es.js} +2 -2
- package/dist/chunks/{ToggleButton-BlpcYfFt.es.js.map → ToggleButton-BIiBT_jL.es.js.map} +1 -1
- package/dist/chunks/{accordion-B9pzlIJn.cjs.js → accordion-DhybkUP0.cjs.js} +2 -2
- package/dist/chunks/{accordion-B9pzlIJn.cjs.js.map → accordion-DhybkUP0.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-BazoFx8H.es.js → accordion-DwkpvHwM.es.js} +3 -3
- package/dist/chunks/{accordion-BazoFx8H.es.js.map → accordion-DwkpvHwM.es.js.map} +1 -1
- package/dist/chunks/alert-BlkniDy9.cjs.js +2 -0
- package/dist/chunks/alert-BlkniDy9.cjs.js.map +1 -0
- package/dist/chunks/{alert-DafE92Ep.es.js → alert-CVXQqjXr.es.js} +33 -33
- package/dist/chunks/alert-CVXQqjXr.es.js.map +1 -0
- package/dist/chunks/{button-rMTplznF.es.js → button-B1VvTs1w.es.js} +5 -5
- package/dist/chunks/{button-rMTplznF.es.js.map → button-B1VvTs1w.es.js.map} +1 -1
- package/dist/chunks/{button-DEenpJMD.cjs.js → button-CrUeW0pR.cjs.js} +2 -2
- package/dist/chunks/{button-DEenpJMD.cjs.js.map → button-CrUeW0pR.cjs.js.map} +1 -1
- package/dist/chunks/calendar-BiE914Ki.cjs.js +2 -0
- package/dist/chunks/calendar-BiE914Ki.cjs.js.map +1 -0
- package/dist/chunks/{calendar-B_6JEmid.es.js → calendar-D7pzgXqX.es.js} +27 -18
- package/dist/chunks/calendar-D7pzgXqX.es.js.map +1 -0
- package/dist/chunks/{checkbox-CBESN7DZ.cjs.js → checkbox-CVnNylPS.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CBESN7DZ.cjs.js.map → checkbox-CVnNylPS.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAfhgr2Q.es.js → checkbox-CjR64WWv.es.js} +5 -5
- package/dist/chunks/{checkbox-BAfhgr2Q.es.js.map → checkbox-CjR64WWv.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D0FWLqB-.cjs.js → collapsible-motion-CUcSKaFQ.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D0FWLqB-.cjs.js.map → collapsible-motion-CUcSKaFQ.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-BAHapRD_.es.js → collapsible-motion-CqJQvrAr.es.js} +3 -3
- package/dist/chunks/{collapsible-motion-BAHapRD_.es.js.map → collapsible-motion-CqJQvrAr.es.js.map} +1 -1
- package/dist/chunks/combobox-Bm_d6SaB.cjs.js +2 -0
- package/dist/chunks/{combobox-CJEs8K1H.cjs.js.map → combobox-Bm_d6SaB.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-Dcaw-Scl.es.js → combobox-g3cCFSMZ.es.js} +127 -128
- package/dist/chunks/{combobox-Dcaw-Scl.es.js.map → combobox-g3cCFSMZ.es.js.map} +1 -1
- package/dist/chunks/data-table--7Qxgjb7.cjs.js +2 -0
- package/dist/chunks/data-table--7Qxgjb7.cjs.js.map +1 -0
- package/dist/chunks/data-table-Dnp2C_pq.es.js +4176 -0
- package/dist/chunks/data-table-Dnp2C_pq.es.js.map +1 -0
- package/dist/chunks/{date-input-Edn9vWV1.es.js → date-input-CRnreBK0.es.js} +4 -4
- package/dist/chunks/{date-input-Edn9vWV1.es.js.map → date-input-CRnreBK0.es.js.map} +1 -1
- package/dist/chunks/{date-input-CbJeRnmd.cjs.js → date-input-CXFII_3C.cjs.js} +2 -2
- package/dist/chunks/{date-input-CbJeRnmd.cjs.js.map → date-input-CXFII_3C.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-Bedy6752.cjs.js → date-picker-BzSXCoJ0.cjs.js} +2 -2
- package/dist/chunks/{date-picker-Bedy6752.cjs.js.map → date-picker-BzSXCoJ0.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-DvI-NGBn.es.js → date-picker-Zz2Sp3S6.es.js} +16 -18
- package/dist/chunks/{date-picker-DvI-NGBn.es.js.map → date-picker-Zz2Sp3S6.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BoYoffUD.es.js → date-range-picker-B2Cln3mU.es.js} +15 -17
- package/dist/chunks/{date-range-picker-BoYoffUD.es.js.map → date-range-picker-B2Cln3mU.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-odYIm4fD.cjs.js → date-range-picker-H_YtkQRE.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-odYIm4fD.cjs.js.map → date-range-picker-H_YtkQRE.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker.field-CzsXm49P.es.js → date-range-picker.field-BUaFYM2O.es.js} +3 -3
- package/dist/chunks/{date-range-picker.field-CzsXm49P.es.js.map → date-range-picker.field-BUaFYM2O.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker.field-DTWGHjdx.cjs.js → date-range-picker.field-CS0YU89_.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker.field-DTWGHjdx.cjs.js.map → date-range-picker.field-CS0YU89_.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-CMGeFzws.cjs.js → dialog-D7sGE9KU.cjs.js} +2 -2
- package/dist/chunks/{dialog-CMGeFzws.cjs.js.map → dialog-D7sGE9KU.cjs.js.map} +1 -1
- package/dist/chunks/{dialog-DuiXnZGx.es.js → dialog-DPpvAxDq.es.js} +2 -2
- package/dist/chunks/{dialog-DuiXnZGx.es.js.map → dialog-DPpvAxDq.es.js.map} +1 -1
- package/dist/chunks/{dialog.close-trigger-BNvTsWOn.es.js → dialog.close-trigger-BhUQxKIh.es.js} +7 -7
- package/dist/chunks/{dialog.close-trigger-BNvTsWOn.es.js.map → dialog.close-trigger-BhUQxKIh.es.js.map} +1 -1
- package/dist/chunks/{dialog.close-trigger-Crx_OdhW.cjs.js → dialog.close-trigger-Y9dS7xOy.cjs.js} +2 -2
- package/dist/chunks/{dialog.close-trigger-Crx_OdhW.cjs.js.map → dialog.close-trigger-Y9dS7xOy.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-DR2KKaO_.cjs.js → draggable-list-TkB0lPBh.cjs.js} +3 -3
- package/dist/chunks/draggable-list-TkB0lPBh.cjs.js.map +1 -0
- package/dist/chunks/{draggable-list-BB8IGQJ6.es.js → draggable-list-ibWoXfeJ.es.js} +332 -318
- package/dist/chunks/draggable-list-ibWoXfeJ.es.js.map +1 -0
- package/dist/chunks/{drawer-DUVlTd1F.cjs.js → drawer-DZ75mvzL.cjs.js} +2 -2
- package/dist/chunks/{drawer-DUVlTd1F.cjs.js.map → drawer-DZ75mvzL.cjs.js.map} +1 -1
- package/dist/chunks/{drawer-hKr6SpSe.es.js → drawer-ZczUeqdd.es.js} +8 -8
- package/dist/chunks/{drawer-hKr6SpSe.es.js.map → drawer-ZczUeqdd.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CBaCGha4.cjs.js → extract-style-props-B6-o20G1.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-CBaCGha4.cjs.js.map → extract-style-props-B6-o20G1.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-Cw0ebuoO.es.js → extract-style-props-fH5EHRZU.es.js} +2 -2
- package/dist/chunks/{extract-style-props-Cw0ebuoO.es.js.map → extract-style-props-fH5EHRZU.es.js.map} +1 -1
- package/dist/chunks/{form-field-DBi9CFok.es.js → form-field-C25xvMEM.es.js} +4 -4
- package/dist/chunks/form-field-C25xvMEM.es.js.map +1 -0
- package/dist/chunks/form-field-CpRzgqpq.cjs.js +2 -0
- package/dist/chunks/form-field-CpRzgqpq.cjs.js.map +1 -0
- package/dist/chunks/{getScrollParent-BsNSsJla.es.js → getScrollParent-g7luwBTz.es.js} +2 -2
- package/dist/chunks/{getScrollParent-BsNSsJla.es.js.map → getScrollParent-g7luwBTz.es.js.map} +1 -1
- package/dist/chunks/{heading-Ck9HCM5P.es.js → heading-BfaL2s7d.es.js} +2 -2
- package/dist/chunks/{heading-Ck9HCM5P.es.js.map → heading-BfaL2s7d.es.js.map} +1 -1
- package/dist/chunks/{icon-button-DJZJwO7E.cjs.js → icon-button-C_itb6iA.cjs.js} +2 -2
- package/dist/chunks/{icon-button-DJZJwO7E.cjs.js.map → icon-button-C_itb6iA.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-Bvr0zLGt.es.js → icon-button-XkzBkGuJ.es.js} +2 -2
- package/dist/chunks/{icon-button-Bvr0zLGt.es.js.map → icon-button-XkzBkGuJ.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BlY5NEmP.es.js → icon-toggle-button-D4MFHBgl.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BlY5NEmP.es.js.map → icon-toggle-button-D4MFHBgl.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CUmglgfA.cjs.js → icon-toggle-button-D562D8WP.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CUmglgfA.cjs.js.map → icon-toggle-button-D562D8WP.cjs.js.map} +1 -1
- package/dist/chunks/{index-CFfbr5i_.cjs.js → index-8m2zx8YL.cjs.js} +3 -3
- package/dist/chunks/index-8m2zx8YL.cjs.js.map +1 -0
- package/dist/chunks/{index-BGkAxVw_.es.js → index-B7wlrXvj.es.js} +22 -39
- package/dist/chunks/index-B7wlrXvj.es.js.map +1 -0
- package/dist/chunks/{link-CU-7XY0h.es.js → link-CPnL46cY.es.js} +3 -3
- package/dist/chunks/{link-CU-7XY0h.es.js.map → link-CPnL46cY.es.js.map} +1 -1
- package/dist/chunks/{localized-field-Cfr2yWfg.cjs.js → localized-field-ByW-vsvR.cjs.js} +2 -2
- package/dist/chunks/{localized-field-Cfr2yWfg.cjs.js.map → localized-field-ByW-vsvR.cjs.js.map} +1 -1
- package/dist/chunks/{localized-field-CmbkpZ4q.es.js → localized-field-DyZpSuGk.es.js} +23 -23
- package/dist/chunks/{localized-field-CmbkpZ4q.es.js.map → localized-field-DyZpSuGk.es.js.map} +1 -1
- package/dist/chunks/{menu-KGSl9Em7.cjs.js → menu-CJeqjRAs.cjs.js} +2 -2
- package/dist/chunks/{menu-KGSl9Em7.cjs.js.map → menu-CJeqjRAs.cjs.js.map} +1 -1
- package/dist/chunks/{menu-DG4V0LSQ.es.js → menu-CaSPNND_.es.js} +6 -6
- package/dist/chunks/{menu-DG4V0LSQ.es.js.map → menu-CaSPNND_.es.js.map} +1 -1
- package/dist/chunks/{money-input-CGMeW-uD.cjs.js → money-input-BT3JhOpu.cjs.js} +2 -2
- package/dist/chunks/{money-input-CGMeW-uD.cjs.js.map → money-input-BT3JhOpu.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-Dci2k5rg.es.js → money-input-D6_TFZB-.es.js} +5 -5
- package/dist/chunks/{money-input-Dci2k5rg.es.js.map → money-input-D6_TFZB-.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-IMPfRfkg.cjs.js → multiline-text-input-BWEsaxf_.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-IMPfRfkg.cjs.js.map → multiline-text-input-BWEsaxf_.cjs.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-DvnSJca6.es.js → multiline-text-input-DqLmTSr5.es.js} +3 -3
- package/dist/chunks/{multiline-text-input-DvnSJca6.es.js.map → multiline-text-input-DqLmTSr5.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CymDVsXZ.es.js → nimbus-provider-Bap0WHRm.es.js} +9 -9
- package/dist/chunks/{nimbus-provider-CymDVsXZ.es.js.map → nimbus-provider-Bap0WHRm.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DyYGXHWz.cjs.js → nimbus-provider-BarcIhYi.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-DyYGXHWz.cjs.js.map → nimbus-provider-BarcIhYi.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-D5uge6-t.cjs.js → number-input-BskHV8w5.cjs.js} +2 -2
- package/dist/chunks/{number-input-D5uge6-t.cjs.js.map → number-input-BskHV8w5.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CoVt943T.es.js → number-input-CerB7jp0.es.js} +4 -4
- package/dist/chunks/{number-input-CoVt943T.es.js.map → number-input-CerB7jp0.es.js.map} +1 -1
- package/dist/chunks/{openLink-D7--QlSJ.es.js → openLink-BNz58j4a.es.js} +7 -7
- package/dist/chunks/{openLink-D7--QlSJ.es.js.map → openLink-BNz58j4a.es.js.map} +1 -1
- package/dist/chunks/{pagination-C4_2Ov7h.es.js → pagination-dlHn3OhV.es.js} +25 -25
- package/dist/chunks/{pagination-C4_2Ov7h.es.js.map → pagination-dlHn3OhV.es.js.map} +1 -1
- package/dist/chunks/{pagination-Dbf6i8je.cjs.js → pagination-xj41eBPX.cjs.js} +2 -2
- package/dist/chunks/{pagination-Dbf6i8je.cjs.js.map → pagination-xj41eBPX.cjs.js.map} +1 -1
- package/dist/chunks/password-input-DGtJisDd.cjs.js +2 -0
- package/dist/chunks/password-input-DGtJisDd.cjs.js.map +1 -0
- package/dist/chunks/{password-input-D-WKBfJ_.es.js → password-input-Dw-m0lej.es.js} +11 -11
- package/dist/chunks/password-input-Dw-m0lej.es.js.map +1 -0
- package/dist/chunks/{popover-B5j28gJx.es.js → popover-CaE5pDl9.es.js} +2 -2
- package/dist/chunks/{popover-B5j28gJx.es.js.map → popover-CaE5pDl9.es.js.map} +1 -1
- package/dist/chunks/{popover-D0TkE271.cjs.js → popover-DY7ASSCU.cjs.js} +2 -2
- package/dist/chunks/{popover-D0TkE271.cjs.js.map → popover-DY7ASSCU.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DrK5bppD.es.js → progress-bar-CYd6T1Ax.es.js} +2 -2
- package/dist/chunks/{progress-bar-DrK5bppD.es.js.map → progress-bar-CYd6T1Ax.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-CJqyWOZe.cjs.js → progress-bar-Dx9Zr5Yh.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-CJqyWOZe.cjs.js.map → progress-bar-Dx9Zr5Yh.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-BL1YItkC.es.js → radio-input-Dg7PXbQa.es.js} +4 -4
- package/dist/chunks/{radio-input-BL1YItkC.es.js.map → radio-input-Dg7PXbQa.es.js.map} +1 -1
- package/dist/chunks/{radio-input-1myCCuNN.cjs.js → radio-input-yA7MF_jw.cjs.js} +2 -2
- package/dist/chunks/{radio-input-1myCCuNN.cjs.js.map → radio-input-yA7MF_jw.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-C_2BhVos.es.js → range-calendar-D6nonjnz.es.js} +40 -31
- package/dist/chunks/range-calendar-D6nonjnz.es.js.map +1 -0
- package/dist/chunks/range-calendar-DhKTQPnz.cjs.js +2 -0
- package/dist/chunks/range-calendar-DhKTQPnz.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-rd0Z_BZN.cjs.js → rich-text-input-CViBsj3Y.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-rd0Z_BZN.cjs.js.map → rich-text-input-CViBsj3Y.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BH9R2Ndd.es.js → rich-text-input-hBorJHFw.es.js} +9 -9
- package/dist/chunks/{rich-text-input-BH9R2Ndd.es.js.map → rich-text-input-hBorJHFw.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DZYDPxMi.es.js → scoped-search-input-B7rDiJuj.es.js} +5 -5
- package/dist/chunks/{scoped-search-input-DZYDPxMi.es.js.map → scoped-search-input-B7rDiJuj.es.js.map} +1 -1
- package/dist/chunks/{scoped-search-input-DNmFeyN7.cjs.js → scoped-search-input-C6B7Szzk.cjs.js} +2 -2
- package/dist/chunks/{scoped-search-input-DNmFeyN7.cjs.js.map → scoped-search-input-C6B7Szzk.cjs.js.map} +1 -1
- package/dist/chunks/{scrollIntoView-DniANfOx.es.js → scrollIntoView-CRn_Y0bq.es.js} +4 -4
- package/dist/chunks/{scrollIntoView-DniANfOx.es.js.map → scrollIntoView-CRn_Y0bq.es.js.map} +1 -1
- package/dist/chunks/{search-input-CbKf6uv-.es.js → search-input-tna-iiqy.es.js} +7 -7
- package/dist/chunks/{search-input-CbKf6uv-.es.js.map → search-input-tna-iiqy.es.js.map} +1 -1
- package/dist/chunks/{search-input-Cuqj5Ozc.cjs.js → search-input-vq7lviez.cjs.js} +2 -2
- package/dist/chunks/{search-input-Cuqj5Ozc.cjs.js.map → search-input-vq7lviez.cjs.js.map} +1 -1
- package/dist/chunks/{select-C2lIA5hg.es.js → select-B0WZuFVc.es.js} +66 -67
- package/dist/chunks/{select-C2lIA5hg.es.js.map → select-B0WZuFVc.es.js.map} +1 -1
- package/dist/chunks/select-wD3QlanS.cjs.js +2 -0
- package/dist/chunks/{select-CWaI47Kc.cjs.js.map → select-wD3QlanS.cjs.js.map} +1 -1
- package/dist/chunks/{separator-DVnpuMAc.es.js → separator-Dng72n3L.es.js} +4 -4
- package/dist/chunks/{separator-DVnpuMAc.es.js.map → separator-Dng72n3L.es.js.map} +1 -1
- package/dist/chunks/{separator-D75V0Oga.cjs.js → separator-TrQT9Pcb.cjs.js} +2 -2
- package/dist/chunks/{separator-D75V0Oga.cjs.js.map → separator-TrQT9Pcb.cjs.js.map} +1 -1
- package/dist/chunks/split-button-BH500vls.cjs.js +2 -0
- package/dist/chunks/split-button-BH500vls.cjs.js.map +1 -0
- package/dist/chunks/{split-button-C1PFrcU6.es.js → split-button-pF0iIa_0.es.js} +10 -10
- package/dist/chunks/split-button-pF0iIa_0.es.js.map +1 -0
- package/dist/chunks/{switch-2AsRNDVU.cjs.js → switch-D3tDl7RG.cjs.js} +2 -2
- package/dist/chunks/{switch-2AsRNDVU.cjs.js.map → switch-D3tDl7RG.cjs.js.map} +1 -1
- package/dist/chunks/{switch-DVQRB0wu.es.js → switch-DJENPCZA.es.js} +4 -4
- package/dist/chunks/{switch-DVQRB0wu.es.js.map → switch-DJENPCZA.es.js.map} +1 -1
- package/dist/chunks/tabs-Bj24YiXX.cjs.js +2 -0
- package/dist/chunks/{tabs-BlcjUZnC.cjs.js.map → tabs-Bj24YiXX.cjs.js.map} +1 -1
- package/dist/chunks/{tabs-SeVATsGV.es.js → tabs-D3SqKC9V.es.js} +35 -35
- package/dist/chunks/{tabs-SeVATsGV.es.js.map → tabs-D3SqKC9V.es.js.map} +1 -1
- package/dist/chunks/{tag-group-DrCKPNqX.es.js → tag-group-DQ72dsVp.es.js} +13 -13
- package/dist/chunks/{tag-group-DrCKPNqX.es.js.map → tag-group-DQ72dsVp.es.js.map} +1 -1
- package/dist/chunks/tag-group-Djb2ouRY.cjs.js +2 -0
- package/dist/chunks/{tag-group-DexGJ8Hf.cjs.js.map → tag-group-Djb2ouRY.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-Bm7-FMPR.cjs.js → text-input-B5tizBg4.cjs.js} +2 -2
- package/dist/chunks/{text-input-Bm7-FMPR.cjs.js.map → text-input-B5tizBg4.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-CSkQFwGX.es.js → text-input-DBFEKmrv.es.js} +3 -3
- package/dist/chunks/{text-input-CSkQFwGX.es.js.map → text-input-DBFEKmrv.es.js.map} +1 -1
- package/dist/chunks/{time-input-ClOP5fJr.es.js → time-input-BJ1nDsyZ.es.js} +4 -4
- package/dist/chunks/{time-input-ClOP5fJr.es.js.map → time-input-BJ1nDsyZ.es.js.map} +1 -1
- package/dist/chunks/{time-input-BHyImNO3.cjs.js → time-input-DWrgu6Yp.cjs.js} +2 -2
- package/dist/chunks/{time-input-BHyImNO3.cjs.js.map → time-input-DWrgu6Yp.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-Rczis1rR.es.js → toggle-button-Dm4hPGPr.es.js} +4 -4
- package/dist/chunks/{toggle-button-Rczis1rR.es.js.map → toggle-button-Dm4hPGPr.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-TrFHgAeL.es.js → toggle-button-group-DMH0nd7S.es.js} +3 -3
- package/dist/chunks/{toggle-button-group-TrFHgAeL.es.js.map → toggle-button-group-DMH0nd7S.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-BQczQ6D_.cjs.js → toggle-button-group-Lfn3zYmC.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-group-BQczQ6D_.cjs.js.map → toggle-button-group-Lfn3zYmC.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group.recipe-DgySRvOW.cjs.js → toggle-button-group.recipe-COF-yHYR.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-group.recipe-DgySRvOW.cjs.js.map → toggle-button-group.recipe-COF-yHYR.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-group.recipe-CbCnJQP3.es.js → toggle-button-group.recipe-Cl3PTeGf.es.js} +2 -16
- package/dist/chunks/toggle-button-group.recipe-Cl3PTeGf.es.js.map +1 -0
- package/dist/chunks/{toggle-button-enJHTjsJ.cjs.js → toggle-button-mL9CAReh.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-enJHTjsJ.cjs.js.map → toggle-button-mL9CAReh.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CNqSGtQi.cjs.js → toolbar-Df-6gFqW.cjs.js} +2 -2
- package/dist/chunks/{toolbar-CNqSGtQi.cjs.js.map → toolbar-Df-6gFqW.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-CsuzuQNn.es.js → toolbar-wCiInDj2.es.js} +3 -3
- package/dist/chunks/{toolbar-CsuzuQNn.es.js.map → toolbar-wCiInDj2.es.js.map} +1 -1
- package/dist/chunks/{useButton-DEV993k7.es.js → useButton-C6AOJI9V.es.js} +2 -2
- package/dist/chunks/{useButton-DEV993k7.es.js.map → useButton-C6AOJI9V.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-YLMdKUmg.es.js → useDateFormatter-eE8d1TkO.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-YLMdKUmg.es.js.map → useDateFormatter-eE8d1TkO.es.js.map} +1 -1
- package/dist/chunks/useGridListItem-BETI-KGO.cjs.js +2 -0
- package/dist/chunks/useGridListItem-BETI-KGO.cjs.js.map +1 -0
- package/dist/chunks/{useHighlightSelectionDescription-DH3XBG7f.es.js → useGridListItem-WBYPB9KF.es.js} +406 -163
- package/dist/chunks/useGridListItem-WBYPB9KF.es.js.map +1 -0
- package/dist/chunks/useListState-BFNT8oUW.es.js +139 -0
- package/dist/chunks/useListState-BFNT8oUW.es.js.map +1 -0
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js +2 -0
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js.map +1 -0
- package/dist/chunks/{usePress-D9qOoxbA.es.js → usePress-HeLch-fy.es.js} +2 -2
- package/dist/chunks/{usePress-D9qOoxbA.es.js.map → usePress-HeLch-fy.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-BawVWofI.cjs.js → useSingleSelectListState-CsD7W9nK.cjs.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-BawVWofI.cjs.js.map → useSingleSelectListState-CsD7W9nK.cjs.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-Bjn8R8w0.es.js → useSingleSelectListState-DcU-tU_H.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-Bjn8R8w0.es.js.map → useSingleSelectListState-DcU-tU_H.es.js.map} +1 -1
- package/dist/chunks/{useToggle-Cc5uCpc9.es.js → useToggle-XQtoJnll.es.js} +2 -2
- package/dist/chunks/{useToggle-Cc5uCpc9.es.js.map → useToggle-XQtoJnll.es.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert/alert.recipe.d.ts +0 -22
- package/dist/components/alert/alert.slots.d.ts +4 -9
- package/dist/components/alert/alert.types.d.ts +5 -3
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/button/button.recipe.d.ts +0 -14
- package/dist/components/button/button.slots.d.ts +2 -2
- package/dist/components/button/button.types.d.ts +6 -5
- 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/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.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 +1 -1
- package/dist/components/data-table/components/data-table.layout-settings-panel.d.ts +4 -0
- package/dist/components/data-table/components/data-table.manager.d.ts +9 -0
- package/dist/components/data-table/components/data-table.visible-columns-panel.d.ts +7 -0
- package/dist/components/data-table/constants.d.ts +4 -0
- package/dist/components/data-table/data-table.d.ts +24 -1
- package/dist/components/data-table/data-table.i18n.d.ts +120 -0
- package/dist/components/data-table/data-table.slots.d.ts +2 -2
- package/dist/components/data-table/data-table.types.d.ts +20 -7
- package/dist/components/data-table/index.d.ts +1 -0
- package/dist/components/data-table/test-data.d.ts +4 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +10 -8
- 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-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.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- 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 +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.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/link.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.recipe.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.slots.d.ts +5 -2
- package/dist/components/loading-spinner/loading-spinner.types.d.ts +3 -6
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-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.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/pagination.cjs +1 -1
- package/dist/components/pagination.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 +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/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.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.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.types.d.ts +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/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.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/toggle-button.recipe.d.ts +0 -14
- package/dist/components/toggle-button/toggle-button.slots.d.ts +4 -11
- package/dist/components/toggle-button/toggle-button.types.d.ts +5 -4
- package/dist/components/toggle-button-group/toggle-button-group.recipe.d.ts +1 -1
- package/dist/components/toggle-button-group/toggle-button-group.types.d.ts +6 -4
- package/dist/components/toggle-button-group.cjs +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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +136 -134
- package/dist/index.es.js.map +1 -1
- package/dist/theme/recipes/index.d.ts +1 -29
- package/dist/theme/slot-recipes/index.d.ts +1 -23
- package/dist/type-utils/shared-types.d.ts +3 -6
- package/package.json +5 -5
- package/dist/chunks/DragAndDrop-35iVlv_E.cjs.js +0 -2
- package/dist/chunks/DragAndDrop-35iVlv_E.cjs.js.map +0 -1
- package/dist/chunks/DragAndDrop-Cu_xjzZg.es.js +0 -76
- package/dist/chunks/DragAndDrop-Cu_xjzZg.es.js.map +0 -1
- package/dist/chunks/Header-BE5dOA7y.es.js +0 -59
- package/dist/chunks/Header-BE5dOA7y.es.js.map +0 -1
- package/dist/chunks/Header-Ba1_guwA.cjs.js +0 -2
- package/dist/chunks/Header-Ba1_guwA.cjs.js.map +0 -1
- package/dist/chunks/ListBox-DkXFmzHf.cjs.js +0 -2
- package/dist/chunks/ListBox-DkXFmzHf.cjs.js.map +0 -1
- package/dist/chunks/ListBox-DxgCeXuN.es.js +0 -493
- package/dist/chunks/ListBox-DxgCeXuN.es.js.map +0 -1
- package/dist/chunks/ListKeyboardDelegate-BEarLHjT.cjs.js +0 -2
- package/dist/chunks/ListKeyboardDelegate-BEarLHjT.cjs.js.map +0 -1
- package/dist/chunks/ListKeyboardDelegate-ekIDdehS.es.js +0 -159
- package/dist/chunks/ListKeyboardDelegate-ekIDdehS.es.js.map +0 -1
- package/dist/chunks/alert-BYw_3VgA.cjs.js +0 -2
- package/dist/chunks/alert-BYw_3VgA.cjs.js.map +0 -1
- package/dist/chunks/alert-DafE92Ep.es.js.map +0 -1
- package/dist/chunks/calendar-B_6JEmid.es.js.map +0 -1
- package/dist/chunks/calendar-Kd_2ZJIo.cjs.js +0 -2
- package/dist/chunks/calendar-Kd_2ZJIo.cjs.js.map +0 -1
- package/dist/chunks/combobox-CJEs8K1H.cjs.js +0 -2
- package/dist/chunks/data-table-DdnSEpEq.cjs.js +0 -2
- package/dist/chunks/data-table-DdnSEpEq.cjs.js.map +0 -1
- package/dist/chunks/data-table-zaE0wk1G.es.js +0 -3638
- package/dist/chunks/data-table-zaE0wk1G.es.js.map +0 -1
- package/dist/chunks/draggable-list-BB8IGQJ6.es.js.map +0 -1
- package/dist/chunks/draggable-list-DR2KKaO_.cjs.js.map +0 -1
- package/dist/chunks/form-field-DBi9CFok.es.js.map +0 -1
- package/dist/chunks/form-field-Dn5VxoQ2.cjs.js +0 -2
- package/dist/chunks/form-field-Dn5VxoQ2.cjs.js.map +0 -1
- package/dist/chunks/index-BGkAxVw_.es.js.map +0 -1
- package/dist/chunks/index-CFfbr5i_.cjs.js.map +0 -1
- package/dist/chunks/inertValue-B7loUihk.es.js +0 -9
- package/dist/chunks/inertValue-B7loUihk.es.js.map +0 -1
- package/dist/chunks/inertValue-BWmZ1afe.cjs.js +0 -2
- package/dist/chunks/inertValue-BWmZ1afe.cjs.js.map +0 -1
- package/dist/chunks/password-input-D-WKBfJ_.es.js.map +0 -1
- package/dist/chunks/password-input-DApa74CT.cjs.js +0 -2
- package/dist/chunks/password-input-DApa74CT.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-C_2BhVos.es.js.map +0 -1
- package/dist/chunks/range-calendar-M5itlXS-.cjs.js +0 -2
- package/dist/chunks/range-calendar-M5itlXS-.cjs.js.map +0 -1
- package/dist/chunks/select-CWaI47Kc.cjs.js +0 -2
- package/dist/chunks/split-button-C1PFrcU6.es.js.map +0 -1
- package/dist/chunks/split-button-DhxZShYM.cjs.js +0 -2
- package/dist/chunks/split-button-DhxZShYM.cjs.js.map +0 -1
- package/dist/chunks/tabs-BlcjUZnC.cjs.js +0 -2
- package/dist/chunks/tag-group-DexGJ8Hf.cjs.js +0 -2
- package/dist/chunks/toggle-button-group.recipe-CbCnJQP3.es.js.map +0 -1
- package/dist/chunks/useGridListItem-DSRAVcC0.es.js +0 -251
- package/dist/chunks/useGridListItem-DSRAVcC0.es.js.map +0 -1
- package/dist/chunks/useGridListItem-Dt8Kui_9.cjs.js +0 -2
- package/dist/chunks/useGridListItem-Dt8Kui_9.cjs.js.map +0 -1
- package/dist/chunks/useGridSelectionCheckbox-CB9AkcJ-.cjs.js +0 -2
- package/dist/chunks/useGridSelectionCheckbox-CB9AkcJ-.cjs.js.map +0 -1
- package/dist/chunks/useGridSelectionCheckbox-qNlOk_Zu.es.js +0 -23
- package/dist/chunks/useGridSelectionCheckbox-qNlOk_Zu.es.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-C37fwYgQ.cjs.js +0 -2
- package/dist/chunks/useHighlightSelectionDescription-C37fwYgQ.cjs.js.map +0 -1
- package/dist/chunks/useHighlightSelectionDescription-DH3XBG7f.es.js.map +0 -1
- package/dist/chunks/useListState-HM8Jsi0C.cjs.js +0 -2
- package/dist/chunks/useListState-HM8Jsi0C.cjs.js.map +0 -1
- package/dist/chunks/useListState-QNqJ2RZ-.es.js +0 -134
- package/dist/chunks/useListState-QNqJ2RZ-.es.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inertValue-B7loUihk.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/inertValue.mjs"],"sourcesContent":["import {version as $iulvE$version} from \"react\";\n\n\nfunction $cdc5a6778b766db2$export$a9d04c5684123369(value) {\n const pieces = (0, $iulvE$version).split('.');\n const major = parseInt(pieces[0], 10);\n if (major >= 19) return value;\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}\n\n\nexport {$cdc5a6778b766db2$export$a9d04c5684123369 as inertValue};\n//# sourceMappingURL=inertValue.module.js.map\n"],"names":["$cdc5a6778b766db2$export$a9d04c5684123369","value","pieces","$iulvE$version"],"mappings":";AAGA,SAASA,EAA0CC,GAAO;AACtD,QAAMC,IAAaC,EAAgB,MAAM,GAAG;AAE5C,SADc,SAASD,EAAO,CAAC,GAAG,EAAE,KACvB,KAAWD,IAEjBA,IAAQ,SAAS;AAC5B;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inertValue-BWmZ1afe.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+utils@3.31.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/utils/dist/inertValue.mjs"],"sourcesContent":["import {version as $iulvE$version} from \"react\";\n\n\nfunction $cdc5a6778b766db2$export$a9d04c5684123369(value) {\n const pieces = (0, $iulvE$version).split('.');\n const major = parseInt(pieces[0], 10);\n if (major >= 19) return value;\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}\n\n\nexport {$cdc5a6778b766db2$export$a9d04c5684123369 as inertValue};\n//# sourceMappingURL=inertValue.module.js.map\n"],"names":["$cdc5a6778b766db2$export$a9d04c5684123369","value","pieces","$iulvE$version"],"mappings":"sCAGA,SAASA,EAA0CC,EAAO,CACtD,MAAMC,EAAaC,UAAgB,MAAM,GAAG,EAE5C,OADc,SAASD,EAAO,CAAC,EAAG,EAAE,GACvB,GAAWD,EAEjBA,EAAQ,OAAS,MAC5B","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-input-D-WKBfJ_.es.js","sources":["../../src/components/password-input/password-input.i18n.ts","../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n hide: {\n id: \"Nimbus.PasswordInput.hide\",\n description: \"aria-label & tooltip for hide password button\",\n defaultMessage: \"Hide password\",\n },\n show: {\n id: \"Nimbus.PasswordInput.show\",\n description: \"aria-label & tooltip for show password button\",\n defaultMessage: \"Show password\",\n },\n});\n","import { useState } from \"react\";\nimport { IconButton, Tooltip } from \"@/components\";\nimport { TextInput } from \"@/components/text-input\";\nimport { Visibility, VisibilityOff } from \"@commercetools/nimbus-icons\";\nimport type { PasswordInputProps } from \"./password-input.types\";\nimport { FormattedMessage, useIntl } from \"react-intl\";\nimport { messages } from \"./password-input.i18n\";\n\n/**\n * # PasswordInput\n *\n * A password input is a text field that hides entered characters for secure password entry.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/passwordinput}\n */\nexport const PasswordInput = (props: PasswordInputProps) => {\n const { ref, size = \"md\", isDisabled } = props;\n\n const intl = useIntl();\n const [showPassword, setShowPassword] = useState(false);\n\n const toggleVisibility = () => setShowPassword(!showPassword);\n\n return (\n <TextInput\n ref={ref}\n {...props}\n trailingElement={\n <Tooltip.Root>\n <IconButton\n size={size === \"md\" ? \"xs\" : \"2xs\"}\n variant=\"ghost\"\n tone=\"primary\"\n aria-label={\n showPassword\n ? intl.formatMessage(messages.hide)\n : intl.formatMessage(messages.show)\n }\n onPress={toggleVisibility}\n isDisabled={isDisabled}\n >\n {showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n <Tooltip.Content>\n <FormattedMessage\n {...(showPassword ? messages.hide : messages.show)}\n />\n </Tooltip.Content>\n </Tooltip.Root>\n }\n type={showPassword ? \"text\" : \"password\"}\n />\n );\n};\n\nPasswordInput.displayName = \"PasswordInput\";\n"],"names":["messages","defineMessages","PasswordInput","props","ref","size","isDisabled","intl","useIntl","showPassword","setShowPassword","useState","toggleVisibility","jsx","TextInput","jsxs","Tooltip","IconButton","VisibilityOff","Visibility","FormattedMessage"],"mappings":";;;;;;;AAEO,MAAMA,IAAW,gBAAAC,EAAe;AAAA,EACrC,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCEYC,IAAgB,CAACC,MAA8B;AAC1D,QAAM,EAAE,KAAAC,GAAK,MAAAC,IAAO,MAAM,YAAAC,MAAeH,GAEnCI,IAAOC,EAAA,GACP,CAACC,GAAcC,CAAe,IAAIC,EAAS,EAAK,GAEhDC,IAAmB,MAAMF,EAAgB,CAACD,CAAY;AAE5D,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAV;AAAA,MACC,GAAGD;AAAA,MACJ,iBACE,gBAAAY,EAACC,EAAQ,MAAR,EACC,UAAA;AAAA,QAAA,gBAAAH;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,MAAMZ,MAAS,OAAO,OAAO;AAAA,YAC7B,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,cACEI,IACIF,EAAK,cAAcP,EAAS,IAAI,IAChCO,EAAK,cAAcP,EAAS,IAAI;AAAA,YAEtC,SAASY;AAAA,YACT,YAAAN;AAAA,YAEC,UAAAG,IAAe,gBAAAI,EAACK,GAAA,CAAA,CAAc,sBAAMC,GAAA,CAAA,CAAW;AAAA,UAAA;AAAA,QAAA;AAAA,QAElD,gBAAAN,EAACG,EAAQ,SAAR,EACC,UAAA,gBAAAH;AAAA,UAACO;AAAA,UAAA;AAAA,YACE,GAAIX,IAAeT,EAAS,OAAOA,EAAS;AAAA,UAAA;AAAA,QAAA,EAC/C,CACF;AAAA,MAAA,GACF;AAAA,MAEF,MAAMS,IAAe,SAAS;AAAA,IAAA;AAAA,EAAA;AAGpC;AAEAP,EAAc,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),h=require("react"),b=require("./text-input-Bm7-FMPR.cjs.js"),n=require("@commercetools/nimbus-icons"),o=require("react-intl"),a=require("./tooltip-Aar_qzmT.cjs.js"),m=require("./icon-button-DJZJwO7E.cjs.js"),e=o.defineMessages({hide:{id:"Nimbus.PasswordInput.hide",description:"aria-label & tooltip for hide password button",defaultMessage:"Hide password"},show:{id:"Nimbus.PasswordInput.show",description:"aria-label & tooltip for show password button",defaultMessage:"Show password"}}),d=i=>{const{ref:l,size:u="md",isDisabled:c}=i,r=o.useIntl(),[t,p]=h.useState(!1),w=()=>p(!t);return s.jsx(b.TextInput,{ref:l,...i,trailingElement:s.jsxs(a.Tooltip.Root,{children:[s.jsx(m.IconButton,{size:u==="md"?"xs":"2xs",variant:"ghost",tone:"primary","aria-label":t?r.formatMessage(e.hide):r.formatMessage(e.show),onPress:w,isDisabled:c,children:t?s.jsx(n.VisibilityOff,{}):s.jsx(n.Visibility,{})}),s.jsx(a.Tooltip.Content,{children:s.jsx(o.FormattedMessage,{...t?e.hide:e.show})})]}),type:t?"text":"password"})};d.displayName="PasswordInput";exports.PasswordInput=d;
|
|
2
|
-
//# sourceMappingURL=password-input-DApa74CT.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-input-DApa74CT.cjs.js","sources":["../../src/components/password-input/password-input.i18n.ts","../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n hide: {\n id: \"Nimbus.PasswordInput.hide\",\n description: \"aria-label & tooltip for hide password button\",\n defaultMessage: \"Hide password\",\n },\n show: {\n id: \"Nimbus.PasswordInput.show\",\n description: \"aria-label & tooltip for show password button\",\n defaultMessage: \"Show password\",\n },\n});\n","import { useState } from \"react\";\nimport { IconButton, Tooltip } from \"@/components\";\nimport { TextInput } from \"@/components/text-input\";\nimport { Visibility, VisibilityOff } from \"@commercetools/nimbus-icons\";\nimport type { PasswordInputProps } from \"./password-input.types\";\nimport { FormattedMessage, useIntl } from \"react-intl\";\nimport { messages } from \"./password-input.i18n\";\n\n/**\n * # PasswordInput\n *\n * A password input is a text field that hides entered characters for secure password entry.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/passwordinput}\n */\nexport const PasswordInput = (props: PasswordInputProps) => {\n const { ref, size = \"md\", isDisabled } = props;\n\n const intl = useIntl();\n const [showPassword, setShowPassword] = useState(false);\n\n const toggleVisibility = () => setShowPassword(!showPassword);\n\n return (\n <TextInput\n ref={ref}\n {...props}\n trailingElement={\n <Tooltip.Root>\n <IconButton\n size={size === \"md\" ? \"xs\" : \"2xs\"}\n variant=\"ghost\"\n tone=\"primary\"\n aria-label={\n showPassword\n ? intl.formatMessage(messages.hide)\n : intl.formatMessage(messages.show)\n }\n onPress={toggleVisibility}\n isDisabled={isDisabled}\n >\n {showPassword ? <VisibilityOff /> : <Visibility />}\n </IconButton>\n <Tooltip.Content>\n <FormattedMessage\n {...(showPassword ? messages.hide : messages.show)}\n />\n </Tooltip.Content>\n </Tooltip.Root>\n }\n type={showPassword ? \"text\" : \"password\"}\n />\n );\n};\n\nPasswordInput.displayName = \"PasswordInput\";\n"],"names":["messages","defineMessages","PasswordInput","props","ref","size","isDisabled","intl","useIntl","showPassword","setShowPassword","useState","toggleVisibility","jsx","TextInput","jsxs","Tooltip","IconButton","VisibilityOff","Visibility","FormattedMessage"],"mappings":"kQAEaA,EAAWC,EAAAA,eAAe,CACrC,KAAM,CACJ,GAAI,4BACJ,YAAa,gDACb,eAAgB,eAAA,EAElB,KAAM,CACJ,GAAI,4BACJ,YAAa,gDACb,eAAgB,eAAA,CAEpB,CAAC,ECEYC,EAAiBC,GAA8B,CAC1D,KAAM,CAAE,IAAAC,EAAK,KAAAC,EAAO,KAAM,WAAAC,GAAeH,EAEnCI,EAAOC,EAAAA,QAAA,EACP,CAACC,EAAcC,CAAe,EAAIC,EAAAA,SAAS,EAAK,EAEhDC,EAAmB,IAAMF,EAAgB,CAACD,CAAY,EAE5D,OACEI,EAAAA,IAACC,EAAAA,UAAA,CACC,IAAAV,EACC,GAAGD,EACJ,gBACEY,EAAAA,KAACC,EAAAA,QAAQ,KAAR,CACC,SAAA,CAAAH,EAAAA,IAACI,EAAAA,WAAA,CACC,KAAMZ,IAAS,KAAO,KAAO,MAC7B,QAAQ,QACR,KAAK,UACL,aACEI,EACIF,EAAK,cAAcP,EAAS,IAAI,EAChCO,EAAK,cAAcP,EAAS,IAAI,EAEtC,QAASY,EACT,WAAAN,EAEC,SAAAG,EAAeI,MAACK,EAAAA,cAAA,CAAA,CAAc,QAAMC,EAAAA,WAAA,CAAA,CAAW,CAAA,CAAA,EAElDN,EAAAA,IAACG,EAAAA,QAAQ,QAAR,CACC,SAAAH,EAAAA,IAACO,EAAAA,iBAAA,CACE,GAAIX,EAAeT,EAAS,KAAOA,EAAS,IAAA,CAAA,CAC/C,CACF,CAAA,EACF,EAEF,KAAMS,EAAe,OAAS,UAAA,CAAA,CAGpC,EAEAP,EAAc,YAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"range-calendar-C_2BhVos.es.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/range-calendar.i18n.ts","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n RangeCalendarRootSlotProps,\n RangeCalendarHeaderSlotProps,\n RangeCalendarGridsSlotProps,\n RangeCalendarMonthTitleSlotProps,\n RangeCalendarGridSlotProps,\n RangeCalendarGridHeaderSlotProps,\n RangeCalendarHeaderCellSlotProps,\n RangeCalendarGridBodySlotProps,\n RangeCalendarCellSlotProps,\n} from \"./range-calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport const RangeCalendarRootSlot: SlotComponent<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n> = withProvider<HTMLDivElement, RangeCalendarRootSlotProps>(\"div\", \"root\");\n\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.RangeCalendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.RangeCalendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.RangeCalendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.RangeCalendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\n },\n});\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../range-calendar.i18n\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","messages","defineMessages","RangeCalendarCustomContext","children","intl","useIntl","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAyD,OAAO,MAAM,GAE7DI,IAA0B,gBAAAH,EAGrC,OAAO,QAAQ,GAEJI,IAAyB,gBAAAJ,EAGpC,OAAO,OAAO,GAEHK,IAA8B,gBAAAL,EAGzC,OAAO,YAAY,GAERM,IAAwB,gBAAAN,EAGnC,SAAS,MAAM,GAEJO,IAA8B,gBAAAP,EAGzC,SAAS,YAAY,GAEVQ,KAA8B,gBAAAR,EAGzC,MAAM,YAAY,GAEPS,KAA4B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AAE,UAAUC,EAAA;AAAA,EAAU;AAG9B,SACE,gBAAAtC;AAAA,IAACwC;AAAAA,IAAA;AAAA,MACC,QAAQ;AAAA,QACN;AAAA,UACER;AAAAA,UACA;AAAA,YACE,GAAGD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAkB,YACzB,WAAWA,IACPA,EAAc,QACd,CAAA;AAAA,cACJ,GAAGI;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,QAEF;AAAA,UACED;AAAAA,UACA;AAAA,YACE,GAAGD;AAAA,YACH,OAAO;AAAA,cACL,GAAIA,KACJ,OAAOA,KAAgB,YACvB,WAAWA,IACPA,EAAY,QACZ,CAAA;AAAA,cACJ,GAAGM;AAAA,YAAA;AAAA,UACL;AAAA,QACF;AAAA,MACF;AAAA,MAGD,UAAAX;AAAA,IAAA;AAAA,EAAA;AAGP,GChGaa,KAAgB,CAACC,MAAyC;AACrE,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAyB,GACtD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAK,GAC9D,CAACM,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAA/C,EAACvB,GAAA,EAAuB,GAAGqE,GAAc,GAAGE,GAAY,SAAO,IAC7D,UAAA,gBAAAhD,EAACmD,GAAA,EAAiB,GAAGF,GACnB,4BAACtB,IAAA,EACC,UAAA;AAAA,IAAA,gBAAA3B,EAACe,IAAA,EAAoB;AAAA,sBACpB7B,IAAA,CAAA,CAAmB;AAAA,EAAA,EAAA,CACtB,GACF,GACF;AAEJ;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("./Heading-kcnZ-PKv.cjs.js"),M=require("@chakra-ui/react"),$=require("react"),c=require("./useDateFormatter-WCaFojul.cjs.js"),p=require("./utils-DVb3jcp5.cjs.js"),R=require("./context-CyT9C4U4.cjs.js"),S=require("./box-CWni3A32.cjs.js"),u=require("@commercetools/nimbus-icons"),D=require("@chakra-ui/react/flex"),C=require("./stack-CIN13EDn.cjs.js"),P=require("./visually-hidden-BjtXUoFK.cjs.js"),h=require("./icon-button-DJZJwO7E.cjs.js"),y=require("./text-BtRhIklG.cjs.js"),I=require("./index-CFfbr5i_.cjs.js"),T=require("@chakra-ui/react/styled-system"),B=require("./extract-style-props-CBaCGha4.cjs.js"),j=require("./Button-DLCecw8f.cjs.js"),v=require("./Text-BWSfeB9p.cjs.js"),q=require("react-intl"),{withProvider:N,withContext:i}=M.createSlotRecipeContext({key:"rangeCalendar"}),H=N("div","root"),A=i("div","header"),F=i("div","grids"),G=i("div","monthTitle"),L=i("table","grid"),Y=i("thead","gridHeader"),k=i("th","headerCell"),z=i("tbody","gridBody"),K=i("td","bodyCell"),V=()=>{const{locale:d}=R.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=p.$64fa3d84918910a7$export$fabf2dc03a41866e(r.$dfd62f934fc76fed$export$233dd9682e1ad64b),t=$.useContext(r.$dfd62f934fc76fed$export$5e0fc348c00f87a0),o=n?.visibleDuration?.months||1,s=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),a=o>1;return e.jsx(F,{children:Array.from({length:o},(m,f)=>{const g=t.visibleRange.start.add({months:f}),x=new Intl.DateTimeFormat(d,{month:"long"}).format(g.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(S.Box,{width:o==1?"full":"auto",children:[a&&e.jsx(G,{children:x}),e.jsx(L,{asChild:!0,children:e.jsxs(r.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:f},weekdayStyle:"short",children:[e.jsx(Y,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:l=>e.jsx(k,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:l})})})}),e.jsx(z,{asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:l=>{const w=l.compare(s)===0;return e.jsx(K,{asChild:!0,"data-today":w,children:e.jsx(r.$dfd62f934fc76fed$export$5d847498420df57b,{date:l})})}})})]})})]},x)})})},W=()=>{const t=(p.$64fa3d84918910a7$export$fabf2dc03a41866e(r.$dfd62f934fc76fed$export$233dd9682e1ad64b)?.visibleDuration?.months||1)>1;return e.jsx(A,{children:e.jsxs(D.Flex,{children:[e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(P.VisuallyHidden,{children:e.jsx(r.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]}),e.jsx(S.Box,{flexGrow:"1"}),e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx(u.KeyboardArrowRight,{})})]})]})})},b=q.defineMessages({nextMonth:{id:"Nimbus.RangeCalendar.nextMonth",description:"aria-label for next month navigation button",defaultMessage:"Next month"},previousMonth:{id:"Nimbus.RangeCalendar.previousMonth",description:"aria-label for previous month navigation button",defaultMessage:"Previous month"},nextYear:{id:"Nimbus.RangeCalendar.nextYear",description:"aria-label for next year navigation button",defaultMessage:"Next year"},previousYear:{id:"Nimbus.RangeCalendar.previousYear",description:"aria-label for previous year navigation button",defaultMessage:"Previous year"}}),_=({children:d})=>{const n=q.useIntl(),{locale:t}=R.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=$.useContext(j.$d2b4bc8c273e7be6$export$24d547caef80ccd1),s=$.useContext(v.$514c0188e459b4c0$export$9afb8bc826b033ea),a=$.useContext(r.$dfd62f934fc76fed$export$5e0fc348c00f87a0),m={"next-month":{onPress:()=>a.focusNextSection(),"aria-label":n.formatMessage(b.nextMonth)},"previous-month":{onPress:()=>a.focusPreviousSection(),"aria-label":n.formatMessage(b.previousMonth)},"next-year":{onPress:()=>a.focusNextSection(!0),"aria-label":n.formatMessage(b.nextYear)},"previous-year":{onPress:()=>a.focusPreviousSection(!0),"aria-label":n.formatMessage(b.previousYear)}},f=new Intl.DateTimeFormat(t,{month:"long"}).format(a.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),g=[new Intl.DateTimeFormat(t,{month:"long"}).format(a.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(t,{month:"long"}).format(a.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),x=new Intl.DateTimeFormat(t,{year:"numeric"}).format(a.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l={month:{children:f},monthRange:{children:g},year:{children:x}};return e.jsx(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[j.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...o,slots:{...o&&typeof o=="object"&&"slots"in o?o.slots:{},...m}}],[v.$514c0188e459b4c0$export$9afb8bc826b033ea,{...s,slots:{...s&&typeof s=="object"&&"slots"in s?s.slots:{},...l}}]],children:d})},E=d=>{const n=T.useRecipe({recipe:I.rangeCalendarSlotRecipe}),[t,o]=n.splitVariantProps(d),[s,a]=B.extractStyleProps(o);return e.jsx(H,{...t,...s,asChild:!0,children:e.jsx(r.$dfd62f934fc76fed$export$a4f5c8b89d277a8d,{...a,children:e.jsxs(_,{children:[e.jsx(W,{}),e.jsx(V,{})]})})})};exports.RangeCalendar=E;
|
|
2
|
-
//# sourceMappingURL=range-calendar-M5itlXS-.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"range-calendar-M5itlXS-.cjs.js","sources":["../../src/components/range-calendar/range-calendar.slots.tsx","../../src/components/range-calendar/components/range-calendar.grids.tsx","../../src/components/range-calendar/components/range-calendar.header.tsx","../../src/components/range-calendar/range-calendar.i18n.ts","../../src/components/range-calendar/components/range-calendar.custom-context.tsx","../../src/components/range-calendar/range-calendar.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n RangeCalendarRootSlotProps,\n RangeCalendarHeaderSlotProps,\n RangeCalendarGridsSlotProps,\n RangeCalendarMonthTitleSlotProps,\n RangeCalendarGridSlotProps,\n RangeCalendarGridHeaderSlotProps,\n RangeCalendarHeaderCellSlotProps,\n RangeCalendarGridBodySlotProps,\n RangeCalendarCellSlotProps,\n} from \"./range-calendar.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"rangeCalendar\",\n});\n\nexport const RangeCalendarRootSlot: SlotComponent<\n HTMLDivElement,\n RangeCalendarRootSlotProps\n> = withProvider<HTMLDivElement, RangeCalendarRootSlotProps>(\"div\", \"root\");\n\nexport const RangeCalendarHeaderSlot = withContext<\n HTMLDivElement,\n RangeCalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport const RangeCalendarGridsSlot = withContext<\n HTMLDivElement,\n RangeCalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport const RangeCalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n RangeCalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport const RangeCalendarGridSlot = withContext<\n HTMLTableElement,\n RangeCalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport const RangeCalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport const RangeCalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport const RangeCalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n RangeCalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport const RangeCalendarCellSlot = withContext<\n HTMLTableCellElement,\n RangeCalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n RangeCalendarContext,\n RangeCalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\nimport { Box } from \"@/components\";\n\nimport {\n RangeCalendarCellSlot,\n RangeCalendarGridBodySlot,\n RangeCalendarGridHeaderSlot,\n RangeCalendarGridsSlot,\n RangeCalendarGridSlot,\n RangeCalendarHeaderCellSlot,\n RangeCalendarMonthTitleSlot,\n} from \"../range-calendar.slots\";\n\nexport const RangeCalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(RangeCalendarContext);\n\n const calendarState = useContext(RangeCalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <RangeCalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <RangeCalendarMonthTitleSlot>\n {monthName}\n </RangeCalendarMonthTitleSlot>\n )}\n <RangeCalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <RangeCalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <RangeCalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </RangeCalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </RangeCalendarGridHeaderSlot>\n <RangeCalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <RangeCalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </RangeCalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </RangeCalendarGridBodySlot>\n </RaCalendarGrid>\n </RangeCalendarGridSlot>\n </Box>\n );\n })}\n </RangeCalendarGridsSlot>\n );\n};\n","import {\n RangeCalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { RangeCalendarHeaderSlot } from \"../range-calendar.slots\";\n\nexport const RangeCalendarHeader = () => {\n const rangeCalendarProps = useSlottedContext(RangeCalendarContext);\n\n // Needed to decide whether to show a single month or a range\n const visibleDurationMonths =\n rangeCalendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <RangeCalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </RangeCalendarHeaderSlot>\n );\n};\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n nextMonth: {\n id: \"Nimbus.RangeCalendar.nextMonth\",\n description: \"aria-label for next month navigation button\",\n defaultMessage: \"Next month\",\n },\n previousMonth: {\n id: \"Nimbus.RangeCalendar.previousMonth\",\n description: \"aria-label for previous month navigation button\",\n defaultMessage: \"Previous month\",\n },\n nextYear: {\n id: \"Nimbus.RangeCalendar.nextYear\",\n description: \"aria-label for next year navigation button\",\n defaultMessage: \"Next year\",\n },\n previousYear: {\n id: \"Nimbus.RangeCalendar.previousYear\",\n description: \"aria-label for previous year navigation button\",\n defaultMessage: \"Previous year\",\n },\n});\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n RangeCalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\nimport { useIntl } from \"react-intl\";\nimport { messages } from \"../range-calendar.i18n\";\n\nexport const RangeCalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const intl = useIntl();\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(RangeCalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": intl.formatMessage(messages.nextMonth),\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": intl.formatMessage(messages.previousMonth),\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": intl.formatMessage(messages.nextYear),\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": intl.formatMessage(messages.previousYear),\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { RangeCalendarProps } from \"./range-calendar.types\";\nimport type { DateValue } from \"@internationalized/date\";\n\nimport { RangeCalendar as RaRangeCalendar } from \"react-aria-components\";\n\nimport { RangeCalendarRootSlot } from \"./range-calendar.slots\";\nimport { RangeCalendarGrids } from \"./components/range-calendar.grids\";\nimport { RangeCalendarHeader } from \"./components/range-calendar.header\";\nimport { rangeCalendarSlotRecipe } from \"./range-calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { extractStyleProps } from \"@/utils\";\nimport { RangeCalendarCustomContext } from \"./components/range-calendar.custom-context\";\n\nexport const RangeCalendar = (props: RangeCalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: rangeCalendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <RangeCalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaRangeCalendar {...otherProps}>\n <RangeCalendarCustomContext>\n <RangeCalendarHeader />\n <RangeCalendarGrids />\n </RangeCalendarCustomContext>\n </RaRangeCalendar>\n </RangeCalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","RangeCalendarRootSlot","RangeCalendarHeaderSlot","RangeCalendarGridsSlot","RangeCalendarMonthTitleSlot","RangeCalendarGridSlot","RangeCalendarGridHeaderSlot","RangeCalendarHeaderCellSlot","RangeCalendarGridBodySlot","RangeCalendarCellSlot","RangeCalendarGrids","locale","useLocale","context","useSlottedContext","RangeCalendarContext","calendarState","useContext","RangeCalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","RangeCalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","messages","defineMessages","RangeCalendarCustomContext","children","intl","useIntl","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","RangeCalendar","props","recipe","useRecipe","rangeCalendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaRangeCalendar"],"mappings":"8vBAcM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,eACP,CAAC,EAEYC,EAGTH,EAAyD,MAAO,MAAM,EAE7DI,EAA0BH,EAGrC,MAAO,QAAQ,EAEJI,EAAyBJ,EAGpC,MAAO,OAAO,EAEHK,EAA8BL,EAGzC,MAAO,YAAY,EAERM,EAAwBN,EAGnC,QAAS,MAAM,EAEJO,EAA8BP,EAGzC,QAAS,YAAY,EAEVQ,EAA8BR,EAGzC,KAAM,YAAY,EAEPS,EAA4BT,EAGvC,QAAS,UAAU,EAERU,EAAwBV,EAGnC,KAAM,UAAU,ECpCLW,EAAqB,IAAM,CACtC,KAAM,CAAE,OAAAC,CAAA,EAAWC,4CAAA,EACbC,EAAUC,EAAAA,0CAAkBC,2CAAoB,EAEhDC,EAAgBC,EAAAA,WAAWC,2CAAyB,EACpDC,EAAqBN,GAAS,iBAAiB,QAAU,EACzDO,EAAYC,4CAAMC,EAAAA,2CAAkB,EACpCC,EAAkBJ,EAAqB,EAE7C,OACEK,MAACrB,EAAA,CACE,SAAA,MAAM,KAAK,CAAE,OAAQgB,CAAA,EAAsB,CAACM,EAAGC,IAAU,CACxD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react/styled-system"),_=require("@chakra-ui/react"),L=require("@commercetools/nimbus-icons"),z=require("./Button-DLCecw8f.cjs.js"),V=require("./Dialog-DINBl88u.cjs.js"),M=require("./utils-DVb3jcp5.cjs.js"),ne=require("./FieldError-DyGFfqST.cjs.js"),se=require("./Form-BuOomA4T.cjs.js"),ce=require("./intlStrings-ClBuC6xN.cjs.js"),ee=require("./Label-szabofdc.cjs.js"),j=require("./ListBox-DkXFmzHf.cjs.js"),N=require("./Text-BWSfeB9p.cjs.js"),te=require("./CollectionBuilder-BipvtvSl.cjs.js"),de=require("./Hidden-CNJIJ63M.cjs.js"),K=require("./mergeProps-CxnHrnow.cjs.js"),G=require("./filterDOMProps-WUskt27c.cjs.js"),le=require("./OverlayArrow-ltipYWUv.cjs.js"),ue=require("./context-CyT9C4U4.cjs.js"),fe=require("./useLocalizedStringFormatter-kWoZGAh5.cjs.js"),re=require("./useFormValidation-BfTV0EQ1.cjs.js"),be=require("./useListState-HM8Jsi0C.cjs.js"),$e=require("./useControlledState-D0L6S_5r.cjs.js"),pe=require("./useFocusRing-B7_ogYbr.cjs.js"),ve=require("./ListKeyboardDelegate-BEarLHjT.cjs.js"),me=require("./SelectionManager-CCETIs4l.cjs.js"),xe=require("./useFocusVisible-DfE3Z6QO.cjs.js"),ye=require("./useCollator-Lsi9B90Z.cjs.js"),ge=require("./useField-lK6K_h1G.cjs.js"),he=require("./useFormReset-COoih4uI.cjs.js"),Se=require("./VisuallyHidden-CDvZiyH6.cjs.js"),oe=require("react-intl"),Pe=require("./icon-button-DJZJwO7E.cjs.js"),qe=require("./index-CFfbr5i_.cjs.js"),E=require("./extract-style-props-CBaCGha4.cjs.js"),Re=require("./useObjectRef-4v2MxSjQ.cjs.js"),A=require("@chakra-ui/react/flex"),Z=require("./box-CWni3A32.cjs.js"),Ce=require("./Header-Ba1_guwA.cjs.js");function Me(e={}){let{locale:t}=ue.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return l.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const H=new WeakMap;function Fe(e,t,o){let{keyboardDelegate:i,isDisabled:r,isRequired:p,name:v,form:a,validationBehavior:d="aria"}=e,b=ye.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),n=l.useMemo(()=>i||new ve.$2a25aae57d74318e$export$a05409b8bb224a5a(t.collection,t.disabledKeys,o,b),[i,t.collection,t.disabledKeys,b,o]),{menuTriggerProps:u,menuProps:m}=V.$168583247155ddda$export$dc9c12ed27dd1b49({isDisabled:r,type:"listbox"},t,o),x=y=>{if(t.selectionManager.selectionMode!=="multiple")switch(y.key){case"ArrowLeft":{var F,D;y.preventDefault();let B=t.selectedKey!=null?(F=n.getKeyAbove)===null||F===void 0?void 0:F.call(n,t.selectedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);B&&t.setSelectedKey(B);break}case"ArrowRight":{var w,k;y.preventDefault();let B=t.selectedKey!=null?(w=n.getKeyBelow)===null||w===void 0?void 0:w.call(n,t.selectedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);B&&t.setSelectedKey(B);break}}},{typeSelectProps:f}=me.$fb3050f43d946246$export$e32c88dfddc6e1d8({keyboardDelegate:n,selectionManager:t.selectionManager,onTypeSelect(y){t.setSelectedKey(y)}}),{isInvalid:S,validationErrors:q,validationDetails:$}=t.displayValidation,{labelProps:g,fieldProps:P,descriptionProps:s,errorMessageProps:R}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:S,errorMessage:e.errorMessage||q});f.onKeyDown=f.onKeyDownCapture,delete f.onKeyDownCapture,t.selectionManager.selectionMode==="multiple"&&(f={});let C=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),h=K.$3ef42575df84b30b$export$9d1611c77c2fe928(f,u,P),O=K.$bdb11010cef70236$export$f680877a34711e37();return H.set(t,{isDisabled:r,isRequired:p,name:v,form:a,validationBehavior:d}),{labelProps:{...g,onClick:()=>{if(!e.isDisabled){var y;(y=o.current)===null||y===void 0||y.focus(),xe.$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}}},triggerProps:K.$3ef42575df84b30b$export$9d1611c77c2fe928(C,{...h,isDisabled:r,onKeyDown:K.$ff5963eb1fccf552$export$e08e3b67e392101e(h.onKeyDown,x,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[O,h["aria-labelledby"],h["aria-label"]&&!h["aria-labelledby"]?h.id:null].filter(Boolean).join(" "),onFocus(y){t.isFocused||(e.onFocus&&e.onFocus(y),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(y){t.isOpen||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:O},menuProps:{...m,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:y=>{y.currentTarget.contains(y.relatedTarget)||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[P["aria-labelledby"],h["aria-label"]&&!P["aria-labelledby"]?h.id:null].filter(Boolean).join(" ")},descriptionProps:s,errorMessageProps:R,isInvalid:S,validationErrors:q,validationDetails:$,hiddenSelectProps:{isDisabled:r,name:v,label:e.label,state:t,triggerRef:o,form:a}}}function De(e,t,o){let i=H.get(t)||{},{autoComplete:r,name:p=i.name,form:v=i.form,isDisabled:a=i.isDisabled}=e,{validationBehavior:d,isRequired:b}=i,{visuallyHiddenProps:n}=Se.$5c3e21d68f1c4674$export$a966af930f325cab({style:{position:"fixed",top:0,left:0}});he.$99facab73266f662$export$5add1d006293d136(e.selectRef,t.defaultValue,t.setValue),re.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:d,focus:()=>{var f;return(f=o.current)===null||f===void 0?void 0:f.focus()}},t,e.selectRef);let u=t.setValue,m=l.useCallback(f=>{f.target.multiple?u(Array.from(f.target.selectedOptions,S=>S.value)):u(f.currentTarget.value)},[u]);var x;return{containerProps:{...n,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:r,disabled:a,multiple:t.selectionManager.selectionMode==="multiple",required:d==="native"&&b,name:p,form:v,value:(x=t.value)!==null&&x!==void 0?x:"",onChange:m,onInput:m}}}function Ie(e){let{state:t,triggerRef:o,label:i,name:r,form:p,isDisabled:v}=e,a=l.useRef(null),d=l.useRef(null),{containerProps:b,selectProps:n}=De({...e,selectRef:t.collection.size<=300?a:d},t,o);if(t.collection.size<=300)return l.createElement("div",{...b,"data-testid":"hidden-select-container"},l.createElement("label",null,i,l.createElement("select",{...n,ref:a},l.createElement("option",null),[...t.collection.getKeys()].map(u=>{let m=t.collection.getItem(u);if(m&&m.type==="item")return l.createElement("option",{key:m.key,value:m.key},m.textValue)}))));if(r){let u=H.get(t)||{},{validationBehavior:m}=u,x=Array.isArray(t.value)?t.value:[t.value];x.length===0&&(x=[null]);let f=x.map((S,q)=>{let $={type:"hidden",autoComplete:n.autoComplete,name:r,form:p,disabled:v,value:S??""};return m==="native"?l.createElement("input",{key:q,...$,ref:q===0?d:null,style:{display:"none"},type:"text",required:q===0?n.required:!1,onChange:()=>{}}):l.createElement("input",{key:q,...$,ref:q===0?d:null})});return l.createElement(l.Fragment,null,f)}return null}function Be(e){let{selectionMode:t="single"}=e,o=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[i,r]=l.useState(null),p=l.useMemo(()=>{var s;return e.defaultValue!==void 0?e.defaultValue:t==="single"?(s=e.defaultSelectedKey)!==null&&s!==void 0?s:null:[]},[e.defaultValue,e.defaultSelectedKey,t]),v=l.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[a,d]=$e.$458b0a5536c1a7cf$export$40bfa8c7b0832715(v,p,e.onChange),b=t==="single"&&Array.isArray(a)?a[0]:a,n=s=>{if(t==="single"){var R,C;let h=Array.isArray(s)?(C=s[0])!==null&&C!==void 0?C:null:s;d(h),h!==b&&((R=e.onSelectionChange)===null||R===void 0||R.call(e,h))}else{let h=[];Array.isArray(s)?h=s:s!=null&&(h=[s]),d(h)}},u=be.$e72dd72e1c76a225$export$2f645645f7bca764({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:l.useMemo(()=>Ke(b),[b]),onSelectionChange:s=>{if(s!=="all"){if(t==="single"){var R;let C=(R=s.values().next().value)!==null&&R!==void 0?R:null;n(C),o.close()}else n([...s]);f.commitValidation()}}}),m=u.selectionManager.firstSelectedKey,x=l.useMemo(()=>[...u.selectionManager.selectedKeys].map(s=>u.collection.getItem(s)).filter(s=>s!=null),[u.selectionManager.selectedKeys,u.collection]),f=re.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:Array.isArray(b)&&b.length===0?null:b}),[S,q]=l.useState(!1),[$]=l.useState(b);var g,P;return{...f,...u,...o,value:b,defaultValue:p??$,setValue:n,selectedKey:m,setSelectedKey:n,selectedItem:(g=x[0])!==null&&g!==void 0?g:null,selectedItems:x,defaultSelectedKey:(P=e.defaultSelectedKey)!==null&&P!==void 0?P:e.selectionMode==="single"?$:null,focusStrategy:i,open(s=null){u.collection.size!==0&&(r(s),o.open())},toggle(s=null){u.collection.size!==0&&(r(s),o.toggle())},isFocused:S,setFocused:q}}function Ke(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Ve(e){return e&&e.__esModule?e.default:e}const W=l.createContext(null),U=l.createContext(null),je=l.forwardRef(function(t,o){[t,o]=M.$64fa3d84918910a7$export$29f1550f4b0d4415(t,o,W);let{children:i,isDisabled:r=!1,isInvalid:p=!1,isRequired:v=!1}=t,a=l.useMemo(()=>typeof i=="function"?i({isOpen:!1,isDisabled:r,isInvalid:p,isRequired:v,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):i,[i,r,p,v]);return l.createElement(te.$e1995378a142960e$export$bf788dd355e3a401,{content:a},d=>l.createElement(Ee,{props:t,collection:d,selectRef:o}))}),Oe=[ee.$01b77f81d0f07f68$export$75b6ee27786ba447,z.$d2b4bc8c273e7be6$export$24d547caef80ccd1,N.$514c0188e459b4c0$export$9afb8bc826b033ea];function Ee({props:e,selectRef:t,collection:o}){let{validationBehavior:i}=M.$64fa3d84918910a7$export$fabf2dc03a41866e(se.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var r,p;let v=(p=(r=e.validationBehavior)!==null&&r!==void 0?r:i)!==null&&p!==void 0?p:"native",a=Be({...e,collection:o,children:void 0,validationBehavior:v}),{isFocusVisible:d,focusProps:b}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),n=l.useRef(null),[u,m]=M.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:x,triggerProps:f,valueProps:S,menuProps:q,descriptionProps:$,errorMessageProps:g,hiddenSelectProps:P,...s}=Fe({...M.$64fa3d84918910a7$export$ef03459518577ad4(e),label:m,validationBehavior:v},a,n),[R,C]=l.useState(null),h=l.useCallback(()=>{n.current&&C(n.current.offsetWidth+"px")},[n]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:n,onResize:h});let O=l.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:d,isDisabled:e.isDisabled||!1,isInvalid:s.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,d,e.isDisabled,s.isInvalid,e.isRequired]),y=M.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:O,defaultClassName:"react-aria-Select"}),F=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});delete F.id;let D=l.useRef(null);return l.createElement(M.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[U,a],[ae,S],[ee.$01b77f81d0f07f68$export$75b6ee27786ba447,{...x,ref:u,elementType:"span"}],[z.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...f,ref:n,isPressed:a.isOpen,autoFocus:e.autoFocus}],[V.$de32f1b87079253c$export$d2f961adcb0afbe,a],[V.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"Select",triggerRef:n,scrollRef:D,placement:"bottom start",style:{"--trigger-width":R},"aria-labelledby":q["aria-labelledby"],clearContexts:Oe}],[j.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{...q,ref:D}],[j.$eed445e0843c11d0$export$7c5906fe4f1f2af2,a],[N.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:$,errorMessage:g}}],[ne.$ee014567cb39d3f0$export$ff05c3ac10437e03,s]]},l.createElement("div",{...K.$3ef42575df84b30b$export$9d1611c77c2fe928(F,y,b),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":d||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":s.isInvalid||void 0,"data-required":e.isRequired||void 0},y.children,l.createElement(Ie,{...P,autoComplete:e.autoComplete})))}const ae=l.createContext(null),we=de.$f39a9eba43920ace$export$86427a43e3e48ebb(function(t,o){var i;[t,o]=M.$64fa3d84918910a7$export$29f1550f4b0d4415(t,o,ae);let r=l.useContext(U),{placeholder:p}=M.$64fa3d84918910a7$export$fabf2dc03a41866e(W),v=r.selectedItems.map($=>{var g;let P=(g=$.props)===null||g===void 0?void 0:g.children;return typeof P=="function"&&(P=P({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),P}),a=Me(),d=l.useMemo(()=>r.selectedItems.map($=>$?.textValue),[r.selectedItems]),b=r.selectionManager.selectionMode,n=l.useMemo(()=>{var $;return b==="single"?($=d[0])!==null&&$!==void 0?$:"":a.format(d)},[b,a,d]),u=l.useMemo(()=>{if(b==="single")return v[0];let $=a.formatToParts(d);if($.length===0)return null;let g=0;return $.map(P=>P.type==="element"?l.createElement(l.Fragment,{key:g},v[g++]):P.value)},[b,a,d,v]),m=fe.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ve(ce.$df39c1238ae2b5f3$exports),"react-aria-components");var x,f;let S=M.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultChildren:(x=u??p)!==null&&x!==void 0?x:m.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(i=r.selectedItems[0])===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:null,selectedItems:l.useMemo(()=>r.selectedItems.map($=>{var g;return(g=$.value)!==null&&g!==void 0?g:null}),[r.selectedItems]),selectedText:n,isPlaceholder:r.selectedItems.length===0,state:r}}),q=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return l.createElement("span",{ref:o,...q,...S,"data-placeholder":r.selectedItems.length===0||void 0},l.createElement(N.$514c0188e459b4c0$export$9afb8bc826b033ea.Provider,{value:void 0},S.children))}),{withProvider:ke,withContext:I}=_.createSlotRecipeContext({key:"select"}),Ae=ke("div","root"),Te=I("div","leadingElement"),Le=I("button","trigger"),ze=I("span","triggerLabel"),Ne=I("div","options"),Ge=I("div","option"),He=I("div","optionGroup"),We=oe.defineMessages({clearSelection:{id:"Nimbus.Select.clearSelection",description:"aria-label for select clear button",defaultMessage:"Clear selection"}}),ie=()=>{const e=l.useContext(U),t=oe.useIntl();if(!e?.selectedKey)return null;const o=()=>{e?.setSelectedKey(null)};return c.jsx(V.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea,{children:c.jsx(Pe.IconButton,{slot:null,pointerEvents:"all",size:"2xs",variant:"ghost","aria-label":t.formatMessage(We.clearSelection),"aria-labelledby":"",onPress:o,children:c.jsx(L.Close,{})})})};ie.displayName="Select.ClearButton";const X=function({ref:t,children:o,leadingElement:i,isLoading:r,isDisabled:p,isClearable:v=!0,...a}){const d=l.useRef(null),b=Re.$df56164dff5785e2$export$4338b53315abf666(_.mergeRefs(d,t)),n=T.useSlotRecipe({recipe:qe.selectSlotRecipe}),[u,m]=n.splitVariantProps(a),[x,f]=E.extractStyleProps(m),S={...f,isDisabled:r||p};return c.jsx(Ae,{asChild:!0,ref:b,...u,...x,children:c.jsxs(je,{...S,children:[c.jsxs(T.chakra.div,{position:"relative",children:[c.jsx(Le,{zIndex:0,asChild:!0,children:c.jsxs(z.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{children:[i&&c.jsx(Te,{asChild:!0,children:i}),c.jsx(ze,{asChild:!0,children:c.jsx(we,{})})]})}),c.jsxs(A.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[v&&c.jsx(A.Flex,{width:"600",my:"auto",children:c.jsx(ie,{})}),c.jsx(A.Flex,{my:"auto",w:"600",h:"600",children:c.jsx(Z.Box,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:r?c.jsx(Z.Box,{asChild:!0,animation:"spin",animationDuration:"slowest",children:c.jsx(L.Loop,{})}):c.jsx(L.KeyboardArrowDown,{})})})]})]}),c.jsx(V.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:o})]})})};X.displayName="Select.Root";const J=e=>{const{ref:t,...o}=e,[i,r]=E.extractStyleProps(o);return c.jsx(Ne,{asChild:!0,...i,children:c.jsx(j.$eed445e0843c11d0$export$41f133550aa26f48,{ref:t,...r})})};J.displayName="Select.Options";const Q=e=>{const{ref:t,...o}=e,[i,r]=E.extractStyleProps(o);return c.jsx(Ge,{asChild:!0,...i,children:c.jsx(j.$eed445e0843c11d0$export$a11e76429ed99b4,{ref:t,...r})})};Q.displayName="Select.Option";const Y=e=>{const{ref:t,label:o,items:i,children:r,...p}=e,[v,a]=E.extractStyleProps(p);if(i&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return c.jsx(T.chakra.section,{...v,asChild:!0,children:c.jsxs(j.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:t,...a,children:[c.jsx(He,{asChild:!0,children:c.jsx(Ce.$72a5793c14baf454$export$8b251419efc915eb,{children:o})}),i?c.jsx(te.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:d=>typeof r=="function"?r(d):null}):r]})})};Y.displayName="Select.OptionGroup";const Ue={Root:X,Options:J,Option:Q,OptionGroup:Y};exports.Select=Ue;exports.SelectOption=Q;exports.SelectOptionGroup=Y;exports.SelectOptions=J;exports.SelectRoot=X;
|
|
2
|
-
//# sourceMappingURL=select-CWaI47Kc.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"split-button-C1PFrcU6.es.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.i18n.ts","../../src/components/split-button/split-button.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n SplitButtonRootSlotProps,\n SplitButtonButtonGroupSlotProps,\n SplitButtonPrimaryButtonSlotProps,\n SplitButtonTriggerSlotProps,\n} from \"./split-button.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"splitButton\",\n});\n\n// Root Container\nexport const SplitButtonRootSlot: SlotComponent<\n HTMLDivElement,\n SplitButtonRootSlotProps\n> = withProvider<HTMLDivElement, SplitButtonRootSlotProps>(\"div\", \"root\");\n\n// Button Group Container\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n noActionsAvailable: {\n id: \"Nimbus.SplitButton.noActionsAvailable\",\n description: \"fallback message when split button has no menu items\",\n defaultMessage: \"No actions available\",\n },\n});\n","import React from \"react\";\nimport { useIntl } from \"react-intl\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport { Icon } from \"@/components/icon\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { messages } from \"./split-button.i18n\";\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 Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const intl = useIntl();\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 icon,\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 type MenuItemProps = {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n };\n\n type 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 // All children are menu items\n const menuItems = props.children;\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 content: intl.formatMessage(messages.noActionsAvailable),\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 {icon && <Icon>{icon}</Icon>}\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","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","messages","defineMessages","SplitButton","props","intl","useIntl","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","icon","buttonProps","isMenuItemWithId","element","React","hasChildren","menuItems","hasActionableMenuItems","children","hasActionable","child","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Icon","Menu","key","IconButton","KeyboardArrowDown"],"mappings":";;;;;;;;;AASA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAGT,gBAAAH,EAAuD,OAAO,MAAM,GAG3DI,IAA6B,gBAAAH,EAGxC,OAAO,aAAa,GAGTI,IAA+B,gBAAAJ,EAG1C,UAAU,eAAe,GAGdK,IAAyB,gBAAAL,EAGpC,UAAU,iBAAiB,GCjChBM,IAAW,gBAAAC,EAAe;AAAA,EACrC,oBAAoB;AAAA,IAClB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCsBYC,IAAc,CAACC,MAA4B;AACtD,QAAMC,IAAOC,EAAA,GACP;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,IACA,MAAAC;AAAA,EAAA,IACEZ,GAEEa,IAAc,EAAE,MAAAV,GAAM,SAAAC,GAAS,MAAAC,EAAA,GA0B/BS,IAAmB,CACvBC,MACiD;AACjD,QAAI,CAACC,EAAM,eAAeD,CAAO,KAAK,CAACA,EAAQ,MAAO,QAAO;AAC7D,UAAMf,IAAQe,EAAQ;AACtB,WAAO,QAAQf,KAAS,OAAOA,EAAM,MAAO;AAAA,EAC9C,GAGMiB,IAAc,CAClBF,MAEI,CAACC,EAAM,eAAeD,CAAO,KAAK,CAACA,EAAQ,QAAc,KAEtD,cADOA,EAAQ,OAKlBG,IAAYlB,EAAM,UAMlBmB,IAAyB,CA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AAsC,EAACrC,GAAA,EAA6B,SAAO,IACnC,UAAA,gBAAAsC;AAAA,MAACC;AAAA,MAAA;AAAA,QACE,GAAGrB;AAAA,QACJ,YAAYiB;AAAA,QACZ,SAASD;AAAA,QAER,UAAA;AAAA,UAAAjB,KAAQ,gBAAAoB,EAACG,KAAM,UAAAvB,EAAA,CAAK;AAAA,UACpBgB,EAAc;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAGA,gBAAAK;AAAA,MAACG,EAAK;AAAA,MAAL;AAAA,QACC,SAAQ;AAAA,QACR,QAAA3B;AAAA,QACA,aAAAC;AAAA,QACA,cAAAC;AAAA,QACA,WAAU;AAAA,QACV,eAAc;AAAA,QACd,UAAUH,IAAW,CAAC6B,MAAQ7B,EAAS,OAAO6B,CAAG,CAAC,IAAI;AAAA,QAEtD,UAAA;AAAA,UAAA,gBAAAL,EAACI,EAAK,SAAL,EAAa,SAAO,IACnB,UAAA,gBAAAJ,EAACpC,GAAA,EAAuB,SAAO,IAC7B,UAAA,gBAAAoC;AAAA,YAACM;AAAA,YAAA;AAAA,cACE,GAAGzB;AAAA,cACJ,cAAYN;AAAA,cACZ,YAAYwB;AAAA,cAEZ,4BAACQ,GAAA,CAAA,CAAkB;AAAA,YAAA;AAAA,UAAA,GAEvB,EAAA,CACF;AAAA,UAEA,gBAAAP,EAACI,EAAK,SAAL,EAAc,UAAAlB,EAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAC3B,EAAA,CACF,EAAA,CACF;AAEJ;AAEAnB,EAAY,cAAc;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),B=require("react-intl"),T=require("./button-DEenpJMD.cjs.js"),N=require("./icon-button-DJZJwO7E.cjs.js"),u=require("./menu-KGSl9Em7.cjs.js"),O=require("./icon-D39U--jA.cjs.js"),$=require("@chakra-ui/react"),k=require("@commercetools/nimbus-icons"),{withProvider:G,withContext:d}=$.createSlotRecipeContext({key:"splitButton"}),V=G("div","root"),z=d("div","buttonGroup"),K=d("button","primaryButton"),L=d("button","dropdownTrigger"),W=B.defineMessages({noActionsAvailable:{id:"Nimbus.SplitButton.noActionsAvailable",description:"fallback message when split button has no menu items",defaultMessage:"No actions available"}}),S=p=>{const D=B.useIntl(),{size:M="md",variant:b="solid",tone:A,isDisabled:m=!1,"aria-label":j,onAction:r,isOpen:y,defaultOpen:C,onOpenChange:q,icon:h}=p,f={size:M,variant:b,tone:A},I=t=>{if(!a.isValidElement(t)||!t.props)return!1;const n=t.props;return"id"in n&&typeof n.id=="string"},g=t=>!a.isValidElement(t)||!t.props?!1:"children"in t.props,c=p.children,x=t=>{let n=!1;return a.Children.forEach(t,i=>{if(!n){if(I(i)&&!i.props.isDisabled){n=!0;return}g(i)&&(n=x(i.props.children))}}),n},v=()=>{const t=[],n=l=>{a.Children.forEach(l,s=>{I(s)&&t.push({content:s.props.children,isDisabled:s.props.isDisabled||!1,actionId:s.props.id}),g(s)&&n(s.props.children)})};return n(c),t.find(l=>!l.isDisabled)||t[0]||{content:D.formatMessage(W.noActionsAvailable),isDisabled:!0,actionId:null}},w=x(c),o=v(),P=()=>{!o.isDisabled&&o.actionId&&r&&r(o.actionId)},R=m||o.isDisabled,E=m||!w;return e.jsx(V,{variant:b,"data-mode":"split",children:e.jsxs(z,{children:[e.jsx(K,{asChild:!0,children:e.jsxs(T.Button,{...f,isDisabled:R,onPress:P,children:[h&&e.jsx(O.Icon,{children:h}),o.content]})}),e.jsxs(u.Menu.Root,{trigger:"press",isOpen:y,defaultOpen:C,onOpenChange:q,placement:"bottom end",selectionMode:"none",onAction:r?t=>r(String(t)):void 0,children:[e.jsx(u.Menu.Trigger,{asChild:!0,children:e.jsx(L,{asChild:!0,children:e.jsx(N.IconButton,{...f,"aria-label":j,isDisabled:E,children:e.jsx(k.KeyboardArrowDown,{})})})}),e.jsx(u.Menu.Content,{children:c})]})]})})};S.displayName="SplitButton";exports.SplitButton=S;
|
|
2
|
-
//# sourceMappingURL=split-button-DhxZShYM.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"split-button-DhxZShYM.cjs.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.i18n.ts","../../src/components/split-button/split-button.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n SplitButtonRootSlotProps,\n SplitButtonButtonGroupSlotProps,\n SplitButtonPrimaryButtonSlotProps,\n SplitButtonTriggerSlotProps,\n} from \"./split-button.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"splitButton\",\n});\n\n// Root Container\nexport const SplitButtonRootSlot: SlotComponent<\n HTMLDivElement,\n SplitButtonRootSlotProps\n> = withProvider<HTMLDivElement, SplitButtonRootSlotProps>(\"div\", \"root\");\n\n// Button Group Container\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n noActionsAvailable: {\n id: \"Nimbus.SplitButton.noActionsAvailable\",\n description: \"fallback message when split button has no menu items\",\n defaultMessage: \"No actions available\",\n },\n});\n","import React from \"react\";\nimport { useIntl } from \"react-intl\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport { Icon } from \"@/components/icon\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { messages } from \"./split-button.i18n\";\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 Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const intl = useIntl();\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 icon,\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 type MenuItemProps = {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n };\n\n type 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 // All children are menu items\n const menuItems = props.children;\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 content: intl.formatMessage(messages.noActionsAvailable),\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 {icon && <Icon>{icon}</Icon>}\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","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","messages","defineMessages","SplitButton","props","intl","useIntl","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","icon","buttonProps","isMenuItemWithId","element","React","hasChildren","menuItems","hasActionableMenuItems","children","hasActionable","child","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Icon","Menu","key","IconButton","KeyboardArrowDown"],"mappings":"6TASM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAGYC,EAGTH,EA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YwB,EAEZ,eAACQ,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAEvB,CAAA,CACF,EAEAP,EAAAA,IAACI,EAAAA,KAAK,QAAL,CAAc,SAAAlB,CAAA,CAAU,CAAA,CAAA,CAAA,CAC3B,CAAA,CACF,CAAA,CACF,CAEJ,EAEAnB,EAAY,YAAc"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("react/jsx-runtime"),g=require("./SelectionManager-CCETIs4l.cjs.js"),x=require("./utils-DVb3jcp5.cjs.js"),k=require("./SelectionIndicator-Du7-bvy3.cjs.js"),m=require("./CollectionBuilder-BipvtvSl.cjs.js"),z=require("./Hidden-CNJIJ63M.cjs.js"),h=require("./mergeProps-CxnHrnow.cjs.js"),S=require("./filterDOMProps-WUskt27c.cjs.js"),R=require("./useObjectRef-4v2MxSjQ.cjs.js"),j=require("./inertValue-BWmZ1afe.cjs.js"),s=require("react"),I=require("./useLabels-C_UIaxmz.cjs.js"),B=require("./useHasTabbableChild-ytnnMmC_.cjs.js"),U=require("./openLink-DkCJYbzq.cjs.js"),W=require("./useFocusable-C7VjcJHL.cjs.js"),G=require("./context-CyT9C4U4.cjs.js"),q=require("./useFocusRing-B7_ogYbr.cjs.js"),J=require("./useHover-xrdh1GG9.cjs.js"),Q=require("./useSingleSelectListState-BawVWofI.cjs.js"),X=require("@chakra-ui/react"),Y=require("./extract-style-props-CBaCGha4.cjs.js"),O=new WeakMap;function T(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=O.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function Z(i,e,t){let{key:a,isDisabled:d,shouldSelectOnPressUp:r}=i,{selectionManager:l,selectedKey:c}=e,o=a===c,n=d||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:b}=g.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:l,key:a,ref:t,isDisabled:n,shouldSelectOnPressUp:r,linkBehavior:"selection"}),$=T(e,a,"tab"),v=T(e,a,"tabpanel"),{tabIndex:y}=u,p=e.collection.getItem(a),P=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(p?.props,{labelable:!0});delete P.id;let V=U.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(p?.props),{focusableProps:A}=W.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:n},t);return{tabProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,A,V,u,{id:$,"aria-selected":o,"aria-disabled":n||void 0,"aria-controls":o?v:void 0,tabIndex:n?void 0:y,role:"tab"}),isSelected:o,isDisabled:n,isPressed:b}}function _(i,e,t){let a=B.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var d;const r=T(e,(d=i.id)!==null&&d!==void 0?d:e?.selectedKey,"tabpanel"),l=I.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:r,"aria-labelledby":T(e,e?.selectedKey,"tab")});return{tabPanelProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class ee{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,d=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=d,this.tabDirection=a==="horizontal"}}function te(i,e,t){let{orientation:a="horizontal",keyboardActivation:d="automatic"}=i,{collection:r,selectionManager:l,disabledKeys:c}=e,{direction:o}=G.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=s.useMemo(()=>new ee(r,o,a,c),[r,c,a,o]),{collectionProps:u}=g.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:l,keyboardDelegate:n,selectOnFocus:d==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),b=h.$bdb11010cef70236$export$f680877a34711e37();O.set(e,b);let $=I.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:b});return{tabListProps:{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function ie(i){var e,t;let a=Q.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?o=>{var n;o!=null&&((n=i.onSelectionChange)===null||n===void 0||n.call(i,o))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:N(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:d,collection:r,selectedKey:l}=a,c=s.useRef(l);return s.useEffect(()=>{let o=l;i.selectedKey==null&&(d.isEmpty||o==null||!r.getItem(o))&&(o=N(r,a.disabledKeys),o!=null&&d.setSelectedKeys([o])),(o!=null&&d.focusedKey==null||!d.isFocused&&o!==c.current)&&d.setFocusedKey(o),c.current=o}),{...a,isDisabled:i.isDisabled||!1}}function N(i,e){let t=null;if(i){var a,d,r,l;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((d=i.getItem(t))===null||d===void 0||(a=d.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((l=i.getItem(t))===null||l===void 0||(r=l.props)===null||r===void 0)&&r.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=s.createContext(null),K=s.createContext(null),ae=s.forwardRef(function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:d="horizontal"}=e;return a=s.useMemo(()=>typeof a=="function"?a({orientation:d,defaultChildren:null}):a,[a,d]),s.createElement(m.$e1995378a142960e$export$bf788dd355e3a401,{content:a},r=>s.createElement(de,{props:e,collection:r,tabsRef:t}))});function de({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,d=ie({...i,collection:t,children:void 0}),{focusProps:r,isFocused:l,isFocusVisible:c}=q.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=s.useMemo(()=>({orientation:a,isFocusWithin:l,isFocusVisible:c}),[a,l,c]),n=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:o}),u=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return s.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,n,r),ref:e,slot:i.slot||void 0,"data-focused":l||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":d.isDisabled||void 0},s.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[K,d]]},n.children))}const re=s.forwardRef(function(e,t){return s.useContext(K)?s.createElement(se,{props:e,forwardedRef:t}):s.createElement(m.$e1995378a142960e$export$fb8073518f34e6ec,e)});function se({props:i,forwardedRef:e}){let t=s.useContext(K),{CollectionRoot:a}=s.useContext(g.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:d="horizontal",keyboardActivation:r="automatic"}=x.$64fa3d84918910a7$export$fabf2dc03a41866e(D),l=R.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=te({...i,orientation:d,keyboardActivation:r},t,l),o=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:d,state:t}}),n=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete n.id,s.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(n,o,c),ref:l,"data-orientation":d||void 0},s.createElement(k.$c8a5a149f625efcf$export$758399f318e6385a,null,s.createElement(a,{collection:t.collection,persistedKeys:g.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class H extends m.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}H.type="item";const oe=m.$e1995378a142960e$export$18af5c7a9e9b3664(H,(i,e,t)=>{let a=s.useContext(K),d=R.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:r,isSelected:l,isDisabled:c,isPressed:o}=Z({key:t.key,...i},a,d),{focusProps:n,isFocused:u,isFocusVisible:b}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:v}=J.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),y=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:c,isFocused:u,isFocusVisible:b,isPressed:o,isHovered:v}}),p=t.props.href?"a":"div",P=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete P.id,delete P.onClick,s.createElement(p,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,y,r,n,$),ref:d,"data-selected":l||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":b||void 0,"data-pressed":o||void 0,"data-hovered":v||void 0},s.createElement(k.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:l}},y.children))}),le=z.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=s.useContext(K);let d=R.$df56164dff5785e2$export$4338b53315abf666(t),{id:r,...l}=e,{tabPanelProps:c}=_(e,a,d),{focusProps:o,isFocused:n,isFocusVisible:u}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),b=a.selectedKey===e.id,$=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:n,isFocusVisible:u,isInert:j.$cdc5a6778b766db2$export$a9d04c5684123369(!b),state:a}});if(!b&&!e.shouldForceMount)return null;let v=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(l,{global:!0});delete v.id;let y=b?h.$3ef42575df84b30b$export$9d1611c77c2fe928(v,c,o,$):$;return s.createElement("div",{...y,ref:d,"data-focused":n||void 0,"data-focus-visible":u||void 0,inert:j.$cdc5a6778b766db2$export$a9d04c5684123369(!b||e.inert),"data-inert":b?void 0:"true"},s.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[K,null]]},s.createElement(g.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:g.$7135fc7d473fd974$export$a164736487e3f0ae},$.children)))}),{withProvider:ne,withContext:C}=X.createSlotRecipeContext({key:"tabs"}),ce=ne("div","root"),fe=C("div","list"),be=C("button","tab"),ue=C("div","panels"),$e=C("div","panel"),F=({children:i,isDisabled:e,...t})=>f.jsx(be,{asChild:!0,...t,children:f.jsx(oe,{isDisabled:e,children:i})});F.displayName="Tabs.Tab";const E=({tabs:i,children:e,...t})=>{const[a,d]=Y.extractStyleProps(t);if(!i&&!e)throw new Error('Tabs.List: Either provide "tabs" prop or "children" must be provided');return f.jsx(fe,{...a,asChild:!0,children:f.jsx(re,{items:i,...d,children:i?r=>f.jsx(F,{id:r.id,isDisabled:r.isDisabled,children:r.tabLabel},r.id):e})})};E.displayName="Tabs.List";const w=s.forwardRef(({children:i,...e},t)=>{if(!i)throw new Error("Tabs.Panel: children prop is required");return f.jsx($e,{asChild:!0,ref:t,...e,children:f.jsx(le,{children:i})})});w.displayName="Tabs.Panel";const L=({tabs:i,children:e,...t})=>{if(!i&&!e)throw new Error('Tabs.Panels: Either provide "items" prop or "children" must be provided');return f.jsx(ue,{...t,children:i?f.jsx(m.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:a=>f.jsx(w,{id:a.id,children:a.panelContent},a.id)}):e})};L.displayName="Tabs.Panels";const M=({children:i,orientation:e="horizontal",disabledKeys:t,placement:a="start",size:d="md",tabs:r,...l})=>f.jsx(ce,{asChild:!0,orientation:e,placement:a,size:d,...l,children:f.jsx(ae,{disabledKeys:t,...r,children:i||f.jsxs(f.Fragment,{children:[f.jsx(E,{tabs:r}),f.jsx(L,{tabs:r})]})})});M.displayName="Tabs.Root";const pe={Root:M,List:E,Tab:F,Panels:L,Panel:w};exports.Tab=F;exports.TabList=E;exports.TabPanel=w;exports.TabPanels=L;exports.Tabs=pe;exports.TabsRoot=M;
|
|
2
|
-
//# sourceMappingURL=tabs-BlcjUZnC.cjs.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("react/jsx-runtime"),Ee=require("@chakra-ui/react"),Le=require("./Button-DLCecw8f.cjs.js"),C=require("./SelectionManager-CCETIs4l.cjs.js"),m=require("./utils-DVb3jcp5.cjs.js"),ye=require("./Label-szabofdc.cjs.js"),D=require("./ListBox-DkXFmzHf.cjs.js"),ke=require("./RSPContexts-BdKenzIN.cjs.js"),S=require("./SelectionIndicator-Du7-bvy3.cjs.js"),he=require("./Text-BWSfeB9p.cjs.js"),E=require("./CollectionBuilder-BipvtvSl.cjs.js"),g=require("./mergeProps-CxnHrnow.cjs.js"),B=require("./filterDOMProps-WUskt27c.cjs.js"),Te=require("./useObjectRef-4v2MxSjQ.cjs.js"),a=require("react"),w=require("./useFocusRing-B7_ogYbr.cjs.js"),Re=require("./useHover-xrdh1GG9.cjs.js"),q=require("./useGridListItem-Dt8Kui_9.cjs.js"),Fe=require("./ListKeyboardDelegate-BEarLHjT.cjs.js"),Se=require("./useField-lK6K_h1G.cjs.js"),we=require("./useFocusWithin-CX8GdFVw.cjs.js"),qe=require("./context-CyT9C4U4.cjs.js"),Ae=require("./openLink-DkCJYbzq.cjs.js"),Me=require("./scrollIntoView-BE5bh59O.cjs.js"),ze=require("./useFocusVisible-DfE3Z6QO.cjs.js"),je=require("./useFocusable-C7VjcJHL.cjs.js"),Ne=require("./useLocalizedStringFormatter-kWoZGAh5.cjs.js"),F=require("./useListState-HM8Jsi0C.cjs.js"),A=require("react-intl"),Ge=require("@commercetools/nimbus-icons"),Ve=require("./icon-button-DJZJwO7E.cjs.js"),M=new WeakMap;function Ie(e,t,r){let{direction:o}=qe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),s=e.keyboardDelegate||new Fe.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:t.collection,ref:r,orientation:"horizontal",direction:o,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:n,fieldProps:u,descriptionProps:c,errorMessageProps:f}=Se.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span"}),{gridProps:b}=q.$f47efb0c3a859cf2$export$664f9155035607eb({...e,...u,keyboardDelegate:s,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,r),[i,p]=a.useState(!1),{focusWithinProps:l}=we.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:p}),$=B.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),d=a.useRef(t.collection.size);return a.useEffect(()=>{r.current&&d.current>0&&t.collection.size===0&&i&&r.current.focus(),d.current=t.collection.size},[t.collection.size,i,r]),M.set(t,{onRemove:e.onRemove}),{gridProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(b,$,{role:t.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":i?"polite":"off",...l,...u}),labelProps:n,descriptionProps:c,errorMessageProps:f}}var z={};z={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var j={};j={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var N={};N={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var G={};G={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var V={};V={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var I={};I={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var K={};K={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var O={};O={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var H={};H={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var U={};U={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var W={};W={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var _={};_={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var J={};J={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var Q={};Q={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var Z={};Z={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var X={};X={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var Y={};Y={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var ee={};ee={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var te={};te={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var re={};re={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var oe={};oe={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var ae={};ae={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var ue={};ue={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var ie={};ie={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var se={};se={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var ne={};ne={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var le={};le={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var ce={};ce={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var de={};de={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var fe={};fe={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var be={};be={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var pe={};pe={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var $e={};$e={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var ve={};ve={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var me={};me={"ar-AE":z,"bg-BG":j,"cs-CZ":N,"da-DK":G,"de-DE":V,"el-GR":I,"en-US":K,"es-ES":O,"et-EE":H,"fi-FI":U,"fr-FR":W,"he-IL":_,"hr-HR":J,"hu-HU":Q,"it-IT":Z,"ja-JP":X,"ko-KR":Y,"lt-LT":ee,"lv-LV":te,"nb-NO":re,"nl-NL":oe,"pl-PL":ae,"pt-BR":ue,"pt-PT":ie,"ro-RO":se,"ru-RU":ne,"sk-SK":le,"sl-SI":ce,"sr-SP":de,"sv-SE":fe,"tr-TR":be,"uk-UA":pe,"zh-CN":$e,"zh-TW":ve};function Ke(e){return e&&e.__esModule?e.default:e}function Oe(e,t,r){let{item:o}=e,s=Ne.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ke(me),"@react-aria/tag"),n=g.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:u}=M.get(t)||{},{rowProps:c,gridCellProps:f,...b}=q.$4e8b0456ef72939f$export$9610e69494fadfd2({node:o},t,r),{descriptionProps:i,...p}=b,l=t.disabledKeys.has(o.key)||o.props.isDisabled,$=R=>{if(R.key==="Delete"||R.key==="Backspace"){if(l)return;R.preventDefault(),t.selectionManager.isSelected(o.key)?u?.(new Set(t.selectionManager.selectedKeys)):u?.(new Set([o.key]))}},d=ze.$507fabe10e71c6fb$export$98e20ec92f614cfe();d==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(d="pointer");let L=u&&(d==="keyboard"||d==="virtual")?s.format("removeDescription"):"",y=Me.$ef06256079686ba0$export$f8aeda7b10753fa1(L),k=o.key===t.selectionManager.focusedKey,h=t.selectionManager.focusedKey!=null,x=-1;!l&&(k||!h)&&(x=0);let P=B.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o.props),T=Ae.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(o.props),{focusableProps:Ce}=je.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:l},r);return{removeButtonProps:{"aria-label":s.format("removeButtonLabel"),"aria-labelledby":`${n} ${c.id}`,isDisabled:l,id:n,onPress:()=>u?u(new Set([o.key])):null},rowProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(Ce,c,P,T,{tabIndex:x,onKeyDown:u?$:void 0,"aria-describedby":y["aria-describedby"]}),gridCellProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(f,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...p,allowsRemoving:!!u}}const He=a.createContext(null),xe=a.createContext(null),Ue=a.forwardRef(function(t,r){return[t,r]=m.$64fa3d84918910a7$export$29f1550f4b0d4415(t,r,He),a.createElement(D.$eed445e0843c11d0$export$7c5906fe4f1f2af2.Provider,{value:null},a.createElement(E.$e1995378a142960e$export$bf788dd355e3a401,{content:t.children},o=>a.createElement(We,{props:t,forwardedRef:r,collection:o})))});function We({props:e,forwardedRef:t,collection:r}){let o=a.useRef(null),{id:s,...n}=e;[n,o]=m.$64fa3d84918910a7$export$29f1550f4b0d4415(n,o,ke.$4e85f108e88277b8$export$b0d3ecf7112093a7);let{filter:u,shouldUseVirtualFocus:c,...f}=n,[b,i]=m.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),p=F.$e72dd72e1c76a225$export$2f645645f7bca764({...f,children:void 0,collection:r}),l=F.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(p,u),$=B.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(n,{global:!0}),d=Object.fromEntries(Object.entries($).map(([P,T])=>[P,P==="id"?T:void 0])),{gridProps:L,labelProps:y,descriptionProps:k,errorMessageProps:h}=Ie({...f,...d,label:i},l,o);var x;return a.createElement("div",{...$,id:s,ref:t,slot:e.slot||void 0,className:(x=e.className)!==null&&x!==void 0?x:"react-aria-TagGroup",style:e.style},a.createElement(m.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[ye.$01b77f81d0f07f68$export$75b6ee27786ba447,{...y,elementType:"span",ref:b}],[xe,{...L,ref:o}],[D.$eed445e0843c11d0$export$7c5906fe4f1f2af2,l],[he.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:k,errorMessage:h}}]]},e.children))}const _e=a.forwardRef(function(t,r){return a.useContext(D.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?a.createElement(Je,{props:t,forwardedRef:r}):a.createElement(E.$e1995378a142960e$export$fb8073518f34e6ec,t)});function Je({props:e,forwardedRef:t}){let r=a.useContext(D.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:o}=a.useContext(C.$7135fc7d473fd974$export$4feb769f8ddf26c5),[s,n]=m.$64fa3d84918910a7$export$29f1550f4b0d4415({},t,xe),{focusProps:u,isFocused:c,isFocusVisible:f}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(),b={isEmpty:r.collection.size===0,isFocused:c,isFocusVisible:f,state:r},i=m.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-TagList",values:b}),p=C.$7135fc7d473fd974$export$90e00781bc59d8f9(r.selectionManager.focusedKey),l=B.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return a.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(l,i,s,u),ref:n,"data-empty":r.collection.size===0||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0},a.createElement(S.$c8a5a149f625efcf$export$758399f318e6385a,null,r.collection.size===0&&e.renderEmptyState?e.renderEmptyState(b):a.createElement(o,{collection:r.collection,persistedKeys:p})))}const Qe=E.$e1995378a142960e$export$18af5c7a9e9b3664(E.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,(e,t,r)=>{let o=a.useContext(D.$eed445e0843c11d0$export$7c5906fe4f1f2af2),s=Te.$df56164dff5785e2$export$4338b53315abf666(t),{focusProps:n,isFocusVisible:u}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:c,gridCellProps:f,removeButtonProps:b,...i}=Oe({item:r},o,s),{hoverProps:p,isHovered:l}=Re.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!i.allowsSelection,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),$=m.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tag",values:{...i,isFocusVisible:u,isHovered:l,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior}});a.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[r.textValue]);let d=B.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete d.id,delete d.onClick,a.createElement("div",{ref:s,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(d,$,c,n,p),"data-selected":i.isSelected||void 0,"data-disabled":i.isDisabled||void 0,"data-hovered":l||void 0,"data-focused":i.isFocused||void 0,"data-focus-visible":u||void 0,"data-pressed":i.isPressed||void 0,"data-allows-removing":i.allowsRemoving||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},a.createElement("div",{...f,style:{display:"contents"}},a.createElement(m.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Le.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:b}}],[C.$7135fc7d473fd974$export$4feb769f8ddf26c5,C.$7135fc7d473fd974$export$a164736487e3f0ae],[S.$1d5b8b8664671ef2$export$c9549807523555e0,{isSelected:i.isSelected}]]},$.children)))}),{withProvider:Ze,withContext:ge}=Ee.createSlotRecipeContext({key:"taggroup"}),Xe=Ze(Ue,"root"),Ye=e=>{const{ref:t,...r}=e,o=ge(_e,"tagList");return v.jsx(o,{...r,ref:t})},et=ge(Qe,"tag"),De=({children:e,onRemove:t,selectionMode:r,ref:o,...s})=>(t&&(r==="multiple"||r==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),v.jsx(Xe,{ref:o,onRemove:t,selectionMode:r,...s,children:e}));De.displayName="TagGroup.Root";const Be=({children:e,ref:t,...r})=>v.jsx(Ye,{ref:t,...r,children:e});Be.displayName="TagGroup.TagList";const tt=A.defineMessages({removeTag:{id:"Nimbus.TagGroup.removeTag",description:"aria-label for remove tag button",defaultMessage:"Remove tag"}}),Pe=({children:e,ref:t,...r})=>{const o=A.useIntl(),s=typeof e=="string"?e:void 0;return v.jsx(et,{ref:t,textValue:s,...r,children:({allowsRemoving:n,isSelected:u,selectionMode:c})=>v.jsxs(v.Fragment,{children:[e,n&&c!=="multiple"&&c!=="single"&&v.jsx(Ve.IconButton,{size:"2xs",variant:u?"solid":"ghost",slot:"remove",tone:u?void 0:"neutral","aria-label":o.formatMessage(tt.removeTag),children:v.jsx(Ge.Close,{})})]})})};Pe.displayName="TagGroup.Tag";const rt={Root:De,TagList:Be,Tag:Pe};exports.TagGroup=rt;
|
|
2
|
-
//# sourceMappingURL=tag-group-DexGJ8Hf.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button-group.recipe-CbCnJQP3.es.js","sources":["../../src/components/button/button.recipe.ts","../../src/components/toggle-button-group/toggle-button-group.recipe.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react/styled-system\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n","import { defineSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { buttonRecipe } from \"../button/button.recipe\";\n\n/**\n * Recipe configuration for the ToggleButtonGroup component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const buttonGroupRecipe = defineSlotRecipe({\n slots: [\"root\", \"button\"],\n // Unique class name prefix for the component\n className: \"nimbus-toggle-button-group\",\n\n // Base styles applied to all instances of the component\n base: {\n root: {\n display: \"inline-flex\",\n },\n button: {\n // Base style is the same as our Button\n ...buttonRecipe.base,\n // Default style is outlined\n ...buttonRecipe.variants?.variant.outline,\n // Create overrides for custom ToggleButtonGroup styles\n borderRadius: \"0\",\n borderRightWidth: \"0\",\n \"&:first-of-type\": {\n borderLeftRadius: \"200\",\n },\n \"&:last-of-type\": {\n borderRightWidth: \"1px\",\n borderRightRadius: \"200\",\n },\n // When selected, the button is styled like a solid button\n \"&[data-selected=true]\": buttonRecipe.variants?.variant.solid,\n },\n },\n\n variants: {\n size: {\n xs: {\n button: buttonRecipe.variants?.size.xs,\n },\n md: {\n button: buttonRecipe.variants?.size.md,\n },\n },\n\n tone: {\n primary: {\n button: { colorPalette: \"primary\" },\n },\n critical: {\n button: { colorPalette: \"critical\" },\n },\n neutral: {\n button: { colorPalette: \"neutral\" },\n },\n },\n },\n\n defaultVariants: {\n size: \"md\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe","buttonGroupRecipe","defineSlotRecipe"],"mappings":";AAEO,MAAMA,IAAe,gBAAAC,EAAa;AAAA,EACvC,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY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