@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/multiline-text-input-
|
|
1
|
+
"use strict";const t=require("../chunks/multiline-text-input-mIiDJ-o1.cjs.js");exports.MultilineTextInput=t.MultilineTextInput;
|
|
2
2
|
//# sourceMappingURL=multiline-text-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/nimbus-provider-
|
|
1
|
+
"use strict";const e=require("../chunks/nimbus-provider-Yka95N38.cjs.js");exports.NimbusProvider=e.NimbusProvider;
|
|
2
2
|
//# sourceMappingURL=nimbus-provider.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/number-input-
|
|
1
|
+
"use strict";const e=require("../chunks/number-input-BN6xiOXG.cjs.js");exports.NumberInput=e.NumberInput;
|
|
2
2
|
//# sourceMappingURL=number-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/password-input
|
|
1
|
+
"use strict";const t=require("../chunks/password-input-CGsQktks.cjs.js");exports.PasswordInput=t.PasswordInput;
|
|
2
2
|
//# sourceMappingURL=password-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),n=require("../chunks/config-Mt8_uyhI.cjs.js"),c=require("../chunks/Dialog-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("../chunks/config-Mt8_uyhI.cjs.js"),c=require("../chunks/Dialog-Cbq66gyc.cjs.js"),s=require("../chunks/create-recipe-context-D0_lCuqq.cjs.js"),p=n.defineRecipe({className:"nimbus-popover",base:{bg:"white",borderRadius:"200",boxShadow:"5",padding:"400",zIndex:1}}),{withContext:a}=s.createRecipeContext({recipe:p}),b=a(c.$07b14b47974efb58$export$5b6b19405a83ff9d),e=o=>{const{children:t,...r}=o;return i.jsx(b,{...r,children:t})};e.displayName="Popover";exports.Popover=e;
|
|
2
2
|
//# sourceMappingURL=popover.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { d as p } from "../chunks/config-ufbQ08Vi.es.js";
|
|
3
|
-
import { $ as i } from "../chunks/Dialog-
|
|
3
|
+
import { $ as i } from "../chunks/Dialog-C7IjW1jR.es.js";
|
|
4
4
|
import { c as s } from "../chunks/create-recipe-context-i2odau3L.es.js";
|
|
5
5
|
const a = /* @__PURE__ */ p({
|
|
6
6
|
// Unique class name prefix for the component
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("../chunks/progress-bar-
|
|
1
|
+
"use strict";const r=require("../chunks/progress-bar-nQCcdv_4.cjs.js");exports.ProgressBar=r.ProgressBar;
|
|
2
2
|
//# sourceMappingURL=progress-bar.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const o=require("../chunks/radio-input-
|
|
1
|
+
"use strict";const o=require("../chunks/radio-input-CWRnpcxm.cjs.js");exports.RadioInput=o.RadioInput;exports._RadioInputOption=o.RadioInputOption;exports._RadioInputRoot=o.RadioInputRoot;
|
|
2
2
|
//# sourceMappingURL=radio-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/range-calendar-
|
|
1
|
+
"use strict";const e=require("../chunks/range-calendar-BW4gqU35.cjs.js");exports.RangeCalendar=e.RangeCalendar;
|
|
2
2
|
//# sourceMappingURL=range-calendar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-input.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-input.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/select-
|
|
1
|
+
"use strict";const e=require("../chunks/select-DihySN1w.cjs.js");exports.Select=e.Select;exports._SelectOption=e.SelectOption;exports._SelectOptionGroup=e.SelectOptionGroup;exports._SelectOptions=e.SelectOptions;exports._SelectRoot=e.SelectRoot;
|
|
2
2
|
//# sourceMappingURL=select.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/split-button-
|
|
1
|
+
"use strict";const t=require("../chunks/split-button-RydlGh27.cjs.js");exports.SplitButton=t.SplitButton;
|
|
2
2
|
//# sourceMappingURL=split-button.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/switch-
|
|
1
|
+
"use strict";const t=require("../chunks/switch-D3w3xQ7Z.cjs.js");exports.Switch=t.Switch;
|
|
2
2
|
//# sourceMappingURL=switch.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/tag-group-
|
|
1
|
+
"use strict";const e=require("../chunks/tag-group-Cwcr_VDp.cjs.js");exports.TagGroup=e.TagGroup;
|
|
2
2
|
//# sourceMappingURL=tag-group.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/text-input-
|
|
1
|
+
"use strict";const t=require("../chunks/text-input-i2bZeQZZ.cjs.js");exports.TextInput=t.TextInput;
|
|
2
2
|
//# sourceMappingURL=text-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("../chunks/time-input-
|
|
1
|
+
"use strict";const e=require("../chunks/time-input-Cc8RFGmz.cjs.js");exports.TimeInput=e.TimeInput;
|
|
2
2
|
//# sourceMappingURL=time-input.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("../chunks/toggle-button-
|
|
1
|
+
"use strict";const t=require("../chunks/toggle-button-DZpRqlmW.cjs.js");exports.ToggleButton=t.ToggleButton;
|
|
2
2
|
//# sourceMappingURL=toggle-button.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const o=require("../chunks/toolbar-
|
|
1
|
+
"use strict";const o=require("../chunks/toolbar-Dbq_EngE.cjs.js");exports.Toolbar=o.Toolbar;
|
|
2
2
|
//# sourceMappingURL=toolbar.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const o=require("../chunks/tooltip-
|
|
1
|
+
"use strict";const o=require("../chunks/tooltip-DjUjwciC.cjs.js"),e=require("../chunks/make-element-focusable-fn-8kTQK.cjs.js");exports.Tooltip=o.Tooltip;exports._TooltipContent=o.TooltipContent;exports._TooltipRoot=o.TooltipRoot;exports.MakeElementFocusable=e.MakeElementFocusable;
|
|
2
2
|
//# sourceMappingURL=tooltip.cjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("../chunks/slate-helpers-CMAwCMk0.cjs.js"),i=require("./constants.cjs"),o=e=>t.Text.isText(e)&&e.text.trim()!=="",a=e=>e.children.some(r=>o(r)||t.Element.isElement(r)&&a(r)),c=e=>{if(!e||e.trim()==="")return!0;try{return!t.fromHTML(e).some(n=>t.Element.isElement(n)?a(n):t.Text.isText(n)?o(n):!1)}catch(r){return console.warn("Failed to check if rich text is empty:",r),!0}};function l(e){return i.textStyles.find(r=>r.id===e)}function u(e){return l(e)?.label||e}function g(){return i.textStyles.map(e=>e.id)}function d(e){return i.textStyles.some(r=>r.id===e)}function y(e){return l(e)?.props||null}function s(e){return e.startsWith("heading-")}function f(e){return s(e)&&{"heading-one":1,"heading-two":2,"heading-three":3,"heading-four":4,"heading-five":5}[e]||null}function m(e){return{1:"heading-one",2:"heading-two",3:"heading-three",4:"heading-four",5:"heading-five"}[e]||null}exports.Element=t.Element$1;exports.Leaf=t.Leaf;exports.Softbreaker=t.Softbreaker;exports.createEmptyValue=t.createEmptyValue;exports.focusEditor=t.focusEditor;exports.fromHTML=t.fromHTML;exports.isBlockActive=t.isBlockActive;exports.isMarkActive=t.isMarkActive;exports.resetEditor=t.resetEditor;exports.toHTML=t.toHTML;exports.toggleBlock=t.toggleBlock;exports.toggleMark=t.toggleMark;exports.validSlateStateAdapter=t.validSlateStateAdapter;exports.withLinks=t.withLinks;exports.createHeadingBlockType=m;exports.getHeadingLevel=f;exports.getTextStyleById=l;exports.getTextStyleIds=g;exports.getTextStyleLabel=u;exports.getTextStyleProps=y;exports.isEmpty=c;exports.isHeadingType=s;exports.isValidTextStyle=d;
|
|
2
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":["../../src/components/rich-text-input/utils/is-empty.ts","../../src/components/rich-text-input/utils/text-style-utils.ts"],"sourcesContent":["import { Text, Element as SlateElement, type Descendant } from \"slate\";\nimport { fromHTML } from \"./html-serialization\";\nimport type { CustomElement, CustomText } from \"./types\";\n\nconst isTextNodeNonEmpty = (node: Descendant): boolean =>\n Text.isText(node) && (node as CustomText).text.trim() !== \"\";\n\nconst isElementNodeNonEmpty = (node: CustomElement): boolean =>\n node.children.some(\n (child) =>\n isTextNodeNonEmpty(child) ||\n (SlateElement.isElement(child) &&\n isElementNodeNonEmpty(child as CustomElement))\n );\n\n/**\n * Checks if a rich text HTML value is empty or contains no meaningful content\n */\nexport const isEmpty = (value: string): boolean => {\n if (!value || value.trim() === \"\") {\n return true;\n }\n\n try {\n const slateValue = fromHTML(value);\n\n // Check if any nodes have meaningful content\n return !slateValue.some((node) => {\n if (SlateElement.isElement(node)) {\n return isElementNodeNonEmpty(node as CustomElement);\n }\n if (Text.isText(node)) {\n return isTextNodeNonEmpty(node as CustomText);\n }\n return false;\n });\n } catch (error) {\n console.warn(\"Failed to check if rich text is empty:\", error);\n return true;\n }\n};\n","import {\n textStyles,\n type BlockType,\n type TextStyleDefinition,\n} from \"../constants\";\n\n/**\n * Gets a text style definition by its ID\n */\nexport function getTextStyleById(\n styleId: string\n): TextStyleDefinition | undefined {\n return textStyles.find((style) => style.id === styleId);\n}\n\n/**\n * Gets the display label for a text style ID\n */\nexport function getTextStyleLabel(styleId: string): string {\n const style = getTextStyleById(styleId);\n return style?.label || styleId;\n}\n\n/**\n * Gets all available text style IDs\n */\nexport function getTextStyleIds(): string[] {\n return textStyles.map((style) => style.id);\n}\n\n/**\n * Checks if a style ID is a valid text style\n */\nexport function isValidTextStyle(styleId: string): boolean {\n return textStyles.some((style) => style.id === styleId);\n}\n\n/**\n * Gets the text style properties for rendering\n */\nexport function getTextStyleProps(\n styleId: string\n): TextStyleDefinition[\"props\"] | null {\n const style = getTextStyleById(styleId);\n return style?.props || null;\n}\n\n/**\n * Determines if a block type is a heading\n */\nexport function isHeadingType(blockType: string): boolean {\n return blockType.startsWith(\"heading-\");\n}\n\n/**\n * Gets the heading level from a heading block type (1-6)\n */\nexport function getHeadingLevel(blockType: string): number | null {\n if (!isHeadingType(blockType)) return null;\n\n const levelMap: Record<string, number> = {\n \"heading-one\": 1,\n \"heading-two\": 2,\n \"heading-three\": 3,\n \"heading-four\": 4,\n \"heading-five\": 5,\n };\n\n return levelMap[blockType] || null;\n}\n\n/**\n * Creates a block type from heading level\n */\nexport function createHeadingBlockType(level: number): BlockType | null {\n const levelMap: Record<number, BlockType> = {\n 1: \"heading-one\",\n 2: \"heading-two\",\n 3: \"heading-three\",\n 4: \"heading-four\",\n 5: \"heading-five\",\n };\n\n return levelMap[level] || null;\n}\n"],"names":["isTextNodeNonEmpty","node","Text","isElementNodeNonEmpty","child","SlateElement","isEmpty","value","fromHTML","error","getTextStyleById","styleId","textStyles","style","getTextStyleLabel","getTextStyleIds","isValidTextStyle","getTextStyleProps","isHeadingType","blockType","getHeadingLevel","createHeadingBlockType","level"],"mappings":"qGAIMA,EAAsBC,GAC1BC,EAAAA,KAAK,OAAOD,CAAI,GAAMA,EAAoB,KAAK,KAAA,IAAW,GAEtDE,EAAyBF,GAC7BA,EAAK,SAAS,KACXG,GACCJ,EAAmBI,CAAK,GACvBC,EAAAA,QAAa,UAAUD,CAAK,GAC3BD,EAAsBC,CAAsB,CAClD,EAKWE,EAAWC,GAA2B,CACjD,GAAI,CAACA,GAASA,EAAM,KAAA,IAAW,GAC7B,MAAO,GAGT,GAAI,CAIF,MAAO,CAHYC,EAAAA,SAASD,CAAK,EAGd,KAAMN,GACnBI,EAAAA,QAAa,UAAUJ,CAAI,EACtBE,EAAsBF,CAAqB,EAEhDC,EAAAA,KAAK,OAAOD,CAAI,EACXD,EAAmBC,CAAkB,EAEvC,EACR,CACH,OAASQ,EAAO,CACd,eAAQ,KAAK,yCAA0CA,CAAK,EACrD,EACT,CACF,EC/BO,SAASC,EACdC,EACiC,CACjC,OAAOC,EAAAA,WAAW,KAAMC,GAAUA,EAAM,KAAOF,CAAO,CACxD,CAKO,SAASG,EAAkBH,EAAyB,CAEzD,OADcD,EAAiBC,CAAO,GACxB,OAASA,CACzB,CAKO,SAASI,GAA4B,CAC1C,OAAOH,EAAAA,WAAW,IAAKC,GAAUA,EAAM,EAAE,CAC3C,CAKO,SAASG,EAAiBL,EAA0B,CACzD,OAAOC,EAAAA,WAAW,KAAMC,GAAUA,EAAM,KAAOF,CAAO,CACxD,CAKO,SAASM,EACdN,EACqC,CAErC,OADcD,EAAiBC,CAAO,GACxB,OAAS,IACzB,CAKO,SAASO,EAAcC,EAA4B,CACxD,OAAOA,EAAU,WAAW,UAAU,CACxC,CAKO,SAASC,EAAgBD,EAAkC,CAChE,OAAKD,EAAcC,CAAS,GAEa,CACvC,cAAe,EACf,cAAe,EACf,gBAAiB,EACjB,eAAgB,EAChB,eAAgB,CAAA,EAGFA,CAAS,GAAK,IAChC,CAKO,SAASE,EAAuBC,EAAiC,CAStE,MAR4C,CAC1C,EAAG,cACH,EAAG,cACH,EAAG,gBACH,EAAG,eACH,EAAG,cAAA,EAGWA,CAAK,GAAK,IAC5B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { f as u, E as i, T as a } from "../chunks/slate-helpers-BwRHJO4o.es.js";
|
|
2
|
+
import { g as v, L as M, S as k, c as L, e as w, a as H, i as B, r as N, t as V, d as b, b as A, v as F, w as I } from "../chunks/slate-helpers-BwRHJO4o.es.js";
|
|
3
|
+
import { textStyles as r } from "./constants.es.js";
|
|
4
|
+
const s = (e) => a.isText(e) && e.text.trim() !== "", o = (e) => e.children.some(
|
|
5
|
+
(t) => s(t) || i.isElement(t) && o(t)
|
|
6
|
+
), d = (e) => {
|
|
7
|
+
if (!e || e.trim() === "")
|
|
8
|
+
return !0;
|
|
9
|
+
try {
|
|
10
|
+
return !u(e).some((n) => i.isElement(n) ? o(n) : a.isText(n) ? s(n) : !1);
|
|
11
|
+
} catch (t) {
|
|
12
|
+
return console.warn("Failed to check if rich text is empty:", t), !0;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function l(e) {
|
|
16
|
+
return r.find((t) => t.id === e);
|
|
17
|
+
}
|
|
18
|
+
function m(e) {
|
|
19
|
+
return l(e)?.label || e;
|
|
20
|
+
}
|
|
21
|
+
function p() {
|
|
22
|
+
return r.map((e) => e.id);
|
|
23
|
+
}
|
|
24
|
+
function h(e) {
|
|
25
|
+
return r.some((t) => t.id === e);
|
|
26
|
+
}
|
|
27
|
+
function y(e) {
|
|
28
|
+
return l(e)?.props || null;
|
|
29
|
+
}
|
|
30
|
+
function c(e) {
|
|
31
|
+
return e.startsWith("heading-");
|
|
32
|
+
}
|
|
33
|
+
function x(e) {
|
|
34
|
+
return c(e) && {
|
|
35
|
+
"heading-one": 1,
|
|
36
|
+
"heading-two": 2,
|
|
37
|
+
"heading-three": 3,
|
|
38
|
+
"heading-four": 4,
|
|
39
|
+
"heading-five": 5
|
|
40
|
+
}[e] || null;
|
|
41
|
+
}
|
|
42
|
+
function T(e) {
|
|
43
|
+
return {
|
|
44
|
+
1: "heading-one",
|
|
45
|
+
2: "heading-two",
|
|
46
|
+
3: "heading-three",
|
|
47
|
+
4: "heading-four",
|
|
48
|
+
5: "heading-five"
|
|
49
|
+
}[e] || null;
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
v as Element,
|
|
53
|
+
M as Leaf,
|
|
54
|
+
k as Softbreaker,
|
|
55
|
+
L as createEmptyValue,
|
|
56
|
+
T as createHeadingBlockType,
|
|
57
|
+
w as focusEditor,
|
|
58
|
+
u as fromHTML,
|
|
59
|
+
x as getHeadingLevel,
|
|
60
|
+
l as getTextStyleById,
|
|
61
|
+
p as getTextStyleIds,
|
|
62
|
+
m as getTextStyleLabel,
|
|
63
|
+
y as getTextStyleProps,
|
|
64
|
+
H as isBlockActive,
|
|
65
|
+
d as isEmpty,
|
|
66
|
+
c as isHeadingType,
|
|
67
|
+
B as isMarkActive,
|
|
68
|
+
h as isValidTextStyle,
|
|
69
|
+
N as resetEditor,
|
|
70
|
+
V as toHTML,
|
|
71
|
+
b as toggleBlock,
|
|
72
|
+
A as toggleMark,
|
|
73
|
+
F as validSlateStateAdapter,
|
|
74
|
+
I as withLinks
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=utils.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.es.js","sources":["../../src/components/rich-text-input/utils/is-empty.ts","../../src/components/rich-text-input/utils/text-style-utils.ts"],"sourcesContent":["import { Text, Element as SlateElement, type Descendant } from \"slate\";\nimport { fromHTML } from \"./html-serialization\";\nimport type { CustomElement, CustomText } from \"./types\";\n\nconst isTextNodeNonEmpty = (node: Descendant): boolean =>\n Text.isText(node) && (node as CustomText).text.trim() !== \"\";\n\nconst isElementNodeNonEmpty = (node: CustomElement): boolean =>\n node.children.some(\n (child) =>\n isTextNodeNonEmpty(child) ||\n (SlateElement.isElement(child) &&\n isElementNodeNonEmpty(child as CustomElement))\n );\n\n/**\n * Checks if a rich text HTML value is empty or contains no meaningful content\n */\nexport const isEmpty = (value: string): boolean => {\n if (!value || value.trim() === \"\") {\n return true;\n }\n\n try {\n const slateValue = fromHTML(value);\n\n // Check if any nodes have meaningful content\n return !slateValue.some((node) => {\n if (SlateElement.isElement(node)) {\n return isElementNodeNonEmpty(node as CustomElement);\n }\n if (Text.isText(node)) {\n return isTextNodeNonEmpty(node as CustomText);\n }\n return false;\n });\n } catch (error) {\n console.warn(\"Failed to check if rich text is empty:\", error);\n return true;\n }\n};\n","import {\n textStyles,\n type BlockType,\n type TextStyleDefinition,\n} from \"../constants\";\n\n/**\n * Gets a text style definition by its ID\n */\nexport function getTextStyleById(\n styleId: string\n): TextStyleDefinition | undefined {\n return textStyles.find((style) => style.id === styleId);\n}\n\n/**\n * Gets the display label for a text style ID\n */\nexport function getTextStyleLabel(styleId: string): string {\n const style = getTextStyleById(styleId);\n return style?.label || styleId;\n}\n\n/**\n * Gets all available text style IDs\n */\nexport function getTextStyleIds(): string[] {\n return textStyles.map((style) => style.id);\n}\n\n/**\n * Checks if a style ID is a valid text style\n */\nexport function isValidTextStyle(styleId: string): boolean {\n return textStyles.some((style) => style.id === styleId);\n}\n\n/**\n * Gets the text style properties for rendering\n */\nexport function getTextStyleProps(\n styleId: string\n): TextStyleDefinition[\"props\"] | null {\n const style = getTextStyleById(styleId);\n return style?.props || null;\n}\n\n/**\n * Determines if a block type is a heading\n */\nexport function isHeadingType(blockType: string): boolean {\n return blockType.startsWith(\"heading-\");\n}\n\n/**\n * Gets the heading level from a heading block type (1-6)\n */\nexport function getHeadingLevel(blockType: string): number | null {\n if (!isHeadingType(blockType)) return null;\n\n const levelMap: Record<string, number> = {\n \"heading-one\": 1,\n \"heading-two\": 2,\n \"heading-three\": 3,\n \"heading-four\": 4,\n \"heading-five\": 5,\n };\n\n return levelMap[blockType] || null;\n}\n\n/**\n * Creates a block type from heading level\n */\nexport function createHeadingBlockType(level: number): BlockType | null {\n const levelMap: Record<number, BlockType> = {\n 1: \"heading-one\",\n 2: \"heading-two\",\n 3: \"heading-three\",\n 4: \"heading-four\",\n 5: \"heading-five\",\n };\n\n return levelMap[level] || null;\n}\n"],"names":["isTextNodeNonEmpty","node","Text","isElementNodeNonEmpty","child","SlateElement","isEmpty","value","fromHTML","error","getTextStyleById","styleId","textStyles","style","getTextStyleLabel","getTextStyleIds","isValidTextStyle","getTextStyleProps","isHeadingType","blockType","getHeadingLevel","createHeadingBlockType","level"],"mappings":";;;AAIA,MAAMA,IAAqB,CAACC,MAC1BC,EAAK,OAAOD,CAAI,KAAMA,EAAoB,KAAK,KAAA,MAAW,IAEtDE,IAAwB,CAACF,MAC7BA,EAAK,SAAS;AAAA,EACZ,CAACG,MACCJ,EAAmBI,CAAK,KACvBC,EAAa,UAAUD,CAAK,KAC3BD,EAAsBC,CAAsB;AAClD,GAKWE,IAAU,CAACC,MAA2B;AACjD,MAAI,CAACA,KAASA,EAAM,KAAA,MAAW;AAC7B,WAAO;AAGT,MAAI;AAIF,WAAO,CAHYC,EAASD,CAAK,EAGd,KAAK,CAACN,MACnBI,EAAa,UAAUJ,CAAI,IACtBE,EAAsBF,CAAqB,IAEhDC,EAAK,OAAOD,CAAI,IACXD,EAAmBC,CAAkB,IAEvC,EACR;AAAA,EACH,SAASQ,GAAO;AACd,mBAAQ,KAAK,0CAA0CA,CAAK,GACrD;AAAA,EACT;AACF;AC/BO,SAASC,EACdC,GACiC;AACjC,SAAOC,EAAW,KAAK,CAACC,MAAUA,EAAM,OAAOF,CAAO;AACxD;AAKO,SAASG,EAAkBH,GAAyB;AAEzD,SADcD,EAAiBC,CAAO,GACxB,SAASA;AACzB;AAKO,SAASI,IAA4B;AAC1C,SAAOH,EAAW,IAAI,CAACC,MAAUA,EAAM,EAAE;AAC3C;AAKO,SAASG,EAAiBL,GAA0B;AACzD,SAAOC,EAAW,KAAK,CAACC,MAAUA,EAAM,OAAOF,CAAO;AACxD;AAKO,SAASM,EACdN,GACqC;AAErC,SADcD,EAAiBC,CAAO,GACxB,SAAS;AACzB;AAKO,SAASO,EAAcC,GAA4B;AACxD,SAAOA,EAAU,WAAW,UAAU;AACxC;AAKO,SAASC,EAAgBD,GAAkC;AAChE,SAAKD,EAAcC,CAAS,KAEa;AAAA,IACvC,eAAe;AAAA,IACf,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAAA,EAGFA,CAAS,KAAK;AAChC;AAKO,SAASE,EAAuBC,GAAiC;AAStE,SAR4C;AAAA,IAC1C,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EAAA,EAGWA,CAAK,KAAK;AAC5B;"}
|
package/dist/components.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import { DisclosureProps } from 'react-aria-components';
|
|
|
48
48
|
import { FC } from 'react';
|
|
49
49
|
import { Flex } from '@chakra-ui/react/flex';
|
|
50
50
|
import { FocusableOptions } from 'react-aria';
|
|
51
|
+
import { FocusEventHandler } from 'react';
|
|
51
52
|
import { FormFieldDescriptionSlotProps } from './form-field.slots';
|
|
52
53
|
import { FormFieldErrorSlotProps } from './form-field.slots';
|
|
53
54
|
import { FormFieldInputSlotProps } from './form-field.slots';
|
|
@@ -1233,6 +1234,9 @@ export declare interface DataTableContextValue<T extends object = Record<string,
|
|
|
1233
1234
|
disabledKeys?: Selection_2;
|
|
1234
1235
|
onRowAction?: (row: DataTableRowItem<T>, action: "click" | "select") => void;
|
|
1235
1236
|
isResizable?: boolean;
|
|
1237
|
+
pinnedRows: Set<string>;
|
|
1238
|
+
onPinToggle?: (rowId: string) => void;
|
|
1239
|
+
togglePin: (id: string) => void;
|
|
1236
1240
|
}
|
|
1237
1241
|
|
|
1238
1242
|
export declare type DataTableDensity = "default" | "condensed";
|
|
@@ -1283,6 +1287,9 @@ export declare interface DataTableProps<T extends object = Record<string, unknow
|
|
|
1283
1287
|
nestedKey?: string;
|
|
1284
1288
|
disabledKeys?: Selection_2;
|
|
1285
1289
|
onRowAction?: (row: DataTableRowItem<T>, action: "click" | "select") => void;
|
|
1290
|
+
pinnedRows?: Set<string>;
|
|
1291
|
+
defaultPinnedRows?: Set<string>;
|
|
1292
|
+
onPinToggle?: (rowId: string) => void;
|
|
1286
1293
|
}
|
|
1287
1294
|
|
|
1288
1295
|
/**
|
|
@@ -1633,6 +1640,8 @@ declare type DefaultExcludedProps = "css" | "asChild" | "as" | "colorScheme";
|
|
|
1633
1640
|
|
|
1634
1641
|
declare type DefaultExcludedProps_2 = "css" | "asChild" | "as";
|
|
1635
1642
|
|
|
1643
|
+
declare type DefaultExcludedProps_3 = "css" | "asChild" | "as" | "onChange";
|
|
1644
|
+
|
|
1636
1645
|
/**
|
|
1637
1646
|
* # Dialog
|
|
1638
1647
|
*
|
|
@@ -3040,6 +3049,65 @@ export declare type RangeValue<T> = {
|
|
|
3040
3049
|
end: T;
|
|
3041
3050
|
};
|
|
3042
3051
|
|
|
3052
|
+
/**
|
|
3053
|
+
RichTextInput - A rich text input component with formatting capabilities.
|
|
3054
|
+
*/
|
|
3055
|
+
export declare const RichTextInput: {
|
|
3056
|
+
(props: RichTextInputProps): JSX.Element;
|
|
3057
|
+
displayName: string;
|
|
3058
|
+
};
|
|
3059
|
+
|
|
3060
|
+
export declare interface RichTextInputProps extends Omit<RichTextInputRootSlotProps, DefaultExcludedProps_3 | "children"> {
|
|
3061
|
+
/**
|
|
3062
|
+
* The ref for the rich text input component
|
|
3063
|
+
*/
|
|
3064
|
+
ref?: Ref<HTMLDivElement>;
|
|
3065
|
+
/**
|
|
3066
|
+
* The HTML value of the rich text input
|
|
3067
|
+
*/
|
|
3068
|
+
value?: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* The default HTML value of the rich text input (uncontrolled)
|
|
3071
|
+
*/
|
|
3072
|
+
defaultValue?: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* Called when the value changes
|
|
3075
|
+
*/
|
|
3076
|
+
onChange?: (value: string) => void;
|
|
3077
|
+
/**
|
|
3078
|
+
* Called when the input is focused
|
|
3079
|
+
*/
|
|
3080
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
3081
|
+
/**
|
|
3082
|
+
* Called when the input is blurred
|
|
3083
|
+
*/
|
|
3084
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
3085
|
+
/**
|
|
3086
|
+
* Placeholder text to show when the editor is empty
|
|
3087
|
+
*/
|
|
3088
|
+
placeholder?: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* Whether the input is disabled
|
|
3091
|
+
*/
|
|
3092
|
+
isDisabled?: boolean;
|
|
3093
|
+
/**
|
|
3094
|
+
* Whether the input is read-only
|
|
3095
|
+
*/
|
|
3096
|
+
isReadOnly?: boolean;
|
|
3097
|
+
/**
|
|
3098
|
+
* Whether the input is in an invalid state
|
|
3099
|
+
*/
|
|
3100
|
+
isInvalid?: boolean;
|
|
3101
|
+
/**
|
|
3102
|
+
* Whether to focus the input when it mounts
|
|
3103
|
+
*/
|
|
3104
|
+
autoFocus?: boolean;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
declare const richTextInputRecipe: SlotRecipeDefinition<"toolbar" | "root" | "editable", {}>;
|
|
3108
|
+
|
|
3109
|
+
declare type RichTextInputRootSlotProps = HTMLChakraProps_2<"div", RecipeVariantProps_2<typeof richTextInputRecipe> & UnstyledProp_2>;
|
|
3110
|
+
|
|
3043
3111
|
export declare type RouterOptions = NimbusRouterOptionsBase extends {
|
|
3044
3112
|
routerOptions: any;
|
|
3045
3113
|
} ? NimbusRouterOptionsBase["routerOptions"] : any;
|
|
@@ -3762,22 +3830,25 @@ declare const toolbarRecipe: RecipeDefinition< {
|
|
|
3762
3830
|
size: {
|
|
3763
3831
|
xs: {
|
|
3764
3832
|
"--toolbar-spacing": "{spacing.100}";
|
|
3833
|
+
"--divider-size": "{sizes.600}";
|
|
3765
3834
|
};
|
|
3766
3835
|
md: {
|
|
3767
3836
|
"--toolbar-spacing": "{spacing.200}";
|
|
3837
|
+
"--divider-size": "{sizes.800}";
|
|
3768
3838
|
};
|
|
3769
3839
|
};
|
|
3770
3840
|
orientation: {
|
|
3771
3841
|
horizontal: {
|
|
3772
3842
|
"--toolbar-direction": "row";
|
|
3773
3843
|
"& .nimbus-divider": {
|
|
3774
|
-
height: "
|
|
3844
|
+
height: "var(--divider-size)";
|
|
3775
3845
|
mx: "var(--toolbar-spacing)";
|
|
3776
3846
|
};
|
|
3777
3847
|
};
|
|
3778
3848
|
vertical: {
|
|
3779
3849
|
"--toolbar-direction": "column";
|
|
3780
3850
|
"& .nimbus-divider": {
|
|
3851
|
+
width: "var(--divider-size)";
|
|
3781
3852
|
my: "var(--toolbar-spacing)";
|
|
3782
3853
|
};
|
|
3783
3854
|
};
|
|
@@ -3908,3 +3979,12 @@ export declare interface VisuallyHiddenProps extends Omit<VisuallyHiddenProps_2,
|
|
|
3908
3979
|
}
|
|
3909
3980
|
|
|
3910
3981
|
export { }
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
declare module "slate" {
|
|
3985
|
+
interface CustomTypes {
|
|
3986
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
3987
|
+
Element: CustomElement;
|
|
3988
|
+
Text: CustomText;
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare const BASIC_FORMATTING: readonly ["strikethrough", "code"];
|
|
2
|
+
|
|
3
|
+
export declare type BasicFormattingType = (typeof BASIC_FORMATTING)[number];
|
|
4
|
+
|
|
5
|
+
export declare const BLOCK_TAGS: {
|
|
6
|
+
readonly blockquote: "block-quote";
|
|
7
|
+
readonly p: "paragraph";
|
|
8
|
+
readonly pre: "code";
|
|
9
|
+
readonly h1: "heading-one";
|
|
10
|
+
readonly h2: "heading-two";
|
|
11
|
+
readonly h3: "heading-three";
|
|
12
|
+
readonly h4: "heading-four";
|
|
13
|
+
readonly h5: "heading-five";
|
|
14
|
+
readonly ul: "bulleted-list";
|
|
15
|
+
readonly ol: "numbered-list";
|
|
16
|
+
readonly li: "list-item";
|
|
17
|
+
readonly a: "link";
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare type BlockTagKey = keyof typeof BLOCK_TAGS;
|
|
21
|
+
|
|
22
|
+
export declare type BlockTagValue = (typeof BLOCK_TAGS)[BlockTagKey];
|
|
23
|
+
|
|
24
|
+
export declare type BlockType = (typeof blockTypes)[number] | "paragraph";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Available block types for text style detection
|
|
28
|
+
*
|
|
29
|
+
* Used by:
|
|
30
|
+
* - hooks/useToolbarState.ts: Detects currently active block type in editor
|
|
31
|
+
* - Excludes "paragraph" as it's the default/fallback type
|
|
32
|
+
*/
|
|
33
|
+
export declare const blockTypes: readonly ["heading-one", "heading-two", "heading-three", "heading-four", "heading-five", "block-quote"];
|
|
34
|
+
|
|
35
|
+
export declare const EDITOR_DEFAULTS: {
|
|
36
|
+
readonly placeholder: "Start typing...";
|
|
37
|
+
readonly isDisabled: false;
|
|
38
|
+
readonly isReadOnly: false;
|
|
39
|
+
readonly autoFocus: false;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export declare const FORMATTING_OPTIONS: {
|
|
43
|
+
readonly STRIKETHROUGH: "strikethrough";
|
|
44
|
+
readonly CODE: "code";
|
|
45
|
+
readonly SUPERSCRIPT: "superscript";
|
|
46
|
+
readonly SUBSCRIPT: "subscript";
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export declare type FormattingType = (typeof FORMATTING_OPTIONS)[keyof typeof FORMATTING_OPTIONS];
|
|
50
|
+
|
|
51
|
+
export declare type HotkeyKey = keyof HotkeyType;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constants for the rich text editor component
|
|
55
|
+
*
|
|
56
|
+
* This file consolidates all the configuration constants used by the rich text editor.
|
|
57
|
+
* Previously split across multiple files, now consolidated for better maintainability.
|
|
58
|
+
*/
|
|
59
|
+
export declare const HOTKEYS: {
|
|
60
|
+
readonly "mod+b": "bold";
|
|
61
|
+
readonly "mod+i": "italic";
|
|
62
|
+
readonly "mod+u": "underline";
|
|
63
|
+
readonly "mod+`": "code";
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export declare type HotkeyType = typeof HOTKEYS;
|
|
67
|
+
|
|
68
|
+
export declare type HotkeyValue = HotkeyType[HotkeyKey];
|
|
69
|
+
|
|
70
|
+
export declare const MARK_TAGS: {
|
|
71
|
+
readonly strong: "bold";
|
|
72
|
+
readonly b: "bold";
|
|
73
|
+
readonly em: "italic";
|
|
74
|
+
readonly i: "italic";
|
|
75
|
+
readonly u: "underline";
|
|
76
|
+
readonly code: "code";
|
|
77
|
+
readonly sup: "superscript";
|
|
78
|
+
readonly sub: "subscript";
|
|
79
|
+
readonly del: "strikethrough";
|
|
80
|
+
readonly s: "strikethrough";
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export declare type MarkTagKey = keyof typeof MARK_TAGS;
|
|
84
|
+
|
|
85
|
+
export declare type MarkTagValue = (typeof MARK_TAGS)[MarkTagKey];
|
|
86
|
+
|
|
87
|
+
export declare const MUTUALLY_EXCLUSIVE_GROUPS: {
|
|
88
|
+
readonly script: readonly ["superscript", "subscript"];
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export declare const SCRIPT_FORMATTING: readonly ["superscript", "subscript"];
|
|
92
|
+
|
|
93
|
+
export declare type ScriptFormattingType = (typeof SCRIPT_FORMATTING)[number];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Text style definitions for rich text editor block formatting
|
|
97
|
+
*
|
|
98
|
+
* Used by:
|
|
99
|
+
* - components/rich-text-toolbar.tsx: Renders text style dropdown menu with these options
|
|
100
|
+
* - hooks/useToolbarState.ts: Manages current text style state and selection logic
|
|
101
|
+
* - utils/text-style-utils.ts: Helper functions for text style operations
|
|
102
|
+
* - utils/validation-utils.ts: Validates if block types are supported
|
|
103
|
+
*
|
|
104
|
+
* Purpose:
|
|
105
|
+
* - Centralizes all available text styles and their visual properties
|
|
106
|
+
* - Maps block type IDs to user-friendly labels and Chakra UI styling props
|
|
107
|
+
* - Ensures consistent styling across the editor and UI controls
|
|
108
|
+
*/
|
|
109
|
+
export declare interface TextStyleDefinition {
|
|
110
|
+
id: string;
|
|
111
|
+
label: string;
|
|
112
|
+
props: {
|
|
113
|
+
textStyle: string;
|
|
114
|
+
fontWeight: string;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export declare const textStyles: TextStyleDefinition[];
|
|
119
|
+
|
|
120
|
+
export { }
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
declare module "slate" {
|
|
124
|
+
interface CustomTypes {
|
|
125
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
126
|
+
Element: CustomElement;
|
|
127
|
+
Text: CustomText;
|
|
128
|
+
}
|
|
129
|
+
}
|