@commercetools/nimbus 0.0.0-canary-20250826065101 → 0.0.0-canary-20250826164027
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/accordion.d.ts +9 -0
- package/dist/alert.d.ts +9 -0
- package/dist/avatar.d.ts +9 -0
- package/dist/badge.d.ts +9 -0
- package/dist/box.d.ts +9 -0
- package/dist/button.d.ts +9 -0
- package/dist/calendar.d.ts +9 -0
- package/dist/card.d.ts +9 -0
- package/dist/checkbox.d.ts +9 -0
- package/dist/chunks/DatePicker-5cKqpUC9.cjs.js +2 -0
- package/dist/chunks/{DatePicker-BQ6EfAU2.cjs.js.map → DatePicker-5cKqpUC9.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-ByWwypbW.es.js → DatePicker-8Z6Kf838.es.js} +17 -18
- package/dist/chunks/{DatePicker-ByWwypbW.es.js.map → DatePicker-8Z6Kf838.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DNPIKkGE.es.js → Dialog-C7IjW1jR.es.js} +24 -25
- package/dist/chunks/{Dialog-DNPIKkGE.es.js.map → Dialog-C7IjW1jR.es.js.map} +1 -1
- package/dist/chunks/Dialog-Cbq66gyc.cjs.js +2 -0
- package/dist/chunks/{Dialog-B4OIDU7t.cjs.js.map → Dialog-Cbq66gyc.cjs.js.map} +1 -1
- package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +2 -0
- package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +1 -0
- package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js +479 -0
- package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js.map +1 -0
- package/dist/chunks/{alert-BhMfbMnN.cjs.js → alert-BZUgI30X.cjs.js} +2 -2
- package/dist/chunks/{alert-BhMfbMnN.cjs.js.map → alert-BZUgI30X.cjs.js.map} +1 -1
- package/dist/chunks/{alert-BvT6yjas.es.js → alert-BxQlH4k1.es.js} +2 -2
- package/dist/chunks/{alert-BvT6yjas.es.js.map → alert-BxQlH4k1.es.js.map} +1 -1
- package/dist/chunks/{button-Bg73nQk3.es.js → button-B4HX0fM_.es.js} +2 -2
- package/dist/chunks/{button-Bg73nQk3.es.js.map → button-B4HX0fM_.es.js.map} +1 -1
- package/dist/chunks/{button-BiBXrCVh.cjs.js → button-qv44IWcR.cjs.js} +2 -2
- package/dist/chunks/{button-BiBXrCVh.cjs.js.map → button-qv44IWcR.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-Co4TTkzj.es.js → calendar-DABzfMco.es.js} +4 -4
- package/dist/chunks/{calendar-Co4TTkzj.es.js.map → calendar-DABzfMco.es.js.map} +1 -1
- package/dist/chunks/{calendar-BydrcPp3.cjs.js → calendar-v3st4EyG.cjs.js} +2 -2
- package/dist/chunks/{calendar-BydrcPp3.cjs.js.map → calendar-v3st4EyG.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-8eIhS2f6.cjs.js → checkbox-BN-_eQB9.cjs.js} +2 -2
- package/dist/chunks/{checkbox-8eIhS2f6.cjs.js.map → checkbox-BN-_eQB9.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-B2yJgtOJ.es.js → checkbox-VN2y-Prn.es.js} +2 -2
- package/dist/chunks/{checkbox-B2yJgtOJ.es.js.map → checkbox-VN2y-Prn.es.js.map} +1 -1
- package/dist/chunks/combobox-Ah0GQqSW.cjs.js +2 -0
- package/dist/chunks/{combobox-BYyNTj5m.cjs.js.map → combobox-Ah0GQqSW.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-qA8TjWPw.es.js → combobox-D_IGHRck.es.js} +18 -19
- package/dist/chunks/{combobox-qA8TjWPw.es.js.map → combobox-D_IGHRck.es.js.map} +1 -1
- package/dist/chunks/{data-table-D7Gq4ZYT.es.js → data-table-BVhKXSXO.es.js} +1606 -1476
- package/dist/chunks/{data-table-D7Gq4ZYT.es.js.map → data-table-BVhKXSXO.es.js.map} +1 -1
- package/dist/chunks/data-table-_iKOsqf2.cjs.js +2 -0
- package/dist/chunks/{data-table-D6qEg2qp.cjs.js.map → data-table-_iKOsqf2.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-BSacD65z.es.js → date-input-BOKez7n5.es.js} +3 -3
- package/dist/chunks/{date-input-BSacD65z.es.js.map → date-input-BOKez7n5.es.js.map} +1 -1
- package/dist/chunks/{date-input-DwxNrZ3r.cjs.js → date-input-C6zs_WLw.cjs.js} +2 -2
- package/dist/chunks/{date-input-DwxNrZ3r.cjs.js.map → date-input-C6zs_WLw.cjs.js.map} +1 -1
- package/dist/chunks/{date-picker-COI-tlHx.es.js → date-picker-Bpi1PgR2.es.js} +9 -9
- package/dist/chunks/{date-picker-COI-tlHx.es.js.map → date-picker-Bpi1PgR2.es.js.map} +1 -1
- package/dist/chunks/{date-picker-RC0pSYZe.cjs.js → date-picker-DNROhe7B.cjs.js} +2 -2
- package/dist/chunks/{date-picker-RC0pSYZe.cjs.js.map → date-picker-DNROhe7B.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BnI3m8z-.es.js → date-range-picker-CXKG84tw.es.js} +9 -9
- package/dist/chunks/{date-range-picker-BnI3m8z-.es.js.map → date-range-picker-CXKG84tw.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js → date-range-picker-tyjYdQx1.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js.map → date-range-picker-tyjYdQx1.cjs.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-BEa9kwlY.es.js → extractStyleProps-DX5GBd9K.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-BEa9kwlY.es.js.map → extractStyleProps-DX5GBd9K.es.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-wjyId_vK.cjs.js → extractStyleProps-yFm0qaXg.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-wjyId_vK.cjs.js.map → extractStyleProps-yFm0qaXg.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-BgKHtyTH.es.js → form-field-DePRnFqm.es.js} +3 -3
- package/dist/chunks/{form-field-BgKHtyTH.es.js.map → form-field-DePRnFqm.es.js.map} +1 -1
- package/dist/chunks/{form-field-B6lCvcf4.cjs.js → form-field-JpzG70WX.cjs.js} +2 -2
- package/dist/chunks/{form-field-B6lCvcf4.cjs.js.map → form-field-JpzG70WX.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-BBkPfAM3.cjs.js → icon-button-CCrfnUUB.cjs.js} +2 -2
- package/dist/chunks/{icon-button-BBkPfAM3.cjs.js.map → icon-button-CCrfnUUB.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-D2qU4Eun.es.js → icon-button-O_dSWgZr.es.js} +2 -2
- package/dist/chunks/{icon-button-D2qU4Eun.es.js.map → icon-button-O_dSWgZr.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-L_kYjNhI.cjs.js → icon-toggle-button-D5Uji9qU.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-L_kYjNhI.cjs.js.map → icon-toggle-button-D5Uji9qU.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-wjYSiFhl.es.js → icon-toggle-button-sFqCJEvI.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-wjYSiFhl.es.js.map → icon-toggle-button-sFqCJEvI.es.js.map} +1 -1
- package/dist/chunks/index-COhQ_99G.cjs.js +4 -0
- package/dist/chunks/index-COhQ_99G.cjs.js.map +1 -0
- package/dist/chunks/{index-BDmBxsjm.es.js → index-DRWeBbu8.es.js} +31 -61
- package/dist/chunks/index-DRWeBbu8.es.js.map +1 -0
- package/dist/chunks/menu-BX993uzm.cjs.js +2 -0
- package/dist/chunks/menu-BX993uzm.cjs.js.map +1 -0
- package/dist/chunks/menu-DbKjf1RS.es.js +157 -0
- package/dist/chunks/menu-DbKjf1RS.es.js.map +1 -0
- package/dist/chunks/{multiline-text-input-MJPDSw2d.es.js → multiline-text-input-BvJxZ-xz.es.js} +2 -2
- package/dist/chunks/{multiline-text-input-MJPDSw2d.es.js.map → multiline-text-input-BvJxZ-xz.es.js.map} +1 -1
- package/dist/chunks/{multiline-text-input-BXpftZg5.cjs.js → multiline-text-input-mIiDJ-o1.cjs.js} +2 -2
- package/dist/chunks/{multiline-text-input-BXpftZg5.cjs.js.map → multiline-text-input-mIiDJ-o1.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DEQVQ5ZH.es.js → nimbus-provider-C68IpiXi.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-DEQVQ5ZH.es.js.map → nimbus-provider-C68IpiXi.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DCCIMVE_.cjs.js → nimbus-provider-Yka95N38.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-DCCIMVE_.cjs.js.map → nimbus-provider-Yka95N38.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-DsQqe_99.cjs.js → number-input-BN6xiOXG.cjs.js} +2 -2
- package/dist/chunks/{number-input-DsQqe_99.cjs.js.map → number-input-BN6xiOXG.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CFa5dE3r.es.js → number-input-DFmXNyz2.es.js} +3 -3
- package/dist/chunks/{number-input-CFa5dE3r.es.js.map → number-input-DFmXNyz2.es.js.map} +1 -1
- package/dist/chunks/{password-input-XSc2MhLG.es.js → password-input-BtbZYHE8.es.js} +4 -4
- package/dist/chunks/{password-input-XSc2MhLG.es.js.map → password-input-BtbZYHE8.es.js.map} +1 -1
- package/dist/chunks/{password-input--fYkZAW3.cjs.js → password-input-CGsQktks.cjs.js} +2 -2
- package/dist/chunks/{password-input--fYkZAW3.cjs.js.map → password-input-CGsQktks.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-DM8YmshZ.es.js → progress-bar-CDRI279T.es.js} +2 -2
- package/dist/chunks/{progress-bar-DM8YmshZ.es.js.map → progress-bar-CDRI279T.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-QjY92GQn.cjs.js → progress-bar-nQCcdv_4.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-QjY92GQn.cjs.js.map → progress-bar-nQCcdv_4.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-DRDeKoG2.es.js → radio-input-CE_kist9.es.js} +3 -3
- package/dist/chunks/{radio-input-DRDeKoG2.es.js.map → radio-input-CE_kist9.es.js.map} +1 -1
- package/dist/chunks/{radio-input-BOjuwflu.cjs.js → radio-input-CWRnpcxm.cjs.js} +2 -2
- package/dist/chunks/{radio-input-BOjuwflu.cjs.js.map → radio-input-CWRnpcxm.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-Cup7ahCy.es.js → range-calendar-BNAIdxfK.es.js} +4 -4
- package/dist/chunks/{range-calendar-Cup7ahCy.es.js.map → range-calendar-BNAIdxfK.es.js.map} +1 -1
- package/dist/chunks/{range-calendar-C_x3yqnL.cjs.js → range-calendar-BW4gqU35.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-C_x3yqnL.cjs.js.map → range-calendar-BW4gqU35.cjs.js.map} +1 -1
- package/dist/chunks/rich-text-input-D3xrDvLR.es.js +691 -0
- package/dist/chunks/rich-text-input-D3xrDvLR.es.js.map +1 -0
- package/dist/chunks/rich-text-input-iDEygf74.cjs.js +2 -0
- package/dist/chunks/rich-text-input-iDEygf74.cjs.js.map +1 -0
- package/dist/chunks/select-DihySN1w.cjs.js +2 -0
- package/dist/chunks/{select-CxIiux8H.cjs.js.map → select-DihySN1w.cjs.js.map} +1 -1
- package/dist/chunks/{select-CMZAeYTf.es.js → select-wby2GRxc.es.js} +27 -28
- package/dist/chunks/{select-CMZAeYTf.es.js.map → select-wby2GRxc.es.js.map} +1 -1
- package/dist/chunks/slate-helpers-BwRHJO4o.es.js +6919 -0
- package/dist/chunks/slate-helpers-BwRHJO4o.es.js.map +1 -0
- package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js +24 -0
- package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js.map +1 -0
- package/dist/chunks/split-button-CcVa5yVH.es.js +103 -0
- package/dist/chunks/split-button-CcVa5yVH.es.js.map +1 -0
- package/dist/chunks/split-button-RydlGh27.cjs.js +2 -0
- package/dist/chunks/split-button-RydlGh27.cjs.js.map +1 -0
- package/dist/chunks/{switch-DUiPm-aC.cjs.js → switch-D3w3xQ7Z.cjs.js} +2 -2
- package/dist/chunks/{switch-DUiPm-aC.cjs.js.map → switch-D3w3xQ7Z.cjs.js.map} +1 -1
- package/dist/chunks/{switch-BOvBbCnU.es.js → switch-DZBU6Cbk.es.js} +3 -3
- package/dist/chunks/{switch-BOvBbCnU.es.js.map → switch-DZBU6Cbk.es.js.map} +1 -1
- package/dist/chunks/{tag-group-wXtwUUis.cjs.js → tag-group-Cwcr_VDp.cjs.js} +2 -2
- package/dist/chunks/{tag-group-wXtwUUis.cjs.js.map → tag-group-Cwcr_VDp.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-C_oBSbrz.es.js → tag-group-DQ0jVbpR.es.js} +2 -2
- package/dist/chunks/{tag-group-C_oBSbrz.es.js.map → tag-group-DQ0jVbpR.es.js.map} +1 -1
- package/dist/chunks/{text-input-B7XCw3SS.es.js → text-input-DlNFZk9-.es.js} +3 -3
- package/dist/chunks/{text-input-B7XCw3SS.es.js.map → text-input-DlNFZk9-.es.js.map} +1 -1
- package/dist/chunks/{text-input-CCX8LUl1.cjs.js → text-input-i2bZeQZZ.cjs.js} +2 -2
- package/dist/chunks/{text-input-CCX8LUl1.cjs.js.map → text-input-i2bZeQZZ.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-DiFCm9qO.es.js → time-input-BORpKwS7.es.js} +2 -2
- package/dist/chunks/{time-input-DiFCm9qO.es.js.map → time-input-BORpKwS7.es.js.map} +1 -1
- package/dist/chunks/{time-input-DQaDOtuT.cjs.js → time-input-Cc8RFGmz.cjs.js} +2 -2
- package/dist/chunks/{time-input-DQaDOtuT.cjs.js.map → time-input-Cc8RFGmz.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-BpG_UgsK.es.js → toggle-button-C7BBLnfL.es.js} +9 -9
- package/dist/chunks/{toggle-button-BpG_UgsK.es.js.map → toggle-button-C7BBLnfL.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C9XUBlNB.cjs.js → toggle-button-DZpRqlmW.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-C9XUBlNB.cjs.js.map → toggle-button-DZpRqlmW.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-D2CqoZzL.es.js → toolbar-CD5Nrn7W.es.js} +3 -3
- package/dist/chunks/{toolbar-D2CqoZzL.es.js.map → toolbar-CD5Nrn7W.es.js.map} +1 -1
- package/dist/chunks/{toolbar-BxIQI626.cjs.js → toolbar-Dbq_EngE.cjs.js} +2 -2
- package/dist/chunks/{toolbar-BxIQI626.cjs.js.map → toolbar-Dbq_EngE.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-BLyAAnK-.es.js → tooltip-BOK0Uejw.es.js} +2 -2
- package/dist/chunks/{tooltip-BLyAAnK-.es.js.map → tooltip-BOK0Uejw.es.js.map} +1 -1
- package/dist/chunks/{tooltip-tZKuAv4E.cjs.js → tooltip-DjUjwciC.cjs.js} +2 -2
- package/dist/chunks/{tooltip-tZKuAv4E.cjs.js.map → tooltip-DjUjwciC.cjs.js.map} +1 -1
- package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js +2 -0
- package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js.map +1 -0
- package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js +247 -0
- package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js.map +1 -0
- package/dist/code.d.ts +9 -0
- package/dist/combobox.d.ts +9 -0
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +90 -87
- package/dist/components/components.es.js.map +1 -1
- package/dist/components/constants.cjs +2 -0
- package/dist/components/constants.cjs.map +1 -0
- package/dist/components/constants.es.js +125 -0
- package/dist/components/constants.es.js.map +1 -0
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/hooks.cjs +2 -0
- package/dist/components/hooks.cjs.map +1 -0
- package/dist/components/hooks.es.js +8 -0
- package/dist/components/hooks.es.js.map +1 -0
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +2 -0
- package/dist/components/rich-text-input.cjs.map +1 -0
- package/dist/components/rich-text-input.es.js +5 -0
- package/dist/components/rich-text-input.es.js.map +1 -0
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components/utils.cjs +2 -0
- package/dist/components/utils.cjs.map +1 -0
- package/dist/components/utils.es.js +76 -0
- package/dist/components/utils.es.js.map +1 -0
- package/dist/components.d.ts +81 -1
- package/dist/constants.d.ts +129 -0
- package/dist/data-table.d.ts +15 -0
- package/dist/date-input.d.ts +9 -0
- package/dist/date-picker.d.ts +9 -0
- package/dist/date-range-picker.d.ts +9 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/divider.d.ts +9 -0
- package/dist/flex.d.ts +9 -0
- package/dist/form-field.d.ts +9 -0
- package/dist/grid.d.ts +9 -0
- package/dist/group.d.ts +9 -0
- package/dist/heading.d.ts +9 -0
- package/dist/hooks.d.ts +60 -0
- package/dist/icon-button.d.ts +9 -0
- package/dist/icon-toggle-button.d.ts +9 -0
- package/dist/icon.d.ts +9 -0
- package/dist/image.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +120 -58
- package/dist/index.es.js +193 -192
- package/dist/kbd.d.ts +9 -0
- package/dist/link.d.ts +9 -0
- package/dist/list.d.ts +9 -0
- package/dist/loading-spinner.d.ts +9 -0
- package/dist/multiline-text-input.d.ts +9 -0
- package/dist/nimbus-provider.d.ts +9 -0
- package/dist/number-input.d.ts +9 -0
- package/dist/password-input.d.ts +9 -0
- package/dist/popover.d.ts +9 -0
- package/dist/progress-bar.d.ts +9 -0
- package/dist/radio-input.d.ts +9 -0
- package/dist/range-calendar.d.ts +9 -0
- package/dist/rich-text-input.d.ts +79 -0
- package/dist/select.d.ts +9 -0
- package/dist/setup-jsdom-polyfills.d.ts +9 -0
- package/dist/simple-grid.d.ts +9 -0
- package/dist/split-button.d.ts +9 -0
- package/dist/stack.d.ts +9 -0
- package/dist/switch.d.ts +9 -0
- package/dist/table.d.ts +9 -0
- package/dist/tag-group.d.ts +9 -0
- package/dist/text-input.d.ts +9 -0
- package/dist/text.d.ts +9 -0
- package/dist/time-input.d.ts +9 -0
- package/dist/toggle-button-group.d.ts +9 -0
- package/dist/toggle-button.d.ts +9 -0
- package/dist/toolbar.d.ts +13 -1
- package/dist/tooltip.d.ts +9 -0
- package/dist/utils.d.ts +164 -0
- package/dist/visually-hidden.d.ts +9 -0
- package/package.json +16 -8
- package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
- package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
- package/dist/chunks/combobox-BYyNTj5m.cjs.js +0 -2
- package/dist/chunks/data-table-D6qEg2qp.cjs.js +0 -2
- package/dist/chunks/index-BDmBxsjm.es.js.map +0 -1
- package/dist/chunks/index-XyB4gGC8.cjs.js +0 -4
- package/dist/chunks/index-XyB4gGC8.cjs.js.map +0 -1
- package/dist/chunks/select-CxIiux8H.cjs.js +0 -2
- package/dist/chunks/split-button-BZHi7r1E.es.js +0 -262
- package/dist/chunks/split-button-BZHi7r1E.es.js.map +0 -1
- package/dist/chunks/split-button-hRYYvfbx.cjs.js +0 -2
- package/dist/chunks/split-button-hRYYvfbx.cjs.js.map +0 -1
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { FocusEventHandler } from 'react';
|
|
2
|
+
import { HTMLChakraProps } from '@chakra-ui/react';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import { RecipeVariantProps } from '@chakra-ui/react';
|
|
5
|
+
import { Ref } from 'react';
|
|
6
|
+
import { SlotRecipeDefinition } from '@chakra-ui/react';
|
|
7
|
+
import { UnstyledProp } from '@chakra-ui/react';
|
|
8
|
+
|
|
9
|
+
declare type DefaultExcludedProps = "css" | "asChild" | "as" | "onChange";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
RichTextInput - A rich text input component with formatting capabilities.
|
|
13
|
+
*/
|
|
14
|
+
export declare const RichTextInput: {
|
|
15
|
+
(props: RichTextInputProps): JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare interface RichTextInputProps extends Omit<RichTextInputRootSlotProps, DefaultExcludedProps | "children"> {
|
|
20
|
+
/**
|
|
21
|
+
* The ref for the rich text input component
|
|
22
|
+
*/
|
|
23
|
+
ref?: Ref<HTMLDivElement>;
|
|
24
|
+
/**
|
|
25
|
+
* The HTML value of the rich text input
|
|
26
|
+
*/
|
|
27
|
+
value?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The default HTML value of the rich text input (uncontrolled)
|
|
30
|
+
*/
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Called when the value changes
|
|
34
|
+
*/
|
|
35
|
+
onChange?: (value: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Called when the input is focused
|
|
38
|
+
*/
|
|
39
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
40
|
+
/**
|
|
41
|
+
* Called when the input is blurred
|
|
42
|
+
*/
|
|
43
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
44
|
+
/**
|
|
45
|
+
* Placeholder text to show when the editor is empty
|
|
46
|
+
*/
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the input is disabled
|
|
50
|
+
*/
|
|
51
|
+
isDisabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the input is read-only
|
|
54
|
+
*/
|
|
55
|
+
isReadOnly?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the input is in an invalid state
|
|
58
|
+
*/
|
|
59
|
+
isInvalid?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to focus the input when it mounts
|
|
62
|
+
*/
|
|
63
|
+
autoFocus?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const richTextInputRecipe: SlotRecipeDefinition<"toolbar" | "root" | "editable", {}>;
|
|
67
|
+
|
|
68
|
+
declare type RichTextInputRootSlotProps = HTMLChakraProps<"div", RecipeVariantProps<typeof richTextInputRecipe> & UnstyledProp>;
|
|
69
|
+
|
|
70
|
+
export { }
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
declare module "slate" {
|
|
74
|
+
interface CustomTypes {
|
|
75
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
76
|
+
Element: CustomElement;
|
|
77
|
+
Text: CustomText;
|
|
78
|
+
}
|
|
79
|
+
}
|
package/dist/select.d.ts
CHANGED
package/dist/simple-grid.d.ts
CHANGED
|
@@ -24,3 +24,12 @@ export declare interface SimpleGridProps extends SimpleGridProps_2 {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export { }
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
declare module "slate" {
|
|
30
|
+
interface CustomTypes {
|
|
31
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
32
|
+
Element: CustomElement;
|
|
33
|
+
Text: CustomText;
|
|
34
|
+
}
|
|
35
|
+
}
|
package/dist/split-button.d.ts
CHANGED
|
@@ -65,3 +65,12 @@ export declare interface SplitButtonProps extends Omit<MenuTriggerProps, "trigge
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export { }
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
declare module "slate" {
|
|
71
|
+
interface CustomTypes {
|
|
72
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
73
|
+
Element: CustomElement;
|
|
74
|
+
Text: CustomText;
|
|
75
|
+
}
|
|
76
|
+
}
|
package/dist/stack.d.ts
CHANGED
package/dist/switch.d.ts
CHANGED
package/dist/table.d.ts
CHANGED
package/dist/tag-group.d.ts
CHANGED
|
@@ -97,3 +97,12 @@ export declare type TagGroupTagProps = TagProps & Omit<TagGroupTagSlotProps, key
|
|
|
97
97
|
declare type TagGroupTagSlotProps = HTMLChakraProps<"div", RecipeProps<"div">>;
|
|
98
98
|
|
|
99
99
|
export { }
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
declare module "slate" {
|
|
103
|
+
interface CustomTypes {
|
|
104
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
105
|
+
Element: CustomElement;
|
|
106
|
+
Text: CustomText;
|
|
107
|
+
}
|
|
108
|
+
}
|
package/dist/text-input.d.ts
CHANGED
|
@@ -61,3 +61,12 @@ declare interface TextInputRecipeProps extends RecipeVariantProps<typeof textInp
|
|
|
61
61
|
declare type TextInputRootSlotProps = HTMLChakraProps<"input", TextInputRecipeProps>;
|
|
62
62
|
|
|
63
63
|
export { }
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
declare module "slate" {
|
|
67
|
+
interface CustomTypes {
|
|
68
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
69
|
+
Element: CustomElement;
|
|
70
|
+
Text: CustomText;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/dist/text.d.ts
CHANGED
|
@@ -20,3 +20,12 @@ export declare interface TextProps extends Omit<TextProps_2, "slot"> {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export { }
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
declare module "slate" {
|
|
26
|
+
interface CustomTypes {
|
|
27
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
28
|
+
Element: CustomElement;
|
|
29
|
+
Text: CustomText;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/dist/time-input.d.ts
CHANGED
|
@@ -100,3 +100,12 @@ declare interface TimeInputRootProps extends HTMLChakraProps<"div", TimeInputRec
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export { }
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
declare module "slate" {
|
|
106
|
+
interface CustomTypes {
|
|
107
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
108
|
+
Element: CustomElement;
|
|
109
|
+
Text: CustomText;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -112,3 +112,12 @@ declare type ToggleButtonGroupRootProps = ToggleButtonGroupRootSlotProps & AriaT
|
|
|
112
112
|
declare type ToggleButtonGroupRootSlotProps = HTMLChakraProps<"div", RecipeProps<"div">>;
|
|
113
113
|
|
|
114
114
|
export { }
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
declare module "slate" {
|
|
118
|
+
interface CustomTypes {
|
|
119
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
120
|
+
Element: CustomElement;
|
|
121
|
+
Text: CustomText;
|
|
122
|
+
}
|
|
123
|
+
}
|
package/dist/toggle-button.d.ts
CHANGED
|
@@ -142,3 +142,12 @@ declare interface ToggleButtonRecipeProps extends RecipeVariantProps<typeof togg
|
|
|
142
142
|
declare type ToggleButtonRootProps = HTMLChakraProps<"button", ToggleButtonRecipeProps>;
|
|
143
143
|
|
|
144
144
|
export { }
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
declare module "slate" {
|
|
148
|
+
interface CustomTypes {
|
|
149
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
150
|
+
Element: CustomElement;
|
|
151
|
+
Text: CustomText;
|
|
152
|
+
}
|
|
153
|
+
}
|
package/dist/toolbar.d.ts
CHANGED
|
@@ -37,22 +37,25 @@ declare const toolbarRecipe: RecipeDefinition< {
|
|
|
37
37
|
size: {
|
|
38
38
|
xs: {
|
|
39
39
|
"--toolbar-spacing": "{spacing.100}";
|
|
40
|
+
"--divider-size": "{sizes.600}";
|
|
40
41
|
};
|
|
41
42
|
md: {
|
|
42
43
|
"--toolbar-spacing": "{spacing.200}";
|
|
44
|
+
"--divider-size": "{sizes.800}";
|
|
43
45
|
};
|
|
44
46
|
};
|
|
45
47
|
orientation: {
|
|
46
48
|
horizontal: {
|
|
47
49
|
"--toolbar-direction": "row";
|
|
48
50
|
"& .nimbus-divider": {
|
|
49
|
-
height: "
|
|
51
|
+
height: "var(--divider-size)";
|
|
50
52
|
mx: "var(--toolbar-spacing)";
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
55
|
vertical: {
|
|
54
56
|
"--toolbar-direction": "column";
|
|
55
57
|
"& .nimbus-divider": {
|
|
58
|
+
width: "var(--divider-size)";
|
|
56
59
|
my: "var(--toolbar-spacing)";
|
|
57
60
|
};
|
|
58
61
|
};
|
|
@@ -82,3 +85,12 @@ declare interface ToolbarSlotProps extends Omit<HTMLChakraProps<"div", ToolbarRe
|
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
export { }
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
declare module "slate" {
|
|
91
|
+
interface CustomTypes {
|
|
92
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
93
|
+
Element: CustomElement;
|
|
94
|
+
Text: CustomText;
|
|
95
|
+
}
|
|
96
|
+
}
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -130,3 +130,12 @@ declare interface TooltipRootProps extends HTMLChakraProps<"div", TooltipRecipeP
|
|
|
130
130
|
declare type TooltipVariantProps = ExcludePolymorphicFromProps<TooltipRootProps & RecipeVariantProps<typeof tooltipRecipe> & TooltipProps_2>;
|
|
131
131
|
|
|
132
132
|
export { }
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
declare module "slate" {
|
|
136
|
+
interface CustomTypes {
|
|
137
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
138
|
+
Element: CustomElement;
|
|
139
|
+
Text: CustomText;
|
|
140
|
+
}
|
|
141
|
+
}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { BaseText } from 'slate';
|
|
2
|
+
import { Descendant } from 'slate';
|
|
3
|
+
import { Editor } from 'slate';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
|
+
import { RenderElementProps } from 'slate-react';
|
|
6
|
+
import { RenderLeafProps } from 'slate-react';
|
|
7
|
+
|
|
8
|
+
declare const BLOCK_TAGS: {
|
|
9
|
+
readonly blockquote: "block-quote";
|
|
10
|
+
readonly p: "paragraph";
|
|
11
|
+
readonly pre: "code";
|
|
12
|
+
readonly h1: "heading-one";
|
|
13
|
+
readonly h2: "heading-two";
|
|
14
|
+
readonly h3: "heading-three";
|
|
15
|
+
readonly h4: "heading-four";
|
|
16
|
+
readonly h5: "heading-five";
|
|
17
|
+
readonly ul: "bulleted-list";
|
|
18
|
+
readonly ol: "numbered-list";
|
|
19
|
+
readonly li: "list-item";
|
|
20
|
+
readonly a: "link";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
declare type BlockType = (typeof blockTypes)[number] | "paragraph";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Available block types for text style detection
|
|
27
|
+
*
|
|
28
|
+
* Used by:
|
|
29
|
+
* - hooks/useToolbarState.ts: Detects currently active block type in editor
|
|
30
|
+
* - Excludes "paragraph" as it's the default/fallback type
|
|
31
|
+
*/
|
|
32
|
+
declare const blockTypes: readonly ["heading-one", "heading-two", "heading-three", "heading-four", "heading-five", "block-quote"];
|
|
33
|
+
|
|
34
|
+
export declare const createEmptyValue: () => Descendant[];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Creates a block type from heading level
|
|
38
|
+
*/
|
|
39
|
+
export declare function createHeadingBlockType(level: number): BlockType | null;
|
|
40
|
+
|
|
41
|
+
export declare interface CustomElement {
|
|
42
|
+
type: ElementFormat;
|
|
43
|
+
children: Descendant[];
|
|
44
|
+
align?: string;
|
|
45
|
+
url?: string;
|
|
46
|
+
htmlAttributes?: Record<string, string>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare interface CustomText extends BaseText {
|
|
50
|
+
bold?: boolean;
|
|
51
|
+
code?: boolean;
|
|
52
|
+
italic?: boolean;
|
|
53
|
+
underline?: boolean;
|
|
54
|
+
superscript?: boolean;
|
|
55
|
+
subscript?: boolean;
|
|
56
|
+
strikethrough?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const Element_2: ({ attributes, children, element, }: RenderElementProps) => ReactElement;
|
|
60
|
+
export { Element_2 as Element }
|
|
61
|
+
|
|
62
|
+
export declare type ElementFormat = (typeof BLOCK_TAGS)[keyof typeof BLOCK_TAGS];
|
|
63
|
+
|
|
64
|
+
export declare const focusEditor: (editor: Editor) => void;
|
|
65
|
+
|
|
66
|
+
export declare const fromHTML: (html: string) => Descendant[];
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Gets the heading level from a heading block type (1-6)
|
|
70
|
+
*/
|
|
71
|
+
export declare function getHeadingLevel(blockType: string): number | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Gets a text style definition by its ID
|
|
75
|
+
*/
|
|
76
|
+
export declare function getTextStyleById(styleId: string): TextStyleDefinition | undefined;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Gets all available text style IDs
|
|
80
|
+
*/
|
|
81
|
+
export declare function getTextStyleIds(): string[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Gets the display label for a text style ID
|
|
85
|
+
*/
|
|
86
|
+
export declare function getTextStyleLabel(styleId: string): string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Gets the text style properties for rendering
|
|
90
|
+
*/
|
|
91
|
+
export declare function getTextStyleProps(styleId: string): TextStyleDefinition["props"] | null;
|
|
92
|
+
|
|
93
|
+
export declare const isBlockActive: (editor: Editor, format: ElementFormat) => boolean;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Checks if a rich text HTML value is empty or contains no meaningful content
|
|
97
|
+
*/
|
|
98
|
+
export declare const isEmpty: (value: string) => boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Determines if a block type is a heading
|
|
102
|
+
*/
|
|
103
|
+
export declare function isHeadingType(blockType: string): boolean;
|
|
104
|
+
|
|
105
|
+
export declare const isMarkActive: (editor: Editor, format: string) => boolean;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Checks if a style ID is a valid text style
|
|
109
|
+
*/
|
|
110
|
+
export declare function isValidTextStyle(styleId: string): boolean;
|
|
111
|
+
|
|
112
|
+
export declare const Leaf: ({ attributes, children, leaf, }: RenderLeafProps) => ReactElement;
|
|
113
|
+
|
|
114
|
+
export declare const resetEditor: (editor: Editor, value: string) => void;
|
|
115
|
+
|
|
116
|
+
export declare const Softbreaker: {
|
|
117
|
+
placeholderCharacter: string;
|
|
118
|
+
serialize: (string: string) => string;
|
|
119
|
+
deserialize: (string: string) => string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Text style definitions for rich text editor block formatting
|
|
124
|
+
*
|
|
125
|
+
* Used by:
|
|
126
|
+
* - components/rich-text-toolbar.tsx: Renders text style dropdown menu with these options
|
|
127
|
+
* - hooks/useToolbarState.ts: Manages current text style state and selection logic
|
|
128
|
+
* - utils/text-style-utils.ts: Helper functions for text style operations
|
|
129
|
+
* - utils/validation-utils.ts: Validates if block types are supported
|
|
130
|
+
*
|
|
131
|
+
* Purpose:
|
|
132
|
+
* - Centralizes all available text styles and their visual properties
|
|
133
|
+
* - Maps block type IDs to user-friendly labels and Chakra UI styling props
|
|
134
|
+
* - Ensures consistent styling across the editor and UI controls
|
|
135
|
+
*/
|
|
136
|
+
declare interface TextStyleDefinition {
|
|
137
|
+
id: string;
|
|
138
|
+
label: string;
|
|
139
|
+
props: {
|
|
140
|
+
textStyle: string;
|
|
141
|
+
fontWeight: string;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export declare const toggleBlock: (editor: Editor, format: ElementFormat) => void;
|
|
146
|
+
|
|
147
|
+
export declare const toggleMark: (editor: Editor, format: string) => void;
|
|
148
|
+
|
|
149
|
+
export declare const toHTML: (value: Descendant[]) => string;
|
|
150
|
+
|
|
151
|
+
export declare const validSlateStateAdapter: (value: unknown) => Descendant[];
|
|
152
|
+
|
|
153
|
+
export declare const withLinks: (editor: Editor) => Editor;
|
|
154
|
+
|
|
155
|
+
export { }
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
declare module "slate" {
|
|
159
|
+
interface CustomTypes {
|
|
160
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
161
|
+
Element: CustomElement;
|
|
162
|
+
Text: CustomText;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -20,3 +20,12 @@ export declare interface VisuallyHiddenProps extends Omit<VisuallyHiddenProps_2,
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export { }
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
declare module "slate" {
|
|
26
|
+
interface CustomTypes {
|
|
27
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
28
|
+
Element: CustomElement;
|
|
29
|
+
Text: CustomText;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/nimbus",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250826164027",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -49,12 +49,18 @@
|
|
|
49
49
|
"@chakra-ui/react": "^3.25.0",
|
|
50
50
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
51
51
|
"@react-aria/interactions": "3.25.4",
|
|
52
|
+
"escape-html": "^1.0.3",
|
|
53
|
+
"is-hotkey": "^0.2.0",
|
|
52
54
|
"next-themes": "^0.4.6",
|
|
53
55
|
"react-aria": "3.42.0",
|
|
54
56
|
"react-aria-components": "1.11.0",
|
|
55
57
|
"react-hotkeys-hook": "^4.6.1",
|
|
56
58
|
"react-stately": "3.40.0",
|
|
57
|
-
"react-use": "^17.5.1"
|
|
59
|
+
"react-use": "^17.5.1",
|
|
60
|
+
"slate": "^0.75.0",
|
|
61
|
+
"slate-history": "^0.113.1",
|
|
62
|
+
"slate-hyperscript": "^0.77.0",
|
|
63
|
+
"slate-react": "^0.75.0"
|
|
58
64
|
},
|
|
59
65
|
"devDependencies": {
|
|
60
66
|
"@chakra-ui/cli": "^3.25.0",
|
|
@@ -66,6 +72,8 @@
|
|
|
66
72
|
"@storybook/react-vite": "^9.0.18",
|
|
67
73
|
"@testing-library/react": "^16.3.0",
|
|
68
74
|
"@testing-library/user-event": "^14.6.1",
|
|
75
|
+
"@types/escape-html": "^1.0.4",
|
|
76
|
+
"@types/is-hotkey": "^0.1.10",
|
|
69
77
|
"@types/react": "^19.1.8",
|
|
70
78
|
"@types/react-dom": "^19.1.6",
|
|
71
79
|
"@vitejs/plugin-react": "^4.4.1",
|
|
@@ -84,24 +92,24 @@
|
|
|
84
92
|
"vite-plugin-dts": "^4.5.4",
|
|
85
93
|
"vite-tsconfig-paths": "^5.1.4",
|
|
86
94
|
"vitest": "^3.2.4",
|
|
87
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
88
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
95
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250826164027",
|
|
96
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250826164027"
|
|
89
97
|
},
|
|
90
98
|
"peerDependencies": {
|
|
91
99
|
"@chakra-ui/react": "^3.25.0",
|
|
92
100
|
"react": "^19.0.0",
|
|
93
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
94
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
101
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20250826164027",
|
|
102
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20250826164027"
|
|
95
103
|
},
|
|
96
104
|
"scripts": {
|
|
97
105
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|
|
98
106
|
"build:lib": "vite build",
|
|
99
107
|
"dev": "vite build --watch",
|
|
100
108
|
"test": "vitest",
|
|
109
|
+
"typecheck": "tsc --noEmit",
|
|
101
110
|
"build-theme-typings": "pnpm chakra typegen ./src/theme/index.ts",
|
|
102
111
|
"bundles:analyze": "ANALYZE_BUNDLE=true vite build",
|
|
103
112
|
"storybook": "storybook dev -p 6006",
|
|
104
|
-
"build-storybook": "storybook build"
|
|
105
|
-
"typecheck": "tsc --noEmit"
|
|
113
|
+
"build-storybook": "storybook build"
|
|
106
114
|
}
|
|
107
115
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const ae=require("./Button-DQ_WkLNH.cjs.js"),ue=require("./Heading-CQJ-3eon.cjs.js"),E=require("./utils-BHdR5Nww.cjs.js"),f=require("./DateField-D-KvZd-Q.cjs.js"),H=require("./Dialog-B4OIDU7t.cjs.js"),se=require("./FieldError-DyGFfqST.cjs.js"),ce=require("./Form-BuOomA4T.cjs.js"),le=require("./Group-KVM7Xnxu.cjs.js"),te=require("./Label-BgrYyYXn.cjs.js"),ie=require("./Text-BWSfeB9p.cjs.js"),L=require("./mergeProps-BA5Cwf5w.cjs.js"),X=require("./filterDOMProps-WUskt27c.cjs.js"),fe=require("./useResizeObserver-Dx-vDLiW.cjs.js"),o=require("react"),W=require("./useDateFormatter-G9oGkNG5.cjs.js"),k=require("./useFormValidation-DJy_cdgv.cjs.js"),$e=require("./OverlayArrow-aq8OInch.cjs.js"),be=require("./useControlledState-D0L6S_5r.cjs.js"),ve=require("./FocusScope-B78iFLeF.cjs.js"),me=require("./scrollIntoView-BzIqpHLO.cjs.js"),xe=require("./useFocusWithin-i-cVKYQ8.cjs.js"),ge=require("./useField-DmqO9k7a.cjs.js"),he=require("./context-D0_cRaDZ.cjs.js"),Ve=require("./useLocalizedStringFormatter-fJnbqb2x.cjs.js"),ye=require("./useFocusRing-DRIoF592.cjs.js");function Ce(e){return e&&e.__esModule?e.default:e}function Oe(e,a,r){let D=L.$bdb11010cef70236$export$f680877a34711e37(),m=L.$bdb11010cef70236$export$f680877a34711e37(),x=L.$bdb11010cef70236$export$f680877a34711e37(),v=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ce(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:t,validationErrors:u,validationDetails:l}=a.displayValidation,{labelProps:R,fieldProps:C,descriptionProps:g,errorMessageProps:I}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:t,errorMessage:e.errorMessage||u}),O=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,r),M=C["aria-labelledby"]||C.id,{locale:T}=he.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=a.formatValue(T,{month:"long"}),B=c?v.format("selectedDateDescription",{date:c}):"",i=me.$ef06256079686ba0$export$f8aeda7b10753fa1(B),Z=[i["aria-describedby"],C["aria-describedby"]].filter(Boolean).join(" ")||void 0,q=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),S=o.useMemo(()=>ve.$9bf71ea28793e738$export$c5251b9e124bf29(r),[r]),y=o.useRef(!1),{focusWithinProps:w}=xe.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:$=>{let h=document.getElementById(m);if(!h?.contains($.relatedTarget)){var P,p;y.current=!1,(P=e.onBlur)===null||P===void 0||P.call(e,$),(p=e.onFocusChange)===null||p===void 0||p.call(e,!1)}},onFocusWithin:$=>{if(!y.current){var h,P;y.current=!0,(h=e.onFocus)===null||h===void 0||h.call(e,$),(P=e.onFocusChange)===null||P===void 0||P.call(e,!0)}}});return{groupProps:L.$3ef42575df84b30b$export$9d1611c77c2fe928(q,O,C,i,w,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":M,"aria-describedby":Z,onKeyDown($){a.isOpen||e.onKeyDown&&e.onKeyDown($)},onKeyUp($){a.isOpen||e.onKeyUp&&e.onKeyUp($)}}),labelProps:{...R,onClick:()=>{S.focusFirst()}},fieldProps:{...C,id:x,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":Z,value:a.value,defaultValue:a.defaultValue,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[k.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:I,buttonProps:{...i,id:D,"aria-haspopup":"dialog","aria-label":v.format("calendar"),"aria-labelledby":`${D} ${M}`,"aria-describedby":Z,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:m,"aria-labelledby":`${D} ${M}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:t,validationErrors:u,validationDetails:l}}function Te(e){return e&&e.__esModule?e.default:e}function Ze(e,a,r){var D,m,x,v,t;let u=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Te(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:l,validationErrors:R,validationDetails:C}=a.displayValidation,{labelProps:g,fieldProps:I,descriptionProps:O,errorMessageProps:M}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||R}),T=I["aria-labelledby"]||I.id,{locale:c}=he.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),B=a.formatValue(c,{month:"long"}),i=B?u.format("selectedRangeDescription",{startDate:B.start,endDate:B.end}):"",Z=me.$ef06256079686ba0$export$f8aeda7b10753fa1(i),q={"aria-label":u.format("startDate"),"aria-labelledby":T},S={"aria-label":u.format("endDate"),"aria-labelledby":T},y=L.$bdb11010cef70236$export$f680877a34711e37(),w=L.$bdb11010cef70236$export$f680877a34711e37(),$=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,r),h=[Z["aria-describedby"],I["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=o.useMemo(()=>ve.$9bf71ea28793e738$export$c5251b9e124bf29(r,{accept:d=>d.id!==y}),[r,y]),p={[f.$16f0b7bb276bc17e$export$7b3062cd49e80452]:P,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":h,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},V=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),F=o.useRef(!1),{focusWithinProps:K}=xe.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:d=>{let b=document.getElementById(w);if(!b?.contains(d.relatedTarget)){var _,A;F.current=!1,(_=e.onBlur)===null||_===void 0||_.call(e,d),(A=e.onFocusChange)===null||A===void 0||A.call(e,!1)}},onFocusWithin:d=>{if(!F.current){var b,_;F.current=!0,(b=e.onFocus)===null||b===void 0||b.call(e,d),(_=e.onFocusChange)===null||_===void 0||_.call(e,!0)}}}),N=o.useRef(k.$e5be200c675c3b3a$export$dad6ae84456c676a),j=o.useRef(k.$e5be200c675c3b3a$export$dad6ae84456c676a);var n,s;return{groupProps:L.$3ef42575df84b30b$export$9d1611c77c2fe928(V,$,I,Z,K,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":h,onKeyDown(d){a.isOpen||e.onKeyDown&&e.onKeyDown(d)},onKeyUp(d){a.isOpen||e.onKeyUp&&e.onKeyUp(d)}}),labelProps:{...g,onClick:()=>{P.focusFirst()}},buttonProps:{...Z,id:y,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${y} ${T}`,"aria-describedby":h,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${y} ${T}`},startFieldProps:{...q,...p,value:(n=(D=a.value)===null||D===void 0?void 0:D.start)!==null&&n!==void 0?n:null,defaultValue:(m=a.defaultValue)===null||m===void 0?void 0:m.start,onChange:d=>a.setDateTime("start",d),autoFocus:e.autoFocus,name:e.startName,form:e.form,[k.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(d){N.current=d,a.updateValidation(k.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(d,j.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...S,...p,value:(s=(x=a.value)===null||x===void 0?void 0:x.end)!==null&&s!==void 0?s:null,defaultValue:(v=a.defaultValue)===null||v===void 0?void 0:v.end,onChange:d=>a.setDateTime("end",d),name:e.endName,form:e.form,[k.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(d){j.current=d,a.updateValidation(k.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(N.current,d))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:O,errorMessageProps:M,calendarProps:{autoFocus:!0,value:!((t=a.dateRange)===null||t===void 0)&&t.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:R,validationDetails:C}}function Ie(e){let a=$e.$fc909762b330b746$export$61c6a8c84e605fb6(e),[r,D]=be.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[m]=o.useState(r),x=r||e.placeholderValue||null,[v,t]=f.$35a22f14a1f04b11$export$2440da353cedad43(x,e.granularity),u=r!=null?r.toDate(t??"UTC"):null,l=v==="hour"||v==="minute"||v==="second";var R;let C=(R=e.shouldCloseOnSelect)!==null&&R!==void 0?R:!0,[g,I]=o.useState(null),[O,M]=o.useState(null);if(r&&(g=r,"hour"in r&&(O=r)),x&&!(v in x))throw new Error("Invalid granularity "+v+" for value "+x.toString());let T=r?.calendar.identifier==="gregory"&&r.era==="BC",c=o.useMemo(()=>({granularity:v,timeZone:t,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[v,e.hourCycle,e.shouldForceLeadingZeros,t,e.hideTimeZone,T]),{minValue:B,maxValue:i,isDateUnavailable:Z}=e,q=o.useMemo(()=>f.$35a22f14a1f04b11$export$f18627323ab57ac0(r,B,i,Z,c),[r,B,i,Z,c]),S=k.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:r,builtinValidation:q}),y=S.displayValidation.isInvalid,w=e.validationState||(y?"invalid":null),$=(V,F)=>{D("timeZone"in F?F.set(W.$11d87f3f76e88657$export$93522d1a439f3617(V)):W.$11d87f3f76e88657$export$b21e0b124e224484(V,F)),I(null),M(null),S.commitValidation()},h=V=>{let F=typeof C=="function"?C():C;l?O||F?$(V,O||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):I(V):(D(V),S.commitValidation()),F&&a.setOpen(!1)},P=V=>{g&&V?$(g,V):M(V)};var p;return{...S,value:r,defaultValue:(p=e.defaultValue)!==null&&p!==void 0?p:m,setValue:D,dateValue:g,timeValue:O,setDateValue:h,setTimeValue:P,granularity:v,hasTime:l,...a,setOpen(V){!V&&!r&&g&&l&&$(g,O||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(V)},validationState:w,isInvalid:y,formatValue(V,F){if(!u)return"";let K=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(F,c);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(V,K).format(u)},getDateFormatter(V,F){let K={...c,...F},N=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},K);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(V,N)}}}function Me(e){var a,r;let D=$e.$fc909762b330b746$export$61c6a8c84e605fb6(e),[m,x]=be.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[v]=o.useState(m),[t,u]=o.useState(()=>m||{start:null,end:null});m==null&&t.start&&t.end&&(t={start:null,end:null},u(t));let l=m||t,R=n=>{l=n||{start:null,end:null},u(l),G(l)?x(l):x(null)},C=l?.start||l?.end||e.placeholderValue||null,[g,I]=f.$35a22f14a1f04b11$export$2440da353cedad43(C,e.granularity),O=g==="hour"||g==="minute"||g==="second";var M;let T=(M=e.shouldCloseOnSelect)!==null&&M!==void 0?M:!0,[c,B]=o.useState(null),[i,Z]=o.useState(null);l&&G(l)&&(c=l,"hour"in l.start&&(i=l));let q=(n,s)=>{R({start:"timeZone"in s.start?s.start.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.start)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.start,s.start),end:"timeZone"in s.end?s.end.set(W.$11d87f3f76e88657$export$93522d1a439f3617(n.end)):W.$11d87f3f76e88657$export$b21e0b124e224484(n.end,s.end)}),B(null),Z(null),F.commitValidation()},S=n=>{let s=typeof T=="function"?T():T;O?G(n)&&(s||i?.start&&i?.end)?q(n,{start:i?.start||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:i?.end||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}):B(n):G(n)?(R(n),F.commitValidation()):B(n),s&&D.setOpen(!1)},y=n=>{G(c)&&G(n)?q(c,n):Z(n)},w=(l==null||(a=l.start)===null||a===void 0?void 0:a.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(r=l.end)===null||r===void 0?void 0:r.calendar.identifier)==="gregory"&&l.end.era==="BC",$=o.useMemo(()=>({granularity:g,timeZone:I,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[g,e.hourCycle,e.shouldForceLeadingZeros,I,e.hideTimeZone,w]),{minValue:h,maxValue:P,isDateUnavailable:p}=e,V=o.useMemo(()=>f.$35a22f14a1f04b11$export$80ff8fc0ae339c13(l,h,P,p,$),[l,h,P,p,$]),F=k.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:m,name:o.useMemo(()=>[e.startName,e.endName].filter(n=>n!=null),[e.startName,e.endName]),builtinValidation:V}),K=F.displayValidation.isInvalid,N=e.validationState||(K?"invalid":null);var j;return{...F,value:l,defaultValue:(j=e.defaultValue)!==null&&j!==void 0?j:v,setValue:R,dateRange:c,timeRange:i,granularity:g,hasTime:O,setDate(n,s){var d,b;S(n==="start"?{start:s,end:(d=c?.end)!==null&&d!==void 0?d:null}:{start:(b=c?.start)!==null&&b!==void 0?b:null,end:s})},setTime(n,s){var d,b;y(n==="start"?{start:s,end:(d=i?.end)!==null&&d!==void 0?d:null}:{start:(b=i?.start)!==null&&b!==void 0?b:null,end:s})},setDateTime(n,s){var d,b;R(n==="start"?{start:s,end:(d=l?.end)!==null&&d!==void 0?d:null}:{start:(b=l?.start)!==null&&b!==void 0?b:null,end:s})},setDateRange:S,setTimeRange:y,...D,setOpen(n){!n&&!(l?.start&&l?.end)&&G(c)&&O&&q(c,{start:i?.start||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:i?.end||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}),D.setOpen(n)},validationState:N,isInvalid:K,formatValue(n,s){if(!l||!l.start||!l.end)return null;let d="timeZone"in l.start?l.start.timeZone:void 0,b=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),_="timeZone"in l.end?l.end.timeZone:void 0,A=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Re=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(s,{granularity:b,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),de=l.start.toDate(d||"UTC"),re=l.end.toDate(_||"UTC"),J=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,Re),Q;if(d===_&&b===A&&l.start.compare(l.end)!==0){try{let z=J.formatRangeToParts(de,re),Y=-1;for(let U=0;U<z.length;U++){let ee=z[U];if(ee.source==="shared"&&ee.type==="literal")Y=U;else if(ee.source==="endRange")break}let ne="",oe="";for(let U=0;U<z.length;U++)U<Y?ne+=z[U].value:U>Y&&(oe+=z[U].value);return{start:ne,end:oe}}catch{}Q=J}else{let z=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(s,{granularity:A,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Q=new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,z)}return{start:J.format(de),end:Q.format(re)}},getDateFormatter(n,s){let d={...$,...s},b=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},d);return new W.$fb18d541ea1ad717$export$ad991b66133851cf(n,b)}}}function G(e){return e?.start!=null&&e.end!=null}const Be=o.createContext(null),Se=o.createContext(null),Pe=o.createContext(null),De=o.createContext(null),Fe=[le.$a049562f99e7db0e$export$f9c6924e160136d1,ae.$d2b4bc8c273e7be6$export$24d547caef80ccd1,te.$01b77f81d0f07f68$export$75b6ee27786ba447,ie.$514c0188e459b4c0$export$9afb8bc826b033ea],pe=o.forwardRef(function(a,r){[a,r]=E.$64fa3d84918910a7$export$29f1550f4b0d4415(a,r,Be);let{validationBehavior:D}=E.$64fa3d84918910a7$export$fabf2dc03a41866e(ce.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var m,x;let v=(x=(m=a.validationBehavior)!==null&&m!==void 0?m:D)!==null&&x!==void 0?x:"native",t=Ie({...a,validationBehavior:v}),u=o.useRef(null),[l,R]=E.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:g,fieldProps:I,buttonProps:O,dialogProps:M,calendarProps:T,descriptionProps:c,errorMessageProps:B,...i}=Oe({...E.$64fa3d84918910a7$export$ef03459518577ad4(a),label:R,validationBehavior:v},t,u),[Z,q]=o.useState(null),S=o.useCallback(()=>{u.current&&q(u.current.offsetWidth+"px")},[]);fe.$9daab02d461809db$export$683480f191c0e3ea({ref:u,onResize:S});let{focusProps:y,isFocused:w,isFocusVisible:$}=ye.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),h=E.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:w,isFocusVisible:$,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen},defaultClassName:"react-aria-DatePicker"}),P=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete P.id,o.createElement(E.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Pe,t],[le.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:u,isInvalid:t.isInvalid}],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,I],[ae.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...O,isPressed:t.isOpen}],[te.$01b77f81d0f07f68$export$75b6ee27786ba447,{...g,ref:l,elementType:"span"}],[ue.$dfd62f934fc76fed$export$3b805cea1f178355,T],[H.$de32f1b87079253c$export$d2f961adcb0afbe,t],[H.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":Z},clearContexts:Fe}],[H.$de32f1b87079253c$export$8b93a07348a7730c,M],[ie.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:c,errorMessage:B}}],[se.$ee014567cb39d3f0$export$ff05c3ac10437e03,i]]},o.createElement("div",{...L.$3ef42575df84b30b$export$9d1611c77c2fe928(P,h,y),ref:r,slot:a.slot||void 0,"data-focus-within":w||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":$||void 0,"data-disabled":a.isDisabled||void 0,"data-open":t.isOpen||void 0}),o.createElement(f.$c699643d2073b351$export$eefa3e19139f00f3,{autoComplete:a.autoComplete,name:a.name,isDisabled:a.isDisabled,state:t}))}),we=o.forwardRef(function(a,r){[a,r]=E.$64fa3d84918910a7$export$29f1550f4b0d4415(a,r,Se);let{validationBehavior:D}=E.$64fa3d84918910a7$export$fabf2dc03a41866e(ce.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var m,x;let v=(x=(m=a.validationBehavior)!==null&&m!==void 0?m:D)!==null&&x!==void 0?x:"native",t=Me({...a,validationBehavior:v}),u=o.useRef(null),[l,R]=E.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:C,labelProps:g,startFieldProps:I,endFieldProps:O,buttonProps:M,dialogProps:T,calendarProps:c,descriptionProps:B,errorMessageProps:i,...Z}=Ze({...E.$64fa3d84918910a7$export$ef03459518577ad4(a),label:R,validationBehavior:v},t,u),[q,S]=o.useState(null),y=o.useCallback(()=>{u.current&&S(u.current.offsetWidth+"px")},[]);fe.$9daab02d461809db$export$683480f191c0e3ea({ref:u,onResize:y});let{focusProps:w,isFocused:$,isFocusVisible:h}=ye.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),P=E.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:t,isFocusWithin:$,isFocusVisible:h,isDisabled:a.isDisabled||!1,isInvalid:t.isInvalid,isOpen:t.isOpen},defaultClassName:"react-aria-DateRangePicker"}),p=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{global:!0});return delete p.id,o.createElement(E.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[De,t],[le.$a049562f99e7db0e$export$f9c6924e160136d1,{...C,ref:u,isInvalid:t.isInvalid}],[ae.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...M,isPressed:t.isOpen}],[te.$01b77f81d0f07f68$export$75b6ee27786ba447,{...g,ref:l,elementType:"span"}],[ue.$dfd62f934fc76fed$export$233dd9682e1ad64b,c],[H.$de32f1b87079253c$export$d2f961adcb0afbe,t],[H.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":q},clearContexts:Fe}],[H.$de32f1b87079253c$export$8b93a07348a7730c,T],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:I,end:O}}],[ie.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:B,errorMessage:i}}],[se.$ee014567cb39d3f0$export$ff05c3ac10437e03,Z]]},o.createElement("div",{...L.$3ef42575df84b30b$export$9d1611c77c2fe928(p,P,w),ref:r,slot:a.slot||void 0,"data-focus-within":$||void 0,"data-invalid":t.isInvalid||void 0,"data-focus-visible":h||void 0,"data-disabled":a.isDisabled||void 0,"data-open":t.isOpen||void 0}))});exports.$06d5b8ec9ee5d538$export$17334619f3ac2224=we;exports.$06d5b8ec9ee5d538$export$50a10c048fdcdee9=Pe;exports.$06d5b8ec9ee5d538$export$5109c6dd95d8fb00=pe;exports.$06d5b8ec9ee5d538$export$80d7ae1f804790be=De;
|
|
2
|
-
//# sourceMappingURL=DatePicker-BQ6EfAU2.cjs.js.map
|