@commercetools/nimbus 2.1.0 → 2.3.0
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/README.md +87 -21
- package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js → CollectionBuilder-BOe312C_.es.js} +6 -24
- package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
- package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js → CollectionBuilder-DjRx57vm.cjs.js} +2 -18
- package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js.map → CollectionBuilder-DjRx57vm.cjs.js.map} +1 -1
- package/dist/chunks/DateField-BxXzaXAv.cjs.js +2 -0
- package/dist/chunks/DateField-BxXzaXAv.cjs.js.map +1 -0
- package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-DCWy1Ysp.es.js} +662 -631
- package/dist/chunks/DateField-DCWy1Ysp.es.js.map +1 -0
- package/dist/chunks/{DatePicker-DeknOPX6.es.js → DatePicker-CL72jbDo.es.js} +6 -6
- package/dist/chunks/{DatePicker-DeknOPX6.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js → DatePicker-NWRDzwUt.cjs.js} +2 -2
- package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js.map → DatePicker-NWRDzwUt.cjs.js.map} +1 -1
- package/dist/chunks/{Dialog-DUbUCf4o.es.js → Dialog-B0BQfdQa.es.js} +58 -58
- package/dist/chunks/{Dialog-DUbUCf4o.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
- package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js → Dialog-CSr6lHSd.cjs.js} +2 -2
- package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js.map → Dialog-CSr6lHSd.cjs.js.map} +1 -1
- package/dist/chunks/{Header-Bvl-gjeR.cjs.js → Header-BXEPjypM.cjs.js} +2 -2
- package/dist/chunks/{Header-Bvl-gjeR.cjs.js.map → Header-BXEPjypM.cjs.js.map} +1 -1
- package/dist/chunks/{Header-Bvo6aMcQ.es.js → Header-CiYtrnTw.es.js} +3 -3
- package/dist/chunks/{Header-Bvo6aMcQ.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
- package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-BMsylHxq.es.js} +3 -3
- package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js → Heading-C7J8IDnn.cjs.js} +2 -2
- package/dist/chunks/{Heading-kcnZ-PKv.cjs.js.map → Heading-C7J8IDnn.cjs.js.map} +1 -1
- package/dist/chunks/{ListBox-C8TVMFFY.es.js → ListBox-RrHJjnuq.es.js} +34 -36
- package/dist/chunks/{ListBox-C8TVMFFY.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
- package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js → ListBox-rm_vuzPg.cjs.js} +2 -2
- package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js.map → ListBox-rm_vuzPg.cjs.js.map} +1 -1
- package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js +2 -0
- package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js.map +1 -0
- package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js +48 -0
- package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js.map +1 -0
- package/dist/chunks/{Modal-CMJEwrBs.es.js → Modal-K4JEy19g.es.js} +3 -3
- package/dist/chunks/{Modal-CMJEwrBs.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
- package/dist/chunks/{Modal-DjOIA2BE.cjs.js → Modal-u97jKK9t.cjs.js} +2 -2
- package/dist/chunks/{Modal-DjOIA2BE.cjs.js.map → Modal-u97jKK9t.cjs.js.map} +1 -1
- package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js → SelectionManager-5YkuhVau.cjs.js} +2 -2
- package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js.map → SelectionManager-5YkuhVau.cjs.js.map} +1 -1
- package/dist/chunks/{SelectionManager-bgcDT3lR.es.js → SelectionManager-CX9btso_.es.js} +24 -31
- package/dist/chunks/{SelectionManager-bgcDT3lR.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
- package/dist/chunks/{Separator-DyU2njbj.cjs.js → Separator-BvA4UGuq.cjs.js} +2 -2
- package/dist/chunks/{Separator-DyU2njbj.cjs.js.map → Separator-BvA4UGuq.cjs.js.map} +1 -1
- package/dist/chunks/{Separator-BmVimNX_.es.js → Separator-x6wk4JUe.es.js} +2 -2
- package/dist/chunks/{Separator-BmVimNX_.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js → accordion-Cwy8ywRo.es.js} +2 -2
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
- package/dist/chunks/alert-D5SDMEKA.cjs.js +2 -0
- package/dist/chunks/alert-D5SDMEKA.cjs.js.map +1 -0
- package/dist/chunks/alert-WiLa3ap4.es.js +158 -0
- package/dist/chunks/alert-WiLa3ap4.es.js.map +1 -0
- package/dist/chunks/avatar-1Y7cLjZT.es.js +59 -0
- package/dist/chunks/avatar-1Y7cLjZT.es.js.map +1 -0
- package/dist/chunks/avatar-BVQ91Ccd.cjs.js +2 -0
- package/dist/chunks/avatar-BVQ91Ccd.cjs.js.map +1 -0
- package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
- package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
- package/dist/chunks/{button-DF_RV6pd.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
- package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
- package/dist/chunks/{button-czddlTvJ.es.js → button-CANeXX_D.es.js} +2 -2
- package/dist/chunks/{button-czddlTvJ.es.js.map → button-CANeXX_D.es.js.map} +1 -1
- package/dist/chunks/calendar-Bnw0u0vz.es.js +227 -0
- package/dist/chunks/calendar-Bnw0u0vz.es.js.map +1 -0
- package/dist/chunks/calendar-D0OrT88Y.cjs.js +2 -0
- package/dist/chunks/calendar-D0OrT88Y.cjs.js.map +1 -0
- package/dist/chunks/card-BHw7lWYe.es.js +115 -0
- package/dist/chunks/card-BHw7lWYe.es.js.map +1 -0
- package/dist/chunks/card-CgBcH7Zm.cjs.js +2 -0
- package/dist/chunks/card-CgBcH7Zm.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-UATxAVti.es.js} +2 -2
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
- package/dist/chunks/combobox-B30crY-T.es.js +1563 -0
- package/dist/chunks/combobox-B30crY-T.es.js.map +1 -0
- package/dist/chunks/combobox-D_L2EmTy.cjs.js +2 -0
- package/dist/chunks/combobox-D_L2EmTy.cjs.js.map +1 -0
- package/dist/chunks/{data-table-C0rC7Jgu.es.js → data-table-B7orK0Y6.es.js} +1715 -1670
- package/dist/chunks/data-table-B7orK0Y6.es.js.map +1 -0
- package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
- package/dist/chunks/data-table-Cg75JPdu.cjs.js.map +1 -0
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
- package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Ba6r9wMb.es.js} +4 -4
- package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
- package/dist/chunks/date-picker-Bm6DjFOx.cjs.js +2 -0
- package/dist/chunks/date-picker-Bm6DjFOx.cjs.js.map +1 -0
- package/dist/chunks/date-picker-DwQ1WWNP.es.js +228 -0
- package/dist/chunks/date-picker-DwQ1WWNP.es.js.map +1 -0
- package/dist/chunks/date-range-picker-DaSUwkke.cjs.js +2 -0
- package/dist/chunks/date-range-picker-DaSUwkke.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-dw7c9idV.es.js +364 -0
- package/dist/chunks/date-range-picker-dw7c9idV.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-D-kCkHEF.es.js} +4 -4
- package/dist/chunks/date-range-picker-field-D-kCkHEF.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
- package/dist/chunks/date-range-picker-field-J2b1-A1l.cjs.js.map +1 -0
- package/dist/chunks/dialog-ByHd6RlA.cjs.js +2 -0
- package/dist/chunks/dialog-ByHd6RlA.cjs.js.map +1 -0
- package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-vnnSNnUC.es.js} +89 -89
- package/dist/chunks/dialog-vnnSNnUC.es.js.map +1 -0
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-CGpLzk-D.cjs.js} +3 -3
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-DR-559Qk.es.js} +1406 -1601
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
- package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-CasegOAE.es.js} +96 -88
- package/dist/chunks/drawer-CasegOAE.es.js.map +1 -0
- package/dist/chunks/drawer-CmxHDgtW.cjs.js +2 -0
- package/dist/chunks/drawer-CmxHDgtW.cjs.js.map +1 -0
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
- package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-CM4QZGaE.es.js.map} +1 -1
- package/dist/chunks/field-errors-D1BQvoYg.es.js +219 -0
- package/dist/chunks/field-errors-D1BQvoYg.es.js.map +1 -0
- package/dist/chunks/field-errors-aqrV93vp.cjs.js +2 -0
- package/dist/chunks/field-errors-aqrV93vp.cjs.js.map +1 -0
- package/dist/chunks/form-field-52--hhlj.cjs.js +2 -0
- package/dist/chunks/form-field-52--hhlj.cjs.js.map +1 -0
- package/dist/chunks/{form-field-BqlkPY29.es.js → form-field-DCWDyNJx.es.js} +16 -16
- package/dist/chunks/form-field-DCWDyNJx.es.js.map +1 -0
- package/dist/chunks/icon-DJsVh7VR.es.js +19 -0
- package/dist/chunks/{icon-CenxuChf.es.js.map → icon-DJsVh7VR.es.js.map} +1 -1
- package/dist/chunks/icon-RyFjTAmU.cjs.js +2 -0
- package/dist/chunks/{icon-D39U--jA.cjs.js.map → icon-RyFjTAmU.cjs.js.map} +1 -1
- package/dist/chunks/icon-button-5pYAEokc.cjs.js +2 -0
- package/dist/chunks/icon-button-5pYAEokc.cjs.js.map +1 -0
- package/dist/chunks/icon-button-DhHKxd27.es.js +28 -0
- package/dist/chunks/icon-button-DhHKxd27.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
- package/dist/chunks/icon-toggle-button-BsQzSrKe.cjs.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
- package/dist/chunks/icon-toggle-button-C7HZUXh5.es.js.map +1 -0
- package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
- package/dist/chunks/image-DRigLU80.es.js.map +1 -1
- package/dist/chunks/index-CBRmb4jF.cjs.js +34 -0
- package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
- package/dist/chunks/{index-BEgCT-l6.es.js → index-D3KlpJA5.es.js} +673 -559
- package/dist/chunks/index-D3KlpJA5.es.js.map +1 -0
- package/dist/chunks/inline-svg-BzzKpbrB.cjs.js +2 -0
- package/dist/chunks/{inline-svg-Yb2OyzRw.cjs.js.map → inline-svg-BzzKpbrB.cjs.js.map} +1 -1
- package/dist/chunks/inline-svg-Cwl9dFvu.es.js +21 -0
- package/dist/chunks/{inline-svg-CbSC6O5X.es.js.map → inline-svg-Cwl9dFvu.es.js.map} +1 -1
- package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -1
- package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -1
- package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js.map +1 -0
- package/dist/chunks/loading-spinner-gf62wtm3.es.js +53 -0
- package/dist/chunks/loading-spinner-gf62wtm3.es.js.map +1 -0
- package/dist/chunks/localized-field-BJTWKclB.cjs.js +2 -0
- package/dist/chunks/localized-field-BJTWKclB.cjs.js.map +1 -0
- package/dist/chunks/localized-field-CHXN7Zf1.es.js +483 -0
- package/dist/chunks/localized-field-CHXN7Zf1.es.js.map +1 -0
- package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
- package/dist/chunks/menu-Cu7gIVGQ.cjs.js.map +1 -0
- package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-SxqgiwJf.es.js} +6 -6
- package/dist/chunks/menu-SxqgiwJf.es.js.map +1 -0
- package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-B5kFhLR0.es.js} +116 -106
- package/dist/chunks/money-input-B5kFhLR0.es.js.map +1 -0
- package/dist/chunks/money-input-CBKb1D73.cjs.js +2 -0
- package/dist/chunks/money-input-CBKb1D73.cjs.js.map +1 -0
- package/dist/chunks/money-input-field-0vXOOTvx.es.js +51 -0
- package/dist/chunks/money-input-field-0vXOOTvx.es.js.map +1 -0
- package/dist/chunks/money-input-field-DjpKPCGo.cjs.js +2 -0
- package/dist/chunks/money-input-field-DjpKPCGo.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-DkruVK6m.es.js +98 -0
- package/dist/chunks/multiline-text-input-DkruVK6m.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js +56 -0
- package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-4H3HucGg.es.js +101 -0
- package/dist/chunks/nimbus-provider-4H3HucGg.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js.map +1 -0
- package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js +2 -0
- package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js.map +1 -0
- package/dist/chunks/normalize-messages-D5T4I93D.es.js +52 -0
- package/dist/chunks/normalize-messages-D5T4I93D.es.js.map +1 -0
- package/dist/chunks/number-input-B29DJ2_U.cjs.js +2 -0
- package/dist/chunks/number-input-B29DJ2_U.cjs.js.map +1 -0
- package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-BVTqEzzS.es.js} +224 -229
- package/dist/chunks/number-input-BVTqEzzS.es.js.map +1 -0
- package/dist/chunks/number-input-field-DHBy_GKG.cjs.js +2 -0
- package/dist/chunks/number-input-field-DHBy_GKG.cjs.js.map +1 -0
- package/dist/chunks/number-input-field-DenXeCQQ.es.js +51 -0
- package/dist/chunks/number-input-field-DenXeCQQ.es.js.map +1 -0
- package/dist/chunks/pagination-BjUXs0hd.es.js +226 -0
- package/dist/chunks/pagination-BjUXs0hd.es.js.map +1 -0
- package/dist/chunks/pagination-D8Tn2HGh.cjs.js +2 -0
- package/dist/chunks/pagination-D8Tn2HGh.cjs.js.map +1 -0
- package/dist/chunks/password-input-DQM-caak.cjs.js +2 -0
- package/dist/chunks/password-input-DQM-caak.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-CNLpabCL.es.js +56 -0
- package/dist/chunks/password-input-field-CNLpabCL.es.js.map +1 -0
- package/dist/chunks/password-input-field-CgQEW15R.cjs.js +2 -0
- package/dist/chunks/password-input-field-CgQEW15R.cjs.js.map +1 -0
- package/dist/chunks/password-input-vu3kFdzW.es.js +47 -0
- package/dist/chunks/password-input-vu3kFdzW.es.js.map +1 -0
- package/dist/chunks/popover-CuA9VugH.es.js +11 -0
- package/dist/chunks/popover-CuA9VugH.es.js.map +1 -0
- package/dist/chunks/popover-Dhg--8YC.cjs.js +2 -0
- package/dist/chunks/popover-Dhg--8YC.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js → progress-bar-D99U1mF3.es.js} +2 -2
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-S4OwAttR.es.js} +8 -8
- package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
- package/dist/chunks/range-calendar-qoiJRxsH.es.js +229 -0
- package/dist/chunks/range-calendar-qoiJRxsH.es.js.map +1 -0
- package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js +2 -0
- package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-COjV3y9x.es.js +1200 -0
- package/dist/chunks/rich-text-input-COjV3y9x.es.js.map +1 -0
- package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js +4 -0
- package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js +151 -0
- package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js.map +1 -0
- package/dist/chunks/{search-input-CMrPbAUI.es.js → search-input-Ba7KSi4m.es.js} +147 -147
- package/dist/chunks/search-input-Ba7KSi4m.es.js.map +1 -0
- package/dist/chunks/search-input-DrTdsAJB.cjs.js +2 -0
- package/dist/chunks/search-input-DrTdsAJB.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-Dan6FtWD.cjs.js +2 -0
- package/dist/chunks/search-input-field-Dan6FtWD.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-G080Ti8W.es.js +51 -0
- package/dist/chunks/search-input-field-G080Ti8W.es.js.map +1 -0
- package/dist/chunks/{select-DG6qOekv.es.js → select-B3w10lhg.es.js} +229 -229
- package/dist/chunks/select-B3w10lhg.es.js.map +1 -0
- package/dist/chunks/select-DzHoPh1S.cjs.js +2 -0
- package/dist/chunks/select-DzHoPh1S.cjs.js.map +1 -0
- package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
- package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
- package/dist/chunks/{separator-B-ibkWW-.es.js → separator-DX_ZJMkp.es.js} +4 -4
- package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
- package/dist/chunks/split-button-BGDUOZcq.es.js +106 -0
- package/dist/chunks/split-button-BGDUOZcq.es.js.map +1 -0
- package/dist/chunks/split-button-Cu7MwPgo.cjs.js +2 -0
- package/dist/chunks/split-button-Cu7MwPgo.cjs.js.map +1 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
- package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
- package/dist/chunks/{switch-_TfZ37Nm.es.js → switch-GD8BjCPZ.es.js} +3 -3
- package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
- package/dist/chunks/{switch-BzYS9qlr.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
- package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
- package/dist/chunks/tabs-Dh_AK8jc.es.js +521 -0
- package/dist/chunks/tabs-Dh_AK8jc.es.js.map +1 -0
- package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
- package/dist/chunks/tabs-Dxwwd4jH.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-CMfyCIc3.es.js} +209 -208
- package/dist/chunks/tag-group-CMfyCIc3.es.js.map +1 -0
- package/dist/chunks/tag-group-rbUwxsaP.cjs.js +2 -0
- package/dist/chunks/tag-group-rbUwxsaP.cjs.js.map +1 -0
- package/dist/chunks/text-BtRhIklG.cjs.js.map +1 -1
- package/dist/chunks/text-CIb_VDvO.es.js.map +1 -1
- package/dist/chunks/{text-input-DOTYCJyJ.es.js → text-input-UaixbZjE.es.js} +3 -3
- package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
- package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js +2 -0
- package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js.map +1 -0
- package/dist/chunks/text-input-field-ChGQsEAJ.es.js +58 -0
- package/dist/chunks/text-input-field-ChGQsEAJ.es.js.map +1 -0
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-T4jAE9kM.es.js} +4 -4
- package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
- package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-QZSD0kko.es.js} +3 -3
- package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-QZSD0kko.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-9juUpmrj.es.js} +246 -244
- package/dist/chunks/useDateFormatter-9juUpmrj.es.js.map +1 -0
- package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js +2 -0
- package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js.map +1 -0
- package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js → useGridListItem-Bjqm2KGe.cjs.js} +2 -2
- package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js.map → useGridListItem-Bjqm2KGe.cjs.js.map} +1 -1
- package/dist/chunks/{useGridListItem-DAGp36bD.es.js → useGridListItem-CJrr2QNO.es.js} +4 -4
- package/dist/chunks/{useGridListItem-DAGp36bD.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
- package/dist/chunks/useListData-BGzhnkuO.cjs.js +2 -0
- package/dist/chunks/useListData-BGzhnkuO.cjs.js.map +1 -0
- package/dist/chunks/useListData-CX8_NxJv.es.js +211 -0
- package/dist/chunks/useListData-CX8_NxJv.es.js.map +1 -0
- package/dist/chunks/useListState-BjCb6LLO.cjs.js +2 -0
- package/dist/chunks/{useListState-QQtJHpsQ.cjs.js.map → useListState-BjCb6LLO.cjs.js.map} +1 -1
- package/dist/chunks/{useListState-BHLGQlP3.es.js → useListState-Dd0Mtev3.es.js} +17 -18
- package/dist/chunks/{useListState-BHLGQlP3.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
- package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js +2 -0
- package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js.map +1 -0
- package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js +53 -0
- package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js.map +1 -0
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-D8B_x4uj.es.js} +2 -2
- package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
- package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js → useSpinButton-RB0J1fiP.cjs.js} +2 -2
- package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js.map → useSpinButton-RB0J1fiP.cjs.js.map} +1 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +2 -2
- package/dist/components/alert/alert.d.ts +4 -4
- package/dist/components/alert/alert.messages.d.ts +6 -0
- package/dist/components/alert/alert.types.d.ts +2 -2
- package/dist/components/alert/components/alert.actions.d.ts +1 -1
- package/dist/components/alert/components/alert.description.d.ts +1 -1
- package/dist/components/alert/components/alert.dismiss-button.d.ts +1 -1
- package/dist/components/alert/components/alert.root.d.ts +0 -9
- package/dist/components/alert/components/alert.title.d.ts +1 -1
- package/dist/components/alert/intl/de.d.ts +9 -0
- package/dist/components/alert/intl/en.d.ts +9 -0
- package/dist/components/alert/intl/es.d.ts +9 -0
- package/dist/components/alert/intl/fr-FR.d.ts +9 -0
- package/dist/components/alert/intl/pt-BR.d.ts +9 -0
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.messages.d.ts +6 -0
- package/dist/components/avatar/intl/de.d.ts +9 -0
- package/dist/components/avatar/intl/en.d.ts +9 -0
- package/dist/components/avatar/intl/es.d.ts +9 -0
- package/dist/components/avatar/intl/fr-FR.d.ts +9 -0
- package/dist/components/avatar/intl/pt-BR.d.ts +9 -0
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/box/box.d.ts +2 -0
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.messages.d.ts +6 -0
- package/dist/components/calendar/intl/de.d.ts +12 -0
- package/dist/components/calendar/intl/en.d.ts +12 -0
- package/dist/components/calendar/intl/es.d.ts +12 -0
- package/dist/components/calendar/intl/fr-FR.d.ts +12 -0
- package/dist/components/calendar/intl/pt-BR.d.ts +12 -0
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card/card.recipe.d.ts +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combo-box/combo-box.messages.d.ts +6 -0
- package/dist/components/combo-box/intl/de.d.ts +12 -0
- package/dist/components/combo-box/intl/en.d.ts +12 -0
- package/dist/components/combo-box/intl/es.d.ts +12 -0
- package/dist/components/combo-box/intl/fr-FR.d.ts +12 -0
- package/dist/components/combo-box/intl/pt-BR.d.ts +12 -0
- package/dist/components/combobox/combobox.d.ts +203 -27
- package/dist/components/combobox/combobox.i18n.d.ts +3 -13
- package/dist/components/combobox/combobox.messages.d.ts +6 -0
- package/dist/components/combobox/combobox.recipe.d.ts +18 -17
- package/dist/components/combobox/combobox.slots.d.ts +14 -28
- package/dist/components/combobox/combobox.types.d.ts +704 -105
- package/dist/components/combobox/components/combobox.hidden-input.d.ts +17 -0
- package/dist/components/combobox/components/combobox.input.d.ts +20 -0
- package/dist/components/combobox/components/combobox.leading-element.d.ts +5 -5
- package/dist/components/combobox/components/combobox.listbox.d.ts +27 -0
- package/dist/components/combobox/components/combobox.option.d.ts +29 -5
- package/dist/components/combobox/components/combobox.popover.d.ts +27 -0
- package/dist/components/combobox/components/combobox.root-context.d.ts +13 -0
- package/dist/components/combobox/components/combobox.root.d.ts +26 -6
- package/dist/components/combobox/components/combobox.section.d.ts +32 -0
- package/dist/components/combobox/components/combobox.tag-group.d.ts +26 -0
- package/dist/components/combobox/components/combobox.trigger.d.ts +26 -0
- package/dist/components/combobox/components/index.d.ts +4 -9
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/intl/de.d.ts +12 -0
- package/dist/components/combobox/intl/en.d.ts +12 -0
- package/dist/components/combobox/intl/es.d.ts +12 -0
- package/dist/components/combobox/intl/fr-FR.d.ts +12 -0
- package/dist/components/combobox/intl/pt-BR.d.ts +12 -0
- package/dist/components/combobox/utils/collection.d.ts +13 -0
- package/dist/components/combobox/utils/filters.d.ts +339 -0
- package/dist/components/combobox/utils/selection.d.ts +10 -0
- package/dist/components/combobox/utils/test-data.d.ts +6 -0
- package/dist/components/combobox/utils/test-utils.d.ts +30 -0
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/components/data-table.body.d.ts +1 -1
- package/dist/components/data-table/components/data-table.context.d.ts +3 -1
- package/dist/components/data-table/components/data-table.header.d.ts +1 -1
- package/dist/components/data-table/components/data-table.table.d.ts +1 -1
- package/dist/components/data-table/components/index.d.ts +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -3
- package/dist/components/data-table/data-table.i18n.d.ts +5 -0
- package/dist/components/data-table/data-table.messages.d.ts +6 -0
- package/dist/components/data-table/data-table.recipe.d.ts +1 -1
- package/dist/components/data-table/data-table.types.d.ts +11 -2
- package/dist/components/data-table/intl/de.d.ts +40 -0
- package/dist/components/data-table/intl/en.d.ts +40 -0
- package/dist/components/data-table/intl/es.d.ts +40 -0
- package/dist/components/data-table/intl/fr-FR.d.ts +40 -0
- package/dist/components/data-table/intl/pt-BR.d.ts +40 -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/date-picker.messages.d.ts +6 -0
- package/dist/components/date-picker/date-picker.types.d.ts +1 -1
- package/dist/components/date-picker/intl/de.d.ts +14 -0
- package/dist/components/date-picker/intl/en.d.ts +14 -0
- package/dist/components/date-picker/intl/es.d.ts +14 -0
- package/dist/components/date-picker/intl/fr-FR.d.ts +14 -0
- package/dist/components/date-picker/intl/pt-BR.d.ts +14 -0
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.messages.d.ts +6 -0
- package/dist/components/date-range-picker/intl/de.d.ts +21 -0
- package/dist/components/date-range-picker/intl/en.d.ts +21 -0
- package/dist/components/date-range-picker/intl/es.d.ts +21 -0
- package/dist/components/date-range-picker/intl/fr-FR.d.ts +21 -0
- package/dist/components/date-range-picker/intl/pt-BR.d.ts +21 -0
- package/dist/components/date-range-picker-field.cjs +1 -1
- package/dist/components/date-range-picker-field.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog/dialog.messages.d.ts +6 -0
- package/dist/components/dialog/dialog.types.d.ts +2 -2
- package/dist/components/dialog/intl/de.d.ts +9 -0
- package/dist/components/dialog/intl/en.d.ts +9 -0
- package/dist/components/dialog/intl/es.d.ts +9 -0
- package/dist/components/dialog/intl/fr-FR.d.ts +9 -0
- package/dist/components/dialog/intl/pt-BR.d.ts +9 -0
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list/draggable-list.messages.d.ts +6 -0
- package/dist/components/draggable-list/intl/de.d.ts +10 -0
- package/dist/components/draggable-list/intl/en.d.ts +10 -0
- package/dist/components/draggable-list/intl/es.d.ts +10 -0
- package/dist/components/draggable-list/intl/fr-FR.d.ts +10 -0
- package/dist/components/draggable-list/intl/pt-BR.d.ts +10 -0
- package/dist/components/draggable-list.cjs +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer/components/drawer.context.d.ts +8 -2
- package/dist/components/drawer/drawer.messages.d.ts +6 -0
- package/dist/components/drawer/drawer.types.d.ts +2 -2
- package/dist/components/drawer/intl/de.d.ts +9 -0
- package/dist/components/drawer/intl/en.d.ts +9 -0
- package/dist/components/drawer/intl/es.d.ts +9 -0
- package/dist/components/drawer/intl/fr-FR.d.ts +9 -0
- package/dist/components/drawer/intl/pt-BR.d.ts +9 -0
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/field-errors/field-errors.d.ts +1 -1
- package/dist/components/field-errors/field-errors.messages.d.ts +6 -0
- package/dist/components/field-errors/field-errors.types.d.ts +1 -1
- package/dist/components/field-errors/intl/de.d.ts +23 -0
- package/dist/components/field-errors/intl/en.d.ts +23 -0
- package/dist/components/field-errors/intl/es.d.ts +23 -0
- package/dist/components/field-errors/intl/fr-FR.d.ts +23 -0
- package/dist/components/field-errors/intl/pt-BR.d.ts +23 -0
- package/dist/components/field-errors.cjs +1 -1
- package/dist/components/field-errors.es.js +1 -1
- package/dist/components/fields.cjs +1 -1
- package/dist/components/fields.es.js +13 -3
- package/dist/components/fields.es.js.map +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/icon-button/icon-button.types.d.ts +15 -3
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button/icon-toggle-button.types.d.ts +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/image/image.d.ts +2 -0
- package/dist/components/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +1 -1
- package/dist/components/list/components/index.d.ts +3 -0
- package/dist/components/list/components/list.indicator.d.ts +19 -0
- package/dist/components/list/components/list.item.d.ts +15 -0
- package/dist/components/list/components/list.root.d.ts +25 -0
- package/dist/components/list/list.d.ts +3 -6
- package/dist/components/loading-spinner/intl/de.d.ts +9 -0
- package/dist/components/loading-spinner/intl/en.d.ts +9 -0
- package/dist/components/loading-spinner/intl/es.d.ts +9 -0
- package/dist/components/loading-spinner/intl/fr-FR.d.ts +9 -0
- package/dist/components/loading-spinner/intl/pt-BR.d.ts +9 -0
- package/dist/components/loading-spinner/loading-spinner.messages.d.ts +6 -0
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field/intl/de.d.ts +14 -0
- package/dist/components/localized-field/intl/en.d.ts +14 -0
- package/dist/components/localized-field/intl/es.d.ts +14 -0
- package/dist/components/localized-field/intl/fr-FR.d.ts +14 -0
- package/dist/components/localized-field/intl/pt-BR.d.ts +14 -0
- package/dist/components/localized-field/localized-field.messages.d.ts +6 -0
- package/dist/components/localized-field/localized-field.types.d.ts +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input/intl/de.d.ts +11 -0
- package/dist/components/money-input/intl/en.d.ts +11 -0
- package/dist/components/money-input/intl/es.d.ts +11 -0
- package/dist/components/money-input/intl/fr-FR.d.ts +11 -0
- package/dist/components/money-input/intl/pt-BR.d.ts +11 -0
- package/dist/components/money-input/money-input.messages.d.ts +6 -0
- package/dist/components/money-input/money-input.recipe.d.ts +1 -1
- package/dist/components/money-input-field.cjs +2 -0
- package/dist/components/money-input-field.cjs.map +1 -0
- package/dist/components/money-input-field.es.js +5 -0
- package/dist/components/money-input-field.es.js.map +1 -0
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input/multiline-text-input.types.d.ts +1 -1
- package/dist/components/multiline-text-input-field.cjs +2 -0
- package/dist/components/multiline-text-input-field.cjs.map +1 -0
- package/dist/components/multiline-text-input-field.es.js +5 -0
- package/dist/components/multiline-text-input-field.es.js.map +1 -0
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider/index.d.ts +0 -1
- package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -0
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -3
- package/dist/components/nimbus-provider.es.js.map +1 -1
- package/dist/components/number-input/intl/de.d.ts +10 -0
- package/dist/components/number-input/intl/en.d.ts +10 -0
- package/dist/components/number-input/intl/es.d.ts +10 -0
- package/dist/components/number-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/number-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/number-input/number-input.messages.d.ts +6 -0
- package/dist/components/number-input-field.cjs +2 -0
- package/dist/components/number-input-field.cjs.map +1 -0
- package/dist/components/number-input-field.es.js +5 -0
- package/dist/components/number-input-field.es.js.map +1 -0
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination/intl/de.d.ts +16 -0
- package/dist/components/pagination/intl/en.d.ts +16 -0
- package/dist/components/pagination/intl/es.d.ts +16 -0
- package/dist/components/pagination/intl/fr-FR.d.ts +16 -0
- package/dist/components/pagination/intl/pt-BR.d.ts +16 -0
- package/dist/components/pagination/pagination.messages.d.ts +6 -0
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input/intl/de.d.ts +10 -0
- package/dist/components/password-input/intl/en.d.ts +10 -0
- package/dist/components/password-input/intl/es.d.ts +10 -0
- package/dist/components/password-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/password-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/password-input/password-input.messages.d.ts +6 -0
- package/dist/components/password-input-field.cjs +2 -0
- package/dist/components/password-input-field.cjs.map +1 -0
- package/dist/components/password-input-field.es.js +5 -0
- package/dist/components/password-input-field.es.js.map +1 -0
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/patterns.cjs +1 -1
- package/dist/components/patterns.es.js +13 -3
- package/dist/components/patterns.es.js.map +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.slots.d.ts +2 -4
- package/dist/components/popover/popover.types.d.ts +12 -2
- 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/intl/de.d.ts +12 -0
- package/dist/components/range-calendar/intl/en.d.ts +12 -0
- package/dist/components/range-calendar/intl/es.d.ts +12 -0
- package/dist/components/range-calendar/intl/fr-FR.d.ts +12 -0
- package/dist/components/range-calendar/intl/pt-BR.d.ts +12 -0
- package/dist/components/range-calendar/range-calendar.messages.d.ts +6 -0
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/constants/text-styles.d.ts +2 -3
- package/dist/components/rich-text-input/intl/de.d.ts +32 -0
- package/dist/components/rich-text-input/intl/en.d.ts +32 -0
- package/dist/components/rich-text-input/intl/es.d.ts +32 -0
- package/dist/components/rich-text-input/intl/fr-FR.d.ts +32 -0
- package/dist/components/rich-text-input/intl/pt-BR.d.ts +32 -0
- package/dist/components/rich-text-input/rich-text-input.messages.d.ts +6 -0
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input/intl/de.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/en.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/es.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/fr-FR.d.ts +10 -0
- package/dist/components/scoped-search-input/intl/pt-BR.d.ts +10 -0
- package/dist/components/scoped-search-input/scoped-search-input.messages.d.ts +6 -0
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input/intl/de.d.ts +9 -0
- package/dist/components/search-input/intl/en.d.ts +9 -0
- package/dist/components/search-input/intl/es.d.ts +9 -0
- package/dist/components/search-input/intl/fr-FR.d.ts +9 -0
- package/dist/components/search-input/intl/pt-BR.d.ts +9 -0
- package/dist/components/search-input/search-input.messages.d.ts +6 -0
- package/dist/components/search-input-field.cjs +2 -0
- package/dist/components/search-input-field.cjs.map +1 -0
- package/dist/components/search-input-field.es.js +5 -0
- package/dist/components/search-input-field.es.js.map +1 -0
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/components/select.root.d.ts +2 -2
- package/dist/components/select/intl/de.d.ts +9 -0
- package/dist/components/select/intl/en.d.ts +9 -0
- package/dist/components/select/intl/es.d.ts +9 -0
- package/dist/components/select/intl/fr-FR.d.ts +9 -0
- package/dist/components/select/intl/pt-BR.d.ts +9 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.messages.d.ts +6 -0
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.types.d.ts +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/intl/de.d.ts +9 -0
- package/dist/components/split-button/intl/en.d.ts +9 -0
- package/dist/components/split-button/intl/es.d.ts +9 -0
- package/dist/components/split-button/intl/fr-FR.d.ts +9 -0
- package/dist/components/split-button/intl/pt-BR.d.ts +9 -0
- package/dist/components/split-button/split-button.messages.d.ts +6 -0
- package/dist/components/split-button/split-button.types.d.ts +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/stack/index.d.ts +2 -1
- package/dist/components/stack/stack.d.ts +3 -5
- package/dist/components/stack/stack.types.d.ts +33 -0
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs/components/tabs.root.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.recipe.d.ts +12 -11
- package/dist/components/tabs/tabs.slots.d.ts +10 -0
- package/dist/components/tabs/tabs.types.d.ts +14 -0
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group/intl/de.d.ts +9 -0
- package/dist/components/tag-group/intl/en.d.ts +9 -0
- package/dist/components/tag-group/intl/es.d.ts +9 -0
- package/dist/components/tag-group/intl/fr-FR.d.ts +9 -0
- package/dist/components/tag-group/intl/pt-BR.d.ts +9 -0
- package/dist/components/tag-group/tag-group.messages.d.ts +6 -0
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text/text.d.ts +2 -0
- package/dist/components/text-input-field.cjs +1 -1
- package/dist/components/text-input-field.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 -2
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js +121 -122
- package/dist/components/utils.es.js.map +1 -1
- package/dist/constants/color-palettes.d.ts +24 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-localized-string-formatter/index.d.ts +1 -0
- package/dist/hooks/use-localized-string-formatter/use-localized-string-formatter.d.ts +56 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +278 -268
- package/dist/index.es.js.map +1 -1
- package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.types.d.ts +12 -14
- package/dist/patterns/fields/index.d.ts +5 -0
- package/dist/patterns/fields/money-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/money-input-field/money-input-field.d.ts +32 -0
- package/dist/patterns/fields/money-input-field/money-input-field.types.d.ts +56 -0
- package/dist/patterns/fields/multiline-text-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.d.ts +30 -0
- package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.types.d.ts +44 -0
- package/dist/patterns/fields/number-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/number-input-field/number-input-field.d.ts +31 -0
- package/dist/patterns/fields/number-input-field/number-input-field.types.d.ts +52 -0
- package/dist/patterns/fields/password-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/password-input-field/password-input-field.d.ts +28 -0
- package/dist/patterns/fields/password-input-field/password-input-field.types.d.ts +43 -0
- package/dist/patterns/fields/search-input-field/index.d.ts +2 -0
- package/dist/patterns/fields/search-input-field/search-input-field.d.ts +30 -0
- package/dist/patterns/fields/search-input-field/search-input-field.types.d.ts +50 -0
- package/dist/patterns/fields/text-input-field/text-input-field.d.ts +1 -1
- package/dist/patterns/fields/text-input-field/text-input-field.types.d.ts +8 -3
- package/dist/setup-jsdom-polyfills.cjs +1 -1
- package/dist/setup-jsdom-polyfills.cjs.map +1 -1
- package/dist/setup-jsdom-polyfills.es.js +17 -0
- package/dist/setup-jsdom-polyfills.es.js.map +1 -1
- package/dist/theme/semantic-tokens/colors.d.ts +2 -8
- package/dist/theme/semantic-tokens/index.d.ts +1 -4
- package/dist/theme/slot-recipes/index.d.ts +34 -32
- package/dist/type-utils/shared-types.d.ts +12 -4
- package/dist/utils/display-color-palettes.d.ts +39 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/normalize-messages.d.ts +10 -0
- package/package.json +32 -28
- package/dist/chunks/DateField-B5u8QZFY.cjs.js +0 -2
- package/dist/chunks/DateField-B5u8QZFY.cjs.js.map +0 -1
- package/dist/chunks/DateField-C5JgBb30.es.js.map +0 -1
- package/dist/chunks/TextArea-2QJpeMJq.cjs.js +0 -2
- package/dist/chunks/TextArea-2QJpeMJq.cjs.js.map +0 -1
- package/dist/chunks/TextArea-CXEdUjgW.es.js +0 -42
- package/dist/chunks/TextArea-CXEdUjgW.es.js.map +0 -1
- package/dist/chunks/alert-ByKnzJtr.cjs.js +0 -2
- package/dist/chunks/alert-ByKnzJtr.cjs.js.map +0 -1
- package/dist/chunks/alert-Cb8WoJYV.es.js +0 -211
- package/dist/chunks/alert-Cb8WoJYV.es.js.map +0 -1
- package/dist/chunks/avatar-Dx_Cda2J.es.js +0 -47
- package/dist/chunks/avatar-Dx_Cda2J.es.js.map +0 -1
- package/dist/chunks/avatar-wRR1leVi.cjs.js +0 -2
- package/dist/chunks/avatar-wRR1leVi.cjs.js.map +0 -1
- package/dist/chunks/calendar-B--ZxTlQ.es.js +0 -217
- package/dist/chunks/calendar-B--ZxTlQ.es.js.map +0 -1
- package/dist/chunks/calendar-DLSOwy_e.cjs.js +0 -2
- package/dist/chunks/calendar-DLSOwy_e.cjs.js.map +0 -1
- package/dist/chunks/card-B2TxE_Ez.cjs.js +0 -2
- package/dist/chunks/card-B2TxE_Ez.cjs.js.map +0 -1
- package/dist/chunks/card-CEfEgF48.es.js +0 -120
- package/dist/chunks/card-CEfEgF48.es.js.map +0 -1
- package/dist/chunks/combobox-B2nkVE2H.cjs.js +0 -2
- package/dist/chunks/combobox-B2nkVE2H.cjs.js.map +0 -1
- package/dist/chunks/combobox-COyroO64.es.js +0 -2497
- package/dist/chunks/combobox-COyroO64.es.js.map +0 -1
- package/dist/chunks/data-table-BzY3lLyR.cjs.js +0 -2
- package/dist/chunks/data-table-BzY3lLyR.cjs.js.map +0 -1
- package/dist/chunks/data-table-C0rC7Jgu.es.js.map +0 -1
- package/dist/chunks/date-picker-8kdn6Ih5.es.js +0 -218
- package/dist/chunks/date-picker-8kdn6Ih5.es.js.map +0 -1
- package/dist/chunks/date-picker-CxJ6zMkz.cjs.js +0 -2
- package/dist/chunks/date-picker-CxJ6zMkz.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js +0 -2
- package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-Di9p8cKs.es.js +0 -356
- package/dist/chunks/date-range-picker-Di9p8cKs.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-D3tLPzMb.es.js.map +0 -1
- package/dist/chunks/date-range-picker-field-DipL5QZq.cjs.js.map +0 -1
- package/dist/chunks/dialog-qw6IMWj3.cjs.js +0 -2
- package/dist/chunks/dialog-qw6IMWj3.cjs.js.map +0 -1
- package/dist/chunks/dialog-z8EM12xr.es.js.map +0 -1
- package/dist/chunks/drawer-BZBluK-I.es.js.map +0 -1
- package/dist/chunks/drawer-DfJY_5pD.cjs.js +0 -2
- package/dist/chunks/drawer-DfJY_5pD.cjs.js.map +0 -1
- package/dist/chunks/field-errors-ClQprmQz.es.js +0 -213
- package/dist/chunks/field-errors-ClQprmQz.es.js.map +0 -1
- package/dist/chunks/field-errors-D2re_C_c.cjs.js +0 -2
- package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +0 -1
- package/dist/chunks/form-field-BqlkPY29.es.js.map +0 -1
- package/dist/chunks/form-field-lALRYL6D.cjs.js +0 -2
- package/dist/chunks/form-field-lALRYL6D.cjs.js.map +0 -1
- package/dist/chunks/icon-CenxuChf.es.js +0 -11
- package/dist/chunks/icon-D39U--jA.cjs.js +0 -2
- package/dist/chunks/icon-button-BUmqYcIF.cjs.js +0 -2
- package/dist/chunks/icon-button-BUmqYcIF.cjs.js.map +0 -1
- package/dist/chunks/icon-button-DgL7XNUZ.es.js +0 -14
- package/dist/chunks/icon-button-DgL7XNUZ.es.js.map +0 -1
- package/dist/chunks/icon-toggle-button-BKmjmlZt.es.js.map +0 -1
- package/dist/chunks/icon-toggle-button-D3spgxe2.cjs.js.map +0 -1
- package/dist/chunks/index-BEgCT-l6.es.js.map +0 -1
- package/dist/chunks/index-DzRjEtIu.cjs.js +0 -34
- package/dist/chunks/index-DzRjEtIu.cjs.js.map +0 -1
- package/dist/chunks/inline-svg-CbSC6O5X.es.js +0 -21
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DF6c3rBM.es.js +0 -59
- package/dist/chunks/loading-spinner-DF6c3rBM.es.js.map +0 -1
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +0 -1
- package/dist/chunks/localized-field-CtLqzEnl.cjs.js +0 -2
- package/dist/chunks/localized-field-CtLqzEnl.cjs.js.map +0 -1
- package/dist/chunks/localized-field-XLDcWlU1.es.js +0 -470
- package/dist/chunks/localized-field-XLDcWlU1.es.js.map +0 -1
- package/dist/chunks/menu-C3Ovi5Mr.es.js.map +0 -1
- package/dist/chunks/menu-Vj3cVc_v.cjs.js.map +0 -1
- package/dist/chunks/money-input-B2tSXXU9.cjs.js +0 -2
- package/dist/chunks/money-input-B2tSXXU9.cjs.js.map +0 -1
- package/dist/chunks/money-input-BEek-VSq.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-D5vbZHyU.es.js +0 -64
- package/dist/chunks/multiline-text-input-D5vbZHyU.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js +0 -2
- package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js.map +0 -1
- package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js +0 -102
- package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js.map +0 -1
- package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js +0 -2
- package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js.map +0 -1
- package/dist/chunks/number-input-CwrgDAWw.cjs.js +0 -2
- package/dist/chunks/number-input-CwrgDAWw.cjs.js.map +0 -1
- package/dist/chunks/number-input-DrhSvm6o.es.js.map +0 -1
- package/dist/chunks/pagination-C6OYOaIl.cjs.js +0 -2
- package/dist/chunks/pagination-C6OYOaIl.cjs.js.map +0 -1
- package/dist/chunks/pagination-aj1F0182.es.js +0 -210
- package/dist/chunks/pagination-aj1F0182.es.js.map +0 -1
- package/dist/chunks/password-input-BILx_1d0.cjs.js +0 -2
- package/dist/chunks/password-input-BILx_1d0.cjs.js.map +0 -1
- package/dist/chunks/password-input-DTPr52a3.es.js +0 -54
- package/dist/chunks/password-input-DTPr52a3.es.js.map +0 -1
- package/dist/chunks/popover-BAIwOPdC.es.js +0 -14
- package/dist/chunks/popover-BAIwOPdC.es.js.map +0 -1
- package/dist/chunks/popover-DY7ASSCU.cjs.js +0 -2
- package/dist/chunks/popover-DY7ASSCU.cjs.js.map +0 -1
- package/dist/chunks/range-calendar-BagHIF-Y.es.js +0 -219
- package/dist/chunks/range-calendar-BagHIF-Y.es.js.map +0 -1
- package/dist/chunks/range-calendar-sHWelH3C.cjs.js +0 -2
- package/dist/chunks/range-calendar-sHWelH3C.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js +0 -10
- package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CZqXRWdM.es.js +0 -1200
- package/dist/chunks/rich-text-input-CZqXRWdM.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js +0 -2
- package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js.map +0 -1
- package/dist/chunks/scoped-search-input-DY4w22Ki.es.js +0 -152
- package/dist/chunks/scoped-search-input-DY4w22Ki.es.js.map +0 -1
- package/dist/chunks/search-input-Bl0EswfK.cjs.js +0 -2
- package/dist/chunks/search-input-Bl0EswfK.cjs.js.map +0 -1
- package/dist/chunks/search-input-CMrPbAUI.es.js.map +0 -1
- package/dist/chunks/select-B2MAR-fq.cjs.js +0 -2
- package/dist/chunks/select-B2MAR-fq.cjs.js.map +0 -1
- package/dist/chunks/select-DG6qOekv.es.js.map +0 -1
- package/dist/chunks/split-button-BpZ8jMvw.es.js +0 -106
- package/dist/chunks/split-button-BpZ8jMvw.es.js.map +0 -1
- package/dist/chunks/split-button-C99oShiQ.cjs.js +0 -2
- package/dist/chunks/split-button-C99oShiQ.cjs.js.map +0 -1
- package/dist/chunks/tabs-HOHhoLn5.es.js +0 -502
- package/dist/chunks/tabs-HOHhoLn5.es.js.map +0 -1
- package/dist/chunks/tabs-gitNliDG.cjs.js +0 -2
- package/dist/chunks/tabs-gitNliDG.cjs.js.map +0 -1
- package/dist/chunks/tag-group-Aa30DcsU.es.js.map +0 -1
- package/dist/chunks/tag-group-Ci_H89V0.cjs.js +0 -2
- package/dist/chunks/tag-group-Ci_H89V0.cjs.js.map +0 -1
- package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js +0 -2
- package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js.map +0 -1
- package/dist/chunks/text-input-field-CkcoMrv2.es.js +0 -55
- package/dist/chunks/text-input-field-CkcoMrv2.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-886GJ5w1.es.js.map +0 -1
- package/dist/chunks/useDateFormatter-WCaFojul.cjs.js +0 -2
- package/dist/chunks/useDateFormatter-WCaFojul.cjs.js.map +0 -1
- package/dist/chunks/useFilter-BgT0isJK.es.js +0 -36
- package/dist/chunks/useFilter-BgT0isJK.es.js.map +0 -1
- package/dist/chunks/useFilter-CAVKltBB.cjs.js +0 -2
- package/dist/chunks/useFilter-CAVKltBB.cjs.js.map +0 -1
- package/dist/chunks/useListState-QQtJHpsQ.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js +0 -97
- package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js.map +0 -1
- package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js +0 -2
- package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-B29G7the.es.js +0 -35
- package/dist/chunks/useSingleSelectListState-B29G7the.es.js.map +0 -1
- package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js +0 -2
- package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js.map +0 -1
- package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.multi-select-root.d.ts +0 -7
- package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.option-group.d.ts +0 -11
- package/dist/components/combobox/components/combobox.options.d.ts +0 -10
- package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +0 -7
- package/dist/components/combobox/components/combobox.single-select-input.d.ts +0 -7
- package/dist/components/combobox/components/combobox.single-select-root.d.ts +0 -7
|
@@ -1,1200 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as C, useMemo as A, useRef as ye, useImperativeHandle as De, useState as ie, useEffect as Le } from "react";
|
|
3
|
-
import { createSlotRecipeContext as Fe, mergeRefs as Ke, useSlotRecipe as He } from "@chakra-ui/react";
|
|
4
|
-
import { e as Oe } from "./extract-style-props-DChosa6I.es.js";
|
|
5
|
-
import { n as $e } from "./index-BEgCT-l6.es.js";
|
|
6
|
-
import { Transforms as I, Text as W, Element as q, Editor as x, Range as xe, createEditor as Pe } from "slate";
|
|
7
|
-
import { ReactEditor as ne, useSlate as J, withReact as Be, Slate as _e, Editable as qe } from "slate-react";
|
|
8
|
-
import { withHistory as ze } from "slate-history";
|
|
9
|
-
import { $ as Ue } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
10
|
-
import { defineMessages as Ve, useIntl as Te } from "react-intl";
|
|
11
|
-
import { G as ae } from "./group-CCBgdph2.es.js";
|
|
12
|
-
import { MoreHoriz as je, FormatStrikethrough as We, Code as Ge, KeyboardArrowDown as Xe, FormatBold as Ye, FormatItalic as Qe, FormatUnderlined as Je, FormatListBulleted as Ze, FormatListNumbered as et, Undo as tt, Redo as rt } from "@commercetools/nimbus-icons";
|
|
13
|
-
import { M as v } from "./menu-C3Ovi5Mr.es.js";
|
|
14
|
-
import { T as b } from "./tooltip-D3QrrizN.es.js";
|
|
15
|
-
import { I as se } from "./icon-button-DgL7XNUZ.es.js";
|
|
16
|
-
import { B } from "./box-DuBoAZvq.es.js";
|
|
17
|
-
import { T as L } from "./text-CIb_VDvO.es.js";
|
|
18
|
-
import { T as nt } from "./toolbar-D0WjTxz2.es.js";
|
|
19
|
-
import { S as le } from "./separator-B-ibkWW-.es.js";
|
|
20
|
-
import { T as ce } from "./toggle-button-group-BWpmMkEz.es.js";
|
|
21
|
-
import { I as U } from "./icon-toggle-button-BKmjmlZt.es.js";
|
|
22
|
-
import { V } from "./visually-hidden-Dj5CT-u_.es.js";
|
|
23
|
-
function Me(t) {
|
|
24
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
|
-
}
|
|
26
|
-
const { withProvider: st, withContext: Se } = /* @__PURE__ */ Fe({
|
|
27
|
-
key: "richTextInput"
|
|
28
|
-
}), ot = /* @__PURE__ */ st("div", "root"), it = /* @__PURE__ */ Se("div", "toolbar"), at = /* @__PURE__ */ Se("div", "editable"), Re = (t) => C(
|
|
29
|
-
(e) => () => {
|
|
30
|
-
const { selection: r } = t;
|
|
31
|
-
e(), r && !t.selection && I.select(t, r), ne.isFocused(t) || ne.focus(t);
|
|
32
|
-
},
|
|
33
|
-
[t]
|
|
34
|
-
), ue = {
|
|
35
|
-
"mod+b": "bold",
|
|
36
|
-
"mod+i": "italic",
|
|
37
|
-
"mod+u": "underline",
|
|
38
|
-
"mod+`": "code"
|
|
39
|
-
}, X = {
|
|
40
|
-
placeholder: "Start typing...",
|
|
41
|
-
isDisabled: !1,
|
|
42
|
-
isReadOnly: !1,
|
|
43
|
-
autoFocus: !1
|
|
44
|
-
}, de = {
|
|
45
|
-
blockquote: "block-quote",
|
|
46
|
-
p: "paragraph",
|
|
47
|
-
pre: "code",
|
|
48
|
-
h1: "heading-one",
|
|
49
|
-
h2: "heading-two",
|
|
50
|
-
h3: "heading-three",
|
|
51
|
-
h4: "heading-four",
|
|
52
|
-
h5: "heading-five",
|
|
53
|
-
ul: "bulleted-list",
|
|
54
|
-
ol: "numbered-list",
|
|
55
|
-
li: "list-item",
|
|
56
|
-
a: "link"
|
|
57
|
-
}, he = {
|
|
58
|
-
strong: "bold",
|
|
59
|
-
b: "bold",
|
|
60
|
-
em: "italic",
|
|
61
|
-
i: "italic",
|
|
62
|
-
u: "underline",
|
|
63
|
-
code: "code",
|
|
64
|
-
sup: "superscript",
|
|
65
|
-
sub: "subscript",
|
|
66
|
-
del: "strikethrough",
|
|
67
|
-
s: "strikethrough"
|
|
68
|
-
}, Q = {
|
|
69
|
-
STRIKETHROUGH: "strikethrough",
|
|
70
|
-
CODE: "code",
|
|
71
|
-
SUPERSCRIPT: "superscript",
|
|
72
|
-
SUBSCRIPT: "subscript"
|
|
73
|
-
}, lt = [
|
|
74
|
-
Q.STRIKETHROUGH,
|
|
75
|
-
Q.CODE
|
|
76
|
-
], ct = [
|
|
77
|
-
Q.SUPERSCRIPT,
|
|
78
|
-
Q.SUBSCRIPT
|
|
79
|
-
], c = /* @__PURE__ */ Ve({
|
|
80
|
-
// Toolbar
|
|
81
|
-
textFormatting: {
|
|
82
|
-
id: "Nimbus.RichTextInput.textFormatting",
|
|
83
|
-
description: "aria-label for the text formatting toolbar",
|
|
84
|
-
defaultMessage: "Text formatting"
|
|
85
|
-
},
|
|
86
|
-
textStyleMenu: {
|
|
87
|
-
id: "Nimbus.RichTextInput.textStyleMenu",
|
|
88
|
-
description: "aria-label for the text style menu trigger button",
|
|
89
|
-
defaultMessage: "Text style menu"
|
|
90
|
-
},
|
|
91
|
-
textStyle: {
|
|
92
|
-
id: "Nimbus.RichTextInput.textStyle",
|
|
93
|
-
description: "tooltip text for the text style menu",
|
|
94
|
-
defaultMessage: "Text style"
|
|
95
|
-
},
|
|
96
|
-
bold: {
|
|
97
|
-
id: "Nimbus.RichTextInput.bold",
|
|
98
|
-
description: "aria-label and tooltip for the bold formatting button",
|
|
99
|
-
defaultMessage: "Bold"
|
|
100
|
-
},
|
|
101
|
-
italic: {
|
|
102
|
-
id: "Nimbus.RichTextInput.italic",
|
|
103
|
-
description: "aria-label and tooltip for the italic formatting button",
|
|
104
|
-
defaultMessage: "Italic"
|
|
105
|
-
},
|
|
106
|
-
underline: {
|
|
107
|
-
id: "Nimbus.RichTextInput.underline",
|
|
108
|
-
description: "aria-label and tooltip for the underline formatting button",
|
|
109
|
-
defaultMessage: "Underline"
|
|
110
|
-
},
|
|
111
|
-
listFormatting: {
|
|
112
|
-
id: "Nimbus.RichTextInput.listFormatting",
|
|
113
|
-
description: "aria-label for the list formatting toggle group",
|
|
114
|
-
defaultMessage: "List formatting"
|
|
115
|
-
},
|
|
116
|
-
bulletedList: {
|
|
117
|
-
id: "Nimbus.RichTextInput.bulletedList",
|
|
118
|
-
description: "aria-label for the bulleted list button",
|
|
119
|
-
defaultMessage: "Bulleted list"
|
|
120
|
-
},
|
|
121
|
-
numberedList: {
|
|
122
|
-
id: "Nimbus.RichTextInput.numberedList",
|
|
123
|
-
description: "aria-label for the numbered list button",
|
|
124
|
-
defaultMessage: "Numbered list"
|
|
125
|
-
},
|
|
126
|
-
undo: {
|
|
127
|
-
id: "Nimbus.RichTextInput.undo",
|
|
128
|
-
description: "aria-label and tooltip for the undo button",
|
|
129
|
-
defaultMessage: "Undo"
|
|
130
|
-
},
|
|
131
|
-
redo: {
|
|
132
|
-
id: "Nimbus.RichTextInput.redo",
|
|
133
|
-
description: "aria-label and tooltip for the redo button",
|
|
134
|
-
defaultMessage: "Redo"
|
|
135
|
-
},
|
|
136
|
-
// Formatting Menu
|
|
137
|
-
moreFormattingOptions: {
|
|
138
|
-
id: "Nimbus.RichTextInput.moreFormattingOptions",
|
|
139
|
-
description: "aria-label for the more formatting options menu button",
|
|
140
|
-
defaultMessage: "More formatting options"
|
|
141
|
-
},
|
|
142
|
-
moreStyles: {
|
|
143
|
-
id: "Nimbus.RichTextInput.moreStyles",
|
|
144
|
-
description: "tooltip text for the more formatting options menu",
|
|
145
|
-
defaultMessage: "More styles"
|
|
146
|
-
},
|
|
147
|
-
strikethrough: {
|
|
148
|
-
id: "Nimbus.RichTextInput.strikethrough",
|
|
149
|
-
description: "label for the strikethrough menu item",
|
|
150
|
-
defaultMessage: "Strikethrough"
|
|
151
|
-
},
|
|
152
|
-
code: {
|
|
153
|
-
id: "Nimbus.RichTextInput.code",
|
|
154
|
-
description: "label for the code formatting menu item",
|
|
155
|
-
defaultMessage: "Code"
|
|
156
|
-
},
|
|
157
|
-
superscript: {
|
|
158
|
-
id: "Nimbus.RichTextInput.superscript",
|
|
159
|
-
description: "label for the superscript formatting menu item",
|
|
160
|
-
defaultMessage: "Superscript"
|
|
161
|
-
},
|
|
162
|
-
subscript: {
|
|
163
|
-
id: "Nimbus.RichTextInput.subscript",
|
|
164
|
-
description: "label for the subscript formatting menu item",
|
|
165
|
-
defaultMessage: "Subscript"
|
|
166
|
-
},
|
|
167
|
-
// Text Style Labels
|
|
168
|
-
paragraph: {
|
|
169
|
-
id: "Nimbus.RichTextInput.paragraph",
|
|
170
|
-
description: "label for paragraph text style",
|
|
171
|
-
defaultMessage: "Paragraph"
|
|
172
|
-
},
|
|
173
|
-
headingOne: {
|
|
174
|
-
id: "Nimbus.RichTextInput.headingOne",
|
|
175
|
-
description: "label for heading 1 text style",
|
|
176
|
-
defaultMessage: "Heading 1"
|
|
177
|
-
},
|
|
178
|
-
headingTwo: {
|
|
179
|
-
id: "Nimbus.RichTextInput.headingTwo",
|
|
180
|
-
description: "label for heading 2 text style",
|
|
181
|
-
defaultMessage: "Heading 2"
|
|
182
|
-
},
|
|
183
|
-
headingThree: {
|
|
184
|
-
id: "Nimbus.RichTextInput.headingThree",
|
|
185
|
-
description: "label for heading 3 text style",
|
|
186
|
-
defaultMessage: "Heading 3"
|
|
187
|
-
},
|
|
188
|
-
headingFour: {
|
|
189
|
-
id: "Nimbus.RichTextInput.headingFour",
|
|
190
|
-
description: "label for heading 4 text style",
|
|
191
|
-
defaultMessage: "Heading 4"
|
|
192
|
-
},
|
|
193
|
-
headingFive: {
|
|
194
|
-
id: "Nimbus.RichTextInput.headingFive",
|
|
195
|
-
description: "label for heading 5 text style",
|
|
196
|
-
defaultMessage: "Heading 5"
|
|
197
|
-
},
|
|
198
|
-
quote: {
|
|
199
|
-
id: "Nimbus.RichTextInput.quote",
|
|
200
|
-
description: "label for block quote text style",
|
|
201
|
-
defaultMessage: "Quote"
|
|
202
|
-
}
|
|
203
|
-
}), ut = (t) => [
|
|
204
|
-
{
|
|
205
|
-
id: "paragraph",
|
|
206
|
-
label: t.formatMessage(c.paragraph),
|
|
207
|
-
props: {
|
|
208
|
-
textStyle: "md",
|
|
209
|
-
fontWeight: "500"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
id: "heading-one",
|
|
214
|
-
label: t.formatMessage(c.headingOne),
|
|
215
|
-
props: {
|
|
216
|
-
textStyle: "2xl",
|
|
217
|
-
fontWeight: "500"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
id: "heading-two",
|
|
222
|
-
label: t.formatMessage(c.headingTwo),
|
|
223
|
-
props: {
|
|
224
|
-
textStyle: "xl",
|
|
225
|
-
fontWeight: "500"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
id: "heading-three",
|
|
230
|
-
label: t.formatMessage(c.headingThree),
|
|
231
|
-
props: {
|
|
232
|
-
textStyle: "lg",
|
|
233
|
-
fontWeight: "500"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: "heading-four",
|
|
238
|
-
label: t.formatMessage(c.headingFour),
|
|
239
|
-
props: {
|
|
240
|
-
textStyle: "md",
|
|
241
|
-
fontWeight: "500"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
id: "heading-five",
|
|
246
|
-
label: t.formatMessage(c.headingFive),
|
|
247
|
-
props: {
|
|
248
|
-
textStyle: "xs",
|
|
249
|
-
fontWeight: "500"
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: "block-quote",
|
|
254
|
-
label: t.formatMessage(c.quote),
|
|
255
|
-
props: {
|
|
256
|
-
textStyle: "md",
|
|
257
|
-
fontWeight: "400"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
], dt = [
|
|
261
|
-
"heading-one",
|
|
262
|
-
"heading-two",
|
|
263
|
-
"heading-three",
|
|
264
|
-
"heading-four",
|
|
265
|
-
"heading-five",
|
|
266
|
-
"block-quote"
|
|
267
|
-
];
|
|
268
|
-
/*!
|
|
269
|
-
* escape-html
|
|
270
|
-
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
271
|
-
* Copyright(c) 2015 Andreas Lubbe
|
|
272
|
-
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
273
|
-
* MIT Licensed
|
|
274
|
-
*/
|
|
275
|
-
var ee, fe;
|
|
276
|
-
function ht() {
|
|
277
|
-
if (fe) return ee;
|
|
278
|
-
fe = 1;
|
|
279
|
-
var t = /["'&<>]/;
|
|
280
|
-
ee = e;
|
|
281
|
-
function e(r) {
|
|
282
|
-
var s = "" + r, n = t.exec(s);
|
|
283
|
-
if (!n)
|
|
284
|
-
return s;
|
|
285
|
-
var l, u = "", d = 0, f = 0;
|
|
286
|
-
for (d = n.index; d < s.length; d++) {
|
|
287
|
-
switch (s.charCodeAt(d)) {
|
|
288
|
-
case 34:
|
|
289
|
-
l = """;
|
|
290
|
-
break;
|
|
291
|
-
case 38:
|
|
292
|
-
l = "&";
|
|
293
|
-
break;
|
|
294
|
-
case 39:
|
|
295
|
-
l = "'";
|
|
296
|
-
break;
|
|
297
|
-
case 60:
|
|
298
|
-
l = "<";
|
|
299
|
-
break;
|
|
300
|
-
case 62:
|
|
301
|
-
l = ">";
|
|
302
|
-
break;
|
|
303
|
-
default:
|
|
304
|
-
continue;
|
|
305
|
-
}
|
|
306
|
-
f !== d && (u += s.substring(f, d)), f = d + 1, u += l;
|
|
307
|
-
}
|
|
308
|
-
return f !== d ? u + s.substring(f, d) : u;
|
|
309
|
-
}
|
|
310
|
-
return ee;
|
|
311
|
-
}
|
|
312
|
-
var ft = /* @__PURE__ */ ht();
|
|
313
|
-
const Y = /* @__PURE__ */ Me(ft), we = `
|
|
314
|
-
`, H = () => [
|
|
315
|
-
{
|
|
316
|
-
type: "paragraph",
|
|
317
|
-
children: [{ text: "" }]
|
|
318
|
-
}
|
|
319
|
-
], pt = (t) => t.map(ke).join(""), ke = (t) => {
|
|
320
|
-
if (W.isText(t)) {
|
|
321
|
-
const s = t;
|
|
322
|
-
let n = Y(s.text);
|
|
323
|
-
return s.bold && (n = `<strong>${n}</strong>`), s.code && (n = `<code>${n}</code>`), s.italic && (n = `<em>${n}</em>`), s.underline && (n = `<u>${n}</u>`), s.superscript && (n = `<sup>${n}</sup>`), s.subscript && (n = `<sub>${n}</sub>`), s.strikethrough && (n = `<del>${n}</del>`), n = n.replace(new RegExp(we, "g"), "<br>"), n;
|
|
324
|
-
}
|
|
325
|
-
const e = t.children.map(ke).join(""), r = t;
|
|
326
|
-
switch (r.type) {
|
|
327
|
-
case "block-quote":
|
|
328
|
-
return `<blockquote>${e}</blockquote>`;
|
|
329
|
-
case "paragraph":
|
|
330
|
-
return `<p>${e}</p>`;
|
|
331
|
-
case "code":
|
|
332
|
-
return `<pre><code>${e}</code></pre>`;
|
|
333
|
-
case "bulleted-list":
|
|
334
|
-
return `<ul>${e}</ul>`;
|
|
335
|
-
case "numbered-list":
|
|
336
|
-
return `<ol>${e}</ol>`;
|
|
337
|
-
case "list-item":
|
|
338
|
-
return `<li>${e}</li>`;
|
|
339
|
-
case "heading-one":
|
|
340
|
-
return `<h1>${e}</h1>`;
|
|
341
|
-
case "heading-two":
|
|
342
|
-
return `<h2>${e}</h2>`;
|
|
343
|
-
case "heading-three":
|
|
344
|
-
return `<h3>${e}</h3>`;
|
|
345
|
-
case "heading-four":
|
|
346
|
-
return `<h4>${e}</h4>`;
|
|
347
|
-
case "heading-five":
|
|
348
|
-
return `<h5>${e}</h5>`;
|
|
349
|
-
case "link": {
|
|
350
|
-
let s = "";
|
|
351
|
-
if (r.url) {
|
|
352
|
-
const l = gt(r.url);
|
|
353
|
-
s = ` href="${Y(l)}"`;
|
|
354
|
-
}
|
|
355
|
-
let n = "";
|
|
356
|
-
if (r.htmlAttributes && typeof r.htmlAttributes == "object")
|
|
357
|
-
for (const [l, u] of Object.entries(r.htmlAttributes))
|
|
358
|
-
l.toLowerCase().startsWith("on") || (n += ` ${Y(l)}="${Y(String(u))}"`);
|
|
359
|
-
return `<a${s}${n}>${e}</a>`;
|
|
360
|
-
}
|
|
361
|
-
default:
|
|
362
|
-
return e;
|
|
363
|
-
}
|
|
364
|
-
}, oe = (t) => {
|
|
365
|
-
if (!t || t.trim() === "")
|
|
366
|
-
return H();
|
|
367
|
-
try {
|
|
368
|
-
if (t.includes("<p>") || t.includes("<h") || t.includes("<div>") || t.includes("<blockquote>") || t.includes("<ul>") || t.includes("<ol>")) {
|
|
369
|
-
const r = new DOMParser().parseFromString(t, "text/html").body, s = Array.from(r.childNodes).map(ve).filter(Boolean);
|
|
370
|
-
return Ce(s);
|
|
371
|
-
} else
|
|
372
|
-
return [
|
|
373
|
-
{
|
|
374
|
-
type: "paragraph",
|
|
375
|
-
children: [{ text: t }]
|
|
376
|
-
}
|
|
377
|
-
];
|
|
378
|
-
} catch (e) {
|
|
379
|
-
return console.warn("Failed to parse HTML:", e), H();
|
|
380
|
-
}
|
|
381
|
-
}, ve = (t) => {
|
|
382
|
-
if (t.nodeType === Node.TEXT_NODE)
|
|
383
|
-
return (t.textContent || "").replace(/<br\s*\/?>/gi, we);
|
|
384
|
-
if (t.nodeType !== Node.ELEMENT_NODE)
|
|
385
|
-
return null;
|
|
386
|
-
const e = t, r = e.tagName.toLowerCase(), s = Array.from(e.childNodes).map(ve).filter(Boolean);
|
|
387
|
-
if (r in de) {
|
|
388
|
-
const l = de[r], u = { type: l, children: [] };
|
|
389
|
-
if (l === "link") {
|
|
390
|
-
const d = e.getAttribute("href");
|
|
391
|
-
d && (u.url = d);
|
|
392
|
-
const f = {};
|
|
393
|
-
Array.from(e.attributes).forEach((m) => {
|
|
394
|
-
m.name !== "href" && !m.name.toLowerCase().startsWith("on") && (f[m.name] = m.value);
|
|
395
|
-
}), Object.keys(f).length > 0 && (u.htmlAttributes = f);
|
|
396
|
-
}
|
|
397
|
-
return u.children = mt(s), u;
|
|
398
|
-
}
|
|
399
|
-
if (r in he) {
|
|
400
|
-
const l = he[r];
|
|
401
|
-
return { text: te(s), [l]: !0 };
|
|
402
|
-
}
|
|
403
|
-
return r === "span" ? { text: te(s) } : { text: te(s) };
|
|
404
|
-
}, mt = (t) => {
|
|
405
|
-
const e = [];
|
|
406
|
-
for (const r of t)
|
|
407
|
-
typeof r == "string" ? r.trim() && e.push({ text: r }) : (r && W.isText(r) || r && q.isElement(r)) && e.push(r);
|
|
408
|
-
return e.length === 0 && e.push({ text: "" }), e;
|
|
409
|
-
}, Ie = (t) => t.children.map((e) => W.isText(e) ? e.text : q.isElement(e) ? Ie(e) : "").join(""), te = (t) => t.filter(Boolean).map((e) => typeof e == "string" ? e : e && typeof e == "object" && "text" in e ? e.text : e && typeof e == "object" && "children" in e ? Ie(e) : String(e || "")).join(""), gt = (t) => {
|
|
410
|
-
const e = String(t).trim().toLowerCase();
|
|
411
|
-
return e.startsWith("javascript:") || e.startsWith("data:") || e.startsWith("vbscript:") ? "#" : String(t);
|
|
412
|
-
}, Ce = (t) => !Array.isArray(t) || t.length === 0 ? H() : t.map((e) => q.isElement(e) ? !e.children || e.children.length === 0 ? { ...e, children: [{ text: "" }] } : e : {
|
|
413
|
-
type: "paragraph",
|
|
414
|
-
children: [{ text: String(e) }]
|
|
415
|
-
}), pe = (t) => {
|
|
416
|
-
try {
|
|
417
|
-
const e = new URL(t);
|
|
418
|
-
return e.protocol === "http:" || e.protocol === "https:";
|
|
419
|
-
} catch {
|
|
420
|
-
return !1;
|
|
421
|
-
}
|
|
422
|
-
}, me = ["bulleted-list", "numbered-list"], bt = [
|
|
423
|
-
"bold",
|
|
424
|
-
"code",
|
|
425
|
-
"italic",
|
|
426
|
-
"underline",
|
|
427
|
-
"superscript",
|
|
428
|
-
"subscript",
|
|
429
|
-
"strikethrough"
|
|
430
|
-
], j = (t) => bt.includes(t), yt = (t, e) => j(e) ? t[e] === !0 : !1, F = (t, e) => {
|
|
431
|
-
const { selection: r } = t;
|
|
432
|
-
if (!r || xe.isCollapsed(r)) {
|
|
433
|
-
const s = x.marks(t);
|
|
434
|
-
if (s && j(e))
|
|
435
|
-
return s[e] === !0;
|
|
436
|
-
if (!r && t.children.length > 0) {
|
|
437
|
-
const n = t.children[0];
|
|
438
|
-
if (n.children && n.children.length > 0) {
|
|
439
|
-
const l = n.children[0];
|
|
440
|
-
if (W.isText(l) && j(e))
|
|
441
|
-
return l[e] === !0;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return !1;
|
|
445
|
-
}
|
|
446
|
-
try {
|
|
447
|
-
const s = Array.from(
|
|
448
|
-
x.nodes(t, {
|
|
449
|
-
at: r,
|
|
450
|
-
match: (n) => W.isText(n)
|
|
451
|
-
})
|
|
452
|
-
);
|
|
453
|
-
if (s.length === 0) {
|
|
454
|
-
const n = x.marks(t);
|
|
455
|
-
return !n || !j(e) ? !1 : n[e] === !0;
|
|
456
|
-
}
|
|
457
|
-
return s.every(([n]) => yt(n, e));
|
|
458
|
-
} catch {
|
|
459
|
-
const s = x.marks(t);
|
|
460
|
-
return !s || !j(e) ? !1 : s[e] === !0;
|
|
461
|
-
}
|
|
462
|
-
}, P = (t, e) => {
|
|
463
|
-
const { selection: r } = t;
|
|
464
|
-
if (r) {
|
|
465
|
-
const [s] = Array.from(
|
|
466
|
-
x.nodes(t, {
|
|
467
|
-
at: x.unhangRange(t, r),
|
|
468
|
-
match: (n) => !x.isEditor(n) && q.isElement(n) && n.type === e
|
|
469
|
-
})
|
|
470
|
-
);
|
|
471
|
-
return !!s;
|
|
472
|
-
}
|
|
473
|
-
return t.children.length > 0 ? t.children[0].type === e : !1;
|
|
474
|
-
}, K = (t, e) => {
|
|
475
|
-
F(t, e) ? x.removeMark(t, e) : x.addMark(t, e, !0);
|
|
476
|
-
}, re = (t, e) => {
|
|
477
|
-
const r = P(t, e), s = me.includes(e);
|
|
478
|
-
I.unwrapNodes(t, {
|
|
479
|
-
match: (l) => !x.isEditor(l) && q.isElement(l) && me.includes(l.type),
|
|
480
|
-
split: !0
|
|
481
|
-
});
|
|
482
|
-
let n;
|
|
483
|
-
if (r ? n = { type: "paragraph" } : s ? n = { type: "list-item" } : n = { type: e }, I.setNodes(t, n), !r && s) {
|
|
484
|
-
const l = { type: e, children: [] };
|
|
485
|
-
I.wrapNodes(t, l);
|
|
486
|
-
}
|
|
487
|
-
}, xt = (t) => {
|
|
488
|
-
ne.focus(t);
|
|
489
|
-
}, Tt = (t, e) => {
|
|
490
|
-
const r = oe(e);
|
|
491
|
-
I.delete(t, {
|
|
492
|
-
at: {
|
|
493
|
-
anchor: x.start(t, []),
|
|
494
|
-
focus: x.end(t, [])
|
|
495
|
-
}
|
|
496
|
-
}), I.insertNodes(t, r), I.select(t, x.start(t, []));
|
|
497
|
-
}, Mt = (t) => {
|
|
498
|
-
const { insertData: e, insertText: r, isInline: s } = t;
|
|
499
|
-
return t.isInline = (n) => n.type === "link" ? !0 : s(n), t.insertText = (n) => {
|
|
500
|
-
n && pe(n) ? ge(t, n) : r(n);
|
|
501
|
-
}, t.insertData = (n) => {
|
|
502
|
-
const l = n.getData("text/plain");
|
|
503
|
-
l && pe(l) ? ge(t, l) : e(n);
|
|
504
|
-
}, t;
|
|
505
|
-
}, St = (t) => {
|
|
506
|
-
I.unwrapNodes(t, {
|
|
507
|
-
match: (e) => !x.isEditor(e) && q.isElement(e) && e.type === "link"
|
|
508
|
-
});
|
|
509
|
-
}, ge = (t, e) => {
|
|
510
|
-
P(t, "link") && St(t);
|
|
511
|
-
const { selection: r } = t, s = r && xe.isCollapsed(r), n = {
|
|
512
|
-
type: "link",
|
|
513
|
-
url: e,
|
|
514
|
-
children: s ? [{ text: e }] : []
|
|
515
|
-
};
|
|
516
|
-
s ? I.insertNodes(t, n) : (I.wrapNodes(t, n, { split: !0 }), I.collapse(t, { edge: "end" }));
|
|
517
|
-
}, Rt = ({
|
|
518
|
-
attributes: t,
|
|
519
|
-
children: e,
|
|
520
|
-
element: r
|
|
521
|
-
}) => {
|
|
522
|
-
const s = r, n = { textAlign: s.align };
|
|
523
|
-
switch (s.type) {
|
|
524
|
-
case "block-quote":
|
|
525
|
-
return /* @__PURE__ */ o("blockquote", { style: n, ...t, children: e });
|
|
526
|
-
case "bulleted-list":
|
|
527
|
-
return /* @__PURE__ */ o("ul", { style: n, ...t, children: e });
|
|
528
|
-
case "heading-one":
|
|
529
|
-
return /* @__PURE__ */ o("h1", { style: n, ...t, children: e });
|
|
530
|
-
case "heading-two":
|
|
531
|
-
return /* @__PURE__ */ o("h2", { style: n, ...t, children: e });
|
|
532
|
-
case "heading-three":
|
|
533
|
-
return /* @__PURE__ */ o("h3", { style: n, ...t, children: e });
|
|
534
|
-
case "heading-four":
|
|
535
|
-
return /* @__PURE__ */ o("h4", { style: n, ...t, children: e });
|
|
536
|
-
case "heading-five":
|
|
537
|
-
return /* @__PURE__ */ o("h5", { style: n, ...t, children: e });
|
|
538
|
-
case "list-item":
|
|
539
|
-
return /* @__PURE__ */ o("li", { style: n, ...t, children: e });
|
|
540
|
-
case "numbered-list":
|
|
541
|
-
return /* @__PURE__ */ o("ol", { style: n, ...t, children: e });
|
|
542
|
-
case "link":
|
|
543
|
-
return /* @__PURE__ */ o(
|
|
544
|
-
"a",
|
|
545
|
-
{
|
|
546
|
-
...t,
|
|
547
|
-
href: s.url,
|
|
548
|
-
rel: "noopener noreferrer",
|
|
549
|
-
style: n,
|
|
550
|
-
children: e
|
|
551
|
-
}
|
|
552
|
-
);
|
|
553
|
-
default:
|
|
554
|
-
return /* @__PURE__ */ o("p", { style: n, ...t, children: e });
|
|
555
|
-
}
|
|
556
|
-
}, wt = ({
|
|
557
|
-
attributes: t,
|
|
558
|
-
children: e,
|
|
559
|
-
leaf: r
|
|
560
|
-
}) => {
|
|
561
|
-
const s = r;
|
|
562
|
-
return s.bold && (e = /* @__PURE__ */ o("strong", { children: e })), s.code && (e = /* @__PURE__ */ o("code", { children: e })), s.italic && (e = /* @__PURE__ */ o("em", { children: e })), s.underline && (e = /* @__PURE__ */ o("u", { children: e })), s.strikethrough && (e = /* @__PURE__ */ o("del", { children: e })), s.superscript && (e = /* @__PURE__ */ o("sup", { children: e })), s.subscript && (e = /* @__PURE__ */ o("sub", { children: e })), /* @__PURE__ */ o("span", { ...t, children: e });
|
|
563
|
-
}, kt = {
|
|
564
|
-
placeholderCharacter: `
|
|
565
|
-
`
|
|
566
|
-
}, vt = ({
|
|
567
|
-
withPreservedSelection: t
|
|
568
|
-
}) => {
|
|
569
|
-
const e = J(), r = A(() => {
|
|
570
|
-
const u = [];
|
|
571
|
-
return lt.forEach((d) => {
|
|
572
|
-
F(e, d) && u.push(d);
|
|
573
|
-
}), new Set(u);
|
|
574
|
-
}, [e.selection, e.children, x.marks(e)]), s = A(() => {
|
|
575
|
-
const u = [];
|
|
576
|
-
return ct.forEach((d) => {
|
|
577
|
-
F(e, d) && u.push(d);
|
|
578
|
-
}), new Set(u);
|
|
579
|
-
}, [e.selection, e.children, x.marks(e)]), n = A(() => /* @__PURE__ */ new Set([
|
|
580
|
-
...Array.from(r),
|
|
581
|
-
...Array.from(s)
|
|
582
|
-
]), [r, s]), l = C(
|
|
583
|
-
(u) => {
|
|
584
|
-
if (u === "all") return;
|
|
585
|
-
const d = Array.from(u), f = Array.from(n), m = d.filter(
|
|
586
|
-
(p) => !f.includes(p)
|
|
587
|
-
), S = f.filter(
|
|
588
|
-
(p) => !d.includes(p)
|
|
589
|
-
);
|
|
590
|
-
[...m, ...S].forEach((p) => {
|
|
591
|
-
p === "superscript" || p === "subscript" ? t(() => {
|
|
592
|
-
const a = F(e, "superscript") ? "superscript" : F(e, "subscript") ? "subscript" : null;
|
|
593
|
-
m.includes(p) && a && a !== p && K(e, a), K(e, p);
|
|
594
|
-
})() : t(() => K(e, p))();
|
|
595
|
-
});
|
|
596
|
-
},
|
|
597
|
-
[e, n, t]
|
|
598
|
-
);
|
|
599
|
-
return {
|
|
600
|
-
selectedKeys: r,
|
|
601
|
-
selectedScriptKeys: s,
|
|
602
|
-
allSelectedKeys: n,
|
|
603
|
-
handleAllSelectionChange: l
|
|
604
|
-
};
|
|
605
|
-
}, It = ({ isDisabled: t = !1 }) => {
|
|
606
|
-
const e = Te(), r = J(), s = Re(r), { allSelectedKeys: n, handleAllSelectionChange: l } = vt({
|
|
607
|
-
withPreservedSelection: s
|
|
608
|
-
});
|
|
609
|
-
return /* @__PURE__ */ h(
|
|
610
|
-
v.Root,
|
|
611
|
-
{
|
|
612
|
-
selectionMode: "multiple",
|
|
613
|
-
selectedKeys: n,
|
|
614
|
-
onSelectionChange: l,
|
|
615
|
-
children: [
|
|
616
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
617
|
-
/* @__PURE__ */ o(v.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
|
|
618
|
-
se,
|
|
619
|
-
{
|
|
620
|
-
size: "xs",
|
|
621
|
-
variant: "ghost",
|
|
622
|
-
"aria-label": e.formatMessage(c.moreFormattingOptions),
|
|
623
|
-
isDisabled: t,
|
|
624
|
-
onMouseDown: (u) => u.preventDefault(),
|
|
625
|
-
children: /* @__PURE__ */ o(je, {})
|
|
626
|
-
}
|
|
627
|
-
) }),
|
|
628
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.moreStyles) })
|
|
629
|
-
] }),
|
|
630
|
-
/* @__PURE__ */ h(v.Content, { children: [
|
|
631
|
-
/* @__PURE__ */ o(v.Item, { id: "strikethrough", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
632
|
-
/* @__PURE__ */ o(We, {}),
|
|
633
|
-
/* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.strikethrough) })
|
|
634
|
-
] }) }),
|
|
635
|
-
/* @__PURE__ */ o(v.Item, { id: "code", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
636
|
-
/* @__PURE__ */ o(Ge, {}),
|
|
637
|
-
/* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.code) })
|
|
638
|
-
] }) }),
|
|
639
|
-
/* @__PURE__ */ o(v.Item, { id: "superscript", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
640
|
-
/* @__PURE__ */ o(L, { children: "X²" }),
|
|
641
|
-
/* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.superscript) })
|
|
642
|
-
] }) }),
|
|
643
|
-
/* @__PURE__ */ o(v.Item, { id: "subscript", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
644
|
-
/* @__PURE__ */ o(L, { children: "X₂" }),
|
|
645
|
-
/* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.subscript) })
|
|
646
|
-
] }) })
|
|
647
|
-
] })
|
|
648
|
-
]
|
|
649
|
-
}
|
|
650
|
-
);
|
|
651
|
-
};
|
|
652
|
-
var k = {}, be;
|
|
653
|
-
function Ct() {
|
|
654
|
-
if (be) return k;
|
|
655
|
-
be = 1, Object.defineProperty(k, "__esModule", {
|
|
656
|
-
value: !0
|
|
657
|
-
});
|
|
658
|
-
for (var t = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), e = {
|
|
659
|
-
alt: "altKey",
|
|
660
|
-
control: "ctrlKey",
|
|
661
|
-
meta: "metaKey",
|
|
662
|
-
shift: "shiftKey"
|
|
663
|
-
}, r = {
|
|
664
|
-
add: "+",
|
|
665
|
-
break: "pause",
|
|
666
|
-
cmd: "meta",
|
|
667
|
-
command: "meta",
|
|
668
|
-
ctl: "control",
|
|
669
|
-
ctrl: "control",
|
|
670
|
-
del: "delete",
|
|
671
|
-
down: "arrowdown",
|
|
672
|
-
esc: "escape",
|
|
673
|
-
ins: "insert",
|
|
674
|
-
left: "arrowleft",
|
|
675
|
-
mod: t ? "meta" : "control",
|
|
676
|
-
opt: "alt",
|
|
677
|
-
option: "alt",
|
|
678
|
-
return: "enter",
|
|
679
|
-
right: "arrowright",
|
|
680
|
-
space: " ",
|
|
681
|
-
spacebar: " ",
|
|
682
|
-
up: "arrowup",
|
|
683
|
-
win: "meta",
|
|
684
|
-
windows: "meta"
|
|
685
|
-
}, s = {
|
|
686
|
-
backspace: 8,
|
|
687
|
-
tab: 9,
|
|
688
|
-
enter: 13,
|
|
689
|
-
shift: 16,
|
|
690
|
-
control: 17,
|
|
691
|
-
alt: 18,
|
|
692
|
-
pause: 19,
|
|
693
|
-
capslock: 20,
|
|
694
|
-
escape: 27,
|
|
695
|
-
" ": 32,
|
|
696
|
-
pageup: 33,
|
|
697
|
-
pagedown: 34,
|
|
698
|
-
end: 35,
|
|
699
|
-
home: 36,
|
|
700
|
-
arrowleft: 37,
|
|
701
|
-
arrowup: 38,
|
|
702
|
-
arrowright: 39,
|
|
703
|
-
arrowdown: 40,
|
|
704
|
-
insert: 45,
|
|
705
|
-
delete: 46,
|
|
706
|
-
meta: 91,
|
|
707
|
-
numlock: 144,
|
|
708
|
-
scrolllock: 145,
|
|
709
|
-
";": 186,
|
|
710
|
-
"=": 187,
|
|
711
|
-
",": 188,
|
|
712
|
-
"-": 189,
|
|
713
|
-
".": 190,
|
|
714
|
-
"/": 191,
|
|
715
|
-
"`": 192,
|
|
716
|
-
"[": 219,
|
|
717
|
-
"\\": 220,
|
|
718
|
-
"]": 221,
|
|
719
|
-
"'": 222
|
|
720
|
-
}, n = 1; n < 20; n++)
|
|
721
|
-
s["f" + n] = 111 + n;
|
|
722
|
-
function l(a, i, y) {
|
|
723
|
-
i && !("byKey" in i) && (y = i, i = null), Array.isArray(a) || (a = [a]);
|
|
724
|
-
var T = a.map(function(D) {
|
|
725
|
-
return f(D, i);
|
|
726
|
-
}), M = function(E) {
|
|
727
|
-
return T.some(function(N) {
|
|
728
|
-
return m(N, E);
|
|
729
|
-
});
|
|
730
|
-
}, O = y == null ? M : M(y);
|
|
731
|
-
return O;
|
|
732
|
-
}
|
|
733
|
-
function u(a, i) {
|
|
734
|
-
return l(a, i);
|
|
735
|
-
}
|
|
736
|
-
function d(a, i) {
|
|
737
|
-
return l(a, { byKey: !0 }, i);
|
|
738
|
-
}
|
|
739
|
-
function f(a, i) {
|
|
740
|
-
var y = i && i.byKey, T = {};
|
|
741
|
-
a = a.replace("++", "+add");
|
|
742
|
-
var M = a.split("+"), O = M.length;
|
|
743
|
-
for (var D in e)
|
|
744
|
-
T[e[D]] = !1;
|
|
745
|
-
var E = !0, N = !1, g = void 0;
|
|
746
|
-
try {
|
|
747
|
-
for (var _ = M[Symbol.iterator](), G; !(E = (G = _.next()).done); E = !0) {
|
|
748
|
-
var w = G.value, Z = w.endsWith("?") && w.length > 1;
|
|
749
|
-
Z && (w = w.slice(0, -1));
|
|
750
|
-
var z = p(w), R = e[z];
|
|
751
|
-
if (w.length > 1 && !R && !r[w] && !s[z])
|
|
752
|
-
throw new TypeError('Unknown modifier: "' + w + '"');
|
|
753
|
-
(O === 1 || !R) && (y ? T.key = z : T.which = S(w)), R && (T[R] = Z ? null : !0);
|
|
754
|
-
}
|
|
755
|
-
} catch ($) {
|
|
756
|
-
N = !0, g = $;
|
|
757
|
-
} finally {
|
|
758
|
-
try {
|
|
759
|
-
!E && _.return && _.return();
|
|
760
|
-
} finally {
|
|
761
|
-
if (N)
|
|
762
|
-
throw g;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
return T;
|
|
766
|
-
}
|
|
767
|
-
function m(a, i) {
|
|
768
|
-
for (var y in a) {
|
|
769
|
-
var T = a[y], M = void 0;
|
|
770
|
-
if (T != null && (y === "key" && i.key != null ? M = i.key.toLowerCase() : y === "which" ? M = T === 91 && i.which === 93 ? 91 : i.which : M = i[y], !(M == null && T === !1) && M !== T))
|
|
771
|
-
return !1;
|
|
772
|
-
}
|
|
773
|
-
return !0;
|
|
774
|
-
}
|
|
775
|
-
function S(a) {
|
|
776
|
-
a = p(a);
|
|
777
|
-
var i = s[a] || a.toUpperCase().charCodeAt(0);
|
|
778
|
-
return i;
|
|
779
|
-
}
|
|
780
|
-
function p(a) {
|
|
781
|
-
return a = a.toLowerCase(), a = r[a] || a, a;
|
|
782
|
-
}
|
|
783
|
-
return k.default = l, k.isHotkey = l, k.isCodeHotkey = u, k.isKeyHotkey = d, k.parseHotkey = f, k.compareHotkey = m, k.toKeyCode = S, k.toKeyName = p, k;
|
|
784
|
-
}
|
|
785
|
-
var Et = /* @__PURE__ */ Ct();
|
|
786
|
-
const Nt = /* @__PURE__ */ Me(Et), At = ({ editor: t }) => ({ handleKeyDown: C(
|
|
787
|
-
(r) => {
|
|
788
|
-
if ((r.metaKey || r.ctrlKey) && r.key === "z") {
|
|
789
|
-
r.preventDefault(), r.shiftKey ? t.redo() : t.undo();
|
|
790
|
-
return;
|
|
791
|
-
}
|
|
792
|
-
for (const s in ue)
|
|
793
|
-
if (Nt(s, r)) {
|
|
794
|
-
r.preventDefault();
|
|
795
|
-
const n = ue[s];
|
|
796
|
-
K(t, n);
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
if (r.shiftKey && r.key === "Enter") {
|
|
800
|
-
r.preventDefault(), t.insertText(kt.placeholderCharacter);
|
|
801
|
-
return;
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
[t]
|
|
805
|
-
) }), Ee = function({
|
|
806
|
-
ref: e,
|
|
807
|
-
value: r,
|
|
808
|
-
onChange: s,
|
|
809
|
-
onFocus: n,
|
|
810
|
-
onBlur: l,
|
|
811
|
-
placeholder: u = X.placeholder,
|
|
812
|
-
isDisabled: d = X.isDisabled,
|
|
813
|
-
isReadOnly: f = X.isReadOnly,
|
|
814
|
-
autoFocus: m = X.autoFocus,
|
|
815
|
-
toolbar: S
|
|
816
|
-
//...props
|
|
817
|
-
}) {
|
|
818
|
-
const p = ye(null), a = Ue(Ke(p, e)), i = A(() => {
|
|
819
|
-
const g = Pe();
|
|
820
|
-
return Mt(ze(Be(g)));
|
|
821
|
-
}, []), { handleKeyDown: y } = At({ editor: i }), T = C(
|
|
822
|
-
(g) => {
|
|
823
|
-
n && n(g);
|
|
824
|
-
},
|
|
825
|
-
[n]
|
|
826
|
-
), M = C(
|
|
827
|
-
(g) => {
|
|
828
|
-
l && l(g);
|
|
829
|
-
},
|
|
830
|
-
[l]
|
|
831
|
-
);
|
|
832
|
-
De(
|
|
833
|
-
a,
|
|
834
|
-
() => ({
|
|
835
|
-
focus: () => xt(i),
|
|
836
|
-
resetValue: (g) => Tt(i, g)
|
|
837
|
-
}),
|
|
838
|
-
[i]
|
|
839
|
-
);
|
|
840
|
-
const O = C(
|
|
841
|
-
(g) => /* @__PURE__ */ o(Rt, { ...g }),
|
|
842
|
-
[]
|
|
843
|
-
), D = C(
|
|
844
|
-
(g) => /* @__PURE__ */ o(wt, { ...g }),
|
|
845
|
-
[]
|
|
846
|
-
), E = H(), N = Array.isArray(r) && r.length > 0 ? r : E;
|
|
847
|
-
return /* @__PURE__ */ h(_e, { editor: i, value: N, onChange: s, children: [
|
|
848
|
-
S && /* @__PURE__ */ o(it, { children: S }),
|
|
849
|
-
/* @__PURE__ */ o(at, { asChild: !0, children: /* @__PURE__ */ o(
|
|
850
|
-
qe,
|
|
851
|
-
{
|
|
852
|
-
renderElement: O,
|
|
853
|
-
renderLeaf: D,
|
|
854
|
-
placeholder: u,
|
|
855
|
-
autoFocus: m,
|
|
856
|
-
readOnly: f || d,
|
|
857
|
-
onKeyDown: y,
|
|
858
|
-
onFocus: T,
|
|
859
|
-
onBlur: M,
|
|
860
|
-
"aria-label": "Rich text editor",
|
|
861
|
-
role: "textbox",
|
|
862
|
-
"aria-multiline": "true"
|
|
863
|
-
}
|
|
864
|
-
) })
|
|
865
|
-
] });
|
|
866
|
-
};
|
|
867
|
-
Ee.displayName = "RichTextEditor";
|
|
868
|
-
const Dt = ({
|
|
869
|
-
withPreservedSelection: t,
|
|
870
|
-
textStyles: e
|
|
871
|
-
}) => {
|
|
872
|
-
const r = J(), s = A(() => dt.find(
|
|
873
|
-
(a) => P(r, a)
|
|
874
|
-
) || "paragraph", [r.selection, r.children]), n = e.find((a) => a.id === s), l = n?.label || "", u = C(
|
|
875
|
-
(a) => {
|
|
876
|
-
t(() => {
|
|
877
|
-
re(r, a);
|
|
878
|
-
})();
|
|
879
|
-
},
|
|
880
|
-
[r, t]
|
|
881
|
-
), d = C(
|
|
882
|
-
(a) => {
|
|
883
|
-
t(() => {
|
|
884
|
-
const i = Array.from(a)[0], y = P(r, "bulleted-list") ? "bulleted-list" : P(r, "numbered-list") ? "numbered-list" : null;
|
|
885
|
-
i ? re(r, i) : y && re(r, y);
|
|
886
|
-
})();
|
|
887
|
-
},
|
|
888
|
-
[r, t]
|
|
889
|
-
), f = A(() => {
|
|
890
|
-
const a = [];
|
|
891
|
-
return F(r, "bold") && a.push("bold"), F(r, "italic") && a.push("italic"), F(r, "underline") && a.push("underline"), new Set(a);
|
|
892
|
-
}, [r.selection, r.children, x.marks(r)]), m = A(() => {
|
|
893
|
-
const a = [];
|
|
894
|
-
return P(r, "bulleted-list") && a.push("bulleted-list"), P(r, "numbered-list") && a.push("numbered-list"), new Set(a);
|
|
895
|
-
}, [r.selection, r.children]), S = A(() => r.history && r.history.undos.length > 0, [r.selection, r.children]), p = A(() => r.history && r.history.redos.length > 0, [r.selection, r.children]);
|
|
896
|
-
return {
|
|
897
|
-
currentTextStyle: s,
|
|
898
|
-
selectedTextStyle: n,
|
|
899
|
-
selectedTextStyleLabel: l,
|
|
900
|
-
handleTextStyleChange: u,
|
|
901
|
-
handleListToggle: d,
|
|
902
|
-
selectedFormatKeys: f,
|
|
903
|
-
selectedListKeys: m,
|
|
904
|
-
hasUndos: S,
|
|
905
|
-
hasRedos: p
|
|
906
|
-
};
|
|
907
|
-
}, Ne = ({
|
|
908
|
-
isDisabled: t = !1
|
|
909
|
-
}) => {
|
|
910
|
-
const e = Te(), r = J(), s = Re(r), n = ut(e), {
|
|
911
|
-
currentTextStyle: l,
|
|
912
|
-
selectedTextStyleLabel: u,
|
|
913
|
-
handleTextStyleChange: d,
|
|
914
|
-
handleListToggle: f,
|
|
915
|
-
selectedFormatKeys: m,
|
|
916
|
-
selectedListKeys: S,
|
|
917
|
-
hasUndos: p,
|
|
918
|
-
hasRedos: a
|
|
919
|
-
} = Dt({ withPreservedSelection: s, textStyles: n });
|
|
920
|
-
return /* @__PURE__ */ h(
|
|
921
|
-
nt,
|
|
922
|
-
{
|
|
923
|
-
orientation: "horizontal",
|
|
924
|
-
"aria-label": e.formatMessage(c.textFormatting),
|
|
925
|
-
width: "full",
|
|
926
|
-
overflow: "hidden",
|
|
927
|
-
size: "xs",
|
|
928
|
-
children: [
|
|
929
|
-
/* @__PURE__ */ o(ae, { children: /* @__PURE__ */ h(
|
|
930
|
-
v.Root,
|
|
931
|
-
{
|
|
932
|
-
onAction: (i) => d(String(i)),
|
|
933
|
-
children: [
|
|
934
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
935
|
-
/* @__PURE__ */ o(
|
|
936
|
-
v.Trigger,
|
|
937
|
-
{
|
|
938
|
-
height: "800",
|
|
939
|
-
width: "4000",
|
|
940
|
-
bg: "primary.1",
|
|
941
|
-
borderRadius: "200",
|
|
942
|
-
_hover: { bg: "primary.2" },
|
|
943
|
-
isDisabled: t,
|
|
944
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
945
|
-
"aria-label": e.formatMessage(c.textStyleMenu),
|
|
946
|
-
children: /* @__PURE__ */ h(B, { display: "flex", alignItems: "center", gap: "200", px: "200", children: [
|
|
947
|
-
/* @__PURE__ */ o(B, { display: "flex", alignItems: "center", gap: "200", flexGrow: "1", children: /* @__PURE__ */ o(L, { my: "auto", textStyle: "sm", fontWeight: "500", children: u }) }),
|
|
948
|
-
/* @__PURE__ */ o(Xe, {})
|
|
949
|
-
] })
|
|
950
|
-
}
|
|
951
|
-
),
|
|
952
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.textStyle) })
|
|
953
|
-
] }),
|
|
954
|
-
/* @__PURE__ */ o(v.Content, { children: n.map((i) => /* @__PURE__ */ o(
|
|
955
|
-
v.Item,
|
|
956
|
-
{
|
|
957
|
-
id: i.id,
|
|
958
|
-
...l === i.id && {
|
|
959
|
-
"data-state": "checked"
|
|
960
|
-
},
|
|
961
|
-
children: /* @__PURE__ */ o(L, { ...i.props, children: i.label })
|
|
962
|
-
},
|
|
963
|
-
i.id
|
|
964
|
-
)) })
|
|
965
|
-
]
|
|
966
|
-
}
|
|
967
|
-
) }),
|
|
968
|
-
/* @__PURE__ */ o(le, { orientation: "vertical" }),
|
|
969
|
-
/* @__PURE__ */ h(
|
|
970
|
-
ce.Root,
|
|
971
|
-
{
|
|
972
|
-
selectionMode: "multiple",
|
|
973
|
-
selectedKeys: m,
|
|
974
|
-
isDisabled: t,
|
|
975
|
-
children: [
|
|
976
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
977
|
-
/* @__PURE__ */ h(
|
|
978
|
-
U,
|
|
979
|
-
{
|
|
980
|
-
id: "bold",
|
|
981
|
-
size: "xs",
|
|
982
|
-
variant: "ghost",
|
|
983
|
-
"aria-label": e.formatMessage(c.bold),
|
|
984
|
-
isDisabled: t,
|
|
985
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
986
|
-
onPress: s(() => K(r, "bold")),
|
|
987
|
-
children: [
|
|
988
|
-
/* @__PURE__ */ o(Ye, {}),
|
|
989
|
-
/* @__PURE__ */ o(V, { children: e.formatMessage(c.bold) })
|
|
990
|
-
]
|
|
991
|
-
}
|
|
992
|
-
),
|
|
993
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.bold) })
|
|
994
|
-
] }),
|
|
995
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
996
|
-
/* @__PURE__ */ h(
|
|
997
|
-
U,
|
|
998
|
-
{
|
|
999
|
-
id: "italic",
|
|
1000
|
-
size: "xs",
|
|
1001
|
-
variant: "ghost",
|
|
1002
|
-
"aria-label": e.formatMessage(c.italic),
|
|
1003
|
-
isDisabled: t,
|
|
1004
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1005
|
-
onPress: s(() => K(r, "italic")),
|
|
1006
|
-
children: [
|
|
1007
|
-
/* @__PURE__ */ o(Qe, {}),
|
|
1008
|
-
/* @__PURE__ */ o(V, { children: e.formatMessage(c.italic) })
|
|
1009
|
-
]
|
|
1010
|
-
}
|
|
1011
|
-
),
|
|
1012
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.italic) })
|
|
1013
|
-
] }),
|
|
1014
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
1015
|
-
/* @__PURE__ */ h(
|
|
1016
|
-
U,
|
|
1017
|
-
{
|
|
1018
|
-
id: "underline",
|
|
1019
|
-
size: "xs",
|
|
1020
|
-
variant: "ghost",
|
|
1021
|
-
"aria-label": e.formatMessage(c.underline),
|
|
1022
|
-
isDisabled: t,
|
|
1023
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1024
|
-
onPress: s(
|
|
1025
|
-
() => K(r, "underline")
|
|
1026
|
-
),
|
|
1027
|
-
children: [
|
|
1028
|
-
/* @__PURE__ */ o(Je, {}),
|
|
1029
|
-
/* @__PURE__ */ o(V, { children: e.formatMessage(c.underline) })
|
|
1030
|
-
]
|
|
1031
|
-
}
|
|
1032
|
-
),
|
|
1033
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.underline) })
|
|
1034
|
-
] })
|
|
1035
|
-
]
|
|
1036
|
-
}
|
|
1037
|
-
),
|
|
1038
|
-
/* @__PURE__ */ o(It, { isDisabled: t }),
|
|
1039
|
-
/* @__PURE__ */ o(le, { orientation: "vertical" }),
|
|
1040
|
-
/* @__PURE__ */ h(
|
|
1041
|
-
ce.Root,
|
|
1042
|
-
{
|
|
1043
|
-
selectionMode: "single",
|
|
1044
|
-
selectedKeys: S,
|
|
1045
|
-
onSelectionChange: f,
|
|
1046
|
-
"aria-label": e.formatMessage(c.listFormatting),
|
|
1047
|
-
isDisabled: t,
|
|
1048
|
-
children: [
|
|
1049
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
1050
|
-
/* @__PURE__ */ o(
|
|
1051
|
-
U,
|
|
1052
|
-
{
|
|
1053
|
-
id: "bulleted-list",
|
|
1054
|
-
size: "xs",
|
|
1055
|
-
variant: "ghost",
|
|
1056
|
-
"aria-label": e.formatMessage(c.bulletedList),
|
|
1057
|
-
isDisabled: t,
|
|
1058
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1059
|
-
children: /* @__PURE__ */ o(Ze, {})
|
|
1060
|
-
}
|
|
1061
|
-
),
|
|
1062
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.bulletedList) })
|
|
1063
|
-
] }),
|
|
1064
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
1065
|
-
/* @__PURE__ */ o(
|
|
1066
|
-
U,
|
|
1067
|
-
{
|
|
1068
|
-
id: "numbered-list",
|
|
1069
|
-
size: "xs",
|
|
1070
|
-
variant: "ghost",
|
|
1071
|
-
"aria-label": e.formatMessage(c.numberedList),
|
|
1072
|
-
isDisabled: t,
|
|
1073
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1074
|
-
children: /* @__PURE__ */ o(et, {})
|
|
1075
|
-
}
|
|
1076
|
-
),
|
|
1077
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.numberedList) })
|
|
1078
|
-
] })
|
|
1079
|
-
]
|
|
1080
|
-
}
|
|
1081
|
-
),
|
|
1082
|
-
/* @__PURE__ */ o(B, { flexGrow: "1" }),
|
|
1083
|
-
/* @__PURE__ */ h(ae, { children: [
|
|
1084
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
1085
|
-
/* @__PURE__ */ h(
|
|
1086
|
-
se,
|
|
1087
|
-
{
|
|
1088
|
-
size: "xs",
|
|
1089
|
-
variant: "ghost",
|
|
1090
|
-
"aria-label": e.formatMessage(c.undo),
|
|
1091
|
-
isDisabled: !p || t,
|
|
1092
|
-
onPress: s(() => r.undo()),
|
|
1093
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1094
|
-
children: [
|
|
1095
|
-
/* @__PURE__ */ o(tt, {}),
|
|
1096
|
-
/* @__PURE__ */ o(V, { children: e.formatMessage(c.undo) })
|
|
1097
|
-
]
|
|
1098
|
-
}
|
|
1099
|
-
),
|
|
1100
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.undo) })
|
|
1101
|
-
] }),
|
|
1102
|
-
/* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
|
|
1103
|
-
/* @__PURE__ */ h(
|
|
1104
|
-
se,
|
|
1105
|
-
{
|
|
1106
|
-
size: "xs",
|
|
1107
|
-
variant: "ghost",
|
|
1108
|
-
"aria-label": e.formatMessage(c.redo),
|
|
1109
|
-
isDisabled: !a || t,
|
|
1110
|
-
onPress: s(() => r.redo()),
|
|
1111
|
-
onMouseDown: (i) => i.preventDefault(),
|
|
1112
|
-
children: [
|
|
1113
|
-
/* @__PURE__ */ o(rt, {}),
|
|
1114
|
-
/* @__PURE__ */ o(V, { children: e.formatMessage(c.redo) })
|
|
1115
|
-
]
|
|
1116
|
-
}
|
|
1117
|
-
),
|
|
1118
|
-
/* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.redo) })
|
|
1119
|
-
] })
|
|
1120
|
-
] })
|
|
1121
|
-
]
|
|
1122
|
-
}
|
|
1123
|
-
);
|
|
1124
|
-
};
|
|
1125
|
-
Ne.displayName = "RichTextToolbar";
|
|
1126
|
-
const Lt = (t) => {
|
|
1127
|
-
const {
|
|
1128
|
-
ref: e,
|
|
1129
|
-
value: r,
|
|
1130
|
-
defaultValue: s,
|
|
1131
|
-
onChange: n,
|
|
1132
|
-
onFocus: l,
|
|
1133
|
-
onBlur: u,
|
|
1134
|
-
placeholder: d = "",
|
|
1135
|
-
isDisabled: f = !1,
|
|
1136
|
-
isReadOnly: m = !1,
|
|
1137
|
-
isInvalid: S = !1,
|
|
1138
|
-
autoFocus: p = !1,
|
|
1139
|
-
...a
|
|
1140
|
-
} = t, i = He({ recipe: $e }), [y, T] = i.splitVariantProps({
|
|
1141
|
-
// Only semantic variants go here (none currently defined)
|
|
1142
|
-
...a
|
|
1143
|
-
}), [M, O] = Oe(T), D = {
|
|
1144
|
-
"data-disabled": f ? "true" : void 0,
|
|
1145
|
-
"data-invalid": S ? "true" : void 0,
|
|
1146
|
-
"data-readonly": m ? "true" : void 0
|
|
1147
|
-
}, [E, N] = ie(() => {
|
|
1148
|
-
const R = r ?? s ?? "";
|
|
1149
|
-
try {
|
|
1150
|
-
return R ? oe(R) : H();
|
|
1151
|
-
} catch ($) {
|
|
1152
|
-
return console.warn("Failed to parse initial HTML, using empty value:", $), H();
|
|
1153
|
-
}
|
|
1154
|
-
}), [g, _] = ie(() => r ?? s ?? ""), G = ye(null);
|
|
1155
|
-
Le(() => {
|
|
1156
|
-
if (r !== void 0 && r !== g) {
|
|
1157
|
-
const R = r ? oe(r) : H();
|
|
1158
|
-
N(R), _(r);
|
|
1159
|
-
}
|
|
1160
|
-
}, [r, g]);
|
|
1161
|
-
const w = C(
|
|
1162
|
-
(R) => {
|
|
1163
|
-
const $ = pt(R), Ae = $ !== g;
|
|
1164
|
-
N(R), _($), Ae && n && n($);
|
|
1165
|
-
},
|
|
1166
|
-
[g, n]
|
|
1167
|
-
), z = Ce(E);
|
|
1168
|
-
return /* @__PURE__ */ o(
|
|
1169
|
-
ot,
|
|
1170
|
-
{
|
|
1171
|
-
role: "group",
|
|
1172
|
-
...y,
|
|
1173
|
-
...M,
|
|
1174
|
-
...O,
|
|
1175
|
-
...D,
|
|
1176
|
-
ref: e,
|
|
1177
|
-
children: /* @__PURE__ */ o(
|
|
1178
|
-
Ee,
|
|
1179
|
-
{
|
|
1180
|
-
ref: G,
|
|
1181
|
-
value: z,
|
|
1182
|
-
onChange: w,
|
|
1183
|
-
onFocus: l,
|
|
1184
|
-
onBlur: u,
|
|
1185
|
-
placeholder: d,
|
|
1186
|
-
isDisabled: f,
|
|
1187
|
-
isReadOnly: m,
|
|
1188
|
-
autoFocus: p,
|
|
1189
|
-
toolbar: m ? null : /* @__PURE__ */ o(Ne, { isDisabled: f })
|
|
1190
|
-
}
|
|
1191
|
-
)
|
|
1192
|
-
}
|
|
1193
|
-
);
|
|
1194
|
-
};
|
|
1195
|
-
Lt.displayName = "RichTextInput";
|
|
1196
|
-
export {
|
|
1197
|
-
Lt as R,
|
|
1198
|
-
Me as g
|
|
1199
|
-
};
|
|
1200
|
-
//# sourceMappingURL=rich-text-input-CZqXRWdM.es.js.map
|