@commercetools/nimbus 0.0.0-canary-20260116101948 → 0.0.0-canary-20260119090325

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.
Files changed (588) hide show
  1. package/README.md +87 -21
  2. package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js → CollectionBuilder-BOe312C_.es.js} +6 -6
  3. package/dist/chunks/{CollectionBuilder-BnYe2z4W.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
  4. package/dist/chunks/DateField-BxXzaXAv.cjs.js +2 -0
  5. package/dist/chunks/{DateField-D_ywBfBB.cjs.js.map → DateField-BxXzaXAv.cjs.js.map} +1 -1
  6. package/dist/chunks/{DateField-DMHI1uyM.es.js → DateField-DCWy1Ysp.es.js} +25 -24
  7. package/dist/chunks/{DateField-DMHI1uyM.es.js.map → DateField-DCWy1Ysp.es.js.map} +1 -1
  8. package/dist/chunks/{DatePicker-VyVWP-2-.es.js → DatePicker-CL72jbDo.es.js} +5 -5
  9. package/dist/chunks/{DatePicker-VyVWP-2-.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
  10. package/dist/chunks/{DatePicker-DdoSCY92.cjs.js → DatePicker-NWRDzwUt.cjs.js} +2 -2
  11. package/dist/chunks/{DatePicker-DdoSCY92.cjs.js.map → DatePicker-NWRDzwUt.cjs.js.map} +1 -1
  12. package/dist/chunks/{Dialog-BZs_dKan.es.js → Dialog-B0BQfdQa.es.js} +58 -58
  13. package/dist/chunks/{Dialog-BZs_dKan.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
  14. package/dist/chunks/{Dialog-DilDtCFc.cjs.js → Dialog-CSr6lHSd.cjs.js} +2 -2
  15. package/dist/chunks/{Dialog-DilDtCFc.cjs.js.map → Dialog-CSr6lHSd.cjs.js.map} +1 -1
  16. package/dist/chunks/{Header-2KETI4X9.es.js → Header-CiYtrnTw.es.js} +3 -3
  17. package/dist/chunks/{Header-2KETI4X9.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
  18. package/dist/chunks/{Heading-DDEPjNlF.es.js → Heading-BMsylHxq.es.js} +2 -2
  19. package/dist/chunks/{Heading-DDEPjNlF.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
  20. package/dist/chunks/{Heading-UZcOiBkN.cjs.js → Heading-C7J8IDnn.cjs.js} +2 -2
  21. package/dist/chunks/{Heading-UZcOiBkN.cjs.js.map → Heading-C7J8IDnn.cjs.js.map} +1 -1
  22. package/dist/chunks/{ListBox-DkaySjTS.es.js → ListBox-RrHJjnuq.es.js} +6 -6
  23. package/dist/chunks/{ListBox-DkaySjTS.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
  24. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js +2 -0
  25. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js.map +1 -0
  26. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js +48 -0
  27. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js.map +1 -0
  28. package/dist/chunks/{Modal-DcbaiE5l.es.js → Modal-K4JEy19g.es.js} +3 -3
  29. package/dist/chunks/{Modal-DcbaiE5l.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
  30. package/dist/chunks/{Modal-CSjx-pPv.cjs.js → Modal-u97jKK9t.cjs.js} +2 -2
  31. package/dist/chunks/{Modal-CSjx-pPv.cjs.js.map → Modal-u97jKK9t.cjs.js.map} +1 -1
  32. package/dist/chunks/{SelectionManager-XpKaZHOS.es.js → SelectionManager-CX9btso_.es.js} +5 -5
  33. package/dist/chunks/{SelectionManager-XpKaZHOS.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
  34. package/dist/chunks/{Separator-DP89PKAS.es.js → Separator-x6wk4JUe.es.js} +2 -2
  35. package/dist/chunks/{Separator-DP89PKAS.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
  36. package/dist/chunks/{accordion-C0MESyjK.es.js → accordion-Dh0RVlNx.es.js} +2 -2
  37. package/dist/chunks/{accordion-C0MESyjK.es.js.map → accordion-Dh0RVlNx.es.js.map} +1 -1
  38. package/dist/chunks/{accordion.content-DxOsZTFV.es.js → accordion.content-GGayEeqD.es.js} +2 -2
  39. package/dist/chunks/{accordion.content-DxOsZTFV.es.js.map → accordion.content-GGayEeqD.es.js.map} +1 -1
  40. package/dist/chunks/{alert-DVNh9ZZh.es.js → alert-DCgWOaY2.es.js} +50 -50
  41. package/dist/chunks/alert-DCgWOaY2.es.js.map +1 -0
  42. package/dist/chunks/alert-pPmN9CXZ.cjs.js +2 -0
  43. package/dist/chunks/alert-pPmN9CXZ.cjs.js.map +1 -0
  44. package/dist/chunks/avatar-1Y7cLjZT.es.js +59 -0
  45. package/dist/chunks/avatar-1Y7cLjZT.es.js.map +1 -0
  46. package/dist/chunks/avatar-BVQ91Ccd.cjs.js +2 -0
  47. package/dist/chunks/avatar-BVQ91Ccd.cjs.js.map +1 -0
  48. package/dist/chunks/{button-CGhRXrYT.es.js → button-BEJnxXsL.es.js} +2 -2
  49. package/dist/chunks/{button-CGhRXrYT.es.js.map → button-BEJnxXsL.es.js.map} +1 -1
  50. package/dist/chunks/calendar-B01Vti5k.cjs.js +2 -0
  51. package/dist/chunks/calendar-B01Vti5k.cjs.js.map +1 -0
  52. package/dist/chunks/calendar-lSoXK-yt.es.js +227 -0
  53. package/dist/chunks/calendar-lSoXK-yt.es.js.map +1 -0
  54. package/dist/chunks/{card-BClQfyiK.es.js → card-q5i119kB.es.js} +2 -2
  55. package/dist/chunks/{card-BClQfyiK.es.js.map → card-q5i119kB.es.js.map} +1 -1
  56. package/dist/chunks/{checkbox-C714rIb1.es.js → checkbox-CputcCVr.es.js} +2 -2
  57. package/dist/chunks/{checkbox-C714rIb1.es.js.map → checkbox-CputcCVr.es.js.map} +1 -1
  58. package/dist/chunks/{collapsible-motion-CfzVnfFa.es.js → collapsible-motion-DvtUDuxb.es.js} +2 -2
  59. package/dist/chunks/{collapsible-motion-CfzVnfFa.es.js.map → collapsible-motion-DvtUDuxb.es.js.map} +1 -1
  60. package/dist/chunks/combobox-Do4z66WO.cjs.js +2 -0
  61. package/dist/chunks/combobox-Do4z66WO.cjs.js.map +1 -0
  62. package/dist/chunks/{combobox-B_Qx3gRo.es.js → combobox-h1qOiDJD.es.js} +232 -222
  63. package/dist/chunks/combobox-h1qOiDJD.es.js.map +1 -0
  64. package/dist/chunks/data-table-CBZLbe9h.cjs.js +2 -0
  65. package/dist/chunks/data-table-CBZLbe9h.cjs.js.map +1 -0
  66. package/dist/chunks/{data-table-4Q4HP9cz.es.js → data-table-DA4SdIgU.es.js} +1186 -1192
  67. package/dist/chunks/data-table-DA4SdIgU.es.js.map +1 -0
  68. package/dist/chunks/{date-input-BYwVUYj2.es.js → date-input-Cd9q4qBj.es.js} +4 -4
  69. package/dist/chunks/{date-input-BYwVUYj2.es.js.map → date-input-Cd9q4qBj.es.js.map} +1 -1
  70. package/dist/chunks/{date-input-DnFinTEI.cjs.js → date-input-DkYcGwBy.cjs.js} +2 -2
  71. package/dist/chunks/{date-input-DnFinTEI.cjs.js.map → date-input-DkYcGwBy.cjs.js.map} +1 -1
  72. package/dist/chunks/date-picker-B8VVNXU3.es.js +228 -0
  73. package/dist/chunks/date-picker-B8VVNXU3.es.js.map +1 -0
  74. package/dist/chunks/date-picker-DQ5IZcRe.cjs.js +2 -0
  75. package/dist/chunks/date-picker-DQ5IZcRe.cjs.js.map +1 -0
  76. package/dist/chunks/date-range-picker-BnbKgO1E.es.js +364 -0
  77. package/dist/chunks/date-range-picker-BnbKgO1E.es.js.map +1 -0
  78. package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js +2 -0
  79. package/dist/chunks/date-range-picker-CO2HH0mY.cjs.js.map +1 -0
  80. package/dist/chunks/{date-range-picker-field-DDfKxFxE.es.js → date-range-picker-field-BuI6eLMY.es.js} +4 -4
  81. package/dist/chunks/{date-range-picker-field-DDfKxFxE.es.js.map → date-range-picker-field-BuI6eLMY.es.js.map} +1 -1
  82. package/dist/chunks/{date-range-picker-field-EKBwiCfz.cjs.js → date-range-picker-field-DcIo1YzI.cjs.js} +2 -2
  83. package/dist/chunks/{date-range-picker-field-EKBwiCfz.cjs.js.map → date-range-picker-field-DcIo1YzI.cjs.js.map} +1 -1
  84. package/dist/chunks/{dialog-D70n2Z4v.es.js → dialog-DuS3dXVi.es.js} +89 -89
  85. package/dist/chunks/dialog-DuS3dXVi.es.js.map +1 -0
  86. package/dist/chunks/dialog-gyrFT8w0.cjs.js +2 -0
  87. package/dist/chunks/dialog-gyrFT8w0.cjs.js.map +1 -0
  88. package/dist/chunks/{draggable-list-hEe1Td1r.cjs.js → draggable-list-fvTG-VYt.cjs.js} +3 -3
  89. package/dist/chunks/{draggable-list-C5rPnMr8.es.js.map → draggable-list-fvTG-VYt.cjs.js.map} +1 -1
  90. package/dist/chunks/{draggable-list-C5rPnMr8.es.js → draggable-list-z7a7tu_F.es.js} +349 -339
  91. package/dist/chunks/draggable-list-z7a7tu_F.es.js.map +1 -0
  92. package/dist/chunks/{drawer-CyVQICgN.es.js → drawer-BPcEUbUt.es.js} +94 -94
  93. package/dist/chunks/drawer-BPcEUbUt.es.js.map +1 -0
  94. package/dist/chunks/drawer-DbSJSCl_.cjs.js +2 -0
  95. package/dist/chunks/drawer-DbSJSCl_.cjs.js.map +1 -0
  96. package/dist/chunks/{extract-style-props-BUbbGs7l.es.js → extract-style-props-BdibuNZ7.es.js} +2 -2
  97. package/dist/chunks/{extract-style-props-BUbbGs7l.es.js.map → extract-style-props-BdibuNZ7.es.js.map} +1 -1
  98. package/dist/chunks/field-errors-D1BQvoYg.es.js +219 -0
  99. package/dist/chunks/field-errors-D1BQvoYg.es.js.map +1 -0
  100. package/dist/chunks/field-errors-aqrV93vp.cjs.js +2 -0
  101. package/dist/chunks/field-errors-aqrV93vp.cjs.js.map +1 -0
  102. package/dist/chunks/{form-field-m9PmNrgJ.es.js → form-field-BfDU18h3.es.js} +7 -7
  103. package/dist/chunks/{form-field-m9PmNrgJ.es.js.map → form-field-BfDU18h3.es.js.map} +1 -1
  104. package/dist/chunks/{form-field-Cjpw2GQw.cjs.js → form-field-FdRNl2bZ.cjs.js} +2 -2
  105. package/dist/chunks/{form-field-Cjpw2GQw.cjs.js.map → form-field-FdRNl2bZ.cjs.js.map} +1 -1
  106. package/dist/chunks/{icon-button-CXRvSNxO.es.js → icon-button-CosIm3oY.es.js} +2 -2
  107. package/dist/chunks/{icon-button-CXRvSNxO.es.js.map → icon-button-CosIm3oY.es.js.map} +1 -1
  108. package/dist/chunks/{icon-toggle-button-BhzKiS9U.es.js → icon-toggle-button-8fX8JAXp.es.js} +2 -2
  109. package/dist/chunks/{icon-toggle-button-BhzKiS9U.es.js.map → icon-toggle-button-8fX8JAXp.es.js.map} +1 -1
  110. package/dist/chunks/{index-UVW-kSPu.es.js → index-C2qW4ynb.es.js} +3 -3
  111. package/dist/chunks/{index-UVW-kSPu.es.js.map → index-C2qW4ynb.es.js.map} +1 -1
  112. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js +2 -0
  113. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js.map +1 -0
  114. package/dist/chunks/loading-spinner-gf62wtm3.es.js +53 -0
  115. package/dist/chunks/loading-spinner-gf62wtm3.es.js.map +1 -0
  116. package/dist/chunks/localized-field-D78l88ux.cjs.js +2 -0
  117. package/dist/chunks/localized-field-D78l88ux.cjs.js.map +1 -0
  118. package/dist/chunks/localized-field-DdeHzXdh.es.js +483 -0
  119. package/dist/chunks/localized-field-DdeHzXdh.es.js.map +1 -0
  120. package/dist/chunks/{menu-Bb7wAuM8.cjs.js → menu-Dno8yFDE.cjs.js} +2 -2
  121. package/dist/chunks/{menu-Bb7wAuM8.cjs.js.map → menu-Dno8yFDE.cjs.js.map} +1 -1
  122. package/dist/chunks/{menu-BMnaUtPU.es.js → menu-Zlnps1eW.es.js} +5 -5
  123. package/dist/chunks/{menu-BMnaUtPU.es.js.map → menu-Zlnps1eW.es.js.map} +1 -1
  124. package/dist/chunks/money-input-C9eVmgeL.cjs.js +2 -0
  125. package/dist/chunks/money-input-C9eVmgeL.cjs.js.map +1 -0
  126. package/dist/chunks/{money-input-D876xwrm.es.js → money-input-D65vrUj4.es.js} +119 -109
  127. package/dist/chunks/money-input-D65vrUj4.es.js.map +1 -0
  128. package/dist/chunks/{money-input-field-CkUVFul7.cjs.js → money-input-field-BGZ_9HKh.cjs.js} +2 -2
  129. package/dist/chunks/{money-input-field-CkUVFul7.cjs.js.map → money-input-field-BGZ_9HKh.cjs.js.map} +1 -1
  130. package/dist/chunks/{money-input-field-DsnyL34_.es.js → money-input-field-CSnaaDk-.es.js} +4 -4
  131. package/dist/chunks/{money-input-field-DsnyL34_.es.js.map → money-input-field-CSnaaDk-.es.js.map} +1 -1
  132. package/dist/chunks/{multiline-text-input-CHtsHJ-Y.es.js → multiline-text-input-CrDTYrM3.es.js} +3 -3
  133. package/dist/chunks/{multiline-text-input-CHtsHJ-Y.es.js.map → multiline-text-input-CrDTYrM3.es.js.map} +1 -1
  134. package/dist/chunks/{multiline-text-input-field-Czy-oJel.cjs.js → multiline-text-input-field-BX-w2v1Y.cjs.js} +2 -2
  135. package/dist/chunks/{multiline-text-input-field-Czy-oJel.cjs.js.map → multiline-text-input-field-BX-w2v1Y.cjs.js.map} +1 -1
  136. package/dist/chunks/{multiline-text-input-field-D5goi-7i.es.js → multiline-text-input-field-C6UTl_c8.es.js} +4 -4
  137. package/dist/chunks/{multiline-text-input-field-D5goi-7i.es.js.map → multiline-text-input-field-C6UTl_c8.es.js.map} +1 -1
  138. package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js +2 -0
  139. package/dist/chunks/nimbus-provider-Dnu5ohMR.cjs.js.map +1 -0
  140. package/dist/chunks/nimbus-provider-S02SpkpM.es.js +101 -0
  141. package/dist/chunks/nimbus-provider-S02SpkpM.es.js.map +1 -0
  142. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js +2 -0
  143. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js.map +1 -0
  144. package/dist/chunks/normalize-messages-D5T4I93D.es.js +52 -0
  145. package/dist/chunks/normalize-messages-D5T4I93D.es.js.map +1 -0
  146. package/dist/chunks/number-input-CR1hdy-B.cjs.js +2 -0
  147. package/dist/chunks/number-input-CR1hdy-B.cjs.js.map +1 -0
  148. package/dist/chunks/{number-input-BVq6t7j1.es.js → number-input-Dp13Mn-8.es.js} +224 -229
  149. package/dist/chunks/number-input-Dp13Mn-8.es.js.map +1 -0
  150. package/dist/chunks/{number-input-field-D8feRNKH.cjs.js → number-input-field-BDNpAP6t.cjs.js} +2 -2
  151. package/dist/chunks/{number-input-field-D8feRNKH.cjs.js.map → number-input-field-BDNpAP6t.cjs.js.map} +1 -1
  152. package/dist/chunks/{number-input-field-BqBsmhZg.es.js → number-input-field-C90uFO4e.es.js} +4 -4
  153. package/dist/chunks/{number-input-field-BqBsmhZg.es.js.map → number-input-field-C90uFO4e.es.js.map} +1 -1
  154. package/dist/chunks/pagination-BIxlGft7.cjs.js +2 -0
  155. package/dist/chunks/pagination-BIxlGft7.cjs.js.map +1 -0
  156. package/dist/chunks/pagination-BlrGdyD5.es.js +226 -0
  157. package/dist/chunks/pagination-BlrGdyD5.es.js.map +1 -0
  158. package/dist/chunks/password-input-8bkpGOIX.es.js +47 -0
  159. package/dist/chunks/password-input-8bkpGOIX.es.js.map +1 -0
  160. package/dist/chunks/password-input-BVbQ42NG.cjs.js +2 -0
  161. package/dist/chunks/password-input-BVbQ42NG.cjs.js.map +1 -0
  162. package/dist/chunks/{password-input-field-2myF6wdP.cjs.js → password-input-field-B5lWzWAQ.cjs.js} +2 -2
  163. package/dist/chunks/{password-input-field-2myF6wdP.cjs.js.map → password-input-field-B5lWzWAQ.cjs.js.map} +1 -1
  164. package/dist/chunks/{password-input-field-CgkfaI7E.es.js → password-input-field-XXaNUALk.es.js} +4 -4
  165. package/dist/chunks/{password-input-field-CgkfaI7E.es.js.map → password-input-field-XXaNUALk.es.js.map} +1 -1
  166. package/dist/chunks/{popover-MW_SlCEP.es.js → popover-CuA9VugH.es.js} +2 -2
  167. package/dist/chunks/{popover-MW_SlCEP.es.js.map → popover-CuA9VugH.es.js.map} +1 -1
  168. package/dist/chunks/{popover-2KxMEf0s.cjs.js → popover-Dhg--8YC.cjs.js} +2 -2
  169. package/dist/chunks/{popover-2KxMEf0s.cjs.js.map → popover-Dhg--8YC.cjs.js.map} +1 -1
  170. package/dist/chunks/{progress-bar-QL-876RP.es.js → progress-bar-C2ZnGdLv.es.js} +2 -2
  171. package/dist/chunks/{progress-bar-QL-876RP.es.js.map → progress-bar-C2ZnGdLv.es.js.map} +1 -1
  172. package/dist/chunks/{radio-input-CjJwVVHd.es.js → radio-input-DV-hhL4S.es.js} +8 -8
  173. package/dist/chunks/{radio-input-CjJwVVHd.es.js.map → radio-input-DV-hhL4S.es.js.map} +1 -1
  174. package/dist/chunks/range-calendar-CEIaa08T.es.js +229 -0
  175. package/dist/chunks/range-calendar-CEIaa08T.es.js.map +1 -0
  176. package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js +2 -0
  177. package/dist/chunks/range-calendar-Dq5Gtsb6.cjs.js.map +1 -0
  178. package/dist/chunks/rich-text-input-CRGUa5d2.es.js +1200 -0
  179. package/dist/chunks/rich-text-input-CRGUa5d2.es.js.map +1 -0
  180. package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js +4 -0
  181. package/dist/chunks/rich-text-input-Dml5F7pU.cjs.js.map +1 -0
  182. package/dist/chunks/scoped-search-input-CSpFefUJ.es.js +147 -0
  183. package/dist/chunks/scoped-search-input-CSpFefUJ.es.js.map +1 -0
  184. package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js +2 -0
  185. package/dist/chunks/scoped-search-input-DKCK7idN.cjs.js.map +1 -0
  186. package/dist/chunks/{search-input-CdiPpvIA.es.js → search-input-BDUJ48BC.es.js} +147 -147
  187. package/dist/chunks/search-input-BDUJ48BC.es.js.map +1 -0
  188. package/dist/chunks/search-input-BNXlpYtP.cjs.js +2 -0
  189. package/dist/chunks/search-input-BNXlpYtP.cjs.js.map +1 -0
  190. package/dist/chunks/{search-input-field-CxbiRQfV.es.js → search-input-field-CEemw2P1.es.js} +4 -4
  191. package/dist/chunks/{search-input-field-CxbiRQfV.es.js.map → search-input-field-CEemw2P1.es.js.map} +1 -1
  192. package/dist/chunks/{search-input-field-CBzwVEI3.cjs.js → search-input-field-v60x1oiw.cjs.js} +2 -2
  193. package/dist/chunks/{search-input-field-CBzwVEI3.cjs.js.map → search-input-field-v60x1oiw.cjs.js.map} +1 -1
  194. package/dist/chunks/{select-DrkplYbs.es.js → select-D9yYDW0d.es.js} +243 -243
  195. package/dist/chunks/select-D9yYDW0d.es.js.map +1 -0
  196. package/dist/chunks/select-Dq_6o0BB.cjs.js +2 -0
  197. package/dist/chunks/select-Dq_6o0BB.cjs.js.map +1 -0
  198. package/dist/chunks/{separator-CN_ly_kW.es.js → separator-BJ9k_D4l.es.js} +4 -4
  199. package/dist/chunks/{separator-CN_ly_kW.es.js.map → separator-BJ9k_D4l.es.js.map} +1 -1
  200. package/dist/chunks/split-button-B4gVhpP9.cjs.js +2 -0
  201. package/dist/chunks/split-button-B4gVhpP9.cjs.js.map +1 -0
  202. package/dist/chunks/split-button-C94SY3qF.es.js +106 -0
  203. package/dist/chunks/split-button-C94SY3qF.es.js.map +1 -0
  204. package/dist/chunks/{switch-B_xUN9Bs.es.js → switch-Nn1Fbk5O.es.js} +3 -3
  205. package/dist/chunks/{switch-B_xUN9Bs.es.js.map → switch-Nn1Fbk5O.es.js.map} +1 -1
  206. package/dist/chunks/{tabs-CkZr6Jmu.es.js → tabs-D0OPeQ_J.es.js} +10 -10
  207. package/dist/chunks/{tabs-CkZr6Jmu.es.js.map → tabs-D0OPeQ_J.es.js.map} +1 -1
  208. package/dist/chunks/{tag-group-DrXuPS-n.es.js → tag-group-BE8d6xcP.es.js} +208 -208
  209. package/dist/chunks/tag-group-BE8d6xcP.es.js.map +1 -0
  210. package/dist/chunks/tag-group-BI8_32rM.cjs.js +2 -0
  211. package/dist/chunks/tag-group-BI8_32rM.cjs.js.map +1 -0
  212. package/dist/chunks/{text-input-BJzS6xDD.es.js → text-input-CCiZeQad.es.js} +3 -3
  213. package/dist/chunks/{text-input-BJzS6xDD.es.js.map → text-input-CCiZeQad.es.js.map} +1 -1
  214. package/dist/chunks/{text-input-field-D5-C6-_a.es.js → text-input-field-6Cj35cYL.es.js} +4 -4
  215. package/dist/chunks/{text-input-field-D5-C6-_a.es.js.map → text-input-field-6Cj35cYL.es.js.map} +1 -1
  216. package/dist/chunks/{text-input-field-ecy-VdRB.cjs.js → text-input-field-Cmht3hDK.cjs.js} +2 -2
  217. package/dist/chunks/{text-input-field-ecy-VdRB.cjs.js.map → text-input-field-Cmht3hDK.cjs.js.map} +1 -1
  218. package/dist/chunks/{time-input-v2Tg1CRp.cjs.js → time-input-9Q5vV4UD.cjs.js} +2 -2
  219. package/dist/chunks/{time-input-v2Tg1CRp.cjs.js.map → time-input-9Q5vV4UD.cjs.js.map} +1 -1
  220. package/dist/chunks/{time-input-DbWrpALN.es.js → time-input-CCuIFoY2.es.js} +4 -4
  221. package/dist/chunks/{time-input-DbWrpALN.es.js.map → time-input-CCuIFoY2.es.js.map} +1 -1
  222. package/dist/chunks/{toggle-button-DsGaTWXb.es.js → toggle-button-UcXy5q2C.es.js} +3 -3
  223. package/dist/chunks/{toggle-button-DsGaTWXb.es.js.map → toggle-button-UcXy5q2C.es.js.map} +1 -1
  224. package/dist/chunks/{toolbar-CyVt8Wsi.es.js → toolbar-C7-6gqba.es.js} +3 -3
  225. package/dist/chunks/{toolbar-CyVt8Wsi.es.js.map → toolbar-C7-6gqba.es.js.map} +1 -1
  226. package/dist/chunks/{useGridListItem-CoQB2TMS.cjs.js → useGridListItem-Bjqm2KGe.cjs.js} +2 -2
  227. package/dist/chunks/{useGridListItem-CoQB2TMS.cjs.js.map → useGridListItem-Bjqm2KGe.cjs.js.map} +1 -1
  228. package/dist/chunks/{useGridListItem-BghCdwwN.es.js → useGridListItem-CJrr2QNO.es.js} +4 -4
  229. package/dist/chunks/{useGridListItem-BghCdwwN.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
  230. package/dist/chunks/{useListState-6ejgSjM7.es.js → useListState-Dd0Mtev3.es.js} +2 -2
  231. package/dist/chunks/{useListState-6ejgSjM7.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
  232. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js +2 -0
  233. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js.map +1 -0
  234. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js +53 -0
  235. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js.map +1 -0
  236. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-D8B_x4uj.es.js} +2 -2
  237. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
  238. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js → useSpinButton-RB0J1fiP.cjs.js} +2 -2
  239. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js.map → useSpinButton-RB0J1fiP.cjs.js.map} +1 -1
  240. package/dist/components/accordion.es.js +2 -2
  241. package/dist/components/alert/alert.messages.d.ts +6 -0
  242. package/dist/components/alert/intl/de.d.ts +9 -0
  243. package/dist/components/alert/intl/en.d.ts +9 -0
  244. package/dist/components/alert/intl/es.d.ts +9 -0
  245. package/dist/components/alert/intl/fr-FR.d.ts +9 -0
  246. package/dist/components/alert/intl/pt-BR.d.ts +9 -0
  247. package/dist/components/alert.cjs +1 -1
  248. package/dist/components/alert.es.js +1 -1
  249. package/dist/components/avatar/avatar.messages.d.ts +6 -0
  250. package/dist/components/avatar/intl/de.d.ts +9 -0
  251. package/dist/components/avatar/intl/en.d.ts +9 -0
  252. package/dist/components/avatar/intl/es.d.ts +9 -0
  253. package/dist/components/avatar/intl/fr-FR.d.ts +9 -0
  254. package/dist/components/avatar/intl/pt-BR.d.ts +9 -0
  255. package/dist/components/avatar.cjs +1 -1
  256. package/dist/components/avatar.es.js +1 -1
  257. package/dist/components/button.es.js +1 -1
  258. package/dist/components/calendar/calendar.messages.d.ts +6 -0
  259. package/dist/components/calendar/intl/de.d.ts +12 -0
  260. package/dist/components/calendar/intl/en.d.ts +12 -0
  261. package/dist/components/calendar/intl/es.d.ts +12 -0
  262. package/dist/components/calendar/intl/fr-FR.d.ts +12 -0
  263. package/dist/components/calendar/intl/pt-BR.d.ts +12 -0
  264. package/dist/components/calendar.cjs +1 -1
  265. package/dist/components/calendar.es.js +1 -1
  266. package/dist/components/card.es.js +1 -1
  267. package/dist/components/checkbox.es.js +1 -1
  268. package/dist/components/collapsible-motion.es.js +1 -1
  269. package/dist/components/combo-box/combo-box.messages.d.ts +6 -0
  270. package/dist/components/combo-box/intl/de.d.ts +14 -0
  271. package/dist/components/combo-box/intl/en.d.ts +14 -0
  272. package/dist/components/combo-box/intl/es.d.ts +14 -0
  273. package/dist/components/combo-box/intl/fr-FR.d.ts +14 -0
  274. package/dist/components/combo-box/intl/pt-BR.d.ts +14 -0
  275. package/dist/components/combobox/combobox.messages.d.ts +6 -0
  276. package/dist/components/combobox/intl/de.d.ts +12 -0
  277. package/dist/components/combobox/intl/en.d.ts +12 -0
  278. package/dist/components/combobox/intl/es.d.ts +12 -0
  279. package/dist/components/combobox/intl/fr-FR.d.ts +12 -0
  280. package/dist/components/combobox/intl/pt-BR.d.ts +12 -0
  281. package/dist/components/combobox.cjs +1 -1
  282. package/dist/components/combobox.es.js +1 -1
  283. package/dist/components/components.es.js +1 -1
  284. package/dist/components/data-table/data-table.messages.d.ts +6 -0
  285. package/dist/components/data-table/intl/de.d.ts +39 -0
  286. package/dist/components/data-table/intl/en.d.ts +39 -0
  287. package/dist/components/data-table/intl/es.d.ts +39 -0
  288. package/dist/components/data-table/intl/fr-FR.d.ts +39 -0
  289. package/dist/components/data-table/intl/pt-BR.d.ts +39 -0
  290. package/dist/components/data-table.cjs +1 -1
  291. package/dist/components/data-table.es.js +1 -1
  292. package/dist/components/date-input.cjs +1 -1
  293. package/dist/components/date-input.es.js +1 -1
  294. package/dist/components/date-picker/date-picker.messages.d.ts +6 -0
  295. package/dist/components/date-picker/intl/de.d.ts +14 -0
  296. package/dist/components/date-picker/intl/en.d.ts +14 -0
  297. package/dist/components/date-picker/intl/es.d.ts +14 -0
  298. package/dist/components/date-picker/intl/fr-FR.d.ts +14 -0
  299. package/dist/components/date-picker/intl/pt-BR.d.ts +14 -0
  300. package/dist/components/date-picker.cjs +1 -1
  301. package/dist/components/date-picker.es.js +1 -1
  302. package/dist/components/date-range-picker/date-range-picker.messages.d.ts +6 -0
  303. package/dist/components/date-range-picker/intl/de.d.ts +21 -0
  304. package/dist/components/date-range-picker/intl/en.d.ts +21 -0
  305. package/dist/components/date-range-picker/intl/es.d.ts +21 -0
  306. package/dist/components/date-range-picker/intl/fr-FR.d.ts +21 -0
  307. package/dist/components/date-range-picker/intl/pt-BR.d.ts +21 -0
  308. package/dist/components/date-range-picker-field.cjs +1 -1
  309. package/dist/components/date-range-picker-field.es.js +1 -1
  310. package/dist/components/date-range-picker.cjs +1 -1
  311. package/dist/components/date-range-picker.es.js +1 -1
  312. package/dist/components/dialog/dialog.messages.d.ts +6 -0
  313. package/dist/components/dialog/intl/de.d.ts +9 -0
  314. package/dist/components/dialog/intl/en.d.ts +9 -0
  315. package/dist/components/dialog/intl/es.d.ts +9 -0
  316. package/dist/components/dialog/intl/fr-FR.d.ts +9 -0
  317. package/dist/components/dialog/intl/pt-BR.d.ts +9 -0
  318. package/dist/components/dialog.cjs +1 -1
  319. package/dist/components/dialog.es.js +1 -1
  320. package/dist/components/draggable-list/draggable-list.messages.d.ts +6 -0
  321. package/dist/components/draggable-list/intl/de.d.ts +10 -0
  322. package/dist/components/draggable-list/intl/en.d.ts +10 -0
  323. package/dist/components/draggable-list/intl/es.d.ts +10 -0
  324. package/dist/components/draggable-list/intl/fr-FR.d.ts +10 -0
  325. package/dist/components/draggable-list/intl/pt-BR.d.ts +10 -0
  326. package/dist/components/draggable-list.cjs +1 -1
  327. package/dist/components/draggable-list.es.js +1 -1
  328. package/dist/components/drawer/drawer.messages.d.ts +6 -0
  329. package/dist/components/drawer/intl/de.d.ts +9 -0
  330. package/dist/components/drawer/intl/en.d.ts +9 -0
  331. package/dist/components/drawer/intl/es.d.ts +9 -0
  332. package/dist/components/drawer/intl/fr-FR.d.ts +9 -0
  333. package/dist/components/drawer/intl/pt-BR.d.ts +9 -0
  334. package/dist/components/drawer.cjs +1 -1
  335. package/dist/components/drawer.es.js +1 -1
  336. package/dist/components/field-errors/field-errors.d.ts +1 -1
  337. package/dist/components/field-errors/field-errors.messages.d.ts +6 -0
  338. package/dist/components/field-errors/intl/de.d.ts +23 -0
  339. package/dist/components/field-errors/intl/en.d.ts +23 -0
  340. package/dist/components/field-errors/intl/es.d.ts +23 -0
  341. package/dist/components/field-errors/intl/fr-FR.d.ts +23 -0
  342. package/dist/components/field-errors/intl/pt-BR.d.ts +23 -0
  343. package/dist/components/field-errors.cjs +1 -1
  344. package/dist/components/field-errors.es.js +1 -1
  345. package/dist/components/fields.cjs +1 -1
  346. package/dist/components/fields.es.js +7 -7
  347. package/dist/components/form-field.cjs +1 -1
  348. package/dist/components/form-field.es.js +1 -1
  349. package/dist/components/icon-button.es.js +1 -1
  350. package/dist/components/icon-toggle-button.es.js +1 -1
  351. package/dist/components/loading-spinner/intl/de.d.ts +9 -0
  352. package/dist/components/loading-spinner/intl/en.d.ts +9 -0
  353. package/dist/components/loading-spinner/intl/es.d.ts +9 -0
  354. package/dist/components/loading-spinner/intl/fr-FR.d.ts +9 -0
  355. package/dist/components/loading-spinner/intl/pt-BR.d.ts +9 -0
  356. package/dist/components/loading-spinner/loading-spinner.messages.d.ts +6 -0
  357. package/dist/components/loading-spinner.cjs +1 -1
  358. package/dist/components/loading-spinner.es.js +1 -1
  359. package/dist/components/localized-field/intl/de.d.ts +14 -0
  360. package/dist/components/localized-field/intl/en.d.ts +14 -0
  361. package/dist/components/localized-field/intl/es.d.ts +14 -0
  362. package/dist/components/localized-field/intl/fr-FR.d.ts +14 -0
  363. package/dist/components/localized-field/intl/pt-BR.d.ts +14 -0
  364. package/dist/components/localized-field/localized-field.messages.d.ts +6 -0
  365. package/dist/components/localized-field.cjs +1 -1
  366. package/dist/components/localized-field.es.js +1 -1
  367. package/dist/components/money-input/intl/de.d.ts +11 -0
  368. package/dist/components/money-input/intl/en.d.ts +11 -0
  369. package/dist/components/money-input/intl/es.d.ts +11 -0
  370. package/dist/components/money-input/intl/fr-FR.d.ts +11 -0
  371. package/dist/components/money-input/intl/pt-BR.d.ts +11 -0
  372. package/dist/components/money-input/money-input.messages.d.ts +6 -0
  373. package/dist/components/money-input-field.cjs +1 -1
  374. package/dist/components/money-input-field.es.js +1 -1
  375. package/dist/components/money-input.cjs +1 -1
  376. package/dist/components/money-input.es.js +1 -1
  377. package/dist/components/multiline-text-input-field.cjs +1 -1
  378. package/dist/components/multiline-text-input-field.es.js +1 -1
  379. package/dist/components/multiline-text-input.es.js +1 -1
  380. package/dist/components/nimbus-provider/index.d.ts +0 -1
  381. package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -0
  382. package/dist/components/nimbus-provider.cjs +1 -1
  383. package/dist/components/nimbus-provider.es.js +1 -3
  384. package/dist/components/nimbus-provider.es.js.map +1 -1
  385. package/dist/components/number-input/intl/de.d.ts +10 -0
  386. package/dist/components/number-input/intl/en.d.ts +10 -0
  387. package/dist/components/number-input/intl/es.d.ts +10 -0
  388. package/dist/components/number-input/intl/fr-FR.d.ts +10 -0
  389. package/dist/components/number-input/intl/pt-BR.d.ts +10 -0
  390. package/dist/components/number-input/number-input.messages.d.ts +6 -0
  391. package/dist/components/number-input-field.cjs +1 -1
  392. package/dist/components/number-input-field.es.js +1 -1
  393. package/dist/components/number-input.cjs +1 -1
  394. package/dist/components/number-input.es.js +1 -1
  395. package/dist/components/pagination/intl/de.d.ts +16 -0
  396. package/dist/components/pagination/intl/en.d.ts +16 -0
  397. package/dist/components/pagination/intl/es.d.ts +16 -0
  398. package/dist/components/pagination/intl/fr-FR.d.ts +16 -0
  399. package/dist/components/pagination/intl/pt-BR.d.ts +16 -0
  400. package/dist/components/pagination/pagination.messages.d.ts +6 -0
  401. package/dist/components/pagination.cjs +1 -1
  402. package/dist/components/pagination.es.js +1 -1
  403. package/dist/components/password-input/intl/de.d.ts +10 -0
  404. package/dist/components/password-input/intl/en.d.ts +10 -0
  405. package/dist/components/password-input/intl/es.d.ts +10 -0
  406. package/dist/components/password-input/intl/fr-FR.d.ts +10 -0
  407. package/dist/components/password-input/intl/pt-BR.d.ts +10 -0
  408. package/dist/components/password-input/password-input.messages.d.ts +6 -0
  409. package/dist/components/password-input-field.cjs +1 -1
  410. package/dist/components/password-input-field.es.js +1 -1
  411. package/dist/components/password-input.cjs +1 -1
  412. package/dist/components/password-input.es.js +1 -1
  413. package/dist/components/patterns.cjs +1 -1
  414. package/dist/components/patterns.es.js +7 -7
  415. package/dist/components/popover.cjs +1 -1
  416. package/dist/components/popover.es.js +1 -1
  417. package/dist/components/progress-bar.es.js +1 -1
  418. package/dist/components/radio-input.es.js +1 -1
  419. package/dist/components/range-calendar/intl/de.d.ts +12 -0
  420. package/dist/components/range-calendar/intl/en.d.ts +12 -0
  421. package/dist/components/range-calendar/intl/es.d.ts +12 -0
  422. package/dist/components/range-calendar/intl/fr-FR.d.ts +12 -0
  423. package/dist/components/range-calendar/intl/pt-BR.d.ts +12 -0
  424. package/dist/components/range-calendar/range-calendar.messages.d.ts +6 -0
  425. package/dist/components/range-calendar.cjs +1 -1
  426. package/dist/components/range-calendar.es.js +1 -1
  427. package/dist/components/rich-text-input/constants/text-styles.d.ts +2 -3
  428. package/dist/components/rich-text-input/intl/de.d.ts +32 -0
  429. package/dist/components/rich-text-input/intl/en.d.ts +32 -0
  430. package/dist/components/rich-text-input/intl/es.d.ts +32 -0
  431. package/dist/components/rich-text-input/intl/fr-FR.d.ts +32 -0
  432. package/dist/components/rich-text-input/intl/pt-BR.d.ts +32 -0
  433. package/dist/components/rich-text-input/rich-text-input.messages.d.ts +6 -0
  434. package/dist/components/rich-text-input.cjs +1 -1
  435. package/dist/components/rich-text-input.es.js +1 -1
  436. package/dist/components/scoped-search-input/intl/de.d.ts +10 -0
  437. package/dist/components/scoped-search-input/intl/en.d.ts +10 -0
  438. package/dist/components/scoped-search-input/intl/es.d.ts +10 -0
  439. package/dist/components/scoped-search-input/intl/fr-FR.d.ts +10 -0
  440. package/dist/components/scoped-search-input/intl/pt-BR.d.ts +10 -0
  441. package/dist/components/scoped-search-input/scoped-search-input.messages.d.ts +6 -0
  442. package/dist/components/scoped-search-input.cjs +1 -1
  443. package/dist/components/scoped-search-input.es.js +1 -1
  444. package/dist/components/search-input/intl/de.d.ts +9 -0
  445. package/dist/components/search-input/intl/en.d.ts +9 -0
  446. package/dist/components/search-input/intl/es.d.ts +9 -0
  447. package/dist/components/search-input/intl/fr-FR.d.ts +9 -0
  448. package/dist/components/search-input/intl/pt-BR.d.ts +9 -0
  449. package/dist/components/search-input/search-input.messages.d.ts +6 -0
  450. package/dist/components/search-input-field.cjs +1 -1
  451. package/dist/components/search-input-field.es.js +1 -1
  452. package/dist/components/search-input.cjs +1 -1
  453. package/dist/components/search-input.es.js +1 -1
  454. package/dist/components/select/intl/de.d.ts +9 -0
  455. package/dist/components/select/intl/en.d.ts +9 -0
  456. package/dist/components/select/intl/es.d.ts +9 -0
  457. package/dist/components/select/intl/fr-FR.d.ts +9 -0
  458. package/dist/components/select/intl/pt-BR.d.ts +9 -0
  459. package/dist/components/select/select.messages.d.ts +6 -0
  460. package/dist/components/select.cjs +1 -1
  461. package/dist/components/select.es.js +1 -1
  462. package/dist/components/separator.es.js +1 -1
  463. package/dist/components/split-button/intl/de.d.ts +9 -0
  464. package/dist/components/split-button/intl/en.d.ts +9 -0
  465. package/dist/components/split-button/intl/es.d.ts +9 -0
  466. package/dist/components/split-button/intl/fr-FR.d.ts +9 -0
  467. package/dist/components/split-button/intl/pt-BR.d.ts +9 -0
  468. package/dist/components/split-button/split-button.messages.d.ts +6 -0
  469. package/dist/components/split-button.cjs +1 -1
  470. package/dist/components/split-button.es.js +1 -1
  471. package/dist/components/switch.es.js +1 -1
  472. package/dist/components/tabs.es.js +1 -1
  473. package/dist/components/tag-group/intl/de.d.ts +9 -0
  474. package/dist/components/tag-group/intl/en.d.ts +9 -0
  475. package/dist/components/tag-group/intl/es.d.ts +9 -0
  476. package/dist/components/tag-group/intl/fr-FR.d.ts +9 -0
  477. package/dist/components/tag-group/intl/pt-BR.d.ts +9 -0
  478. package/dist/components/tag-group/tag-group.messages.d.ts +6 -0
  479. package/dist/components/tag-group.cjs +1 -1
  480. package/dist/components/tag-group.es.js +1 -1
  481. package/dist/components/text-input-field.cjs +1 -1
  482. package/dist/components/text-input-field.es.js +1 -1
  483. package/dist/components/text-input.es.js +1 -1
  484. package/dist/components/time-input.cjs +1 -1
  485. package/dist/components/time-input.es.js +1 -1
  486. package/dist/components/toggle-button.es.js +1 -1
  487. package/dist/components/toolbar.es.js +1 -1
  488. package/dist/hooks/index.d.ts +1 -0
  489. package/dist/hooks/use-localized-string-formatter/index.d.ts +1 -0
  490. package/dist/hooks/use-localized-string-formatter/use-localized-string-formatter.d.ts +56 -0
  491. package/dist/index.cjs +1 -1
  492. package/dist/index.cjs.map +1 -1
  493. package/dist/index.es.js +180 -180
  494. package/dist/utils/normalize-messages.d.ts +10 -0
  495. package/package.json +6 -6
  496. package/dist/chunks/DateField-D_ywBfBB.cjs.js +0 -2
  497. package/dist/chunks/alert-D4tX-OcR.cjs.js +0 -2
  498. package/dist/chunks/alert-D4tX-OcR.cjs.js.map +0 -1
  499. package/dist/chunks/alert-DVNh9ZZh.es.js.map +0 -1
  500. package/dist/chunks/avatar-Dx_Cda2J.es.js +0 -47
  501. package/dist/chunks/avatar-Dx_Cda2J.es.js.map +0 -1
  502. package/dist/chunks/avatar-wRR1leVi.cjs.js +0 -2
  503. package/dist/chunks/avatar-wRR1leVi.cjs.js.map +0 -1
  504. package/dist/chunks/calendar-B8v5EUVK.es.js +0 -217
  505. package/dist/chunks/calendar-B8v5EUVK.es.js.map +0 -1
  506. package/dist/chunks/calendar-CiVIhTnF.cjs.js +0 -2
  507. package/dist/chunks/calendar-CiVIhTnF.cjs.js.map +0 -1
  508. package/dist/chunks/combobox-B_Qx3gRo.es.js.map +0 -1
  509. package/dist/chunks/combobox-DInM9yq3.cjs.js +0 -2
  510. package/dist/chunks/combobox-DInM9yq3.cjs.js.map +0 -1
  511. package/dist/chunks/data-table-4Q4HP9cz.es.js.map +0 -1
  512. package/dist/chunks/data-table-BIRJ5k7_.cjs.js +0 -2
  513. package/dist/chunks/data-table-BIRJ5k7_.cjs.js.map +0 -1
  514. package/dist/chunks/date-picker-BpjiOuWS.es.js +0 -218
  515. package/dist/chunks/date-picker-BpjiOuWS.es.js.map +0 -1
  516. package/dist/chunks/date-picker-Dut8OHjl.cjs.js +0 -2
  517. package/dist/chunks/date-picker-Dut8OHjl.cjs.js.map +0 -1
  518. package/dist/chunks/date-range-picker-CHZHQHZe.cjs.js +0 -2
  519. package/dist/chunks/date-range-picker-CHZHQHZe.cjs.js.map +0 -1
  520. package/dist/chunks/date-range-picker-f-_fag4t.es.js +0 -356
  521. package/dist/chunks/date-range-picker-f-_fag4t.es.js.map +0 -1
  522. package/dist/chunks/dialog-CJIPm3PE.cjs.js +0 -2
  523. package/dist/chunks/dialog-CJIPm3PE.cjs.js.map +0 -1
  524. package/dist/chunks/dialog-D70n2Z4v.es.js.map +0 -1
  525. package/dist/chunks/draggable-list-hEe1Td1r.cjs.js.map +0 -1
  526. package/dist/chunks/drawer-Bl0M98va.cjs.js +0 -2
  527. package/dist/chunks/drawer-Bl0M98va.cjs.js.map +0 -1
  528. package/dist/chunks/drawer-CyVQICgN.es.js.map +0 -1
  529. package/dist/chunks/field-errors-ClQprmQz.es.js +0 -213
  530. package/dist/chunks/field-errors-ClQprmQz.es.js.map +0 -1
  531. package/dist/chunks/field-errors-D2re_C_c.cjs.js +0 -2
  532. package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +0 -1
  533. package/dist/chunks/loading-spinner-DF6c3rBM.es.js +0 -59
  534. package/dist/chunks/loading-spinner-DF6c3rBM.es.js.map +0 -1
  535. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js +0 -2
  536. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +0 -1
  537. package/dist/chunks/localized-field-B1qPoFn3.es.js +0 -470
  538. package/dist/chunks/localized-field-B1qPoFn3.es.js.map +0 -1
  539. package/dist/chunks/localized-field-DYJRI5TY.cjs.js +0 -2
  540. package/dist/chunks/localized-field-DYJRI5TY.cjs.js.map +0 -1
  541. package/dist/chunks/money-input-0nJup2NP.cjs.js +0 -2
  542. package/dist/chunks/money-input-0nJup2NP.cjs.js.map +0 -1
  543. package/dist/chunks/money-input-D876xwrm.es.js.map +0 -1
  544. package/dist/chunks/nimbus-provider-CRTp8MQ2.es.js +0 -102
  545. package/dist/chunks/nimbus-provider-CRTp8MQ2.es.js.map +0 -1
  546. package/dist/chunks/nimbus-provider-pE_RwP9a.cjs.js +0 -2
  547. package/dist/chunks/nimbus-provider-pE_RwP9a.cjs.js.map +0 -1
  548. package/dist/chunks/number-input-BVq6t7j1.es.js.map +0 -1
  549. package/dist/chunks/number-input-ClPH8jSw.cjs.js +0 -2
  550. package/dist/chunks/number-input-ClPH8jSw.cjs.js.map +0 -1
  551. package/dist/chunks/pagination-BxHJknCr.es.js +0 -210
  552. package/dist/chunks/pagination-BxHJknCr.es.js.map +0 -1
  553. package/dist/chunks/pagination-DCC0XyhX.cjs.js +0 -2
  554. package/dist/chunks/pagination-DCC0XyhX.cjs.js.map +0 -1
  555. package/dist/chunks/password-input-DSv5pS26.cjs.js +0 -2
  556. package/dist/chunks/password-input-DSv5pS26.cjs.js.map +0 -1
  557. package/dist/chunks/password-input-NQVqLKTo.es.js +0 -54
  558. package/dist/chunks/password-input-NQVqLKTo.es.js.map +0 -1
  559. package/dist/chunks/range-calendar-BybIyx-9.es.js +0 -219
  560. package/dist/chunks/range-calendar-BybIyx-9.es.js.map +0 -1
  561. package/dist/chunks/range-calendar-DFs8cfYP.cjs.js +0 -2
  562. package/dist/chunks/range-calendar-DFs8cfYP.cjs.js.map +0 -1
  563. package/dist/chunks/rich-text-input-CJuQruOT.cjs.js +0 -4
  564. package/dist/chunks/rich-text-input-CJuQruOT.cjs.js.map +0 -1
  565. package/dist/chunks/rich-text-input-DTaul6rg.es.js +0 -1193
  566. package/dist/chunks/rich-text-input-DTaul6rg.es.js.map +0 -1
  567. package/dist/chunks/scoped-search-input-C87JBFtg.es.js +0 -152
  568. package/dist/chunks/scoped-search-input-C87JBFtg.es.js.map +0 -1
  569. package/dist/chunks/scoped-search-input-Ck7qrfBS.cjs.js +0 -2
  570. package/dist/chunks/scoped-search-input-Ck7qrfBS.cjs.js.map +0 -1
  571. package/dist/chunks/search-input-CdiPpvIA.es.js.map +0 -1
  572. package/dist/chunks/search-input-CkVlnfvh.cjs.js +0 -2
  573. package/dist/chunks/search-input-CkVlnfvh.cjs.js.map +0 -1
  574. package/dist/chunks/select-DqTNXz4B.cjs.js +0 -2
  575. package/dist/chunks/select-DqTNXz4B.cjs.js.map +0 -1
  576. package/dist/chunks/select-DrkplYbs.es.js.map +0 -1
  577. package/dist/chunks/split-button--8mZUaqB.es.js +0 -106
  578. package/dist/chunks/split-button--8mZUaqB.es.js.map +0 -1
  579. package/dist/chunks/split-button-CN_kydZc.cjs.js +0 -2
  580. package/dist/chunks/split-button-CN_kydZc.cjs.js.map +0 -1
  581. package/dist/chunks/tag-group-CVLufmbd.cjs.js +0 -2
  582. package/dist/chunks/tag-group-CVLufmbd.cjs.js.map +0 -1
  583. package/dist/chunks/tag-group-DrXuPS-n.es.js.map +0 -1
  584. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js +0 -97
  585. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js.map +0 -1
  586. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js +0 -2
  587. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js.map +0 -1
  588. package/dist/components/combobox/combobox.i18n.d.ts +0 -22
@@ -1,1193 +0,0 @@
1
- import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { useCallback as C, useMemo as A, useRef as ye, useImperativeHandle as De, useState as ie, useEffect as Le } from "react";
3
- import { createSlotRecipeContext as Fe, mergeRefs as Ke, useSlotRecipe as He } from "@chakra-ui/react";
4
- import { e as Oe } from "./extract-style-props-BUbbGs7l.es.js";
5
- import { n as $e } from "./index-UVW-kSPu.es.js";
6
- import { Transforms as I, Text as W, Element as q, Editor as x, Range as xe, createEditor as Pe } from "slate";
7
- import { ReactEditor as ne, useSlate as J, withReact as Be, Slate as _e, Editable as qe } from "slate-react";
8
- import { withHistory as ze } from "slate-history";
9
- import { $ as Ue } from "./useObjectRef-CaJ5pgjX.es.js";
10
- import { defineMessages as Ve, useIntl as Te } from "react-intl";
11
- import { I as U } from "./icon-toggle-button-BhzKiS9U.es.js";
12
- import { G as ae } from "./group-CCBgdph2.es.js";
13
- import { MoreHoriz as je, FormatStrikethrough as We, Code as Ge, KeyboardArrowDown as Xe, FormatBold as Ye, FormatItalic as Qe, FormatUnderlined as Je, FormatListBulleted as Ze, FormatListNumbered as et, Undo as tt, Redo as rt } from "@commercetools/nimbus-icons";
14
- import { M as v } from "./menu-BMnaUtPU.es.js";
15
- import { T as b } from "./tooltip-D3QrrizN.es.js";
16
- import { I as se } from "./icon-button-CXRvSNxO.es.js";
17
- import { B } from "./box-DuBoAZvq.es.js";
18
- import { T as L } from "./text-CIb_VDvO.es.js";
19
- import { T as nt } from "./toolbar-CyVt8Wsi.es.js";
20
- import { S as le } from "./separator-CN_ly_kW.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 Me(t) {
24
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
- }
26
- const { withProvider: st, withContext: Se } = /* @__PURE__ */ Fe({
27
- key: "richTextInput"
28
- }), ot = /* @__PURE__ */ st("div", "root"), it = /* @__PURE__ */ Se("div", "toolbar"), at = /* @__PURE__ */ Se("div", "editable"), Re = (t) => C(
29
- (e) => () => {
30
- const { selection: r } = t;
31
- e(), r && !t.selection && I.select(t, r), ne.isFocused(t) || ne.focus(t);
32
- },
33
- [t]
34
- ), ue = {
35
- "mod+b": "bold",
36
- "mod+i": "italic",
37
- "mod+u": "underline",
38
- "mod+`": "code"
39
- }, X = {
40
- placeholder: "Start typing...",
41
- isDisabled: !1,
42
- isReadOnly: !1,
43
- autoFocus: !1
44
- }, de = {
45
- blockquote: "block-quote",
46
- p: "paragraph",
47
- pre: "code",
48
- h1: "heading-one",
49
- h2: "heading-two",
50
- h3: "heading-three",
51
- h4: "heading-four",
52
- h5: "heading-five",
53
- ul: "bulleted-list",
54
- ol: "numbered-list",
55
- li: "list-item",
56
- a: "link"
57
- }, he = {
58
- strong: "bold",
59
- b: "bold",
60
- em: "italic",
61
- i: "italic",
62
- u: "underline",
63
- code: "code",
64
- sup: "superscript",
65
- sub: "subscript",
66
- del: "strikethrough",
67
- s: "strikethrough"
68
- }, Q = {
69
- STRIKETHROUGH: "strikethrough",
70
- CODE: "code",
71
- SUPERSCRIPT: "superscript",
72
- SUBSCRIPT: "subscript"
73
- }, lt = [
74
- Q.STRIKETHROUGH,
75
- Q.CODE
76
- ], ct = [
77
- Q.SUPERSCRIPT,
78
- Q.SUBSCRIPT
79
- ], c = /* @__PURE__ */ Ve({
80
- // Toolbar
81
- textFormatting: {
82
- id: "Nimbus.RichTextInput.textFormatting",
83
- description: "aria-label for the text formatting toolbar",
84
- defaultMessage: "Text formatting"
85
- },
86
- textStyleMenu: {
87
- id: "Nimbus.RichTextInput.textStyleMenu",
88
- description: "aria-label for the text style menu trigger button",
89
- defaultMessage: "Text style menu"
90
- },
91
- textStyle: {
92
- id: "Nimbus.RichTextInput.textStyle",
93
- description: "tooltip text for the text style menu",
94
- defaultMessage: "Text style"
95
- },
96
- bold: {
97
- id: "Nimbus.RichTextInput.bold",
98
- description: "aria-label and tooltip for the bold formatting button",
99
- defaultMessage: "Bold"
100
- },
101
- italic: {
102
- id: "Nimbus.RichTextInput.italic",
103
- description: "aria-label and tooltip for the italic formatting button",
104
- defaultMessage: "Italic"
105
- },
106
- underline: {
107
- id: "Nimbus.RichTextInput.underline",
108
- description: "aria-label and tooltip for the underline formatting button",
109
- defaultMessage: "Underline"
110
- },
111
- listFormatting: {
112
- id: "Nimbus.RichTextInput.listFormatting",
113
- description: "aria-label for the list formatting toggle group",
114
- defaultMessage: "List formatting"
115
- },
116
- bulletedList: {
117
- id: "Nimbus.RichTextInput.bulletedList",
118
- description: "aria-label for the bulleted list button",
119
- defaultMessage: "Bulleted list"
120
- },
121
- numberedList: {
122
- id: "Nimbus.RichTextInput.numberedList",
123
- description: "aria-label for the numbered list button",
124
- defaultMessage: "Numbered list"
125
- },
126
- undo: {
127
- id: "Nimbus.RichTextInput.undo",
128
- description: "aria-label and tooltip for the undo button",
129
- defaultMessage: "Undo"
130
- },
131
- redo: {
132
- id: "Nimbus.RichTextInput.redo",
133
- description: "aria-label and tooltip for the redo button",
134
- defaultMessage: "Redo"
135
- },
136
- // Formatting Menu
137
- moreFormattingOptions: {
138
- id: "Nimbus.RichTextInput.moreFormattingOptions",
139
- description: "aria-label for the more formatting options menu button",
140
- defaultMessage: "More formatting options"
141
- },
142
- moreStyles: {
143
- id: "Nimbus.RichTextInput.moreStyles",
144
- description: "tooltip text for the more formatting options menu",
145
- defaultMessage: "More styles"
146
- },
147
- strikethrough: {
148
- id: "Nimbus.RichTextInput.strikethrough",
149
- description: "label for the strikethrough menu item",
150
- defaultMessage: "Strikethrough"
151
- },
152
- code: {
153
- id: "Nimbus.RichTextInput.code",
154
- description: "label for the code formatting menu item",
155
- defaultMessage: "Code"
156
- },
157
- superscript: {
158
- id: "Nimbus.RichTextInput.superscript",
159
- description: "label for the superscript formatting menu item",
160
- defaultMessage: "Superscript"
161
- },
162
- subscript: {
163
- id: "Nimbus.RichTextInput.subscript",
164
- description: "label for the subscript formatting menu item",
165
- defaultMessage: "Subscript"
166
- },
167
- // Text Style Labels
168
- paragraph: {
169
- id: "Nimbus.RichTextInput.paragraph",
170
- description: "label for paragraph text style",
171
- defaultMessage: "Paragraph"
172
- },
173
- headingOne: {
174
- id: "Nimbus.RichTextInput.headingOne",
175
- description: "label for heading 1 text style",
176
- defaultMessage: "Heading 1"
177
- },
178
- headingTwo: {
179
- id: "Nimbus.RichTextInput.headingTwo",
180
- description: "label for heading 2 text style",
181
- defaultMessage: "Heading 2"
182
- },
183
- headingThree: {
184
- id: "Nimbus.RichTextInput.headingThree",
185
- description: "label for heading 3 text style",
186
- defaultMessage: "Heading 3"
187
- },
188
- headingFour: {
189
- id: "Nimbus.RichTextInput.headingFour",
190
- description: "label for heading 4 text style",
191
- defaultMessage: "Heading 4"
192
- },
193
- headingFive: {
194
- id: "Nimbus.RichTextInput.headingFive",
195
- description: "label for heading 5 text style",
196
- defaultMessage: "Heading 5"
197
- },
198
- quote: {
199
- id: "Nimbus.RichTextInput.quote",
200
- description: "label for block quote text style",
201
- defaultMessage: "Quote"
202
- }
203
- }), ut = (t) => [
204
- {
205
- id: "paragraph",
206
- label: t.formatMessage(c.paragraph),
207
- props: {
208
- textStyle: "md",
209
- fontWeight: "500"
210
- }
211
- },
212
- {
213
- id: "heading-one",
214
- label: t.formatMessage(c.headingOne),
215
- props: {
216
- textStyle: "2xl",
217
- fontWeight: "500"
218
- }
219
- },
220
- {
221
- id: "heading-two",
222
- label: t.formatMessage(c.headingTwo),
223
- props: {
224
- textStyle: "xl",
225
- fontWeight: "500"
226
- }
227
- },
228
- {
229
- id: "heading-three",
230
- label: t.formatMessage(c.headingThree),
231
- props: {
232
- textStyle: "lg",
233
- fontWeight: "500"
234
- }
235
- },
236
- {
237
- id: "heading-four",
238
- label: t.formatMessage(c.headingFour),
239
- props: {
240
- textStyle: "md",
241
- fontWeight: "500"
242
- }
243
- },
244
- {
245
- id: "heading-five",
246
- label: t.formatMessage(c.headingFive),
247
- props: {
248
- textStyle: "xs",
249
- fontWeight: "500"
250
- }
251
- },
252
- {
253
- id: "block-quote",
254
- label: t.formatMessage(c.quote),
255
- props: {
256
- textStyle: "md",
257
- fontWeight: "400"
258
- }
259
- }
260
- ], dt = [
261
- "heading-one",
262
- "heading-two",
263
- "heading-three",
264
- "heading-four",
265
- "heading-five",
266
- "block-quote"
267
- ];
268
- var ee, fe;
269
- function ht() {
270
- if (fe) return ee;
271
- fe = 1;
272
- var t = /["'&<>]/;
273
- ee = e;
274
- function e(r) {
275
- var s = "" + r, n = t.exec(s);
276
- if (!n)
277
- return s;
278
- var l, u = "", d = 0, f = 0;
279
- for (d = n.index; d < s.length; d++) {
280
- switch (s.charCodeAt(d)) {
281
- case 34:
282
- l = "&quot;";
283
- break;
284
- case 38:
285
- l = "&amp;";
286
- break;
287
- case 39:
288
- l = "&#39;";
289
- break;
290
- case 60:
291
- l = "&lt;";
292
- break;
293
- case 62:
294
- l = "&gt;";
295
- break;
296
- default:
297
- continue;
298
- }
299
- f !== d && (u += s.substring(f, d)), f = d + 1, u += l;
300
- }
301
- return f !== d ? u + s.substring(f, d) : u;
302
- }
303
- return ee;
304
- }
305
- var ft = /* @__PURE__ */ ht();
306
- const Y = /* @__PURE__ */ Me(ft), we = `​
307
- `, H = () => [
308
- {
309
- type: "paragraph",
310
- children: [{ text: "" }]
311
- }
312
- ], pt = (t) => t.map(ke).join(""), ke = (t) => {
313
- if (W.isText(t)) {
314
- const s = t;
315
- let n = Y(s.text);
316
- return s.bold && (n = `<strong>${n}</strong>`), s.code && (n = `<code>${n}</code>`), s.italic && (n = `<em>${n}</em>`), s.underline && (n = `<u>${n}</u>`), s.superscript && (n = `<sup>${n}</sup>`), s.subscript && (n = `<sub>${n}</sub>`), s.strikethrough && (n = `<del>${n}</del>`), n = n.replace(new RegExp(we, "g"), "<br>"), n;
317
- }
318
- const e = t.children.map(ke).join(""), r = t;
319
- switch (r.type) {
320
- case "block-quote":
321
- return `<blockquote>${e}</blockquote>`;
322
- case "paragraph":
323
- return `<p>${e}</p>`;
324
- case "code":
325
- return `<pre><code>${e}</code></pre>`;
326
- case "bulleted-list":
327
- return `<ul>${e}</ul>`;
328
- case "numbered-list":
329
- return `<ol>${e}</ol>`;
330
- case "list-item":
331
- return `<li>${e}</li>`;
332
- case "heading-one":
333
- return `<h1>${e}</h1>`;
334
- case "heading-two":
335
- return `<h2>${e}</h2>`;
336
- case "heading-three":
337
- return `<h3>${e}</h3>`;
338
- case "heading-four":
339
- return `<h4>${e}</h4>`;
340
- case "heading-five":
341
- return `<h5>${e}</h5>`;
342
- case "link": {
343
- let s = "";
344
- if (r.url) {
345
- const l = gt(r.url);
346
- s = ` href="${Y(l)}"`;
347
- }
348
- let n = "";
349
- if (r.htmlAttributes && typeof r.htmlAttributes == "object")
350
- for (const [l, u] of Object.entries(r.htmlAttributes))
351
- l.toLowerCase().startsWith("on") || (n += ` ${Y(l)}="${Y(String(u))}"`);
352
- return `<a${s}${n}>${e}</a>`;
353
- }
354
- default:
355
- return e;
356
- }
357
- }, oe = (t) => {
358
- if (!t || t.trim() === "")
359
- return H();
360
- try {
361
- if (t.includes("<p>") || t.includes("<h") || t.includes("<div>") || t.includes("<blockquote>") || t.includes("<ul>") || t.includes("<ol>")) {
362
- const r = new DOMParser().parseFromString(t, "text/html").body, s = Array.from(r.childNodes).map(ve).filter(Boolean);
363
- return Ce(s);
364
- } else
365
- return [
366
- {
367
- type: "paragraph",
368
- children: [{ text: t }]
369
- }
370
- ];
371
- } catch (e) {
372
- return console.warn("Failed to parse HTML:", e), H();
373
- }
374
- }, ve = (t) => {
375
- if (t.nodeType === Node.TEXT_NODE)
376
- return (t.textContent || "").replace(/<br\s*\/?>/gi, we);
377
- if (t.nodeType !== Node.ELEMENT_NODE)
378
- return null;
379
- const e = t, r = e.tagName.toLowerCase(), s = Array.from(e.childNodes).map(ve).filter(Boolean);
380
- if (r in de) {
381
- const l = de[r], u = { type: l, children: [] };
382
- if (l === "link") {
383
- const d = e.getAttribute("href");
384
- d && (u.url = d);
385
- const f = {};
386
- Array.from(e.attributes).forEach((m) => {
387
- m.name !== "href" && !m.name.toLowerCase().startsWith("on") && (f[m.name] = m.value);
388
- }), Object.keys(f).length > 0 && (u.htmlAttributes = f);
389
- }
390
- return u.children = mt(s), u;
391
- }
392
- if (r in he) {
393
- const l = he[r];
394
- return { text: te(s), [l]: !0 };
395
- }
396
- return r === "span" ? { text: te(s) } : { text: te(s) };
397
- }, mt = (t) => {
398
- const e = [];
399
- for (const r of t)
400
- typeof r == "string" ? r.trim() && e.push({ text: r }) : (r && W.isText(r) || r && q.isElement(r)) && e.push(r);
401
- return e.length === 0 && e.push({ text: "" }), e;
402
- }, Ie = (t) => t.children.map((e) => W.isText(e) ? e.text : q.isElement(e) ? Ie(e) : "").join(""), te = (t) => t.filter(Boolean).map((e) => typeof e == "string" ? e : e && typeof e == "object" && "text" in e ? e.text : e && typeof e == "object" && "children" in e ? Ie(e) : String(e || "")).join(""), gt = (t) => {
403
- const e = String(t).trim().toLowerCase();
404
- return e.startsWith("javascript:") || e.startsWith("data:") || e.startsWith("vbscript:") ? "#" : String(t);
405
- }, Ce = (t) => !Array.isArray(t) || t.length === 0 ? H() : t.map((e) => q.isElement(e) ? !e.children || e.children.length === 0 ? { ...e, children: [{ text: "" }] } : e : {
406
- type: "paragraph",
407
- children: [{ text: String(e) }]
408
- }), pe = (t) => {
409
- try {
410
- const e = new URL(t);
411
- return e.protocol === "http:" || e.protocol === "https:";
412
- } catch {
413
- return !1;
414
- }
415
- }, me = ["bulleted-list", "numbered-list"], bt = [
416
- "bold",
417
- "code",
418
- "italic",
419
- "underline",
420
- "superscript",
421
- "subscript",
422
- "strikethrough"
423
- ], j = (t) => bt.includes(t), yt = (t, e) => j(e) ? t[e] === !0 : !1, F = (t, e) => {
424
- const { selection: r } = t;
425
- if (!r || xe.isCollapsed(r)) {
426
- const s = x.marks(t);
427
- if (s && j(e))
428
- return s[e] === !0;
429
- if (!r && t.children.length > 0) {
430
- const n = t.children[0];
431
- if (n.children && n.children.length > 0) {
432
- const l = n.children[0];
433
- if (W.isText(l) && j(e))
434
- return l[e] === !0;
435
- }
436
- }
437
- return !1;
438
- }
439
- try {
440
- const s = Array.from(
441
- x.nodes(t, {
442
- at: r,
443
- match: (n) => W.isText(n)
444
- })
445
- );
446
- if (s.length === 0) {
447
- const n = x.marks(t);
448
- return !n || !j(e) ? !1 : n[e] === !0;
449
- }
450
- return s.every(([n]) => yt(n, e));
451
- } catch {
452
- const s = x.marks(t);
453
- return !s || !j(e) ? !1 : s[e] === !0;
454
- }
455
- }, P = (t, e) => {
456
- const { selection: r } = t;
457
- if (r) {
458
- const [s] = Array.from(
459
- x.nodes(t, {
460
- at: x.unhangRange(t, r),
461
- match: (n) => !x.isEditor(n) && q.isElement(n) && n.type === e
462
- })
463
- );
464
- return !!s;
465
- }
466
- return t.children.length > 0 ? t.children[0].type === e : !1;
467
- }, K = (t, e) => {
468
- F(t, e) ? x.removeMark(t, e) : x.addMark(t, e, !0);
469
- }, re = (t, e) => {
470
- const r = P(t, e), s = me.includes(e);
471
- I.unwrapNodes(t, {
472
- match: (l) => !x.isEditor(l) && q.isElement(l) && me.includes(l.type),
473
- split: !0
474
- });
475
- let n;
476
- if (r ? n = { type: "paragraph" } : s ? n = { type: "list-item" } : n = { type: e }, I.setNodes(t, n), !r && s) {
477
- const l = { type: e, children: [] };
478
- I.wrapNodes(t, l);
479
- }
480
- }, xt = (t) => {
481
- ne.focus(t);
482
- }, Tt = (t, e) => {
483
- const r = oe(e);
484
- I.delete(t, {
485
- at: {
486
- anchor: x.start(t, []),
487
- focus: x.end(t, [])
488
- }
489
- }), I.insertNodes(t, r), I.select(t, x.start(t, []));
490
- }, Mt = (t) => {
491
- const { insertData: e, insertText: r, isInline: s } = t;
492
- return t.isInline = (n) => n.type === "link" ? !0 : s(n), t.insertText = (n) => {
493
- n && pe(n) ? ge(t, n) : r(n);
494
- }, t.insertData = (n) => {
495
- const l = n.getData("text/plain");
496
- l && pe(l) ? ge(t, l) : e(n);
497
- }, t;
498
- }, St = (t) => {
499
- I.unwrapNodes(t, {
500
- match: (e) => !x.isEditor(e) && q.isElement(e) && e.type === "link"
501
- });
502
- }, ge = (t, e) => {
503
- P(t, "link") && St(t);
504
- const { selection: r } = t, s = r && xe.isCollapsed(r), n = {
505
- type: "link",
506
- url: e,
507
- children: s ? [{ text: e }] : []
508
- };
509
- s ? I.insertNodes(t, n) : (I.wrapNodes(t, n, { split: !0 }), I.collapse(t, { edge: "end" }));
510
- }, Rt = ({
511
- attributes: t,
512
- children: e,
513
- element: r
514
- }) => {
515
- const s = r, n = { textAlign: s.align };
516
- switch (s.type) {
517
- case "block-quote":
518
- return /* @__PURE__ */ o("blockquote", { style: n, ...t, children: e });
519
- case "bulleted-list":
520
- return /* @__PURE__ */ o("ul", { style: n, ...t, children: e });
521
- case "heading-one":
522
- return /* @__PURE__ */ o("h1", { style: n, ...t, children: e });
523
- case "heading-two":
524
- return /* @__PURE__ */ o("h2", { style: n, ...t, children: e });
525
- case "heading-three":
526
- return /* @__PURE__ */ o("h3", { style: n, ...t, children: e });
527
- case "heading-four":
528
- return /* @__PURE__ */ o("h4", { style: n, ...t, children: e });
529
- case "heading-five":
530
- return /* @__PURE__ */ o("h5", { style: n, ...t, children: e });
531
- case "list-item":
532
- return /* @__PURE__ */ o("li", { style: n, ...t, children: e });
533
- case "numbered-list":
534
- return /* @__PURE__ */ o("ol", { style: n, ...t, children: e });
535
- case "link":
536
- return /* @__PURE__ */ o(
537
- "a",
538
- {
539
- ...t,
540
- href: s.url,
541
- rel: "noopener noreferrer",
542
- style: n,
543
- children: e
544
- }
545
- );
546
- default:
547
- return /* @__PURE__ */ o("p", { style: n, ...t, children: e });
548
- }
549
- }, wt = ({
550
- attributes: t,
551
- children: e,
552
- leaf: r
553
- }) => {
554
- const s = r;
555
- return s.bold && (e = /* @__PURE__ */ o("strong", { children: e })), s.code && (e = /* @__PURE__ */ o("code", { children: e })), s.italic && (e = /* @__PURE__ */ o("em", { children: e })), s.underline && (e = /* @__PURE__ */ o("u", { children: e })), s.strikethrough && (e = /* @__PURE__ */ o("del", { children: e })), s.superscript && (e = /* @__PURE__ */ o("sup", { children: e })), s.subscript && (e = /* @__PURE__ */ o("sub", { children: e })), /* @__PURE__ */ o("span", { ...t, children: e });
556
- }, kt = {
557
- placeholderCharacter: `​
558
- `
559
- }, vt = ({
560
- withPreservedSelection: t
561
- }) => {
562
- const e = J(), r = A(() => {
563
- const u = [];
564
- return lt.forEach((d) => {
565
- F(e, d) && u.push(d);
566
- }), new Set(u);
567
- }, [e.selection, e.children, x.marks(e)]), s = A(() => {
568
- const u = [];
569
- return ct.forEach((d) => {
570
- F(e, d) && u.push(d);
571
- }), new Set(u);
572
- }, [e.selection, e.children, x.marks(e)]), n = A(() => /* @__PURE__ */ new Set([
573
- ...Array.from(r),
574
- ...Array.from(s)
575
- ]), [r, s]), l = C(
576
- (u) => {
577
- if (u === "all") return;
578
- const d = Array.from(u), f = Array.from(n), m = d.filter(
579
- (p) => !f.includes(p)
580
- ), S = f.filter(
581
- (p) => !d.includes(p)
582
- );
583
- [...m, ...S].forEach((p) => {
584
- p === "superscript" || p === "subscript" ? t(() => {
585
- const a = F(e, "superscript") ? "superscript" : F(e, "subscript") ? "subscript" : null;
586
- m.includes(p) && a && a !== p && K(e, a), K(e, p);
587
- })() : t(() => K(e, p))();
588
- });
589
- },
590
- [e, n, t]
591
- );
592
- return {
593
- selectedKeys: r,
594
- selectedScriptKeys: s,
595
- allSelectedKeys: n,
596
- handleAllSelectionChange: l
597
- };
598
- }, It = ({ isDisabled: t = !1 }) => {
599
- const e = Te(), r = J(), s = Re(r), { allSelectedKeys: n, handleAllSelectionChange: l } = vt({
600
- withPreservedSelection: s
601
- });
602
- return /* @__PURE__ */ h(
603
- v.Root,
604
- {
605
- selectionMode: "multiple",
606
- selectedKeys: n,
607
- onSelectionChange: l,
608
- children: [
609
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
610
- /* @__PURE__ */ o(v.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
611
- se,
612
- {
613
- size: "xs",
614
- variant: "ghost",
615
- "aria-label": e.formatMessage(c.moreFormattingOptions),
616
- isDisabled: t,
617
- onMouseDown: (u) => u.preventDefault(),
618
- children: /* @__PURE__ */ o(je, {})
619
- }
620
- ) }),
621
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.moreStyles) })
622
- ] }),
623
- /* @__PURE__ */ h(v.Content, { children: [
624
- /* @__PURE__ */ o(v.Item, { id: "strikethrough", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
625
- /* @__PURE__ */ o(We, {}),
626
- /* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.strikethrough) })
627
- ] }) }),
628
- /* @__PURE__ */ o(v.Item, { id: "code", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
629
- /* @__PURE__ */ o(Ge, {}),
630
- /* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.code) })
631
- ] }) }),
632
- /* @__PURE__ */ o(v.Item, { id: "superscript", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
633
- /* @__PURE__ */ o(L, { children: "X²" }),
634
- /* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.superscript) })
635
- ] }) }),
636
- /* @__PURE__ */ o(v.Item, { id: "subscript", children: /* @__PURE__ */ h(B, { slot: "label", display: "flex", alignItems: "center", gap: "200", children: [
637
- /* @__PURE__ */ o(L, { children: "X₂" }),
638
- /* @__PURE__ */ o(L, { textStyle: "sm", children: e.formatMessage(c.subscript) })
639
- ] }) })
640
- ] })
641
- ]
642
- }
643
- );
644
- };
645
- var k = {}, be;
646
- function Ct() {
647
- if (be) return k;
648
- be = 1, Object.defineProperty(k, "__esModule", {
649
- value: !0
650
- });
651
- for (var t = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), e = {
652
- alt: "altKey",
653
- control: "ctrlKey",
654
- meta: "metaKey",
655
- shift: "shiftKey"
656
- }, r = {
657
- add: "+",
658
- break: "pause",
659
- cmd: "meta",
660
- command: "meta",
661
- ctl: "control",
662
- ctrl: "control",
663
- del: "delete",
664
- down: "arrowdown",
665
- esc: "escape",
666
- ins: "insert",
667
- left: "arrowleft",
668
- mod: t ? "meta" : "control",
669
- opt: "alt",
670
- option: "alt",
671
- return: "enter",
672
- right: "arrowright",
673
- space: " ",
674
- spacebar: " ",
675
- up: "arrowup",
676
- win: "meta",
677
- windows: "meta"
678
- }, s = {
679
- backspace: 8,
680
- tab: 9,
681
- enter: 13,
682
- shift: 16,
683
- control: 17,
684
- alt: 18,
685
- pause: 19,
686
- capslock: 20,
687
- escape: 27,
688
- " ": 32,
689
- pageup: 33,
690
- pagedown: 34,
691
- end: 35,
692
- home: 36,
693
- arrowleft: 37,
694
- arrowup: 38,
695
- arrowright: 39,
696
- arrowdown: 40,
697
- insert: 45,
698
- delete: 46,
699
- meta: 91,
700
- numlock: 144,
701
- scrolllock: 145,
702
- ";": 186,
703
- "=": 187,
704
- ",": 188,
705
- "-": 189,
706
- ".": 190,
707
- "/": 191,
708
- "`": 192,
709
- "[": 219,
710
- "\\": 220,
711
- "]": 221,
712
- "'": 222
713
- }, n = 1; n < 20; n++)
714
- s["f" + n] = 111 + n;
715
- function l(a, i, y) {
716
- i && !("byKey" in i) && (y = i, i = null), Array.isArray(a) || (a = [a]);
717
- var T = a.map(function(D) {
718
- return f(D, i);
719
- }), M = function(E) {
720
- return T.some(function(N) {
721
- return m(N, E);
722
- });
723
- }, O = y == null ? M : M(y);
724
- return O;
725
- }
726
- function u(a, i) {
727
- return l(a, i);
728
- }
729
- function d(a, i) {
730
- return l(a, { byKey: !0 }, i);
731
- }
732
- function f(a, i) {
733
- var y = i && i.byKey, T = {};
734
- a = a.replace("++", "+add");
735
- var M = a.split("+"), O = M.length;
736
- for (var D in e)
737
- T[e[D]] = !1;
738
- var E = !0, N = !1, g = void 0;
739
- try {
740
- for (var _ = M[Symbol.iterator](), G; !(E = (G = _.next()).done); E = !0) {
741
- var w = G.value, Z = w.endsWith("?") && w.length > 1;
742
- Z && (w = w.slice(0, -1));
743
- var z = p(w), R = e[z];
744
- if (w.length > 1 && !R && !r[w] && !s[z])
745
- throw new TypeError('Unknown modifier: "' + w + '"');
746
- (O === 1 || !R) && (y ? T.key = z : T.which = S(w)), R && (T[R] = Z ? null : !0);
747
- }
748
- } catch ($) {
749
- N = !0, g = $;
750
- } finally {
751
- try {
752
- !E && _.return && _.return();
753
- } finally {
754
- if (N)
755
- throw g;
756
- }
757
- }
758
- return T;
759
- }
760
- function m(a, i) {
761
- for (var y in a) {
762
- var T = a[y], M = void 0;
763
- if (T != null && (y === "key" && i.key != null ? M = i.key.toLowerCase() : y === "which" ? M = T === 91 && i.which === 93 ? 91 : i.which : M = i[y], !(M == null && T === !1) && M !== T))
764
- return !1;
765
- }
766
- return !0;
767
- }
768
- function S(a) {
769
- a = p(a);
770
- var i = s[a] || a.toUpperCase().charCodeAt(0);
771
- return i;
772
- }
773
- function p(a) {
774
- return a = a.toLowerCase(), a = r[a] || a, a;
775
- }
776
- return k.default = l, k.isHotkey = l, k.isCodeHotkey = u, k.isKeyHotkey = d, k.parseHotkey = f, k.compareHotkey = m, k.toKeyCode = S, k.toKeyName = p, k;
777
- }
778
- var Et = /* @__PURE__ */ Ct();
779
- const Nt = /* @__PURE__ */ Me(Et), At = ({ editor: t }) => ({ handleKeyDown: C(
780
- (r) => {
781
- if ((r.metaKey || r.ctrlKey) && r.key === "z") {
782
- r.preventDefault(), r.shiftKey ? t.redo() : t.undo();
783
- return;
784
- }
785
- for (const s in ue)
786
- if (Nt(s, r)) {
787
- r.preventDefault();
788
- const n = ue[s];
789
- K(t, n);
790
- return;
791
- }
792
- if (r.shiftKey && r.key === "Enter") {
793
- r.preventDefault(), t.insertText(kt.placeholderCharacter);
794
- return;
795
- }
796
- },
797
- [t]
798
- ) }), Ee = function({
799
- ref: e,
800
- value: r,
801
- onChange: s,
802
- onFocus: n,
803
- onBlur: l,
804
- placeholder: u = X.placeholder,
805
- isDisabled: d = X.isDisabled,
806
- isReadOnly: f = X.isReadOnly,
807
- autoFocus: m = X.autoFocus,
808
- toolbar: S
809
- //...props
810
- }) {
811
- const p = ye(null), a = Ue(Ke(p, e)), i = A(() => {
812
- const g = Pe();
813
- return Mt(ze(Be(g)));
814
- }, []), { handleKeyDown: y } = At({ editor: i }), T = C(
815
- (g) => {
816
- n && n(g);
817
- },
818
- [n]
819
- ), M = C(
820
- (g) => {
821
- l && l(g);
822
- },
823
- [l]
824
- );
825
- De(
826
- a,
827
- () => ({
828
- focus: () => xt(i),
829
- resetValue: (g) => Tt(i, g)
830
- }),
831
- [i]
832
- );
833
- const O = C(
834
- (g) => /* @__PURE__ */ o(Rt, { ...g }),
835
- []
836
- ), D = C(
837
- (g) => /* @__PURE__ */ o(wt, { ...g }),
838
- []
839
- ), E = H(), N = Array.isArray(r) && r.length > 0 ? r : E;
840
- return /* @__PURE__ */ h(_e, { editor: i, value: N, onChange: s, children: [
841
- S && /* @__PURE__ */ o(it, { children: S }),
842
- /* @__PURE__ */ o(at, { asChild: !0, children: /* @__PURE__ */ o(
843
- qe,
844
- {
845
- renderElement: O,
846
- renderLeaf: D,
847
- placeholder: u,
848
- autoFocus: m,
849
- readOnly: f || d,
850
- onKeyDown: y,
851
- onFocus: T,
852
- onBlur: M,
853
- "aria-label": "Rich text editor",
854
- role: "textbox",
855
- "aria-multiline": "true"
856
- }
857
- ) })
858
- ] });
859
- };
860
- Ee.displayName = "RichTextEditor";
861
- const Dt = ({
862
- withPreservedSelection: t,
863
- textStyles: e
864
- }) => {
865
- const r = J(), s = A(() => dt.find(
866
- (a) => P(r, a)
867
- ) || "paragraph", [r.selection, r.children]), n = e.find((a) => a.id === s), l = n?.label || "", u = C(
868
- (a) => {
869
- t(() => {
870
- re(r, a);
871
- })();
872
- },
873
- [r, t]
874
- ), d = C(
875
- (a) => {
876
- t(() => {
877
- const i = Array.from(a)[0], y = P(r, "bulleted-list") ? "bulleted-list" : P(r, "numbered-list") ? "numbered-list" : null;
878
- i ? re(r, i) : y && re(r, y);
879
- })();
880
- },
881
- [r, t]
882
- ), f = A(() => {
883
- const a = [];
884
- return F(r, "bold") && a.push("bold"), F(r, "italic") && a.push("italic"), F(r, "underline") && a.push("underline"), new Set(a);
885
- }, [r.selection, r.children, x.marks(r)]), m = A(() => {
886
- const a = [];
887
- return P(r, "bulleted-list") && a.push("bulleted-list"), P(r, "numbered-list") && a.push("numbered-list"), new Set(a);
888
- }, [r.selection, r.children]), S = A(() => r.history && r.history.undos.length > 0, [r.selection, r.children]), p = A(() => r.history && r.history.redos.length > 0, [r.selection, r.children]);
889
- return {
890
- currentTextStyle: s,
891
- selectedTextStyle: n,
892
- selectedTextStyleLabel: l,
893
- handleTextStyleChange: u,
894
- handleListToggle: d,
895
- selectedFormatKeys: f,
896
- selectedListKeys: m,
897
- hasUndos: S,
898
- hasRedos: p
899
- };
900
- }, Ne = ({
901
- isDisabled: t = !1
902
- }) => {
903
- const e = Te(), r = J(), s = Re(r), n = ut(e), {
904
- currentTextStyle: l,
905
- selectedTextStyleLabel: u,
906
- handleTextStyleChange: d,
907
- handleListToggle: f,
908
- selectedFormatKeys: m,
909
- selectedListKeys: S,
910
- hasUndos: p,
911
- hasRedos: a
912
- } = Dt({ withPreservedSelection: s, textStyles: n });
913
- return /* @__PURE__ */ h(
914
- nt,
915
- {
916
- orientation: "horizontal",
917
- "aria-label": e.formatMessage(c.textFormatting),
918
- width: "full",
919
- overflow: "hidden",
920
- size: "xs",
921
- children: [
922
- /* @__PURE__ */ o(ae, { children: /* @__PURE__ */ h(
923
- v.Root,
924
- {
925
- onAction: (i) => d(String(i)),
926
- children: [
927
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
928
- /* @__PURE__ */ o(
929
- v.Trigger,
930
- {
931
- height: "800",
932
- width: "4000",
933
- bg: "primary.1",
934
- borderRadius: "200",
935
- _hover: { bg: "primary.2" },
936
- isDisabled: t,
937
- onMouseDown: (i) => i.preventDefault(),
938
- "aria-label": e.formatMessage(c.textStyleMenu),
939
- children: /* @__PURE__ */ h(B, { display: "flex", alignItems: "center", gap: "200", px: "200", children: [
940
- /* @__PURE__ */ o(B, { display: "flex", alignItems: "center", gap: "200", flexGrow: "1", children: /* @__PURE__ */ o(L, { my: "auto", textStyle: "sm", fontWeight: "500", children: u }) }),
941
- /* @__PURE__ */ o(Xe, {})
942
- ] })
943
- }
944
- ),
945
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.textStyle) })
946
- ] }),
947
- /* @__PURE__ */ o(v.Content, { children: n.map((i) => /* @__PURE__ */ o(
948
- v.Item,
949
- {
950
- id: i.id,
951
- ...l === i.id && {
952
- "data-state": "checked"
953
- },
954
- children: /* @__PURE__ */ o(L, { ...i.props, children: i.label })
955
- },
956
- i.id
957
- )) })
958
- ]
959
- }
960
- ) }),
961
- /* @__PURE__ */ o(le, { orientation: "vertical" }),
962
- /* @__PURE__ */ h(
963
- ce.Root,
964
- {
965
- selectionMode: "multiple",
966
- selectedKeys: m,
967
- isDisabled: t,
968
- children: [
969
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
970
- /* @__PURE__ */ h(
971
- U,
972
- {
973
- id: "bold",
974
- size: "xs",
975
- variant: "ghost",
976
- "aria-label": e.formatMessage(c.bold),
977
- isDisabled: t,
978
- onMouseDown: (i) => i.preventDefault(),
979
- onPress: s(() => K(r, "bold")),
980
- children: [
981
- /* @__PURE__ */ o(Ye, {}),
982
- /* @__PURE__ */ o(V, { children: e.formatMessage(c.bold) })
983
- ]
984
- }
985
- ),
986
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.bold) })
987
- ] }),
988
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
989
- /* @__PURE__ */ h(
990
- U,
991
- {
992
- id: "italic",
993
- size: "xs",
994
- variant: "ghost",
995
- "aria-label": e.formatMessage(c.italic),
996
- isDisabled: t,
997
- onMouseDown: (i) => i.preventDefault(),
998
- onPress: s(() => K(r, "italic")),
999
- children: [
1000
- /* @__PURE__ */ o(Qe, {}),
1001
- /* @__PURE__ */ o(V, { children: e.formatMessage(c.italic) })
1002
- ]
1003
- }
1004
- ),
1005
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.italic) })
1006
- ] }),
1007
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
1008
- /* @__PURE__ */ h(
1009
- U,
1010
- {
1011
- id: "underline",
1012
- size: "xs",
1013
- variant: "ghost",
1014
- "aria-label": e.formatMessage(c.underline),
1015
- isDisabled: t,
1016
- onMouseDown: (i) => i.preventDefault(),
1017
- onPress: s(
1018
- () => K(r, "underline")
1019
- ),
1020
- children: [
1021
- /* @__PURE__ */ o(Je, {}),
1022
- /* @__PURE__ */ o(V, { children: e.formatMessage(c.underline) })
1023
- ]
1024
- }
1025
- ),
1026
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.underline) })
1027
- ] })
1028
- ]
1029
- }
1030
- ),
1031
- /* @__PURE__ */ o(It, { isDisabled: t }),
1032
- /* @__PURE__ */ o(le, { orientation: "vertical" }),
1033
- /* @__PURE__ */ h(
1034
- ce.Root,
1035
- {
1036
- selectionMode: "single",
1037
- selectedKeys: S,
1038
- onSelectionChange: f,
1039
- "aria-label": e.formatMessage(c.listFormatting),
1040
- isDisabled: t,
1041
- children: [
1042
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
1043
- /* @__PURE__ */ o(
1044
- U,
1045
- {
1046
- id: "bulleted-list",
1047
- size: "xs",
1048
- variant: "ghost",
1049
- "aria-label": e.formatMessage(c.bulletedList),
1050
- isDisabled: t,
1051
- onMouseDown: (i) => i.preventDefault(),
1052
- children: /* @__PURE__ */ o(Ze, {})
1053
- }
1054
- ),
1055
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.bulletedList) })
1056
- ] }),
1057
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
1058
- /* @__PURE__ */ o(
1059
- U,
1060
- {
1061
- id: "numbered-list",
1062
- size: "xs",
1063
- variant: "ghost",
1064
- "aria-label": e.formatMessage(c.numberedList),
1065
- isDisabled: t,
1066
- onMouseDown: (i) => i.preventDefault(),
1067
- children: /* @__PURE__ */ o(et, {})
1068
- }
1069
- ),
1070
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.numberedList) })
1071
- ] })
1072
- ]
1073
- }
1074
- ),
1075
- /* @__PURE__ */ o(B, { flexGrow: "1" }),
1076
- /* @__PURE__ */ h(ae, { children: [
1077
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
1078
- /* @__PURE__ */ h(
1079
- se,
1080
- {
1081
- size: "xs",
1082
- variant: "ghost",
1083
- "aria-label": e.formatMessage(c.undo),
1084
- isDisabled: !p || t,
1085
- onPress: s(() => r.undo()),
1086
- onMouseDown: (i) => i.preventDefault(),
1087
- children: [
1088
- /* @__PURE__ */ o(tt, {}),
1089
- /* @__PURE__ */ o(V, { children: e.formatMessage(c.undo) })
1090
- ]
1091
- }
1092
- ),
1093
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.undo) })
1094
- ] }),
1095
- /* @__PURE__ */ h(b.Root, { delay: 0, closeDelay: 0, children: [
1096
- /* @__PURE__ */ h(
1097
- se,
1098
- {
1099
- size: "xs",
1100
- variant: "ghost",
1101
- "aria-label": e.formatMessage(c.redo),
1102
- isDisabled: !a || t,
1103
- onPress: s(() => r.redo()),
1104
- onMouseDown: (i) => i.preventDefault(),
1105
- children: [
1106
- /* @__PURE__ */ o(rt, {}),
1107
- /* @__PURE__ */ o(V, { children: e.formatMessage(c.redo) })
1108
- ]
1109
- }
1110
- ),
1111
- /* @__PURE__ */ o(b.Content, { placement: "top", children: e.formatMessage(c.redo) })
1112
- ] })
1113
- ] })
1114
- ]
1115
- }
1116
- );
1117
- };
1118
- Ne.displayName = "RichTextToolbar";
1119
- const Lt = (t) => {
1120
- const {
1121
- ref: e,
1122
- value: r,
1123
- defaultValue: s,
1124
- onChange: n,
1125
- onFocus: l,
1126
- onBlur: u,
1127
- placeholder: d = "",
1128
- isDisabled: f = !1,
1129
- isReadOnly: m = !1,
1130
- isInvalid: S = !1,
1131
- autoFocus: p = !1,
1132
- ...a
1133
- } = t, i = He({ recipe: $e }), [y, T] = i.splitVariantProps({
1134
- // Only semantic variants go here (none currently defined)
1135
- ...a
1136
- }), [M, O] = Oe(T), D = {
1137
- "data-disabled": f ? "true" : void 0,
1138
- "data-invalid": S ? "true" : void 0,
1139
- "data-readonly": m ? "true" : void 0
1140
- }, [E, N] = ie(() => {
1141
- const R = r ?? s ?? "";
1142
- try {
1143
- return R ? oe(R) : H();
1144
- } catch ($) {
1145
- return console.warn("Failed to parse initial HTML, using empty value:", $), H();
1146
- }
1147
- }), [g, _] = ie(() => r ?? s ?? ""), G = ye(null);
1148
- Le(() => {
1149
- if (r !== void 0 && r !== g) {
1150
- const R = r ? oe(r) : H();
1151
- N(R), _(r);
1152
- }
1153
- }, [r, g]);
1154
- const w = C(
1155
- (R) => {
1156
- const $ = pt(R), Ae = $ !== g;
1157
- N(R), _($), Ae && n && n($);
1158
- },
1159
- [g, n]
1160
- ), z = Ce(E);
1161
- return /* @__PURE__ */ o(
1162
- ot,
1163
- {
1164
- role: "group",
1165
- ...y,
1166
- ...M,
1167
- ...O,
1168
- ...D,
1169
- ref: e,
1170
- children: /* @__PURE__ */ o(
1171
- Ee,
1172
- {
1173
- ref: G,
1174
- value: z,
1175
- onChange: w,
1176
- onFocus: l,
1177
- onBlur: u,
1178
- placeholder: d,
1179
- isDisabled: f,
1180
- isReadOnly: m,
1181
- autoFocus: p,
1182
- toolbar: m ? null : /* @__PURE__ */ o(Ne, { isDisabled: f })
1183
- }
1184
- )
1185
- }
1186
- );
1187
- };
1188
- Lt.displayName = "RichTextInput";
1189
- export {
1190
- Lt as R,
1191
- Me as g
1192
- };
1193
- //# sourceMappingURL=rich-text-input-DTaul6rg.es.js.map