@commercetools/nimbus 2.1.0 → 2.2.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-AupzDJ2i.cjs.js → accordion-CVpg-FdJ.cjs.js} +2 -2
- package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-CVpg-FdJ.cjs.js.map} +1 -1
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js → accordion-Dh0RVlNx.es.js} +2 -2
- package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Dh0RVlNx.es.js.map} +1 -1
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-Cqet9SQ-.cjs.js} +2 -2
- package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-Cqet9SQ-.cjs.js.map} +1 -1
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-GGayEeqD.es.js} +2 -2
- package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-GGayEeqD.es.js.map} +1 -1
- package/dist/chunks/alert-DCgWOaY2.es.js +158 -0
- package/dist/chunks/alert-DCgWOaY2.es.js.map +1 -0
- package/dist/chunks/alert-pPmN9CXZ.cjs.js +2 -0
- package/dist/chunks/alert-pPmN9CXZ.cjs.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-czddlTvJ.es.js → button-BEJnxXsL.es.js} +2 -2
- package/dist/chunks/{button-czddlTvJ.es.js.map → button-BEJnxXsL.es.js.map} +1 -1
- package/dist/chunks/{button-DF_RV6pd.cjs.js → button-BR4fvcmi.cjs.js} +2 -2
- package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-BR4fvcmi.cjs.js.map} +1 -1
- package/dist/chunks/calendar-B01Vti5k.cjs.js +2 -0
- package/dist/chunks/calendar-B01Vti5k.cjs.js.map +1 -0
- package/dist/chunks/calendar-lSoXK-yt.es.js +227 -0
- package/dist/chunks/calendar-lSoXK-yt.es.js.map +1 -0
- package/dist/chunks/card-Bk3xHlo2.cjs.js +2 -0
- package/dist/chunks/card-Bk3xHlo2.cjs.js.map +1 -0
- package/dist/chunks/card-q5i119kB.es.js +115 -0
- package/dist/chunks/card-q5i119kB.es.js.map +1 -0
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BJANm94D.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BJANm94D.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-CputcCVr.es.js} +2 -2
- package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-CputcCVr.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Biq0QGUr.cjs.js} +2 -2
- package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Biq0QGUr.cjs.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-DvtUDuxb.es.js} +2 -2
- package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-DvtUDuxb.es.js.map} +1 -1
- package/dist/chunks/combobox-B7ck7gxL.cjs.js +2 -0
- package/dist/chunks/combobox-B7ck7gxL.cjs.js.map +1 -0
- package/dist/chunks/combobox-vjauyzlS.es.js +1551 -0
- package/dist/chunks/combobox-vjauyzlS.es.js.map +1 -0
- package/dist/chunks/data-table-CBZLbe9h.cjs.js +2 -0
- package/dist/chunks/data-table-CBZLbe9h.cjs.js.map +1 -0
- package/dist/chunks/{data-table-C0rC7Jgu.es.js → data-table-DA4SdIgU.es.js} +1448 -1423
- package/dist/chunks/data-table-DA4SdIgU.es.js.map +1 -0
- package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Cd9q4qBj.es.js} +4 -4
- package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Cd9q4qBj.es.js.map} +1 -1
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-DkYcGwBy.cjs.js} +2 -2
- package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-DkYcGwBy.cjs.js.map} +1 -1
- package/dist/chunks/date-picker-B8VVNXU3.es.js +228 -0
- package/dist/chunks/date-picker-B8VVNXU3.es.js.map +1 -0
- package/dist/chunks/date-picker-DQ5IZcRe.cjs.js +2 -0
- package/dist/chunks/date-picker-DQ5IZcRe.cjs.js.map +1 -0
- package/dist/chunks/date-range-picker-BnbKgO1E.es.js +364 -0
- package/dist/chunks/date-range-picker-BnbKgO1E.es.js.map +1 -0
- package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js +2 -0
- package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-BuI6eLMY.es.js} +4 -4
- package/dist/chunks/date-range-picker-field-BuI6eLMY.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-DcIo1YzI.cjs.js} +2 -2
- package/dist/chunks/date-range-picker-field-DcIo1YzI.cjs.js.map +1 -0
- package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-DuS3dXVi.es.js} +89 -89
- package/dist/chunks/dialog-DuS3dXVi.es.js.map +1 -0
- package/dist/chunks/dialog-gyrFT8w0.cjs.js +2 -0
- package/dist/chunks/dialog-gyrFT8w0.cjs.js.map +1 -0
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-fvTG-VYt.cjs.js} +3 -3
- package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-fvTG-VYt.cjs.js.map} +1 -1
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-z7a7tu_F.es.js} +1406 -1601
- package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-z7a7tu_F.es.js.map} +1 -1
- package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-BPcEUbUt.es.js} +94 -86
- package/dist/chunks/drawer-BPcEUbUt.es.js.map +1 -0
- package/dist/chunks/drawer-DbSJSCl_.cjs.js +2 -0
- package/dist/chunks/drawer-DbSJSCl_.cjs.js.map +1 -0
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js → extract-style-props-B4hqila-.cjs.js} +2 -2
- package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-B4hqila-.cjs.js.map} +1 -1
- package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-BdibuNZ7.es.js} +2 -2
- package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-BdibuNZ7.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-BqlkPY29.es.js → form-field-BfDU18h3.es.js} +16 -16
- package/dist/chunks/form-field-BfDU18h3.es.js.map +1 -0
- package/dist/chunks/form-field-FdRNl2bZ.cjs.js +2 -0
- package/dist/chunks/form-field-FdRNl2bZ.cjs.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-CeB8_Yyr.cjs.js +2 -0
- package/dist/chunks/icon-button-CeB8_Yyr.cjs.js.map +1 -0
- package/dist/chunks/icon-button-CosIm3oY.es.js +28 -0
- package/dist/chunks/icon-button-CosIm3oY.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-8fX8JAXp.es.js} +2 -2
- package/dist/chunks/icon-toggle-button-8fX8JAXp.es.js.map +1 -0
- package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-C4Tnlt4t.cjs.js} +2 -2
- package/dist/chunks/icon-toggle-button-C4Tnlt4t.cjs.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-BEgCT-l6.es.js → index-C2qW4ynb.es.js} +671 -557
- package/dist/chunks/index-C2qW4ynb.es.js.map +1 -0
- package/dist/chunks/index-CVXB9mwf.cjs.js +34 -0
- package/dist/chunks/index-CVXB9mwf.cjs.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-D78l88ux.cjs.js +2 -0
- package/dist/chunks/localized-field-D78l88ux.cjs.js.map +1 -0
- package/dist/chunks/localized-field-DdeHzXdh.es.js +483 -0
- package/dist/chunks/localized-field-DdeHzXdh.es.js.map +1 -0
- package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Dno8yFDE.cjs.js} +2 -2
- package/dist/chunks/menu-Dno8yFDE.cjs.js.map +1 -0
- package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-Zlnps1eW.es.js} +6 -6
- package/dist/chunks/menu-Zlnps1eW.es.js.map +1 -0
- package/dist/chunks/money-input-C9eVmgeL.cjs.js +2 -0
- package/dist/chunks/money-input-C9eVmgeL.cjs.js.map +1 -0
- package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-D65vrUj4.es.js} +119 -109
- package/dist/chunks/money-input-D65vrUj4.es.js.map +1 -0
- package/dist/chunks/money-input-field-BGZ_9HKh.cjs.js +2 -0
- package/dist/chunks/money-input-field-BGZ_9HKh.cjs.js.map +1 -0
- package/dist/chunks/money-input-field-CSnaaDk-.es.js +51 -0
- package/dist/chunks/money-input-field-CSnaaDk-.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-CULLuZBp.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-CrDTYrM3.es.js +98 -0
- package/dist/chunks/multiline-text-input-CrDTYrM3.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-BX-w2v1Y.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-field-BX-w2v1Y.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-field-C6UTl_c8.es.js +56 -0
- package/dist/chunks/multiline-text-input-field-C6UTl_c8.es.js.map +1 -0
- package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js +2 -0
- package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js.map +1 -0
- package/dist/chunks/nimbus-provider-S02SpkpM.es.js +101 -0
- package/dist/chunks/nimbus-provider-S02SpkpM.es.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-CR1hdy-B.cjs.js +2 -0
- package/dist/chunks/number-input-CR1hdy-B.cjs.js.map +1 -0
- package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-Dp13Mn-8.es.js} +224 -229
- package/dist/chunks/number-input-Dp13Mn-8.es.js.map +1 -0
- package/dist/chunks/number-input-field-BDNpAP6t.cjs.js +2 -0
- package/dist/chunks/number-input-field-BDNpAP6t.cjs.js.map +1 -0
- package/dist/chunks/number-input-field-C90uFO4e.es.js +51 -0
- package/dist/chunks/number-input-field-C90uFO4e.es.js.map +1 -0
- package/dist/chunks/pagination-BIxlGft7.cjs.js +2 -0
- package/dist/chunks/pagination-BIxlGft7.cjs.js.map +1 -0
- package/dist/chunks/pagination-BlrGdyD5.es.js +226 -0
- package/dist/chunks/pagination-BlrGdyD5.es.js.map +1 -0
- package/dist/chunks/password-input-8bkpGOIX.es.js +47 -0
- package/dist/chunks/password-input-8bkpGOIX.es.js.map +1 -0
- package/dist/chunks/password-input-BVbQ42NG.cjs.js +2 -0
- package/dist/chunks/password-input-BVbQ42NG.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-B5lWzWAQ.cjs.js +2 -0
- package/dist/chunks/password-input-field-B5lWzWAQ.cjs.js.map +1 -0
- package/dist/chunks/password-input-field-XXaNUALk.es.js +56 -0
- package/dist/chunks/password-input-field-XXaNUALk.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-vRz1k6ol.es.js → progress-bar-C2ZnGdLv.es.js} +2 -2
- package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-C2ZnGdLv.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js → progress-bar-dRKyuT1-.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-dRKyuT1-.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-BecbxXcF.cjs.js} +2 -2
- package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-BecbxXcF.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-DV-hhL4S.es.js} +8 -8
- package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-DV-hhL4S.es.js.map} +1 -1
- package/dist/chunks/range-calendar-CEIaa08T.es.js +229 -0
- package/dist/chunks/range-calendar-CEIaa08T.es.js.map +1 -0
- package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js +2 -0
- package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js.map +1 -0
- package/dist/chunks/rich-text-input-CRGUa5d2.es.js +1200 -0
- package/dist/chunks/rich-text-input-CRGUa5d2.es.js.map +1 -0
- package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js +4 -0
- package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js +147 -0
- package/dist/chunks/scoped-search-input-CSpFefUJ.es.js.map +1 -0
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js.map +1 -0
- package/dist/chunks/{search-input-CMrPbAUI.es.js → search-input-BDUJ48BC.es.js} +147 -147
- package/dist/chunks/search-input-BDUJ48BC.es.js.map +1 -0
- package/dist/chunks/search-input-BNXlpYtP.cjs.js +2 -0
- package/dist/chunks/search-input-BNXlpYtP.cjs.js.map +1 -0
- package/dist/chunks/search-input-field-CEemw2P1.es.js +51 -0
- package/dist/chunks/search-input-field-CEemw2P1.es.js.map +1 -0
- package/dist/chunks/search-input-field-v60x1oiw.cjs.js +2 -0
- package/dist/chunks/search-input-field-v60x1oiw.cjs.js.map +1 -0
- package/dist/chunks/{select-DG6qOekv.es.js → select-D9yYDW0d.es.js} +229 -229
- package/dist/chunks/select-D9yYDW0d.es.js.map +1 -0
- package/dist/chunks/select-Dq_6o0BB.cjs.js +2 -0
- package/dist/chunks/select-Dq_6o0BB.cjs.js.map +1 -0
- package/dist/chunks/{separator-B-ibkWW-.es.js → separator-BJ9k_D4l.es.js} +4 -4
- package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-BJ9k_D4l.es.js.map} +1 -1
- package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-u_4por07.cjs.js} +2 -2
- package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-u_4por07.cjs.js.map} +1 -1
- package/dist/chunks/split-button-B4gVhpP9.cjs.js +2 -0
- package/dist/chunks/split-button-B4gVhpP9.cjs.js.map +1 -0
- package/dist/chunks/split-button-C94SY3qF.es.js +106 -0
- package/dist/chunks/split-button-C94SY3qF.es.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-BzYS9qlr.cjs.js → switch-CsiG41ZR.cjs.js} +2 -2
- package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-CsiG41ZR.cjs.js.map} +1 -1
- package/dist/chunks/{switch-_TfZ37Nm.es.js → switch-Nn1Fbk5O.es.js} +3 -3
- package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-Nn1Fbk5O.es.js.map} +1 -1
- package/dist/chunks/tabs-D0OPeQ_J.es.js +516 -0
- package/dist/chunks/tabs-D0OPeQ_J.es.js.map +1 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js +2 -0
- package/dist/chunks/tabs-iV08OTqG.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-BE8d6xcP.es.js} +209 -208
- package/dist/chunks/tag-group-BE8d6xcP.es.js.map +1 -0
- package/dist/chunks/tag-group-BI8_32rM.cjs.js +2 -0
- package/dist/chunks/tag-group-BI8_32rM.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-D3KWm-NF.cjs.js → text-input-BlxK2Naj.cjs.js} +2 -2
- package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-BlxK2Naj.cjs.js.map} +1 -1
- package/dist/chunks/{text-input-DOTYCJyJ.es.js → text-input-CCiZeQad.es.js} +3 -3
- package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-CCiZeQad.es.js.map} +1 -1
- package/dist/chunks/text-input-field-6Cj35cYL.es.js +58 -0
- package/dist/chunks/text-input-field-6Cj35cYL.es.js.map +1 -0
- package/dist/chunks/text-input-field-Cmht3hDK.cjs.js +2 -0
- package/dist/chunks/text-input-field-Cmht3hDK.cjs.js.map +1 -0
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-9Q5vV4UD.cjs.js} +2 -2
- package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-9Q5vV4UD.cjs.js.map} +1 -1
- package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-CCuIFoY2.es.js} +4 -4
- package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-CCuIFoY2.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-L7i1XaWg.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-L7i1XaWg.cjs.js.map} +1 -1
- package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-UcXy5q2C.es.js} +3 -3
- package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-UcXy5q2C.es.js.map} +1 -1
- package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-C7-6gqba.es.js} +3 -3
- package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-C7-6gqba.es.js.map} +1 -1
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-D4fLFiSb.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-D4fLFiSb.cjs.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.context.d.ts +3 -1
- package/dist/components/data-table/components/index.d.ts +1 -1
- 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 +39 -0
- package/dist/components/data-table/intl/en.d.ts +39 -0
- package/dist/components/data-table/intl/es.d.ts +39 -0
- package/dist/components/data-table/intl/fr-FR.d.ts +39 -0
- package/dist/components/data-table/intl/pt-BR.d.ts +39 -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 +9 -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/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
|
@@ -0,0 +1,1200 @@
|
|
|
1
|
+
import { jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as R, useMemo as I, useRef as be, useImperativeHandle as De, useState as se, useEffect as Ke } from "react";
|
|
3
|
+
import { createSlotRecipeContext as Oe, mergeRefs as He, useSlotRecipe as Ne } from "@chakra-ui/react";
|
|
4
|
+
import { e as Pe } from "./extract-style-props-BdibuNZ7.es.js";
|
|
5
|
+
import { n as $e } from "./index-C2qW4ynb.es.js";
|
|
6
|
+
import { Transforms as E, Text as j, Element as _, Editor as b, Range as xe, createEditor as ze } from "slate";
|
|
7
|
+
import { ReactEditor as ne, useSlate as Z, withReact as _e, Slate as qe, Editable as Be } from "slate-react";
|
|
8
|
+
import { withHistory as Ue } from "slate-history";
|
|
9
|
+
import { $ as Ve } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
10
|
+
import { I as B } from "./icon-toggle-button-8fX8JAXp.es.js";
|
|
11
|
+
import { G as ae } from "./group-CCBgdph2.es.js";
|
|
12
|
+
import { MoreHoriz as We, FormatStrikethrough as je, Code as Ge, KeyboardArrowDown as Xe, FormatBold as Ye, FormatItalic as Qe, FormatUnderlined as Ze, FormatListBulleted as Je, FormatListNumbered as et, Undo as tt, Redo as rt } from "@commercetools/nimbus-icons";
|
|
13
|
+
import { n as U, u as Se } from "./normalize-messages-D5T4I93D.es.js";
|
|
14
|
+
import { M as v } from "./menu-Zlnps1eW.es.js";
|
|
15
|
+
import { T as g } from "./tooltip-D3QrrizN.es.js";
|
|
16
|
+
import { I as oe } from "./icon-button-CosIm3oY.es.js";
|
|
17
|
+
import { B as $ } from "./box-DuBoAZvq.es.js";
|
|
18
|
+
import { T as A } from "./text-CIb_VDvO.es.js";
|
|
19
|
+
import { T as nt } from "./toolbar-C7-6gqba.es.js";
|
|
20
|
+
import { S as le } from "./separator-BJ9k_D4l.es.js";
|
|
21
|
+
import { T as ce } from "./toggle-button-group-BWpmMkEz.es.js";
|
|
22
|
+
import { V } from "./visually-hidden-Dj5CT-u_.es.js";
|
|
23
|
+
function Te(t) {
|
|
24
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
|
+
}
|
|
26
|
+
const { withProvider: ot, withContext: we } = /* @__PURE__ */ Oe({
|
|
27
|
+
key: "richTextInput"
|
|
28
|
+
}), it = /* @__PURE__ */ ot("div", "root"), st = /* @__PURE__ */ we("div", "toolbar"), at = /* @__PURE__ */ we("div", "editable"), ke = (t) => R(
|
|
29
|
+
(e) => () => {
|
|
30
|
+
const { selection: r } = t;
|
|
31
|
+
e(), r && !t.selection && E.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
|
+
], ut = (t) => [
|
|
80
|
+
{
|
|
81
|
+
id: "paragraph",
|
|
82
|
+
label: t("paragraph"),
|
|
83
|
+
props: {
|
|
84
|
+
textStyle: "md",
|
|
85
|
+
fontWeight: "500"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "heading-one",
|
|
90
|
+
label: t("headingOne"),
|
|
91
|
+
props: {
|
|
92
|
+
textStyle: "2xl",
|
|
93
|
+
fontWeight: "500"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "heading-two",
|
|
98
|
+
label: t("headingTwo"),
|
|
99
|
+
props: {
|
|
100
|
+
textStyle: "xl",
|
|
101
|
+
fontWeight: "500"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "heading-three",
|
|
106
|
+
label: t("headingThree"),
|
|
107
|
+
props: {
|
|
108
|
+
textStyle: "lg",
|
|
109
|
+
fontWeight: "500"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "heading-four",
|
|
114
|
+
label: t("headingFour"),
|
|
115
|
+
props: {
|
|
116
|
+
textStyle: "md",
|
|
117
|
+
fontWeight: "500"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: "heading-five",
|
|
122
|
+
label: t("headingFive"),
|
|
123
|
+
props: {
|
|
124
|
+
textStyle: "xs",
|
|
125
|
+
fontWeight: "500"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "block-quote",
|
|
130
|
+
label: t("quote"),
|
|
131
|
+
props: {
|
|
132
|
+
textStyle: "md",
|
|
133
|
+
fontWeight: "400"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
], dt = [
|
|
137
|
+
"heading-one",
|
|
138
|
+
"heading-two",
|
|
139
|
+
"heading-three",
|
|
140
|
+
"heading-four",
|
|
141
|
+
"heading-five",
|
|
142
|
+
"block-quote"
|
|
143
|
+
];
|
|
144
|
+
var ee, pe;
|
|
145
|
+
function ht() {
|
|
146
|
+
if (pe) return ee;
|
|
147
|
+
pe = 1;
|
|
148
|
+
var t = /["'&<>]/;
|
|
149
|
+
ee = e;
|
|
150
|
+
function e(r) {
|
|
151
|
+
var o = "" + r, n = t.exec(o);
|
|
152
|
+
if (!n)
|
|
153
|
+
return o;
|
|
154
|
+
var l, c = "", u = 0, h = 0;
|
|
155
|
+
for (u = n.index; u < o.length; u++) {
|
|
156
|
+
switch (o.charCodeAt(u)) {
|
|
157
|
+
case 34:
|
|
158
|
+
l = """;
|
|
159
|
+
break;
|
|
160
|
+
case 38:
|
|
161
|
+
l = "&";
|
|
162
|
+
break;
|
|
163
|
+
case 39:
|
|
164
|
+
l = "'";
|
|
165
|
+
break;
|
|
166
|
+
case 60:
|
|
167
|
+
l = "<";
|
|
168
|
+
break;
|
|
169
|
+
case 62:
|
|
170
|
+
l = ">";
|
|
171
|
+
break;
|
|
172
|
+
default:
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
h !== u && (c += o.substring(h, u)), h = u + 1, c += l;
|
|
176
|
+
}
|
|
177
|
+
return h !== u ? c + o.substring(h, u) : c;
|
|
178
|
+
}
|
|
179
|
+
return ee;
|
|
180
|
+
}
|
|
181
|
+
var pt = /* @__PURE__ */ ht();
|
|
182
|
+
const Y = /* @__PURE__ */ Te(pt), Ce = `
|
|
183
|
+
`, O = () => [
|
|
184
|
+
{
|
|
185
|
+
type: "paragraph",
|
|
186
|
+
children: [{ text: "" }]
|
|
187
|
+
}
|
|
188
|
+
], ft = (t) => t.map(ve).join(""), ve = (t) => {
|
|
189
|
+
if (j.isText(t)) {
|
|
190
|
+
const o = t;
|
|
191
|
+
let n = Y(o.text);
|
|
192
|
+
return o.bold && (n = `<strong>${n}</strong>`), o.code && (n = `<code>${n}</code>`), o.italic && (n = `<em>${n}</em>`), o.underline && (n = `<u>${n}</u>`), o.superscript && (n = `<sup>${n}</sup>`), o.subscript && (n = `<sub>${n}</sub>`), o.strikethrough && (n = `<del>${n}</del>`), n = n.replace(new RegExp(Ce, "g"), "<br>"), n;
|
|
193
|
+
}
|
|
194
|
+
const e = t.children.map(ve).join(""), r = t;
|
|
195
|
+
switch (r.type) {
|
|
196
|
+
case "block-quote":
|
|
197
|
+
return `<blockquote>${e}</blockquote>`;
|
|
198
|
+
case "paragraph":
|
|
199
|
+
return `<p>${e}</p>`;
|
|
200
|
+
case "code":
|
|
201
|
+
return `<pre><code>${e}</code></pre>`;
|
|
202
|
+
case "bulleted-list":
|
|
203
|
+
return `<ul>${e}</ul>`;
|
|
204
|
+
case "numbered-list":
|
|
205
|
+
return `<ol>${e}</ol>`;
|
|
206
|
+
case "list-item":
|
|
207
|
+
return `<li>${e}</li>`;
|
|
208
|
+
case "heading-one":
|
|
209
|
+
return `<h1>${e}</h1>`;
|
|
210
|
+
case "heading-two":
|
|
211
|
+
return `<h2>${e}</h2>`;
|
|
212
|
+
case "heading-three":
|
|
213
|
+
return `<h3>${e}</h3>`;
|
|
214
|
+
case "heading-four":
|
|
215
|
+
return `<h4>${e}</h4>`;
|
|
216
|
+
case "heading-five":
|
|
217
|
+
return `<h5>${e}</h5>`;
|
|
218
|
+
case "link": {
|
|
219
|
+
let o = "";
|
|
220
|
+
if (r.url) {
|
|
221
|
+
const l = gt(r.url);
|
|
222
|
+
o = ` href="${Y(l)}"`;
|
|
223
|
+
}
|
|
224
|
+
let n = "";
|
|
225
|
+
if (r.htmlAttributes && typeof r.htmlAttributes == "object")
|
|
226
|
+
for (const [l, c] of Object.entries(r.htmlAttributes))
|
|
227
|
+
l.toLowerCase().startsWith("on") || (n += ` ${Y(l)}="${Y(String(c))}"`);
|
|
228
|
+
return `<a${o}${n}>${e}</a>`;
|
|
229
|
+
}
|
|
230
|
+
default:
|
|
231
|
+
return e;
|
|
232
|
+
}
|
|
233
|
+
}, ie = (t) => {
|
|
234
|
+
if (!t || t.trim() === "")
|
|
235
|
+
return O();
|
|
236
|
+
try {
|
|
237
|
+
if (t.includes("<p>") || t.includes("<h") || t.includes("<div>") || t.includes("<blockquote>") || t.includes("<ul>") || t.includes("<ol>")) {
|
|
238
|
+
const r = new DOMParser().parseFromString(t, "text/html").body, o = Array.from(r.childNodes).map(Ee).filter(Boolean);
|
|
239
|
+
return Fe(o);
|
|
240
|
+
} else
|
|
241
|
+
return [
|
|
242
|
+
{
|
|
243
|
+
type: "paragraph",
|
|
244
|
+
children: [{ text: t }]
|
|
245
|
+
}
|
|
246
|
+
];
|
|
247
|
+
} catch (e) {
|
|
248
|
+
return console.warn("Failed to parse HTML:", e), O();
|
|
249
|
+
}
|
|
250
|
+
}, Ee = (t) => {
|
|
251
|
+
if (t.nodeType === Node.TEXT_NODE)
|
|
252
|
+
return (t.textContent || "").replace(/<br\s*\/?>/gi, Ce);
|
|
253
|
+
if (t.nodeType !== Node.ELEMENT_NODE)
|
|
254
|
+
return null;
|
|
255
|
+
const e = t, r = e.tagName.toLowerCase(), o = Array.from(e.childNodes).map(Ee).filter(Boolean);
|
|
256
|
+
if (r in de) {
|
|
257
|
+
const l = de[r], c = { type: l, children: [] };
|
|
258
|
+
if (l === "link") {
|
|
259
|
+
const u = e.getAttribute("href");
|
|
260
|
+
u && (c.url = u);
|
|
261
|
+
const h = {};
|
|
262
|
+
Array.from(e.attributes).forEach((f) => {
|
|
263
|
+
f.name !== "href" && !f.name.toLowerCase().startsWith("on") && (h[f.name] = f.value);
|
|
264
|
+
}), Object.keys(h).length > 0 && (c.htmlAttributes = h);
|
|
265
|
+
}
|
|
266
|
+
return c.children = mt(o), c;
|
|
267
|
+
}
|
|
268
|
+
if (r in he) {
|
|
269
|
+
const l = he[r];
|
|
270
|
+
return { text: te(o), [l]: !0 };
|
|
271
|
+
}
|
|
272
|
+
return r === "span" ? { text: te(o) } : { text: te(o) };
|
|
273
|
+
}, mt = (t) => {
|
|
274
|
+
const e = [];
|
|
275
|
+
for (const r of t)
|
|
276
|
+
typeof r == "string" ? r.trim() && e.push({ text: r }) : (r && j.isText(r) || r && _.isElement(r)) && e.push(r);
|
|
277
|
+
return e.length === 0 && e.push({ text: "" }), e;
|
|
278
|
+
}, Re = (t) => t.children.map((e) => j.isText(e) ? e.text : _.isElement(e) ? Re(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 ? Re(e) : String(e || "")).join(""), gt = (t) => {
|
|
279
|
+
const e = String(t).trim().toLowerCase();
|
|
280
|
+
return e.startsWith("javascript:") || e.startsWith("data:") || e.startsWith("vbscript:") ? "#" : String(t);
|
|
281
|
+
}, Fe = (t) => !Array.isArray(t) || t.length === 0 ? O() : t.map((e) => _.isElement(e) ? !e.children || e.children.length === 0 ? { ...e, children: [{ text: "" }] } : e : {
|
|
282
|
+
type: "paragraph",
|
|
283
|
+
children: [{ text: String(e) }]
|
|
284
|
+
}), fe = (t) => {
|
|
285
|
+
try {
|
|
286
|
+
const e = new URL(t);
|
|
287
|
+
return e.protocol === "http:" || e.protocol === "https:";
|
|
288
|
+
} catch {
|
|
289
|
+
return !1;
|
|
290
|
+
}
|
|
291
|
+
}, me = ["bulleted-list", "numbered-list"], yt = [
|
|
292
|
+
"bold",
|
|
293
|
+
"code",
|
|
294
|
+
"italic",
|
|
295
|
+
"underline",
|
|
296
|
+
"superscript",
|
|
297
|
+
"subscript",
|
|
298
|
+
"strikethrough"
|
|
299
|
+
], W = (t) => yt.includes(t), bt = (t, e) => W(e) ? t[e] === !0 : !1, D = (t, e) => {
|
|
300
|
+
const { selection: r } = t;
|
|
301
|
+
if (!r || xe.isCollapsed(r)) {
|
|
302
|
+
const o = b.marks(t);
|
|
303
|
+
if (o && W(e))
|
|
304
|
+
return o[e] === !0;
|
|
305
|
+
if (!r && t.children.length > 0) {
|
|
306
|
+
const n = t.children[0];
|
|
307
|
+
if (n.children && n.children.length > 0) {
|
|
308
|
+
const l = n.children[0];
|
|
309
|
+
if (j.isText(l) && W(e))
|
|
310
|
+
return l[e] === !0;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return !1;
|
|
314
|
+
}
|
|
315
|
+
try {
|
|
316
|
+
const o = Array.from(
|
|
317
|
+
b.nodes(t, {
|
|
318
|
+
at: r,
|
|
319
|
+
match: (n) => j.isText(n)
|
|
320
|
+
})
|
|
321
|
+
);
|
|
322
|
+
if (o.length === 0) {
|
|
323
|
+
const n = b.marks(t);
|
|
324
|
+
return !n || !W(e) ? !1 : n[e] === !0;
|
|
325
|
+
}
|
|
326
|
+
return o.every(([n]) => bt(n, e));
|
|
327
|
+
} catch {
|
|
328
|
+
const o = b.marks(t);
|
|
329
|
+
return !o || !W(e) ? !1 : o[e] === !0;
|
|
330
|
+
}
|
|
331
|
+
}, P = (t, e) => {
|
|
332
|
+
const { selection: r } = t;
|
|
333
|
+
if (r) {
|
|
334
|
+
const [o] = Array.from(
|
|
335
|
+
b.nodes(t, {
|
|
336
|
+
at: b.unhangRange(t, r),
|
|
337
|
+
match: (n) => !b.isEditor(n) && _.isElement(n) && n.type === e
|
|
338
|
+
})
|
|
339
|
+
);
|
|
340
|
+
return !!o;
|
|
341
|
+
}
|
|
342
|
+
return t.children.length > 0 ? t.children[0].type === e : !1;
|
|
343
|
+
}, K = (t, e) => {
|
|
344
|
+
D(t, e) ? b.removeMark(t, e) : b.addMark(t, e, !0);
|
|
345
|
+
}, re = (t, e) => {
|
|
346
|
+
const r = P(t, e), o = me.includes(e);
|
|
347
|
+
E.unwrapNodes(t, {
|
|
348
|
+
match: (l) => !b.isEditor(l) && _.isElement(l) && me.includes(l.type),
|
|
349
|
+
split: !0
|
|
350
|
+
});
|
|
351
|
+
let n;
|
|
352
|
+
if (r ? n = { type: "paragraph" } : o ? n = { type: "list-item" } : n = { type: e }, E.setNodes(t, n), !r && o) {
|
|
353
|
+
const l = { type: e, children: [] };
|
|
354
|
+
E.wrapNodes(t, l);
|
|
355
|
+
}
|
|
356
|
+
}, xt = (t) => {
|
|
357
|
+
ne.focus(t);
|
|
358
|
+
}, St = (t, e) => {
|
|
359
|
+
const r = ie(e);
|
|
360
|
+
E.delete(t, {
|
|
361
|
+
at: {
|
|
362
|
+
anchor: b.start(t, []),
|
|
363
|
+
focus: b.end(t, [])
|
|
364
|
+
}
|
|
365
|
+
}), E.insertNodes(t, r), E.select(t, b.start(t, []));
|
|
366
|
+
}, Tt = (t) => {
|
|
367
|
+
const { insertData: e, insertText: r, isInline: o } = t;
|
|
368
|
+
return t.isInline = (n) => n.type === "link" ? !0 : o(n), t.insertText = (n) => {
|
|
369
|
+
n && fe(n) ? ge(t, n) : r(n);
|
|
370
|
+
}, t.insertData = (n) => {
|
|
371
|
+
const l = n.getData("text/plain");
|
|
372
|
+
l && fe(l) ? ge(t, l) : e(n);
|
|
373
|
+
}, t;
|
|
374
|
+
}, wt = (t) => {
|
|
375
|
+
E.unwrapNodes(t, {
|
|
376
|
+
match: (e) => !b.isEditor(e) && _.isElement(e) && e.type === "link"
|
|
377
|
+
});
|
|
378
|
+
}, ge = (t, e) => {
|
|
379
|
+
P(t, "link") && wt(t);
|
|
380
|
+
const { selection: r } = t, o = r && xe.isCollapsed(r), n = {
|
|
381
|
+
type: "link",
|
|
382
|
+
url: e,
|
|
383
|
+
children: o ? [{ text: e }] : []
|
|
384
|
+
};
|
|
385
|
+
o ? E.insertNodes(t, n) : (E.wrapNodes(t, n, { split: !0 }), E.collapse(t, { edge: "end" }));
|
|
386
|
+
}, kt = ({
|
|
387
|
+
attributes: t,
|
|
388
|
+
children: e,
|
|
389
|
+
element: r
|
|
390
|
+
}) => {
|
|
391
|
+
const o = r, n = { textAlign: o.align };
|
|
392
|
+
switch (o.type) {
|
|
393
|
+
case "block-quote":
|
|
394
|
+
return /* @__PURE__ */ i("blockquote", { style: n, ...t, children: e });
|
|
395
|
+
case "bulleted-list":
|
|
396
|
+
return /* @__PURE__ */ i("ul", { style: n, ...t, children: e });
|
|
397
|
+
case "heading-one":
|
|
398
|
+
return /* @__PURE__ */ i("h1", { style: n, ...t, children: e });
|
|
399
|
+
case "heading-two":
|
|
400
|
+
return /* @__PURE__ */ i("h2", { style: n, ...t, children: e });
|
|
401
|
+
case "heading-three":
|
|
402
|
+
return /* @__PURE__ */ i("h3", { style: n, ...t, children: e });
|
|
403
|
+
case "heading-four":
|
|
404
|
+
return /* @__PURE__ */ i("h4", { style: n, ...t, children: e });
|
|
405
|
+
case "heading-five":
|
|
406
|
+
return /* @__PURE__ */ i("h5", { style: n, ...t, children: e });
|
|
407
|
+
case "list-item":
|
|
408
|
+
return /* @__PURE__ */ i("li", { style: n, ...t, children: e });
|
|
409
|
+
case "numbered-list":
|
|
410
|
+
return /* @__PURE__ */ i("ol", { style: n, ...t, children: e });
|
|
411
|
+
case "link":
|
|
412
|
+
return /* @__PURE__ */ i(
|
|
413
|
+
"a",
|
|
414
|
+
{
|
|
415
|
+
...t,
|
|
416
|
+
href: o.url,
|
|
417
|
+
rel: "noopener noreferrer",
|
|
418
|
+
style: n,
|
|
419
|
+
children: e
|
|
420
|
+
}
|
|
421
|
+
);
|
|
422
|
+
default:
|
|
423
|
+
return /* @__PURE__ */ i("p", { style: n, ...t, children: e });
|
|
424
|
+
}
|
|
425
|
+
}, Ct = ({
|
|
426
|
+
attributes: t,
|
|
427
|
+
children: e,
|
|
428
|
+
leaf: r
|
|
429
|
+
}) => {
|
|
430
|
+
const o = r;
|
|
431
|
+
return o.bold && (e = /* @__PURE__ */ i("strong", { children: e })), o.code && (e = /* @__PURE__ */ i("code", { children: e })), o.italic && (e = /* @__PURE__ */ i("em", { children: e })), o.underline && (e = /* @__PURE__ */ i("u", { children: e })), o.strikethrough && (e = /* @__PURE__ */ i("del", { children: e })), o.superscript && (e = /* @__PURE__ */ i("sup", { children: e })), o.subscript && (e = /* @__PURE__ */ i("sub", { children: e })), /* @__PURE__ */ i("span", { ...t, children: e });
|
|
432
|
+
}, vt = {
|
|
433
|
+
placeholderCharacter: `
|
|
434
|
+
`
|
|
435
|
+
}, Et = ({
|
|
436
|
+
withPreservedSelection: t
|
|
437
|
+
}) => {
|
|
438
|
+
const e = Z(), r = I(() => {
|
|
439
|
+
const c = [];
|
|
440
|
+
return lt.forEach((u) => {
|
|
441
|
+
D(e, u) && c.push(u);
|
|
442
|
+
}), new Set(c);
|
|
443
|
+
}, [e.selection, e.children, b.marks(e)]), o = I(() => {
|
|
444
|
+
const c = [];
|
|
445
|
+
return ct.forEach((u) => {
|
|
446
|
+
D(e, u) && c.push(u);
|
|
447
|
+
}), new Set(c);
|
|
448
|
+
}, [e.selection, e.children, b.marks(e)]), n = I(() => /* @__PURE__ */ new Set([
|
|
449
|
+
...Array.from(r),
|
|
450
|
+
...Array.from(o)
|
|
451
|
+
]), [r, o]), l = R(
|
|
452
|
+
(c) => {
|
|
453
|
+
if (c === "all") return;
|
|
454
|
+
const u = Array.from(c), h = Array.from(n), f = u.filter(
|
|
455
|
+
(p) => !h.includes(p)
|
|
456
|
+
), T = h.filter(
|
|
457
|
+
(p) => !u.includes(p)
|
|
458
|
+
);
|
|
459
|
+
[...f, ...T].forEach((p) => {
|
|
460
|
+
p === "superscript" || p === "subscript" ? t(() => {
|
|
461
|
+
const a = D(e, "superscript") ? "superscript" : D(e, "subscript") ? "subscript" : null;
|
|
462
|
+
f.includes(p) && a && a !== p && K(e, a), K(e, p);
|
|
463
|
+
})() : t(() => K(e, p))();
|
|
464
|
+
});
|
|
465
|
+
},
|
|
466
|
+
[e, n, t]
|
|
467
|
+
);
|
|
468
|
+
return {
|
|
469
|
+
selectedKeys: r,
|
|
470
|
+
selectedScriptKeys: o,
|
|
471
|
+
allSelectedKeys: n,
|
|
472
|
+
handleAllSelectionChange: l
|
|
473
|
+
};
|
|
474
|
+
}, Rt = {
|
|
475
|
+
bold: "Bold",
|
|
476
|
+
bulletedList: "Bulleted list",
|
|
477
|
+
code: "Code",
|
|
478
|
+
headingFive: "Heading 5",
|
|
479
|
+
headingFour: "Heading 4",
|
|
480
|
+
headingOne: "Heading 1",
|
|
481
|
+
headingThree: "Heading 3",
|
|
482
|
+
headingTwo: "Heading 2",
|
|
483
|
+
italic: "Italic",
|
|
484
|
+
listFormatting: "List formatting",
|
|
485
|
+
moreFormattingOptions: "More formatting options",
|
|
486
|
+
moreStyles: "More styles",
|
|
487
|
+
numberedList: "Numbered list",
|
|
488
|
+
paragraph: "Paragraph",
|
|
489
|
+
quote: "Quote",
|
|
490
|
+
redo: "Redo",
|
|
491
|
+
strikethrough: "Strikethrough",
|
|
492
|
+
subscript: "Subscript",
|
|
493
|
+
superscript: "Superscript",
|
|
494
|
+
textFormatting: "Text formatting",
|
|
495
|
+
textStyle: "Text style",
|
|
496
|
+
textStyleMenu: "Text style menu",
|
|
497
|
+
underline: "Underline",
|
|
498
|
+
undo: "Undo"
|
|
499
|
+
}, Ft = {
|
|
500
|
+
bold: "Fett",
|
|
501
|
+
bulletedList: "Aufzählungsliste",
|
|
502
|
+
code: "Code",
|
|
503
|
+
headingFive: "Überschrift 5",
|
|
504
|
+
headingFour: "Überschrift 4",
|
|
505
|
+
headingOne: "Überschrift 1",
|
|
506
|
+
headingThree: "Überschrift 3",
|
|
507
|
+
headingTwo: "Überschrift 2",
|
|
508
|
+
italic: "Kursiv",
|
|
509
|
+
listFormatting: "Listenformatierung",
|
|
510
|
+
moreFormattingOptions: "Weitere Formatierungsoptionen",
|
|
511
|
+
moreStyles: "Weitere Stile",
|
|
512
|
+
numberedList: "Nummerierte Liste",
|
|
513
|
+
paragraph: "Paragraph",
|
|
514
|
+
quote: "Zitat",
|
|
515
|
+
redo: "Wiederherstellen",
|
|
516
|
+
strikethrough: "Durchstreichen",
|
|
517
|
+
subscript: "Tiefgestellt",
|
|
518
|
+
superscript: "Hochgestellt",
|
|
519
|
+
textFormatting: "Textformatierung",
|
|
520
|
+
textStyle: "Textstil",
|
|
521
|
+
textStyleMenu: "Textstilmenü",
|
|
522
|
+
underline: "Unterstreichen",
|
|
523
|
+
undo: "Rückgängig machen"
|
|
524
|
+
}, Mt = {
|
|
525
|
+
bold: "Negrita",
|
|
526
|
+
bulletedList: "Lista no numerada",
|
|
527
|
+
code: "Código",
|
|
528
|
+
headingFive: "Encabezamiento 5",
|
|
529
|
+
headingFour: "Encabezamiento 4",
|
|
530
|
+
headingOne: "Encabezamiento 1",
|
|
531
|
+
headingThree: "Encabezamiento 3",
|
|
532
|
+
headingTwo: "Encabezamiento 2",
|
|
533
|
+
italic: "Cursiva",
|
|
534
|
+
listFormatting: "Formatear lista",
|
|
535
|
+
moreFormattingOptions: "Más opciones de formato",
|
|
536
|
+
moreStyles: "Más estilos",
|
|
537
|
+
numberedList: "Lista numerada",
|
|
538
|
+
paragraph: "Párrafo",
|
|
539
|
+
quote: "Presupuesto",
|
|
540
|
+
redo: "Repetir",
|
|
541
|
+
strikethrough: "Tachado",
|
|
542
|
+
subscript: "Subíndice",
|
|
543
|
+
superscript: "Índice superior",
|
|
544
|
+
textFormatting: "Formatear texto",
|
|
545
|
+
textStyle: "Estilo de texto",
|
|
546
|
+
textStyleMenu: "Menú de estilo de texto",
|
|
547
|
+
underline: "Subrayar",
|
|
548
|
+
undo: "Deshacer"
|
|
549
|
+
}, It = {
|
|
550
|
+
bold: "Gras",
|
|
551
|
+
bulletedList: "Liste à puces",
|
|
552
|
+
code: "Code",
|
|
553
|
+
headingFive: "En-tête 5",
|
|
554
|
+
headingFour: "En-tête 4",
|
|
555
|
+
headingOne: "En-tête 1",
|
|
556
|
+
headingThree: "En-tête 3",
|
|
557
|
+
headingTwo: "En-tête 2",
|
|
558
|
+
italic: "Italique",
|
|
559
|
+
listFormatting: "Formatage de la liste",
|
|
560
|
+
moreFormattingOptions: "Plus d'options de formatage",
|
|
561
|
+
moreStyles: "Plus de styles",
|
|
562
|
+
numberedList: "Liste numérotée",
|
|
563
|
+
paragraph: "Paragraphe",
|
|
564
|
+
quote: "Citation",
|
|
565
|
+
redo: "Rétablir",
|
|
566
|
+
strikethrough: "Barré",
|
|
567
|
+
subscript: "Indice",
|
|
568
|
+
superscript: "Exposant",
|
|
569
|
+
textFormatting: "Formatage du texte",
|
|
570
|
+
textStyle: "Style de texte",
|
|
571
|
+
textStyleMenu: "Menu style de texte",
|
|
572
|
+
underline: "Souligné",
|
|
573
|
+
undo: "Annuler"
|
|
574
|
+
}, Lt = {
|
|
575
|
+
bold: "Negrito",
|
|
576
|
+
bulletedList: "Lista com marcadores",
|
|
577
|
+
code: "Código",
|
|
578
|
+
headingFive: "Cabeçalho 5",
|
|
579
|
+
headingFour: "Cabeçalho 4",
|
|
580
|
+
headingOne: "Cabeçalho 1",
|
|
581
|
+
headingThree: "Cabeçalho 3",
|
|
582
|
+
headingTwo: "Cabeçalho 2",
|
|
583
|
+
italic: "Itálico",
|
|
584
|
+
listFormatting: "Formatação de lista",
|
|
585
|
+
moreFormattingOptions: "Mais opções de formatação",
|
|
586
|
+
moreStyles: "Mais estilos",
|
|
587
|
+
numberedList: "Lista numerada",
|
|
588
|
+
paragraph: "Parágrafo",
|
|
589
|
+
quote: "Cotação",
|
|
590
|
+
redo: "Refazer",
|
|
591
|
+
strikethrough: "Tachado",
|
|
592
|
+
subscript: "Subscrito",
|
|
593
|
+
superscript: "Sobrescrito",
|
|
594
|
+
textFormatting: "Formatação de texto",
|
|
595
|
+
textStyle: "Estilo de texto",
|
|
596
|
+
textStyleMenu: "Menu de estilo de texto",
|
|
597
|
+
underline: "Sublinhado",
|
|
598
|
+
undo: "Desfazer"
|
|
599
|
+
}, Me = {
|
|
600
|
+
en: /* @__PURE__ */ U(Rt),
|
|
601
|
+
de: /* @__PURE__ */ U(Ft),
|
|
602
|
+
es: /* @__PURE__ */ U(Mt),
|
|
603
|
+
"fr-FR": /* @__PURE__ */ U(It),
|
|
604
|
+
"pt-BR": /* @__PURE__ */ U(Lt)
|
|
605
|
+
}, At = ({ isDisabled: t = !1 }) => {
|
|
606
|
+
const e = Se(Me), r = Z(), o = ke(r), { allSelectedKeys: n, handleAllSelectionChange: l } = Et({
|
|
607
|
+
withPreservedSelection: o
|
|
608
|
+
});
|
|
609
|
+
return /* @__PURE__ */ d(
|
|
610
|
+
v.Root,
|
|
611
|
+
{
|
|
612
|
+
selectionMode: "multiple",
|
|
613
|
+
selectedKeys: n,
|
|
614
|
+
onSelectionChange: l,
|
|
615
|
+
children: [
|
|
616
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
617
|
+
/* @__PURE__ */ i(v.Trigger, { asChild: !0, children: /* @__PURE__ */ i(
|
|
618
|
+
oe,
|
|
619
|
+
{
|
|
620
|
+
size: "xs",
|
|
621
|
+
variant: "ghost",
|
|
622
|
+
"aria-label": e.format("moreFormattingOptions"),
|
|
623
|
+
isDisabled: t,
|
|
624
|
+
onMouseDown: (c) => c.preventDefault(),
|
|
625
|
+
children: /* @__PURE__ */ i(We, {})
|
|
626
|
+
}
|
|
627
|
+
) }),
|
|
628
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("moreStyles") })
|
|
629
|
+
] }),
|
|
630
|
+
/* @__PURE__ */ d(v.Content, { children: [
|
|
631
|
+
/* @__PURE__ */ i(v.Item, { id: "strikethrough", children: /* @__PURE__ */ d($, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
632
|
+
/* @__PURE__ */ i(je, {}),
|
|
633
|
+
/* @__PURE__ */ i(A, { textStyle: "sm", children: e.format("strikethrough") })
|
|
634
|
+
] }) }),
|
|
635
|
+
/* @__PURE__ */ i(v.Item, { id: "code", children: /* @__PURE__ */ d($, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
636
|
+
/* @__PURE__ */ i(Ge, {}),
|
|
637
|
+
/* @__PURE__ */ i(A, { textStyle: "sm", children: e.format("code") })
|
|
638
|
+
] }) }),
|
|
639
|
+
/* @__PURE__ */ i(v.Item, { id: "superscript", children: /* @__PURE__ */ d($, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
640
|
+
/* @__PURE__ */ i(A, { children: "X²" }),
|
|
641
|
+
/* @__PURE__ */ i(A, { textStyle: "sm", children: e.format("superscript") })
|
|
642
|
+
] }) }),
|
|
643
|
+
/* @__PURE__ */ i(v.Item, { id: "subscript", children: /* @__PURE__ */ d($, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
|
|
644
|
+
/* @__PURE__ */ i(A, { children: "X₂" }),
|
|
645
|
+
/* @__PURE__ */ i(A, { textStyle: "sm", children: e.format("subscript") })
|
|
646
|
+
] }) })
|
|
647
|
+
] })
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
);
|
|
651
|
+
};
|
|
652
|
+
var C = {}, ye;
|
|
653
|
+
function Dt() {
|
|
654
|
+
if (ye) return C;
|
|
655
|
+
ye = 1, Object.defineProperty(C, "__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
|
+
}, o = {
|
|
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
|
+
o["f" + n] = 111 + n;
|
|
722
|
+
function l(a, s, y) {
|
|
723
|
+
s && !("byKey" in s) && (y = s, s = null), Array.isArray(a) || (a = [a]);
|
|
724
|
+
var x = a.map(function(L) {
|
|
725
|
+
return h(L, s);
|
|
726
|
+
}), S = function(F) {
|
|
727
|
+
return x.some(function(M) {
|
|
728
|
+
return f(M, F);
|
|
729
|
+
});
|
|
730
|
+
}, H = y == null ? S : S(y);
|
|
731
|
+
return H;
|
|
732
|
+
}
|
|
733
|
+
function c(a, s) {
|
|
734
|
+
return l(a, s);
|
|
735
|
+
}
|
|
736
|
+
function u(a, s) {
|
|
737
|
+
return l(a, { byKey: !0 }, s);
|
|
738
|
+
}
|
|
739
|
+
function h(a, s) {
|
|
740
|
+
var y = s && s.byKey, x = {};
|
|
741
|
+
a = a.replace("++", "+add");
|
|
742
|
+
var S = a.split("+"), H = S.length;
|
|
743
|
+
for (var L in e)
|
|
744
|
+
x[e[L]] = !1;
|
|
745
|
+
var F = !0, M = !1, m = void 0;
|
|
746
|
+
try {
|
|
747
|
+
for (var z = S[Symbol.iterator](), G; !(F = (G = z.next()).done); F = !0) {
|
|
748
|
+
var k = G.value, J = k.endsWith("?") && k.length > 1;
|
|
749
|
+
J && (k = k.slice(0, -1));
|
|
750
|
+
var q = p(k), w = e[q];
|
|
751
|
+
if (k.length > 1 && !w && !r[k] && !o[q])
|
|
752
|
+
throw new TypeError('Unknown modifier: "' + k + '"');
|
|
753
|
+
(H === 1 || !w) && (y ? x.key = q : x.which = T(k)), w && (x[w] = J ? null : !0);
|
|
754
|
+
}
|
|
755
|
+
} catch (N) {
|
|
756
|
+
M = !0, m = N;
|
|
757
|
+
} finally {
|
|
758
|
+
try {
|
|
759
|
+
!F && z.return && z.return();
|
|
760
|
+
} finally {
|
|
761
|
+
if (M)
|
|
762
|
+
throw m;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return x;
|
|
766
|
+
}
|
|
767
|
+
function f(a, s) {
|
|
768
|
+
for (var y in a) {
|
|
769
|
+
var x = a[y], S = void 0;
|
|
770
|
+
if (x != null && (y === "key" && s.key != null ? S = s.key.toLowerCase() : y === "which" ? S = x === 91 && s.which === 93 ? 91 : s.which : S = s[y], !(S == null && x === !1) && S !== x))
|
|
771
|
+
return !1;
|
|
772
|
+
}
|
|
773
|
+
return !0;
|
|
774
|
+
}
|
|
775
|
+
function T(a) {
|
|
776
|
+
a = p(a);
|
|
777
|
+
var s = o[a] || a.toUpperCase().charCodeAt(0);
|
|
778
|
+
return s;
|
|
779
|
+
}
|
|
780
|
+
function p(a) {
|
|
781
|
+
return a = a.toLowerCase(), a = r[a] || a, a;
|
|
782
|
+
}
|
|
783
|
+
return C.default = l, C.isHotkey = l, C.isCodeHotkey = c, C.isKeyHotkey = u, C.parseHotkey = h, C.compareHotkey = f, C.toKeyCode = T, C.toKeyName = p, C;
|
|
784
|
+
}
|
|
785
|
+
var Kt = /* @__PURE__ */ Dt();
|
|
786
|
+
const Ot = /* @__PURE__ */ Te(Kt), Ht = ({ editor: t }) => ({ handleKeyDown: R(
|
|
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 o in ue)
|
|
793
|
+
if (Ot(o, r)) {
|
|
794
|
+
r.preventDefault();
|
|
795
|
+
const n = ue[o];
|
|
796
|
+
K(t, n);
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
if (r.shiftKey && r.key === "Enter") {
|
|
800
|
+
r.preventDefault(), t.insertText(vt.placeholderCharacter);
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
[t]
|
|
805
|
+
) }), Ie = function({
|
|
806
|
+
ref: e,
|
|
807
|
+
value: r,
|
|
808
|
+
onChange: o,
|
|
809
|
+
onFocus: n,
|
|
810
|
+
onBlur: l,
|
|
811
|
+
placeholder: c = X.placeholder,
|
|
812
|
+
isDisabled: u = X.isDisabled,
|
|
813
|
+
isReadOnly: h = X.isReadOnly,
|
|
814
|
+
autoFocus: f = X.autoFocus,
|
|
815
|
+
toolbar: T
|
|
816
|
+
//...props
|
|
817
|
+
}) {
|
|
818
|
+
const p = be(null), a = Ve(He(p, e)), s = I(() => {
|
|
819
|
+
const m = ze();
|
|
820
|
+
return Tt(Ue(_e(m)));
|
|
821
|
+
}, []), { handleKeyDown: y } = Ht({ editor: s }), x = R(
|
|
822
|
+
(m) => {
|
|
823
|
+
n && n(m);
|
|
824
|
+
},
|
|
825
|
+
[n]
|
|
826
|
+
), S = R(
|
|
827
|
+
(m) => {
|
|
828
|
+
l && l(m);
|
|
829
|
+
},
|
|
830
|
+
[l]
|
|
831
|
+
);
|
|
832
|
+
De(
|
|
833
|
+
a,
|
|
834
|
+
() => ({
|
|
835
|
+
focus: () => xt(s),
|
|
836
|
+
resetValue: (m) => St(s, m)
|
|
837
|
+
}),
|
|
838
|
+
[s]
|
|
839
|
+
);
|
|
840
|
+
const H = R(
|
|
841
|
+
(m) => /* @__PURE__ */ i(kt, { ...m }),
|
|
842
|
+
[]
|
|
843
|
+
), L = R(
|
|
844
|
+
(m) => /* @__PURE__ */ i(Ct, { ...m }),
|
|
845
|
+
[]
|
|
846
|
+
), F = O(), M = Array.isArray(r) && r.length > 0 ? r : F;
|
|
847
|
+
return /* @__PURE__ */ d(qe, { editor: s, value: M, onChange: o, children: [
|
|
848
|
+
T && /* @__PURE__ */ i(st, { children: T }),
|
|
849
|
+
/* @__PURE__ */ i(at, { asChild: !0, children: /* @__PURE__ */ i(
|
|
850
|
+
Be,
|
|
851
|
+
{
|
|
852
|
+
renderElement: H,
|
|
853
|
+
renderLeaf: L,
|
|
854
|
+
placeholder: c,
|
|
855
|
+
autoFocus: f,
|
|
856
|
+
readOnly: h || u,
|
|
857
|
+
onKeyDown: y,
|
|
858
|
+
onFocus: x,
|
|
859
|
+
onBlur: S,
|
|
860
|
+
"aria-label": "Rich text editor",
|
|
861
|
+
role: "textbox",
|
|
862
|
+
"aria-multiline": "true"
|
|
863
|
+
}
|
|
864
|
+
) })
|
|
865
|
+
] });
|
|
866
|
+
};
|
|
867
|
+
Ie.displayName = "RichTextEditor";
|
|
868
|
+
const Nt = ({
|
|
869
|
+
withPreservedSelection: t,
|
|
870
|
+
textStyles: e
|
|
871
|
+
}) => {
|
|
872
|
+
const r = Z(), o = I(() => dt.find(
|
|
873
|
+
(a) => P(r, a)
|
|
874
|
+
) || "paragraph", [r.selection, r.children]), n = e.find((a) => a.id === o), l = n?.label || "", c = R(
|
|
875
|
+
(a) => {
|
|
876
|
+
t(() => {
|
|
877
|
+
re(r, a);
|
|
878
|
+
})();
|
|
879
|
+
},
|
|
880
|
+
[r, t]
|
|
881
|
+
), u = R(
|
|
882
|
+
(a) => {
|
|
883
|
+
t(() => {
|
|
884
|
+
const s = Array.from(a)[0], y = P(r, "bulleted-list") ? "bulleted-list" : P(r, "numbered-list") ? "numbered-list" : null;
|
|
885
|
+
s ? re(r, s) : y && re(r, y);
|
|
886
|
+
})();
|
|
887
|
+
},
|
|
888
|
+
[r, t]
|
|
889
|
+
), h = I(() => {
|
|
890
|
+
const a = [];
|
|
891
|
+
return D(r, "bold") && a.push("bold"), D(r, "italic") && a.push("italic"), D(r, "underline") && a.push("underline"), new Set(a);
|
|
892
|
+
}, [r.selection, r.children, b.marks(r)]), f = I(() => {
|
|
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]), T = I(() => r.history && r.history.undos.length > 0, [r.selection, r.children]), p = I(() => r.history && r.history.redos.length > 0, [r.selection, r.children]);
|
|
896
|
+
return {
|
|
897
|
+
currentTextStyle: o,
|
|
898
|
+
selectedTextStyle: n,
|
|
899
|
+
selectedTextStyleLabel: l,
|
|
900
|
+
handleTextStyleChange: c,
|
|
901
|
+
handleListToggle: u,
|
|
902
|
+
selectedFormatKeys: h,
|
|
903
|
+
selectedListKeys: f,
|
|
904
|
+
hasUndos: T,
|
|
905
|
+
hasRedos: p
|
|
906
|
+
};
|
|
907
|
+
}, Le = ({
|
|
908
|
+
isDisabled: t = !1
|
|
909
|
+
}) => {
|
|
910
|
+
const e = Se(Me), r = Z(), o = ke(r), n = ut(e.format), {
|
|
911
|
+
currentTextStyle: l,
|
|
912
|
+
selectedTextStyleLabel: c,
|
|
913
|
+
handleTextStyleChange: u,
|
|
914
|
+
handleListToggle: h,
|
|
915
|
+
selectedFormatKeys: f,
|
|
916
|
+
selectedListKeys: T,
|
|
917
|
+
hasUndos: p,
|
|
918
|
+
hasRedos: a
|
|
919
|
+
} = Nt({ withPreservedSelection: o, textStyles: n });
|
|
920
|
+
return /* @__PURE__ */ d(
|
|
921
|
+
nt,
|
|
922
|
+
{
|
|
923
|
+
orientation: "horizontal",
|
|
924
|
+
"aria-label": e.format("textFormatting"),
|
|
925
|
+
width: "full",
|
|
926
|
+
overflow: "hidden",
|
|
927
|
+
size: "xs",
|
|
928
|
+
children: [
|
|
929
|
+
/* @__PURE__ */ i(ae, { children: /* @__PURE__ */ d(
|
|
930
|
+
v.Root,
|
|
931
|
+
{
|
|
932
|
+
onAction: (s) => u(String(s)),
|
|
933
|
+
children: [
|
|
934
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
935
|
+
/* @__PURE__ */ i(
|
|
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: (s) => s.preventDefault(),
|
|
945
|
+
"aria-label": e.format("textStyleMenu"),
|
|
946
|
+
children: /* @__PURE__ */ d($, { display: "flex", alignItems: "center", gap: "200", px: "200", children: [
|
|
947
|
+
/* @__PURE__ */ i($, { display: "flex", alignItems: "center", gap: "200", flexGrow: "1", children: /* @__PURE__ */ i(A, { my: "auto", textStyle: "sm", fontWeight: "500", children: c }) }),
|
|
948
|
+
/* @__PURE__ */ i(Xe, {})
|
|
949
|
+
] })
|
|
950
|
+
}
|
|
951
|
+
),
|
|
952
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("textStyle") })
|
|
953
|
+
] }),
|
|
954
|
+
/* @__PURE__ */ i(v.Content, { children: n.map((s) => /* @__PURE__ */ i(
|
|
955
|
+
v.Item,
|
|
956
|
+
{
|
|
957
|
+
id: s.id,
|
|
958
|
+
...l === s.id && {
|
|
959
|
+
"data-state": "checked"
|
|
960
|
+
},
|
|
961
|
+
children: /* @__PURE__ */ i(A, { ...s.props, children: s.label })
|
|
962
|
+
},
|
|
963
|
+
s.id
|
|
964
|
+
)) })
|
|
965
|
+
]
|
|
966
|
+
}
|
|
967
|
+
) }),
|
|
968
|
+
/* @__PURE__ */ i(le, { orientation: "vertical" }),
|
|
969
|
+
/* @__PURE__ */ d(
|
|
970
|
+
ce.Root,
|
|
971
|
+
{
|
|
972
|
+
selectionMode: "multiple",
|
|
973
|
+
selectedKeys: f,
|
|
974
|
+
isDisabled: t,
|
|
975
|
+
children: [
|
|
976
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
977
|
+
/* @__PURE__ */ d(
|
|
978
|
+
B,
|
|
979
|
+
{
|
|
980
|
+
id: "bold",
|
|
981
|
+
size: "xs",
|
|
982
|
+
variant: "ghost",
|
|
983
|
+
"aria-label": e.format("bold"),
|
|
984
|
+
isDisabled: t,
|
|
985
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
986
|
+
onPress: o(() => K(r, "bold")),
|
|
987
|
+
children: [
|
|
988
|
+
/* @__PURE__ */ i(Ye, {}),
|
|
989
|
+
/* @__PURE__ */ i(V, { children: e.format("bold") })
|
|
990
|
+
]
|
|
991
|
+
}
|
|
992
|
+
),
|
|
993
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("bold") })
|
|
994
|
+
] }),
|
|
995
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
996
|
+
/* @__PURE__ */ d(
|
|
997
|
+
B,
|
|
998
|
+
{
|
|
999
|
+
id: "italic",
|
|
1000
|
+
size: "xs",
|
|
1001
|
+
variant: "ghost",
|
|
1002
|
+
"aria-label": e.format("italic"),
|
|
1003
|
+
isDisabled: t,
|
|
1004
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1005
|
+
onPress: o(() => K(r, "italic")),
|
|
1006
|
+
children: [
|
|
1007
|
+
/* @__PURE__ */ i(Qe, {}),
|
|
1008
|
+
/* @__PURE__ */ i(V, { children: e.format("italic") })
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
),
|
|
1012
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("italic") })
|
|
1013
|
+
] }),
|
|
1014
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
1015
|
+
/* @__PURE__ */ d(
|
|
1016
|
+
B,
|
|
1017
|
+
{
|
|
1018
|
+
id: "underline",
|
|
1019
|
+
size: "xs",
|
|
1020
|
+
variant: "ghost",
|
|
1021
|
+
"aria-label": e.format("underline"),
|
|
1022
|
+
isDisabled: t,
|
|
1023
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1024
|
+
onPress: o(
|
|
1025
|
+
() => K(r, "underline")
|
|
1026
|
+
),
|
|
1027
|
+
children: [
|
|
1028
|
+
/* @__PURE__ */ i(Ze, {}),
|
|
1029
|
+
/* @__PURE__ */ i(V, { children: e.format("underline") })
|
|
1030
|
+
]
|
|
1031
|
+
}
|
|
1032
|
+
),
|
|
1033
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("underline") })
|
|
1034
|
+
] })
|
|
1035
|
+
]
|
|
1036
|
+
}
|
|
1037
|
+
),
|
|
1038
|
+
/* @__PURE__ */ i(At, { isDisabled: t }),
|
|
1039
|
+
/* @__PURE__ */ i(le, { orientation: "vertical" }),
|
|
1040
|
+
/* @__PURE__ */ d(
|
|
1041
|
+
ce.Root,
|
|
1042
|
+
{
|
|
1043
|
+
selectionMode: "single",
|
|
1044
|
+
selectedKeys: T,
|
|
1045
|
+
onSelectionChange: h,
|
|
1046
|
+
"aria-label": e.format("listFormatting"),
|
|
1047
|
+
isDisabled: t,
|
|
1048
|
+
children: [
|
|
1049
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
1050
|
+
/* @__PURE__ */ i(
|
|
1051
|
+
B,
|
|
1052
|
+
{
|
|
1053
|
+
id: "bulleted-list",
|
|
1054
|
+
size: "xs",
|
|
1055
|
+
variant: "ghost",
|
|
1056
|
+
"aria-label": e.format("bulletedList"),
|
|
1057
|
+
isDisabled: t,
|
|
1058
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1059
|
+
children: /* @__PURE__ */ i(Je, {})
|
|
1060
|
+
}
|
|
1061
|
+
),
|
|
1062
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("bulletedList") })
|
|
1063
|
+
] }),
|
|
1064
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
1065
|
+
/* @__PURE__ */ i(
|
|
1066
|
+
B,
|
|
1067
|
+
{
|
|
1068
|
+
id: "numbered-list",
|
|
1069
|
+
size: "xs",
|
|
1070
|
+
variant: "ghost",
|
|
1071
|
+
"aria-label": e.format("numberedList"),
|
|
1072
|
+
isDisabled: t,
|
|
1073
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1074
|
+
children: /* @__PURE__ */ i(et, {})
|
|
1075
|
+
}
|
|
1076
|
+
),
|
|
1077
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("numberedList") })
|
|
1078
|
+
] })
|
|
1079
|
+
]
|
|
1080
|
+
}
|
|
1081
|
+
),
|
|
1082
|
+
/* @__PURE__ */ i($, { flexGrow: "1" }),
|
|
1083
|
+
/* @__PURE__ */ d(ae, { children: [
|
|
1084
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
1085
|
+
/* @__PURE__ */ d(
|
|
1086
|
+
oe,
|
|
1087
|
+
{
|
|
1088
|
+
size: "xs",
|
|
1089
|
+
variant: "ghost",
|
|
1090
|
+
"aria-label": e.format("undo"),
|
|
1091
|
+
isDisabled: !p || t,
|
|
1092
|
+
onPress: o(() => r.undo()),
|
|
1093
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1094
|
+
children: [
|
|
1095
|
+
/* @__PURE__ */ i(tt, {}),
|
|
1096
|
+
/* @__PURE__ */ i(V, { children: e.format("undo") })
|
|
1097
|
+
]
|
|
1098
|
+
}
|
|
1099
|
+
),
|
|
1100
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("undo") })
|
|
1101
|
+
] }),
|
|
1102
|
+
/* @__PURE__ */ d(g.Root, { delay: 0, closeDelay: 0, children: [
|
|
1103
|
+
/* @__PURE__ */ d(
|
|
1104
|
+
oe,
|
|
1105
|
+
{
|
|
1106
|
+
size: "xs",
|
|
1107
|
+
variant: "ghost",
|
|
1108
|
+
"aria-label": e.format("redo"),
|
|
1109
|
+
isDisabled: !a || t,
|
|
1110
|
+
onPress: o(() => r.redo()),
|
|
1111
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
1112
|
+
children: [
|
|
1113
|
+
/* @__PURE__ */ i(rt, {}),
|
|
1114
|
+
/* @__PURE__ */ i(V, { children: e.format("redo") })
|
|
1115
|
+
]
|
|
1116
|
+
}
|
|
1117
|
+
),
|
|
1118
|
+
/* @__PURE__ */ i(g.Content, { placement: "top", children: e.format("redo") })
|
|
1119
|
+
] })
|
|
1120
|
+
] })
|
|
1121
|
+
]
|
|
1122
|
+
}
|
|
1123
|
+
);
|
|
1124
|
+
};
|
|
1125
|
+
Le.displayName = "RichTextToolbar";
|
|
1126
|
+
const Pt = (t) => {
|
|
1127
|
+
const {
|
|
1128
|
+
ref: e,
|
|
1129
|
+
value: r,
|
|
1130
|
+
defaultValue: o,
|
|
1131
|
+
onChange: n,
|
|
1132
|
+
onFocus: l,
|
|
1133
|
+
onBlur: c,
|
|
1134
|
+
placeholder: u = "",
|
|
1135
|
+
isDisabled: h = !1,
|
|
1136
|
+
isReadOnly: f = !1,
|
|
1137
|
+
isInvalid: T = !1,
|
|
1138
|
+
autoFocus: p = !1,
|
|
1139
|
+
...a
|
|
1140
|
+
} = t, s = Ne({ recipe: $e }), [y, x] = s.splitVariantProps({
|
|
1141
|
+
// Only semantic variants go here (none currently defined)
|
|
1142
|
+
...a
|
|
1143
|
+
}), [S, H] = Pe(x), L = {
|
|
1144
|
+
"data-disabled": h ? "true" : void 0,
|
|
1145
|
+
"data-invalid": T ? "true" : void 0,
|
|
1146
|
+
"data-readonly": f ? "true" : void 0
|
|
1147
|
+
}, [F, M] = se(() => {
|
|
1148
|
+
const w = r ?? o ?? "";
|
|
1149
|
+
try {
|
|
1150
|
+
return w ? ie(w) : O();
|
|
1151
|
+
} catch (N) {
|
|
1152
|
+
return console.warn("Failed to parse initial HTML, using empty value:", N), O();
|
|
1153
|
+
}
|
|
1154
|
+
}), [m, z] = se(() => r ?? o ?? ""), G = be(null);
|
|
1155
|
+
Ke(() => {
|
|
1156
|
+
if (r !== void 0 && r !== m) {
|
|
1157
|
+
const w = r ? ie(r) : O();
|
|
1158
|
+
M(w), z(r);
|
|
1159
|
+
}
|
|
1160
|
+
}, [r, m]);
|
|
1161
|
+
const k = R(
|
|
1162
|
+
(w) => {
|
|
1163
|
+
const N = ft(w), Ae = N !== m;
|
|
1164
|
+
M(w), z(N), Ae && n && n(N);
|
|
1165
|
+
},
|
|
1166
|
+
[m, n]
|
|
1167
|
+
), q = Fe(F);
|
|
1168
|
+
return /* @__PURE__ */ i(
|
|
1169
|
+
it,
|
|
1170
|
+
{
|
|
1171
|
+
role: "group",
|
|
1172
|
+
...y,
|
|
1173
|
+
...S,
|
|
1174
|
+
...H,
|
|
1175
|
+
...L,
|
|
1176
|
+
ref: e,
|
|
1177
|
+
children: /* @__PURE__ */ i(
|
|
1178
|
+
Ie,
|
|
1179
|
+
{
|
|
1180
|
+
ref: G,
|
|
1181
|
+
value: q,
|
|
1182
|
+
onChange: k,
|
|
1183
|
+
onFocus: l,
|
|
1184
|
+
onBlur: c,
|
|
1185
|
+
placeholder: u,
|
|
1186
|
+
isDisabled: h,
|
|
1187
|
+
isReadOnly: f,
|
|
1188
|
+
autoFocus: p,
|
|
1189
|
+
toolbar: f ? null : /* @__PURE__ */ i(Le, { isDisabled: h })
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1192
|
+
}
|
|
1193
|
+
);
|
|
1194
|
+
};
|
|
1195
|
+
Pt.displayName = "RichTextInput";
|
|
1196
|
+
export {
|
|
1197
|
+
Pt as R,
|
|
1198
|
+
Te as g
|
|
1199
|
+
};
|
|
1200
|
+
//# sourceMappingURL=rich-text-input-CRGUa5d2.es.js.map
|