@ckbox/components 1.1.1-dev.0 → 1.2.0-dev.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 (444) hide show
  1. package/README.md +3 -3
  2. package/dist/bottombar/Bottombar.d.ts +17 -0
  3. package/dist/bottombar/index.d.ts +1 -0
  4. package/dist/button/Button.d.ts +83 -0
  5. package/dist/button/index.d.ts +2 -0
  6. package/dist/button/types.d.ts +3 -0
  7. package/dist/checkbox/Checkbox.d.ts +33 -0
  8. package/dist/checkbox/index.d.ts +1 -0
  9. package/dist/circularLoader/CircularLoader.d.ts +21 -0
  10. package/dist/circularLoader/index.d.ts +1 -0
  11. package/dist/containerQuery/ContainerQuery.d.ts +18 -0
  12. package/dist/containerQuery/breakpoints/Breakpoints.d.ts +36 -0
  13. package/dist/containerQuery/breakpoints/index.d.ts +1 -0
  14. package/dist/containerQuery/context/ContainerQueryContext.d.ts +18 -0
  15. package/dist/containerQuery/context/index.d.ts +1 -0
  16. package/dist/containerQuery/index.d.ts +3 -0
  17. package/dist/containerQuery/provider/ContainerQueryProvider.d.ts +18 -0
  18. package/dist/containerQuery/provider/index.d.ts +1 -0
  19. package/dist/copyButton/CopyButton.d.ts +17 -0
  20. package/dist/copyButton/index.d.ts +1 -0
  21. package/dist/copyableInput/CopyableInput.d.ts +25 -0
  22. package/dist/copyableInput/index.d.ts +1 -0
  23. package/dist/dialog/Dialog.d.ts +9 -0
  24. package/dist/dialog/actions/DialogActions.d.ts +9 -0
  25. package/dist/dialog/actions/index.d.ts +1 -0
  26. package/dist/dialog/animated/DialogAnimated.d.ts +30 -0
  27. package/dist/dialog/animated/index.d.ts +1 -0
  28. package/dist/dialog/column/DialogColumn.d.ts +13 -0
  29. package/dist/dialog/column/index.d.ts +1 -0
  30. package/dist/dialog/context/DialogContext.d.ts +18 -0
  31. package/dist/dialog/context/index.d.ts +1 -0
  32. package/dist/dialog/draggable/DialogDraggable.d.ts +23 -0
  33. package/dist/dialog/draggable/index.d.ts +1 -0
  34. package/dist/dialog/footer/DialogFooter.d.ts +18 -0
  35. package/dist/dialog/footer/index.d.ts +1 -0
  36. package/dist/dialog/header/DialogHeader.d.ts +49 -0
  37. package/dist/dialog/header/index.d.ts +1 -0
  38. package/dist/dialog/index.d.ts +7 -0
  39. package/dist/dialog/root/DialogRoot.d.ts +9 -0
  40. package/dist/dialog/root/index.d.ts +1 -0
  41. package/dist/dialog/row/DialogRow.d.ts +9 -0
  42. package/dist/dialog/row/index.d.ts +1 -0
  43. package/dist/dialog/section/DialogSection.d.ts +45 -0
  44. package/dist/dialog/section/index.d.ts +1 -0
  45. package/dist/docIcon/DocIcon.d.ts +11 -0
  46. package/dist/docIcon/icons/Archive.d.ts +4 -0
  47. package/dist/docIcon/icons/Empty.d.ts +4 -0
  48. package/dist/docIcon/icons/Excel.d.ts +4 -0
  49. package/dist/docIcon/icons/Img.d.ts +4 -0
  50. package/dist/docIcon/icons/Movie.d.ts +4 -0
  51. package/dist/docIcon/icons/Music.d.ts +4 -0
  52. package/dist/docIcon/icons/Pdf.d.ts +4 -0
  53. package/dist/docIcon/icons/Ppt.d.ts +4 -0
  54. package/dist/docIcon/icons/Txt.d.ts +4 -0
  55. package/dist/docIcon/icons/Word.d.ts +4 -0
  56. package/dist/docIcon/icons/index.d.ts +10 -0
  57. package/dist/docIcon/index.d.ts +2 -0
  58. package/dist/drawer/Drawer.d.ts +25 -0
  59. package/dist/drawer/actions/DrawerActions.d.ts +9 -0
  60. package/dist/drawer/actions/index.d.ts +1 -0
  61. package/dist/drawer/content/DrawerContent.d.ts +9 -0
  62. package/dist/drawer/content/index.d.ts +1 -0
  63. package/dist/drawer/context/DrawerContext.d.ts +9 -0
  64. package/dist/drawer/context/index.d.ts +1 -0
  65. package/dist/drawer/header/DrawerHeader.d.ts +13 -0
  66. package/dist/drawer/header/index.d.ts +1 -0
  67. package/dist/drawer/index.d.ts +5 -0
  68. package/dist/drawer/section/DrawerSection.d.ts +17 -0
  69. package/dist/drawer/section/index.d.ts +1 -0
  70. package/dist/emptyView/EmptyView.d.ts +22 -0
  71. package/dist/emptyView/index.d.ts +2 -0
  72. package/dist/emptyView/label/EmptyViewLabel.d.ts +13 -0
  73. package/dist/emptyView/label/index.d.ts +1 -0
  74. package/dist/fileInputButton/FileInputButton.d.ts +30 -0
  75. package/dist/fileInputButton/index.d.ts +1 -0
  76. package/dist/filePreview/FilePreview.d.ts +29 -0
  77. package/dist/filePreview/actions/FilePreviewActions.d.ts +21 -0
  78. package/dist/filePreview/actions/index.d.ts +1 -0
  79. package/dist/filePreview/content/FilePreviewContent.d.ts +9 -0
  80. package/dist/filePreview/content/index.d.ts +1 -0
  81. package/dist/filePreview/context/FilePreviewContext.d.ts +9 -0
  82. package/dist/filePreview/context/index.d.ts +1 -0
  83. package/dist/filePreview/hoverable/FilePreviewHoverable.d.ts +9 -0
  84. package/dist/filePreview/hoverable/index.d.ts +1 -0
  85. package/dist/filePreview/index.d.ts +6 -0
  86. package/dist/filePreview/navButton/FilePreviewNavButton.d.ts +22 -0
  87. package/dist/filePreview/navButton/index.d.ts +1 -0
  88. package/dist/filePreview/tooltip/FilePreviewTooltip.d.ts +9 -0
  89. package/dist/filePreview/tooltip/index.d.ts +1 -0
  90. package/dist/fixed/Fixed.d.ts +9 -0
  91. package/dist/fixed/context/FixedContext.d.ts +9 -0
  92. package/dist/fixed/context/index.d.ts +1 -0
  93. package/dist/fixed/index.d.ts +3 -0
  94. package/dist/fixed/provider/FixedProvider.d.ts +14 -0
  95. package/dist/fixed/provider/index.d.ts +1 -0
  96. package/dist/form/Form.d.ts +21 -0
  97. package/dist/form/feedback/FormFeedback.d.ts +17 -0
  98. package/dist/form/feedback/index.d.ts +1 -0
  99. package/dist/form/group/FormGroup.d.ts +13 -0
  100. package/dist/form/group/index.d.ts +1 -0
  101. package/dist/form/groupColumn/FormGroupColumn.d.ts +9 -0
  102. package/dist/form/groupColumn/index.d.ts +1 -0
  103. package/dist/form/groupInfo/FormGroupInfo.d.ts +9 -0
  104. package/dist/form/groupInfo/index.d.ts +1 -0
  105. package/dist/form/index.d.ts +6 -0
  106. package/dist/form/inputLabel/FormInputLabel.d.ts +17 -0
  107. package/dist/form/inputLabel/index.d.ts +1 -0
  108. package/dist/gallery/Gallery.d.ts +17 -0
  109. package/dist/gallery/figure/GalleryFigure.d.ts +13 -0
  110. package/dist/gallery/figure/index.d.ts +1 -0
  111. package/dist/gallery/index.d.ts +3 -0
  112. package/dist/gallery/item/GalleryItem.d.ts +37 -0
  113. package/dist/gallery/item/index.d.ts +1 -0
  114. package/dist/gallery/skeleton/GallerySkeleton.d.ts +3 -0
  115. package/dist/gallery/skeleton/index.d.ts +1 -0
  116. package/dist/icon/Icon.d.ts +29 -0
  117. package/dist/icon/icons/ArrowLeft.d.ts +4 -0
  118. package/dist/icon/icons/ArrowLeftEnd.d.ts +4 -0
  119. package/dist/icon/icons/ArrowRight.d.ts +4 -0
  120. package/dist/icon/icons/ArrowRightEnd.d.ts +4 -0
  121. package/dist/icon/icons/Cabinet.d.ts +4 -0
  122. package/dist/icon/icons/Check.d.ts +4 -0
  123. package/dist/icon/icons/ChevronDown.d.ts +4 -0
  124. package/dist/icon/icons/ChevronLeft.d.ts +4 -0
  125. package/dist/icon/icons/ChevronRight.d.ts +4 -0
  126. package/dist/icon/icons/Clock.d.ts +4 -0
  127. package/dist/icon/icons/Close.d.ts +4 -0
  128. package/dist/icon/icons/Cog.d.ts +4 -0
  129. package/dist/icon/icons/Copy.d.ts +4 -0
  130. package/dist/icon/icons/Docs.d.ts +4 -0
  131. package/dist/icon/icons/DotsVertical.d.ts +4 -0
  132. package/dist/icon/icons/Download.d.ts +4 -0
  133. package/dist/icon/icons/DragHandle.d.ts +4 -0
  134. package/dist/icon/icons/Filter.d.ts +4 -0
  135. package/dist/icon/icons/Folder.d.ts +4 -0
  136. package/dist/icon/icons/Image.d.ts +4 -0
  137. package/dist/icon/icons/Info.d.ts +4 -0
  138. package/dist/icon/icons/InfoSquare.d.ts +4 -0
  139. package/dist/icon/icons/Pencil.d.ts +4 -0
  140. package/dist/icon/icons/Plus.d.ts +4 -0
  141. package/dist/icon/icons/Search.d.ts +4 -0
  142. package/dist/icon/icons/SearchMissingResults.d.ts +4 -0
  143. package/dist/icon/icons/Settings.d.ts +4 -0
  144. package/dist/icon/icons/Sort.d.ts +4 -0
  145. package/dist/icon/icons/Spinner.d.ts +4 -0
  146. package/dist/icon/icons/Trash.d.ts +4 -0
  147. package/dist/icon/icons/Upload.d.ts +4 -0
  148. package/dist/icon/icons/Warning.d.ts +4 -0
  149. package/dist/icon/icons/WarningFill.d.ts +4 -0
  150. package/dist/icon/icons/XCircle.d.ts +4 -0
  151. package/dist/icon/icons/index.d.ts +34 -0
  152. package/dist/icon/index.d.ts +2 -0
  153. package/dist/icon/raw/RawIcon.d.ts +13 -0
  154. package/dist/icon/raw/index.d.ts +1 -0
  155. package/dist/icon/types.d.ts +9 -0
  156. package/dist/index.d.ts +1380 -437
  157. package/dist/index.js +1 -1
  158. package/dist/input/Input.d.ts +88 -0
  159. package/dist/input/index.d.ts +1 -0
  160. package/dist/list/List.d.ts +13 -0
  161. package/dist/list/index.d.ts +2 -0
  162. package/dist/list/item/ListItem.d.ts +25 -0
  163. package/dist/list/item/index.d.ts +1 -0
  164. package/dist/loadingButton/LoadingButton.d.ts +18 -0
  165. package/dist/loadingButton/index.d.ts +1 -0
  166. package/dist/menu/Menu.d.ts +38 -0
  167. package/dist/menu/context/MenuContext.d.ts +12 -0
  168. package/dist/menu/context/index.d.ts +1 -0
  169. package/dist/menu/index.d.ts +4 -0
  170. package/dist/menu/item/MenuItem.d.ts +26 -0
  171. package/dist/menu/item/index.d.ts +1 -0
  172. package/dist/menu/section/MenuSection.d.ts +17 -0
  173. package/dist/menu/section/index.d.ts +1 -0
  174. package/dist/menu/subSection/MenuSubSection.d.ts +29 -0
  175. package/dist/menu/subSection/index.d.ts +1 -0
  176. package/dist/navbar/Navbar.d.ts +13 -0
  177. package/dist/navbar/button/NavbarButton.d.ts +18 -0
  178. package/dist/navbar/button/index.d.ts +1 -0
  179. package/dist/navbar/creditLink/NavbarCreditLink.d.ts +21 -0
  180. package/dist/navbar/creditLink/index.d.ts +1 -0
  181. package/dist/navbar/index.d.ts +5 -0
  182. package/dist/navbar/item/NavbarItem.d.ts +49 -0
  183. package/dist/navbar/item/index.d.ts +1 -0
  184. package/dist/navbar/itemFixed/NavbarItemFixed.d.ts +9 -0
  185. package/dist/navbar/itemFixed/index.d.ts +1 -0
  186. package/dist/notifications/Notifications.d.ts +17 -0
  187. package/dist/notifications/details/NotificationDetails.d.ts +29 -0
  188. package/dist/notifications/details/index.d.ts +1 -0
  189. package/dist/notifications/index.d.ts +3 -0
  190. package/dist/notifications/notification/Notification.d.ts +37 -0
  191. package/dist/notifications/notification/index.d.ts +1 -0
  192. package/dist/overlay/Overlay.d.ts +21 -0
  193. package/dist/overlay/index.d.ts +1 -0
  194. package/dist/pagination/Pagination.d.ts +29 -0
  195. package/dist/pagination/button/PaginationButton.d.ts +18 -0
  196. package/dist/pagination/button/index.d.ts +1 -0
  197. package/dist/pagination/index.d.ts +1 -0
  198. package/dist/panel/Panel.d.ts +18 -0
  199. package/dist/panel/actions/PanelActions.d.ts +9 -0
  200. package/dist/panel/actions/index.d.ts +1 -0
  201. package/dist/panel/column/PanelColumn.d.ts +9 -0
  202. package/dist/panel/column/index.d.ts +1 -0
  203. package/dist/panel/content/PanelContent.d.ts +25 -0
  204. package/dist/panel/content/index.d.ts +2 -0
  205. package/dist/panel/contentProp/PanelContentProp.d.ts +13 -0
  206. package/dist/panel/contentProp/index.d.ts +1 -0
  207. package/dist/panel/context/PanelContext.d.ts +12 -0
  208. package/dist/panel/context/index.d.ts +1 -0
  209. package/dist/panel/dragHandle/PanelDragHandle.d.ts +3 -0
  210. package/dist/panel/dragHandle/index.d.ts +1 -0
  211. package/dist/panel/index.d.ts +11 -0
  212. package/dist/panel/list/PanelList.d.ts +17 -0
  213. package/dist/panel/list/index.d.ts +1 -0
  214. package/dist/panel/listDivider/PanelListDivider.d.ts +9 -0
  215. package/dist/panel/listDivider/index.d.ts +1 -0
  216. package/dist/panel/side/PanelSide.d.ts +17 -0
  217. package/dist/panel/side/index.d.ts +1 -0
  218. package/dist/panel/skeleton/PanelSkeleton.d.ts +13 -0
  219. package/dist/panel/skeleton/index.d.ts +1 -0
  220. package/dist/panel/title/PanelTitle.d.ts +18 -0
  221. package/dist/panel/title/index.d.ts +1 -0
  222. package/dist/popper/Popper.d.ts +38 -0
  223. package/dist/popper/arrow/PopperArrow.d.ts +9 -0
  224. package/dist/popper/arrow/index.d.ts +1 -0
  225. package/dist/popper/context/PopperContext.d.ts +12 -0
  226. package/dist/popper/context/index.d.ts +1 -0
  227. package/dist/popper/index.d.ts +4 -0
  228. package/dist/popper/types.d.ts +5 -0
  229. package/dist/popper/usePopper/index.d.ts +1 -0
  230. package/dist/popper/usePopper/usePopper.d.ts +36 -0
  231. package/dist/progressPanel/ProgressPanel.d.ts +37 -0
  232. package/dist/progressPanel/index.d.ts +1 -0
  233. package/dist/propertiesTable/PropertiesTable.d.ts +9 -0
  234. package/dist/propertiesTable/index.d.ts +2 -0
  235. package/dist/propertiesTable/row/PropertiesTableRow.d.ts +13 -0
  236. package/dist/propertiesTable/row/index.d.ts +1 -0
  237. package/dist/rangeSlider/RangeSlider.d.ts +43 -0
  238. package/dist/rangeSlider/index.d.ts +1 -0
  239. package/dist/rangeSlider/utils/index.d.ts +1 -0
  240. package/dist/rangeSlider/utils/utils.d.ts +32 -0
  241. package/dist/responsiveImage/ResponsiveImage.d.ts +84 -0
  242. package/dist/responsiveImage/fallback/ResponsiveImageFallback.d.ts +21 -0
  243. package/dist/responsiveImage/fallback/index.d.ts +1 -0
  244. package/dist/responsiveImage/index.d.ts +1 -0
  245. package/dist/searchDialog/SearchDialog.d.ts +21 -0
  246. package/dist/searchDialog/actions/SearchDialogActions.d.ts +9 -0
  247. package/dist/searchDialog/actions/index.d.ts +1 -0
  248. package/dist/searchDialog/content/SearchDialogContent.d.ts +9 -0
  249. package/dist/searchDialog/content/index.d.ts +1 -0
  250. package/dist/searchDialog/context/SearchDialogContext.d.ts +9 -0
  251. package/dist/searchDialog/context/index.d.ts +1 -0
  252. package/dist/searchDialog/fallback/SearchDialogFallback.d.ts +9 -0
  253. package/dist/searchDialog/fallback/index.d.ts +1 -0
  254. package/dist/searchDialog/header/SearchDialogHeader.d.ts +25 -0
  255. package/dist/searchDialog/header/index.d.ts +1 -0
  256. package/dist/searchDialog/index.d.ts +7 -0
  257. package/dist/searchDialog/input/SearchDialogInput.d.ts +29 -0
  258. package/dist/searchDialog/input/index.d.ts +1 -0
  259. package/dist/searchDialog/section/SearchDialogSection.d.ts +13 -0
  260. package/dist/searchDialog/section/index.d.ts +1 -0
  261. package/dist/searchResultsBar/SearchResultsBar.d.ts +9 -0
  262. package/dist/searchResultsBar/filters/SearchResultsBarFilters.d.ts +9 -0
  263. package/dist/searchResultsBar/filters/index.d.ts +1 -0
  264. package/dist/searchResultsBar/index.d.ts +3 -0
  265. package/dist/searchResultsBar/phrase/SearchResultsBarPhrase.d.ts +17 -0
  266. package/dist/searchResultsBar/phrase/index.d.ts +1 -0
  267. package/dist/select/Select.d.ts +46 -0
  268. package/dist/select/index.d.ts +2 -0
  269. package/dist/select/input/SelectInput.d.ts +45 -0
  270. package/dist/select/input/index.d.ts +2 -0
  271. package/dist/select/listbox/SelectListbox.d.ts +25 -0
  272. package/dist/select/listbox/index.d.ts +1 -0
  273. package/dist/select/listboxItem/SelectListboxItem.d.ts +42 -0
  274. package/dist/select/listboxItem/index.d.ts +1 -0
  275. package/dist/select/listboxList/SelectListboxList.d.ts +21 -0
  276. package/dist/select/listboxList/index.d.ts +1 -0
  277. package/dist/select/multiList/SelectMultiList.d.ts +23 -0
  278. package/dist/select/multiList/index.d.ts +1 -0
  279. package/dist/select/multiListItem/SelectMultiListItem.d.ts +18 -0
  280. package/dist/select/multiListItem/index.d.ts +1 -0
  281. package/dist/select/single/SelectSingle.d.ts +19 -0
  282. package/dist/select/single/index.d.ts +1 -0
  283. package/dist/select/types.d.ts +40 -0
  284. package/dist/select/useKeyboardNav/index.d.ts +1 -0
  285. package/dist/select/useKeyboardNav/useKeyboardNav.d.ts +9 -0
  286. package/dist/select/utils/index.d.ts +1 -0
  287. package/dist/select/utils/utils.d.ts +26 -0
  288. package/dist/selectionArea/SelectionArea.d.ts +18 -0
  289. package/dist/selectionArea/index.d.ts +2 -0
  290. package/dist/skeleton/Skeleton.d.ts +17 -0
  291. package/dist/skeleton/index.d.ts +1 -0
  292. package/dist/sortButton/SortButton.d.ts +21 -0
  293. package/dist/sortButton/index.d.ts +1 -0
  294. package/dist/sortableDndList/SortableDndList.d.ts +14 -0
  295. package/dist/sortableDndList/context/SortableDndListContext.d.ts +25 -0
  296. package/dist/sortableDndList/context/index.d.ts +1 -0
  297. package/dist/sortableDndList/dragLayer/SortableDndListDragLayer.d.ts +9 -0
  298. package/dist/sortableDndList/dragLayer/index.d.ts +1 -0
  299. package/dist/sortableDndList/index.d.ts +4 -0
  300. package/dist/sortableDndList/item/SortableDndListItem.d.ts +25 -0
  301. package/dist/sortableDndList/item/index.d.ts +2 -0
  302. package/dist/sortableDndList/types/index.d.ts +1 -0
  303. package/dist/sortableDndList/types/types.d.ts +61 -0
  304. package/dist/sortableDndList/useListDnd/index.d.ts +1 -0
  305. package/dist/sortableDndList/useListDnd/useListDnd.d.ts +14 -0
  306. package/dist/sortableDndList/useListItemDrag/index.d.ts +1 -0
  307. package/dist/sortableDndList/useListItemDrag/useListItemDrag.d.ts +13 -0
  308. package/dist/sortableDndList/useListItemDrop/index.d.ts +1 -0
  309. package/dist/sortableDndList/useListItemDrop/useListItemDrop.d.ts +10 -0
  310. package/dist/styles/ckbox.css +3 -3
  311. package/dist/styles/themes/aqua.css +1 -1
  312. package/dist/styles/themes/dark.css +1 -1
  313. package/dist/switch/Switch.d.ts +13 -0
  314. package/dist/switch/index.d.ts +2 -0
  315. package/dist/switch/view/SwitchView.d.ts +13 -0
  316. package/dist/switch/view/index.d.ts +2 -0
  317. package/dist/switchInput/SwitchInput.d.ts +21 -0
  318. package/dist/switchInput/index.d.ts +1 -0
  319. package/dist/tabs/Tabs.d.ts +17 -0
  320. package/dist/tabs/index.d.ts +2 -0
  321. package/dist/tabs/tab/Tab.d.ts +17 -0
  322. package/dist/tabs/tab/index.d.ts +2 -0
  323. package/dist/tag/Tag.d.ts +29 -0
  324. package/dist/tag/index.d.ts +3 -0
  325. package/dist/tag/label/TagLabel.d.ts +13 -0
  326. package/dist/tag/label/index.d.ts +1 -0
  327. package/dist/tag/list/TagList.d.ts +17 -0
  328. package/dist/tag/list/index.d.ts +1 -0
  329. package/dist/tagInput/TagInput.d.ts +50 -0
  330. package/dist/tagInput/index.d.ts +1 -0
  331. package/dist/tooltip/Tooltip.d.ts +23 -0
  332. package/dist/tooltip/icon/TooltipIcon.d.ts +23 -0
  333. package/dist/tooltip/icon/index.d.ts +1 -0
  334. package/dist/tooltip/index.d.ts +2 -0
  335. package/dist/topbar/Topbar.d.ts +13 -0
  336. package/dist/topbar/action/TopbarAction.d.ts +41 -0
  337. package/dist/topbar/action/index.d.ts +2 -0
  338. package/dist/topbar/actions/TopbarActions.d.ts +9 -0
  339. package/dist/topbar/actions/TopbarActionsMenuItems.d.ts +8 -0
  340. package/dist/topbar/actions/index.d.ts +1 -0
  341. package/dist/topbar/index.d.ts +2 -0
  342. package/dist/uiProvider/UIProvider.d.ts +38 -0
  343. package/dist/uiProvider/constants.d.ts +7 -0
  344. package/dist/uiProvider/index.d.ts +3 -0
  345. package/dist/uiProvider/useUIContext.d.ts +38 -0
  346. package/dist/utils/base64FromBlurHash/base64FromBlurHash.d.ts +7 -0
  347. package/dist/utils/base64FromBlurHash/index.d.ts +1 -0
  348. package/dist/utils/clamp/clamp.d.ts +14 -0
  349. package/dist/utils/clamp/index.d.ts +1 -0
  350. package/dist/utils/clipboard/clipboard.d.ts +1 -0
  351. package/dist/utils/clipboard/index.d.ts +1 -0
  352. package/dist/utils/clsx/clsx.d.ts +7 -0
  353. package/dist/utils/clsx/index.d.ts +1 -0
  354. package/dist/utils/events/events.d.ts +12 -0
  355. package/dist/utils/events/index.d.ts +1 -0
  356. package/dist/utils/formatTimeDistance/formatTimeDistance.d.ts +15 -0
  357. package/dist/utils/formatTimeDistance/index.d.ts +1 -0
  358. package/dist/utils/getPixelCountFromImageBlob/getPixelCountFromImageBlob.d.ts +8 -0
  359. package/dist/utils/getPixelCountFromImageBlob/index.d.ts +1 -0
  360. package/dist/utils/getStandardDeviation/getStandardDeviation.d.ts +7 -0
  361. package/dist/utils/getStandardDeviation/index.d.ts +1 -0
  362. package/dist/utils/getValidChildren/getValidChildren.d.ts +2 -0
  363. package/dist/utils/getValidChildren/index.d.ts +1 -0
  364. package/dist/utils/hasOwnProperty/hasOwnProperty.d.ts +7 -0
  365. package/dist/utils/hasOwnProperty/index.d.ts +1 -0
  366. package/dist/utils/index.d.ts +34 -0
  367. package/dist/utils/keyboard/index.d.ts +1 -0
  368. package/dist/utils/keyboard/keyboard.d.ts +17 -0
  369. package/dist/utils/noOp/index.d.ts +1 -0
  370. package/dist/utils/noOp/noOp.d.ts +1 -0
  371. package/dist/utils/rInterval/index.d.ts +2 -0
  372. package/dist/utils/rInterval/rInterval.d.ts +10 -0
  373. package/dist/utils/rInterval/types.d.ts +3 -0
  374. package/dist/utils/useBatchUpdate/index.d.ts +1 -0
  375. package/dist/utils/useBatchUpdate/useBatchUpdate.d.ts +17 -0
  376. package/dist/utils/useClickAway/index.d.ts +1 -0
  377. package/dist/utils/useClickAway/useClickAway.d.ts +10 -0
  378. package/dist/utils/useClipboard/index.d.ts +1 -0
  379. package/dist/utils/useClipboard/useClipboard.d.ts +4 -0
  380. package/dist/utils/useDeferredUnmount/index.d.ts +1 -0
  381. package/dist/utils/useDeferredUnmount/useDeferredUnmount.d.ts +10 -0
  382. package/dist/utils/useDelay/index.d.ts +1 -0
  383. package/dist/utils/useDelay/useDelay.d.ts +8 -0
  384. package/dist/utils/useDownload/index.d.ts +1 -0
  385. package/dist/utils/useDownload/useDownload.d.ts +8 -0
  386. package/dist/utils/useDraggable/index.d.ts +2 -0
  387. package/dist/utils/useDraggable/types.d.ts +73 -0
  388. package/dist/utils/useDraggable/useDraggable.d.ts +8 -0
  389. package/dist/utils/useElementVisibility/index.d.ts +1 -0
  390. package/dist/utils/useElementVisibility/useElementVisibility.d.ts +11 -0
  391. package/dist/utils/useFilesDrop/index.d.ts +1 -0
  392. package/dist/utils/useFilesDrop/useFilesDrop.d.ts +17 -0
  393. package/dist/utils/useGridSelection/constants.d.ts +49 -0
  394. package/dist/utils/useGridSelection/index.d.ts +1 -0
  395. package/dist/utils/useGridSelection/reducer.d.ts +2 -0
  396. package/dist/utils/useGridSelection/useGridSelection.d.ts +26 -0
  397. package/dist/utils/useGridSelection/utils.d.ts +103 -0
  398. package/dist/utils/useIsMounted/index.d.ts +1 -0
  399. package/dist/utils/useIsMounted/useIsMounted.d.ts +9 -0
  400. package/dist/utils/useIsomorphicLayoutEffect/index.d.ts +1 -0
  401. package/dist/utils/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -0
  402. package/dist/utils/useItemsOverflow/index.d.ts +1 -0
  403. package/dist/utils/useItemsOverflow/useItemsOverflow.d.ts +13 -0
  404. package/dist/utils/useResettableTimeout/index.d.ts +1 -0
  405. package/dist/utils/useResettableTimeout/useResettableTimeout.d.ts +14 -0
  406. package/dist/utils/useResize/index.d.ts +2 -0
  407. package/dist/utils/useResize/types.d.ts +20 -0
  408. package/dist/utils/useResize/useResize.d.ts +13 -0
  409. package/dist/utils/useResponsiveSizes/index.d.ts +1 -0
  410. package/dist/utils/useResponsiveSizes/useResponsiveSizes.d.ts +16 -0
  411. package/dist/utils/useScaleDown/index.d.ts +1 -0
  412. package/dist/utils/useScaleDown/scaleDown.d.ts +13 -0
  413. package/dist/utils/useScaleDown/useScaleDown.d.ts +16 -0
  414. package/dist/utils/useScroll/getScrollVectors.d.ts +11 -0
  415. package/dist/utils/useScroll/index.d.ts +3 -0
  416. package/dist/utils/useScroll/types.d.ts +49 -0
  417. package/dist/utils/useScroll/useScroll.d.ts +16 -0
  418. package/dist/utils/useScrollDnd/index.d.ts +1 -0
  419. package/dist/utils/useScrollDnd/useScrollDnd.d.ts +7 -0
  420. package/dist/utils/useToggle/index.d.ts +1 -0
  421. package/dist/utils/useToggle/useToggle.d.ts +12 -0
  422. package/dist/utils/validators/index.d.ts +1 -0
  423. package/dist/utils/validators/validators.d.ts +60 -0
  424. package/dist/view/View.d.ts +13 -0
  425. package/dist/view/content/ViewContent.d.ts +25 -0
  426. package/dist/view/content/index.d.ts +1 -0
  427. package/dist/view/contentBar/ViewContentBar.d.ts +9 -0
  428. package/dist/view/contentBar/index.d.ts +1 -0
  429. package/dist/view/contentWrapper/ViewContentWrapper.d.ts +9 -0
  430. package/dist/view/contentWrapper/index.d.ts +1 -0
  431. package/dist/view/footer/ViewFooter.d.ts +9 -0
  432. package/dist/view/footer/index.d.ts +1 -0
  433. package/dist/view/header/ViewHeader.d.ts +9 -0
  434. package/dist/view/header/index.d.ts +1 -0
  435. package/dist/view/index.d.ts +8 -0
  436. package/dist/view/sideContent/ViewSideContent.d.ts +9 -0
  437. package/dist/view/sideContent/index.d.ts +1 -0
  438. package/dist/viewDialog/ViewDialog.d.ts +66 -0
  439. package/dist/viewDialog/index.d.ts +2 -0
  440. package/dist/viewDialog/useSetInitialDimensions/index.d.ts +1 -0
  441. package/dist/viewDialog/useSetInitialDimensions/useSetInitialDimensions.d.ts +10 -0
  442. package/dist/viewWrapper/ViewWrapper.d.ts +13 -0
  443. package/dist/viewWrapper/index.d.ts +1 -0
  444. package/package.json +5 -5
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ declare const Tab: React.FC<Props>;
3
+ export interface Props {
4
+ /**
5
+ * Main content.
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * Tab id.
10
+ */
11
+ id: string;
12
+ /**
13
+ * Tab label.
14
+ */
15
+ label: string;
16
+ }
17
+ export default Tab;
@@ -0,0 +1,2 @@
1
+ export * from './Tab';
2
+ export { default } from './Tab';
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ declare const Tag: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
3
+ export interface Props {
4
+ /**
5
+ * Sets component's children.
6
+ */
7
+ children?: React.ReactNode;
8
+ /**
9
+ * Disables focusability of any focusable element.
10
+ */
11
+ disableFocusability?: boolean;
12
+ /**
13
+ * Callback invoked upon clicking on remove icon.
14
+ */
15
+ onRemove?: React.MouseEventHandler;
16
+ /**
17
+ * Sets tag radius.
18
+ */
19
+ radius?: 'md' | 'lg' | 'xl';
20
+ /**
21
+ * Sets tag as removable.
22
+ */
23
+ removable?: boolean;
24
+ /**
25
+ * Label associated with remove button.
26
+ */
27
+ removeLabel?: string;
28
+ }
29
+ export default Tag;
@@ -0,0 +1,3 @@
1
+ export { default as TagList } from './list';
2
+ export { default as TagLabel } from './label';
3
+ export { default } from './Tag';
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ declare const TagLabel: React.FC<Props>;
3
+ interface Props {
4
+ /**
5
+ * Emphasizes tag content.
6
+ */
7
+ bold?: boolean;
8
+ /**
9
+ * Sets component's children.
10
+ */
11
+ children: React.ReactNode;
12
+ }
13
+ export default TagLabel;
@@ -0,0 +1 @@
1
+ export { default } from './TagLabel';
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ declare const TagList: React.FC<Props>;
3
+ export interface Props {
4
+ /**
5
+ * Main content of the component.
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * Optional root class name.
10
+ */
11
+ className?: string;
12
+ /**
13
+ * Indicates whether tag list should hide overflown items.
14
+ */
15
+ itemOverflow?: boolean;
16
+ }
17
+ export default TagList;
@@ -0,0 +1 @@
1
+ export { default } from './TagList';
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ declare const TagInput: React.FC<Props>;
3
+ export interface Props {
4
+ /**
5
+ * Input's class name.
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Label displayed in the popup when hovering over copy button.
10
+ */
11
+ copyBtnLabel?: string;
12
+ /**
13
+ * Label displayed in the popup upon clicking on the copy button.
14
+ */
15
+ copyBtnLabelCopied?: string;
16
+ /**
17
+ * Input field id.
18
+ */
19
+ id: string;
20
+ /**
21
+ * Callback invoked when component gains focus.
22
+ */
23
+ onFocus?: () => void;
24
+ /**
25
+ * Callback invoked when component loses focus.
26
+ */
27
+ onBlur?: () => void;
28
+ /**
29
+ * Callback invoked when tags change.
30
+ */
31
+ onChange: (tags: string[]) => void;
32
+ /**
33
+ * Input placeholder.
34
+ */
35
+ placeholder?: string;
36
+ /**
37
+ * Indicate error in input element.
38
+ */
39
+ error?: boolean;
40
+ /**
41
+ * List of tags to render.
42
+ */
43
+ tags: {
44
+ label: string;
45
+ bold?: boolean;
46
+ removeLabel?: string;
47
+ title?: string;
48
+ }[];
49
+ }
50
+ export default TagInput;
@@ -0,0 +1 @@
1
+ export { default } from './TagInput';
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { PopperPlacement } from '../popper';
3
+ declare const Tooltip: React.FC<Props>;
4
+ export interface Props {
5
+ /**
6
+ * Main content of the component.
7
+ * It must be a single child that accepts `ref`.
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * Delay before displaying the tooltip.
12
+ */
13
+ delay?: number;
14
+ /**
15
+ * Tooltip placement.
16
+ */
17
+ placement?: PopperPlacement;
18
+ /**
19
+ * Tooltip helper text.
20
+ */
21
+ title: string;
22
+ }
23
+ export default Tooltip;
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { IconName } from '../../icon';
3
+ import { PopperPlacement } from '../../popper';
4
+ declare const TooltipIcon: React.FC<Props>;
5
+ export interface Props {
6
+ /**
7
+ * Icon to display.
8
+ */
9
+ iconName: IconName;
10
+ /**
11
+ * Delay before displaying the tooltip.
12
+ */
13
+ delay?: number;
14
+ /**
15
+ * Tooltip placement.
16
+ */
17
+ placement?: PopperPlacement;
18
+ /**
19
+ * Tooltip helper text.
20
+ */
21
+ title: string;
22
+ }
23
+ export default TooltipIcon;
@@ -0,0 +1 @@
1
+ export { default } from './TooltipIcon';
@@ -0,0 +1,2 @@
1
+ export { default as TooltipIcon } from './icon';
2
+ export { default } from './Tooltip';
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ declare const Topbar: React.FC<Props>;
3
+ interface Props {
4
+ /**
5
+ * Main content of the component.
6
+ */
7
+ children?: React.ReactNode;
8
+ /**
9
+ * Content rendered on the right side of the bar.
10
+ */
11
+ sideContent: React.ReactNode;
12
+ }
13
+ export default Topbar;
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ import { IconName, IconSize } from '../../icon';
3
+ /**
4
+ * `TopbarAction` component acts as a props carrier only.
5
+ */
6
+ declare const TopbarAction: React.FC<Props>;
7
+ export interface Props {
8
+ /**
9
+ * Applies active styling.
10
+ */
11
+ active?: boolean;
12
+ /**
13
+ * Associated icon.
14
+ */
15
+ icon: IconName;
16
+ /**
17
+ * Icon size.
18
+ */
19
+ iconSize?: IconSize;
20
+ /**
21
+ * Action label.
22
+ */
23
+ label: string;
24
+ /**
25
+ * Indicates if loading is in progress.
26
+ */
27
+ loading?: boolean;
28
+ /**
29
+ * Displays as disabled.
30
+ */
31
+ disabled?: boolean;
32
+ /**
33
+ * Action invoked upon click.
34
+ */
35
+ onClick?: () => void;
36
+ /**
37
+ * Download action URL.
38
+ */
39
+ downloadUrl?: string;
40
+ }
41
+ export default TopbarAction;
@@ -0,0 +1,2 @@
1
+ export * from './TopbarAction';
2
+ export { default } from './TopbarAction';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ declare const TopbarActions: React.FC<Props>;
3
+ interface Props {
4
+ /**
5
+ * Main content.
6
+ */
7
+ children: React.ReactNode;
8
+ }
9
+ export default TopbarActions;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Props as TopbarActionProps } from '../action';
3
+ declare const TopbarActionsMenuItems: React.FC<Props>;
4
+ export interface Props {
5
+ items: TopbarActionProps[];
6
+ visibleItems: number;
7
+ }
8
+ export default TopbarActionsMenuItems;
@@ -0,0 +1 @@
1
+ export { default } from './TopbarActions';
@@ -0,0 +1,2 @@
1
+ export { default as TopbarAction } from './action';
2
+ export { default } from './Topbar';
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { ViewDialogProps } from '../viewDialog';
3
+ declare const UIProvider: React.FC<Props>;
4
+ export interface Props {
5
+ /**
6
+ * Main content.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * Initial navbar mode.
11
+ */
12
+ navbarCollapsed?: boolean;
13
+ /**
14
+ * Initial navbar width.
15
+ */
16
+ navbarWidth?: number;
17
+ /**
18
+ * Callback invoked whenever navbar mode changes.
19
+ */
20
+ onNavbarCollapse?: (collapsed: boolean) => void;
21
+ /**
22
+ * Callback invoked whenever navbar resize ends.
23
+ */
24
+ onNavbarWidthChange?: (width: number) => void;
25
+ /**
26
+ * Dialog mode options.
27
+ */
28
+ dialog?: Omit<ViewDialogProps, 'children'>;
29
+ /**
30
+ * Name of selected theme.
31
+ */
32
+ theme?: string;
33
+ /**
34
+ * Aria label to set on root element.
35
+ */
36
+ label?: string;
37
+ }
38
+ export default UIProvider;
@@ -0,0 +1,7 @@
1
+ export declare const CONTAINER_QUERY_BREAKPOINTS: {
2
+ xs: number;
3
+ sm: number;
4
+ md: number;
5
+ lg: number;
6
+ xl: number;
7
+ };
@@ -0,0 +1,3 @@
1
+ export * from './useUIContext';
2
+ export { Props as UIProviderProps } from './UIProvider';
3
+ export { default } from './UIProvider';
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ export interface UIContext {
3
+ /**
4
+ * Represents UI's root element.
5
+ */
6
+ rootEl: HTMLDivElement | null;
7
+ /**
8
+ * Holds info about animation duration (in ms).
9
+ *
10
+ * Note that these values are extracted from CSS variables.
11
+ * Therefore, CSS variables act here as the single source of truth.
12
+ */
13
+ animationDuration: {
14
+ primary: number;
15
+ secondary: number;
16
+ };
17
+ /**
18
+ * Indicates if navbar should be collapsed.
19
+ */
20
+ navbarCollapsed?: boolean;
21
+ /**
22
+ * Initial navbar width.
23
+ */
24
+ navbarWidth?: number;
25
+ /**
26
+ * Callback invoked whenever navbar is collapsed.
27
+ */
28
+ onNavbarCollapse: (collapsed: boolean) => void;
29
+ /**
30
+ * Callback invoked whenever navbar width changes.
31
+ */
32
+ onNavbarWidthChange: (width: number) => void;
33
+ }
34
+ /**
35
+ * Defines React context for i18n and sets defaults.
36
+ */
37
+ export declare const UIContext: React.Context<UIContext>;
38
+ export declare const useUIContext: () => UIContext;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Generates base64-encoded image from its `blurhash` representation.
3
+ *
4
+ * @param hash blurhash representation of an image
5
+ * @returns base64-encoded image
6
+ */
7
+ export declare const base64FromBlurHash: (hash?: string) => string;
@@ -0,0 +1 @@
1
+ export * from './base64FromBlurHash';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Given preferred value and optional edge values,
3
+ * chooses the one that is most suitable:
4
+ *
5
+ * - min value if preferred value is below min
6
+ * - max value if preferred value is above max
7
+ * - preferred value otherwise
8
+ *
9
+ * @param val preferred value
10
+ * @param min optional minimum value
11
+ * @param max optional maximum value
12
+ * @returns chosen value
13
+ */
14
+ export declare const clamp: (val: number, min?: number, max?: number) => number;
@@ -0,0 +1 @@
1
+ export * from './clamp';
@@ -0,0 +1 @@
1
+ export declare const copyToClipboard: (text: string) => Promise<void>;
@@ -0,0 +1 @@
1
+ export * from './clipboard';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Filters off falsey values and concatenates list of classes.
3
+ *
4
+ * @param classes list of classes / falsey values
5
+ * @returns classes
6
+ */
7
+ export declare const clsx: (...classes: (string | undefined | null | number | boolean)[]) => string;
@@ -0,0 +1 @@
1
+ export * from './clsx';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Values representing mouse button.
3
+ *
4
+ * https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
5
+ */
6
+ export declare enum MouseEventButton {
7
+ Main = 0,
8
+ Auxiliary = 1,
9
+ Secondary = 2,
10
+ Fourth = 3,
11
+ Fifth = 4
12
+ }
@@ -0,0 +1 @@
1
+ export * from './events';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Unit multipliers (in s).
3
+ */
4
+ export declare const m = 60;
5
+ export declare const h: number;
6
+ /**
7
+ * Given time distance in s, formats it by rounding to nearest time unit in accordance with predefined buckets.
8
+ *
9
+ * @param t time left (in s)
10
+ */
11
+ export declare const formatTimeDistance: (t: number) => {
12
+ h: number;
13
+ m: number;
14
+ s: number;
15
+ };
@@ -0,0 +1 @@
1
+ export { formatTimeDistance } from './formatTimeDistance';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Retrieves amount of pixels in a blob if it's an image.
3
+ * If given blob is an invalid image, returns undefined.
4
+ *
5
+ * @param data blob data to measure
6
+ * @returns amount of pixels
7
+ */
8
+ export declare const getPixelCountFromImageBlob: (data: Blob) => Promise<number | undefined>;
@@ -0,0 +1 @@
1
+ export * from './getPixelCountFromImageBlob';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Calculates standard deviation based on provided list of numbers.
3
+ *
4
+ * @param array list of numbers
5
+ * @returns standard deviation
6
+ */
7
+ export declare const getStandardDeviation: (array: number[]) => number | undefined;
@@ -0,0 +1 @@
1
+ export * from './getStandardDeviation';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const getValidChildren: <ChildProps>(children: React.ReactNode) => React.ReactElement<ChildProps, string | React.JSXElementConstructor<any>>[];
@@ -0,0 +1 @@
1
+ export * from './getValidChildren';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Shorthand for recommended use of hasOwnProperty (see https://eslint.org/docs/rules/no-prototype-builtins).
3
+ *
4
+ * @param object checked object
5
+ * @param propertyKey property key to check
6
+ */
7
+ export declare const hasOwnProperty: (object: Record<string, unknown>, propertyKey: string) => boolean;
@@ -0,0 +1 @@
1
+ export * from './hasOwnProperty';
@@ -0,0 +1,34 @@
1
+ export * from './base64FromBlurHash';
2
+ export * from './clamp';
3
+ export * from './clipboard';
4
+ export * from './clsx';
5
+ export * from './events';
6
+ export * from './formatTimeDistance';
7
+ export * from './getPixelCountFromImageBlob';
8
+ export * from './getStandardDeviation';
9
+ export * from './getValidChildren';
10
+ export * from './hasOwnProperty';
11
+ export * from './keyboard';
12
+ export * from './noOp';
13
+ export * from './rInterval';
14
+ export * from './useBatchUpdate';
15
+ export * from './useClickAway';
16
+ export * from './useClipboard';
17
+ export * from './useDeferredUnmount';
18
+ export * from './useDelay';
19
+ export * from './useDraggable';
20
+ export * from './useIsMounted';
21
+ export * from './useIsomorphicLayoutEffect';
22
+ export * from './useItemsOverflow';
23
+ export * from './useResettableTimeout';
24
+ export * from './useResponsiveSizes';
25
+ export * from './useElementVisibility';
26
+ export * from './useFilesDrop';
27
+ export * from './useGridSelection';
28
+ export * from './useResize';
29
+ export * from './useToggle';
30
+ export * from './useScaleDown';
31
+ export * from './useScroll';
32
+ export * from './useScrollDnd';
33
+ export * from './useDownload';
34
+ export * from './validators';
@@ -0,0 +1 @@
1
+ export * from './keyboard';
@@ -0,0 +1,17 @@
1
+ import { KeyCombination, KeyEventLike, KeyProps } from './types';
2
+ /**
3
+ * Checks if event matches a single key combination.
4
+ *
5
+ * @param evt keyboard event
6
+ * @param currentValue event key or code value
7
+ * @param combination key combination
8
+ * @returns flag indicating if combination is matched
9
+ */
10
+ export declare const matchesCombination: (evt: KeyEventLike, currentValue: string, { value, mod }: KeyCombination) => boolean;
11
+ /**
12
+ * Creates `keydown` event listener for configured key combination(s).
13
+ *
14
+ * @param props key props
15
+ * @returns event listener
16
+ */
17
+ export declare const getKeyHandler: (props: KeyProps[] | KeyProps) => (evt: KeyEventLike) => void;
@@ -0,0 +1 @@
1
+ export * from './noOp';
@@ -0,0 +1 @@
1
+ export declare const noOp: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './rInterval';
@@ -0,0 +1,10 @@
1
+ import { RInterval } from './types';
2
+ /**
3
+ * Allows to use `requestAnimationFrame` in a manner similar to `setInterval`.
4
+ * It should be used for animations instead of `setTimeout` and `setInterval`.
5
+ *
6
+ * @param callback callback invoked within a fram
7
+ * @param delay optional callback invocation delay
8
+ * @returns interval utils
9
+ */
10
+ export declare const rInterval: (callback: () => void, delay?: number) => RInterval;
@@ -0,0 +1,3 @@
1
+ export interface RInterval {
2
+ clear: () => void;
3
+ }
@@ -0,0 +1 @@
1
+ export * from './useBatchUpdate';
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { BatchUpdateBatch, BatchUpdatePayload } from './types';
3
+ /**
4
+ * Batches updates and releases them in specified intervals.
5
+ * Accumulates total number of updates that happened within a batch.
6
+ *
7
+ * This hook is useful for grouping high frequency updates into a single batch,
8
+ * so that downstream updates do not happen too often.
9
+ *
10
+ * @param updateCb callback that receives current batch in specified intervals
11
+ * @param batchUpdateInterval instructs how often batch is released
12
+ * @returns actions and batch
13
+ */
14
+ export declare const useBatchUpdate: <Payload extends BatchUpdatePayload>(updateCb: (batch: BatchUpdateBatch<Payload>) => void, batchUpdateInterval: number) => {
15
+ batch: React.MutableRefObject<BatchUpdateBatch<Payload>>;
16
+ pushUpdate: (payload: Payload) => void;
17
+ };
@@ -0,0 +1 @@
1
+ export * from './useClickAway';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Hook that allows to detect click events within app root but outside specified element.
3
+ *
4
+ * @param container outer container
5
+ * @param el element outside which clicks should be detected
6
+ * @param ignoredEl optional element to ignore
7
+ * @param onClick callback invoked if click outside registered elements was detected
8
+ * @returns action for registering elements
9
+ */
10
+ export declare const useClickAway: (container?: HTMLElement | null, el?: HTMLElement | null, ignoredEl?: HTMLElement | null, onClick?: () => void) => void;
@@ -0,0 +1 @@
1
+ export * from './useClipboard';
@@ -0,0 +1,4 @@
1
+ export declare const useClipboard: () => {
2
+ copied: boolean;
3
+ onCopy: (txtContent: string) => Promise<void>;
4
+ };