@baseline-ui/core 0.59.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (478) hide show
  1. package/Acknowledgements.md +5840 -12848
  2. package/dist/components/Accordion/Accordion.css.d.ts +44 -0
  3. package/dist/components/Accordion/Accordion.d.ts +11 -0
  4. package/dist/components/Accordion/Accordion.types.d.ts +70 -0
  5. package/dist/components/Accordion/AccordionBase.d.ts +5 -0
  6. package/dist/components/Accordion/AccordionHeader.d.ts +6 -0
  7. package/dist/components/Accordion/AccordionItem.d.ts +3 -0
  8. package/dist/components/Accordion/index.d.ts +3 -0
  9. package/dist/components/ActionButton/ActionButton.css.d.ts +216 -0
  10. package/dist/components/ActionButton/ActionButton.d.ts +4 -0
  11. package/dist/components/ActionButton/ActionButton.types.d.ts +44 -0
  12. package/dist/components/ActionButton/index.d.ts +2 -0
  13. package/dist/components/ActionGroup/ActionGroup.css.d.ts +2 -0
  14. package/dist/components/ActionGroup/ActionGroup.d.ts +11 -0
  15. package/dist/components/ActionGroup/ActionGroup.types.d.ts +43 -0
  16. package/dist/components/ActionGroup/index.d.ts +3 -0
  17. package/dist/components/ActionIconButton/ActionIconButton.css.d.ts +116 -0
  18. package/dist/components/ActionIconButton/ActionIconButton.d.ts +3 -0
  19. package/dist/components/ActionIconButton/ActionIconButton.types.d.ts +56 -0
  20. package/dist/components/ActionIconButton/index.d.ts +2 -0
  21. package/dist/components/Actionable/Actionable.css.d.ts +2 -0
  22. package/dist/components/Actionable/Actionable.d.ts +3 -0
  23. package/dist/components/Actionable/Actionable.types.d.ts +15 -0
  24. package/dist/components/Actionable/index.d.ts +3 -0
  25. package/dist/components/AlertDialog/AlertDialog.css.d.ts +26 -0
  26. package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
  27. package/dist/components/AlertDialog/AlertDialog.types.d.ts +77 -0
  28. package/dist/components/AlertDialog/index.d.ts +3 -0
  29. package/dist/components/AudioPlayer/AudioPlayer.css.d.ts +3 -0
  30. package/dist/components/AudioPlayer/AudioPlayer.d.ts +3 -0
  31. package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +27 -0
  32. package/dist/components/AudioPlayer/index.d.ts +3 -0
  33. package/dist/components/Avatar/Avatar.css.d.ts +19 -0
  34. package/dist/components/Avatar/Avatar.d.ts +3 -0
  35. package/dist/components/Avatar/Avatar.types.d.ts +31 -0
  36. package/dist/components/Avatar/index.d.ts +2 -0
  37. package/dist/components/Box/Box.d.ts +3 -0
  38. package/dist/components/Box/Box.types.d.ts +12 -0
  39. package/dist/components/Box/index.d.ts +3 -0
  40. package/dist/components/ButtonSelect/ButtonSelect.css.d.ts +3 -0
  41. package/dist/components/ButtonSelect/ButtonSelect.d.ts +3 -0
  42. package/dist/components/ButtonSelect/ButtonSelect.types.d.ts +56 -0
  43. package/dist/components/ButtonSelect/index.d.ts +3 -0
  44. package/dist/components/Calendar/Calendar.css.d.ts +135 -0
  45. package/dist/components/Calendar/Calendar.d.ts +4 -0
  46. package/dist/components/Calendar/Calendar.types.d.ts +22 -0
  47. package/dist/components/Calendar/CalendarCell.d.ts +9 -0
  48. package/dist/components/Calendar/CalendarHeader.d.ts +6 -0
  49. package/dist/components/Calendar/RangeCalendar.d.ts +4 -0
  50. package/dist/components/Calendar/index.d.ts +3 -0
  51. package/dist/components/Calendar/intl/index.d.ts +267 -0
  52. package/dist/components/Checkbox/Checkbox.css.d.ts +103 -0
  53. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  54. package/dist/components/Checkbox/Checkbox.types.d.ts +17 -0
  55. package/dist/components/Checkbox/index.d.ts +2 -0
  56. package/dist/components/Code/Code.css.d.ts +2 -0
  57. package/dist/components/Code/Code.d.ts +3 -0
  58. package/dist/components/Code/Code.types.d.ts +6 -0
  59. package/dist/components/Code/index.d.ts +3 -0
  60. package/dist/components/ColorInput/ColorArea.d.ts +4 -0
  61. package/dist/components/ColorInput/ColorFieldInput.d.ts +13 -0
  62. package/dist/components/ColorInput/ColorInput.css.d.ts +165 -0
  63. package/dist/components/ColorInput/ColorInput.d.ts +3 -0
  64. package/dist/components/ColorInput/ColorInput.types.d.ts +137 -0
  65. package/dist/components/ColorInput/ColorInputButton.d.ts +21 -0
  66. package/dist/components/ColorInput/ColorPresetList.d.ts +16 -0
  67. package/dist/components/ColorInput/ColorSlider.d.ts +3 -0
  68. package/dist/components/ColorInput/CustomColors.d.ts +15 -0
  69. package/dist/components/ColorInput/IconColorInput.d.ts +3 -0
  70. package/dist/components/ColorInput/Picker.d.ts +8 -0
  71. package/dist/components/ColorInput/__tests__/data.d.ts +8 -0
  72. package/dist/components/ColorInput/hooks/useColorTrigger.d.ts +13 -0
  73. package/dist/components/ColorInput/index.d.ts +4 -0
  74. package/dist/components/ColorInput/intl/index.d.ts +399 -0
  75. package/dist/components/ColorInput/utils.d.ts +44 -0
  76. package/dist/components/ColorSwatch/ColorSwatch.css.d.ts +39 -0
  77. package/dist/components/ColorSwatch/ColorSwatch.d.ts +3 -0
  78. package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +44 -0
  79. package/dist/components/ColorSwatch/index.d.ts +2 -0
  80. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.css.d.ts +2 -0
  81. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.d.ts +3 -0
  82. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.types.d.ts +46 -0
  83. package/dist/components/ColorSwatchPicker/index.d.ts +3 -0
  84. package/dist/components/ComboBox/ComboBox.css.d.ts +203 -0
  85. package/dist/components/ComboBox/ComboBox.d.ts +3 -0
  86. package/dist/components/ComboBox/ComboBox.types.d.ts +96 -0
  87. package/dist/components/ComboBox/index.d.ts +3 -0
  88. package/dist/components/ComboBox/useOnValueChange.d.ts +6 -0
  89. package/dist/components/DateField/DateField.d.ts +6 -0
  90. package/dist/components/DateField/DateField.types.d.ts +17 -0
  91. package/dist/components/DateField/index.d.ts +3 -0
  92. package/dist/components/DateField/intl/index.d.ts +102 -0
  93. package/dist/components/DateFormat/DateFormat.d.ts +3 -0
  94. package/dist/components/DateFormat/DateFormat.types.d.ts +5 -0
  95. package/dist/components/DateFormat/index.d.ts +2 -0
  96. package/dist/components/DeviceProvider/DeviceProvider.d.ts +6 -0
  97. package/dist/components/DeviceProvider/DeviceProvider.types.d.ts +12 -0
  98. package/dist/components/DeviceProvider/index.d.ts +2 -0
  99. package/dist/components/Dialog/Dialog.css.d.ts +53 -0
  100. package/dist/components/Dialog/Dialog.d.ts +6 -0
  101. package/dist/components/Dialog/Dialog.types.d.ts +37 -0
  102. package/dist/components/Dialog/DialogTitle.d.ts +3 -0
  103. package/dist/components/Dialog/index.d.ts +3 -0
  104. package/dist/components/Dialog/useDeferredLabel.d.ts +7 -0
  105. package/dist/components/Disclosure/Disclosure.css.d.ts +116 -0
  106. package/dist/components/Disclosure/Disclosure.d.ts +3 -0
  107. package/dist/components/Disclosure/Disclosure.types.d.ts +30 -0
  108. package/dist/components/Disclosure/index.d.ts +3 -0
  109. package/dist/components/DomNodeRenderer/DomNodeRenderer.d.ts +3 -0
  110. package/dist/components/DomNodeRenderer/DomNodeRenderer.types.d.ts +11 -0
  111. package/dist/components/DomNodeRenderer/index.d.ts +2 -0
  112. package/dist/components/Drawer/Drawer.css.d.ts +31 -0
  113. package/dist/components/Drawer/Drawer.d.ts +3 -0
  114. package/dist/components/Drawer/Drawer.types.d.ts +24 -0
  115. package/dist/components/Drawer/index.d.ts +3 -0
  116. package/dist/components/Editor/Editor.css.d.ts +131 -0
  117. package/dist/components/Editor/Editor.d.ts +3 -0
  118. package/dist/components/Editor/Editor.types.d.ts +159 -0
  119. package/dist/components/Editor/EditorToolbar.d.ts +15 -0
  120. package/dist/components/Editor/HelpDialog.d.ts +5 -0
  121. package/dist/components/Editor/RichEditor.d.ts +24 -0
  122. package/dist/components/Editor/elements/AddLink.d.ts +10 -0
  123. package/dist/components/Editor/elements/Mention.d.ts +46 -0
  124. package/dist/components/Editor/elements/Paragraph.d.ts +2 -0
  125. package/dist/components/Editor/elements/PlainEditor.d.ts +11 -0
  126. package/dist/components/Editor/index.d.ts +2 -0
  127. package/dist/components/Editor/utils.d.ts +93 -0
  128. package/dist/components/FileUpload/FileUpload.css.d.ts +69 -0
  129. package/dist/components/FileUpload/FileUpload.d.ts +3 -0
  130. package/dist/components/FileUpload/FileUpload.types.d.ts +38 -0
  131. package/dist/components/FileUpload/hooks/useFileUpload.d.ts +22 -0
  132. package/dist/components/FileUpload/index.d.ts +2 -0
  133. package/dist/components/FrameProvider/FrameProvider.d.ts +20 -0
  134. package/dist/components/FrameProvider/FrameProvider.types.d.ts +40 -0
  135. package/dist/components/FrameProvider/index.d.ts +2 -0
  136. package/dist/components/FreehandCanvas/FreehandCanvas.css.d.ts +78 -0
  137. package/dist/components/FreehandCanvas/FreehandCanvas.d.ts +4 -0
  138. package/dist/components/FreehandCanvas/FreehandCanvas.types.d.ts +116 -0
  139. package/dist/components/FreehandCanvas/hooks/usePathsData.d.ts +27 -0
  140. package/dist/components/FreehandCanvas/index.d.ts +2 -0
  141. package/dist/components/FreehandCanvas/intl/index.d.ts +135 -0
  142. package/dist/components/GridList/GridList.css.d.ts +22 -0
  143. package/dist/components/GridList/GridList.d.ts +3 -0
  144. package/dist/components/GridList/GridList.types.d.ts +84 -0
  145. package/dist/components/GridList/GridListItem.d.ts +20 -0
  146. package/dist/components/GridList/index.d.ts +3 -0
  147. package/dist/components/Group/Group.d.ts +3 -0
  148. package/dist/components/Group/Group.types.d.ts +19 -0
  149. package/dist/components/Group/index.d.ts +2 -0
  150. package/dist/components/I18nProvider/I18Provider.types.d.ts +11 -0
  151. package/dist/components/I18nProvider/I18nProvider.css.d.ts +1 -0
  152. package/dist/components/I18nProvider/I18nProvider.d.ts +10 -0
  153. package/dist/components/I18nProvider/index.d.ts +4 -0
  154. package/dist/components/Icon/Icon.d.ts +4 -0
  155. package/dist/components/Icon/Icon.types.d.ts +36 -0
  156. package/dist/components/Icon/index.d.ts +2 -0
  157. package/dist/components/ImageDropZone/ImageDropZone.css.d.ts +76 -0
  158. package/dist/components/ImageDropZone/ImageDropZone.d.ts +3 -0
  159. package/dist/components/ImageDropZone/ImageDropZone.types.d.ts +50 -0
  160. package/dist/components/ImageDropZone/index.d.ts +2 -0
  161. package/dist/components/ImageDropZone/intl/index.d.ts +135 -0
  162. package/dist/components/ImageGallery/AdaptiveText.d.ts +13 -0
  163. package/dist/components/ImageGallery/ImageGallery.css.d.ts +86 -0
  164. package/dist/components/ImageGallery/ImageGallery.d.ts +18 -0
  165. package/dist/components/ImageGallery/ImageGallery.types.d.ts +130 -0
  166. package/dist/components/ImageGallery/ImageGalleryDragPreview.d.ts +22 -0
  167. package/dist/components/ImageGallery/ImageGalleryItem.d.ts +3 -0
  168. package/dist/components/ImageGallery/index.d.ts +2 -0
  169. package/dist/components/ImageGallery/utils.d.ts +10 -0
  170. package/dist/components/InlineAlert/InlineAlert.css.d.ts +214 -0
  171. package/dist/components/InlineAlert/InlineAlert.d.ts +3 -0
  172. package/dist/components/InlineAlert/InlineAlert.types.d.ts +38 -0
  173. package/dist/components/InlineAlert/index.d.ts +2 -0
  174. package/dist/components/InlineAlert/intl/index.d.ts +102 -0
  175. package/dist/components/InlineToolbar/InlineToolbar.css.d.ts +50 -0
  176. package/dist/components/InlineToolbar/InlineToolbar.d.ts +3 -0
  177. package/dist/components/InlineToolbar/InlineToolbar.types.d.ts +63 -0
  178. package/dist/components/InlineToolbar/InlineToolbarButton.d.ts +3 -0
  179. package/dist/components/InlineToolbar/index.d.ts +2 -0
  180. package/dist/components/Kbd/Kbd.css.d.ts +1 -0
  181. package/dist/components/Kbd/Kbd.d.ts +3 -0
  182. package/dist/components/Kbd/Kbd.types.d.ts +21 -0
  183. package/dist/components/Kbd/index.d.ts +2 -0
  184. package/dist/components/Link/Link.css.d.ts +41 -0
  185. package/dist/components/Link/Link.d.ts +3 -0
  186. package/dist/components/Link/Link.types.d.ts +26 -0
  187. package/dist/components/Link/index.d.ts +2 -0
  188. package/dist/components/ListBox/DefaultListOption.d.ts +22 -0
  189. package/dist/components/ListBox/DropIndicator.d.ts +11 -0
  190. package/dist/components/ListBox/ListBox.css.d.ts +91 -0
  191. package/dist/components/ListBox/ListBox.d.ts +6 -0
  192. package/dist/components/ListBox/ListBox.types.d.ts +104 -0
  193. package/dist/components/ListBox/ListBoxSection.d.ts +14 -0
  194. package/dist/components/ListBox/ListOption.d.ts +17 -0
  195. package/dist/components/ListBox/hooks/useDragAndDrop.d.ts +3 -0
  196. package/dist/components/ListBox/hooks/useDragAutoScroll.d.ts +5 -0
  197. package/dist/components/ListBox/hooks/useDragDrop.d.ts +33 -0
  198. package/dist/components/ListBox/hooks/useSharedList.d.ts +8 -0
  199. package/dist/components/ListBox/index.d.ts +4 -0
  200. package/dist/components/Markdown/Markdown.css.d.ts +3 -0
  201. package/dist/components/Markdown/Markdown.d.ts +3 -0
  202. package/dist/components/Markdown/Markdown.types.d.ts +7 -0
  203. package/dist/components/Markdown/index.d.ts +3 -0
  204. package/dist/components/Menu/Menu.css.d.ts +2 -0
  205. package/dist/components/Menu/Menu.d.ts +3 -0
  206. package/dist/components/Menu/Menu.types.d.ts +63 -0
  207. package/dist/components/Menu/index.d.ts +2 -0
  208. package/dist/components/MessageFormat/MessageFormat.d.ts +3 -0
  209. package/dist/components/MessageFormat/MessageFormat.types.d.ts +14 -0
  210. package/dist/components/MessageFormat/index.d.ts +2 -0
  211. package/dist/components/Modal/Modal.css.d.ts +39 -0
  212. package/dist/components/Modal/Modal.d.ts +11 -0
  213. package/dist/components/Modal/Modal.types.d.ts +70 -0
  214. package/dist/components/Modal/ModalClose.d.ts +4 -0
  215. package/dist/components/Modal/ModalContent.d.ts +13 -0
  216. package/dist/components/Modal/ModalContentCore.d.ts +3 -0
  217. package/dist/components/Modal/ModalTrigger.d.ts +4 -0
  218. package/dist/components/Modal/hooks/useDialogPosition.d.ts +13 -0
  219. package/dist/components/Modal/index.d.ts +5 -0
  220. package/dist/components/NumberFormat/NumberFormat.d.ts +3 -0
  221. package/dist/components/NumberFormat/NumberFormat.types.d.ts +5 -0
  222. package/dist/components/NumberFormat/index.d.ts +2 -0
  223. package/dist/components/NumberInput/NumberInput.css.d.ts +9 -0
  224. package/dist/components/NumberInput/NumberInput.d.ts +3 -0
  225. package/dist/components/NumberInput/NumberInput.types.d.ts +26 -0
  226. package/dist/components/NumberInput/index.d.ts +2 -0
  227. package/dist/components/Pagination/Pagination.css.d.ts +84 -0
  228. package/dist/components/Pagination/Pagination.d.ts +3 -0
  229. package/dist/components/Pagination/Pagination.types.d.ts +25 -0
  230. package/dist/components/Pagination/index.d.ts +2 -0
  231. package/dist/components/Pagination/intl/index.d.ts +201 -0
  232. package/dist/components/Panel/Panel.css.d.ts +1 -0
  233. package/dist/components/Panel/Panel.d.ts +2 -0
  234. package/dist/components/Panel/Panel.types.d.ts +72 -0
  235. package/dist/components/Panel/PanelContext.d.ts +6 -0
  236. package/dist/components/Panel/PanelGroup.d.ts +2 -0
  237. package/dist/components/Panel/PanelResizeHandle.d.ts +5 -0
  238. package/dist/components/Panel/index.d.ts +4 -0
  239. package/dist/components/PointPicker/Grid.d.ts +7 -0
  240. package/dist/components/PointPicker/PointPicker.css.d.ts +37 -0
  241. package/dist/components/PointPicker/PointPicker.d.ts +22 -0
  242. package/dist/components/PointPicker/PointPicker.types.d.ts +116 -0
  243. package/dist/components/PointPicker/PointPickerContent/PointPickerContent.d.ts +3 -0
  244. package/dist/components/PointPicker/PointPickerContent/PointPickerIndicator.d.ts +8 -0
  245. package/dist/components/PointPicker/PointPickerContent/hooks/useCoordinatesRelativeToWindow.d.ts +4 -0
  246. package/dist/components/PointPicker/PointPickerContent/hooks/usePointPickerKeyboard.d.ts +3 -0
  247. package/dist/components/PointPicker/PointPickerContent/index.d.ts +1 -0
  248. package/dist/components/PointPicker/PointPickerDisplay/Floater.d.ts +7 -0
  249. package/dist/components/PointPicker/PointPickerDisplay/MagnifierContent.d.ts +8 -0
  250. package/dist/components/PointPicker/PointPickerDisplay/PointPickerDisplay.d.ts +3 -0
  251. package/dist/components/PointPicker/PointPickerDisplay/hooks/useIndicatorWidthObserver.d.ts +1 -0
  252. package/dist/components/PointPicker/PointPickerDisplay/index.d.ts +1 -0
  253. package/dist/components/PointPicker/PointsVisualiser/PointsVisualiser.d.ts +11 -0
  254. package/dist/components/PointPicker/PointsVisualiser/canvasUtils.d.ts +20 -0
  255. package/dist/components/PointPicker/PointsVisualiser/hooks/usePointProximity.d.ts +12 -0
  256. package/dist/components/PointPicker/hooks/usePointPicker.d.ts +4 -0
  257. package/dist/components/PointPicker/index.d.ts +5 -0
  258. package/dist/components/PointPicker/workers/canvas.worker.d.ts +1 -0
  259. package/dist/components/PointPicker/workers/pointProximity.worker.d.ts +1 -0
  260. package/dist/components/Popover/Arrow.d.ts +7 -0
  261. package/dist/components/Popover/Popover.css.d.ts +55 -0
  262. package/dist/components/Popover/Popover.d.ts +10 -0
  263. package/dist/components/Popover/Popover.types.d.ts +133 -0
  264. package/dist/components/Popover/PopoverContent.d.ts +3 -0
  265. package/dist/components/Popover/PopoverContentCore.d.ts +7 -0
  266. package/dist/components/Popover/PopoverTrigger.d.ts +8 -0
  267. package/dist/components/Popover/hooks/usePopoverScrollReposition.d.ts +22 -0
  268. package/dist/components/Popover/hooks/usePopoverTransition.d.ts +23 -0
  269. package/dist/components/Popover/index.d.ts +4 -0
  270. package/dist/components/Portal/Portal.d.ts +3 -0
  271. package/dist/components/Portal/Portal.types.d.ts +4 -0
  272. package/dist/components/Portal/index.d.ts +2 -0
  273. package/dist/components/PortalContainerProvider/PortalContainerProvider.d.ts +4 -0
  274. package/dist/components/PortalContainerProvider/PortalContainerProvider.types.d.ts +12 -0
  275. package/dist/components/PortalContainerProvider/index.d.ts +1 -0
  276. package/dist/components/Preview/Preview.css.d.ts +50 -0
  277. package/dist/components/Preview/Preview.d.ts +3 -0
  278. package/dist/components/Preview/Preview.types.d.ts +59 -0
  279. package/dist/components/Preview/index.d.ts +2 -0
  280. package/dist/components/ProgressBar/ProgressBar.css.d.ts +48 -0
  281. package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
  282. package/dist/components/ProgressBar/ProgressBar.types.d.ts +20 -0
  283. package/dist/components/ProgressBar/index.d.ts +2 -0
  284. package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +9 -0
  285. package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +3 -0
  286. package/dist/components/ProgressSpinner/ProgressSpinner.types.d.ts +16 -0
  287. package/dist/components/ProgressSpinner/index.d.ts +2 -0
  288. package/dist/components/RadioGroup/RadioGroup.css.d.ts +26 -0
  289. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
  290. package/dist/components/RadioGroup/RadioGroup.types.d.ts +67 -0
  291. package/dist/components/RadioGroup/RadioItem.d.ts +11 -0
  292. package/dist/components/RadioGroup/index.d.ts +2 -0
  293. package/dist/components/Reaction/Reaction.css.d.ts +74 -0
  294. package/dist/components/Reaction/Reaction.d.ts +3 -0
  295. package/dist/components/Reaction/Reaction.types.d.ts +13 -0
  296. package/dist/components/Reaction/index.d.ts +2 -0
  297. package/dist/components/ScrollControlButton/ScrollControlButton.css.d.ts +1 -0
  298. package/dist/components/ScrollControlButton/ScrollControlButton.d.ts +3 -0
  299. package/dist/components/ScrollControlButton/ScrollControlButton.types.d.ts +31 -0
  300. package/dist/components/ScrollControlButton/index.d.ts +3 -0
  301. package/dist/components/SearchInput/SearchInput.css.d.ts +64 -0
  302. package/dist/components/SearchInput/SearchInput.d.ts +3 -0
  303. package/dist/components/SearchInput/SearchInput.types.d.ts +27 -0
  304. package/dist/components/SearchInput/index.d.ts +2 -0
  305. package/dist/components/Select/IconSelect.d.ts +3 -0
  306. package/dist/components/Select/Select.css.d.ts +58 -0
  307. package/dist/components/Select/Select.d.ts +9 -0
  308. package/dist/components/Select/Select.types.d.ts +87 -0
  309. package/dist/components/Select/SelectButton.d.ts +3 -0
  310. package/dist/components/Select/index.d.ts +3 -0
  311. package/dist/components/Separator/Separator.css.d.ts +19 -0
  312. package/dist/components/Separator/Separator.d.ts +3 -0
  313. package/dist/components/Separator/Separator.types.d.ts +12 -0
  314. package/dist/components/Separator/index.d.ts +2 -0
  315. package/dist/components/Skeleton/Skeleton.css.d.ts +1 -0
  316. package/dist/components/Skeleton/Skeleton.d.ts +3 -0
  317. package/dist/components/Skeleton/Skeleton.types.d.ts +7 -0
  318. package/dist/components/Skeleton/index.d.ts +2 -0
  319. package/dist/components/Slider/IconSlider.d.ts +3 -0
  320. package/dist/components/Slider/Slider.css.d.ts +133 -0
  321. package/dist/components/Slider/Slider.d.ts +3 -0
  322. package/dist/components/Slider/Slider.types.d.ts +42 -0
  323. package/dist/components/Slider/index.d.ts +3 -0
  324. package/dist/components/StatusCard/StatusCard.css.d.ts +87 -0
  325. package/dist/components/StatusCard/StatusCard.d.ts +10 -0
  326. package/dist/components/StatusCard/StatusCard.types.d.ts +34 -0
  327. package/dist/components/StatusCard/index.d.ts +3 -0
  328. package/dist/components/Switch/Switch.css.d.ts +67 -0
  329. package/dist/components/Switch/Switch.d.ts +3 -0
  330. package/dist/components/Switch/Switch.types.d.ts +15 -0
  331. package/dist/components/Switch/index.d.ts +2 -0
  332. package/dist/components/Table/Table.css.d.ts +111 -0
  333. package/dist/components/Table/Table.d.ts +8 -0
  334. package/dist/components/Table/Table.types.d.ts +26 -0
  335. package/dist/components/Table/hooks/useTableDragAndDrop.d.ts +8 -0
  336. package/dist/components/Table/index.d.ts +3 -0
  337. package/dist/components/Tabs/TabItem.d.ts +3 -0
  338. package/dist/components/Tabs/TabPanel.d.ts +9 -0
  339. package/dist/components/Tabs/Tabs.css.d.ts +122 -0
  340. package/dist/components/Tabs/Tabs.d.ts +3 -0
  341. package/dist/components/Tabs/Tabs.types.d.ts +66 -0
  342. package/dist/components/Tabs/TabsBase.d.ts +7 -0
  343. package/dist/components/Tabs/index.d.ts +3 -0
  344. package/dist/components/Tag/Tag.css.d.ts +215 -0
  345. package/dist/components/Tag/Tag.d.ts +3 -0
  346. package/dist/components/Tag/Tag.types.d.ts +43 -0
  347. package/dist/components/Tag/TagContext.d.ts +15 -0
  348. package/dist/components/Tag/index.d.ts +2 -0
  349. package/dist/components/TagGroup/TagGroup.css.d.ts +1 -0
  350. package/dist/components/TagGroup/TagGroup.d.ts +3 -0
  351. package/dist/components/TagGroup/TagGroup.types.d.ts +38 -0
  352. package/dist/components/TagGroup/index.d.ts +2 -0
  353. package/dist/components/TaggedPagination/TaggedPagination.css.d.ts +70 -0
  354. package/dist/components/TaggedPagination/TaggedPagination.d.ts +3 -0
  355. package/dist/components/TaggedPagination/TaggedPagination.types.d.ts +50 -0
  356. package/dist/components/TaggedPagination/index.d.ts +2 -0
  357. package/dist/components/Text/Text.css.d.ts +51 -0
  358. package/dist/components/Text/Text.d.ts +3 -0
  359. package/dist/components/Text/Text.types.d.ts +24 -0
  360. package/dist/components/Text/index.d.ts +2 -0
  361. package/dist/components/TextInput/TextInput.css.d.ts +183 -0
  362. package/dist/components/TextInput/TextInput.d.ts +3 -0
  363. package/dist/components/TextInput/TextInput.types.d.ts +18 -0
  364. package/dist/components/TextInput/index.d.ts +2 -0
  365. package/dist/components/TextInput/utils/getMessage.d.ts +12 -0
  366. package/dist/components/TextInput/utils/getStatusIcon.d.ts +6 -0
  367. package/dist/components/ThemeProvider/ThemeProvider.context.d.ts +6 -0
  368. package/dist/components/ThemeProvider/ThemeProvider.css.d.ts +1 -0
  369. package/dist/components/ThemeProvider/ThemeProvider.d.ts +3 -0
  370. package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +29 -0
  371. package/dist/components/ThemeProvider/hooks/useUserPreferences.d.ts +19 -0
  372. package/dist/components/ThemeProvider/index.d.ts +6 -0
  373. package/dist/components/TimeField/DateTimeSegment.d.ts +5 -0
  374. package/dist/components/TimeField/TimeField.css.d.ts +16 -0
  375. package/dist/components/TimeField/TimeField.d.ts +3 -0
  376. package/dist/components/TimeField/TimeField.types.d.ts +6 -0
  377. package/dist/components/TimeField/index.d.ts +3 -0
  378. package/dist/components/Toast/Toast.css.d.ts +34 -0
  379. package/dist/components/Toast/Toast.d.ts +3 -0
  380. package/dist/components/Toast/Toast.types.d.ts +14 -0
  381. package/dist/components/Toast/index.d.ts +4 -0
  382. package/dist/components/ToggleButton/ToggleButton.css.d.ts +74 -0
  383. package/dist/components/ToggleButton/ToggleButton.d.ts +3 -0
  384. package/dist/components/ToggleButton/ToggleButton.types.d.ts +27 -0
  385. package/dist/components/ToggleButton/index.d.ts +2 -0
  386. package/dist/components/ToggleIconButton/ToggleIconButton.css.d.ts +149 -0
  387. package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +3 -0
  388. package/dist/components/ToggleIconButton/ToggleIconButton.types.d.ts +30 -0
  389. package/dist/components/ToggleIconButton/index.d.ts +2 -0
  390. package/dist/components/Toolbar/CollapsibleToolbar.d.ts +3 -0
  391. package/dist/components/Toolbar/Toolbar.css.d.ts +2 -0
  392. package/dist/components/Toolbar/Toolbar.d.ts +3 -0
  393. package/dist/components/Toolbar/Toolbar.types.d.ts +47 -0
  394. package/dist/components/Toolbar/WrappedToolbar.d.ts +3 -0
  395. package/dist/components/Toolbar/hooks/useFormattedList.d.ts +3 -0
  396. package/dist/components/Toolbar/hooks/useInputAwareToolbar.d.ts +6 -0
  397. package/dist/components/Toolbar/index.d.ts +3 -0
  398. package/dist/components/Tooltip/Tooltip.css.d.ts +44 -0
  399. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  400. package/dist/components/Tooltip/Tooltip.types.d.ts +55 -0
  401. package/dist/components/Tooltip/TooltipContent.d.ts +15 -0
  402. package/dist/components/Tooltip/index.d.ts +3 -0
  403. package/dist/components/TreeView/TreeItem.d.ts +7 -0
  404. package/dist/components/TreeView/TreeView.css.d.ts +34 -0
  405. package/dist/components/TreeView/TreeView.d.ts +8 -0
  406. package/dist/components/TreeView/TreeView.types.d.ts +95 -0
  407. package/dist/components/TreeView/index.d.ts +2 -0
  408. package/dist/components/UNSAFE_ListBox/ListBox.css.d.ts +92 -0
  409. package/dist/components/UNSAFE_ListBox/ListBox.d.ts +13 -0
  410. package/dist/components/UNSAFE_ListBox/ListBox.types.d.ts +84 -0
  411. package/dist/components/UNSAFE_ListBox/ListBoxUI.d.ts +19 -0
  412. package/dist/components/UNSAFE_ListBox/hooks/useDragAndDrop.d.ts +3 -0
  413. package/dist/components/UNSAFE_ListBox/index.d.ts +3 -0
  414. package/dist/components/Virtualizer/LocaleAwareGridLayout.d.ts +17 -0
  415. package/dist/components/Virtualizer/Virtualizer.types.d.ts +6 -0
  416. package/dist/components/Virtualizer/index.d.ts +36 -0
  417. package/dist/components/index.d.ts +81 -0
  418. package/dist/components/shared/buttons.d.ts +30 -0
  419. package/dist/components/shared/collection.d.ts +3 -0
  420. package/dist/components/shared/components/DragPreviewContent.d.ts +12 -0
  421. package/dist/components/shared/components/IconWithTooltip.d.ts +8 -0
  422. package/dist/components/shared/components/ListCollectionBuilder.d.ts +9 -0
  423. package/dist/components/shared/components/OverlayEventLeakPreventionLayer.d.ts +8 -0
  424. package/dist/components/shared/components/SharedInput/SharedInput.d.ts +3 -0
  425. package/dist/components/shared/components/SharedInput/SharedInput.types.d.ts +34 -0
  426. package/dist/components/shared/components/SharedInput/index.d.ts +1 -0
  427. package/dist/components/shared/tooltips.d.ts +11 -0
  428. package/dist/components/shared/types/IconComponent.d.ts +21 -0
  429. package/dist/components/shared/types/List.d.ts +17 -0
  430. package/dist/hooks/index.d.ts +13 -0
  431. package/dist/hooks/useDevice.d.ts +20 -0
  432. package/dist/hooks/useI18n.d.ts +59 -0
  433. package/dist/hooks/useImage.d.ts +23 -0
  434. package/dist/hooks/useIntersectionObserver.d.ts +44 -0
  435. package/dist/hooks/useIsFirstRender.d.ts +21 -0
  436. package/dist/hooks/useIsTouchDevice.d.ts +7 -0
  437. package/dist/hooks/useLiveInteractionModality.d.ts +13 -0
  438. package/dist/hooks/useLocalStorage.d.ts +20 -0
  439. package/dist/hooks/useMedia.d.ts +13 -0
  440. package/dist/hooks/useMutationObserver.d.ts +20 -0
  441. package/dist/hooks/usePortalContainer.d.ts +11 -0
  442. package/dist/hooks/usePreventFocus.d.ts +23 -0
  443. package/dist/hooks/useResizeObserver.d.ts +38 -0
  444. package/dist/hooks/useTextSelection.d.ts +29 -0
  445. package/dist/hooks/useUndoRedo.d.ts +44 -0
  446. package/dist/index.d.ts +11 -10076
  447. package/dist/index.js +12 -12
  448. package/dist/index.mjs +12 -12
  449. package/dist/react-aria.d.ts +2 -0
  450. package/dist/react-stately.d.ts +2 -0
  451. package/dist/utils/a11y.d.ts +1 -0
  452. package/dist/utils/classNames.d.ts +17 -0
  453. package/dist/utils/colors.d.ts +11 -0
  454. package/dist/utils/constants.d.ts +1 -0
  455. package/dist/utils/devWarn.d.ts +1 -0
  456. package/dist/utils/dom.d.ts +130 -0
  457. package/dist/utils/index.d.ts +18 -0
  458. package/dist/utils/invariant.d.ts +18 -0
  459. package/dist/utils/isInIframe.d.ts +12 -0
  460. package/dist/utils/isInShadowDOM.d.ts +11 -0
  461. package/dist/utils/isRect.d.ts +7 -0
  462. package/dist/utils/keyboards.d.ts +13 -0
  463. package/dist/utils/math.d.ts +1 -0
  464. package/dist/utils/objects.d.ts +20 -0
  465. package/dist/utils/overlays.d.ts +6 -0
  466. package/dist/utils/reactAriaCompat.d.ts +22 -0
  467. package/dist/utils/reactAriaComponentsCompat.d.ts +4 -0
  468. package/dist/utils/resolveAriaLabelAttrs.d.ts +22 -0
  469. package/dist/utils/resolvePublicUrl.d.ts +1 -0
  470. package/dist/utils/strings.d.ts +6 -0
  471. package/dist/utils/style.d.ts +5 -0
  472. package/dist/utils/styleMixins.css.d.ts +16 -0
  473. package/dist/utils/svgs.d.ts +15 -0
  474. package/dist/utils/types/Shared.d.ts +34 -0
  475. package/dist/utils/validations.d.ts +13 -0
  476. package/package.json +7 -7
  477. package/sbom.json +1 -1
  478. package/dist/index.d.mts +0 -10076
@@ -0,0 +1,159 @@
1
+ import type { StylingProps } from "../../utils";
2
+ import type { ActionIconButtonProps } from "../ActionIconButton";
3
+ import type { AvatarProps } from "../Avatar";
4
+ import type { IconProps } from "../Icon";
5
+ import type { ToggleIconButtonProps } from "../ToggleIconButton";
6
+ import type { AriaLabelingProps } from "@react-types/shared";
7
+ import type React from "react";
8
+ export interface MentionableUser {
9
+ id: string;
10
+ name: string;
11
+ displayName: string;
12
+ avatar?: AvatarProps;
13
+ description?: string;
14
+ }
15
+ export interface EditorHandle {
16
+ setCaretPosition: (index: number) => void;
17
+ focus: () => void;
18
+ }
19
+ export interface EditorProps extends StylingProps, AriaLabelingProps {
20
+ /**
21
+ * The function to be called when `Enter` key is pressed or Save button is
22
+ * clicked.
23
+ */
24
+ onSave?: (value: string) => void;
25
+ /**
26
+ * The function to be called when Cancel button is clicked. If not provided,
27
+ * the Cancel button will not be rendered.
28
+ */
29
+ onCancel?: () => void;
30
+ /** The default value of the editor. */
31
+ defaultValue?: string;
32
+ /** The value of the editor. */
33
+ value?: string;
34
+ /**
35
+ * The function to be called when the value of the editor changes.
36
+ *
37
+ * @param value
38
+ */
39
+ onChange?: (value: string) => void;
40
+ /** Whether the editor is disabled. This includes both input and save button. */
41
+ isDisabled?: boolean;
42
+ /** Whether saving it disabled. Ths disables only save button. */
43
+ isSaveDisabled?: boolean;
44
+ /**
45
+ * Indicates whether rich text is enabled or not.
46
+ *
47
+ * @default false
48
+ */
49
+ enableRichText?: boolean;
50
+ /** The placeholder text to be displayed when the editor is empty. */
51
+ placeholder?: string;
52
+ /**
53
+ * The variant of the editor.
54
+ *
55
+ * @default default
56
+ */
57
+ variant?: "default" | "minimal";
58
+ /** Whether the editor is inline or not. */
59
+ isInline?: boolean;
60
+ /** Specifies whether spell checking is enabled or disabled. */
61
+ spellCheck?: boolean;
62
+ /**
63
+ * Optional property that represents the ARIA label for the submit button.
64
+ * This property is used to provide an accessible label for the button, which
65
+ * is read by screen readers to assist visually impaired users.
66
+ *
67
+ * @default Save
68
+ */
69
+ submitButtonAriaLabel?: string;
70
+ /**
71
+ * The React node representing the icon to be displayed on the submit button.
72
+ *
73
+ * @default ArrowUpCircleFilledIcon
74
+ */
75
+ submitButtonIcon?: React.FC<IconProps>;
76
+ /**
77
+ * Optional property that represents the ARIA label for the cancel button.
78
+ *
79
+ * @default Cancel
80
+ */
81
+ cancelButtonAriaLabel?: string;
82
+ /**
83
+ * The name of the avatar. The avatar is visible when `variant` is set to
84
+ * `minimal` and `enableRichText` is set to `false`.
85
+ */
86
+ avatarName?: string;
87
+ /**
88
+ * The ARIA label for the editable content. In case of rich text, this label
89
+ * is used to provide an accessible label for the contenteditable element,
90
+ * which is read by screen readers to assist visually impaired users. In case
91
+ * of plain text, this label is used to provide an accessible label for the
92
+ * textarea element.
93
+ *
94
+ * @default Editing Area
95
+ */
96
+ editableContentAriaLabel?: string;
97
+ /**
98
+ * An optional array of mentionable users. Mention feature is only available
99
+ * when `enableRichText` is set to `true` and this prop is provided.
100
+ *
101
+ * ```tsx
102
+ * type MentionableUser = {
103
+ * id: string;
104
+ * name: string;
105
+ * displayName: string;
106
+ * avatar?: AvatarProps;
107
+ * description?: string;
108
+ * };
109
+ * ```
110
+ */
111
+ mentionableUsers?: MentionableUser[];
112
+ /**
113
+ * The maximum number of mentionable users to be displayed in the suggestions.
114
+ * This prop is only used when `mentionableUsers` is provided.
115
+ *
116
+ * @default 10
117
+ */
118
+ maxMentionableUsersSuggestions?: number;
119
+ /** Footer button represents the buttons that are displayed in the footer. */
120
+ footerButtons?: ({
121
+ type: "action";
122
+ props: Omit<ActionIconButtonProps, "size" | "variant">;
123
+ } | {
124
+ type: "toggle";
125
+ props: Omit<ToggleIconButtonProps, "size" | "variant">;
126
+ })[];
127
+ /** The imperative handle for manipulating editor. */
128
+ editorHandle?: React.RefObject<EditorHandle>;
129
+ /**
130
+ * Whether to clear the editor value when the editor is saved.
131
+ *
132
+ * @default false
133
+ */
134
+ clearOnSave?: boolean;
135
+ /**
136
+ * Whether to clear the editor value when the cancel button is clicked.
137
+ *
138
+ * @default false
139
+ */
140
+ clearOnCancel?: boolean;
141
+ /**
142
+ * Whether to autofocus the editor when it is mounted, optionally positioning
143
+ * the caret at the start or end of the text.
144
+ *
145
+ * - `false` or `undefined`: No auto-focus (default)
146
+ * - `true`: Focus on mount, caret at default position
147
+ * - `"start"`: Focus on mount, caret at position 0
148
+ * - `"end"`: Focus on mount, caret at end of text
149
+ *
150
+ * @default false
151
+ */
152
+ autoFocus?: boolean | "start" | "end";
153
+ /**
154
+ * Whether to save the editor value when `Enter` key is pressed.
155
+ *
156
+ * @default false
157
+ */
158
+ saveOnEnter?: boolean;
159
+ }
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ export declare const MarkToolbarButton: React.FC<MarkToolbarButtonProps>;
3
+ interface MarkToolbarButtonProps {
4
+ nodeType: string;
5
+ icon: React.FC;
6
+ ariaLabel?: string;
7
+ isDisabled?: boolean;
8
+ }
9
+ export declare const ColorToolbarButton: React.FC<ColorToolbarButtonProps>;
10
+ interface ColorToolbarButtonProps {
11
+ nodeType: "backgroundColor" | "color";
12
+ "aria-label"?: string;
13
+ isDisabled?: boolean;
14
+ }
15
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export declare const HelpDialog: React.FC<{
3
+ onClose: () => void;
4
+ isOpen: boolean;
5
+ }>;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import type { ListBoxProps } from "../ListBox";
3
+ import type { EditorProps, MentionableUser } from "./Editor.types";
4
+ import type { PlateEditor } from "platejs/react";
5
+ export declare const DEFAULT_CONTENT: {
6
+ type: "p";
7
+ children: {
8
+ text: string;
9
+ }[];
10
+ }[];
11
+ export declare const MentionContext: React.Context<{
12
+ items: MentionableUser[];
13
+ containerRef: React.RefObject<HTMLElement>;
14
+ maxMentionableUsersSuggestions?: number;
15
+ }>;
16
+ export declare const RichEditor: React.ForwardRefExoticComponent<{
17
+ containerRef: React.RefObject<HTMLElement>;
18
+ onHelpDialogOpenRequest: () => void;
19
+ editorRef?: React.RefObject<PlateEditor>;
20
+ onSave: () => void;
21
+ } & Pick<EditorProps, "style" | "isDisabled" | "defaultValue" | "autoFocus" | "spellCheck" | "onChange" | "value" | "placeholder" | "isInline" | "editableContentAriaLabel" | "mentionableUsers" | "maxMentionableUsersSuggestions" | "editorHandle" | "saveOnEnter"> & React.RefAttributes<{
22
+ startMention: () => void;
23
+ }>>;
24
+ export declare const MentionOption: ListBoxProps["renderOption"];
@@ -0,0 +1,10 @@
1
+ import { type PlateElementProps } from "platejs/react";
2
+ import React from "react";
3
+ export declare const AddLink: React.FC<{
4
+ isDisabled?: boolean;
5
+ }>;
6
+ export declare const AddLinkContent: React.FC<{
7
+ defaultValue?: string;
8
+ close?: () => void;
9
+ }>;
10
+ export declare function LinkElement({ className, children, ...props }: PlateElementProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import React, { type Key } from "react";
2
+ import type { TElement } from "platejs";
3
+ import type { PlateEditor } from "platejs/react";
4
+ export declare const MentionInputContentElement: React.ForwardRefExoticComponent<{
5
+ onCancel?: (reason: string, value: string) => void;
6
+ onSelectionChange?: (key: Key | null) => void;
7
+ element: TElement;
8
+ editor: PlateEditor;
9
+ } & React.RefAttributes<HTMLInputElement>>;
10
+ export declare const MentionInputElement: React.ForwardRefExoticComponent<Omit<Omit<any, "ref"> & import("platejs").BasePluginContext<import("platejs").PluginConfig> & {
11
+ editor: PlateEditor;
12
+ plugin: import("platejs/react").EditorPlatePlugin<import("platejs").PluginConfig>;
13
+ } & {
14
+ ref?: any;
15
+ } & import("platejs").RenderElementProps<TElement> & {
16
+ attributes: import("platejs").UnknownObject;
17
+ path: import("platejs").Path;
18
+ } & {
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ } & {
22
+ editor: PlateEditor;
23
+ element: TElement;
24
+ }, "ref"> & React.RefAttributes<HTMLElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLButtonElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | SVGSymbolElement | SVGElement | SVGCircleElement | SVGClipPathElement | SVGDefsElement | SVGDescElement | SVGEllipseElement | SVGFEBlendElement | SVGFEColorMatrixElement | SVGFEComponentTransferElement | SVGFECompositeElement | SVGFEConvolveMatrixElement | SVGFEDiffuseLightingElement | SVGFEDisplacementMapElement | SVGFEDistantLightElement | SVGFEDropShadowElement | SVGFEFloodElement | SVGFEFuncAElement | SVGFEFuncBElement | SVGFEFuncGElement | SVGFEFuncRElement | SVGFEGaussianBlurElement | SVGFEImageElement | SVGFEMergeElement | SVGFEMergeNodeElement | SVGFEMorphologyElement | SVGFEOffsetElement | SVGFEPointLightElement | SVGFESpecularLightingElement | SVGFESpotLightElement | SVGFETileElement | SVGFETurbulenceElement | SVGFilterElement | SVGForeignObjectElement | SVGGElement | SVGImageElement | SVGLineElement | SVGLinearGradientElement | SVGMarkerElement | SVGMaskElement | SVGMetadataElement | SVGPathElement | SVGPatternElement | SVGPolygonElement | SVGPolylineElement | SVGRadialGradientElement | SVGRectElement | SVGSetElement | SVGStopElement | SVGSVGElement | SVGSwitchElement | SVGTextElement | SVGTextPathElement | SVGTSpanElement | SVGUseElement | SVGViewElement | HTMLTableDataCellElement | HTMLTableHeaderCellElement | HTMLParamElement | HTMLWebViewElement | React.Component<any, any, any>>>;
25
+ export declare const MentionElement: React.ForwardRefExoticComponent<Omit<Omit<any, "ref"> & import("platejs").BasePluginContext<import("platejs").PluginConfig> & {
26
+ editor: PlateEditor;
27
+ plugin: import("platejs/react").EditorPlatePlugin<import("platejs").PluginConfig>;
28
+ } & {
29
+ ref?: any;
30
+ } & import("platejs").RenderElementProps<TElement> & {
31
+ attributes: import("platejs").UnknownObject;
32
+ path: import("platejs").Path;
33
+ } & {
34
+ className?: string;
35
+ style?: React.CSSProperties;
36
+ } & {
37
+ onClick?: (...args: any[]) => void;
38
+ }, "ref"> & React.RefAttributes<HTMLElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLButtonElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | SVGSymbolElement | SVGElement | SVGCircleElement | SVGClipPathElement | SVGDefsElement | SVGDescElement | SVGEllipseElement | SVGFEBlendElement | SVGFEColorMatrixElement | SVGFEComponentTransferElement | SVGFECompositeElement | SVGFEConvolveMatrixElement | SVGFEDiffuseLightingElement | SVGFEDisplacementMapElement | SVGFEDistantLightElement | SVGFEDropShadowElement | SVGFEFloodElement | SVGFEFuncAElement | SVGFEFuncBElement | SVGFEFuncGElement | SVGFEFuncRElement | SVGFEGaussianBlurElement | SVGFEImageElement | SVGFEMergeElement | SVGFEMergeNodeElement | SVGFEMorphologyElement | SVGFEOffsetElement | SVGFEPointLightElement | SVGFESpecularLightingElement | SVGFESpotLightElement | SVGFETileElement | SVGFETurbulenceElement | SVGFilterElement | SVGForeignObjectElement | SVGGElement | SVGImageElement | SVGLineElement | SVGLinearGradientElement | SVGMarkerElement | SVGMaskElement | SVGMetadataElement | SVGPathElement | SVGPatternElement | SVGPolygonElement | SVGPolylineElement | SVGRadialGradientElement | SVGRectElement | SVGSetElement | SVGStopElement | SVGSVGElement | SVGSwitchElement | SVGTextElement | SVGTextPathElement | SVGTSpanElement | SVGUseElement | SVGViewElement | HTMLTableDataCellElement | HTMLTableHeaderCellElement | HTMLParamElement | HTMLWebViewElement | React.Component<any, any, any>>>;
39
+ export declare const withTriggerCombobox: ({ editor, tf: { insertText }, }: {
40
+ editor: PlateEditor;
41
+ tf: any;
42
+ }) => {
43
+ transforms: {
44
+ insertText(text: string, options?: any): void;
45
+ };
46
+ };
@@ -0,0 +1,2 @@
1
+ import type { PlateElementProps } from "platejs/react";
2
+ export declare function ParagraphElement({ className, children, ...props }: PlateElementProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { EditorProps } from "../Editor.types";
3
+ export declare const PlainEditor: React.ForwardRefExoticComponent<PlainEditorProps & React.RefAttributes<{
4
+ clear: () => void;
5
+ }>>;
6
+ interface PlainEditorProps extends Omit<EditorProps, "onSave" | "clearOnSave" | "isSaveDisabled"> {
7
+ onSave: () => void;
8
+ textBoxRef: React.RefObject<HTMLTextAreaElement>;
9
+ isMinimal?: boolean;
10
+ }
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Editor } from "./Editor";
2
+ export type { EditorProps, EditorHandle } from "./Editor.types";
@@ -0,0 +1,93 @@
1
+ import { LinkPlugin } from "@platejs/link/react";
2
+ import { MentionPlugin } from "@platejs/mention/react";
3
+ import { ParagraphPlugin } from "platejs/react";
4
+ import type { TElement, TText } from "platejs";
5
+ import type { PlateEditor } from "platejs/react";
6
+ import type React from "react";
7
+ interface MentionNode extends TElement {
8
+ displayName: string;
9
+ value: string;
10
+ type: typeof MentionPlugin.key;
11
+ }
12
+ interface LinkNode extends TElement {
13
+ url: string;
14
+ type: typeof LinkPlugin.key;
15
+ }
16
+ interface ParagraphNode extends TElement {
17
+ type: typeof ParagraphPlugin.key;
18
+ }
19
+ interface TextNode extends TText {
20
+ text: string;
21
+ bold?: string;
22
+ italic?: string;
23
+ underline?: boolean;
24
+ color?: string;
25
+ backgroundColor?: string;
26
+ }
27
+ export type PlateNode = MentionNode | LinkNode | ParagraphNode | TextNode;
28
+ export declare function serialize(nodes?: PlateNode[] | PlateNode): string;
29
+ /**
30
+ * Converts a CSS string into an object.
31
+ *
32
+ * @param css - The CSS string to convert.
33
+ * @returns A CSS object.
34
+ */
35
+ export declare function cssStringToObject(css: string): Record<string, string>;
36
+ export declare function deserialize(el: string): any;
37
+ export declare function getUrl(editor: PlateEditor): string | undefined;
38
+ export declare function insertMentionInput(editor: PlateEditor): void;
39
+ export declare const plugins: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention", {
40
+ insertSpaceAfterMention?: boolean;
41
+ } & import("@platejs/combobox").TriggerComboboxPluginOptions, {}, {
42
+ insert: {
43
+ mention: (options: {
44
+ search: string;
45
+ value: any;
46
+ key?: any;
47
+ }) => void;
48
+ };
49
+ }, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"p", {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"a", {
50
+ allowedSchemes?: string[];
51
+ dangerouslySkipSanitization?: boolean;
52
+ defaultLinkAttributes?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
53
+ forceSubmit?: boolean;
54
+ keepSelectedTextOnPaste?: boolean;
55
+ rangeBeforeOptions?: import("platejs").EditorBeforeOptions;
56
+ triggerFloatingLinkHotkeys?: string[] | string;
57
+ getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
58
+ getUrlHref?: (url: string) => string | undefined;
59
+ isUrl?: (text: string) => boolean;
60
+ transformInput?: (url: string) => string | undefined;
61
+ } & {
62
+ isEditing: boolean;
63
+ mode: import("@platejs/link/react").FloatingLinkMode;
64
+ mouseDown: boolean;
65
+ newTab: boolean;
66
+ openEditorId: string | null;
67
+ text: string;
68
+ updated: boolean;
69
+ url: string;
70
+ triggerFloatingLinkHotkeys?: string;
71
+ }, {
72
+ floatingLink: {
73
+ hide: () => void;
74
+ reset: () => void;
75
+ show: (mode: import("@platejs/link/react").FloatingLinkMode, editorId: string) => void;
76
+ };
77
+ link: {
78
+ getAttributes: import("platejs").OmitFirst<(editor: import("platejs").SlateEditor, link: import("platejs").TLinkElement) => Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target"> & import("platejs").UnknownObject>;
79
+ };
80
+ }, {}, {
81
+ isOpen?: (editorId: string) => boolean;
82
+ }>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"bold", {}, {}, Record<"bold", {
83
+ toggle: () => void;
84
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"italic", {}, {}, Record<"italic", {
85
+ toggle: () => void;
86
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"underline", {}, {}, Record<"underline", {
87
+ toggle: () => void;
88
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"color", {}, {}, Record<"color", {
89
+ addMark: (value: string) => void;
90
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"backgroundColor", {}, {}, Record<"backgroundColor", {
91
+ addMark: (value: string) => void;
92
+ }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"mention_input", {}, {}, {}, {}>>)[];
93
+ export {};
@@ -0,0 +1,69 @@
1
+ /**
2
+ * # ================================
3
+ *
4
+ * File Upload Root
5
+ */
6
+ export declare const fileUploadCn: import("@vanilla-extract/recipes").RuntimeFn<{
7
+ variant: {
8
+ default: {
9
+ width: "100%";
10
+ backgroundColor: `var(--${string})`;
11
+ };
12
+ inline: {
13
+ border: `1px dashed var(--${string})`;
14
+ borderRadius: `var(--${string})`;
15
+ };
16
+ };
17
+ hoveredOrFocusedOrActive: {
18
+ true: {
19
+ outline: "none";
20
+ };
21
+ };
22
+ disabled: {
23
+ true: {
24
+ pointerEvents: "none";
25
+ backgroundColor: "unset";
26
+ };
27
+ };
28
+ }>;
29
+ /**
30
+ * # ================================
31
+ *
32
+ * File Upload Icon
33
+ */
34
+ export declare const fileUploadIconCn: import("@vanilla-extract/recipes").RuntimeFn<{
35
+ disabled: {
36
+ true: {
37
+ color: `var(--${string})`;
38
+ };
39
+ };
40
+ }>;
41
+ /**
42
+ * # ================================
43
+ *
44
+ * File Upload Label
45
+ */
46
+ export declare const fileUploadLabelCn: import("@vanilla-extract/recipes").RuntimeFn<{
47
+ disabled: {
48
+ true: {
49
+ color: `var(--${string})`;
50
+ };
51
+ };
52
+ hovered: {
53
+ true: {
54
+ textDecoration: "underline";
55
+ };
56
+ };
57
+ }>;
58
+ /**
59
+ * # ================================
60
+ *
61
+ * File Upload Description
62
+ */
63
+ export declare const fileUploadDescriptionCn: import("@vanilla-extract/recipes").RuntimeFn<{
64
+ disabled: {
65
+ true: {
66
+ color: `var(--${string})`;
67
+ };
68
+ };
69
+ }>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { FileUploadProps } from "./FileUpload.types";
3
+ export declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLLabelElement>>;
@@ -0,0 +1,38 @@
1
+ import type { StylingProps } from "../../utils";
2
+ import type { IconProps } from "../Icon";
3
+ import type React from "react";
4
+ export interface SharedFileUploadProps extends StylingProps {
5
+ /** Whether the component is inlined. */
6
+ variant?: "default" | "inline";
7
+ /** Whether the component is disabled. */
8
+ isDisabled?: boolean;
9
+ /** The label to display. */
10
+ label: string;
11
+ /** The description to display. */
12
+ description?: string;
13
+ /**
14
+ * The pattern to match the file name against. This is a regular expression,
15
+ * and will be matched against the entire file name.
16
+ */
17
+ accept?: string;
18
+ /** The name of the input. */
19
+ name?: string;
20
+ /** The callback function that is fired when the value changes. */
21
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
22
+ /**
23
+ * The callback function that is fired when the value changes and the value is
24
+ * valid.
25
+ */
26
+ onValueChange?: (files: File[]) => void;
27
+ /**
28
+ * Identifies the element (or elements) that provide a detailed, extended
29
+ * description for the object.
30
+ */
31
+ "aria-describedby"?: string;
32
+ }
33
+ export interface FileUploadProps extends SharedFileUploadProps {
34
+ /** The Icon to display. */
35
+ icon?: React.FC<IconProps>;
36
+ /** Whether to allow multiple files to be uploaded. */
37
+ multiple?: boolean;
38
+ }
@@ -0,0 +1,22 @@
1
+ import type React from "react";
2
+ import type { DetailedHTMLProps } from "react";
3
+ import type { DropItem } from "react-aria";
4
+ export declare function useFileUpload({ isDisabled, onValueChange, onChange, name, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, accept, multiple, }: FileUploadProps): {
5
+ inputProps: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
6
+ labelProps: DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
7
+ descriptionProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
8
+ };
9
+ interface FileUploadProps {
10
+ isDisabled?: boolean;
11
+ onValueChange?: (files: File[]) => void;
12
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
13
+ name?: string;
14
+ "aria-describedby"?: string;
15
+ "aria-label"?: string;
16
+ accept?: string;
17
+ multiple?: boolean;
18
+ }
19
+ export declare function onDropOrPaste({ items }: {
20
+ items: DropItem[];
21
+ }): Promise<File[]>;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ export { FileUpload } from "./FileUpload";
2
+ export { type FileUploadProps } from "./FileUpload.types";
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import type { FrameProviderProps } from "./FrameProvider.types";
3
+ /**
4
+ * Returns the current container dimensions from the FrameProvider context.
5
+ * Values update reactively when the container resizes.
6
+ */
7
+ export declare function useFrameDimensions(): {
8
+ width: number | undefined;
9
+ height: number | undefined;
10
+ };
11
+ export declare const FrameContext: React.Context<{
12
+ container: HTMLElement | null;
13
+ portalContainer: HTMLElement | null;
14
+ shouldContainOverlays: boolean;
15
+ isContainerPositioned: boolean;
16
+ containerWidth: number | undefined;
17
+ containerHeight: number | undefined;
18
+ shouldUseContainerAsBoundary: boolean;
19
+ }>;
20
+ export declare const FrameProvider: React.FC<FrameProviderProps>;
@@ -0,0 +1,40 @@
1
+ import type { BlockProps } from "../../utils";
2
+ import type React from "react";
3
+ export interface FrameProviderProps extends BlockProps {
4
+ /** The children of the FrameProvider */
5
+ children: React.ReactNode;
6
+ /** The container inside which all the overlays should be confined to */
7
+ container?: HTMLElement | null;
8
+ /** The container inside which all the portals should be confined to */
9
+ portalContainer?: HTMLElement | null;
10
+ /**
11
+ * Whether the container should contain the overlays. Here's what happens when
12
+ * the value is set to `"auto"`:
13
+ *
14
+ * - On mobile, the overlays will be positioned relative to the window.
15
+ * - On desktop or tablet, the overlays will be positioned relative to the
16
+ * container.
17
+ *
18
+ * When the value is set to `"always"`, the overlays will be positioned
19
+ * relative to the container on all devices.
20
+ *
21
+ * When the value is set to `"never"`, the overlays will be positioned
22
+ * relative to the window on all devices.
23
+ *
24
+ * @default "auto"
25
+ */
26
+ shouldContainOverlays?: "always" | "auto" | "never";
27
+ /**
28
+ * Whether the container should be used as the boundary for popovers and
29
+ * menus.
30
+ *
31
+ * When the value is set to `true`, the popovers and menus will be positioned
32
+ * relative to the container on all devices.
33
+ *
34
+ * When the value is set to `false`, the popovers and menus will be positioned
35
+ * relative to the window on all devices.
36
+ *
37
+ * @default false
38
+ */
39
+ shouldUseContainerAsBoundary?: boolean;
40
+ }
@@ -0,0 +1,2 @@
1
+ export { FrameProvider, useFrameDimensions } from "./FrameProvider";
2
+ export { type FrameProviderProps } from "./FrameProvider.types";