@commercetools/nimbus 0.0.0-canary-20250826133439 → 0.0.0-canary-20250827101922
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/{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-CFH0OaAM.cjs.js → combobox-Ah0GQqSW.cjs.js} +2 -2
- package/dist/chunks/{combobox-CFH0OaAM.cjs.js.map → combobox-Ah0GQqSW.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-CkVqkKdA.es.js → combobox-D_IGHRck.es.js} +5 -5
- package/dist/chunks/{combobox-CkVqkKdA.es.js.map → combobox-D_IGHRck.es.js.map} +1 -1
- package/dist/chunks/data-table-COrv-ddO.cjs.js +2 -0
- package/dist/chunks/{data-table-DIXPr3ke.cjs.js.map → data-table-COrv-ddO.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-cBq9JXG7.es.js → data-table-DbhVtDHQ.es.js} +677 -676
- package/dist/chunks/{data-table-cBq9JXG7.es.js.map → data-table-DbhVtDHQ.es.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-Bx2J-sPg.es.js → date-picker-Bpi1PgR2.es.js} +7 -7
- package/dist/chunks/{date-picker-Bx2J-sPg.es.js.map → date-picker-Bpi1PgR2.es.js.map} +1 -1
- package/dist/chunks/{date-picker-UEQeFHA8.cjs.js → date-picker-DNROhe7B.cjs.js} +2 -2
- package/dist/chunks/{date-picker-UEQeFHA8.cjs.js.map → date-picker-DNROhe7B.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-DvaRIy3T.es.js → date-range-picker-CXKG84tw.es.js} +7 -7
- package/dist/chunks/{date-range-picker-DvaRIy3T.es.js.map → date-range-picker-CXKG84tw.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-Dx1nE1Br.cjs.js → date-range-picker-tyjYdQx1.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-Dx1nE1Br.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-Do0NhI0D.es.js → form-field-DePRnFqm.es.js} +2 -2
- package/dist/chunks/{form-field-Do0NhI0D.es.js.map → form-field-DePRnFqm.es.js.map} +1 -1
- package/dist/chunks/{form-field-DiW_0hSy.cjs.js → form-field-JpzG70WX.cjs.js} +2 -2
- package/dist/chunks/{form-field-DiW_0hSy.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-BT594v5p.es.js → password-input-BtbZYHE8.es.js} +3 -3
- package/dist/chunks/{password-input-BT594v5p.es.js.map → password-input-BtbZYHE8.es.js.map} +1 -1
- package/dist/chunks/{password-input-D1LSzb9p.cjs.js → password-input-CGsQktks.cjs.js} +2 -2
- package/dist/chunks/{password-input-D1LSzb9p.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-BnN5zaBu.cjs.js → select-DihySN1w.cjs.js} +2 -2
- package/dist/chunks/{select-BnN5zaBu.cjs.js.map → select-DihySN1w.cjs.js.map} +1 -1
- package/dist/chunks/{select-Cr0CSahh.es.js → select-wby2GRxc.es.js} +16 -16
- package/dist/chunks/{select-Cr0CSahh.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/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 +89 -86
- 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/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/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 +76 -1
- package/dist/constants.d.ts +129 -0
- package/dist/data-table.d.ts +10 -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 +115 -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/data-table-DIXPr3ke.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/split-button-DhYWuU3x.es.js +0 -262
- package/dist/chunks/split-button-DhYWuU3x.es.js.map +0 -1
- package/dist/chunks/split-button-DrujRAqS.cjs.js +0 -2
- package/dist/chunks/split-button-DrujRAqS.cjs.js.map +0 -1
|
@@ -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
|
|
@@ -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';
|
|
@@ -1269,6 +1270,7 @@ export declare interface DataTableProps<T extends object = Record<string, unknow
|
|
|
1269
1270
|
search?: string;
|
|
1270
1271
|
maxHeight?: string | number;
|
|
1271
1272
|
sortDescriptor?: SortDescriptor;
|
|
1273
|
+
defaultSortDescriptor?: SortDescriptor;
|
|
1272
1274
|
onSortChange?: (descriptor: SortDescriptor) => void;
|
|
1273
1275
|
selectionMode?: "none" | "single" | "multiple";
|
|
1274
1276
|
selectionBehavior?: "toggle" | "replace";
|
|
@@ -1639,6 +1641,8 @@ declare type DefaultExcludedProps = "css" | "asChild" | "as" | "colorScheme";
|
|
|
1639
1641
|
|
|
1640
1642
|
declare type DefaultExcludedProps_2 = "css" | "asChild" | "as";
|
|
1641
1643
|
|
|
1644
|
+
declare type DefaultExcludedProps_3 = "css" | "asChild" | "as" | "onChange";
|
|
1645
|
+
|
|
1642
1646
|
/**
|
|
1643
1647
|
* # Dialog
|
|
1644
1648
|
*
|
|
@@ -3046,6 +3050,65 @@ export declare type RangeValue<T> = {
|
|
|
3046
3050
|
end: T;
|
|
3047
3051
|
};
|
|
3048
3052
|
|
|
3053
|
+
/**
|
|
3054
|
+
RichTextInput - A rich text input component with formatting capabilities.
|
|
3055
|
+
*/
|
|
3056
|
+
export declare const RichTextInput: {
|
|
3057
|
+
(props: RichTextInputProps): JSX.Element;
|
|
3058
|
+
displayName: string;
|
|
3059
|
+
};
|
|
3060
|
+
|
|
3061
|
+
export declare interface RichTextInputProps extends Omit<RichTextInputRootSlotProps, DefaultExcludedProps_3 | "children"> {
|
|
3062
|
+
/**
|
|
3063
|
+
* The ref for the rich text input component
|
|
3064
|
+
*/
|
|
3065
|
+
ref?: Ref<HTMLDivElement>;
|
|
3066
|
+
/**
|
|
3067
|
+
* The HTML value of the rich text input
|
|
3068
|
+
*/
|
|
3069
|
+
value?: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* The default HTML value of the rich text input (uncontrolled)
|
|
3072
|
+
*/
|
|
3073
|
+
defaultValue?: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* Called when the value changes
|
|
3076
|
+
*/
|
|
3077
|
+
onChange?: (value: string) => void;
|
|
3078
|
+
/**
|
|
3079
|
+
* Called when the input is focused
|
|
3080
|
+
*/
|
|
3081
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
3082
|
+
/**
|
|
3083
|
+
* Called when the input is blurred
|
|
3084
|
+
*/
|
|
3085
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
3086
|
+
/**
|
|
3087
|
+
* Placeholder text to show when the editor is empty
|
|
3088
|
+
*/
|
|
3089
|
+
placeholder?: string;
|
|
3090
|
+
/**
|
|
3091
|
+
* Whether the input is disabled
|
|
3092
|
+
*/
|
|
3093
|
+
isDisabled?: boolean;
|
|
3094
|
+
/**
|
|
3095
|
+
* Whether the input is read-only
|
|
3096
|
+
*/
|
|
3097
|
+
isReadOnly?: boolean;
|
|
3098
|
+
/**
|
|
3099
|
+
* Whether the input is in an invalid state
|
|
3100
|
+
*/
|
|
3101
|
+
isInvalid?: boolean;
|
|
3102
|
+
/**
|
|
3103
|
+
* Whether to focus the input when it mounts
|
|
3104
|
+
*/
|
|
3105
|
+
autoFocus?: boolean;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
declare const richTextInputRecipe: SlotRecipeDefinition<"toolbar" | "root" | "editable", {}>;
|
|
3109
|
+
|
|
3110
|
+
declare type RichTextInputRootSlotProps = HTMLChakraProps_2<"div", RecipeVariantProps_2<typeof richTextInputRecipe> & UnstyledProp_2>;
|
|
3111
|
+
|
|
3049
3112
|
export declare type RouterOptions = NimbusRouterOptionsBase extends {
|
|
3050
3113
|
routerOptions: any;
|
|
3051
3114
|
} ? NimbusRouterOptionsBase["routerOptions"] : any;
|
|
@@ -3768,22 +3831,25 @@ declare const toolbarRecipe: RecipeDefinition< {
|
|
|
3768
3831
|
size: {
|
|
3769
3832
|
xs: {
|
|
3770
3833
|
"--toolbar-spacing": "{spacing.100}";
|
|
3834
|
+
"--divider-size": "{sizes.600}";
|
|
3771
3835
|
};
|
|
3772
3836
|
md: {
|
|
3773
3837
|
"--toolbar-spacing": "{spacing.200}";
|
|
3838
|
+
"--divider-size": "{sizes.800}";
|
|
3774
3839
|
};
|
|
3775
3840
|
};
|
|
3776
3841
|
orientation: {
|
|
3777
3842
|
horizontal: {
|
|
3778
3843
|
"--toolbar-direction": "row";
|
|
3779
3844
|
"& .nimbus-divider": {
|
|
3780
|
-
height: "
|
|
3845
|
+
height: "var(--divider-size)";
|
|
3781
3846
|
mx: "var(--toolbar-spacing)";
|
|
3782
3847
|
};
|
|
3783
3848
|
};
|
|
3784
3849
|
vertical: {
|
|
3785
3850
|
"--toolbar-direction": "column";
|
|
3786
3851
|
"& .nimbus-divider": {
|
|
3852
|
+
width: "var(--divider-size)";
|
|
3787
3853
|
my: "var(--toolbar-spacing)";
|
|
3788
3854
|
};
|
|
3789
3855
|
};
|
|
@@ -3914,3 +3980,12 @@ export declare interface VisuallyHiddenProps extends Omit<VisuallyHiddenProps_2,
|
|
|
3914
3980
|
}
|
|
3915
3981
|
|
|
3916
3982
|
export { }
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
declare module "slate" {
|
|
3986
|
+
interface CustomTypes {
|
|
3987
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
3988
|
+
Element: CustomElement;
|
|
3989
|
+
Text: CustomText;
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/data-table.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export declare interface DataTableProps<T extends object = Record<string, unknow
|
|
|
156
156
|
search?: string;
|
|
157
157
|
maxHeight?: string | number;
|
|
158
158
|
sortDescriptor?: SortDescriptor;
|
|
159
|
+
defaultSortDescriptor?: SortDescriptor;
|
|
159
160
|
onSortChange?: (descriptor: SortDescriptor) => void;
|
|
160
161
|
selectionMode?: "none" | "single" | "multiple";
|
|
161
162
|
selectionBehavior?: "toggle" | "replace";
|
|
@@ -268,3 +269,12 @@ export declare type SortDescriptor = {
|
|
|
268
269
|
export declare type SortDirection = SortDirection_2;
|
|
269
270
|
|
|
270
271
|
export { }
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
declare module "slate" {
|
|
275
|
+
interface CustomTypes {
|
|
276
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
277
|
+
Element: CustomElement;
|
|
278
|
+
Text: CustomText;
|
|
279
|
+
}
|
|
280
|
+
}
|
package/dist/date-input.d.ts
CHANGED
|
@@ -101,3 +101,12 @@ boxShadow: "none!";
|
|
|
101
101
|
declare type ExcludedProps = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild";
|
|
102
102
|
|
|
103
103
|
export { }
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
declare module "slate" {
|
|
107
|
+
interface CustomTypes {
|
|
108
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
109
|
+
Element: CustomElement;
|
|
110
|
+
Text: CustomText;
|
|
111
|
+
}
|
|
112
|
+
}
|
package/dist/date-picker.d.ts
CHANGED
|
@@ -183,3 +183,12 @@ declare type ExcludedProps = "validationState" | "label" | "description" | "erro
|
|
|
183
183
|
declare type ExcludedProps_2 = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild" | "variant";
|
|
184
184
|
|
|
185
185
|
export { }
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
declare module "slate" {
|
|
189
|
+
interface CustomTypes {
|
|
190
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
191
|
+
Element: CustomElement;
|
|
192
|
+
Text: CustomText;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -109,3 +109,12 @@ export declare interface DateRangePickerTimeInputProps {
|
|
|
109
109
|
declare type ExcludedProps = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild";
|
|
110
110
|
|
|
111
111
|
export { }
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
declare module "slate" {
|
|
115
|
+
interface CustomTypes {
|
|
116
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
117
|
+
Element: CustomElement;
|
|
118
|
+
Text: CustomText;
|
|
119
|
+
}
|
|
120
|
+
}
|
package/dist/dialog.d.ts
CHANGED
|
@@ -37,3 +37,12 @@ declare interface DialogContentProps extends Dialog_2.ContentProps {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export { }
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
declare module "slate" {
|
|
43
|
+
interface CustomTypes {
|
|
44
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
45
|
+
Element: CustomElement;
|
|
46
|
+
Text: CustomText;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/dist/divider.d.ts
CHANGED
|
@@ -79,3 +79,12 @@ declare type DividerVariantProps = DividerRootProps & RecipeVariantProps<typeof
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
export { }
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
declare module "slate" {
|
|
85
|
+
interface CustomTypes {
|
|
86
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
87
|
+
Element: CustomElement;
|
|
88
|
+
Text: CustomText;
|
|
89
|
+
}
|
|
90
|
+
}
|
package/dist/flex.d.ts
CHANGED
package/dist/form-field.d.ts
CHANGED
|
@@ -131,3 +131,12 @@ declare interface FormFieldRootSlotProps extends HTMLChakraProps<"div", RecipeVa
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export { }
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
declare module "slate" {
|
|
137
|
+
interface CustomTypes {
|
|
138
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
139
|
+
Element: CustomElement;
|
|
140
|
+
Text: CustomText;
|
|
141
|
+
}
|
|
142
|
+
}
|
package/dist/grid.d.ts
CHANGED
package/dist/group.d.ts
CHANGED
|
@@ -33,3 +33,12 @@ declare interface GroupSlotProps extends HTMLChakraProps<"div", GroupRecipeProps
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { }
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
declare module "slate" {
|
|
39
|
+
interface CustomTypes {
|
|
40
|
+
Editor: BaseEditor & ReactEditor & HistoryEditor;
|
|
41
|
+
Element: CustomElement;
|
|
42
|
+
Text: CustomText;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/dist/heading.d.ts
CHANGED