@commercetools/nimbus 0.0.0-canary-20250826133439 → 0.0.0-canary-20250827101922

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/accordion.d.ts +9 -0
  2. package/dist/alert.d.ts +9 -0
  3. package/dist/avatar.d.ts +9 -0
  4. package/dist/badge.d.ts +9 -0
  5. package/dist/box.d.ts +9 -0
  6. package/dist/button.d.ts +9 -0
  7. package/dist/calendar.d.ts +9 -0
  8. package/dist/card.d.ts +9 -0
  9. package/dist/checkbox.d.ts +9 -0
  10. package/dist/chunks/{alert-BhMfbMnN.cjs.js → alert-BZUgI30X.cjs.js} +2 -2
  11. package/dist/chunks/{alert-BhMfbMnN.cjs.js.map → alert-BZUgI30X.cjs.js.map} +1 -1
  12. package/dist/chunks/{alert-BvT6yjas.es.js → alert-BxQlH4k1.es.js} +2 -2
  13. package/dist/chunks/{alert-BvT6yjas.es.js.map → alert-BxQlH4k1.es.js.map} +1 -1
  14. package/dist/chunks/{button-Bg73nQk3.es.js → button-B4HX0fM_.es.js} +2 -2
  15. package/dist/chunks/{button-Bg73nQk3.es.js.map → button-B4HX0fM_.es.js.map} +1 -1
  16. package/dist/chunks/{button-BiBXrCVh.cjs.js → button-qv44IWcR.cjs.js} +2 -2
  17. package/dist/chunks/{button-BiBXrCVh.cjs.js.map → button-qv44IWcR.cjs.js.map} +1 -1
  18. package/dist/chunks/{calendar-Co4TTkzj.es.js → calendar-DABzfMco.es.js} +4 -4
  19. package/dist/chunks/{calendar-Co4TTkzj.es.js.map → calendar-DABzfMco.es.js.map} +1 -1
  20. package/dist/chunks/{calendar-BydrcPp3.cjs.js → calendar-v3st4EyG.cjs.js} +2 -2
  21. package/dist/chunks/{calendar-BydrcPp3.cjs.js.map → calendar-v3st4EyG.cjs.js.map} +1 -1
  22. package/dist/chunks/{checkbox-8eIhS2f6.cjs.js → checkbox-BN-_eQB9.cjs.js} +2 -2
  23. package/dist/chunks/{checkbox-8eIhS2f6.cjs.js.map → checkbox-BN-_eQB9.cjs.js.map} +1 -1
  24. package/dist/chunks/{checkbox-B2yJgtOJ.es.js → checkbox-VN2y-Prn.es.js} +2 -2
  25. package/dist/chunks/{checkbox-B2yJgtOJ.es.js.map → checkbox-VN2y-Prn.es.js.map} +1 -1
  26. package/dist/chunks/{combobox-CFH0OaAM.cjs.js → combobox-Ah0GQqSW.cjs.js} +2 -2
  27. package/dist/chunks/{combobox-CFH0OaAM.cjs.js.map → combobox-Ah0GQqSW.cjs.js.map} +1 -1
  28. package/dist/chunks/{combobox-CkVqkKdA.es.js → combobox-D_IGHRck.es.js} +5 -5
  29. package/dist/chunks/{combobox-CkVqkKdA.es.js.map → combobox-D_IGHRck.es.js.map} +1 -1
  30. package/dist/chunks/data-table-COrv-ddO.cjs.js +2 -0
  31. package/dist/chunks/{data-table-DIXPr3ke.cjs.js.map → data-table-COrv-ddO.cjs.js.map} +1 -1
  32. package/dist/chunks/{data-table-cBq9JXG7.es.js → data-table-DbhVtDHQ.es.js} +677 -676
  33. package/dist/chunks/{data-table-cBq9JXG7.es.js.map → data-table-DbhVtDHQ.es.js.map} +1 -1
  34. package/dist/chunks/{date-input-BSacD65z.es.js → date-input-BOKez7n5.es.js} +3 -3
  35. package/dist/chunks/{date-input-BSacD65z.es.js.map → date-input-BOKez7n5.es.js.map} +1 -1
  36. package/dist/chunks/{date-input-DwxNrZ3r.cjs.js → date-input-C6zs_WLw.cjs.js} +2 -2
  37. package/dist/chunks/{date-input-DwxNrZ3r.cjs.js.map → date-input-C6zs_WLw.cjs.js.map} +1 -1
  38. package/dist/chunks/{date-picker-Bx2J-sPg.es.js → date-picker-Bpi1PgR2.es.js} +7 -7
  39. package/dist/chunks/{date-picker-Bx2J-sPg.es.js.map → date-picker-Bpi1PgR2.es.js.map} +1 -1
  40. package/dist/chunks/{date-picker-UEQeFHA8.cjs.js → date-picker-DNROhe7B.cjs.js} +2 -2
  41. package/dist/chunks/{date-picker-UEQeFHA8.cjs.js.map → date-picker-DNROhe7B.cjs.js.map} +1 -1
  42. package/dist/chunks/{date-range-picker-DvaRIy3T.es.js → date-range-picker-CXKG84tw.es.js} +7 -7
  43. package/dist/chunks/{date-range-picker-DvaRIy3T.es.js.map → date-range-picker-CXKG84tw.es.js.map} +1 -1
  44. package/dist/chunks/{date-range-picker-Dx1nE1Br.cjs.js → date-range-picker-tyjYdQx1.cjs.js} +2 -2
  45. package/dist/chunks/{date-range-picker-Dx1nE1Br.cjs.js.map → date-range-picker-tyjYdQx1.cjs.js.map} +1 -1
  46. package/dist/chunks/{extractStyleProps-BEa9kwlY.es.js → extractStyleProps-DX5GBd9K.es.js} +2 -2
  47. package/dist/chunks/{extractStyleProps-BEa9kwlY.es.js.map → extractStyleProps-DX5GBd9K.es.js.map} +1 -1
  48. package/dist/chunks/{extractStyleProps-wjyId_vK.cjs.js → extractStyleProps-yFm0qaXg.cjs.js} +2 -2
  49. package/dist/chunks/{extractStyleProps-wjyId_vK.cjs.js.map → extractStyleProps-yFm0qaXg.cjs.js.map} +1 -1
  50. package/dist/chunks/{form-field-Do0NhI0D.es.js → form-field-DePRnFqm.es.js} +2 -2
  51. package/dist/chunks/{form-field-Do0NhI0D.es.js.map → form-field-DePRnFqm.es.js.map} +1 -1
  52. package/dist/chunks/{form-field-DiW_0hSy.cjs.js → form-field-JpzG70WX.cjs.js} +2 -2
  53. package/dist/chunks/{form-field-DiW_0hSy.cjs.js.map → form-field-JpzG70WX.cjs.js.map} +1 -1
  54. package/dist/chunks/{icon-button-BBkPfAM3.cjs.js → icon-button-CCrfnUUB.cjs.js} +2 -2
  55. package/dist/chunks/{icon-button-BBkPfAM3.cjs.js.map → icon-button-CCrfnUUB.cjs.js.map} +1 -1
  56. package/dist/chunks/{icon-button-D2qU4Eun.es.js → icon-button-O_dSWgZr.es.js} +2 -2
  57. package/dist/chunks/{icon-button-D2qU4Eun.es.js.map → icon-button-O_dSWgZr.es.js.map} +1 -1
  58. package/dist/chunks/{icon-toggle-button-L_kYjNhI.cjs.js → icon-toggle-button-D5Uji9qU.cjs.js} +2 -2
  59. package/dist/chunks/{icon-toggle-button-L_kYjNhI.cjs.js.map → icon-toggle-button-D5Uji9qU.cjs.js.map} +1 -1
  60. package/dist/chunks/{icon-toggle-button-wjYSiFhl.es.js → icon-toggle-button-sFqCJEvI.es.js} +2 -2
  61. package/dist/chunks/{icon-toggle-button-wjYSiFhl.es.js.map → icon-toggle-button-sFqCJEvI.es.js.map} +1 -1
  62. package/dist/chunks/index-COhQ_99G.cjs.js +4 -0
  63. package/dist/chunks/index-COhQ_99G.cjs.js.map +1 -0
  64. package/dist/chunks/{index-BDmBxsjm.es.js → index-DRWeBbu8.es.js} +31 -61
  65. package/dist/chunks/index-DRWeBbu8.es.js.map +1 -0
  66. package/dist/chunks/menu-BX993uzm.cjs.js +2 -0
  67. package/dist/chunks/menu-BX993uzm.cjs.js.map +1 -0
  68. package/dist/chunks/menu-DbKjf1RS.es.js +157 -0
  69. package/dist/chunks/menu-DbKjf1RS.es.js.map +1 -0
  70. package/dist/chunks/{multiline-text-input-MJPDSw2d.es.js → multiline-text-input-BvJxZ-xz.es.js} +2 -2
  71. package/dist/chunks/{multiline-text-input-MJPDSw2d.es.js.map → multiline-text-input-BvJxZ-xz.es.js.map} +1 -1
  72. package/dist/chunks/{multiline-text-input-BXpftZg5.cjs.js → multiline-text-input-mIiDJ-o1.cjs.js} +2 -2
  73. package/dist/chunks/{multiline-text-input-BXpftZg5.cjs.js.map → multiline-text-input-mIiDJ-o1.cjs.js.map} +1 -1
  74. package/dist/chunks/{nimbus-provider-DEQVQ5ZH.es.js → nimbus-provider-C68IpiXi.es.js} +2 -2
  75. package/dist/chunks/{nimbus-provider-DEQVQ5ZH.es.js.map → nimbus-provider-C68IpiXi.es.js.map} +1 -1
  76. package/dist/chunks/{nimbus-provider-DCCIMVE_.cjs.js → nimbus-provider-Yka95N38.cjs.js} +2 -2
  77. package/dist/chunks/{nimbus-provider-DCCIMVE_.cjs.js.map → nimbus-provider-Yka95N38.cjs.js.map} +1 -1
  78. package/dist/chunks/{number-input-DsQqe_99.cjs.js → number-input-BN6xiOXG.cjs.js} +2 -2
  79. package/dist/chunks/{number-input-DsQqe_99.cjs.js.map → number-input-BN6xiOXG.cjs.js.map} +1 -1
  80. package/dist/chunks/{number-input-CFa5dE3r.es.js → number-input-DFmXNyz2.es.js} +3 -3
  81. package/dist/chunks/{number-input-CFa5dE3r.es.js.map → number-input-DFmXNyz2.es.js.map} +1 -1
  82. package/dist/chunks/{password-input-BT594v5p.es.js → password-input-BtbZYHE8.es.js} +3 -3
  83. package/dist/chunks/{password-input-BT594v5p.es.js.map → password-input-BtbZYHE8.es.js.map} +1 -1
  84. package/dist/chunks/{password-input-D1LSzb9p.cjs.js → password-input-CGsQktks.cjs.js} +2 -2
  85. package/dist/chunks/{password-input-D1LSzb9p.cjs.js.map → password-input-CGsQktks.cjs.js.map} +1 -1
  86. package/dist/chunks/{progress-bar-DM8YmshZ.es.js → progress-bar-CDRI279T.es.js} +2 -2
  87. package/dist/chunks/{progress-bar-DM8YmshZ.es.js.map → progress-bar-CDRI279T.es.js.map} +1 -1
  88. package/dist/chunks/{progress-bar-QjY92GQn.cjs.js → progress-bar-nQCcdv_4.cjs.js} +2 -2
  89. package/dist/chunks/{progress-bar-QjY92GQn.cjs.js.map → progress-bar-nQCcdv_4.cjs.js.map} +1 -1
  90. package/dist/chunks/{radio-input-DRDeKoG2.es.js → radio-input-CE_kist9.es.js} +3 -3
  91. package/dist/chunks/{radio-input-DRDeKoG2.es.js.map → radio-input-CE_kist9.es.js.map} +1 -1
  92. package/dist/chunks/{radio-input-BOjuwflu.cjs.js → radio-input-CWRnpcxm.cjs.js} +2 -2
  93. package/dist/chunks/{radio-input-BOjuwflu.cjs.js.map → radio-input-CWRnpcxm.cjs.js.map} +1 -1
  94. package/dist/chunks/{range-calendar-Cup7ahCy.es.js → range-calendar-BNAIdxfK.es.js} +4 -4
  95. package/dist/chunks/{range-calendar-Cup7ahCy.es.js.map → range-calendar-BNAIdxfK.es.js.map} +1 -1
  96. package/dist/chunks/{range-calendar-C_x3yqnL.cjs.js → range-calendar-BW4gqU35.cjs.js} +2 -2
  97. package/dist/chunks/{range-calendar-C_x3yqnL.cjs.js.map → range-calendar-BW4gqU35.cjs.js.map} +1 -1
  98. package/dist/chunks/rich-text-input-D3xrDvLR.es.js +691 -0
  99. package/dist/chunks/rich-text-input-D3xrDvLR.es.js.map +1 -0
  100. package/dist/chunks/rich-text-input-iDEygf74.cjs.js +2 -0
  101. package/dist/chunks/rich-text-input-iDEygf74.cjs.js.map +1 -0
  102. package/dist/chunks/{select-BnN5zaBu.cjs.js → select-DihySN1w.cjs.js} +2 -2
  103. package/dist/chunks/{select-BnN5zaBu.cjs.js.map → select-DihySN1w.cjs.js.map} +1 -1
  104. package/dist/chunks/{select-Cr0CSahh.es.js → select-wby2GRxc.es.js} +16 -16
  105. package/dist/chunks/{select-Cr0CSahh.es.js.map → select-wby2GRxc.es.js.map} +1 -1
  106. package/dist/chunks/slate-helpers-BwRHJO4o.es.js +6919 -0
  107. package/dist/chunks/slate-helpers-BwRHJO4o.es.js.map +1 -0
  108. package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js +24 -0
  109. package/dist/chunks/slate-helpers-CMAwCMk0.cjs.js.map +1 -0
  110. package/dist/chunks/split-button-CcVa5yVH.es.js +103 -0
  111. package/dist/chunks/split-button-CcVa5yVH.es.js.map +1 -0
  112. package/dist/chunks/split-button-RydlGh27.cjs.js +2 -0
  113. package/dist/chunks/split-button-RydlGh27.cjs.js.map +1 -0
  114. package/dist/chunks/{switch-DUiPm-aC.cjs.js → switch-D3w3xQ7Z.cjs.js} +2 -2
  115. package/dist/chunks/{switch-DUiPm-aC.cjs.js.map → switch-D3w3xQ7Z.cjs.js.map} +1 -1
  116. package/dist/chunks/{switch-BOvBbCnU.es.js → switch-DZBU6Cbk.es.js} +3 -3
  117. package/dist/chunks/{switch-BOvBbCnU.es.js.map → switch-DZBU6Cbk.es.js.map} +1 -1
  118. package/dist/chunks/{tag-group-wXtwUUis.cjs.js → tag-group-Cwcr_VDp.cjs.js} +2 -2
  119. package/dist/chunks/{tag-group-wXtwUUis.cjs.js.map → tag-group-Cwcr_VDp.cjs.js.map} +1 -1
  120. package/dist/chunks/{tag-group-C_oBSbrz.es.js → tag-group-DQ0jVbpR.es.js} +2 -2
  121. package/dist/chunks/{tag-group-C_oBSbrz.es.js.map → tag-group-DQ0jVbpR.es.js.map} +1 -1
  122. package/dist/chunks/{text-input-B7XCw3SS.es.js → text-input-DlNFZk9-.es.js} +3 -3
  123. package/dist/chunks/{text-input-B7XCw3SS.es.js.map → text-input-DlNFZk9-.es.js.map} +1 -1
  124. package/dist/chunks/{text-input-CCX8LUl1.cjs.js → text-input-i2bZeQZZ.cjs.js} +2 -2
  125. package/dist/chunks/{text-input-CCX8LUl1.cjs.js.map → text-input-i2bZeQZZ.cjs.js.map} +1 -1
  126. package/dist/chunks/{time-input-DiFCm9qO.es.js → time-input-BORpKwS7.es.js} +2 -2
  127. package/dist/chunks/{time-input-DiFCm9qO.es.js.map → time-input-BORpKwS7.es.js.map} +1 -1
  128. package/dist/chunks/{time-input-DQaDOtuT.cjs.js → time-input-Cc8RFGmz.cjs.js} +2 -2
  129. package/dist/chunks/{time-input-DQaDOtuT.cjs.js.map → time-input-Cc8RFGmz.cjs.js.map} +1 -1
  130. package/dist/chunks/{toggle-button-BpG_UgsK.es.js → toggle-button-C7BBLnfL.es.js} +9 -9
  131. package/dist/chunks/{toggle-button-BpG_UgsK.es.js.map → toggle-button-C7BBLnfL.es.js.map} +1 -1
  132. package/dist/chunks/{toggle-button-C9XUBlNB.cjs.js → toggle-button-DZpRqlmW.cjs.js} +2 -2
  133. package/dist/chunks/{toggle-button-C9XUBlNB.cjs.js.map → toggle-button-DZpRqlmW.cjs.js.map} +1 -1
  134. package/dist/chunks/{toolbar-D2CqoZzL.es.js → toolbar-CD5Nrn7W.es.js} +3 -3
  135. package/dist/chunks/{toolbar-D2CqoZzL.es.js.map → toolbar-CD5Nrn7W.es.js.map} +1 -1
  136. package/dist/chunks/{toolbar-BxIQI626.cjs.js → toolbar-Dbq_EngE.cjs.js} +2 -2
  137. package/dist/chunks/{toolbar-BxIQI626.cjs.js.map → toolbar-Dbq_EngE.cjs.js.map} +1 -1
  138. package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js +2 -0
  139. package/dist/chunks/use-formatting-state-Denpy3Zo.cjs.js.map +1 -0
  140. package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js +247 -0
  141. package/dist/chunks/use-formatting-state-RJvSR-Zg.es.js.map +1 -0
  142. package/dist/code.d.ts +9 -0
  143. package/dist/combobox.d.ts +9 -0
  144. package/dist/components/alert.cjs +1 -1
  145. package/dist/components/alert.es.js +1 -1
  146. package/dist/components/button.cjs +1 -1
  147. package/dist/components/button.es.js +1 -1
  148. package/dist/components/calendar.cjs +1 -1
  149. package/dist/components/calendar.es.js +1 -1
  150. package/dist/components/checkbox.cjs +1 -1
  151. package/dist/components/checkbox.es.js +1 -1
  152. package/dist/components/combobox.cjs +1 -1
  153. package/dist/components/combobox.es.js +1 -1
  154. package/dist/components/components.cjs +1 -1
  155. package/dist/components/components.es.js +89 -86
  156. package/dist/components/components.es.js.map +1 -1
  157. package/dist/components/constants.cjs +2 -0
  158. package/dist/components/constants.cjs.map +1 -0
  159. package/dist/components/constants.es.js +125 -0
  160. package/dist/components/constants.es.js.map +1 -0
  161. package/dist/components/data-table.cjs +1 -1
  162. package/dist/components/data-table.es.js +1 -1
  163. package/dist/components/date-input.cjs +1 -1
  164. package/dist/components/date-input.es.js +1 -1
  165. package/dist/components/date-picker.cjs +1 -1
  166. package/dist/components/date-picker.es.js +1 -1
  167. package/dist/components/date-range-picker.cjs +1 -1
  168. package/dist/components/date-range-picker.es.js +1 -1
  169. package/dist/components/form-field.cjs +1 -1
  170. package/dist/components/form-field.es.js +1 -1
  171. package/dist/components/hooks.cjs +2 -0
  172. package/dist/components/hooks.cjs.map +1 -0
  173. package/dist/components/hooks.es.js +8 -0
  174. package/dist/components/hooks.es.js.map +1 -0
  175. package/dist/components/icon-button.cjs +1 -1
  176. package/dist/components/icon-button.es.js +1 -1
  177. package/dist/components/icon-toggle-button.cjs +1 -1
  178. package/dist/components/icon-toggle-button.es.js +1 -1
  179. package/dist/components/multiline-text-input.cjs +1 -1
  180. package/dist/components/multiline-text-input.es.js +1 -1
  181. package/dist/components/nimbus-provider.cjs +1 -1
  182. package/dist/components/nimbus-provider.es.js +1 -1
  183. package/dist/components/number-input.cjs +1 -1
  184. package/dist/components/number-input.es.js +1 -1
  185. package/dist/components/password-input.cjs +1 -1
  186. package/dist/components/password-input.es.js +1 -1
  187. package/dist/components/progress-bar.cjs +1 -1
  188. package/dist/components/progress-bar.es.js +1 -1
  189. package/dist/components/radio-input.cjs +1 -1
  190. package/dist/components/radio-input.es.js +1 -1
  191. package/dist/components/range-calendar.cjs +1 -1
  192. package/dist/components/range-calendar.es.js +1 -1
  193. package/dist/components/rich-text-input.cjs +2 -0
  194. package/dist/components/rich-text-input.cjs.map +1 -0
  195. package/dist/components/rich-text-input.es.js +5 -0
  196. package/dist/components/rich-text-input.es.js.map +1 -0
  197. package/dist/components/select.cjs +1 -1
  198. package/dist/components/select.es.js +1 -1
  199. package/dist/components/split-button.cjs +1 -1
  200. package/dist/components/split-button.es.js +1 -1
  201. package/dist/components/switch.cjs +1 -1
  202. package/dist/components/switch.es.js +1 -1
  203. package/dist/components/tag-group.cjs +1 -1
  204. package/dist/components/tag-group.es.js +1 -1
  205. package/dist/components/text-input.cjs +1 -1
  206. package/dist/components/text-input.es.js +1 -1
  207. package/dist/components/time-input.cjs +1 -1
  208. package/dist/components/time-input.es.js +1 -1
  209. package/dist/components/toggle-button.cjs +1 -1
  210. package/dist/components/toggle-button.es.js +1 -1
  211. package/dist/components/toolbar.cjs +1 -1
  212. package/dist/components/toolbar.es.js +1 -1
  213. package/dist/components/utils.cjs +2 -0
  214. package/dist/components/utils.cjs.map +1 -0
  215. package/dist/components/utils.es.js +76 -0
  216. package/dist/components/utils.es.js.map +1 -0
  217. package/dist/components.d.ts +76 -1
  218. package/dist/constants.d.ts +129 -0
  219. package/dist/data-table.d.ts +10 -0
  220. package/dist/date-input.d.ts +9 -0
  221. package/dist/date-picker.d.ts +9 -0
  222. package/dist/date-range-picker.d.ts +9 -0
  223. package/dist/dialog.d.ts +9 -0
  224. package/dist/divider.d.ts +9 -0
  225. package/dist/flex.d.ts +9 -0
  226. package/dist/form-field.d.ts +9 -0
  227. package/dist/grid.d.ts +9 -0
  228. package/dist/group.d.ts +9 -0
  229. package/dist/heading.d.ts +9 -0
  230. package/dist/hooks.d.ts +60 -0
  231. package/dist/icon-button.d.ts +9 -0
  232. package/dist/icon-toggle-button.d.ts +9 -0
  233. package/dist/icon.d.ts +9 -0
  234. package/dist/image.d.ts +9 -0
  235. package/dist/index.cjs +1 -1
  236. package/dist/index.cjs.map +1 -1
  237. package/dist/index.d.ts +115 -58
  238. package/dist/index.es.js +193 -192
  239. package/dist/kbd.d.ts +9 -0
  240. package/dist/link.d.ts +9 -0
  241. package/dist/list.d.ts +9 -0
  242. package/dist/loading-spinner.d.ts +9 -0
  243. package/dist/multiline-text-input.d.ts +9 -0
  244. package/dist/nimbus-provider.d.ts +9 -0
  245. package/dist/number-input.d.ts +9 -0
  246. package/dist/password-input.d.ts +9 -0
  247. package/dist/popover.d.ts +9 -0
  248. package/dist/progress-bar.d.ts +9 -0
  249. package/dist/radio-input.d.ts +9 -0
  250. package/dist/range-calendar.d.ts +9 -0
  251. package/dist/rich-text-input.d.ts +79 -0
  252. package/dist/select.d.ts +9 -0
  253. package/dist/setup-jsdom-polyfills.d.ts +9 -0
  254. package/dist/simple-grid.d.ts +9 -0
  255. package/dist/split-button.d.ts +9 -0
  256. package/dist/stack.d.ts +9 -0
  257. package/dist/switch.d.ts +9 -0
  258. package/dist/table.d.ts +9 -0
  259. package/dist/tag-group.d.ts +9 -0
  260. package/dist/text-input.d.ts +9 -0
  261. package/dist/text.d.ts +9 -0
  262. package/dist/time-input.d.ts +9 -0
  263. package/dist/toggle-button-group.d.ts +9 -0
  264. package/dist/toggle-button.d.ts +9 -0
  265. package/dist/toolbar.d.ts +13 -1
  266. package/dist/tooltip.d.ts +9 -0
  267. package/dist/utils.d.ts +164 -0
  268. package/dist/visually-hidden.d.ts +9 -0
  269. package/package.json +16 -8
  270. package/dist/chunks/data-table-DIXPr3ke.cjs.js +0 -2
  271. package/dist/chunks/index-BDmBxsjm.es.js.map +0 -1
  272. package/dist/chunks/index-XyB4gGC8.cjs.js +0 -4
  273. package/dist/chunks/index-XyB4gGC8.cjs.js.map +0 -1
  274. package/dist/chunks/split-button-DhYWuU3x.es.js +0 -262
  275. package/dist/chunks/split-button-DhYWuU3x.es.js.map +0 -1
  276. package/dist/chunks/split-button-DrujRAqS.cjs.js +0 -2
  277. package/dist/chunks/split-button-DrujRAqS.cjs.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-input.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { R as o } from "../chunks/rich-text-input-D3xrDvLR.es.js";
2
+ export {
3
+ o as RichTextInput
4
+ };
5
+ //# sourceMappingURL=rich-text-input.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-input.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("../chunks/select-BnN5zaBu.cjs.js");exports.Select=e.Select;exports._SelectOption=e.SelectOption;exports._SelectOptionGroup=e.SelectOptionGroup;exports._SelectOptions=e.SelectOptions;exports._SelectRoot=e.SelectRoot;
1
+ "use strict";const e=require("../chunks/select-DihySN1w.cjs.js");exports.Select=e.Select;exports._SelectOption=e.SelectOption;exports._SelectOptionGroup=e.SelectOptionGroup;exports._SelectOptions=e.SelectOptions;exports._SelectRoot=e.SelectRoot;
2
2
  //# sourceMappingURL=select.cjs.map
@@ -1,4 +1,4 @@
1
- import { S as o, c as a, d as c, b as s, a as S } from "../chunks/select-Cr0CSahh.es.js";
1
+ import { S as o, c as a, d as c, b as s, a as S } from "../chunks/select-wby2GRxc.es.js";
2
2
  export {
3
3
  o as Select,
4
4
  a as _SelectOption,
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("../chunks/split-button-DrujRAqS.cjs.js");exports.SplitButton=t.SplitButton;
1
+ "use strict";const t=require("../chunks/split-button-RydlGh27.cjs.js");exports.SplitButton=t.SplitButton;
2
2
  //# sourceMappingURL=split-button.cjs.map
@@ -1,4 +1,4 @@
1
- import { S as p } from "../chunks/split-button-DhYWuU3x.es.js";
1
+ import { S as p } from "../chunks/split-button-CcVa5yVH.es.js";
2
2
  export {
3
3
  p as SplitButton
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("../chunks/switch-DUiPm-aC.cjs.js");exports.Switch=t.Switch;
1
+ "use strict";const t=require("../chunks/switch-D3w3xQ7Z.cjs.js");exports.Switch=t.Switch;
2
2
  //# sourceMappingURL=switch.cjs.map
@@ -1,4 +1,4 @@
1
- import { S as t } from "../chunks/switch-BOvBbCnU.es.js";
1
+ import { S as t } from "../chunks/switch-DZBU6Cbk.es.js";
2
2
  export {
3
3
  t as Switch
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("../chunks/tag-group-wXtwUUis.cjs.js");exports.TagGroup=e.TagGroup;
1
+ "use strict";const e=require("../chunks/tag-group-Cwcr_VDp.cjs.js");exports.TagGroup=e.TagGroup;
2
2
  //# sourceMappingURL=tag-group.cjs.map
@@ -1,4 +1,4 @@
1
- import { T as a } from "../chunks/tag-group-C_oBSbrz.es.js";
1
+ import { T as a } from "../chunks/tag-group-DQ0jVbpR.es.js";
2
2
  export {
3
3
  a as TagGroup
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("../chunks/text-input-CCX8LUl1.cjs.js");exports.TextInput=t.TextInput;
1
+ "use strict";const t=require("../chunks/text-input-i2bZeQZZ.cjs.js");exports.TextInput=t.TextInput;
2
2
  //# sourceMappingURL=text-input.cjs.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../chunks/text-input-B7XCw3SS.es.js";
1
+ import { T as o } from "../chunks/text-input-DlNFZk9-.es.js";
2
2
  export {
3
3
  o as TextInput
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("../chunks/time-input-DQaDOtuT.cjs.js");exports.TimeInput=e.TimeInput;
1
+ "use strict";const e=require("../chunks/time-input-Cc8RFGmz.cjs.js");exports.TimeInput=e.TimeInput;
2
2
  //# sourceMappingURL=time-input.cjs.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../chunks/time-input-DiFCm9qO.es.js";
1
+ import { T as o } from "../chunks/time-input-BORpKwS7.es.js";
2
2
  export {
3
3
  o as TimeInput
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("../chunks/toggle-button-C9XUBlNB.cjs.js");exports.ToggleButton=t.ToggleButton;
1
+ "use strict";const t=require("../chunks/toggle-button-DZpRqlmW.cjs.js");exports.ToggleButton=t.ToggleButton;
2
2
  //# sourceMappingURL=toggle-button.cjs.map
@@ -1,4 +1,4 @@
1
- import { T as e } from "../chunks/toggle-button-BpG_UgsK.es.js";
1
+ import { T as e } from "../chunks/toggle-button-C7BBLnfL.es.js";
2
2
  export {
3
3
  e as ToggleButton
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("../chunks/toolbar-BxIQI626.cjs.js");exports.Toolbar=o.Toolbar;
1
+ "use strict";const o=require("../chunks/toolbar-Dbq_EngE.cjs.js");exports.Toolbar=o.Toolbar;
2
2
  //# sourceMappingURL=toolbar.cjs.map
@@ -1,4 +1,4 @@
1
- import { T as a } from "../chunks/toolbar-D2CqoZzL.es.js";
1
+ import { T as a } from "../chunks/toolbar-CD5Nrn7W.es.js";
2
2
  export {
3
3
  a as Toolbar
4
4
  };
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("../chunks/slate-helpers-CMAwCMk0.cjs.js"),i=require("./constants.cjs"),o=e=>t.Text.isText(e)&&e.text.trim()!=="",a=e=>e.children.some(r=>o(r)||t.Element.isElement(r)&&a(r)),c=e=>{if(!e||e.trim()==="")return!0;try{return!t.fromHTML(e).some(n=>t.Element.isElement(n)?a(n):t.Text.isText(n)?o(n):!1)}catch(r){return console.warn("Failed to check if rich text is empty:",r),!0}};function l(e){return i.textStyles.find(r=>r.id===e)}function u(e){return l(e)?.label||e}function g(){return i.textStyles.map(e=>e.id)}function d(e){return i.textStyles.some(r=>r.id===e)}function y(e){return l(e)?.props||null}function s(e){return e.startsWith("heading-")}function f(e){return s(e)&&{"heading-one":1,"heading-two":2,"heading-three":3,"heading-four":4,"heading-five":5}[e]||null}function m(e){return{1:"heading-one",2:"heading-two",3:"heading-three",4:"heading-four",5:"heading-five"}[e]||null}exports.Element=t.Element$1;exports.Leaf=t.Leaf;exports.Softbreaker=t.Softbreaker;exports.createEmptyValue=t.createEmptyValue;exports.focusEditor=t.focusEditor;exports.fromHTML=t.fromHTML;exports.isBlockActive=t.isBlockActive;exports.isMarkActive=t.isMarkActive;exports.resetEditor=t.resetEditor;exports.toHTML=t.toHTML;exports.toggleBlock=t.toggleBlock;exports.toggleMark=t.toggleMark;exports.validSlateStateAdapter=t.validSlateStateAdapter;exports.withLinks=t.withLinks;exports.createHeadingBlockType=m;exports.getHeadingLevel=f;exports.getTextStyleById=l;exports.getTextStyleIds=g;exports.getTextStyleLabel=u;exports.getTextStyleProps=y;exports.isEmpty=c;exports.isHeadingType=s;exports.isValidTextStyle=d;
2
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sources":["../../src/components/rich-text-input/utils/is-empty.ts","../../src/components/rich-text-input/utils/text-style-utils.ts"],"sourcesContent":["import { Text, Element as SlateElement, type Descendant } from \"slate\";\nimport { fromHTML } from \"./html-serialization\";\nimport type { CustomElement, CustomText } from \"./types\";\n\nconst isTextNodeNonEmpty = (node: Descendant): boolean =>\n Text.isText(node) && (node as CustomText).text.trim() !== \"\";\n\nconst isElementNodeNonEmpty = (node: CustomElement): boolean =>\n node.children.some(\n (child) =>\n isTextNodeNonEmpty(child) ||\n (SlateElement.isElement(child) &&\n isElementNodeNonEmpty(child as CustomElement))\n );\n\n/**\n * Checks if a rich text HTML value is empty or contains no meaningful content\n */\nexport const isEmpty = (value: string): boolean => {\n if (!value || value.trim() === \"\") {\n return true;\n }\n\n try {\n const slateValue = fromHTML(value);\n\n // Check if any nodes have meaningful content\n return !slateValue.some((node) => {\n if (SlateElement.isElement(node)) {\n return isElementNodeNonEmpty(node as CustomElement);\n }\n if (Text.isText(node)) {\n return isTextNodeNonEmpty(node as CustomText);\n }\n return false;\n });\n } catch (error) {\n console.warn(\"Failed to check if rich text is empty:\", error);\n return true;\n }\n};\n","import {\n textStyles,\n type BlockType,\n type TextStyleDefinition,\n} from \"../constants\";\n\n/**\n * Gets a text style definition by its ID\n */\nexport function getTextStyleById(\n styleId: string\n): TextStyleDefinition | undefined {\n return textStyles.find((style) => style.id === styleId);\n}\n\n/**\n * Gets the display label for a text style ID\n */\nexport function getTextStyleLabel(styleId: string): string {\n const style = getTextStyleById(styleId);\n return style?.label || styleId;\n}\n\n/**\n * Gets all available text style IDs\n */\nexport function getTextStyleIds(): string[] {\n return textStyles.map((style) => style.id);\n}\n\n/**\n * Checks if a style ID is a valid text style\n */\nexport function isValidTextStyle(styleId: string): boolean {\n return textStyles.some((style) => style.id === styleId);\n}\n\n/**\n * Gets the text style properties for rendering\n */\nexport function getTextStyleProps(\n styleId: string\n): TextStyleDefinition[\"props\"] | null {\n const style = getTextStyleById(styleId);\n return style?.props || null;\n}\n\n/**\n * Determines if a block type is a heading\n */\nexport function isHeadingType(blockType: string): boolean {\n return blockType.startsWith(\"heading-\");\n}\n\n/**\n * Gets the heading level from a heading block type (1-6)\n */\nexport function getHeadingLevel(blockType: string): number | null {\n if (!isHeadingType(blockType)) return null;\n\n const levelMap: Record<string, number> = {\n \"heading-one\": 1,\n \"heading-two\": 2,\n \"heading-three\": 3,\n \"heading-four\": 4,\n \"heading-five\": 5,\n };\n\n return levelMap[blockType] || null;\n}\n\n/**\n * Creates a block type from heading level\n */\nexport function createHeadingBlockType(level: number): BlockType | null {\n const levelMap: Record<number, BlockType> = {\n 1: \"heading-one\",\n 2: \"heading-two\",\n 3: \"heading-three\",\n 4: \"heading-four\",\n 5: \"heading-five\",\n };\n\n return levelMap[level] || null;\n}\n"],"names":["isTextNodeNonEmpty","node","Text","isElementNodeNonEmpty","child","SlateElement","isEmpty","value","fromHTML","error","getTextStyleById","styleId","textStyles","style","getTextStyleLabel","getTextStyleIds","isValidTextStyle","getTextStyleProps","isHeadingType","blockType","getHeadingLevel","createHeadingBlockType","level"],"mappings":"qGAIMA,EAAsBC,GAC1BC,EAAAA,KAAK,OAAOD,CAAI,GAAMA,EAAoB,KAAK,KAAA,IAAW,GAEtDE,EAAyBF,GAC7BA,EAAK,SAAS,KACXG,GACCJ,EAAmBI,CAAK,GACvBC,EAAAA,QAAa,UAAUD,CAAK,GAC3BD,EAAsBC,CAAsB,CAClD,EAKWE,EAAWC,GAA2B,CACjD,GAAI,CAACA,GAASA,EAAM,KAAA,IAAW,GAC7B,MAAO,GAGT,GAAI,CAIF,MAAO,CAHYC,EAAAA,SAASD,CAAK,EAGd,KAAMN,GACnBI,EAAAA,QAAa,UAAUJ,CAAI,EACtBE,EAAsBF,CAAqB,EAEhDC,EAAAA,KAAK,OAAOD,CAAI,EACXD,EAAmBC,CAAkB,EAEvC,EACR,CACH,OAASQ,EAAO,CACd,eAAQ,KAAK,yCAA0CA,CAAK,EACrD,EACT,CACF,EC/BO,SAASC,EACdC,EACiC,CACjC,OAAOC,EAAAA,WAAW,KAAMC,GAAUA,EAAM,KAAOF,CAAO,CACxD,CAKO,SAASG,EAAkBH,EAAyB,CAEzD,OADcD,EAAiBC,CAAO,GACxB,OAASA,CACzB,CAKO,SAASI,GAA4B,CAC1C,OAAOH,EAAAA,WAAW,IAAKC,GAAUA,EAAM,EAAE,CAC3C,CAKO,SAASG,EAAiBL,EAA0B,CACzD,OAAOC,EAAAA,WAAW,KAAMC,GAAUA,EAAM,KAAOF,CAAO,CACxD,CAKO,SAASM,EACdN,EACqC,CAErC,OADcD,EAAiBC,CAAO,GACxB,OAAS,IACzB,CAKO,SAASO,EAAcC,EAA4B,CACxD,OAAOA,EAAU,WAAW,UAAU,CACxC,CAKO,SAASC,EAAgBD,EAAkC,CAChE,OAAKD,EAAcC,CAAS,GAEa,CACvC,cAAe,EACf,cAAe,EACf,gBAAiB,EACjB,eAAgB,EAChB,eAAgB,CAAA,EAGFA,CAAS,GAAK,IAChC,CAKO,SAASE,EAAuBC,EAAiC,CAStE,MAR4C,CAC1C,EAAG,cACH,EAAG,cACH,EAAG,gBACH,EAAG,eACH,EAAG,cAAA,EAGWA,CAAK,GAAK,IAC5B"}
@@ -0,0 +1,76 @@
1
+ import { f as u, E as i, T as a } from "../chunks/slate-helpers-BwRHJO4o.es.js";
2
+ import { g as v, L as M, S as k, c as L, e as w, a as H, i as B, r as N, t as V, d as b, b as A, v as F, w as I } from "../chunks/slate-helpers-BwRHJO4o.es.js";
3
+ import { textStyles as r } from "./constants.es.js";
4
+ const s = (e) => a.isText(e) && e.text.trim() !== "", o = (e) => e.children.some(
5
+ (t) => s(t) || i.isElement(t) && o(t)
6
+ ), d = (e) => {
7
+ if (!e || e.trim() === "")
8
+ return !0;
9
+ try {
10
+ return !u(e).some((n) => i.isElement(n) ? o(n) : a.isText(n) ? s(n) : !1);
11
+ } catch (t) {
12
+ return console.warn("Failed to check if rich text is empty:", t), !0;
13
+ }
14
+ };
15
+ function l(e) {
16
+ return r.find((t) => t.id === e);
17
+ }
18
+ function m(e) {
19
+ return l(e)?.label || e;
20
+ }
21
+ function p() {
22
+ return r.map((e) => e.id);
23
+ }
24
+ function h(e) {
25
+ return r.some((t) => t.id === e);
26
+ }
27
+ function y(e) {
28
+ return l(e)?.props || null;
29
+ }
30
+ function c(e) {
31
+ return e.startsWith("heading-");
32
+ }
33
+ function x(e) {
34
+ return c(e) && {
35
+ "heading-one": 1,
36
+ "heading-two": 2,
37
+ "heading-three": 3,
38
+ "heading-four": 4,
39
+ "heading-five": 5
40
+ }[e] || null;
41
+ }
42
+ function T(e) {
43
+ return {
44
+ 1: "heading-one",
45
+ 2: "heading-two",
46
+ 3: "heading-three",
47
+ 4: "heading-four",
48
+ 5: "heading-five"
49
+ }[e] || null;
50
+ }
51
+ export {
52
+ v as Element,
53
+ M as Leaf,
54
+ k as Softbreaker,
55
+ L as createEmptyValue,
56
+ T as createHeadingBlockType,
57
+ w as focusEditor,
58
+ u as fromHTML,
59
+ x as getHeadingLevel,
60
+ l as getTextStyleById,
61
+ p as getTextStyleIds,
62
+ m as getTextStyleLabel,
63
+ y as getTextStyleProps,
64
+ H as isBlockActive,
65
+ d as isEmpty,
66
+ c as isHeadingType,
67
+ B as isMarkActive,
68
+ h as isValidTextStyle,
69
+ N as resetEditor,
70
+ V as toHTML,
71
+ b as toggleBlock,
72
+ A as toggleMark,
73
+ F as validSlateStateAdapter,
74
+ I as withLinks
75
+ };
76
+ //# sourceMappingURL=utils.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.es.js","sources":["../../src/components/rich-text-input/utils/is-empty.ts","../../src/components/rich-text-input/utils/text-style-utils.ts"],"sourcesContent":["import { Text, Element as SlateElement, type Descendant } from \"slate\";\nimport { fromHTML } from \"./html-serialization\";\nimport type { CustomElement, CustomText } from \"./types\";\n\nconst isTextNodeNonEmpty = (node: Descendant): boolean =>\n Text.isText(node) && (node as CustomText).text.trim() !== \"\";\n\nconst isElementNodeNonEmpty = (node: CustomElement): boolean =>\n node.children.some(\n (child) =>\n isTextNodeNonEmpty(child) ||\n (SlateElement.isElement(child) &&\n isElementNodeNonEmpty(child as CustomElement))\n );\n\n/**\n * Checks if a rich text HTML value is empty or contains no meaningful content\n */\nexport const isEmpty = (value: string): boolean => {\n if (!value || value.trim() === \"\") {\n return true;\n }\n\n try {\n const slateValue = fromHTML(value);\n\n // Check if any nodes have meaningful content\n return !slateValue.some((node) => {\n if (SlateElement.isElement(node)) {\n return isElementNodeNonEmpty(node as CustomElement);\n }\n if (Text.isText(node)) {\n return isTextNodeNonEmpty(node as CustomText);\n }\n return false;\n });\n } catch (error) {\n console.warn(\"Failed to check if rich text is empty:\", error);\n return true;\n }\n};\n","import {\n textStyles,\n type BlockType,\n type TextStyleDefinition,\n} from \"../constants\";\n\n/**\n * Gets a text style definition by its ID\n */\nexport function getTextStyleById(\n styleId: string\n): TextStyleDefinition | undefined {\n return textStyles.find((style) => style.id === styleId);\n}\n\n/**\n * Gets the display label for a text style ID\n */\nexport function getTextStyleLabel(styleId: string): string {\n const style = getTextStyleById(styleId);\n return style?.label || styleId;\n}\n\n/**\n * Gets all available text style IDs\n */\nexport function getTextStyleIds(): string[] {\n return textStyles.map((style) => style.id);\n}\n\n/**\n * Checks if a style ID is a valid text style\n */\nexport function isValidTextStyle(styleId: string): boolean {\n return textStyles.some((style) => style.id === styleId);\n}\n\n/**\n * Gets the text style properties for rendering\n */\nexport function getTextStyleProps(\n styleId: string\n): TextStyleDefinition[\"props\"] | null {\n const style = getTextStyleById(styleId);\n return style?.props || null;\n}\n\n/**\n * Determines if a block type is a heading\n */\nexport function isHeadingType(blockType: string): boolean {\n return blockType.startsWith(\"heading-\");\n}\n\n/**\n * Gets the heading level from a heading block type (1-6)\n */\nexport function getHeadingLevel(blockType: string): number | null {\n if (!isHeadingType(blockType)) return null;\n\n const levelMap: Record<string, number> = {\n \"heading-one\": 1,\n \"heading-two\": 2,\n \"heading-three\": 3,\n \"heading-four\": 4,\n \"heading-five\": 5,\n };\n\n return levelMap[blockType] || null;\n}\n\n/**\n * Creates a block type from heading level\n */\nexport function createHeadingBlockType(level: number): BlockType | null {\n const levelMap: Record<number, BlockType> = {\n 1: \"heading-one\",\n 2: \"heading-two\",\n 3: \"heading-three\",\n 4: \"heading-four\",\n 5: \"heading-five\",\n };\n\n return levelMap[level] || null;\n}\n"],"names":["isTextNodeNonEmpty","node","Text","isElementNodeNonEmpty","child","SlateElement","isEmpty","value","fromHTML","error","getTextStyleById","styleId","textStyles","style","getTextStyleLabel","getTextStyleIds","isValidTextStyle","getTextStyleProps","isHeadingType","blockType","getHeadingLevel","createHeadingBlockType","level"],"mappings":";;;AAIA,MAAMA,IAAqB,CAACC,MAC1BC,EAAK,OAAOD,CAAI,KAAMA,EAAoB,KAAK,KAAA,MAAW,IAEtDE,IAAwB,CAACF,MAC7BA,EAAK,SAAS;AAAA,EACZ,CAACG,MACCJ,EAAmBI,CAAK,KACvBC,EAAa,UAAUD,CAAK,KAC3BD,EAAsBC,CAAsB;AAClD,GAKWE,IAAU,CAACC,MAA2B;AACjD,MAAI,CAACA,KAASA,EAAM,KAAA,MAAW;AAC7B,WAAO;AAGT,MAAI;AAIF,WAAO,CAHYC,EAASD,CAAK,EAGd,KAAK,CAACN,MACnBI,EAAa,UAAUJ,CAAI,IACtBE,EAAsBF,CAAqB,IAEhDC,EAAK,OAAOD,CAAI,IACXD,EAAmBC,CAAkB,IAEvC,EACR;AAAA,EACH,SAASQ,GAAO;AACd,mBAAQ,KAAK,0CAA0CA,CAAK,GACrD;AAAA,EACT;AACF;AC/BO,SAASC,EACdC,GACiC;AACjC,SAAOC,EAAW,KAAK,CAACC,MAAUA,EAAM,OAAOF,CAAO;AACxD;AAKO,SAASG,EAAkBH,GAAyB;AAEzD,SADcD,EAAiBC,CAAO,GACxB,SAASA;AACzB;AAKO,SAASI,IAA4B;AAC1C,SAAOH,EAAW,IAAI,CAACC,MAAUA,EAAM,EAAE;AAC3C;AAKO,SAASG,EAAiBL,GAA0B;AACzD,SAAOC,EAAW,KAAK,CAACC,MAAUA,EAAM,OAAOF,CAAO;AACxD;AAKO,SAASM,EACdN,GACqC;AAErC,SADcD,EAAiBC,CAAO,GACxB,SAAS;AACzB;AAKO,SAASO,EAAcC,GAA4B;AACxD,SAAOA,EAAU,WAAW,UAAU;AACxC;AAKO,SAASC,EAAgBD,GAAkC;AAChE,SAAKD,EAAcC,CAAS,KAEa;AAAA,IACvC,eAAe;AAAA,IACf,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAAA,EAGFA,CAAS,KAAK;AAChC;AAKO,SAASE,EAAuBC,GAAiC;AAStE,SAR4C;AAAA,IAC1C,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,EAAA,EAGWA,CAAK,KAAK;AAC5B;"}
@@ -48,6 +48,7 @@ import { DisclosureProps } from 'react-aria-components';
48
48
  import { FC } from 'react';
49
49
  import { Flex } from '@chakra-ui/react/flex';
50
50
  import { FocusableOptions } from 'react-aria';
51
+ import { FocusEventHandler } from 'react';
51
52
  import { FormFieldDescriptionSlotProps } from './form-field.slots';
52
53
  import { FormFieldErrorSlotProps } from './form-field.slots';
53
54
  import { FormFieldInputSlotProps } from './form-field.slots';
@@ -1269,6 +1270,7 @@ export declare interface DataTableProps<T extends object = Record<string, unknow
1269
1270
  search?: string;
1270
1271
  maxHeight?: string | number;
1271
1272
  sortDescriptor?: SortDescriptor;
1273
+ defaultSortDescriptor?: SortDescriptor;
1272
1274
  onSortChange?: (descriptor: SortDescriptor) => void;
1273
1275
  selectionMode?: "none" | "single" | "multiple";
1274
1276
  selectionBehavior?: "toggle" | "replace";
@@ -1639,6 +1641,8 @@ declare type DefaultExcludedProps = "css" | "asChild" | "as" | "colorScheme";
1639
1641
 
1640
1642
  declare type DefaultExcludedProps_2 = "css" | "asChild" | "as";
1641
1643
 
1644
+ declare type DefaultExcludedProps_3 = "css" | "asChild" | "as" | "onChange";
1645
+
1642
1646
  /**
1643
1647
  * # Dialog
1644
1648
  *
@@ -3046,6 +3050,65 @@ export declare type RangeValue<T> = {
3046
3050
  end: T;
3047
3051
  };
3048
3052
 
3053
+ /**
3054
+ RichTextInput - A rich text input component with formatting capabilities.
3055
+ */
3056
+ export declare const RichTextInput: {
3057
+ (props: RichTextInputProps): JSX.Element;
3058
+ displayName: string;
3059
+ };
3060
+
3061
+ export declare interface RichTextInputProps extends Omit<RichTextInputRootSlotProps, DefaultExcludedProps_3 | "children"> {
3062
+ /**
3063
+ * The ref for the rich text input component
3064
+ */
3065
+ ref?: Ref<HTMLDivElement>;
3066
+ /**
3067
+ * The HTML value of the rich text input
3068
+ */
3069
+ value?: string;
3070
+ /**
3071
+ * The default HTML value of the rich text input (uncontrolled)
3072
+ */
3073
+ defaultValue?: string;
3074
+ /**
3075
+ * Called when the value changes
3076
+ */
3077
+ onChange?: (value: string) => void;
3078
+ /**
3079
+ * Called when the input is focused
3080
+ */
3081
+ onFocus?: FocusEventHandler<HTMLDivElement>;
3082
+ /**
3083
+ * Called when the input is blurred
3084
+ */
3085
+ onBlur?: FocusEventHandler<HTMLDivElement>;
3086
+ /**
3087
+ * Placeholder text to show when the editor is empty
3088
+ */
3089
+ placeholder?: string;
3090
+ /**
3091
+ * Whether the input is disabled
3092
+ */
3093
+ isDisabled?: boolean;
3094
+ /**
3095
+ * Whether the input is read-only
3096
+ */
3097
+ isReadOnly?: boolean;
3098
+ /**
3099
+ * Whether the input is in an invalid state
3100
+ */
3101
+ isInvalid?: boolean;
3102
+ /**
3103
+ * Whether to focus the input when it mounts
3104
+ */
3105
+ autoFocus?: boolean;
3106
+ }
3107
+
3108
+ declare const richTextInputRecipe: SlotRecipeDefinition<"toolbar" | "root" | "editable", {}>;
3109
+
3110
+ declare type RichTextInputRootSlotProps = HTMLChakraProps_2<"div", RecipeVariantProps_2<typeof richTextInputRecipe> & UnstyledProp_2>;
3111
+
3049
3112
  export declare type RouterOptions = NimbusRouterOptionsBase extends {
3050
3113
  routerOptions: any;
3051
3114
  } ? NimbusRouterOptionsBase["routerOptions"] : any;
@@ -3768,22 +3831,25 @@ declare const toolbarRecipe: RecipeDefinition< {
3768
3831
  size: {
3769
3832
  xs: {
3770
3833
  "--toolbar-spacing": "{spacing.100}";
3834
+ "--divider-size": "{sizes.600}";
3771
3835
  };
3772
3836
  md: {
3773
3837
  "--toolbar-spacing": "{spacing.200}";
3838
+ "--divider-size": "{sizes.800}";
3774
3839
  };
3775
3840
  };
3776
3841
  orientation: {
3777
3842
  horizontal: {
3778
3843
  "--toolbar-direction": "row";
3779
3844
  "& .nimbus-divider": {
3780
- height: "auto";
3845
+ height: "var(--divider-size)";
3781
3846
  mx: "var(--toolbar-spacing)";
3782
3847
  };
3783
3848
  };
3784
3849
  vertical: {
3785
3850
  "--toolbar-direction": "column";
3786
3851
  "& .nimbus-divider": {
3852
+ width: "var(--divider-size)";
3787
3853
  my: "var(--toolbar-spacing)";
3788
3854
  };
3789
3855
  };
@@ -3914,3 +3980,12 @@ export declare interface VisuallyHiddenProps extends Omit<VisuallyHiddenProps_2,
3914
3980
  }
3915
3981
 
3916
3982
  export { }
3983
+
3984
+
3985
+ declare module "slate" {
3986
+ interface CustomTypes {
3987
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
3988
+ Element: CustomElement;
3989
+ Text: CustomText;
3990
+ }
3991
+ }
@@ -0,0 +1,129 @@
1
+ export declare const BASIC_FORMATTING: readonly ["strikethrough", "code"];
2
+
3
+ export declare type BasicFormattingType = (typeof BASIC_FORMATTING)[number];
4
+
5
+ export declare const BLOCK_TAGS: {
6
+ readonly blockquote: "block-quote";
7
+ readonly p: "paragraph";
8
+ readonly pre: "code";
9
+ readonly h1: "heading-one";
10
+ readonly h2: "heading-two";
11
+ readonly h3: "heading-three";
12
+ readonly h4: "heading-four";
13
+ readonly h5: "heading-five";
14
+ readonly ul: "bulleted-list";
15
+ readonly ol: "numbered-list";
16
+ readonly li: "list-item";
17
+ readonly a: "link";
18
+ };
19
+
20
+ export declare type BlockTagKey = keyof typeof BLOCK_TAGS;
21
+
22
+ export declare type BlockTagValue = (typeof BLOCK_TAGS)[BlockTagKey];
23
+
24
+ export declare type BlockType = (typeof blockTypes)[number] | "paragraph";
25
+
26
+ /**
27
+ * Available block types for text style detection
28
+ *
29
+ * Used by:
30
+ * - hooks/useToolbarState.ts: Detects currently active block type in editor
31
+ * - Excludes "paragraph" as it's the default/fallback type
32
+ */
33
+ export declare const blockTypes: readonly ["heading-one", "heading-two", "heading-three", "heading-four", "heading-five", "block-quote"];
34
+
35
+ export declare const EDITOR_DEFAULTS: {
36
+ readonly placeholder: "Start typing...";
37
+ readonly isDisabled: false;
38
+ readonly isReadOnly: false;
39
+ readonly autoFocus: false;
40
+ };
41
+
42
+ export declare const FORMATTING_OPTIONS: {
43
+ readonly STRIKETHROUGH: "strikethrough";
44
+ readonly CODE: "code";
45
+ readonly SUPERSCRIPT: "superscript";
46
+ readonly SUBSCRIPT: "subscript";
47
+ };
48
+
49
+ export declare type FormattingType = (typeof FORMATTING_OPTIONS)[keyof typeof FORMATTING_OPTIONS];
50
+
51
+ export declare type HotkeyKey = keyof HotkeyType;
52
+
53
+ /**
54
+ * Constants for the rich text editor component
55
+ *
56
+ * This file consolidates all the configuration constants used by the rich text editor.
57
+ * Previously split across multiple files, now consolidated for better maintainability.
58
+ */
59
+ export declare const HOTKEYS: {
60
+ readonly "mod+b": "bold";
61
+ readonly "mod+i": "italic";
62
+ readonly "mod+u": "underline";
63
+ readonly "mod+`": "code";
64
+ };
65
+
66
+ export declare type HotkeyType = typeof HOTKEYS;
67
+
68
+ export declare type HotkeyValue = HotkeyType[HotkeyKey];
69
+
70
+ export declare const MARK_TAGS: {
71
+ readonly strong: "bold";
72
+ readonly b: "bold";
73
+ readonly em: "italic";
74
+ readonly i: "italic";
75
+ readonly u: "underline";
76
+ readonly code: "code";
77
+ readonly sup: "superscript";
78
+ readonly sub: "subscript";
79
+ readonly del: "strikethrough";
80
+ readonly s: "strikethrough";
81
+ };
82
+
83
+ export declare type MarkTagKey = keyof typeof MARK_TAGS;
84
+
85
+ export declare type MarkTagValue = (typeof MARK_TAGS)[MarkTagKey];
86
+
87
+ export declare const MUTUALLY_EXCLUSIVE_GROUPS: {
88
+ readonly script: readonly ["superscript", "subscript"];
89
+ };
90
+
91
+ export declare const SCRIPT_FORMATTING: readonly ["superscript", "subscript"];
92
+
93
+ export declare type ScriptFormattingType = (typeof SCRIPT_FORMATTING)[number];
94
+
95
+ /**
96
+ * Text style definitions for rich text editor block formatting
97
+ *
98
+ * Used by:
99
+ * - components/rich-text-toolbar.tsx: Renders text style dropdown menu with these options
100
+ * - hooks/useToolbarState.ts: Manages current text style state and selection logic
101
+ * - utils/text-style-utils.ts: Helper functions for text style operations
102
+ * - utils/validation-utils.ts: Validates if block types are supported
103
+ *
104
+ * Purpose:
105
+ * - Centralizes all available text styles and their visual properties
106
+ * - Maps block type IDs to user-friendly labels and Chakra UI styling props
107
+ * - Ensures consistent styling across the editor and UI controls
108
+ */
109
+ export declare interface TextStyleDefinition {
110
+ id: string;
111
+ label: string;
112
+ props: {
113
+ textStyle: string;
114
+ fontWeight: string;
115
+ };
116
+ }
117
+
118
+ export declare const textStyles: TextStyleDefinition[];
119
+
120
+ export { }
121
+
122
+
123
+ declare module "slate" {
124
+ interface CustomTypes {
125
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
126
+ Element: CustomElement;
127
+ Text: CustomText;
128
+ }
129
+ }
@@ -156,6 +156,7 @@ export declare interface DataTableProps<T extends object = Record<string, unknow
156
156
  search?: string;
157
157
  maxHeight?: string | number;
158
158
  sortDescriptor?: SortDescriptor;
159
+ defaultSortDescriptor?: SortDescriptor;
159
160
  onSortChange?: (descriptor: SortDescriptor) => void;
160
161
  selectionMode?: "none" | "single" | "multiple";
161
162
  selectionBehavior?: "toggle" | "replace";
@@ -268,3 +269,12 @@ export declare type SortDescriptor = {
268
269
  export declare type SortDirection = SortDirection_2;
269
270
 
270
271
  export { }
272
+
273
+
274
+ declare module "slate" {
275
+ interface CustomTypes {
276
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
277
+ Element: CustomElement;
278
+ Text: CustomText;
279
+ }
280
+ }
@@ -101,3 +101,12 @@ boxShadow: "none!";
101
101
  declare type ExcludedProps = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild";
102
102
 
103
103
  export { }
104
+
105
+
106
+ declare module "slate" {
107
+ interface CustomTypes {
108
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
109
+ Element: CustomElement;
110
+ Text: CustomText;
111
+ }
112
+ }
@@ -183,3 +183,12 @@ declare type ExcludedProps = "validationState" | "label" | "description" | "erro
183
183
  declare type ExcludedProps_2 = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild" | "variant";
184
184
 
185
185
  export { }
186
+
187
+
188
+ declare module "slate" {
189
+ interface CustomTypes {
190
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
191
+ Element: CustomElement;
192
+ Text: CustomText;
193
+ }
194
+ }
@@ -109,3 +109,12 @@ export declare interface DateRangePickerTimeInputProps {
109
109
  declare type ExcludedProps = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild";
110
110
 
111
111
  export { }
112
+
113
+
114
+ declare module "slate" {
115
+ interface CustomTypes {
116
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
117
+ Element: CustomElement;
118
+ Text: CustomText;
119
+ }
120
+ }
package/dist/dialog.d.ts CHANGED
@@ -37,3 +37,12 @@ declare interface DialogContentProps extends Dialog_2.ContentProps {
37
37
  }
38
38
 
39
39
  export { }
40
+
41
+
42
+ declare module "slate" {
43
+ interface CustomTypes {
44
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
45
+ Element: CustomElement;
46
+ Text: CustomText;
47
+ }
48
+ }
package/dist/divider.d.ts CHANGED
@@ -79,3 +79,12 @@ declare type DividerVariantProps = DividerRootProps & RecipeVariantProps<typeof
79
79
  };
80
80
 
81
81
  export { }
82
+
83
+
84
+ declare module "slate" {
85
+ interface CustomTypes {
86
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
87
+ Element: CustomElement;
88
+ Text: CustomText;
89
+ }
90
+ }
package/dist/flex.d.ts CHANGED
@@ -3,3 +3,12 @@ import { Flex } from '@chakra-ui/react/flex';
3
3
  export { Flex }
4
4
 
5
5
  export { }
6
+
7
+
8
+ declare module "slate" {
9
+ interface CustomTypes {
10
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
11
+ Element: CustomElement;
12
+ Text: CustomText;
13
+ }
14
+ }
@@ -131,3 +131,12 @@ declare interface FormFieldRootSlotProps extends HTMLChakraProps<"div", RecipeVa
131
131
  }
132
132
 
133
133
  export { }
134
+
135
+
136
+ declare module "slate" {
137
+ interface CustomTypes {
138
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
139
+ Element: CustomElement;
140
+ Text: CustomText;
141
+ }
142
+ }
package/dist/grid.d.ts CHANGED
@@ -24,3 +24,12 @@ export declare interface GridProps extends GridProps_2 {
24
24
  }
25
25
 
26
26
  export { }
27
+
28
+
29
+ declare module "slate" {
30
+ interface CustomTypes {
31
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
32
+ Element: CustomElement;
33
+ Text: CustomText;
34
+ }
35
+ }
package/dist/group.d.ts CHANGED
@@ -33,3 +33,12 @@ declare interface GroupSlotProps extends HTMLChakraProps<"div", GroupRecipeProps
33
33
  }
34
34
 
35
35
  export { }
36
+
37
+
38
+ declare module "slate" {
39
+ interface CustomTypes {
40
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
41
+ Element: CustomElement;
42
+ Text: CustomText;
43
+ }
44
+ }
package/dist/heading.d.ts CHANGED
@@ -3,3 +3,12 @@ import { Heading } from '@chakra-ui/react/heading';
3
3
  export { Heading }
4
4
 
5
5
  export { }
6
+
7
+
8
+ declare module "slate" {
9
+ interface CustomTypes {
10
+ Editor: BaseEditor & ReactEditor & HistoryEditor;
11
+ Element: CustomElement;
12
+ Text: CustomText;
13
+ }
14
+ }