@choco-vanille/ui 1.4.0 → 1.5.1

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 (806) hide show
  1. package/dist/components/_common/rotating-chevron/styles/RotatingChevron.css.cjs +1 -1
  2. package/dist/components/_common/rotating-chevron/styles/RotatingChevron.css.js +1 -1
  3. package/dist/components/actions/_shared/buttons/styles/buttonShared.css.cjs +1 -1
  4. package/dist/components/actions/_shared/buttons/styles/buttonShared.css.js +1 -1
  5. package/dist/components/actions/button/Button.cjs.map +1 -1
  6. package/dist/components/actions/button/Button.d.ts +5 -0
  7. package/dist/components/actions/button/Button.js.map +1 -1
  8. package/dist/components/actions/button/styles/Button.css.cjs +1 -1
  9. package/dist/components/actions/button/styles/Button.css.js +1 -1
  10. package/dist/components/actions/icon-button/IconButton.cjs.map +1 -1
  11. package/dist/components/actions/icon-button/IconButton.d.ts +5 -0
  12. package/dist/components/actions/icon-button/IconButton.js.map +1 -1
  13. package/dist/components/actions/icon-button/styles/IconButton.css.cjs +1 -1
  14. package/dist/components/actions/icon-button/styles/IconButton.css.js +1 -1
  15. package/dist/components/actions/toggle/Toggle.cjs.map +1 -1
  16. package/dist/components/actions/toggle/Toggle.d.ts +6 -0
  17. package/dist/components/actions/toggle/Toggle.js.map +1 -1
  18. package/dist/components/actions/toggle/styles/Toggle.css.cjs +1 -1
  19. package/dist/components/actions/toggle/styles/Toggle.css.js +1 -1
  20. package/dist/components/actions/toggle-group/styles/ToggleGroup.css.cjs +1 -1
  21. package/dist/components/actions/toggle-group/styles/ToggleGroup.css.js +1 -1
  22. package/dist/components/data-display/avatar/Avatar.cjs.map +1 -1
  23. package/dist/components/data-display/avatar/Avatar.d.ts +7 -0
  24. package/dist/components/data-display/avatar/Avatar.js.map +1 -1
  25. package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.cjs +1 -1
  26. package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.cjs.map +1 -1
  27. package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.d.ts +5 -0
  28. package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.js +1 -1
  29. package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.js.map +1 -1
  30. package/dist/components/data-display/avatar/components/avatar-fallback/styles/AvatarFallback.css.cjs +1 -1
  31. package/dist/components/data-display/avatar/components/avatar-fallback/styles/AvatarFallback.css.js +1 -1
  32. package/dist/components/data-display/avatar/components/avatar-image/AvatarImage.cjs.map +1 -1
  33. package/dist/components/data-display/avatar/components/avatar-image/AvatarImage.d.ts +4 -0
  34. package/dist/components/data-display/avatar/components/avatar-image/AvatarImage.js.map +1 -1
  35. package/dist/components/data-display/avatar/components/avatar-image/styles/AvatarImage.css.cjs +1 -1
  36. package/dist/components/data-display/avatar/components/avatar-image/styles/AvatarImage.css.js +1 -1
  37. package/dist/components/data-display/avatar/components/avatar-root/AvatarRoot.cjs.map +1 -1
  38. package/dist/components/data-display/avatar/components/avatar-root/AvatarRoot.d.ts +4 -0
  39. package/dist/components/data-display/avatar/components/avatar-root/AvatarRoot.js.map +1 -1
  40. package/dist/components/data-display/avatar/components/avatar-root/styles/AvatarRoot.css.cjs +1 -1
  41. package/dist/components/data-display/avatar/components/avatar-root/styles/AvatarRoot.css.js +1 -1
  42. package/dist/components/data-display/avatar/components/avatar-status/AvatarStatus.cjs.map +1 -1
  43. package/dist/components/data-display/avatar/components/avatar-status/AvatarStatus.d.ts +5 -0
  44. package/dist/components/data-display/avatar/components/avatar-status/AvatarStatus.js.map +1 -1
  45. package/dist/components/data-display/avatar/components/avatar-status/styles/AvatarStatus.css.cjs +1 -1
  46. package/dist/components/data-display/avatar/components/avatar-status/styles/AvatarStatus.css.js +1 -1
  47. package/dist/components/data-display/avatar-group/AvatarGroup.cjs.map +1 -1
  48. package/dist/components/data-display/avatar-group/AvatarGroup.d.ts +4 -0
  49. package/dist/components/data-display/avatar-group/AvatarGroup.js.map +1 -1
  50. package/dist/components/data-display/badge/Badge.cjs.map +1 -1
  51. package/dist/components/data-display/badge/Badge.d.ts +4 -0
  52. package/dist/components/data-display/badge/Badge.js.map +1 -1
  53. package/dist/components/data-display/badge/styles/Badge.css.cjs +1 -1
  54. package/dist/components/data-display/badge/styles/Badge.css.js +1 -1
  55. package/dist/components/data-display/rich-text-renderer/RichTextRenderer.cjs.map +1 -1
  56. package/dist/components/data-display/rich-text-renderer/RichTextRenderer.d.ts +4 -0
  57. package/dist/components/data-display/rich-text-renderer/RichTextRenderer.js.map +1 -1
  58. package/dist/components/data-display/rich-text-renderer/styles/RichTextRenderer.css.cjs +1 -1
  59. package/dist/components/data-display/rich-text-renderer/styles/RichTextRenderer.css.js +1 -1
  60. package/dist/components/data-display/table/Table.cjs.map +1 -1
  61. package/dist/components/data-display/table/Table.d.ts +8 -0
  62. package/dist/components/data-display/table/Table.js.map +1 -1
  63. package/dist/components/data-display/table/components/table-body/TableBody.cjs.map +1 -1
  64. package/dist/components/data-display/table/components/table-body/TableBody.d.ts +4 -0
  65. package/dist/components/data-display/table/components/table-body/TableBody.js.map +1 -1
  66. package/dist/components/data-display/table/components/table-body/styles/TableBody.css.cjs +1 -1
  67. package/dist/components/data-display/table/components/table-body/styles/TableBody.css.js +1 -1
  68. package/dist/components/data-display/table/components/table-caption/TableCaption.cjs.map +1 -1
  69. package/dist/components/data-display/table/components/table-caption/TableCaption.d.ts +4 -0
  70. package/dist/components/data-display/table/components/table-caption/TableCaption.js.map +1 -1
  71. package/dist/components/data-display/table/components/table-caption/styles/TableCaption.css.cjs +1 -1
  72. package/dist/components/data-display/table/components/table-caption/styles/TableCaption.css.js +1 -1
  73. package/dist/components/data-display/table/components/table-cell/TableCell.cjs.map +1 -1
  74. package/dist/components/data-display/table/components/table-cell/TableCell.d.ts +4 -0
  75. package/dist/components/data-display/table/components/table-cell/TableCell.js.map +1 -1
  76. package/dist/components/data-display/table/components/table-cell/styles/TableCell.css.cjs +1 -1
  77. package/dist/components/data-display/table/components/table-cell/styles/TableCell.css.js +1 -1
  78. package/dist/components/data-display/table/components/table-col/TableCol.cjs.map +1 -1
  79. package/dist/components/data-display/table/components/table-col/TableCol.d.ts +4 -0
  80. package/dist/components/data-display/table/components/table-col/TableCol.js.map +1 -1
  81. package/dist/components/data-display/table/components/table-col-group/TableColGroup.cjs.map +1 -1
  82. package/dist/components/data-display/table/components/table-col-group/TableColGroup.d.ts +4 -0
  83. package/dist/components/data-display/table/components/table-col-group/TableColGroup.js.map +1 -1
  84. package/dist/components/data-display/table/components/table-footer/TableFooter.cjs.map +1 -1
  85. package/dist/components/data-display/table/components/table-footer/TableFooter.d.ts +4 -0
  86. package/dist/components/data-display/table/components/table-footer/TableFooter.js.map +1 -1
  87. package/dist/components/data-display/table/components/table-footer/styles/TableFooter.css.cjs +1 -1
  88. package/dist/components/data-display/table/components/table-footer/styles/TableFooter.css.js +1 -1
  89. package/dist/components/data-display/table/components/table-head/TableHead.cjs.map +1 -1
  90. package/dist/components/data-display/table/components/table-head/TableHead.d.ts +5 -0
  91. package/dist/components/data-display/table/components/table-head/TableHead.js.map +1 -1
  92. package/dist/components/data-display/table/components/table-head/styles/TableHead.css.cjs +1 -1
  93. package/dist/components/data-display/table/components/table-head/styles/TableHead.css.js +1 -1
  94. package/dist/components/data-display/table/components/table-header/TableHeader.cjs.map +1 -1
  95. package/dist/components/data-display/table/components/table-header/TableHeader.d.ts +4 -0
  96. package/dist/components/data-display/table/components/table-header/TableHeader.js.map +1 -1
  97. package/dist/components/data-display/table/components/table-header/styles/TableHeader.css.cjs +1 -1
  98. package/dist/components/data-display/table/components/table-header/styles/TableHeader.css.js +1 -1
  99. package/dist/components/data-display/table/components/table-row/TableRow.cjs.map +1 -1
  100. package/dist/components/data-display/table/components/table-row/TableRow.d.ts +5 -0
  101. package/dist/components/data-display/table/components/table-row/TableRow.js.map +1 -1
  102. package/dist/components/data-display/table/components/table-row/styles/TableRow.css.cjs +1 -1
  103. package/dist/components/data-display/table/components/table-row/styles/TableRow.css.js +1 -1
  104. package/dist/components/data-display/table/styles/Table.css.cjs +1 -1
  105. package/dist/components/data-display/table/styles/Table.css.js +1 -1
  106. package/dist/components/feedback/callout/Callout.cjs.map +1 -1
  107. package/dist/components/feedback/callout/Callout.d.ts +8 -0
  108. package/dist/components/feedback/callout/Callout.js.map +1 -1
  109. package/dist/components/feedback/callout/components/callout-description/CalloutDescription.cjs.map +1 -1
  110. package/dist/components/feedback/callout/components/callout-description/CalloutDescription.d.ts +4 -0
  111. package/dist/components/feedback/callout/components/callout-description/CalloutDescription.js.map +1 -1
  112. package/dist/components/feedback/callout/components/callout-icon/CalloutIcon.cjs.map +1 -1
  113. package/dist/components/feedback/callout/components/callout-icon/CalloutIcon.d.ts +5 -0
  114. package/dist/components/feedback/callout/components/callout-icon/CalloutIcon.js.map +1 -1
  115. package/dist/components/feedback/callout/components/callout-icon/styles/CalloutIcon.css.cjs +1 -1
  116. package/dist/components/feedback/callout/components/callout-icon/styles/CalloutIcon.css.js +1 -1
  117. package/dist/components/feedback/callout/components/callout-title/CalloutTitle.cjs.map +1 -1
  118. package/dist/components/feedback/callout/components/callout-title/CalloutTitle.d.ts +4 -0
  119. package/dist/components/feedback/callout/components/callout-title/CalloutTitle.js.map +1 -1
  120. package/dist/components/feedback/callout/styles/Callout.css.cjs +1 -1
  121. package/dist/components/feedback/callout/styles/Callout.css.js +1 -1
  122. package/dist/components/feedback/empty-state/EmptyState.cjs.map +1 -1
  123. package/dist/components/feedback/empty-state/EmptyState.d.ts +5 -0
  124. package/dist/components/feedback/empty-state/EmptyState.js.map +1 -1
  125. package/dist/components/feedback/empty-state/styles/EmptyState.css.cjs +1 -1
  126. package/dist/components/feedback/empty-state/styles/EmptyState.css.js +1 -1
  127. package/dist/components/feedback/progress/CircularProgress.cjs.map +1 -1
  128. package/dist/components/feedback/progress/CircularProgress.d.ts +6 -0
  129. package/dist/components/feedback/progress/CircularProgress.js.map +1 -1
  130. package/dist/components/feedback/progress/Progress.cjs.map +1 -1
  131. package/dist/components/feedback/progress/Progress.d.ts +6 -0
  132. package/dist/components/feedback/progress/Progress.js.map +1 -1
  133. package/dist/components/feedback/progress/styles/Progress.css.cjs +1 -1
  134. package/dist/components/feedback/progress/styles/Progress.css.js +1 -1
  135. package/dist/components/feedback/skeleton/Skeleton.cjs.map +1 -1
  136. package/dist/components/feedback/skeleton/Skeleton.d.ts +5 -0
  137. package/dist/components/feedback/skeleton/Skeleton.js.map +1 -1
  138. package/dist/components/feedback/skeleton/styles/Skeleton.css.cjs +1 -1
  139. package/dist/components/feedback/skeleton/styles/Skeleton.css.js +1 -1
  140. package/dist/components/feedback/spinner/Spinner.cjs.map +1 -1
  141. package/dist/components/feedback/spinner/Spinner.d.ts +5 -0
  142. package/dist/components/feedback/spinner/Spinner.js.map +1 -1
  143. package/dist/components/feedback/spinner/styles/Spinner.css.cjs +1 -1
  144. package/dist/components/feedback/spinner/styles/Spinner.css.js +1 -1
  145. package/dist/components/feedback/toast/Toast.cjs +1 -1
  146. package/dist/components/feedback/toast/Toast.cjs.map +1 -1
  147. package/dist/components/feedback/toast/Toast.d.ts +10 -0
  148. package/dist/components/feedback/toast/Toast.js +1 -1
  149. package/dist/components/feedback/toast/Toast.js.map +1 -1
  150. package/dist/components/feedback/toast/ToastProvider.cjs.map +1 -1
  151. package/dist/components/feedback/toast/ToastProvider.d.ts +5 -0
  152. package/dist/components/feedback/toast/ToastProvider.js.map +1 -1
  153. package/dist/components/feedback/toast/components/toast-actions/ToastActions.cjs.map +1 -1
  154. package/dist/components/feedback/toast/components/toast-actions/ToastActions.d.ts +4 -0
  155. package/dist/components/feedback/toast/components/toast-actions/ToastActions.js.map +1 -1
  156. package/dist/components/feedback/toast/components/toast-actions/styles/ToastActions.css.cjs +1 -1
  157. package/dist/components/feedback/toast/components/toast-actions/styles/ToastActions.css.js +1 -1
  158. package/dist/components/feedback/toast/components/toast-close/ToastClose.cjs.map +1 -1
  159. package/dist/components/feedback/toast/components/toast-close/ToastClose.d.ts +4 -0
  160. package/dist/components/feedback/toast/components/toast-close/ToastClose.js.map +1 -1
  161. package/dist/components/feedback/toast/components/toast-close/styles/ToastClose.css.cjs +1 -1
  162. package/dist/components/feedback/toast/components/toast-close/styles/ToastClose.css.js +1 -1
  163. package/dist/components/feedback/toast/components/toast-description/ToastDescription.cjs.map +1 -1
  164. package/dist/components/feedback/toast/components/toast-description/ToastDescription.d.ts +4 -0
  165. package/dist/components/feedback/toast/components/toast-description/ToastDescription.js.map +1 -1
  166. package/dist/components/feedback/toast/components/toast-icon/ToastIcon.cjs.map +1 -1
  167. package/dist/components/feedback/toast/components/toast-icon/ToastIcon.d.ts +5 -0
  168. package/dist/components/feedback/toast/components/toast-icon/ToastIcon.js.map +1 -1
  169. package/dist/components/feedback/toast/components/toast-icon/styles/ToastIcon.css.cjs +1 -1
  170. package/dist/components/feedback/toast/components/toast-icon/styles/ToastIcon.css.js +1 -1
  171. package/dist/components/feedback/toast/components/toast-title/ToastTitle.cjs.map +1 -1
  172. package/dist/components/feedback/toast/components/toast-title/ToastTitle.d.ts +4 -0
  173. package/dist/components/feedback/toast/components/toast-title/ToastTitle.js.map +1 -1
  174. package/dist/components/feedback/toast/components/toast-title/styles/ToastTitle.css.cjs +1 -1
  175. package/dist/components/feedback/toast/components/toast-title/styles/ToastTitle.css.js +1 -1
  176. package/dist/components/feedback/toast/styles/Toast.css.cjs +1 -1
  177. package/dist/components/feedback/toast/styles/Toast.css.js +1 -1
  178. package/dist/components/forms/_shared/components/helper-text/HelperText.css.cjs +1 -1
  179. package/dist/components/forms/_shared/components/helper-text/HelperText.css.js +1 -1
  180. package/dist/components/forms/_shared/styles/checkboxVisual.css.cjs +1 -1
  181. package/dist/components/forms/_shared/styles/checkboxVisual.css.js +1 -1
  182. package/dist/components/forms/_shared/styles/radioVisual.css.cjs +1 -1
  183. package/dist/components/forms/_shared/styles/radioVisual.css.js +1 -1
  184. package/dist/components/forms/autocomplete/Autocomplete.cjs +1 -1
  185. package/dist/components/forms/autocomplete/Autocomplete.js +1 -1
  186. package/dist/components/forms/autocomplete/components/autocomplete-content/styles/AutocompleteContent.css.cjs +1 -1
  187. package/dist/components/forms/autocomplete/components/autocomplete-content/styles/AutocompleteContent.css.js +1 -1
  188. package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.cjs +1 -1
  189. package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.js +1 -1
  190. package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.cjs +1 -1
  191. package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.js +1 -1
  192. package/dist/components/forms/autocomplete/components/autocomplete-input/styles/AutocompleteInput.css.cjs +1 -1
  193. package/dist/components/forms/autocomplete/components/autocomplete-input/styles/AutocompleteInput.css.js +1 -1
  194. package/dist/components/forms/autocomplete/components/autocomplete-item/styles/AutocompleteItem.css.cjs +1 -1
  195. package/dist/components/forms/autocomplete/components/autocomplete-item/styles/AutocompleteItem.css.js +1 -1
  196. package/dist/components/forms/autocomplete/components/autocomplete-separator/styles/AutocompleteSeparator.css.cjs +1 -1
  197. package/dist/components/forms/autocomplete/components/autocomplete-separator/styles/AutocompleteSeparator.css.js +1 -1
  198. package/dist/components/forms/autocomplete/components/autocomplete-trigger/styles/AutocompleteTrigger.css.cjs +1 -1
  199. package/dist/components/forms/autocomplete/components/autocomplete-trigger/styles/AutocompleteTrigger.css.js +1 -1
  200. package/dist/components/forms/autocomplete/styles/Autocomplete.css.cjs +1 -1
  201. package/dist/components/forms/autocomplete/styles/Autocomplete.css.js +1 -1
  202. package/dist/components/forms/calendar/Calendar.cjs +1 -1
  203. package/dist/components/forms/calendar/Calendar.js +1 -1
  204. package/dist/components/forms/calendar/components/calendar-caption/styles/CalendarCaption.css.cjs +1 -1
  205. package/dist/components/forms/calendar/components/calendar-caption/styles/CalendarCaption.css.js +1 -1
  206. package/dist/components/forms/calendar/components/calendar-month-view/components/calendar-month-button/CalendarMonthButton.cjs +1 -1
  207. package/dist/components/forms/calendar/components/calendar-month-view/components/calendar-month-button/CalendarMonthButton.js +1 -1
  208. package/dist/components/forms/calendar/components/calendar-month-view/styles/CalendarMonthView.css.cjs +1 -1
  209. package/dist/components/forms/calendar/components/calendar-month-view/styles/CalendarMonthView.css.js +1 -1
  210. package/dist/components/forms/calendar/components/calendar-year-view/components/calendar-year-button/CalendarYearButton.cjs +1 -1
  211. package/dist/components/forms/calendar/components/calendar-year-view/components/calendar-year-button/CalendarYearButton.js +1 -1
  212. package/dist/components/forms/calendar/components/calendar-year-view/styles/CalendarYearView.css.cjs +1 -1
  213. package/dist/components/forms/calendar/components/calendar-year-view/styles/CalendarYearView.css.js +1 -1
  214. package/dist/components/forms/calendar/styles/calendarDayButton.css.cjs +1 -1
  215. package/dist/components/forms/calendar/styles/calendarDayButton.css.js +1 -1
  216. package/dist/components/forms/calendar/styles/calendarGrid.css.cjs +1 -1
  217. package/dist/components/forms/calendar/styles/calendarGrid.css.js +1 -1
  218. package/dist/components/forms/calendar/styles/calendarRoot.css.cjs +1 -1
  219. package/dist/components/forms/calendar/styles/calendarRoot.css.js +1 -1
  220. package/dist/components/forms/checkbox/styles/Checkbox.css.cjs +1 -1
  221. package/dist/components/forms/checkbox/styles/Checkbox.css.js +1 -1
  222. package/dist/components/forms/date-picker/DatePicker.cjs +1 -1
  223. package/dist/components/forms/date-picker/DatePicker.js +1 -1
  224. package/dist/components/forms/date-picker/styles/DatePicker.css.cjs +1 -1
  225. package/dist/components/forms/date-picker/styles/DatePicker.css.js +1 -1
  226. package/dist/components/forms/number-field/NumberField.cjs +1 -1
  227. package/dist/components/forms/number-field/NumberField.js +1 -1
  228. package/dist/components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.cjs +1 -1
  229. package/dist/components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.js +1 -1
  230. package/dist/components/forms/number-field/components/number-field-steppers/styles/NumberFieldSteppers.css.cjs +1 -1
  231. package/dist/components/forms/number-field/components/number-field-steppers/styles/NumberFieldSteppers.css.js +1 -1
  232. package/dist/components/forms/number-field/styles/NumberField.css.cjs +1 -1
  233. package/dist/components/forms/number-field/styles/NumberField.css.js +1 -1
  234. package/dist/components/forms/radio-group/components/radio-item/styles/RadioItem.css.cjs +1 -1
  235. package/dist/components/forms/radio-group/components/radio-item/styles/RadioItem.css.js +1 -1
  236. package/dist/components/forms/rich-text-editor/RichTextEditor.cjs +1 -1
  237. package/dist/components/forms/rich-text-editor/RichTextEditor.cjs.map +1 -1
  238. package/dist/components/forms/rich-text-editor/RichTextEditor.d.ts +12 -0
  239. package/dist/components/forms/rich-text-editor/RichTextEditor.js +1 -1
  240. package/dist/components/forms/rich-text-editor/RichTextEditor.js.map +1 -1
  241. package/dist/components/forms/rich-text-editor/RichTextEditorField.cjs +1 -1
  242. package/dist/components/forms/rich-text-editor/RichTextEditorField.js +1 -1
  243. package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.cjs +1 -1
  244. package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.cjs.map +1 -1
  245. package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.d.ts +5 -0
  246. package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.js +1 -1
  247. package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.js.map +1 -1
  248. package/dist/components/forms/rich-text-editor/components/alignment-group/styles/AlignmentGroup.css.cjs +1 -1
  249. package/dist/components/forms/rich-text-editor/components/alignment-group/styles/AlignmentGroup.css.js +1 -1
  250. package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.cjs +1 -1
  251. package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.cjs.map +1 -1
  252. package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.d.ts +5 -0
  253. package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.js +1 -1
  254. package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.js.map +1 -1
  255. package/dist/components/forms/rich-text-editor/components/block-format-group/styles/BlockFormatGroup.css.cjs +1 -1
  256. package/dist/components/forms/rich-text-editor/components/block-format-group/styles/BlockFormatGroup.css.js +1 -1
  257. package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.cjs +1 -1
  258. package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.cjs.map +1 -1
  259. package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.d.ts +5 -0
  260. package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.js +1 -1
  261. package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.js.map +1 -1
  262. package/dist/components/forms/rich-text-editor/components/helper-text/HelperText.cjs.map +1 -1
  263. package/dist/components/forms/rich-text-editor/components/helper-text/HelperText.d.ts +5 -0
  264. package/dist/components/forms/rich-text-editor/components/helper-text/HelperText.js.map +1 -1
  265. package/dist/components/forms/rich-text-editor/components/history-group/Redo.cjs +1 -1
  266. package/dist/components/forms/rich-text-editor/components/history-group/Redo.js +1 -1
  267. package/dist/components/forms/rich-text-editor/components/history-group/Undo.cjs +1 -1
  268. package/dist/components/forms/rich-text-editor/components/history-group/Undo.js +1 -1
  269. package/dist/components/forms/rich-text-editor/components/history-group/styles/HistoryGroup.css.cjs +1 -1
  270. package/dist/components/forms/rich-text-editor/components/history-group/styles/HistoryGroup.css.js +1 -1
  271. package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.cjs +1 -1
  272. package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.cjs.map +1 -1
  273. package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.d.ts +7 -0
  274. package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.js +1 -1
  275. package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.js.map +1 -1
  276. package/dist/components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.cjs +1 -1
  277. package/dist/components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.js +1 -1
  278. package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.cjs +1 -1
  279. package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.cjs.map +1 -1
  280. package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.d.ts +4 -0
  281. package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.js +1 -1
  282. package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.js.map +1 -1
  283. package/dist/components/forms/rich-text-editor/components/link-group/SetLink.cjs +1 -1
  284. package/dist/components/forms/rich-text-editor/components/link-group/SetLink.cjs.map +1 -1
  285. package/dist/components/forms/rich-text-editor/components/link-group/SetLink.d.ts +5 -0
  286. package/dist/components/forms/rich-text-editor/components/link-group/SetLink.js +1 -1
  287. package/dist/components/forms/rich-text-editor/components/link-group/SetLink.js.map +1 -1
  288. package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.cjs +1 -1
  289. package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.cjs.map +1 -1
  290. package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.d.ts +6 -0
  291. package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.js +1 -1
  292. package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.js.map +1 -1
  293. package/dist/components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.cjs +1 -1
  294. package/dist/components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.js +1 -1
  295. package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.cjs +1 -1
  296. package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.cjs.map +1 -1
  297. package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.d.ts +5 -0
  298. package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.js +1 -1
  299. package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.js.map +1 -1
  300. package/dist/components/forms/rich-text-editor/components/lists-group/styles/ListsGroup.css.cjs +1 -1
  301. package/dist/components/forms/rich-text-editor/components/lists-group/styles/ListsGroup.css.js +1 -1
  302. package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.cjs +1 -1
  303. package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.cjs.map +1 -1
  304. package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.d.ts +5 -0
  305. package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.js +1 -1
  306. package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.js.map +1 -1
  307. package/dist/components/forms/rich-text-editor/components/rich-text-editor-form-field/styles/RichTextEditorFormField.css.cjs +1 -1
  308. package/dist/components/forms/rich-text-editor/components/rich-text-editor-form-field/styles/RichTextEditorFormField.css.js +1 -1
  309. package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/RichTextEditorLabel.cjs.map +1 -1
  310. package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/RichTextEditorLabel.d.ts +4 -0
  311. package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/RichTextEditorLabel.js.map +1 -1
  312. package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/styles/RichTextEditorLabel.css.cjs +1 -1
  313. package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/styles/RichTextEditorLabel.css.js +1 -1
  314. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextAppearanceGroup.cjs.map +1 -1
  315. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextAppearanceGroup.d.ts +8 -0
  316. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextAppearanceGroup.js.map +1 -1
  317. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.cjs +1 -1
  318. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.cjs.map +1 -1
  319. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.d.ts +6 -0
  320. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.js +1 -1
  321. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.js.map +1 -1
  322. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextSizeMenu.cjs.map +1 -1
  323. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextSizeMenu.d.ts +6 -0
  324. package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextSizeMenu.js.map +1 -1
  325. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextAppearanceGroup.css.cjs +1 -1
  326. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextAppearanceGroup.css.js +1 -1
  327. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextColorMenu.css.cjs +1 -1
  328. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextColorMenu.css.js +1 -1
  329. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextSizeMenu.css.cjs +1 -1
  330. package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextSizeMenu.css.js +1 -1
  331. package/dist/components/forms/rich-text-editor/components/text-style-group/TextStyleAction.cjs +1 -1
  332. package/dist/components/forms/rich-text-editor/components/text-style-group/TextStyleAction.js +1 -1
  333. package/dist/components/forms/rich-text-editor/components/text-style-group/styles/TextStyleGroup.css.cjs +1 -1
  334. package/dist/components/forms/rich-text-editor/components/text-style-group/styles/TextStyleGroup.css.js +1 -1
  335. package/dist/components/forms/rich-text-editor/components/toolbar/Toolbar.cjs.map +1 -1
  336. package/dist/components/forms/rich-text-editor/components/toolbar/Toolbar.d.ts +5 -0
  337. package/dist/components/forms/rich-text-editor/components/toolbar/Toolbar.js.map +1 -1
  338. package/dist/components/forms/rich-text-editor/components/toolbar/styles/Toolbar.css.cjs +1 -1
  339. package/dist/components/forms/rich-text-editor/components/toolbar/styles/Toolbar.css.js +1 -1
  340. package/dist/components/forms/rich-text-editor/components/toolbar-group/ToolbarGroup.cjs.map +1 -1
  341. package/dist/components/forms/rich-text-editor/components/toolbar-group/ToolbarGroup.d.ts +4 -0
  342. package/dist/components/forms/rich-text-editor/components/toolbar-group/ToolbarGroup.js.map +1 -1
  343. package/dist/components/forms/rich-text-editor/components/toolbar-group/styles/ToolbarGroup.css.cjs +1 -1
  344. package/dist/components/forms/rich-text-editor/components/toolbar-group/styles/ToolbarGroup.css.js +1 -1
  345. package/dist/components/forms/rich-text-editor/components/toolbar-separator/styles/ToolbarSeparator.css.cjs +1 -1
  346. package/dist/components/forms/rich-text-editor/components/toolbar-separator/styles/ToolbarSeparator.css.js +1 -1
  347. package/dist/components/forms/rich-text-editor/styles/RichTextEditor.css.cjs +1 -1
  348. package/dist/components/forms/rich-text-editor/styles/RichTextEditor.css.js +1 -1
  349. package/dist/components/forms/select/Select.cjs +1 -1
  350. package/dist/components/forms/select/Select.js +1 -1
  351. package/dist/components/forms/select/components/select-content/styles/SelectContent.css.cjs +1 -1
  352. package/dist/components/forms/select/components/select-content/styles/SelectContent.css.js +1 -1
  353. package/dist/components/forms/select/components/select-field/SelectField.cjs +1 -1
  354. package/dist/components/forms/select/components/select-field/SelectField.js +1 -1
  355. package/dist/components/forms/select/components/select-item/styles/SelectItem.css.cjs +1 -1
  356. package/dist/components/forms/select/components/select-item/styles/SelectItem.css.js +1 -1
  357. package/dist/components/forms/select/components/select-label/styles/SelectLabel.css.cjs +1 -1
  358. package/dist/components/forms/select/components/select-label/styles/SelectLabel.css.js +1 -1
  359. package/dist/components/forms/select/components/select-separator/styles/SelectSeparator.css.cjs +1 -1
  360. package/dist/components/forms/select/components/select-separator/styles/SelectSeparator.css.js +1 -1
  361. package/dist/components/forms/select/components/select-trigger/SelectTrigger.cjs +1 -1
  362. package/dist/components/forms/select/components/select-trigger/SelectTrigger.js +1 -1
  363. package/dist/components/forms/select/components/select-trigger/styles/SelectTrigger.css.cjs +1 -1
  364. package/dist/components/forms/select/components/select-trigger/styles/SelectTrigger.css.js +1 -1
  365. package/dist/components/forms/select/styles/Select.css.cjs +1 -1
  366. package/dist/components/forms/select/styles/Select.css.js +1 -1
  367. package/dist/components/forms/slider/Slider.cjs.map +1 -1
  368. package/dist/components/forms/slider/Slider.d.ts +5 -0
  369. package/dist/components/forms/slider/Slider.js.map +1 -1
  370. package/dist/components/forms/slider/components/slider-header/styles/SliderHeader.css.cjs +1 -1
  371. package/dist/components/forms/slider/components/slider-header/styles/SliderHeader.css.js +1 -1
  372. package/dist/components/forms/slider/components/slider-track/styles/SliderTrack.css.cjs +1 -1
  373. package/dist/components/forms/slider/components/slider-track/styles/SliderTrack.css.js +1 -1
  374. package/dist/components/forms/slider/styles/Slider.css.cjs +1 -1
  375. package/dist/components/forms/slider/styles/Slider.css.js +1 -1
  376. package/dist/components/forms/switch/styles/Switch.css.cjs +1 -1
  377. package/dist/components/forms/switch/styles/Switch.css.js +1 -1
  378. package/dist/components/forms/text-area/TextArea.cjs +1 -1
  379. package/dist/components/forms/text-area/TextArea.js +1 -1
  380. package/dist/components/forms/text-area/components/text-area-end-action/styles/TextAreaEndAction.css.cjs +1 -1
  381. package/dist/components/forms/text-area/components/text-area-end-action/styles/TextAreaEndAction.css.js +1 -1
  382. package/dist/components/forms/text-area/components/text-area-label/styles/TextAreaLabel.css.cjs +1 -1
  383. package/dist/components/forms/text-area/components/text-area-label/styles/TextAreaLabel.css.js +1 -1
  384. package/dist/components/forms/text-area/components/text-area-start-icon/styles/TextAreaStartIcon.css.cjs +1 -1
  385. package/dist/components/forms/text-area/components/text-area-start-icon/styles/TextAreaStartIcon.css.js +1 -1
  386. package/dist/components/forms/text-area/styles/TextArea.css.cjs +1 -1
  387. package/dist/components/forms/text-area/styles/TextArea.css.js +1 -1
  388. package/dist/components/forms/text-field/TextField.cjs +1 -1
  389. package/dist/components/forms/text-field/TextField.cjs.map +1 -1
  390. package/dist/components/forms/text-field/TextField.js +73 -69
  391. package/dist/components/forms/text-field/TextField.js.map +1 -1
  392. package/dist/components/forms/text-field/components/text-field-end-action/styles/TextFieldEndAction.css.cjs +1 -1
  393. package/dist/components/forms/text-field/components/text-field-end-action/styles/TextFieldEndAction.css.js +1 -1
  394. package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.cjs +1 -1
  395. package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.cjs.map +1 -1
  396. package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.js +20 -10
  397. package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.js.map +1 -1
  398. package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.cjs +1 -1
  399. package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.d.ts +1 -0
  400. package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.js +3 -3
  401. package/dist/components/forms/text-field/components/text-field-label/types/TextFieldLabel.props.d.ts +1 -0
  402. package/dist/components/forms/text-field/components/text-field-start-icon/styles/TextFieldStartIcon.css.cjs +1 -1
  403. package/dist/components/forms/text-field/components/text-field-start-icon/styles/TextFieldStartIcon.css.js +1 -1
  404. package/dist/components/forms/text-field/styles/TextField.css.cjs +1 -1
  405. package/dist/components/forms/text-field/styles/TextField.css.js +1 -1
  406. package/dist/components/forms/text-field/types/TextField.props.d.ts +3 -1
  407. package/dist/components/foundation/icon/Icon.cjs.map +1 -1
  408. package/dist/components/foundation/icon/Icon.d.ts +5 -0
  409. package/dist/components/foundation/icon/Icon.js.map +1 -1
  410. package/dist/components/foundation/icon/styles/Icon.css.cjs +1 -1
  411. package/dist/components/foundation/icon/styles/Icon.css.js +1 -1
  412. package/dist/components/foundation/typography/Typography.cjs.map +1 -1
  413. package/dist/components/foundation/typography/Typography.d.ts +13 -0
  414. package/dist/components/foundation/typography/Typography.js.map +1 -1
  415. package/dist/components/foundation/typography/styles/Typography.css.cjs +1 -1
  416. package/dist/components/foundation/typography/styles/Typography.css.js +1 -1
  417. package/dist/components/layout/box/Box.cjs.map +1 -1
  418. package/dist/components/layout/box/Box.d.ts +6 -0
  419. package/dist/components/layout/box/Box.js.map +1 -1
  420. package/dist/components/layout/box/styles/Box.css.cjs +1 -1
  421. package/dist/components/layout/box/styles/Box.css.js +1 -1
  422. package/dist/components/layout/fieldset/styles/Fieldset.css.cjs +1 -1
  423. package/dist/components/layout/fieldset/styles/Fieldset.css.js +1 -1
  424. package/dist/components/layout/flex/Flex.cjs.map +1 -1
  425. package/dist/components/layout/flex/Flex.d.ts +5 -0
  426. package/dist/components/layout/flex/Flex.js.map +1 -1
  427. package/dist/components/layout/flex/styles/Flex.css.cjs +1 -1
  428. package/dist/components/layout/flex/styles/Flex.css.js +1 -1
  429. package/dist/components/layout/form/styles/Form.css.cjs +1 -1
  430. package/dist/components/layout/form/styles/Form.css.js +1 -1
  431. package/dist/components/layout/grid/Grid.cjs.map +1 -1
  432. package/dist/components/layout/grid/Grid.d.ts +5 -0
  433. package/dist/components/layout/grid/Grid.js.map +1 -1
  434. package/dist/components/layout/grid/styles/Grid.css.cjs +1 -1
  435. package/dist/components/layout/grid/styles/Grid.css.js +1 -1
  436. package/dist/components/layout/image/Image.cjs.map +1 -1
  437. package/dist/components/layout/image/Image.d.ts +6 -0
  438. package/dist/components/layout/image/Image.js.map +1 -1
  439. package/dist/components/layout/image/styles/Image.css.cjs +1 -1
  440. package/dist/components/layout/image/styles/Image.css.js +1 -1
  441. package/dist/components/layout/inset/Inset.cjs.map +1 -1
  442. package/dist/components/layout/inset/Inset.d.ts +7 -0
  443. package/dist/components/layout/inset/Inset.js.map +1 -1
  444. package/dist/components/layout/inset/styles/Inset.css.cjs +1 -1
  445. package/dist/components/layout/inset/styles/Inset.css.js +1 -1
  446. package/dist/components/layout/legend/styles/Legend.css.cjs +1 -1
  447. package/dist/components/layout/legend/styles/Legend.css.js +1 -1
  448. package/dist/components/layout/separator/styles/Separator.css.cjs +1 -1
  449. package/dist/components/layout/separator/styles/Separator.css.js +1 -1
  450. package/dist/components/navigation/breadcrumbs/Breadcrumbs.cjs.map +1 -1
  451. package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +8 -0
  452. package/dist/components/navigation/breadcrumbs/Breadcrumbs.js.map +1 -1
  453. package/dist/components/navigation/breadcrumbs/components/breadcrumbs-item/BreadcrumbsItem.cjs.map +1 -1
  454. package/dist/components/navigation/breadcrumbs/components/breadcrumbs-item/BreadcrumbsItem.d.ts +5 -0
  455. package/dist/components/navigation/breadcrumbs/components/breadcrumbs-item/BreadcrumbsItem.js.map +1 -1
  456. package/dist/components/navigation/breadcrumbs/styles/Breadcrumbs.css.cjs +1 -1
  457. package/dist/components/navigation/breadcrumbs/styles/Breadcrumbs.css.js +1 -1
  458. package/dist/components/navigation/link/Link.cjs +1 -1
  459. package/dist/components/navigation/link/Link.cjs.map +1 -1
  460. package/dist/components/navigation/link/Link.d.ts +5 -0
  461. package/dist/components/navigation/link/Link.js +19 -19
  462. package/dist/components/navigation/link/Link.js.map +1 -1
  463. package/dist/components/navigation/link/styles/Link.css.cjs +1 -1
  464. package/dist/components/navigation/link/styles/Link.css.js +1 -1
  465. package/dist/components/navigation/link/types/Link.props.d.ts +1 -1
  466. package/dist/components/navigation/pagination/Pagination.cjs.map +1 -1
  467. package/dist/components/navigation/pagination/Pagination.d.ts +5 -0
  468. package/dist/components/navigation/pagination/Pagination.js.map +1 -1
  469. package/dist/components/navigation/pagination/styles/Pagination.css.cjs +1 -1
  470. package/dist/components/navigation/pagination/styles/Pagination.css.js +1 -1
  471. package/dist/components/navigation/step-indicator/StepIndicator.cjs.map +1 -1
  472. package/dist/components/navigation/step-indicator/StepIndicator.d.ts +7 -0
  473. package/dist/components/navigation/step-indicator/StepIndicator.js.map +1 -1
  474. package/dist/components/navigation/step-indicator/components/step-indicator-item/StepIndicatorItem.cjs.map +1 -1
  475. package/dist/components/navigation/step-indicator/components/step-indicator-item/StepIndicatorItem.d.ts +5 -0
  476. package/dist/components/navigation/step-indicator/components/step-indicator-item/StepIndicatorItem.js.map +1 -1
  477. package/dist/components/navigation/step-indicator/components/step-indicator-item/styles/StepIndicatorItem.css.cjs +1 -1
  478. package/dist/components/navigation/step-indicator/components/step-indicator-item/styles/StepIndicatorItem.css.js +1 -1
  479. package/dist/components/navigation/step-indicator/styles/StepIndicator.css.cjs +1 -1
  480. package/dist/components/navigation/step-indicator/styles/StepIndicator.css.js +1 -1
  481. package/dist/components/navigation/stepper/Stepper.cjs.map +1 -1
  482. package/dist/components/navigation/stepper/Stepper.d.ts +8 -0
  483. package/dist/components/navigation/stepper/Stepper.js.map +1 -1
  484. package/dist/components/navigation/stepper/components/stepper-item/StepperItem.cjs.map +1 -1
  485. package/dist/components/navigation/stepper/components/stepper-item/StepperItem.d.ts +5 -0
  486. package/dist/components/navigation/stepper/components/stepper-item/StepperItem.js.map +1 -1
  487. package/dist/components/navigation/stepper/styles/Stepper.css.cjs +1 -1
  488. package/dist/components/navigation/stepper/styles/Stepper.css.js +1 -1
  489. package/dist/components/navigation/tabs/components/tabs-content/styles/TabsContent.css.cjs +1 -1
  490. package/dist/components/navigation/tabs/components/tabs-content/styles/TabsContent.css.js +1 -1
  491. package/dist/components/navigation/tabs/components/tabs-list/styles/TabsList.css.cjs +1 -1
  492. package/dist/components/navigation/tabs/components/tabs-list/styles/TabsList.css.js +1 -1
  493. package/dist/components/navigation/tabs/components/tabs-trigger/styles/TabsTrigger.css.cjs +1 -1
  494. package/dist/components/navigation/tabs/components/tabs-trigger/styles/TabsTrigger.css.js +1 -1
  495. package/dist/components/overlay/_shared/components/overlay-backdrop/OverlayBackdrop.cjs.map +1 -1
  496. package/dist/components/overlay/_shared/components/overlay-backdrop/OverlayBackdrop.d.ts +4 -0
  497. package/dist/components/overlay/_shared/components/overlay-backdrop/OverlayBackdrop.js.map +1 -1
  498. package/dist/components/overlay/_shared/styles/OverlayBackdrop.css.cjs +1 -1
  499. package/dist/components/overlay/_shared/styles/OverlayBackdrop.css.js +1 -1
  500. package/dist/components/overlay/alert-dialog/AlertDialog.cjs +1 -1
  501. package/dist/components/overlay/alert-dialog/AlertDialog.js +1 -1
  502. package/dist/components/overlay/alert-dialog/components/alert-dialog-action/AlertDialogAction.cjs.map +1 -1
  503. package/dist/components/overlay/alert-dialog/components/alert-dialog-action/AlertDialogAction.d.ts +5 -0
  504. package/dist/components/overlay/alert-dialog/components/alert-dialog-action/AlertDialogAction.js.map +1 -1
  505. package/dist/components/overlay/alert-dialog/components/alert-dialog-cancel/AlertDialogCancel.cjs.map +1 -1
  506. package/dist/components/overlay/alert-dialog/components/alert-dialog-cancel/AlertDialogCancel.d.ts +5 -0
  507. package/dist/components/overlay/alert-dialog/components/alert-dialog-cancel/AlertDialogCancel.js.map +1 -1
  508. package/dist/components/overlay/alert-dialog/styles/AlertDialog.css.cjs +1 -1
  509. package/dist/components/overlay/alert-dialog/styles/AlertDialog.css.js +1 -1
  510. package/dist/components/overlay/command/components/command-empty/styles/CommandEmpty.css.cjs +1 -1
  511. package/dist/components/overlay/command/components/command-empty/styles/CommandEmpty.css.js +1 -1
  512. package/dist/components/overlay/command/components/command-group/styles/CommandGroup.css.cjs +1 -1
  513. package/dist/components/overlay/command/components/command-group/styles/CommandGroup.css.js +1 -1
  514. package/dist/components/overlay/command/components/command-input/styles/CommandInput.css.cjs +1 -1
  515. package/dist/components/overlay/command/components/command-input/styles/CommandInput.css.js +1 -1
  516. package/dist/components/overlay/command/components/command-item/styles/CommandItem.css.cjs +1 -1
  517. package/dist/components/overlay/command/components/command-item/styles/CommandItem.css.js +1 -1
  518. package/dist/components/overlay/command/components/command-list/styles/CommandList.css.cjs +1 -1
  519. package/dist/components/overlay/command/components/command-list/styles/CommandList.css.js +1 -1
  520. package/dist/components/overlay/command/components/command-separator/styles/CommandSeparator.css.cjs +1 -1
  521. package/dist/components/overlay/command/components/command-separator/styles/CommandSeparator.css.js +1 -1
  522. package/dist/components/overlay/command/styles/Command.css.cjs +1 -1
  523. package/dist/components/overlay/command/styles/Command.css.js +1 -1
  524. package/dist/components/overlay/context-menu/ContextMenu.cjs.map +1 -1
  525. package/dist/components/overlay/context-menu/ContextMenu.d.ts +8 -0
  526. package/dist/components/overlay/context-menu/ContextMenu.js.map +1 -1
  527. package/dist/components/overlay/context-menu/components/content/styles/ContextMenuContent.css.cjs +1 -1
  528. package/dist/components/overlay/context-menu/components/content/styles/ContextMenuContent.css.js +1 -1
  529. package/dist/components/overlay/dialog/components/dialog-header/styles/DialogHeader.css.cjs +1 -1
  530. package/dist/components/overlay/dialog/components/dialog-header/styles/DialogHeader.css.js +1 -1
  531. package/dist/components/overlay/dialog/styles/Dialog.css.cjs +1 -1
  532. package/dist/components/overlay/dialog/styles/Dialog.css.js +1 -1
  533. package/dist/components/overlay/drawer/components/items/_shared/components/drawer-item-content/DrawerItemContent.cjs +1 -1
  534. package/dist/components/overlay/drawer/components/items/_shared/components/drawer-item-content/DrawerItemContent.js +1 -1
  535. package/dist/components/overlay/drawer/components/items/_shared/styles/DrawerItemShared.css.cjs +1 -1
  536. package/dist/components/overlay/drawer/components/items/_shared/styles/DrawerItemShared.css.js +1 -1
  537. package/dist/components/overlay/drawer/components/items/drawer-action-item/DrawerActionItem.cjs +1 -1
  538. package/dist/components/overlay/drawer/components/items/drawer-action-item/DrawerActionItem.js +1 -1
  539. package/dist/components/overlay/drawer/components/items/drawer-nav-item/DrawerNavItem.cjs +1 -1
  540. package/dist/components/overlay/drawer/components/items/drawer-nav-item/DrawerNavItem.js +1 -1
  541. package/dist/components/overlay/drawer/components/items/drawer-section-item/DrawerSectionItem.cjs +1 -1
  542. package/dist/components/overlay/drawer/components/items/drawer-section-item/DrawerSectionItem.js +1 -1
  543. package/dist/components/overlay/drawer/components/items/drawer-section-item/styles/DrawerSectionItem.css.cjs +1 -1
  544. package/dist/components/overlay/drawer/components/items/drawer-section-item/styles/DrawerSectionItem.css.js +1 -1
  545. package/dist/components/overlay/drawer/components/variants/drawer-inline/styles/DrawerInline.css.cjs +1 -1
  546. package/dist/components/overlay/drawer/components/variants/drawer-inline/styles/DrawerInline.css.js +1 -1
  547. package/dist/components/overlay/drawer/components/variants/drawer-mini/styles/DrawerMini.css.cjs +1 -1
  548. package/dist/components/overlay/drawer/components/variants/drawer-mini/styles/DrawerMini.css.js +1 -1
  549. package/dist/components/overlay/drawer/components/variants/drawer-portal/styles/DrawerPortal.css.cjs +1 -1
  550. package/dist/components/overlay/drawer/components/variants/drawer-portal/styles/DrawerPortal.css.js +1 -1
  551. package/dist/components/overlay/drawer/styles/Drawer.css.cjs +1 -1
  552. package/dist/components/overlay/drawer/styles/Drawer.css.js +1 -1
  553. package/dist/components/overlay/dropdown-menu/components/_shared/item.css.cjs +1 -1
  554. package/dist/components/overlay/dropdown-menu/components/_shared/item.css.js +1 -1
  555. package/dist/components/overlay/dropdown-menu/components/content/styles/DropdownMenuContent.css.cjs +1 -1
  556. package/dist/components/overlay/dropdown-menu/components/content/styles/DropdownMenuContent.css.js +1 -1
  557. package/dist/components/overlay/dropdown-menu/components/label/styles/DropdownMenuLabel.css.cjs +1 -1
  558. package/dist/components/overlay/dropdown-menu/components/label/styles/DropdownMenuLabel.css.js +1 -1
  559. package/dist/components/overlay/dropdown-menu/components/shortcut/styles/DropdownMenuShortcut.css.cjs +1 -1
  560. package/dist/components/overlay/dropdown-menu/components/shortcut/styles/DropdownMenuShortcut.css.js +1 -1
  561. package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/styles/DropdownMenuSubContent.css.cjs +1 -1
  562. package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/styles/DropdownMenuSubContent.css.js +1 -1
  563. package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/styles/DropdownMenuSubTrigger.css.cjs +1 -1
  564. package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/styles/DropdownMenuSubTrigger.css.js +1 -1
  565. package/dist/components/overlay/panel/Panel.cjs.map +1 -1
  566. package/dist/components/overlay/panel/Panel.d.ts +8 -0
  567. package/dist/components/overlay/panel/Panel.js.map +1 -1
  568. package/dist/components/overlay/panel/components/panel-content/PanelContent.cjs.map +1 -1
  569. package/dist/components/overlay/panel/components/panel-content/PanelContent.d.ts +6 -0
  570. package/dist/components/overlay/panel/components/panel-content/PanelContent.js.map +1 -1
  571. package/dist/components/overlay/panel/components/panel-header/PanelHeader.cjs.map +1 -1
  572. package/dist/components/overlay/panel/components/panel-header/PanelHeader.d.ts +6 -0
  573. package/dist/components/overlay/panel/components/panel-header/PanelHeader.js.map +1 -1
  574. package/dist/components/overlay/panel/styles/Panel.css.cjs +1 -1
  575. package/dist/components/overlay/panel/styles/Panel.css.js +1 -1
  576. package/dist/components/overlay/popover/components/content/styles/PopoverContent.css.cjs +1 -1
  577. package/dist/components/overlay/popover/components/content/styles/PopoverContent.css.js +1 -1
  578. package/dist/components/overlay/tooltip/Tooltip.cjs.map +1 -1
  579. package/dist/components/overlay/tooltip/Tooltip.d.ts +7 -0
  580. package/dist/components/overlay/tooltip/Tooltip.js.map +1 -1
  581. package/dist/components/overlay/tooltip/styles/Tooltip.css.cjs +1 -1
  582. package/dist/components/overlay/tooltip/styles/Tooltip.css.js +1 -1
  583. package/dist/components/surfaces/accordion/components/accordion-content/styles/AccordionContent.css.cjs +1 -1
  584. package/dist/components/surfaces/accordion/components/accordion-content/styles/AccordionContent.css.js +1 -1
  585. package/dist/components/surfaces/accordion/components/accordion-item/styles/AccordionItem.css.cjs +1 -1
  586. package/dist/components/surfaces/accordion/components/accordion-item/styles/AccordionItem.css.js +1 -1
  587. package/dist/components/surfaces/accordion/components/accordion-trigger/AccordionTrigger.cjs +1 -1
  588. package/dist/components/surfaces/accordion/components/accordion-trigger/AccordionTrigger.js +1 -1
  589. package/dist/components/surfaces/accordion/components/accordion-trigger/styles/AccordionTrigger.css.cjs +1 -1
  590. package/dist/components/surfaces/accordion/components/accordion-trigger/styles/AccordionTrigger.css.js +1 -1
  591. package/dist/components/surfaces/accordion/styles/Accordion.css.cjs +1 -1
  592. package/dist/components/surfaces/accordion/styles/Accordion.css.js +1 -1
  593. package/dist/components/surfaces/card/components/card-header/styles/CardHeader.css.cjs +1 -1
  594. package/dist/components/surfaces/card/components/card-header/styles/CardHeader.css.js +1 -1
  595. package/dist/components/surfaces/card/styles/Card.css.cjs +1 -1
  596. package/dist/components/surfaces/card/styles/Card.css.js +1 -1
  597. package/dist/components/surfaces/collapsible/Collapsible.cjs.map +1 -1
  598. package/dist/components/surfaces/collapsible/Collapsible.d.ts +6 -0
  599. package/dist/components/surfaces/collapsible/Collapsible.js.map +1 -1
  600. package/dist/components/surfaces/collapsible/components/collapsible-panel/CollapsiblePanel.cjs.map +1 -1
  601. package/dist/components/surfaces/collapsible/components/collapsible-panel/CollapsiblePanel.d.ts +5 -0
  602. package/dist/components/surfaces/collapsible/components/collapsible-panel/CollapsiblePanel.js.map +1 -1
  603. package/dist/components/surfaces/collapsible/components/collapsible-panel/styles/CollapsiblePanel.css.cjs +1 -1
  604. package/dist/components/surfaces/collapsible/components/collapsible-panel/styles/CollapsiblePanel.css.js +1 -1
  605. package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.cjs +1 -1
  606. package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.cjs.map +1 -1
  607. package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.d.ts +5 -0
  608. package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.js +1 -1
  609. package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.js.map +1 -1
  610. package/dist/components/surfaces/collapsible/components/collapsible-trigger/styles/CollapsibleTrigger.css.cjs +1 -1
  611. package/dist/components/surfaces/collapsible/components/collapsible-trigger/styles/CollapsibleTrigger.css.js +1 -1
  612. package/dist/components/surfaces/collapsible/styles/Collapsible.css.cjs +1 -1
  613. package/dist/components/surfaces/collapsible/styles/Collapsible.css.js +1 -1
  614. package/dist/components/theme-provider/ThemeProvider.cjs +1 -1
  615. package/dist/components/theme-provider/ThemeProvider.js +1 -1
  616. package/dist/constants/animations/fade/fadeIn.css.cjs +1 -1
  617. package/dist/constants/animations/fade/fadeIn.css.js +1 -1
  618. package/dist/constants/animations/fade/fadeOut.css.cjs +1 -1
  619. package/dist/constants/animations/fade/fadeOut.css.js +1 -1
  620. package/dist/constants/animations/pulse/pulseAnimation.css.cjs +1 -1
  621. package/dist/constants/animations/pulse/pulseAnimation.css.js +1 -1
  622. package/dist/constants/animations/slide/slideDownIn.css.cjs +1 -1
  623. package/dist/constants/animations/slide/slideDownIn.css.js +1 -1
  624. package/dist/constants/animations/slide/slideDownOut.css.cjs +1 -1
  625. package/dist/constants/animations/slide/slideDownOut.css.js +1 -1
  626. package/dist/constants/animations/slide/slideLeftIn.css.cjs +1 -1
  627. package/dist/constants/animations/slide/slideLeftIn.css.js +1 -1
  628. package/dist/constants/animations/slide/slideLeftOut.css.cjs +1 -1
  629. package/dist/constants/animations/slide/slideLeftOut.css.js +1 -1
  630. package/dist/constants/animations/slide/slideRightIn.css.cjs +1 -1
  631. package/dist/constants/animations/slide/slideRightIn.css.js +1 -1
  632. package/dist/constants/animations/slide/slideRightOut.css.cjs +1 -1
  633. package/dist/constants/animations/slide/slideRightOut.css.js +1 -1
  634. package/dist/constants/animations/slide/slideUpIn.css.cjs +1 -1
  635. package/dist/constants/animations/slide/slideUpIn.css.js +1 -1
  636. package/dist/constants/animations/slide/slideUpOut.css.cjs +1 -1
  637. package/dist/constants/animations/slide/slideUpOut.css.js +1 -1
  638. package/dist/constants/animations/spin/spinAnimation.css.cjs +1 -1
  639. package/dist/constants/animations/spin/spinAnimation.css.js +1 -1
  640. package/dist/hooks/use-notification/useNotification.hook.cjs +1 -1
  641. package/dist/hooks/use-notification/useNotification.hook.js +1 -1
  642. package/dist/hooks/use-toast/useToast.hook.cjs +1 -1
  643. package/dist/hooks/use-toast/useToast.hook.js +1 -1
  644. package/dist/index.cjs +1 -1
  645. package/dist/index.js +1 -1
  646. package/dist/styles.css +141 -141
  647. package/dist/theme/colors/light.cjs +1 -1
  648. package/dist/theme/colors/light.cjs.map +1 -1
  649. package/dist/theme/colors/light.d.ts +3 -3
  650. package/dist/theme/colors/light.js +3 -3
  651. package/dist/theme/colors/light.js.map +1 -1
  652. package/dist/theme/tokens/index.d.ts +3 -3
  653. package/dist/ui-kit.css +1 -1
  654. package/dist/ui-kit10.css +1 -1
  655. package/dist/ui-kit100.css +1 -1
  656. package/dist/ui-kit101.css +1 -1
  657. package/dist/ui-kit102.css +1 -1
  658. package/dist/ui-kit103.css +1 -1
  659. package/dist/ui-kit104.css +1 -1
  660. package/dist/ui-kit105.css +1 -1
  661. package/dist/ui-kit106.css +1 -1
  662. package/dist/ui-kit107.css +1 -1
  663. package/dist/ui-kit108.css +1 -1
  664. package/dist/ui-kit109.css +1 -1
  665. package/dist/ui-kit11.css +1 -1
  666. package/dist/ui-kit110.css +1 -1
  667. package/dist/ui-kit111.css +1 -1
  668. package/dist/ui-kit112.css +1 -1
  669. package/dist/ui-kit113.css +1 -1
  670. package/dist/ui-kit114.css +1 -1
  671. package/dist/ui-kit115.css +1 -1
  672. package/dist/ui-kit116.css +1 -1
  673. package/dist/ui-kit117.css +1 -1
  674. package/dist/ui-kit118.css +1 -1
  675. package/dist/ui-kit119.css +1 -1
  676. package/dist/ui-kit12.css +1 -1
  677. package/dist/ui-kit120.css +1 -1
  678. package/dist/ui-kit121.css +1 -1
  679. package/dist/ui-kit122.css +1 -1
  680. package/dist/ui-kit123.css +1 -1
  681. package/dist/ui-kit124.css +1 -1
  682. package/dist/ui-kit125.css +1 -1
  683. package/dist/ui-kit126.css +1 -1
  684. package/dist/ui-kit127.css +1 -1
  685. package/dist/ui-kit128.css +1 -1
  686. package/dist/ui-kit129.css +1 -1
  687. package/dist/ui-kit13.css +1 -1
  688. package/dist/ui-kit130.css +1 -1
  689. package/dist/ui-kit131.css +1 -1
  690. package/dist/ui-kit132.css +1 -1
  691. package/dist/ui-kit133.css +1 -1
  692. package/dist/ui-kit134.css +1 -1
  693. package/dist/ui-kit135.css +1 -1
  694. package/dist/ui-kit136.css +1 -1
  695. package/dist/ui-kit137.css +1 -1
  696. package/dist/ui-kit138.css +1 -1
  697. package/dist/ui-kit139.css +1 -1
  698. package/dist/ui-kit14.css +1 -1
  699. package/dist/ui-kit140.css +1 -1
  700. package/dist/ui-kit141.css +1 -1
  701. package/dist/ui-kit143.css +1 -1
  702. package/dist/ui-kit145.css +1 -1
  703. package/dist/ui-kit146.css +1 -1
  704. package/dist/ui-kit147.css +1 -1
  705. package/dist/ui-kit148.css +1 -1
  706. package/dist/ui-kit149.css +1 -1
  707. package/dist/ui-kit15.css +1 -1
  708. package/dist/ui-kit150.css +1 -1
  709. package/dist/ui-kit151.css +1 -1
  710. package/dist/ui-kit153.css +1 -1
  711. package/dist/ui-kit154.css +1 -1
  712. package/dist/ui-kit155.css +1 -1
  713. package/dist/ui-kit156.css +1 -1
  714. package/dist/ui-kit157.css +1 -1
  715. package/dist/ui-kit16.css +1 -1
  716. package/dist/ui-kit17.css +1 -1
  717. package/dist/ui-kit18.css +1 -1
  718. package/dist/ui-kit19.css +1 -1
  719. package/dist/ui-kit20.css +1 -1
  720. package/dist/ui-kit21.css +1 -1
  721. package/dist/ui-kit22.css +1 -1
  722. package/dist/ui-kit23.css +1 -1
  723. package/dist/ui-kit24.css +1 -1
  724. package/dist/ui-kit25.css +1 -1
  725. package/dist/ui-kit26.css +1 -1
  726. package/dist/ui-kit27.css +1 -1
  727. package/dist/ui-kit28.css +1 -1
  728. package/dist/ui-kit29.css +1 -1
  729. package/dist/ui-kit3.css +1 -1
  730. package/dist/ui-kit30.css +1 -1
  731. package/dist/ui-kit31.css +1 -1
  732. package/dist/ui-kit32.css +1 -1
  733. package/dist/ui-kit33.css +1 -1
  734. package/dist/ui-kit34.css +1 -1
  735. package/dist/ui-kit35.css +1 -1
  736. package/dist/ui-kit36.css +1 -1
  737. package/dist/ui-kit37.css +1 -1
  738. package/dist/ui-kit38.css +1 -1
  739. package/dist/ui-kit39.css +1 -1
  740. package/dist/ui-kit4.css +1 -1
  741. package/dist/ui-kit40.css +1 -1
  742. package/dist/ui-kit41.css +1 -1
  743. package/dist/ui-kit42.css +1 -1
  744. package/dist/ui-kit43.css +1 -1
  745. package/dist/ui-kit44.css +1 -1
  746. package/dist/ui-kit45.css +1 -1
  747. package/dist/ui-kit46.css +1 -1
  748. package/dist/ui-kit47.css +1 -1
  749. package/dist/ui-kit48.css +1 -1
  750. package/dist/ui-kit49.css +1 -1
  751. package/dist/ui-kit5.css +1 -1
  752. package/dist/ui-kit50.css +1 -1
  753. package/dist/ui-kit51.css +1 -1
  754. package/dist/ui-kit52.css +1 -1
  755. package/dist/ui-kit53.css +1 -1
  756. package/dist/ui-kit54.css +1 -1
  757. package/dist/ui-kit55.css +1 -1
  758. package/dist/ui-kit56.css +1 -1
  759. package/dist/ui-kit57.css +1 -1
  760. package/dist/ui-kit58.css +1 -1
  761. package/dist/ui-kit59.css +1 -1
  762. package/dist/ui-kit6.css +1 -1
  763. package/dist/ui-kit60.css +1 -1
  764. package/dist/ui-kit61.css +1 -1
  765. package/dist/ui-kit62.css +1 -1
  766. package/dist/ui-kit63.css +1 -1
  767. package/dist/ui-kit64.css +1 -1
  768. package/dist/ui-kit65.css +1 -1
  769. package/dist/ui-kit66.css +1 -1
  770. package/dist/ui-kit67.css +1 -1
  771. package/dist/ui-kit68.css +1 -1
  772. package/dist/ui-kit69.css +1 -1
  773. package/dist/ui-kit7.css +1 -1
  774. package/dist/ui-kit70.css +1 -1
  775. package/dist/ui-kit71.css +1 -1
  776. package/dist/ui-kit72.css +1 -1
  777. package/dist/ui-kit73.css +1 -1
  778. package/dist/ui-kit74.css +1 -1
  779. package/dist/ui-kit75.css +1 -1
  780. package/dist/ui-kit76.css +1 -1
  781. package/dist/ui-kit77.css +1 -1
  782. package/dist/ui-kit78.css +1 -1
  783. package/dist/ui-kit79.css +1 -1
  784. package/dist/ui-kit8.css +1 -1
  785. package/dist/ui-kit80.css +1 -1
  786. package/dist/ui-kit81.css +1 -1
  787. package/dist/ui-kit82.css +1 -1
  788. package/dist/ui-kit83.css +1 -1
  789. package/dist/ui-kit84.css +1 -1
  790. package/dist/ui-kit85.css +1 -1
  791. package/dist/ui-kit86.css +1 -1
  792. package/dist/ui-kit87.css +1 -1
  793. package/dist/ui-kit88.css +1 -1
  794. package/dist/ui-kit89.css +1 -1
  795. package/dist/ui-kit9.css +1 -1
  796. package/dist/ui-kit90.css +1 -1
  797. package/dist/ui-kit91.css +1 -1
  798. package/dist/ui-kit92.css +1 -1
  799. package/dist/ui-kit93.css +1 -1
  800. package/dist/ui-kit94.css +1 -1
  801. package/dist/ui-kit95.css +1 -1
  802. package/dist/ui-kit96.css +1 -1
  803. package/dist/ui-kit97.css +1 -1
  804. package/dist/ui-kit98.css +1 -1
  805. package/dist/ui-kit99.css +1 -1
  806. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"HelperText.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/helper-text/HelperText.tsx"],"sourcesContent":["import { memo, type FC } from 'react'\r\n\r\nimport SharedHelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { RichTextEditorHelperTextProps } from '@components/forms/rich-text-editor/components/helper-text/types/HelperText.props.ts'\r\n\r\nconst HelperText: FC<RichTextEditorHelperTextProps> = memo((props) => {\r\n const { error, helperText, helperId } = useRichTextEditorContext()\r\n const content = error ?? helperText\r\n\r\n if (!content) {\r\n return null\r\n }\r\n\r\n return (\r\n <SharedHelperText\r\n id={helperId}\r\n hasError={Boolean(error)}\r\n {...props}\r\n >\r\n {content}\r\n </SharedHelperText>\r\n )\r\n})\r\n\r\nHelperText.displayName = 'RichTextEditor.HelperText'\r\n\r\nexport default HelperText\r\n"],"names":["HelperText","memo","props","error","helperText","helperId","useRichTextEditorContext","content","jsx","SharedHelperText"],"mappings":"+LAMMA,EAAgDC,EAAAA,KAAMC,GAAU,CAClE,KAAM,CAAE,MAAAC,EAAO,WAAAC,EAAY,SAAAC,CAAA,EAAaC,EAAAA,yBAAA,EAClCC,EAAUJ,GAASC,EAEzB,OAAKG,EAKDC,EAAAA,IAACC,EAAA,CACG,GAAIJ,EACJ,SAAU,EAAQF,EACjB,GAAGD,EAEH,SAAAK,CAAA,CAAA,EATE,IAYf,CAAC,EAEDP,EAAW,YAAc"}
1
+ {"version":3,"file":"HelperText.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/helper-text/HelperText.tsx"],"sourcesContent":["import { memo, type FC } from 'react'\r\n\r\nimport SharedHelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { RichTextEditorHelperTextProps } from '@components/forms/rich-text-editor/components/helper-text/types/HelperText.props.ts'\r\n\r\n/**\r\n * Helper and error text slot for use inside `RichTextEditor`. Reads\r\n * `error` and `helperText` from context and renders nothing when both\r\n * are absent.\r\n */\r\nconst HelperText: FC<RichTextEditorHelperTextProps> = memo((props) => {\r\n const { error, helperText, helperId } = useRichTextEditorContext()\r\n const content = error ?? helperText\r\n\r\n if (!content) {\r\n return null\r\n }\r\n\r\n return (\r\n <SharedHelperText\r\n id={helperId}\r\n hasError={Boolean(error)}\r\n {...props}\r\n >\r\n {content}\r\n </SharedHelperText>\r\n )\r\n})\r\n\r\nHelperText.displayName = 'RichTextEditor.HelperText'\r\n\r\nexport default HelperText\r\n"],"names":["HelperText","memo","props","error","helperText","helperId","useRichTextEditorContext","content","jsx","SharedHelperText"],"mappings":"+LAWMA,EAAgDC,EAAAA,KAAMC,GAAU,CAClE,KAAM,CAAE,MAAAC,EAAO,WAAAC,EAAY,SAAAC,CAAA,EAAaC,EAAAA,yBAAA,EAClCC,EAAUJ,GAASC,EAEzB,OAAKG,EAKDC,EAAAA,IAACC,EAAA,CACG,GAAIJ,EACJ,SAAU,EAAQF,EACjB,GAAGD,EAEH,SAAAK,CAAA,CAAA,EATE,IAYf,CAAC,EAEDP,EAAW,YAAc"}
@@ -1,4 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { RichTextEditorHelperTextProps } from './types/HelperText.props.ts';
3
+ /**
4
+ * Helper and error text slot for use inside `RichTextEditor`. Reads
5
+ * `error` and `helperText` from context and renders nothing when both
6
+ * are absent.
7
+ */
3
8
  declare const HelperText: FC<RichTextEditorHelperTextProps>;
4
9
  export default HelperText;
@@ -1 +1 @@
1
- {"version":3,"file":"HelperText.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/helper-text/HelperText.tsx"],"sourcesContent":["import { memo, type FC } from 'react'\r\n\r\nimport SharedHelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { RichTextEditorHelperTextProps } from '@components/forms/rich-text-editor/components/helper-text/types/HelperText.props.ts'\r\n\r\nconst HelperText: FC<RichTextEditorHelperTextProps> = memo((props) => {\r\n const { error, helperText, helperId } = useRichTextEditorContext()\r\n const content = error ?? helperText\r\n\r\n if (!content) {\r\n return null\r\n }\r\n\r\n return (\r\n <SharedHelperText\r\n id={helperId}\r\n hasError={Boolean(error)}\r\n {...props}\r\n >\r\n {content}\r\n </SharedHelperText>\r\n )\r\n})\r\n\r\nHelperText.displayName = 'RichTextEditor.HelperText'\r\n\r\nexport default HelperText\r\n"],"names":["HelperText","memo","props","error","helperText","helperId","useRichTextEditorContext","content","jsx","SharedHelperText"],"mappings":";;;;AAMA,MAAMA,IAAgDC,EAAK,CAACC,MAAU;AAClE,QAAM,EAAE,OAAAC,GAAO,YAAAC,GAAY,UAAAC,EAAA,IAAaC,EAAA,GAClCC,IAAUJ,KAASC;AAEzB,SAAKG,IAKD,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACG,IAAIJ;AAAA,MACJ,UAAU,EAAQF;AAAA,MACjB,GAAGD;AAAA,MAEH,UAAAK;AAAA,IAAA;AAAA,EAAA,IATE;AAYf,CAAC;AAEDP,EAAW,cAAc;"}
1
+ {"version":3,"file":"HelperText.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/helper-text/HelperText.tsx"],"sourcesContent":["import { memo, type FC } from 'react'\r\n\r\nimport SharedHelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { RichTextEditorHelperTextProps } from '@components/forms/rich-text-editor/components/helper-text/types/HelperText.props.ts'\r\n\r\n/**\r\n * Helper and error text slot for use inside `RichTextEditor`. Reads\r\n * `error` and `helperText` from context and renders nothing when both\r\n * are absent.\r\n */\r\nconst HelperText: FC<RichTextEditorHelperTextProps> = memo((props) => {\r\n const { error, helperText, helperId } = useRichTextEditorContext()\r\n const content = error ?? helperText\r\n\r\n if (!content) {\r\n return null\r\n }\r\n\r\n return (\r\n <SharedHelperText\r\n id={helperId}\r\n hasError={Boolean(error)}\r\n {...props}\r\n >\r\n {content}\r\n </SharedHelperText>\r\n )\r\n})\r\n\r\nHelperText.displayName = 'RichTextEditor.HelperText'\r\n\r\nexport default HelperText\r\n"],"names":["HelperText","memo","props","error","helperText","helperId","useRichTextEditorContext","content","jsx","SharedHelperText"],"mappings":";;;;AAWA,MAAMA,IAAgDC,EAAK,CAACC,MAAU;AAClE,QAAM,EAAE,OAAAC,GAAO,YAAAC,GAAY,UAAAC,EAAA,IAAaC,EAAA,GAClCC,IAAUJ,KAASC;AAEzB,SAAKG,IAKD,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACG,IAAIJ;AAAA,MACJ,UAAU,EAAQF;AAAA,MACjB,GAAGD;AAAA,MAEH,UAAAK;AAAA,IAAA;AAAA,EAAA,IATE;AAYf,CAAC;AAEDP,EAAW,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const r=require("react/jsx-runtime"),s=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:i,labels:o}=c.useRichTextEditorContext();return e?r.jsx(u,{content:o.redo,delayDuration:700,openOnFocus:!1,position:"top",children:r.jsx(s,{type:"button",icon:"lucide:redo-2","aria-label":o.redo,variant:"ghost",color:"primary",size:"sm",disabled:i||!e.can().redo(),onMouseDown:n=>n.preventDefault(),onClick:()=>e.chain().focus().redo().run()})}):null};t.displayName="RichTextEditor.Redo";module.exports=t;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const r=require("react/jsx-runtime"),s=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:i,labels:o}=c.useRichTextEditorContext();return e?r.jsx(u,{content:o.redo,delayDuration:700,openOnFocus:!1,position:"top",children:r.jsx(s,{type:"button",icon:"lucide:redo-2","aria-label":o.redo,variant:"ghost",color:"primary",size:"sm",disabled:i||!e.can().redo(),onMouseDown:n=>n.preventDefault(),onClick:()=>e.chain().focus().redo().run()})}):null};t.displayName="RichTextEditor.Redo";module.exports=t;
2
2
  //# sourceMappingURL=Redo.cjs.map
@@ -3,7 +3,7 @@ import n from "../../../../actions/icon-button/IconButton.js";
3
3
  import "../../../../actions/icon-button/styles/IconButton.css.js";
4
4
  import a from "../../../../overlay/tooltip/Tooltip.js";
5
5
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
6
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
6
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
7
7
  /* empty css */
8
8
  import { useRichTextEditorContext as d } from "../../context/RichTextEditor.context.js";
9
9
  const l = () => {
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),u=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const s=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:r,labels:o}=c.useRichTextEditorContext();return e?n.jsx(s,{content:o.undo,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(u,{type:"button",icon:"lucide:undo-2","aria-label":o.undo,variant:"ghost",color:"primary",size:"sm",disabled:r||!e.can().undo(),onMouseDown:i=>i.preventDefault(),onClick:()=>e.chain().focus().undo().run()})}):null};t.displayName="RichTextEditor.Undo";module.exports=t;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),u=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const s=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:r,labels:o}=c.useRichTextEditorContext();return e?n.jsx(s,{content:o.undo,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(u,{type:"button",icon:"lucide:undo-2","aria-label":o.undo,variant:"ghost",color:"primary",size:"sm",disabled:r||!e.can().undo(),onMouseDown:i=>i.preventDefault(),onClick:()=>e.chain().focus().undo().run()})}):null};t.displayName="RichTextEditor.Undo";module.exports=t;
2
2
  //# sourceMappingURL=Undo.cjs.map
@@ -3,7 +3,7 @@ import e from "../../../../actions/icon-button/IconButton.js";
3
3
  import "../../../../actions/icon-button/styles/IconButton.css.js";
4
4
  import a from "../../../../overlay/tooltip/Tooltip.js";
5
5
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
6
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
6
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
7
7
  /* empty css */
8
8
  import { useRichTextEditorContext as d } from "../../context/RichTextEditor.context.js";
9
9
  const u = () => {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit120.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1oiges50"};exports.HISTORY_GROUP_STYLES=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit121.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1oiges50"};exports.HISTORY_GROUP_STYLES=e;
2
2
  //# sourceMappingURL=HistoryGroup.css.cjs.map
@@ -1,4 +1,4 @@
1
- import '../../../../../../ui-kit120.css';import '../../../../../../ui-kit.css';/* empty css */
1
+ import '../../../../../../ui-kit121.css';import '../../../../../../ui-kit.css';/* empty css */
2
2
  /* empty css */
3
3
  var t = { root: "_1oiges50" };
4
4
  export {
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const t=require("react/jsx-runtime"),c=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */require("../../../../overlay/dropdown-menu/index.cjs");const h=require("react"),w=require("../../context/RichTextEditor.context.cjs"),j=require("./styles/ImageGroup.css.cjs"),a=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),y=10*1024*1024,I=({presentation:b="menu"})=>{const{editor:i,disabled:l,onImageUpload:d,labels:e}=w.useRichTextEditorContext(),m=h.useRef(null),[p,x]=h.useState(!1);return i?t.jsxs("div",{className:j.IMAGE_GROUP_STYLES.root,role:"group","aria-label":e.imageGroup,children:[b==="inline"?t.jsxs(t.Fragment,{children:[t.jsx(u,{content:e.insertImageUrl,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-plus","aria-label":e.insertImageUrl,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}})}),t.jsx(u,{content:e.uploadImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:upload","aria-label":e.uploadImage,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>m.current?.click()})}),t.jsx(u,{content:e.editImageDetails,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-up","aria-label":e.editImageDetails,variant:"ghost",color:"primary",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}})}),t.jsx(u,{content:e.removeImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:trash-2","aria-label":e.removeImage,variant:"ghost",color:"destructive",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})})]}):t.jsxs(a,{modal:!1,open:p,onOpenChange:x,children:[t.jsx(u,{content:e.imageGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(a.Trigger,{children:t.jsx(c,{type:"button",icon:"lucide:image","aria-label":e.imageGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:p,disabled:l})})}),t.jsxs(a.Content,{"aria-label":e.imageOptions,children:[t.jsx(a.Item,{label:e.insertImageUrl,startIcon:"lucide:image-plus",onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}}),t.jsx(a.Item,{label:e.uploadImage,startIcon:"lucide:upload",onClick:()=>m.current?.click()}),t.jsx(a.Separator,{}),t.jsx(a.Item,{label:e.editImageDetails,startIcon:"lucide:image-up",disabled:!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}}),t.jsx(a.Item,{label:e.removeImage,startIcon:"lucide:trash-2",destructive:!0,disabled:!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})]})]}),t.jsx("input",{ref:m,type:"file",accept:"image/*",hidden:!0,onChange:async r=>{const o=r.currentTarget.files?.[0];if(r.currentTarget.value="",!o||!o.type.startsWith("image/")||o.size>y)return;const n=d?await d(o):await new Promise((f,g)=>{const s=new FileReader;s.onload=()=>typeof s.result=="string"?f(s.result):g(new Error("Unable to read the image file.")),s.onerror=()=>g(s.error??new Error("Unable to read the image file.")),s.readAsDataURL(o)});i.chain().focus().setImage({src:n}).run()}})]}):null};I.displayName="RichTextEditor.ImageGroup";module.exports=I;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const t=require("react/jsx-runtime"),c=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */require("../../../../overlay/dropdown-menu/index.cjs");const h=require("react"),w=require("../../context/RichTextEditor.context.cjs"),j=require("./styles/ImageGroup.css.cjs"),a=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),y=10*1024*1024,I=({presentation:b="menu"})=>{const{editor:i,disabled:l,onImageUpload:d,labels:e}=w.useRichTextEditorContext(),m=h.useRef(null),[p,x]=h.useState(!1);return i?t.jsxs("div",{className:j.IMAGE_GROUP_STYLES.root,role:"group","aria-label":e.imageGroup,children:[b==="inline"?t.jsxs(t.Fragment,{children:[t.jsx(u,{content:e.insertImageUrl,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-plus","aria-label":e.insertImageUrl,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}})}),t.jsx(u,{content:e.uploadImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:upload","aria-label":e.uploadImage,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>m.current?.click()})}),t.jsx(u,{content:e.editImageDetails,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-up","aria-label":e.editImageDetails,variant:"ghost",color:"primary",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}})}),t.jsx(u,{content:e.removeImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:trash-2","aria-label":e.removeImage,variant:"ghost",color:"destructive",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})})]}):t.jsxs(a,{modal:!1,open:p,onOpenChange:x,children:[t.jsx(u,{content:e.imageGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(a.Trigger,{children:t.jsx(c,{type:"button",icon:"lucide:image","aria-label":e.imageGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:p,disabled:l})})}),t.jsxs(a.Content,{"aria-label":e.imageOptions,children:[t.jsx(a.Item,{label:e.insertImageUrl,startIcon:"lucide:image-plus",onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}}),t.jsx(a.Item,{label:e.uploadImage,startIcon:"lucide:upload",onClick:()=>m.current?.click()}),t.jsx(a.Separator,{}),t.jsx(a.Item,{label:e.editImageDetails,startIcon:"lucide:image-up",disabled:!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}}),t.jsx(a.Item,{label:e.removeImage,startIcon:"lucide:trash-2",destructive:!0,disabled:!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})]})]}),t.jsx("input",{ref:m,type:"file",accept:"image/*",hidden:!0,onChange:async r=>{const o=r.currentTarget.files?.[0];if(r.currentTarget.value="",!o||!o.type.startsWith("image/")||o.size>y)return;const n=d?await d(o):await new Promise((f,g)=>{const s=new FileReader;s.onload=()=>typeof s.result=="string"?f(s.result):g(new Error("Unable to read the image file.")),s.onerror=()=>g(s.error??new Error("Unable to read the image file.")),s.readAsDataURL(o)});i.chain().focus().setImage({src:n}).run()}})]}):null};I.displayName="RichTextEditor.ImageGroup";module.exports=I;
2
2
  //# sourceMappingURL=ImageGroup.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageGroup.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/image-group/ImageGroup.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { useRef, useState } from 'react'\r\n\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { IMAGE_GROUP_STYLES } from '@components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.ts'\r\nimport type { ImageGroupProps } from '@components/forms/rich-text-editor/components/image-group/types/ImageGroup.props.ts'\r\n\r\nconst MAX_IMAGE_FILE_SIZE = 10 * 1024 * 1024\r\n\r\nconst ImageGroup = ({ presentation = 'menu' }: ImageGroupProps) => {\r\n const { editor, disabled, onImageUpload, labels } =\r\n useRichTextEditorContext()\r\n const imageInputRef = useRef<HTMLInputElement>(null)\r\n const [open, setOpen] = useState(false)\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n return (\r\n <div\r\n className={IMAGE_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.imageGroup}\r\n >\r\n {presentation === 'inline' ? (\r\n <>\r\n <Tooltip\r\n content={labels.insertImageUrl}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-plus'}\r\n aria-label={labels.insertImageUrl}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.uploadImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:upload'}\r\n aria-label={labels.uploadImage}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.editImageDetails}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-up'}\r\n aria-label={labels.editImageDetails}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.removeImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:trash-2'}\r\n aria-label={labels.removeImage}\r\n variant={'ghost'}\r\n color={'destructive'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </Tooltip>\r\n </>\r\n ) : (\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.imageGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image'}\r\n aria-label={labels.imageGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.imageOptions}>\r\n <DropdownMenu.Item\r\n label={labels.insertImageUrl}\r\n startIcon={'lucide:image-plus'}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.uploadImage}\r\n startIcon={'lucide:upload'}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n <DropdownMenu.Separator />\r\n <DropdownMenu.Item\r\n label={labels.editImageDetails}\r\n startIcon={'lucide:image-up'}\r\n disabled={!editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.removeImage}\r\n startIcon={'lucide:trash-2'}\r\n destructive\r\n disabled={!editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n )}\r\n <input\r\n ref={imageInputRef}\r\n type={'file'}\r\n accept={'image/*'}\r\n hidden\r\n onChange={async (event) => {\r\n const file = event.currentTarget.files?.[0]\r\n event.currentTarget.value = ''\r\n\r\n if (\r\n !file ||\r\n !file.type.startsWith('image/') ||\r\n file.size > MAX_IMAGE_FILE_SIZE\r\n ) {\r\n return\r\n }\r\n\r\n const src = onImageUpload\r\n ? await onImageUpload(file)\r\n : await new Promise<string>((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.onload = () =>\r\n typeof reader.result === 'string'\r\n ? resolve(reader.result)\r\n : reject(new Error('Unable to read the image file.'))\r\n reader.onerror = () =>\r\n reject(\r\n reader.error ?? new Error('Unable to read the image file.'),\r\n )\r\n reader.readAsDataURL(file)\r\n })\r\n\r\n editor.chain().focus().setImage({ src }).run()\r\n }}\r\n />\r\n </div>\r\n )\r\n}\r\n\r\nImageGroup.displayName = 'RichTextEditor.ImageGroup'\r\n\r\nexport default ImageGroup\r\n"],"names":["MAX_IMAGE_FILE_SIZE","ImageGroup","presentation","editor","disabled","onImageUpload","labels","useRichTextEditorContext","imageInputRef","useRef","open","setOpen","useState","jsxs","IMAGE_GROUP_STYLES","Fragment","jsx","Tooltip","IconButton","src","attributes","alt","width","Drop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,CAAC,EAG1C,GAFAA,EAAM,cAAc,MAAQ,GAGxB,CAACC,GACb,CAACA,EAAK,KAAK,WAAW,QAAQ,GAC9BA,EAAK,KAAOzB,EAEA,OAGJ,MAAMmB,EAAMd,EACN,MAAMA,EAAcoB,CAAI,EACxB,MAAM,IAAI,QAAgB,CAACC,EAASC,IAAW,CAC7C,MAAMC,EAAS,IAAI,WACnBA,EAAO,OAAS,IACZ,OAAOA,EAAO,QAAW,SACnBF,EAAQE,EAAO,MAAM,EACrBD,EAAO,IAAI,MAAM,gCAAgC,CAAC,EAC5DC,EAAO,QAAU,IACbD,EACIC,EAAO,OAAS,IAAI,MAAM,gCAAgC,CAAA,EAElEA,EAAO,cAAcH,CAAI,CAC7B,CAAC,EAELtB,EAAO,MAAA,EAAQ,MAAA,EAAQ,SAAS,CAAE,IAAAgB,CAAA,CAAK,EAAE,IAAA,CAC7C,CAAA,CAAA,CACJ,CAAA,CAAA,EAvNG,IA0Nf,EAEAlB,EAAW,YAAc"}
1
+ {"version":3,"file":"ImageGroup.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/image-group/ImageGroup.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { useRef, useState } from 'react'\r\n\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { IMAGE_GROUP_STYLES } from '@components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.ts'\r\nimport type { ImageGroupProps } from '@components/forms/rich-text-editor/components/image-group/types/ImageGroup.props.ts'\r\n\r\nconst MAX_IMAGE_FILE_SIZE = 10 * 1024 * 1024\r\n\r\n/**\r\n * Toolbar group for image commands: insert by URL, upload from disk, edit\r\n * attributes, and remove. Use `presentation=\"inline\"` for individual icon\r\n * buttons or `\"menu\"` (default) for a dropdown trigger. Calls\r\n * `onImageUpload` from context when provided; otherwise reads the file as a\r\n * data URL (max 10 MB).\r\n */\r\nconst ImageGroup = ({ presentation = 'menu' }: ImageGroupProps) => {\r\n const { editor, disabled, onImageUpload, labels } =\r\n useRichTextEditorContext()\r\n const imageInputRef = useRef<HTMLInputElement>(null)\r\n const [open, setOpen] = useState(false)\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n return (\r\n <div\r\n className={IMAGE_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.imageGroup}\r\n >\r\n {presentation === 'inline' ? (\r\n <>\r\n <Tooltip\r\n content={labels.insertImageUrl}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-plus'}\r\n aria-label={labels.insertImageUrl}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.uploadImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:upload'}\r\n aria-label={labels.uploadImage}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.editImageDetails}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-up'}\r\n aria-label={labels.editImageDetails}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.removeImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:trash-2'}\r\n aria-label={labels.removeImage}\r\n variant={'ghost'}\r\n color={'destructive'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </Tooltip>\r\n </>\r\n ) : (\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.imageGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image'}\r\n aria-label={labels.imageGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.imageOptions}>\r\n <DropdownMenu.Item\r\n label={labels.insertImageUrl}\r\n startIcon={'lucide:image-plus'}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.uploadImage}\r\n startIcon={'lucide:upload'}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n <DropdownMenu.Separator />\r\n <DropdownMenu.Item\r\n label={labels.editImageDetails}\r\n startIcon={'lucide:image-up'}\r\n disabled={!editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.removeImage}\r\n startIcon={'lucide:trash-2'}\r\n destructive\r\n disabled={!editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n )}\r\n <input\r\n ref={imageInputRef}\r\n type={'file'}\r\n accept={'image/*'}\r\n hidden\r\n onChange={async (event) => {\r\n const file = event.currentTarget.files?.[0]\r\n event.currentTarget.value = ''\r\n\r\n if (\r\n !file ||\r\n !file.type.startsWith('image/') ||\r\n file.size > MAX_IMAGE_FILE_SIZE\r\n ) {\r\n return\r\n }\r\n\r\n const src = onImageUpload\r\n ? await onImageUpload(file)\r\n : await new Promise<string>((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.onload = () =>\r\n typeof reader.result === 'string'\r\n ? resolve(reader.result)\r\n : reject(new Error('Unable to read the image file.'))\r\n reader.onerror = () =>\r\n reject(\r\n reader.error ?? new Error('Unable to read the image file.'),\r\n )\r\n reader.readAsDataURL(file)\r\n })\r\n\r\n editor.chain().focus().setImage({ src }).run()\r\n }}\r\n />\r\n </div>\r\n )\r\n}\r\n\r\nImageGroup.displayName = 'RichTextEditor.ImageGroup'\r\n\r\nexport default ImageGroup\r\n"],"names":["MAX_IMAGE_FILE_SIZE","ImageGroup","presentation","editor","disabled","onImageUpload","labels","useRichTextEditorContext","imageInputRef","useRef","open","setOpen","useState","jsxs","IMAGE_GROUP_STYLES","Fragment","jsx","Tooltip","IconButton","src","attributes","alt","width","DropdownMenu","event","file","resolve","reject","reader"],"mappings":"is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MAAQ,GAGxB,CAACC,GACb,CAACA,EAAK,KAAK,WAAW,QAAQ,GAC9BA,EAAK,KAAOzB,EAEA,OAGJ,MAAMmB,EAAMd,EACN,MAAMA,EAAcoB,CAAI,EACxB,MAAM,IAAI,QAAgB,CAACC,EAASC,IAAW,CAC7C,MAAMC,EAAS,IAAI,WACnBA,EAAO,OAAS,IACZ,OAAOA,EAAO,QAAW,SACnBF,EAAQE,EAAO,MAAM,EACrBD,EAAO,IAAI,MAAM,gCAAgC,CAAC,EAC5DC,EAAO,QAAU,IACbD,EACIC,EAAO,OAAS,IAAI,MAAM,gCAAgC,CAAA,EAElEA,EAAO,cAAcH,CAAI,CAC7B,CAAC,EAELtB,EAAO,MAAA,EAAQ,MAAA,EAAQ,SAAS,CAAE,IAAAgB,CAAA,CAAK,EAAE,IAAA,CAC7C,CAAA,CAAA,CACJ,CAAA,CAAA,EAvNG,IA0Nf,EAEAlB,EAAW,YAAc"}
@@ -1,4 +1,11 @@
1
1
  import { ImageGroupProps } from './types/ImageGroup.props.ts';
2
+ /**
3
+ * Toolbar group for image commands: insert by URL, upload from disk, edit
4
+ * attributes, and remove. Use `presentation="inline"` for individual icon
5
+ * buttons or `"menu"` (default) for a dropdown trigger. Calls
6
+ * `onImageUpload` from context when provided; otherwise reads the file as a
7
+ * data URL (max 10 MB).
8
+ */
2
9
  declare const ImageGroup: {
3
10
  ({ presentation }: ImageGroupProps): import("react").JSX.Element | null;
4
11
  displayName: string;
@@ -3,7 +3,7 @@ import c from "../../../../actions/icon-button/IconButton.js";
3
3
  import "../../../../actions/icon-button/styles/IconButton.css.js";
4
4
  import m from "../../../../overlay/tooltip/Tooltip.js";
5
5
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
6
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
6
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
7
7
  /* empty css */
8
8
  import "../../../../overlay/dropdown-menu/index.js";
9
9
  import { useRef as y, useState as v } from "react";
@@ -1 +1 @@
1
- {"version":3,"file":"ImageGroup.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/image-group/ImageGroup.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { useRef, useState } from 'react'\r\n\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { IMAGE_GROUP_STYLES } from '@components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.ts'\r\nimport type { ImageGroupProps } from '@components/forms/rich-text-editor/components/image-group/types/ImageGroup.props.ts'\r\n\r\nconst MAX_IMAGE_FILE_SIZE = 10 * 1024 * 1024\r\n\r\nconst ImageGroup = ({ presentation = 'menu' }: ImageGroupProps) => {\r\n const { editor, disabled, onImageUpload, labels } =\r\n useRichTextEditorContext()\r\n const imageInputRef = useRef<HTMLInputElement>(null)\r\n const [open, setOpen] = useState(false)\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n return (\r\n <div\r\n className={IMAGE_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.imageGroup}\r\n >\r\n {presentation === 'inline' ? (\r\n <>\r\n <Tooltip\r\n content={labels.insertImageUrl}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-plus'}\r\n aria-label={labels.insertImageUrl}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.uploadImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:upload'}\r\n aria-label={labels.uploadImage}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.editImageDetails}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-up'}\r\n aria-label={labels.editImageDetails}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.removeImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:trash-2'}\r\n aria-label={labels.removeImage}\r\n variant={'ghost'}\r\n color={'destructive'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </Tooltip>\r\n </>\r\n ) : (\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.imageGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image'}\r\n aria-label={labels.imageGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.imageOptions}>\r\n <DropdownMenu.Item\r\n label={labels.insertImageUrl}\r\n startIcon={'lucide:image-plus'}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.uploadImage}\r\n startIcon={'lucide:upload'}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n <DropdownMenu.Separator />\r\n <DropdownMenu.Item\r\n label={labels.editImageDetails}\r\n startIcon={'lucide:image-up'}\r\n disabled={!editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.removeImage}\r\n startIcon={'lucide:trash-2'}\r\n destructive\r\n disabled={!editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n )}\r\n <input\r\n ref={imageInputRef}\r\n type={'file'}\r\n accept={'image/*'}\r\n hidden\r\n onChange={async (event) => {\r\n const file = event.currentTarget.files?.[0]\r\n event.currentTarget.value = ''\r\n\r\n if (\r\n !file ||\r\n !file.type.startsWith('image/') ||\r\n file.size > MAX_IMAGE_FILE_SIZE\r\n ) {\r\n return\r\n }\r\n\r\n const src = onImageUpload\r\n ? await onImageUpload(file)\r\n : await new Promise<string>((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.onload = () =>\r\n typeof reader.result === 'string'\r\n ? resolve(reader.result)\r\n : reject(new Error('Unable to read the image file.'))\r\n reader.onerror = () =>\r\n reject(\r\n reader.error ?? new Error('Unable to read the image file.'),\r\n )\r\n reader.readAsDataURL(file)\r\n })\r\n\r\n editor.chain().focus().setImage({ src }).run()\r\n }}\r\n />\r\n </div>\r\n )\r\n}\r\n\r\nImageGroup.displayName = 'RichTextEditor.ImageGroup'\r\n\r\nexport default ImageGroup\r\n"],"names":["MAX_IMAGE_FILE_SIZE","ImageGroup","presentation","editor","disabled","onImageUpload","labels","useRichTextEditorContext","imageInputRef","useRef","open","setOpen","useState","jsxs","IMAGE_GROUP_STYLES","Fragment","jsx","Tooltip","IconButton","src","attributes","alt","width","DropdownMenu","event","file","resolve","reject","reader"],"mappings":";;;;;;;;;;;;AASA,MAAMA,IAAsB,KAAK,OAAO,MAElCC,IAAa,CAAC,EAAE,cAAAC,IAAe,aAA8B;AAC/D,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,eAAAC,GAAe,QAAAC,EAAA,IACzCC,EAAA,GACMC,IAAgBC,EAAyB,IAAI,GAC7C,CAACC,GAAMC,CAAO,IAAIC,EAAS,EAAK;AAEtC,SAAKT,IAKD,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC,EAAmB;AAAA,MAC9B,MAAM;AAAA,MACN,cAAYR,EAAO;AAAA,MAElB,UAAA;AAAA,QAAAJ,MAAiB,WACd,gBAAAW,EAAAE,GAAA,EACI,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAA,YAAA;AAAA,cACG,SAASX,EAAO;AAAA,cAChB,eAAe;AAAA,cACf,aAAa;AAAA,cACb,UAAU;AAAA,cAEV,UAAA,gBAAAU;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACG,MAAM;AAAA,kBACN,MAAM;AAAA,kBACN,cAAYZ,EAAO;AAAA,kBACnB,SAAS;AAAA,kBACT,OAAO;AAAA,kBACP,MAAM;AAAA,kBACN,UAAAF;AAAA,kBAC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+ {"version":3,"file":"ImageGroup.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/image-group/ImageGroup.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { useRef, useState } from 'react'\r\n\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { IMAGE_GROUP_STYLES } from '@components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.ts'\r\nimport type { ImageGroupProps } from '@components/forms/rich-text-editor/components/image-group/types/ImageGroup.props.ts'\r\n\r\nconst MAX_IMAGE_FILE_SIZE = 10 * 1024 * 1024\r\n\r\n/**\r\n * Toolbar group for image commands: insert by URL, upload from disk, edit\r\n * attributes, and remove. Use `presentation=\"inline\"` for individual icon\r\n * buttons or `\"menu\"` (default) for a dropdown trigger. Calls\r\n * `onImageUpload` from context when provided; otherwise reads the file as a\r\n * data URL (max 10 MB).\r\n */\r\nconst ImageGroup = ({ presentation = 'menu' }: ImageGroupProps) => {\r\n const { editor, disabled, onImageUpload, labels } =\r\n useRichTextEditorContext()\r\n const imageInputRef = useRef<HTMLInputElement>(null)\r\n const [open, setOpen] = useState(false)\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n return (\r\n <div\r\n className={IMAGE_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.imageGroup}\r\n >\r\n {presentation === 'inline' ? (\r\n <>\r\n <Tooltip\r\n content={labels.insertImageUrl}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-plus'}\r\n aria-label={labels.insertImageUrl}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.uploadImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:upload'}\r\n aria-label={labels.uploadImage}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.editImageDetails}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image-up'}\r\n aria-label={labels.editImageDetails}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n </Tooltip>\r\n <Tooltip\r\n content={labels.removeImage}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:trash-2'}\r\n aria-label={labels.removeImage}\r\n variant={'ghost'}\r\n color={'destructive'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </Tooltip>\r\n </>\r\n ) : (\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.imageGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:image'}\r\n aria-label={labels.imageGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.imageOptions}>\r\n <DropdownMenu.Item\r\n label={labels.insertImageUrl}\r\n startIcon={'lucide:image-plus'}\r\n onClick={() => {\r\n const src = window.prompt(labels.imageUrlPrompt)\r\n\r\n if (src) {\r\n editor.chain().focus().setImage({ src }).run()\r\n }\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.uploadImage}\r\n startIcon={'lucide:upload'}\r\n onClick={() => imageInputRef.current?.click()}\r\n />\r\n <DropdownMenu.Separator />\r\n <DropdownMenu.Item\r\n label={labels.editImageDetails}\r\n startIcon={'lucide:image-up'}\r\n disabled={!editor.isActive('image')}\r\n onClick={() => {\r\n const attributes = editor.getAttributes('image')\r\n const alt = window.prompt(\r\n labels.imageAltPrompt,\r\n attributes.alt ?? '',\r\n )\r\n const width = window.prompt(\r\n labels.imageWidthPrompt,\r\n attributes.width ?? '100%',\r\n )\r\n\r\n editor\r\n .chain()\r\n .focus()\r\n .updateAttributes('image', {\r\n ...(alt !== null ? { alt } : {}),\r\n ...(width !== null ? { width } : {}),\r\n })\r\n .run()\r\n }}\r\n />\r\n <DropdownMenu.Item\r\n label={labels.removeImage}\r\n startIcon={'lucide:trash-2'}\r\n destructive\r\n disabled={!editor.isActive('image')}\r\n onClick={() => editor.chain().focus().deleteSelection().run()}\r\n />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n )}\r\n <input\r\n ref={imageInputRef}\r\n type={'file'}\r\n accept={'image/*'}\r\n hidden\r\n onChange={async (event) => {\r\n const file = event.currentTarget.files?.[0]\r\n event.currentTarget.value = ''\r\n\r\n if (\r\n !file ||\r\n !file.type.startsWith('image/') ||\r\n file.size > MAX_IMAGE_FILE_SIZE\r\n ) {\r\n return\r\n }\r\n\r\n const src = onImageUpload\r\n ? await onImageUpload(file)\r\n : await new Promise<string>((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.onload = () =>\r\n typeof reader.result === 'string'\r\n ? resolve(reader.result)\r\n : reject(new Error('Unable to read the image file.'))\r\n reader.onerror = () =>\r\n reject(\r\n reader.error ?? new Error('Unable to read the image file.'),\r\n )\r\n reader.readAsDataURL(file)\r\n })\r\n\r\n editor.chain().focus().setImage({ src }).run()\r\n }}\r\n />\r\n </div>\r\n )\r\n}\r\n\r\nImageGroup.displayName = 'RichTextEditor.ImageGroup'\r\n\r\nexport default ImageGroup\r\n"],"names":["MAX_IMAGE_FILE_SIZE","ImageGroup","presentation","editor","disabled","onImageUpload","labels","useRichTextEditorContext","imageInputRef","useRef","open","setOpen","useState","jsxs","IMAGE_GROUP_STYLES","Fragment","jsx","Tooltip","IconButton","src","attributes","alt","width","DropdownMenu","event","file","resolve","reject","reader"],"mappings":";;;;;;;;;;;;AASA,MAAMA,IAAsB,KAAK,OAAO,MASlCC,IAAa,CAAC,EAAE,cAAAC,IAAe,aAA8B;AAC/D,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,eAAAC,GAAe,QAAAC,EAAA,IACzCC,EAAA,GACMC,IAAgBC,EAAyB,IAAI,GAC7C,CAACC,GAAMC,CAAO,IAAIC,EAAS,EAAK;AAEtC,SAAKT,IAKD,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC,EAAmB;AAAA,MAC9B,MAAM;AAAA,MACN,cAAYR,EAAO;AAAA,MAElB,UAAA;AAAA,QAAAJ,MAAiB,WACd,gBAAAW,EAAAE,GAAA,EACI,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAA,YAAA;AAAA,cACG,SAASX,EAAO;AAAA,cAChB,eAAe;AAAA,cACf,aAAa;AAAA,cACb,UAAU;AAAA,cAEV,UAAA,gBAAAU;AAAA,gBAACE;AAAA,gBAAA;AAAA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B,EAAA,CAAK,EAAE,IAAA;AAAA,YAC7C;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA,IAvNG;AA0Nf;AAEAlB,EAAW,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit122.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1n5qrsc0"};exports.IMAGE_GROUP_STYLES=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit118.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1n5qrsc0"};exports.IMAGE_GROUP_STYLES=e;
2
2
  //# sourceMappingURL=ImageGroup.css.cjs.map
@@ -1,4 +1,4 @@
1
- import '../../../../../../ui-kit122.css';import '../../../../../../ui-kit.css';/* empty css */
1
+ import '../../../../../../ui-kit118.css';import '../../../../../../ui-kit.css';/* empty css */
2
2
  /* empty css */
3
3
  var t = { root: "_1n5qrsc0" };
4
4
  export {
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),u=require("./styles/LinkGroup.css.cjs"),c=require("./SetLink.cjs"),a=require("./UnsetLink.cjs"),l=require("../../context/RichTextEditor.context.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const p=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const x=require("react"),i=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),t=()=>{const{disabled:o,labels:r}=l.useRichTextEditorContext(),[n,s]=x.useState(!1);return e.jsx("div",{className:u.LINK_GROUP_STYLES.root,role:"group","aria-label":r.linkGroup,children:e.jsxs(i,{modal:!1,open:n,onOpenChange:s,children:[e.jsx(d,{content:r.linkGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(i.Trigger,{children:e.jsx(p,{type:"button",icon:"lucide:link","aria-label":r.linkGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:n,disabled:o})})}),e.jsxs(i.Content,{"aria-label":r.linkOptions,children:[e.jsx(c,{presentation:"menu"}),e.jsx(a,{presentation:"menu"})]})]})})};t.displayName="RichTextEditor.LinkGroup";module.exports=t;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),u=require("./styles/LinkGroup.css.cjs"),c=require("./SetLink.cjs"),a=require("./UnsetLink.cjs"),l=require("../../context/RichTextEditor.context.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const p=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const x=require("react"),i=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),t=()=>{const{disabled:o,labels:r}=l.useRichTextEditorContext(),[n,s]=x.useState(!1);return e.jsx("div",{className:u.LINK_GROUP_STYLES.root,role:"group","aria-label":r.linkGroup,children:e.jsxs(i,{modal:!1,open:n,onOpenChange:s,children:[e.jsx(d,{content:r.linkGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(i.Trigger,{children:e.jsx(p,{type:"button",icon:"lucide:link","aria-label":r.linkGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:n,disabled:o})})}),e.jsxs(i.Content,{"aria-label":r.linkOptions,children:[e.jsx(c,{presentation:"menu"}),e.jsx(a,{presentation:"menu"})]})]})})};t.displayName="RichTextEditor.LinkGroup";module.exports=t;
2
2
  //# sourceMappingURL=LinkGroup.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkGroup.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/LinkGroup.tsx"],"sourcesContent":["import { LINK_GROUP_STYLES } from '@components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.ts'\r\nimport SetLink from '@components/forms/rich-text-editor/components/link-group/SetLink.tsx'\r\nimport UnsetLink from '@components/forms/rich-text-editor/components/link-group/UnsetLink.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useState } from 'react'\r\n\r\nconst LinkGroup = () => {\r\n const { disabled, labels } = useRichTextEditorContext()\r\n const [open, setOpen] = useState(false)\r\n\r\n return (\r\n <div\r\n className={LINK_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.linkGroup}\r\n >\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.linkGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.linkGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.linkOptions}>\r\n <SetLink presentation={'menu'} />\r\n <UnsetLink presentation={'menu'} />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n </div>\r\n )\r\n}\r\n\r\nLinkGroup.displayName = 'RichTextEditor.LinkGroup'\r\n\r\nexport default LinkGroup\r\n"],"names":["LinkGroup","disabled","labels","useRichTextEditorContext","open","setOpen","useState","jsx","LINK_GROUP_STYLES","jsxs","DropdownMenu","Tooltip","IconButton","SetLink","UnsetLink"],"mappings":"8vBASMA,EAAY,IAAM,CACpB,KAAM,CAAE,SAAAC,EAAU,OAAAC,CAAA,EAAWC,2BAAA,EACvB,CAACC,EAAMC,CAAO,EAAIC,EAAAA,SAAS,EAAK,EAEtC,OACIC,EAAAA,IAAC,MAAA,CACG,UAAWC,EAAAA,kBAAkB,KAC7B,KAAM,QACN,aAAYN,EAAO,UAEnB,SAAAO,EAAAA,KAACC,EAAA,CACG,MAAO,GACP,KAAAN,EACA,aAAcC,EAEd,SAAA,CAAAE,EAAAA,IAACI,EAAA,CACG,QAAST,EAAO,iBAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAK,EAAAA,IAACG,EAAa,QAAb,CACG,SAAAH,EAAAA,IAACK,EAAA,CACG,KAAM,SACN,KAAM,cACN,aAAYV,EAAO,iBACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,OAAQE,EACR,SAAAH,CAAA,CAAA,CACJ,CACJ,CAAA,CAAA,SAEHS,EAAa,QAAb,CAAqB,aAAYR,EAAO,YACrC,SAAA,CAAAK,EAAAA,IAACM,EAAA,CAAQ,aAAc,MAAA,CAAQ,EAC/BN,EAAAA,IAACO,EAAA,CAAU,aAAc,MAAA,CAAQ,CAAA,CAAA,CACrC,CAAA,CAAA,CAAA,CACJ,CAAA,CAGZ,EAEAd,EAAU,YAAc"}
1
+ {"version":3,"file":"LinkGroup.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/LinkGroup.tsx"],"sourcesContent":["import { LINK_GROUP_STYLES } from '@components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.ts'\r\nimport SetLink from '@components/forms/rich-text-editor/components/link-group/SetLink.tsx'\r\nimport UnsetLink from '@components/forms/rich-text-editor/components/link-group/UnsetLink.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useState } from 'react'\r\n\r\n/**\r\n * Toolbar group containing a dropdown with `SetLink` and `UnsetLink`\r\n * controls. Renders a link icon button trigger with the menu inside.\r\n */\r\nconst LinkGroup = () => {\r\n const { disabled, labels } = useRichTextEditorContext()\r\n const [open, setOpen] = useState(false)\r\n\r\n return (\r\n <div\r\n className={LINK_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.linkGroup}\r\n >\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.linkGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.linkGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.linkOptions}>\r\n <SetLink presentation={'menu'} />\r\n <UnsetLink presentation={'menu'} />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n </div>\r\n )\r\n}\r\n\r\nLinkGroup.displayName = 'RichTextEditor.LinkGroup'\r\n\r\nexport default LinkGroup\r\n"],"names":["LinkGroup","disabled","labels","useRichTextEditorContext","open","setOpen","useState","jsx","LINK_GROUP_STYLES","jsxs","DropdownMenu","Tooltip","IconButton","SetLink","UnsetLink"],"mappings":"8vBAaMA,EAAY,IAAM,CACpB,KAAM,CAAE,SAAAC,EAAU,OAAAC,CAAA,EAAWC,2BAAA,EACvB,CAACC,EAAMC,CAAO,EAAIC,EAAAA,SAAS,EAAK,EAEtC,OACIC,EAAAA,IAAC,MAAA,CACG,UAAWC,EAAAA,kBAAkB,KAC7B,KAAM,QACN,aAAYN,EAAO,UAEnB,SAAAO,EAAAA,KAACC,EAAA,CACG,MAAO,GACP,KAAAN,EACA,aAAcC,EAEd,SAAA,CAAAE,EAAAA,IAACI,EAAA,CACG,QAAST,EAAO,iBAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAK,EAAAA,IAACG,EAAa,QAAb,CACG,SAAAH,EAAAA,IAACK,EAAA,CACG,KAAM,SACN,KAAM,cACN,aAAYV,EAAO,iBACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,OAAQE,EACR,SAAAH,CAAA,CAAA,CACJ,CACJ,CAAA,CAAA,SAEHS,EAAa,QAAb,CAAqB,aAAYR,EAAO,YACrC,SAAA,CAAAK,EAAAA,IAACM,EAAA,CAAQ,aAAc,MAAA,CAAQ,EAC/BN,EAAAA,IAACO,EAAA,CAAU,aAAc,MAAA,CAAQ,CAAA,CAAA,CACrC,CAAA,CAAA,CAAA,CACJ,CAAA,CAGZ,EAEAd,EAAU,YAAc"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Toolbar group containing a dropdown with `SetLink` and `UnsetLink`
3
+ * controls. Renders a link icon button trigger with the menu inside.
4
+ */
1
5
  declare const LinkGroup: {
2
6
  (): import("react").JSX.Element;
3
7
  displayName: string;
@@ -8,7 +8,7 @@ import c from "../../../../actions/icon-button/IconButton.js";
8
8
  import "../../../../actions/icon-button/styles/IconButton.css.js";
9
9
  import u from "../../../../overlay/tooltip/Tooltip.js";
10
10
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
11
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
11
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
12
12
  /* empty css */
13
13
  import { useState as d } from "react";
14
14
  import i from "../../../../overlay/dropdown-menu/DropdownMenu.js";
@@ -1 +1 @@
1
- {"version":3,"file":"LinkGroup.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/LinkGroup.tsx"],"sourcesContent":["import { LINK_GROUP_STYLES } from '@components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.ts'\r\nimport SetLink from '@components/forms/rich-text-editor/components/link-group/SetLink.tsx'\r\nimport UnsetLink from '@components/forms/rich-text-editor/components/link-group/UnsetLink.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useState } from 'react'\r\n\r\nconst LinkGroup = () => {\r\n const { disabled, labels } = useRichTextEditorContext()\r\n const [open, setOpen] = useState(false)\r\n\r\n return (\r\n <div\r\n className={LINK_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.linkGroup}\r\n >\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.linkGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.linkGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.linkOptions}>\r\n <SetLink presentation={'menu'} />\r\n <UnsetLink presentation={'menu'} />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n </div>\r\n )\r\n}\r\n\r\nLinkGroup.displayName = 'RichTextEditor.LinkGroup'\r\n\r\nexport default LinkGroup\r\n"],"names":["LinkGroup","disabled","labels","useRichTextEditorContext","open","setOpen","useState","jsx","LINK_GROUP_STYLES","jsxs","DropdownMenu","Tooltip","IconButton","SetLink","UnsetLink"],"mappings":";;;;;;;;;;;;;;AASA,MAAMA,IAAY,MAAM;AACpB,QAAM,EAAE,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA,GACvB,CAACC,GAAMC,CAAO,IAAIC,EAAS,EAAK;AAEtC,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC,EAAkB;AAAA,MAC7B,MAAM;AAAA,MACN,cAAYN,EAAO;AAAA,MAEnB,UAAA,gBAAAO;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,OAAO;AAAA,UACP,MAAAN;AAAA,UACA,cAAcC;AAAA,UAEd,UAAA;AAAA,YAAA,gBAAAE;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,SAAST,EAAO;AAAA,gBAChB,eAAe;AAAA,gBACf,aAAa;AAAA,gBACb,UAAU;AAAA,gBAEV,UAAA,gBAAAK,EAACG,EAAa,SAAb,EACG,UAAA,gBAAAH;AAAA,kBAACK;AAAA,kBAAA;AAAA,oBACG,MAAM;AAAA,oBACN,MAAM;AAAA,oBACN,cAAYV,EAAO;AAAA,oBACnB,SAAS;AAAA,oBACT,OAAO;AAAA,oBACP,MAAM;AAAA,oBACN,QAAQE;AAAA,oBACR,UAAAH;AAAA,kBAAA;AAAA,gBAAA,EACJ,CACJ;AAAA,cAAA;AAAA,YAAA;AAAA,8BAEHS,EAAa,SAAb,EAAqB,cAAYR,EAAO,aACrC,UAAA;AAAA,cAAA,gBAAAK,EAACM,GAAA,EAAQ,cAAc,OAAA,CAAQ;AAAA,cAC/B,gBAAAN,EAACO,GAAA,EAAU,cAAc,OAAA,CAAQ;AAAA,YAAA,EAAA,CACrC;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ;AAAA,EAAA;AAGZ;AAEAd,EAAU,cAAc;"}
1
+ {"version":3,"file":"LinkGroup.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/LinkGroup.tsx"],"sourcesContent":["import { LINK_GROUP_STYLES } from '@components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.ts'\r\nimport SetLink from '@components/forms/rich-text-editor/components/link-group/SetLink.tsx'\r\nimport UnsetLink from '@components/forms/rich-text-editor/components/link-group/UnsetLink.tsx'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { IconButton } from '@components/actions/icon-button'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useState } from 'react'\r\n\r\n/**\r\n * Toolbar group containing a dropdown with `SetLink` and `UnsetLink`\r\n * controls. Renders a link icon button trigger with the menu inside.\r\n */\r\nconst LinkGroup = () => {\r\n const { disabled, labels } = useRichTextEditorContext()\r\n const [open, setOpen] = useState(false)\r\n\r\n return (\r\n <div\r\n className={LINK_GROUP_STYLES.root}\r\n role={'group'}\r\n aria-label={labels.linkGroup}\r\n >\r\n <DropdownMenu\r\n modal={false}\r\n open={open}\r\n onOpenChange={setOpen}\r\n >\r\n <Tooltip\r\n content={labels.linkGroupTrigger}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <DropdownMenu.Trigger>\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.linkGroupTrigger}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n active={open}\r\n disabled={disabled}\r\n />\r\n </DropdownMenu.Trigger>\r\n </Tooltip>\r\n <DropdownMenu.Content aria-label={labels.linkOptions}>\r\n <SetLink presentation={'menu'} />\r\n <UnsetLink presentation={'menu'} />\r\n </DropdownMenu.Content>\r\n </DropdownMenu>\r\n </div>\r\n )\r\n}\r\n\r\nLinkGroup.displayName = 'RichTextEditor.LinkGroup'\r\n\r\nexport default LinkGroup\r\n"],"names":["LinkGroup","disabled","labels","useRichTextEditorContext","open","setOpen","useState","jsx","LINK_GROUP_STYLES","jsxs","DropdownMenu","Tooltip","IconButton","SetLink","UnsetLink"],"mappings":";;;;;;;;;;;;;;AAaA,MAAMA,IAAY,MAAM;AACpB,QAAM,EAAE,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA,GACvB,CAACC,GAAMC,CAAO,IAAIC,EAAS,EAAK;AAEtC,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC,EAAkB;AAAA,MAC7B,MAAM;AAAA,MACN,cAAYN,EAAO;AAAA,MAEnB,UAAA,gBAAAO;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,OAAO;AAAA,UACP,MAAAN;AAAA,UACA,cAAcC;AAAA,UAEd,UAAA;AAAA,YAAA,gBAAAE;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,SAAST,EAAO;AAAA,gBAChB,eAAe;AAAA,gBACf,aAAa;AAAA,gBACb,UAAU;AAAA,gBAEV,UAAA,gBAAAK,EAACG,EAAa,SAAb,EACG,UAAA,gBAAAH;AAAA,kBAACK;AAAA,kBAAA;AAAA,oBACG,MAAM;AAAA,oBACN,MAAM;AAAA,oBACN,cAAYV,EAAO;AAAA,oBACnB,SAAS;AAAA,oBACT,OAAO;AAAA,oBACP,MAAM;AAAA,oBACN,QAAQE;AAAA,oBACR,UAAAH;AAAA,kBAAA;AAAA,gBAAA,EACJ,CACJ;AAAA,cAAA;AAAA,YAAA;AAAA,8BAEHS,EAAa,SAAb,EAAqB,cAAYR,EAAO,aACrC,UAAA;AAAA,cAAA,gBAAAK,EAACM,GAAA,EAAQ,cAAc,OAAA,CAAQ;AAAA,cAC/B,gBAAAN,EAACO,GAAA,EAAU,cAAc,OAAA,CAAQ;AAAA,YAAA,EAAA,CACrC;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ;AAAA,EAAA;AAGZ;AAEAd,EAAU,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),a=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const k=require("../../context/RichTextEditor.context.cjs"),p=require("../../utils/richText.utils.cjs"),x=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),c=({presentation:u="icon"})=>{const{editor:e,disabled:l,labels:t}=k.useRichTextEditorContext();if(!e)return null;const r=()=>{const i=e.getAttributes("link").href,o=window.prompt(t.linkUrlPrompt,i??"https://"),s=o?p.normalizeRichTextUrl(o):void 0;s&&e.chain().focus().extendMarkRange("link").setLink({href:s}).run()};return u==="menu"?n.jsx(x.Item,{label:t.addOrEditLink,startIcon:"lucide:link",active:e.isActive("link"),onClick:r}):n.jsx(d,{content:t.addOrEditLink,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(a,{type:"button",icon:"lucide:link","aria-label":t.addOrEditLink,variant:"ghost",color:"primary",size:"sm",disabled:l,onMouseDown:i=>i.preventDefault(),onClick:r})})};c.displayName="RichTextEditor.SetLink";module.exports=c;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),a=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const k=require("../../context/RichTextEditor.context.cjs"),p=require("../../utils/richText.utils.cjs"),x=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),c=({presentation:u="icon"})=>{const{editor:e,disabled:l,labels:t}=k.useRichTextEditorContext();if(!e)return null;const r=()=>{const i=e.getAttributes("link").href,o=window.prompt(t.linkUrlPrompt,i??"https://"),s=o?p.normalizeRichTextUrl(o):void 0;s&&e.chain().focus().extendMarkRange("link").setLink({href:s}).run()};return u==="menu"?n.jsx(x.Item,{label:t.addOrEditLink,startIcon:"lucide:link",active:e.isActive("link"),onClick:r}):n.jsx(d,{content:t.addOrEditLink,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(a,{type:"button",icon:"lucide:link","aria-label":t.addOrEditLink,variant:"ghost",color:"primary",size:"sm",disabled:l,onMouseDown:i=>i.preventDefault(),onClick:r})})};c.displayName="RichTextEditor.SetLink";module.exports=c;
2
2
  //# sourceMappingURL=SetLink.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetLink.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/SetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { normalizeRichTextUrl } from '@components/forms/rich-text-editor/utils/richText.utils.ts'\r\nimport type { SetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/SetLink.props.ts'\r\n\r\nconst SetLink = ({ presentation = 'icon' }: SetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n const handleSetLink = () => {\r\n const currentHref = editor.getAttributes('link').href as string | undefined\r\n const nextHref = window.prompt(labels.linkUrlPrompt, currentHref ?? 'https://')\r\n const href = nextHref ? normalizeRichTextUrl(nextHref) : undefined\r\n\r\n if (href) {\r\n editor.chain().focus().extendMarkRange('link').setLink({ href }).run()\r\n }\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.addOrEditLink}\r\n startIcon={'lucide:link'}\r\n active={editor.isActive('link')}\r\n onClick={handleSetLink}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.addOrEditLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.addOrEditLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={handleSetLink}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nSetLink.displayName = 'RichTextEditor.SetLink'\r\n\r\nexport default SetLink\r\n"],"names":["SetLink","presentation","editor","disabled","labels","useRichTextEditorContext","handleSetLink","currentHref","nextHref","href","normalizeRichTextUrl","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":"irBAOMA,EAAU,CAAC,CAAE,aAAAC,EAAe,UAA2B,CACzD,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,OAAAC,CAAA,EAAWC,EAAAA,yBAAA,EAErC,GAAI,CAACH,EACD,OAAO,KAGX,MAAMI,EAAgB,IAAM,CACxB,MAAMC,EAAcL,EAAO,cAAc,MAAM,EAAE,KAC3CM,EAAW,OAAO,OAAOJ,EAAO,cAAeG,GAAe,UAAU,EACxEE,EAAOD,EAAWE,uBAAqBF,CAAQ,EAAI,OAErDC,GACAP,EAAO,MAAA,EAAQ,MAAA,EAAQ,gBAAgB,MAAM,EAAE,QAAQ,CAAE,KAAAO,CAAA,CAAM,EAAE,IAAA,CAEzE,EAEA,OAAIR,IAAiB,OAEbU,EAAAA,IAACC,EAAa,KAAb,CACG,MAAOR,EAAO,cACd,UAAW,cACX,OAAQF,EAAO,SAAS,MAAM,EAC9B,QAASI,CAAA,CAAA,EAMjBK,EAAAA,IAACE,EAAA,CACG,QAAST,EAAO,cAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAO,EAAAA,IAACG,EAAA,CACG,KAAM,SACN,KAAM,cACN,aAAYV,EAAO,cACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,SAAAD,EACA,YAAcY,GAAUA,EAAM,eAAA,EAC9B,QAAST,CAAA,CAAA,CACb,CAAA,CAGZ,EAEAN,EAAQ,YAAc"}
1
+ {"version":3,"file":"SetLink.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/SetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { normalizeRichTextUrl } from '@components/forms/rich-text-editor/utils/richText.utils.ts'\r\nimport type { SetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/SetLink.props.ts'\r\n\r\n/**\r\n * Toolbar control that prompts the user for a URL and applies a hyperlink to\r\n * the current selection. Use `presentation=\"icon\"` (default) for a standalone\r\n * icon button or `\"menu\"` for a `DropdownMenu.Item` inside `LinkGroup`.\r\n */\r\nconst SetLink = ({ presentation = 'icon' }: SetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n const handleSetLink = () => {\r\n const currentHref = editor.getAttributes('link').href as string | undefined\r\n const nextHref = window.prompt(labels.linkUrlPrompt, currentHref ?? 'https://')\r\n const href = nextHref ? normalizeRichTextUrl(nextHref) : undefined\r\n\r\n if (href) {\r\n editor.chain().focus().extendMarkRange('link').setLink({ href }).run()\r\n }\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.addOrEditLink}\r\n startIcon={'lucide:link'}\r\n active={editor.isActive('link')}\r\n onClick={handleSetLink}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.addOrEditLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.addOrEditLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={handleSetLink}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nSetLink.displayName = 'RichTextEditor.SetLink'\r\n\r\nexport default SetLink\r\n"],"names":["SetLink","presentation","editor","disabled","labels","useRichTextEditorContext","handleSetLink","currentHref","nextHref","href","normalizeRichTextUrl","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":"irBAYMA,EAAU,CAAC,CAAE,aAAAC,EAAe,UAA2B,CACzD,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,OAAAC,CAAA,EAAWC,EAAAA,yBAAA,EAErC,GAAI,CAACH,EACD,OAAO,KAGX,MAAMI,EAAgB,IAAM,CACxB,MAAMC,EAAcL,EAAO,cAAc,MAAM,EAAE,KAC3CM,EAAW,OAAO,OAAOJ,EAAO,cAAeG,GAAe,UAAU,EACxEE,EAAOD,EAAWE,uBAAqBF,CAAQ,EAAI,OAErDC,GACAP,EAAO,MAAA,EAAQ,MAAA,EAAQ,gBAAgB,MAAM,EAAE,QAAQ,CAAE,KAAAO,CAAA,CAAM,EAAE,IAAA,CAEzE,EAEA,OAAIR,IAAiB,OAEbU,EAAAA,IAACC,EAAa,KAAb,CACG,MAAOR,EAAO,cACd,UAAW,cACX,OAAQF,EAAO,SAAS,MAAM,EAC9B,QAASI,CAAA,CAAA,EAMjBK,EAAAA,IAACE,EAAA,CACG,QAAST,EAAO,cAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAO,EAAAA,IAACG,EAAA,CACG,KAAM,SACN,KAAM,cACN,aAAYV,EAAO,cACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,SAAAD,EACA,YAAcY,GAAUA,EAAM,eAAA,EAC9B,QAAST,CAAA,CAAA,CACb,CAAA,CAGZ,EAEAN,EAAQ,YAAc"}
@@ -1,4 +1,9 @@
1
1
  import { SetLinkProps } from './types/SetLink.props.ts';
2
+ /**
3
+ * Toolbar control that prompts the user for a URL and applies a hyperlink to
4
+ * the current selection. Use `presentation="icon"` (default) for a standalone
5
+ * icon button or `"menu"` for a `DropdownMenu.Item` inside `LinkGroup`.
6
+ */
2
7
  declare const SetLink: {
3
8
  ({ presentation }: SetLinkProps): import("react").JSX.Element | null;
4
9
  displayName: string;
@@ -4,7 +4,7 @@ import "../../../../actions/icon-button/styles/IconButton.css.js";
4
4
  import "../../../../overlay/dropdown-menu/index.js";
5
5
  import m from "../../../../overlay/tooltip/Tooltip.js";
6
6
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
7
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
7
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
8
8
  /* empty css */
9
9
  import { useRichTextEditorContext as p } from "../../context/RichTextEditor.context.js";
10
10
  import { normalizeRichTextUrl as s } from "../../utils/richText.utils.js";
@@ -1 +1 @@
1
- {"version":3,"file":"SetLink.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/SetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { normalizeRichTextUrl } from '@components/forms/rich-text-editor/utils/richText.utils.ts'\r\nimport type { SetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/SetLink.props.ts'\r\n\r\nconst SetLink = ({ presentation = 'icon' }: SetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n const handleSetLink = () => {\r\n const currentHref = editor.getAttributes('link').href as string | undefined\r\n const nextHref = window.prompt(labels.linkUrlPrompt, currentHref ?? 'https://')\r\n const href = nextHref ? normalizeRichTextUrl(nextHref) : undefined\r\n\r\n if (href) {\r\n editor.chain().focus().extendMarkRange('link').setLink({ href }).run()\r\n }\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.addOrEditLink}\r\n startIcon={'lucide:link'}\r\n active={editor.isActive('link')}\r\n onClick={handleSetLink}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.addOrEditLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.addOrEditLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={handleSetLink}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nSetLink.displayName = 'RichTextEditor.SetLink'\r\n\r\nexport default SetLink\r\n"],"names":["SetLink","presentation","editor","disabled","labels","useRichTextEditorContext","handleSetLink","currentHref","nextHref","href","normalizeRichTextUrl","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":";;;;;;;;;;;AAOA,MAAMA,IAAU,CAAC,EAAE,cAAAC,IAAe,aAA2B;AACzD,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA;AAErC,MAAI,CAACH;AACD,WAAO;AAGX,QAAMI,IAAgB,MAAM;AACxB,UAAMC,IAAcL,EAAO,cAAc,MAAM,EAAE,MAC3CM,IAAW,OAAO,OAAOJ,EAAO,eAAeG,KAAe,UAAU,GACxEE,IAAOD,IAAWE,EAAqBF,CAAQ,IAAI;AAEzD,IAAIC,KACAP,EAAO,MAAA,EAAQ,MAAA,EAAQ,gBAAgB,MAAM,EAAE,QAAQ,EAAE,MAAAO,EAAA,CAAM,EAAE,IAAA;AAAA,EAEzE;AAEA,SAAIR,MAAiB,SAEb,gBAAAU;AAAA,IAACC,EAAa;AAAA,IAAb;AAAA,MACG,OAAOR,EAAO;AAAA,MACd,WAAW;AAAA,MACX,QAAQF,EAAO,SAAS,MAAM;AAAA,MAC9B,SAASI;AAAA,IAAA;AAAA,EAAA,IAMjB,gBAAAK;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,SAAST,EAAO;AAAA,MAChB,eAAe;AAAA,MACf,aAAa;AAAA,MACb,UAAU;AAAA,MAEV,UAAA,gBAAAO;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAM;AAAA,UACN,MAAM;AAAA,UACN,cAAYV,EAAO;AAAA,UACnB,SAAS;AAAA,UACT,OAAO;AAAA,UACP,MAAM;AAAA,UACN,UAAAD;AAAA,UACA,aAAa,CAACY,MAAUA,EAAM,eAAA;AAAA,UAC9B,SAAST;AAAA,QAAA;AAAA,MAAA;AAAA,IACb;AAAA,EAAA;AAGZ;AAEAN,EAAQ,cAAc;"}
1
+ {"version":3,"file":"SetLink.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/SetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport { normalizeRichTextUrl } from '@components/forms/rich-text-editor/utils/richText.utils.ts'\r\nimport type { SetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/SetLink.props.ts'\r\n\r\n/**\r\n * Toolbar control that prompts the user for a URL and applies a hyperlink to\r\n * the current selection. Use `presentation=\"icon\"` (default) for a standalone\r\n * icon button or `\"menu\"` for a `DropdownMenu.Item` inside `LinkGroup`.\r\n */\r\nconst SetLink = ({ presentation = 'icon' }: SetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n const handleSetLink = () => {\r\n const currentHref = editor.getAttributes('link').href as string | undefined\r\n const nextHref = window.prompt(labels.linkUrlPrompt, currentHref ?? 'https://')\r\n const href = nextHref ? normalizeRichTextUrl(nextHref) : undefined\r\n\r\n if (href) {\r\n editor.chain().focus().extendMarkRange('link').setLink({ href }).run()\r\n }\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.addOrEditLink}\r\n startIcon={'lucide:link'}\r\n active={editor.isActive('link')}\r\n onClick={handleSetLink}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.addOrEditLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:link'}\r\n aria-label={labels.addOrEditLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={handleSetLink}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nSetLink.displayName = 'RichTextEditor.SetLink'\r\n\r\nexport default SetLink\r\n"],"names":["SetLink","presentation","editor","disabled","labels","useRichTextEditorContext","handleSetLink","currentHref","nextHref","href","normalizeRichTextUrl","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":";;;;;;;;;;;AAYA,MAAMA,IAAU,CAAC,EAAE,cAAAC,IAAe,aAA2B;AACzD,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA;AAErC,MAAI,CAACH;AACD,WAAO;AAGX,QAAMI,IAAgB,MAAM;AACxB,UAAMC,IAAcL,EAAO,cAAc,MAAM,EAAE,MAC3CM,IAAW,OAAO,OAAOJ,EAAO,eAAeG,KAAe,UAAU,GACxEE,IAAOD,IAAWE,EAAqBF,CAAQ,IAAI;AAEzD,IAAIC,KACAP,EAAO,MAAA,EAAQ,MAAA,EAAQ,gBAAgB,MAAM,EAAE,QAAQ,EAAE,MAAAO,EAAA,CAAM,EAAE,IAAA;AAAA,EAEzE;AAEA,SAAIR,MAAiB,SAEb,gBAAAU;AAAA,IAACC,EAAa;AAAA,IAAb;AAAA,MACG,OAAOR,EAAO;AAAA,MACd,WAAW;AAAA,MACX,QAAQF,EAAO,SAAS,MAAM;AAAA,MAC9B,SAASI;AAAA,IAAA;AAAA,EAAA,IAMjB,gBAAAK;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,SAAST,EAAO;AAAA,MAChB,eAAe;AAAA,MACf,aAAa;AAAA,MACb,UAAU;AAAA,MAEV,UAAA,gBAAAO;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAM;AAAA,UACN,MAAM;AAAA,UACN,cAAYV,EAAO;AAAA,UACnB,SAAS;AAAA,UACT,OAAO;AAAA,UACP,MAAM;AAAA,UACN,UAAAD;AAAA,UACA,aAAa,CAACY,MAAUA,EAAM,eAAA;AAAA,UAC9B,SAAST;AAAA,QAAA;AAAA,MAAA;AAAA,IACb;AAAA,EAAA;AAGZ;AAEAN,EAAQ,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";require('../../../../../ui-kit62.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),u=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const c=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const l=require("../../context/RichTextEditor.context.cjs"),a=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),t=({presentation:r="icon"})=>{const{editor:e,disabled:o,labels:i}=l.useRichTextEditorContext();return e?r==="menu"?n.jsx(a.Item,{label:i.removeLink,startIcon:"lucide:unlink",disabled:!e.isActive("link"),onClick:()=>e.chain().focus().unsetLink().run()}):n.jsx(c,{content:i.removeLink,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(u,{type:"button",icon:"lucide:unlink","aria-label":i.removeLink,variant:"ghost",color:"primary",size:"sm",disabled:o||!e.isActive("link"),onMouseDown:s=>s.preventDefault(),onClick:()=>e.chain().focus().unsetLink().run()})}):null};t.displayName="RichTextEditor.UnsetLink";module.exports=t;
1
+ "use strict";require('../../../../../ui-kit32.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),u=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const c=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const l=require("../../context/RichTextEditor.context.cjs"),a=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),t=({presentation:r="icon"})=>{const{editor:e,disabled:o,labels:i}=l.useRichTextEditorContext();return e?r==="menu"?n.jsx(a.Item,{label:i.removeLink,startIcon:"lucide:unlink",disabled:!e.isActive("link"),onClick:()=>e.chain().focus().unsetLink().run()}):n.jsx(c,{content:i.removeLink,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(u,{type:"button",icon:"lucide:unlink","aria-label":i.removeLink,variant:"ghost",color:"primary",size:"sm",disabled:o||!e.isActive("link"),onMouseDown:s=>s.preventDefault(),onClick:()=>e.chain().focus().unsetLink().run()})}):null};t.displayName="RichTextEditor.UnsetLink";module.exports=t;
2
2
  //# sourceMappingURL=UnsetLink.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsetLink.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/UnsetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { UnsetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/UnsetLink.props.ts'\r\n\r\nconst UnsetLink = ({ presentation = 'icon' }: UnsetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.removeLink}\r\n startIcon={'lucide:unlink'}\r\n disabled={!editor.isActive('link')}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.removeLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:unlink'}\r\n aria-label={labels.removeLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('link')}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nUnsetLink.displayName = 'RichTextEditor.UnsetLink'\r\n\r\nexport default UnsetLink\r\n"],"names":["UnsetLink","presentation","editor","disabled","labels","useRichTextEditorContext","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":"qoBAMMA,EAAY,CAAC,CAAE,aAAAC,EAAe,UAA6B,CAC7D,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,OAAAC,CAAA,EAAWC,EAAAA,yBAAA,EAErC,OAAKH,EAIDD,IAAiB,OAEbK,EAAAA,IAACC,EAAa,KAAb,CACG,MAAOH,EAAO,WACd,UAAW,gBACX,SAAU,CAACF,EAAO,SAAS,MAAM,EACjC,QAAS,IAAMA,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA,CAAI,CAAA,EAM9DI,EAAAA,IAACE,EAAA,CACG,QAASJ,EAAO,WAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAE,EAAAA,IAACG,EAAA,CACG,KAAM,SACN,KAAM,gBACN,aAAYL,EAAO,WACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,SAAUD,GAAY,CAACD,EAAO,SAAS,MAAM,EAC7C,YAAcQ,GAAUA,EAAM,eAAA,EAC9B,QAAS,IAAMR,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA,CAAI,CAAA,CAC1D,CAAA,EA/BG,IAkCf,EAEAF,EAAU,YAAc"}
1
+ {"version":3,"file":"UnsetLink.cjs","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/UnsetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { UnsetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/UnsetLink.props.ts'\r\n\r\n/**\r\n * Toolbar control that removes the hyperlink from the current selection.\r\n * Use `presentation=\"icon\"` (default) for a standalone icon button or\r\n * `\"menu\"` for a `DropdownMenu.Item` inside `LinkGroup`. Disabled when\r\n * the cursor is not on a link.\r\n */\r\nconst UnsetLink = ({ presentation = 'icon' }: UnsetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.removeLink}\r\n startIcon={'lucide:unlink'}\r\n disabled={!editor.isActive('link')}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.removeLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:unlink'}\r\n aria-label={labels.removeLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('link')}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nUnsetLink.displayName = 'RichTextEditor.UnsetLink'\r\n\r\nexport default UnsetLink\r\n"],"names":["UnsetLink","presentation","editor","disabled","labels","useRichTextEditorContext","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":"qoBAYMA,EAAY,CAAC,CAAE,aAAAC,EAAe,UAA6B,CAC7D,KAAM,CAAE,OAAAC,EAAQ,SAAAC,EAAU,OAAAC,CAAA,EAAWC,EAAAA,yBAAA,EAErC,OAAKH,EAIDD,IAAiB,OAEbK,EAAAA,IAACC,EAAa,KAAb,CACG,MAAOH,EAAO,WACd,UAAW,gBACX,SAAU,CAACF,EAAO,SAAS,MAAM,EACjC,QAAS,IAAMA,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA,CAAI,CAAA,EAM9DI,EAAAA,IAACE,EAAA,CACG,QAASJ,EAAO,WAChB,cAAe,IACf,YAAa,GACb,SAAU,MAEV,SAAAE,EAAAA,IAACG,EAAA,CACG,KAAM,SACN,KAAM,gBACN,aAAYL,EAAO,WACnB,QAAS,QACT,MAAO,UACP,KAAM,KACN,SAAUD,GAAY,CAACD,EAAO,SAAS,MAAM,EAC7C,YAAcQ,GAAUA,EAAM,eAAA,EAC9B,QAAS,IAAMR,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA,CAAI,CAAA,CAC1D,CAAA,EA/BG,IAkCf,EAEAF,EAAU,YAAc"}
@@ -1,4 +1,10 @@
1
1
  import { UnsetLinkProps } from './types/UnsetLink.props.ts';
2
+ /**
3
+ * Toolbar control that removes the hyperlink from the current selection.
4
+ * Use `presentation="icon"` (default) for a standalone icon button or
5
+ * `"menu"` for a `DropdownMenu.Item` inside `LinkGroup`. Disabled when
6
+ * the cursor is not on a link.
7
+ */
2
8
  declare const UnsetLink: {
3
9
  ({ presentation }: UnsetLinkProps): import("react").JSX.Element | null;
4
10
  displayName: string;
@@ -4,7 +4,7 @@ import "../../../../actions/icon-button/styles/IconButton.css.js";
4
4
  import "../../../../overlay/dropdown-menu/index.js";
5
5
  import s from "../../../../overlay/tooltip/Tooltip.js";
6
6
  import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
7
- import '../../../../../ui-kit62.css';import '../../../../../ui-kit.css';/* empty css */
7
+ import '../../../../../ui-kit32.css';import '../../../../../ui-kit.css';/* empty css */
8
8
  /* empty css */
9
9
  import { useRichTextEditorContext as u } from "../../context/RichTextEditor.context.js";
10
10
  import m from "../../../../overlay/dropdown-menu/DropdownMenu.js";
@@ -1 +1 @@
1
- {"version":3,"file":"UnsetLink.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/UnsetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { UnsetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/UnsetLink.props.ts'\r\n\r\nconst UnsetLink = ({ presentation = 'icon' }: UnsetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.removeLink}\r\n startIcon={'lucide:unlink'}\r\n disabled={!editor.isActive('link')}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.removeLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:unlink'}\r\n aria-label={labels.removeLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('link')}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nUnsetLink.displayName = 'RichTextEditor.UnsetLink'\r\n\r\nexport default UnsetLink\r\n"],"names":["UnsetLink","presentation","editor","disabled","labels","useRichTextEditorContext","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":";;;;;;;;;;AAMA,MAAMA,IAAY,CAAC,EAAE,cAAAC,IAAe,aAA6B;AAC7D,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA;AAErC,SAAKH,IAIDD,MAAiB,SAEb,gBAAAK;AAAA,IAACC,EAAa;AAAA,IAAb;AAAA,MACG,OAAOH,EAAO;AAAA,MACd,WAAW;AAAA,MACX,UAAU,CAACF,EAAO,SAAS,MAAM;AAAA,MACjC,SAAS,MAAMA,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,IAAI;AAAA,EAAA,IAM9D,gBAAAI;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,SAASJ,EAAO;AAAA,MAChB,eAAe;AAAA,MACf,aAAa;AAAA,MACb,UAAU;AAAA,MAEV,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAM;AAAA,UACN,MAAM;AAAA,UACN,cAAYL,EAAO;AAAA,UACnB,SAAS;AAAA,UACT,OAAO;AAAA,UACP,MAAM;AAAA,UACN,UAAUD,KAAY,CAACD,EAAO,SAAS,MAAM;AAAA,UAC7C,aAAa,CAACQ,MAAUA,EAAM,eAAA;AAAA,UAC9B,SAAS,MAAMR,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,QAAI;AAAA,MAAA;AAAA,IAC1D;AAAA,EAAA,IA/BG;AAkCf;AAEAF,EAAU,cAAc;"}
1
+ {"version":3,"file":"UnsetLink.js","sources":["../../../../../../src/components/forms/rich-text-editor/components/link-group/UnsetLink.tsx"],"sourcesContent":["import { IconButton } from '@components/actions/icon-button'\r\nimport { DropdownMenu } from '@components/overlay/dropdown-menu'\r\nimport { Tooltip } from '@components/overlay/tooltip'\r\nimport { useRichTextEditorContext } from '@components/forms/rich-text-editor/context/RichTextEditor.context.ts'\r\nimport type { UnsetLinkProps } from '@components/forms/rich-text-editor/components/link-group/types/UnsetLink.props.ts'\r\n\r\n/**\r\n * Toolbar control that removes the hyperlink from the current selection.\r\n * Use `presentation=\"icon\"` (default) for a standalone icon button or\r\n * `\"menu\"` for a `DropdownMenu.Item` inside `LinkGroup`. Disabled when\r\n * the cursor is not on a link.\r\n */\r\nconst UnsetLink = ({ presentation = 'icon' }: UnsetLinkProps) => {\r\n const { editor, disabled, labels } = useRichTextEditorContext()\r\n\r\n if (!editor) {\r\n return null\r\n }\r\n\r\n if (presentation === 'menu') {\r\n return (\r\n <DropdownMenu.Item\r\n label={labels.removeLink}\r\n startIcon={'lucide:unlink'}\r\n disabled={!editor.isActive('link')}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n )\r\n }\r\n\r\n return (\r\n <Tooltip\r\n content={labels.removeLink}\r\n delayDuration={700}\r\n openOnFocus={false}\r\n position={'top'}\r\n >\r\n <IconButton\r\n type={'button'}\r\n icon={'lucide:unlink'}\r\n aria-label={labels.removeLink}\r\n variant={'ghost'}\r\n color={'primary'}\r\n size={'sm'}\r\n disabled={disabled || !editor.isActive('link')}\r\n onMouseDown={(event) => event.preventDefault()}\r\n onClick={() => editor.chain().focus().unsetLink().run()}\r\n />\r\n </Tooltip>\r\n )\r\n}\r\n\r\nUnsetLink.displayName = 'RichTextEditor.UnsetLink'\r\n\r\nexport default UnsetLink\r\n"],"names":["UnsetLink","presentation","editor","disabled","labels","useRichTextEditorContext","jsx","DropdownMenu","Tooltip","IconButton","event"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAY,CAAC,EAAE,cAAAC,IAAe,aAA6B;AAC7D,QAAM,EAAE,QAAAC,GAAQ,UAAAC,GAAU,QAAAC,EAAA,IAAWC,EAAA;AAErC,SAAKH,IAIDD,MAAiB,SAEb,gBAAAK;AAAA,IAACC,EAAa;AAAA,IAAb;AAAA,MACG,OAAOH,EAAO;AAAA,MACd,WAAW;AAAA,MACX,UAAU,CAACF,EAAO,SAAS,MAAM;AAAA,MACjC,SAAS,MAAMA,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,IAAI;AAAA,EAAA,IAM9D,gBAAAI;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,SAASJ,EAAO;AAAA,MAChB,eAAe;AAAA,MACf,aAAa;AAAA,MACb,UAAU;AAAA,MAEV,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAM;AAAA,UACN,MAAM;AAAA,UACN,cAAYL,EAAO;AAAA,UACnB,SAAS;AAAA,UACT,OAAO;AAAA,UACP,MAAM;AAAA,UACN,UAAUD,KAAY,CAACD,EAAO,SAAS,MAAM;AAAA,UAC7C,aAAa,CAACQ,MAAUA,EAAM,eAAA;AAAA,UAC9B,SAAS,MAAMR,EAAO,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,QAAI;AAAA,MAAA;AAAA,IAC1D;AAAA,EAAA,IA/BG;AAkCf;AAEAF,EAAU,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit121.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_11omis70"};exports.LINK_GROUP_STYLES=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit129.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_11omis70"};exports.LINK_GROUP_STYLES=e;
2
2
  //# sourceMappingURL=LinkGroup.css.cjs.map