@baseline-ui/core 0.60.0 → 0.61.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 (477) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +10309 -11
  3. package/dist/index.js +11 -11
  4. package/dist/index.mjs +11 -11
  5. package/dist/react-aria.d.ts +708 -2
  6. package/dist/react-stately.d.ts +319 -2
  7. package/package.json +6 -6
  8. package/sbom.json +1 -1
  9. package/dist/components/Accordion/Accordion.css.d.ts +0 -44
  10. package/dist/components/Accordion/Accordion.d.ts +0 -11
  11. package/dist/components/Accordion/Accordion.types.d.ts +0 -70
  12. package/dist/components/Accordion/AccordionBase.d.ts +0 -5
  13. package/dist/components/Accordion/AccordionHeader.d.ts +0 -6
  14. package/dist/components/Accordion/AccordionItem.d.ts +0 -3
  15. package/dist/components/Accordion/index.d.ts +0 -3
  16. package/dist/components/ActionButton/ActionButton.css.d.ts +0 -216
  17. package/dist/components/ActionButton/ActionButton.d.ts +0 -4
  18. package/dist/components/ActionButton/ActionButton.types.d.ts +0 -44
  19. package/dist/components/ActionButton/index.d.ts +0 -2
  20. package/dist/components/ActionGroup/ActionGroup.css.d.ts +0 -2
  21. package/dist/components/ActionGroup/ActionGroup.d.ts +0 -11
  22. package/dist/components/ActionGroup/ActionGroup.types.d.ts +0 -43
  23. package/dist/components/ActionGroup/index.d.ts +0 -3
  24. package/dist/components/ActionIconButton/ActionIconButton.css.d.ts +0 -116
  25. package/dist/components/ActionIconButton/ActionIconButton.d.ts +0 -3
  26. package/dist/components/ActionIconButton/ActionIconButton.types.d.ts +0 -56
  27. package/dist/components/ActionIconButton/index.d.ts +0 -2
  28. package/dist/components/Actionable/Actionable.css.d.ts +0 -2
  29. package/dist/components/Actionable/Actionable.d.ts +0 -3
  30. package/dist/components/Actionable/Actionable.types.d.ts +0 -15
  31. package/dist/components/Actionable/index.d.ts +0 -3
  32. package/dist/components/AlertDialog/AlertDialog.css.d.ts +0 -26
  33. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  34. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -77
  35. package/dist/components/AlertDialog/index.d.ts +0 -3
  36. package/dist/components/AudioPlayer/AudioPlayer.css.d.ts +0 -3
  37. package/dist/components/AudioPlayer/AudioPlayer.d.ts +0 -3
  38. package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +0 -27
  39. package/dist/components/AudioPlayer/index.d.ts +0 -3
  40. package/dist/components/Avatar/Avatar.css.d.ts +0 -19
  41. package/dist/components/Avatar/Avatar.d.ts +0 -3
  42. package/dist/components/Avatar/Avatar.types.d.ts +0 -31
  43. package/dist/components/Avatar/index.d.ts +0 -2
  44. package/dist/components/Box/Box.d.ts +0 -3
  45. package/dist/components/Box/Box.types.d.ts +0 -12
  46. package/dist/components/Box/index.d.ts +0 -3
  47. package/dist/components/ButtonSelect/ButtonSelect.css.d.ts +0 -3
  48. package/dist/components/ButtonSelect/ButtonSelect.d.ts +0 -3
  49. package/dist/components/ButtonSelect/ButtonSelect.types.d.ts +0 -56
  50. package/dist/components/ButtonSelect/index.d.ts +0 -3
  51. package/dist/components/Calendar/Calendar.css.d.ts +0 -135
  52. package/dist/components/Calendar/Calendar.d.ts +0 -4
  53. package/dist/components/Calendar/Calendar.types.d.ts +0 -22
  54. package/dist/components/Calendar/CalendarCell.d.ts +0 -9
  55. package/dist/components/Calendar/CalendarHeader.d.ts +0 -6
  56. package/dist/components/Calendar/RangeCalendar.d.ts +0 -4
  57. package/dist/components/Calendar/index.d.ts +0 -3
  58. package/dist/components/Calendar/intl/index.d.ts +0 -267
  59. package/dist/components/Checkbox/Checkbox.css.d.ts +0 -103
  60. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  61. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -17
  62. package/dist/components/Checkbox/index.d.ts +0 -2
  63. package/dist/components/Code/Code.css.d.ts +0 -2
  64. package/dist/components/Code/Code.d.ts +0 -3
  65. package/dist/components/Code/Code.types.d.ts +0 -6
  66. package/dist/components/Code/index.d.ts +0 -3
  67. package/dist/components/ColorInput/ColorArea.d.ts +0 -4
  68. package/dist/components/ColorInput/ColorFieldInput.d.ts +0 -13
  69. package/dist/components/ColorInput/ColorInput.css.d.ts +0 -165
  70. package/dist/components/ColorInput/ColorInput.d.ts +0 -3
  71. package/dist/components/ColorInput/ColorInput.types.d.ts +0 -137
  72. package/dist/components/ColorInput/ColorInputButton.d.ts +0 -21
  73. package/dist/components/ColorInput/ColorPresetList.d.ts +0 -16
  74. package/dist/components/ColorInput/ColorSlider.d.ts +0 -3
  75. package/dist/components/ColorInput/CustomColors.d.ts +0 -15
  76. package/dist/components/ColorInput/IconColorInput.d.ts +0 -3
  77. package/dist/components/ColorInput/Picker.d.ts +0 -8
  78. package/dist/components/ColorInput/__tests__/data.d.ts +0 -8
  79. package/dist/components/ColorInput/hooks/useColorTrigger.d.ts +0 -13
  80. package/dist/components/ColorInput/index.d.ts +0 -4
  81. package/dist/components/ColorInput/intl/index.d.ts +0 -399
  82. package/dist/components/ColorInput/utils.d.ts +0 -44
  83. package/dist/components/ColorSwatch/ColorSwatch.css.d.ts +0 -39
  84. package/dist/components/ColorSwatch/ColorSwatch.d.ts +0 -3
  85. package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +0 -44
  86. package/dist/components/ColorSwatch/index.d.ts +0 -2
  87. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.css.d.ts +0 -2
  88. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.d.ts +0 -3
  89. package/dist/components/ColorSwatchPicker/ColorSwatchPicker.types.d.ts +0 -46
  90. package/dist/components/ColorSwatchPicker/index.d.ts +0 -3
  91. package/dist/components/ComboBox/ComboBox.css.d.ts +0 -203
  92. package/dist/components/ComboBox/ComboBox.d.ts +0 -3
  93. package/dist/components/ComboBox/ComboBox.types.d.ts +0 -96
  94. package/dist/components/ComboBox/index.d.ts +0 -3
  95. package/dist/components/ComboBox/useOnValueChange.d.ts +0 -6
  96. package/dist/components/DateField/DateField.d.ts +0 -6
  97. package/dist/components/DateField/DateField.types.d.ts +0 -17
  98. package/dist/components/DateField/index.d.ts +0 -3
  99. package/dist/components/DateField/intl/index.d.ts +0 -102
  100. package/dist/components/DateFormat/DateFormat.d.ts +0 -3
  101. package/dist/components/DateFormat/DateFormat.types.d.ts +0 -5
  102. package/dist/components/DateFormat/index.d.ts +0 -2
  103. package/dist/components/DeviceProvider/DeviceProvider.d.ts +0 -6
  104. package/dist/components/DeviceProvider/DeviceProvider.types.d.ts +0 -12
  105. package/dist/components/DeviceProvider/index.d.ts +0 -2
  106. package/dist/components/Dialog/Dialog.css.d.ts +0 -53
  107. package/dist/components/Dialog/Dialog.d.ts +0 -6
  108. package/dist/components/Dialog/Dialog.types.d.ts +0 -37
  109. package/dist/components/Dialog/DialogTitle.d.ts +0 -3
  110. package/dist/components/Dialog/index.d.ts +0 -3
  111. package/dist/components/Dialog/useDeferredLabel.d.ts +0 -7
  112. package/dist/components/Disclosure/Disclosure.css.d.ts +0 -116
  113. package/dist/components/Disclosure/Disclosure.d.ts +0 -3
  114. package/dist/components/Disclosure/Disclosure.types.d.ts +0 -30
  115. package/dist/components/Disclosure/index.d.ts +0 -3
  116. package/dist/components/DomNodeRenderer/DomNodeRenderer.d.ts +0 -3
  117. package/dist/components/DomNodeRenderer/DomNodeRenderer.types.d.ts +0 -11
  118. package/dist/components/DomNodeRenderer/index.d.ts +0 -2
  119. package/dist/components/Drawer/Drawer.css.d.ts +0 -31
  120. package/dist/components/Drawer/Drawer.d.ts +0 -3
  121. package/dist/components/Drawer/Drawer.types.d.ts +0 -24
  122. package/dist/components/Drawer/index.d.ts +0 -3
  123. package/dist/components/Editor/Editor.css.d.ts +0 -131
  124. package/dist/components/Editor/Editor.d.ts +0 -3
  125. package/dist/components/Editor/Editor.types.d.ts +0 -159
  126. package/dist/components/Editor/EditorToolbar.d.ts +0 -15
  127. package/dist/components/Editor/HelpDialog.d.ts +0 -5
  128. package/dist/components/Editor/RichEditor.d.ts +0 -24
  129. package/dist/components/Editor/elements/AddLink.d.ts +0 -10
  130. package/dist/components/Editor/elements/Mention.d.ts +0 -46
  131. package/dist/components/Editor/elements/Paragraph.d.ts +0 -2
  132. package/dist/components/Editor/elements/PlainEditor.d.ts +0 -11
  133. package/dist/components/Editor/index.d.ts +0 -2
  134. package/dist/components/Editor/utils.d.ts +0 -93
  135. package/dist/components/FileUpload/FileUpload.css.d.ts +0 -69
  136. package/dist/components/FileUpload/FileUpload.d.ts +0 -3
  137. package/dist/components/FileUpload/FileUpload.types.d.ts +0 -38
  138. package/dist/components/FileUpload/hooks/useFileUpload.d.ts +0 -22
  139. package/dist/components/FileUpload/index.d.ts +0 -2
  140. package/dist/components/FrameProvider/FrameProvider.d.ts +0 -20
  141. package/dist/components/FrameProvider/FrameProvider.types.d.ts +0 -40
  142. package/dist/components/FrameProvider/index.d.ts +0 -2
  143. package/dist/components/FreehandCanvas/FreehandCanvas.css.d.ts +0 -78
  144. package/dist/components/FreehandCanvas/FreehandCanvas.d.ts +0 -4
  145. package/dist/components/FreehandCanvas/FreehandCanvas.types.d.ts +0 -116
  146. package/dist/components/FreehandCanvas/hooks/usePathsData.d.ts +0 -27
  147. package/dist/components/FreehandCanvas/index.d.ts +0 -2
  148. package/dist/components/FreehandCanvas/intl/index.d.ts +0 -135
  149. package/dist/components/GridList/GridList.css.d.ts +0 -22
  150. package/dist/components/GridList/GridList.d.ts +0 -3
  151. package/dist/components/GridList/GridList.types.d.ts +0 -84
  152. package/dist/components/GridList/GridListItem.d.ts +0 -20
  153. package/dist/components/GridList/index.d.ts +0 -3
  154. package/dist/components/Group/Group.d.ts +0 -3
  155. package/dist/components/Group/Group.types.d.ts +0 -19
  156. package/dist/components/Group/index.d.ts +0 -2
  157. package/dist/components/I18nProvider/I18Provider.types.d.ts +0 -11
  158. package/dist/components/I18nProvider/I18nProvider.css.d.ts +0 -1
  159. package/dist/components/I18nProvider/I18nProvider.d.ts +0 -10
  160. package/dist/components/I18nProvider/index.d.ts +0 -4
  161. package/dist/components/Icon/Icon.d.ts +0 -4
  162. package/dist/components/Icon/Icon.types.d.ts +0 -36
  163. package/dist/components/Icon/index.d.ts +0 -2
  164. package/dist/components/ImageDropZone/ImageDropZone.css.d.ts +0 -76
  165. package/dist/components/ImageDropZone/ImageDropZone.d.ts +0 -3
  166. package/dist/components/ImageDropZone/ImageDropZone.types.d.ts +0 -50
  167. package/dist/components/ImageDropZone/index.d.ts +0 -2
  168. package/dist/components/ImageDropZone/intl/index.d.ts +0 -135
  169. package/dist/components/ImageGallery/AdaptiveText.d.ts +0 -13
  170. package/dist/components/ImageGallery/ImageGallery.css.d.ts +0 -86
  171. package/dist/components/ImageGallery/ImageGallery.d.ts +0 -18
  172. package/dist/components/ImageGallery/ImageGallery.types.d.ts +0 -130
  173. package/dist/components/ImageGallery/ImageGalleryDragPreview.d.ts +0 -22
  174. package/dist/components/ImageGallery/ImageGalleryItem.d.ts +0 -3
  175. package/dist/components/ImageGallery/index.d.ts +0 -2
  176. package/dist/components/ImageGallery/utils.d.ts +0 -10
  177. package/dist/components/InlineAlert/InlineAlert.css.d.ts +0 -214
  178. package/dist/components/InlineAlert/InlineAlert.d.ts +0 -3
  179. package/dist/components/InlineAlert/InlineAlert.types.d.ts +0 -38
  180. package/dist/components/InlineAlert/index.d.ts +0 -2
  181. package/dist/components/InlineAlert/intl/index.d.ts +0 -102
  182. package/dist/components/InlineToolbar/InlineToolbar.css.d.ts +0 -50
  183. package/dist/components/InlineToolbar/InlineToolbar.d.ts +0 -3
  184. package/dist/components/InlineToolbar/InlineToolbar.types.d.ts +0 -63
  185. package/dist/components/InlineToolbar/InlineToolbarButton.d.ts +0 -3
  186. package/dist/components/InlineToolbar/index.d.ts +0 -2
  187. package/dist/components/Kbd/Kbd.css.d.ts +0 -1
  188. package/dist/components/Kbd/Kbd.d.ts +0 -3
  189. package/dist/components/Kbd/Kbd.types.d.ts +0 -21
  190. package/dist/components/Kbd/index.d.ts +0 -2
  191. package/dist/components/Link/Link.css.d.ts +0 -41
  192. package/dist/components/Link/Link.d.ts +0 -3
  193. package/dist/components/Link/Link.types.d.ts +0 -26
  194. package/dist/components/Link/index.d.ts +0 -2
  195. package/dist/components/ListBox/DefaultListOption.d.ts +0 -22
  196. package/dist/components/ListBox/DropIndicator.d.ts +0 -11
  197. package/dist/components/ListBox/ListBox.css.d.ts +0 -91
  198. package/dist/components/ListBox/ListBox.d.ts +0 -6
  199. package/dist/components/ListBox/ListBox.types.d.ts +0 -104
  200. package/dist/components/ListBox/ListBoxSection.d.ts +0 -14
  201. package/dist/components/ListBox/ListOption.d.ts +0 -17
  202. package/dist/components/ListBox/hooks/useDragAndDrop.d.ts +0 -3
  203. package/dist/components/ListBox/hooks/useDragAutoScroll.d.ts +0 -5
  204. package/dist/components/ListBox/hooks/useDragDrop.d.ts +0 -33
  205. package/dist/components/ListBox/hooks/useSharedList.d.ts +0 -8
  206. package/dist/components/ListBox/index.d.ts +0 -4
  207. package/dist/components/Markdown/Markdown.css.d.ts +0 -3
  208. package/dist/components/Markdown/Markdown.d.ts +0 -3
  209. package/dist/components/Markdown/Markdown.types.d.ts +0 -7
  210. package/dist/components/Markdown/index.d.ts +0 -3
  211. package/dist/components/Menu/Menu.css.d.ts +0 -2
  212. package/dist/components/Menu/Menu.d.ts +0 -3
  213. package/dist/components/Menu/Menu.types.d.ts +0 -63
  214. package/dist/components/Menu/index.d.ts +0 -2
  215. package/dist/components/MessageFormat/MessageFormat.d.ts +0 -3
  216. package/dist/components/MessageFormat/MessageFormat.types.d.ts +0 -14
  217. package/dist/components/MessageFormat/index.d.ts +0 -2
  218. package/dist/components/Modal/Modal.css.d.ts +0 -39
  219. package/dist/components/Modal/Modal.d.ts +0 -11
  220. package/dist/components/Modal/Modal.types.d.ts +0 -70
  221. package/dist/components/Modal/ModalClose.d.ts +0 -4
  222. package/dist/components/Modal/ModalContent.d.ts +0 -13
  223. package/dist/components/Modal/ModalContentCore.d.ts +0 -3
  224. package/dist/components/Modal/ModalTrigger.d.ts +0 -4
  225. package/dist/components/Modal/hooks/useDialogPosition.d.ts +0 -13
  226. package/dist/components/Modal/index.d.ts +0 -5
  227. package/dist/components/NumberFormat/NumberFormat.d.ts +0 -3
  228. package/dist/components/NumberFormat/NumberFormat.types.d.ts +0 -5
  229. package/dist/components/NumberFormat/index.d.ts +0 -2
  230. package/dist/components/NumberInput/NumberInput.css.d.ts +0 -9
  231. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  232. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -26
  233. package/dist/components/NumberInput/index.d.ts +0 -2
  234. package/dist/components/Pagination/Pagination.css.d.ts +0 -84
  235. package/dist/components/Pagination/Pagination.d.ts +0 -3
  236. package/dist/components/Pagination/Pagination.types.d.ts +0 -25
  237. package/dist/components/Pagination/index.d.ts +0 -2
  238. package/dist/components/Pagination/intl/index.d.ts +0 -201
  239. package/dist/components/Panel/Panel.css.d.ts +0 -1
  240. package/dist/components/Panel/Panel.d.ts +0 -2
  241. package/dist/components/Panel/Panel.types.d.ts +0 -72
  242. package/dist/components/Panel/PanelContext.d.ts +0 -6
  243. package/dist/components/Panel/PanelGroup.d.ts +0 -2
  244. package/dist/components/Panel/PanelResizeHandle.d.ts +0 -5
  245. package/dist/components/Panel/index.d.ts +0 -4
  246. package/dist/components/PointPicker/Grid.d.ts +0 -7
  247. package/dist/components/PointPicker/PointPicker.css.d.ts +0 -37
  248. package/dist/components/PointPicker/PointPicker.d.ts +0 -22
  249. package/dist/components/PointPicker/PointPicker.types.d.ts +0 -116
  250. package/dist/components/PointPicker/PointPickerContent/PointPickerContent.d.ts +0 -3
  251. package/dist/components/PointPicker/PointPickerContent/PointPickerIndicator.d.ts +0 -8
  252. package/dist/components/PointPicker/PointPickerContent/hooks/useCoordinatesRelativeToWindow.d.ts +0 -4
  253. package/dist/components/PointPicker/PointPickerContent/hooks/usePointPickerKeyboard.d.ts +0 -3
  254. package/dist/components/PointPicker/PointPickerContent/index.d.ts +0 -1
  255. package/dist/components/PointPicker/PointPickerDisplay/Floater.d.ts +0 -7
  256. package/dist/components/PointPicker/PointPickerDisplay/MagnifierContent.d.ts +0 -8
  257. package/dist/components/PointPicker/PointPickerDisplay/PointPickerDisplay.d.ts +0 -3
  258. package/dist/components/PointPicker/PointPickerDisplay/hooks/useIndicatorWidthObserver.d.ts +0 -1
  259. package/dist/components/PointPicker/PointPickerDisplay/index.d.ts +0 -1
  260. package/dist/components/PointPicker/PointsVisualiser/PointsVisualiser.d.ts +0 -11
  261. package/dist/components/PointPicker/PointsVisualiser/canvasUtils.d.ts +0 -20
  262. package/dist/components/PointPicker/PointsVisualiser/hooks/usePointProximity.d.ts +0 -12
  263. package/dist/components/PointPicker/hooks/usePointPicker.d.ts +0 -4
  264. package/dist/components/PointPicker/index.d.ts +0 -5
  265. package/dist/components/PointPicker/workers/canvas.worker.d.ts +0 -1
  266. package/dist/components/PointPicker/workers/pointProximity.worker.d.ts +0 -1
  267. package/dist/components/Popover/Arrow.d.ts +0 -7
  268. package/dist/components/Popover/Popover.css.d.ts +0 -55
  269. package/dist/components/Popover/Popover.d.ts +0 -10
  270. package/dist/components/Popover/Popover.types.d.ts +0 -133
  271. package/dist/components/Popover/PopoverContent.d.ts +0 -3
  272. package/dist/components/Popover/PopoverContentCore.d.ts +0 -7
  273. package/dist/components/Popover/PopoverTrigger.d.ts +0 -8
  274. package/dist/components/Popover/hooks/usePopoverScrollReposition.d.ts +0 -22
  275. package/dist/components/Popover/hooks/usePopoverTransition.d.ts +0 -23
  276. package/dist/components/Popover/index.d.ts +0 -4
  277. package/dist/components/Portal/Portal.d.ts +0 -3
  278. package/dist/components/Portal/Portal.types.d.ts +0 -4
  279. package/dist/components/Portal/index.d.ts +0 -2
  280. package/dist/components/PortalContainerProvider/PortalContainerProvider.d.ts +0 -4
  281. package/dist/components/PortalContainerProvider/PortalContainerProvider.types.d.ts +0 -12
  282. package/dist/components/PortalContainerProvider/index.d.ts +0 -1
  283. package/dist/components/Preview/Preview.css.d.ts +0 -50
  284. package/dist/components/Preview/Preview.d.ts +0 -3
  285. package/dist/components/Preview/Preview.types.d.ts +0 -59
  286. package/dist/components/Preview/index.d.ts +0 -2
  287. package/dist/components/ProgressBar/ProgressBar.css.d.ts +0 -48
  288. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  289. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -20
  290. package/dist/components/ProgressBar/index.d.ts +0 -2
  291. package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +0 -9
  292. package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +0 -3
  293. package/dist/components/ProgressSpinner/ProgressSpinner.types.d.ts +0 -16
  294. package/dist/components/ProgressSpinner/index.d.ts +0 -2
  295. package/dist/components/RadioGroup/RadioGroup.css.d.ts +0 -26
  296. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  297. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -67
  298. package/dist/components/RadioGroup/RadioItem.d.ts +0 -11
  299. package/dist/components/RadioGroup/index.d.ts +0 -2
  300. package/dist/components/Reaction/Reaction.css.d.ts +0 -74
  301. package/dist/components/Reaction/Reaction.d.ts +0 -3
  302. package/dist/components/Reaction/Reaction.types.d.ts +0 -13
  303. package/dist/components/Reaction/index.d.ts +0 -2
  304. package/dist/components/ScrollControlButton/ScrollControlButton.css.d.ts +0 -1
  305. package/dist/components/ScrollControlButton/ScrollControlButton.d.ts +0 -3
  306. package/dist/components/ScrollControlButton/ScrollControlButton.types.d.ts +0 -31
  307. package/dist/components/ScrollControlButton/index.d.ts +0 -3
  308. package/dist/components/SearchInput/SearchInput.css.d.ts +0 -64
  309. package/dist/components/SearchInput/SearchInput.d.ts +0 -3
  310. package/dist/components/SearchInput/SearchInput.types.d.ts +0 -27
  311. package/dist/components/SearchInput/index.d.ts +0 -2
  312. package/dist/components/Select/IconSelect.d.ts +0 -3
  313. package/dist/components/Select/Select.css.d.ts +0 -58
  314. package/dist/components/Select/Select.d.ts +0 -9
  315. package/dist/components/Select/Select.types.d.ts +0 -87
  316. package/dist/components/Select/SelectButton.d.ts +0 -3
  317. package/dist/components/Select/index.d.ts +0 -3
  318. package/dist/components/Separator/Separator.css.d.ts +0 -19
  319. package/dist/components/Separator/Separator.d.ts +0 -3
  320. package/dist/components/Separator/Separator.types.d.ts +0 -12
  321. package/dist/components/Separator/index.d.ts +0 -2
  322. package/dist/components/Skeleton/Skeleton.css.d.ts +0 -1
  323. package/dist/components/Skeleton/Skeleton.d.ts +0 -3
  324. package/dist/components/Skeleton/Skeleton.types.d.ts +0 -7
  325. package/dist/components/Skeleton/index.d.ts +0 -2
  326. package/dist/components/Slider/IconSlider.d.ts +0 -3
  327. package/dist/components/Slider/Slider.css.d.ts +0 -133
  328. package/dist/components/Slider/Slider.d.ts +0 -3
  329. package/dist/components/Slider/Slider.types.d.ts +0 -42
  330. package/dist/components/Slider/index.d.ts +0 -3
  331. package/dist/components/StatusCard/StatusCard.css.d.ts +0 -87
  332. package/dist/components/StatusCard/StatusCard.d.ts +0 -10
  333. package/dist/components/StatusCard/StatusCard.types.d.ts +0 -34
  334. package/dist/components/StatusCard/index.d.ts +0 -3
  335. package/dist/components/Switch/Switch.css.d.ts +0 -67
  336. package/dist/components/Switch/Switch.d.ts +0 -3
  337. package/dist/components/Switch/Switch.types.d.ts +0 -15
  338. package/dist/components/Switch/index.d.ts +0 -2
  339. package/dist/components/Table/Table.css.d.ts +0 -111
  340. package/dist/components/Table/Table.d.ts +0 -8
  341. package/dist/components/Table/Table.types.d.ts +0 -26
  342. package/dist/components/Table/hooks/useTableDragAndDrop.d.ts +0 -8
  343. package/dist/components/Table/index.d.ts +0 -3
  344. package/dist/components/Tabs/TabItem.d.ts +0 -3
  345. package/dist/components/Tabs/TabPanel.d.ts +0 -9
  346. package/dist/components/Tabs/Tabs.css.d.ts +0 -122
  347. package/dist/components/Tabs/Tabs.d.ts +0 -3
  348. package/dist/components/Tabs/Tabs.types.d.ts +0 -66
  349. package/dist/components/Tabs/TabsBase.d.ts +0 -7
  350. package/dist/components/Tabs/index.d.ts +0 -3
  351. package/dist/components/Tag/Tag.css.d.ts +0 -215
  352. package/dist/components/Tag/Tag.d.ts +0 -3
  353. package/dist/components/Tag/Tag.types.d.ts +0 -43
  354. package/dist/components/Tag/TagContext.d.ts +0 -15
  355. package/dist/components/Tag/index.d.ts +0 -2
  356. package/dist/components/TagGroup/TagGroup.css.d.ts +0 -1
  357. package/dist/components/TagGroup/TagGroup.d.ts +0 -3
  358. package/dist/components/TagGroup/TagGroup.types.d.ts +0 -38
  359. package/dist/components/TagGroup/index.d.ts +0 -2
  360. package/dist/components/TaggedPagination/TaggedPagination.css.d.ts +0 -70
  361. package/dist/components/TaggedPagination/TaggedPagination.d.ts +0 -3
  362. package/dist/components/TaggedPagination/TaggedPagination.types.d.ts +0 -50
  363. package/dist/components/TaggedPagination/index.d.ts +0 -2
  364. package/dist/components/Text/Text.css.d.ts +0 -51
  365. package/dist/components/Text/Text.d.ts +0 -3
  366. package/dist/components/Text/Text.types.d.ts +0 -24
  367. package/dist/components/Text/index.d.ts +0 -2
  368. package/dist/components/TextInput/TextInput.css.d.ts +0 -183
  369. package/dist/components/TextInput/TextInput.d.ts +0 -3
  370. package/dist/components/TextInput/TextInput.types.d.ts +0 -18
  371. package/dist/components/TextInput/index.d.ts +0 -2
  372. package/dist/components/TextInput/utils/getMessage.d.ts +0 -12
  373. package/dist/components/TextInput/utils/getStatusIcon.d.ts +0 -6
  374. package/dist/components/ThemeProvider/ThemeProvider.context.d.ts +0 -6
  375. package/dist/components/ThemeProvider/ThemeProvider.css.d.ts +0 -1
  376. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -3
  377. package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +0 -29
  378. package/dist/components/ThemeProvider/hooks/useUserPreferences.d.ts +0 -19
  379. package/dist/components/ThemeProvider/index.d.ts +0 -6
  380. package/dist/components/TimeField/DateTimeSegment.d.ts +0 -5
  381. package/dist/components/TimeField/TimeField.css.d.ts +0 -16
  382. package/dist/components/TimeField/TimeField.d.ts +0 -3
  383. package/dist/components/TimeField/TimeField.types.d.ts +0 -6
  384. package/dist/components/TimeField/index.d.ts +0 -3
  385. package/dist/components/Toast/Toast.css.d.ts +0 -34
  386. package/dist/components/Toast/Toast.d.ts +0 -3
  387. package/dist/components/Toast/Toast.types.d.ts +0 -14
  388. package/dist/components/Toast/index.d.ts +0 -4
  389. package/dist/components/ToggleButton/ToggleButton.css.d.ts +0 -74
  390. package/dist/components/ToggleButton/ToggleButton.d.ts +0 -3
  391. package/dist/components/ToggleButton/ToggleButton.types.d.ts +0 -27
  392. package/dist/components/ToggleButton/index.d.ts +0 -2
  393. package/dist/components/ToggleIconButton/ToggleIconButton.css.d.ts +0 -149
  394. package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +0 -3
  395. package/dist/components/ToggleIconButton/ToggleIconButton.types.d.ts +0 -30
  396. package/dist/components/ToggleIconButton/index.d.ts +0 -2
  397. package/dist/components/Toolbar/CollapsibleToolbar.d.ts +0 -3
  398. package/dist/components/Toolbar/Toolbar.css.d.ts +0 -2
  399. package/dist/components/Toolbar/Toolbar.d.ts +0 -3
  400. package/dist/components/Toolbar/Toolbar.types.d.ts +0 -47
  401. package/dist/components/Toolbar/WrappedToolbar.d.ts +0 -3
  402. package/dist/components/Toolbar/hooks/useFormattedList.d.ts +0 -3
  403. package/dist/components/Toolbar/hooks/useInputAwareToolbar.d.ts +0 -6
  404. package/dist/components/Toolbar/index.d.ts +0 -3
  405. package/dist/components/Tooltip/Tooltip.css.d.ts +0 -44
  406. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  407. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -55
  408. package/dist/components/Tooltip/TooltipContent.d.ts +0 -15
  409. package/dist/components/Tooltip/index.d.ts +0 -3
  410. package/dist/components/TreeView/TreeItem.d.ts +0 -7
  411. package/dist/components/TreeView/TreeView.css.d.ts +0 -34
  412. package/dist/components/TreeView/TreeView.d.ts +0 -8
  413. package/dist/components/TreeView/TreeView.types.d.ts +0 -95
  414. package/dist/components/TreeView/index.d.ts +0 -2
  415. package/dist/components/UNSAFE_ListBox/ListBox.css.d.ts +0 -92
  416. package/dist/components/UNSAFE_ListBox/ListBox.d.ts +0 -13
  417. package/dist/components/UNSAFE_ListBox/ListBox.types.d.ts +0 -84
  418. package/dist/components/UNSAFE_ListBox/ListBoxUI.d.ts +0 -19
  419. package/dist/components/UNSAFE_ListBox/hooks/useDragAndDrop.d.ts +0 -3
  420. package/dist/components/UNSAFE_ListBox/index.d.ts +0 -3
  421. package/dist/components/Virtualizer/LocaleAwareGridLayout.d.ts +0 -17
  422. package/dist/components/Virtualizer/Virtualizer.types.d.ts +0 -6
  423. package/dist/components/Virtualizer/index.d.ts +0 -36
  424. package/dist/components/index.d.ts +0 -81
  425. package/dist/components/shared/buttons.d.ts +0 -30
  426. package/dist/components/shared/collection.d.ts +0 -3
  427. package/dist/components/shared/components/DragPreviewContent.d.ts +0 -12
  428. package/dist/components/shared/components/IconWithTooltip.d.ts +0 -8
  429. package/dist/components/shared/components/ListCollectionBuilder.d.ts +0 -9
  430. package/dist/components/shared/components/OverlayEventLeakPreventionLayer.d.ts +0 -8
  431. package/dist/components/shared/components/SharedInput/SharedInput.d.ts +0 -3
  432. package/dist/components/shared/components/SharedInput/SharedInput.types.d.ts +0 -34
  433. package/dist/components/shared/components/SharedInput/index.d.ts +0 -1
  434. package/dist/components/shared/tooltips.d.ts +0 -11
  435. package/dist/components/shared/types/IconComponent.d.ts +0 -21
  436. package/dist/components/shared/types/List.d.ts +0 -17
  437. package/dist/hooks/index.d.ts +0 -13
  438. package/dist/hooks/useDevice.d.ts +0 -20
  439. package/dist/hooks/useI18n.d.ts +0 -59
  440. package/dist/hooks/useImage.d.ts +0 -23
  441. package/dist/hooks/useIntersectionObserver.d.ts +0 -44
  442. package/dist/hooks/useIsFirstRender.d.ts +0 -21
  443. package/dist/hooks/useIsTouchDevice.d.ts +0 -7
  444. package/dist/hooks/useLiveInteractionModality.d.ts +0 -13
  445. package/dist/hooks/useLocalStorage.d.ts +0 -20
  446. package/dist/hooks/useMedia.d.ts +0 -13
  447. package/dist/hooks/useMutationObserver.d.ts +0 -20
  448. package/dist/hooks/usePortalContainer.d.ts +0 -11
  449. package/dist/hooks/usePreventFocus.d.ts +0 -23
  450. package/dist/hooks/useResizeObserver.d.ts +0 -38
  451. package/dist/hooks/useTextSelection.d.ts +0 -29
  452. package/dist/hooks/useUndoRedo.d.ts +0 -44
  453. package/dist/utils/a11y.d.ts +0 -1
  454. package/dist/utils/classNames.d.ts +0 -17
  455. package/dist/utils/colors.d.ts +0 -11
  456. package/dist/utils/constants.d.ts +0 -1
  457. package/dist/utils/devWarn.d.ts +0 -1
  458. package/dist/utils/dom.d.ts +0 -130
  459. package/dist/utils/index.d.ts +0 -18
  460. package/dist/utils/invariant.d.ts +0 -18
  461. package/dist/utils/isInIframe.d.ts +0 -12
  462. package/dist/utils/isInShadowDOM.d.ts +0 -11
  463. package/dist/utils/isRect.d.ts +0 -7
  464. package/dist/utils/keyboards.d.ts +0 -13
  465. package/dist/utils/math.d.ts +0 -1
  466. package/dist/utils/objects.d.ts +0 -20
  467. package/dist/utils/overlays.d.ts +0 -6
  468. package/dist/utils/reactAriaCompat.d.ts +0 -22
  469. package/dist/utils/reactAriaComponentsCompat.d.ts +0 -4
  470. package/dist/utils/resolveAriaLabelAttrs.d.ts +0 -22
  471. package/dist/utils/resolvePublicUrl.d.ts +0 -1
  472. package/dist/utils/strings.d.ts +0 -6
  473. package/dist/utils/style.d.ts +0 -5
  474. package/dist/utils/styleMixins.css.d.ts +0 -16
  475. package/dist/utils/svgs.d.ts +0 -15
  476. package/dist/utils/types/Shared.d.ts +0 -34
  477. package/dist/utils/validations.d.ts +0 -13
@@ -1,2 +1,319 @@
1
- export { useListData, useTreeData } from "react-stately";
2
- export type { ListData, Color, TreeData } from "react-stately";
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+
14
+ type Selection = 'all' | Set<Key>;
15
+
16
+ /*
17
+ * Copyright 2023 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */
27
+
28
+ type Key = string | number;
29
+
30
+ /** A list of supported color formats. */
31
+ type ColorFormat = 'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsb' | 'hsba';
32
+ type ColorSpace = 'rgb' | 'hsl' | 'hsb';
33
+ /** A list of color channels. */
34
+ type ColorChannel = 'hue' | 'saturation' | 'brightness' | 'lightness' | 'red' | 'green' | 'blue' | 'alpha';
35
+ type ColorAxes = {
36
+ xChannel: ColorChannel;
37
+ yChannel: ColorChannel;
38
+ zChannel: ColorChannel;
39
+ };
40
+ interface ColorChannelRange {
41
+ /** The minimum value of the color channel. */
42
+ minValue: number;
43
+ /** The maximum value of the color channel. */
44
+ maxValue: number;
45
+ /** The step value of the color channel, used when incrementing and decrementing. */
46
+ step: number;
47
+ /** The page step value of the color channel, used when incrementing and decrementing. */
48
+ pageSize: number;
49
+ }
50
+ /** Represents a color value. */
51
+ interface Color {
52
+ /** Converts the color to the given color format, and returns a new Color object. */
53
+ toFormat(format: ColorFormat): Color;
54
+ /** Converts the color to a string in the given format. */
55
+ toString(format?: ColorFormat | 'css'): string;
56
+ /** Returns a duplicate of the color value. */
57
+ clone(): Color;
58
+ /** Converts the color to hex, and returns an integer representation. */
59
+ toHexInt(): number;
60
+ /**
61
+ * Returns the numeric value for a given channel.
62
+ * Throws an error if the channel is unsupported in the current color format.
63
+ */
64
+ getChannelValue(channel: ColorChannel): number;
65
+ /**
66
+ * Sets the numeric value for a given channel, and returns a new Color object.
67
+ * Throws an error if the channel is unsupported in the current color format.
68
+ */
69
+ withChannelValue(channel: ColorChannel, value: number): Color;
70
+ /**
71
+ * Returns the minimum, maximum, and step values for a given channel.
72
+ */
73
+ getChannelRange(channel: ColorChannel): ColorChannelRange;
74
+ /**
75
+ * Returns a localized color channel name for a given channel and locale,
76
+ * for use in visual or accessibility labels.
77
+ */
78
+ getChannelName(channel: ColorChannel, locale: string): string;
79
+ /**
80
+ * Returns the number formatting options for the given channel.
81
+ */
82
+ getChannelFormatOptions(channel: ColorChannel): Intl.NumberFormatOptions;
83
+ /**
84
+ * Formats the numeric value for a given channel for display according to the provided locale.
85
+ */
86
+ formatChannelValue(channel: ColorChannel, locale: string): string;
87
+ /**
88
+ * Returns the color space, 'rgb', 'hsb' or 'hsl', for the current color.
89
+ */
90
+ getColorSpace(): ColorSpace;
91
+ /**
92
+ * Returns the color space axes, xChannel, yChannel, zChannel.
93
+ */
94
+ getColorSpaceAxes(xyChannels: {
95
+ xChannel?: ColorChannel;
96
+ yChannel?: ColorChannel;
97
+ }): ColorAxes;
98
+ /**
99
+ * Returns an array of the color channels within the current color space space.
100
+ */
101
+ getColorChannels(): [ColorChannel, ColorChannel, ColorChannel];
102
+ /**
103
+ * Returns a localized name for the color, for use in visual or accessibility labels.
104
+ */
105
+ getColorName(locale: string): string;
106
+ /**
107
+ * Returns a localized name for the hue, for use in visual or accessibility labels.
108
+ */
109
+ getHueName(locale: string): string;
110
+ }
111
+
112
+ interface ListOptions<T> {
113
+ /** Initial items in the list. */
114
+ initialItems?: T[];
115
+ /** The keys for the initially selected items. */
116
+ initialSelectedKeys?: 'all' | Iterable<Key>;
117
+ /** The initial text to filter the list by. */
118
+ initialFilterText?: string;
119
+ /** A function that returns a unique key for an item object. */
120
+ getKey?: (item: T) => Key;
121
+ /** A function that returns whether a item matches the current filter text. */
122
+ filter?: (item: T, filterText: string) => boolean;
123
+ }
124
+ interface ListData<T> {
125
+ /** The items in the list. */
126
+ items: T[];
127
+ /** The keys of the currently selected items in the list. */
128
+ selectedKeys: Selection;
129
+ /** Sets the selected keys. */
130
+ setSelectedKeys(keys: Selection): void;
131
+ /** Adds the given keys to the current selected keys. */
132
+ addKeysToSelection(keys: Selection): void;
133
+ /** Removes the given keys from the current selected keys. */
134
+ removeKeysFromSelection(keys: Selection): void;
135
+ /** The current filter text. */
136
+ filterText: string;
137
+ /** Sets the filter text. */
138
+ setFilterText(filterText: string): void;
139
+ /**
140
+ * Gets an item from the list by key.
141
+ * @param key - The key of the item to retrieve.
142
+ */
143
+ getItem(key: Key): T | undefined;
144
+ /**
145
+ * Inserts items into the list at the given index.
146
+ * @param index - The index to insert into.
147
+ * @param values - The values to insert.
148
+ */
149
+ insert(index: number, ...values: T[]): void;
150
+ /**
151
+ * Inserts items into the list before the item at the given key.
152
+ * @param key - The key of the item to insert before.
153
+ * @param values - The values to insert.
154
+ */
155
+ insertBefore(key: Key, ...values: T[]): void;
156
+ /**
157
+ * Inserts items into the list after the item at the given key.
158
+ * @param key - The key of the item to insert after.
159
+ * @param values - The values to insert.
160
+ */
161
+ insertAfter(key: Key, ...values: T[]): void;
162
+ /**
163
+ * Appends items to the list.
164
+ * @param values - The values to insert.
165
+ */
166
+ append(...values: T[]): void;
167
+ /**
168
+ * Prepends items to the list.
169
+ * @param value - The value to insert.
170
+ */
171
+ prepend(...values: T[]): void;
172
+ /**
173
+ * Removes items from the list by their keys.
174
+ * @param keys - The keys of the item to remove.
175
+ */
176
+ remove(...keys: Key[]): void;
177
+ /**
178
+ * Removes all items from the list that are currently
179
+ * in the set of selected items.
180
+ */
181
+ removeSelectedItems(): void;
182
+ /**
183
+ * Moves an item within the list.
184
+ * @param key - The key of the item to move.
185
+ * @param toIndex - The index to move the item to.
186
+ */
187
+ move(key: Key, toIndex: number): void;
188
+ /**
189
+ * Moves one or more items before a given key.
190
+ * @param key - The key of the item to move the items before.
191
+ * @param keys - The keys of the items to move.
192
+ */
193
+ moveBefore(key: Key, keys: Iterable<Key>): void;
194
+ /**
195
+ * Moves one or more items after a given key.
196
+ * @param key - The key of the item to move the items after.
197
+ * @param keys - The keys of the items to move.
198
+ */
199
+ moveAfter(key: Key, keys: Iterable<Key>): void;
200
+ /**
201
+ * Updates an item in the list.
202
+ * @param key - The key of the item to update.
203
+ * @param newValue - The new value for the item, or a function that returns the new value based on the previous value.
204
+ */
205
+ update(key: Key, newValue: T | ((prev: T) => T)): void;
206
+ }
207
+ /**
208
+ * Manages state for an immutable list data structure, and provides convenience methods to
209
+ * update the data over time.
210
+ */
211
+ declare function useListData<T>(options: ListOptions<T>): ListData<T>;
212
+
213
+ interface TreeOptions<T extends object> {
214
+ /** Initial root items in the tree. */
215
+ initialItems?: T[];
216
+ /** The keys for the initially selected items. */
217
+ initialSelectedKeys?: Iterable<Key>;
218
+ /** A function that returns a unique key for an item object. */
219
+ getKey?: (item: T) => Key;
220
+ /** A function that returns the children for an item object. */
221
+ getChildren?: (item: T) => T[];
222
+ }
223
+ interface TreeNode<T extends object> {
224
+ /** A unique key for the tree node. */
225
+ key: Key;
226
+ /** The key of the parent node. */
227
+ parentKey?: Key | null;
228
+ /** The value object for the tree node. */
229
+ value: T;
230
+ /** Children of the tree node. */
231
+ children: TreeNode<T>[] | null;
232
+ }
233
+ interface TreeData<T extends object> {
234
+ /** The root nodes in the tree. */
235
+ items: TreeNode<T>[];
236
+ /** The keys of the currently selected items in the tree. */
237
+ selectedKeys: Set<Key>;
238
+ /** Sets the selected keys. */
239
+ setSelectedKeys(keys: Set<Key>): void;
240
+ /**
241
+ * Gets a node from the tree by key.
242
+ * @param key - The key of the item to retrieve.
243
+ */
244
+ getItem(key: Key): TreeNode<T> | undefined;
245
+ /**
246
+ * Inserts an item into a parent node as a child.
247
+ * @param parentKey - The key of the parent item to insert into. `null` for the root.
248
+ * @param index - The index within the parent to insert into.
249
+ * @param value - The value to insert.
250
+ */
251
+ insert(parentKey: Key | null, index: number, ...values: T[]): void;
252
+ /**
253
+ * Inserts items into the list before the item at the given key.
254
+ * @param key - The key of the item to insert before.
255
+ * @param values - The values to insert.
256
+ */
257
+ insertBefore(key: Key, ...values: T[]): void;
258
+ /**
259
+ * Inserts items into the list after the item at the given key.
260
+ * @param key - The key of the item to insert after.
261
+ * @param values - The values to insert.
262
+ */
263
+ insertAfter(key: Key, ...values: T[]): void;
264
+ /**
265
+ * Appends an item into a parent node as a child.
266
+ * @param parentKey - The key of the parent item to insert into. `null` for the root.
267
+ * @param value - The value to insert.
268
+ */
269
+ append(parentKey: Key | null, ...values: T[]): void;
270
+ /**
271
+ * Prepends an item into a parent node as a child.
272
+ * @param parentKey - The key of the parent item to insert into. `null` for the root.
273
+ * @param value - The value to insert.
274
+ */
275
+ prepend(parentKey: Key | null, ...value: T[]): void;
276
+ /**
277
+ * Removes an item from the tree by its key.
278
+ * @param key - The key of the item to remove.
279
+ */
280
+ remove(...keys: Key[]): void;
281
+ /**
282
+ * Removes all items from the tree that are currently
283
+ * in the set of selected items.
284
+ */
285
+ removeSelectedItems(): void;
286
+ /**
287
+ * Moves an item within the tree.
288
+ * @param key - The key of the item to move.
289
+ * @param toParentKey - The key of the new parent to insert into. `null` for the root.
290
+ * @param index - The index within the new parent to insert at.
291
+ */
292
+ move(key: Key, toParentKey: Key | null, index: number): void;
293
+ /**
294
+ * Moves one or more items before a given key.
295
+ * @param key - The key of the item to move the items before.
296
+ * @param keys - The keys of the items to move.
297
+ */
298
+ moveBefore(key: Key, keys: Iterable<Key>): void;
299
+ /**
300
+ * Moves one or more items after a given key.
301
+ * @param key - The key of the item to move the items after.
302
+ * @param keys - The keys of the items to move.
303
+ */
304
+ moveAfter(key: Key, keys: Iterable<Key>): void;
305
+ /**
306
+ * Updates an item in the tree.
307
+ * @param key - The key of the item to update.
308
+ * @param newValue - The new value for the item.
309
+ */
310
+ update(key: Key, newValue: T): void;
311
+ }
312
+ /**
313
+ * Manages state for an immutable tree data structure, and provides convenience methods to
314
+ * update the data over time.
315
+ */
316
+ declare function useTreeData<T extends object>(options: TreeOptions<T>): TreeData<T>;
317
+
318
+ export { useListData, useTreeData };
319
+ export type { Color, ListData, TreeData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseline-ui/core",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "description": "Baseline UI is a set of accessible components and tools for building accessible, customizable, production-ready user interfaces",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,9 +36,9 @@
36
36
  "slate-hyperscript": "^0.100.0",
37
37
  "tailwind-merge": "^3.5.0",
38
38
  "use-sync-external-store": "1.6.0",
39
- "@baseline-ui/css": "0.60.0",
40
- "@baseline-ui/icons": "0.60.0",
41
- "@baseline-ui/tokens": "0.60.0"
39
+ "@baseline-ui/css": "0.61.0",
40
+ "@baseline-ui/icons": "0.61.0",
41
+ "@baseline-ui/tokens": "0.61.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^18.0.0",
@@ -49,7 +49,7 @@
49
49
  "@types/dompurify": "3.2.0",
50
50
  "@types/markdown-it": "^14.1.2",
51
51
  "@vanilla-extract/recipes": "0.5.7",
52
- "@baseline-ui/translations": "0.60.0"
52
+ "@baseline-ui/translations": "0.61.0"
53
53
  },
54
54
  "license": "SEE LICENSE IN https://pspdfkit.com/legal/License.pdf",
55
55
  "publishConfig": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup src/index.ts --format cjs,esm --clean --minify --treeshake --no-dts && pnpm run build:dts",
60
- "build:dts": "tsc -p tsconfig.dts.json",
60
+ "build:dts": "rollup -c rollup.config.js",
61
61
  "build:docs": "typedoc --useCodeBlocks --enumMembersFormat table --hidePageTitle --parametersFormat table --propertiesFormat table --hidePageHeader --indexFormat table --typeDeclarationFormat table --hideBreadcrumbs --outputFileStrategy modules",
62
62
  "acknowledgements": "pnpm-licenses generate-disclaimer --prod --output-file=Acknowledgements.md"
63
63
  }