@true-engineering/true-react-common-ui-kit 4.0.0-alpha6 → 4.0.0-alpha61

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 (486) hide show
  1. package/README.md +12 -660
  2. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +1 -1
  3. package/dist/components/AddButton/AddButton.d.ts +1 -0
  4. package/dist/components/AddButton/AddButton.styles.d.ts +1 -1
  5. package/dist/components/Button/Button.d.ts +1 -1
  6. package/dist/components/Button/Button.styles.d.ts +1 -1
  7. package/dist/components/Checkbox/Checkbox.d.ts +3 -1
  8. package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -2
  9. package/dist/components/Checkbox/index.d.ts +1 -0
  10. package/dist/components/Checkbox/types.d.ts +3 -0
  11. package/dist/components/CloseButton/CloseButton.styles.d.ts +1 -1
  12. package/dist/components/ControlWrapper/ControlWrapper.d.ts +10 -3
  13. package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +3 -2
  14. package/dist/components/ControlWrapper/constants.d.ts +1 -0
  15. package/dist/components/ControlWrapper/helpers.d.ts +4 -0
  16. package/dist/components/ControlWrapper/index.d.ts +3 -0
  17. package/dist/components/ControlWrapper/types.d.ts +14 -0
  18. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +1 -1
  19. package/dist/components/DateInput/DateInput.d.ts +1 -3
  20. package/dist/components/DateInput/DateInput.styles.d.ts +1 -1
  21. package/dist/components/DateInput/constants.d.ts +1 -1
  22. package/dist/components/DatePicker/DatePicker.d.ts +4 -4
  23. package/dist/components/DatePicker/DatePicker.styles.d.ts +1 -1
  24. package/dist/components/DatePicker/components/DatePickerBase/DatePickerBase.d.ts +5 -0
  25. package/dist/components/DatePicker/components/DatePickerBase/index.d.ts +1 -0
  26. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +1 -1
  27. package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +2 -4
  28. package/dist/components/DatePicker/components/index.d.ts +1 -0
  29. package/dist/components/DatePicker/constants.d.ts +7 -2
  30. package/dist/components/DatePicker/index.d.ts +1 -0
  31. package/dist/components/DatePicker/types.d.ts +2 -2
  32. package/dist/components/Description/Description.styles.d.ts +1 -1
  33. package/dist/components/FileInput/FileInput.d.ts +1 -1
  34. package/dist/components/FileInput/FileInput.styles.d.ts +1 -1
  35. package/dist/components/FileItem/FileItem.styles.d.ts +1 -1
  36. package/dist/components/FileItem/constants.d.ts +3 -4
  37. package/dist/components/FileItem/helpers.d.ts +3 -2
  38. package/dist/components/FileItem/types.d.ts +1 -2
  39. package/dist/components/FiltersPane/FiltersPane.d.ts +7 -3
  40. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +2 -2
  41. package/dist/components/FiltersPane/components/Filter/Filter.d.ts +3 -4
  42. package/dist/components/FiltersPane/components/Filter/helpers.d.ts +4 -0
  43. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +3 -11
  44. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +3 -6
  45. package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +0 -1
  46. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +3 -6
  47. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +4 -3
  48. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +1 -1
  49. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +5 -11
  50. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +1 -1
  51. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +2 -3
  52. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +2 -2
  53. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +2 -1
  54. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +1 -1
  55. package/dist/components/FiltersPane/constants.d.ts +1 -1
  56. package/dist/components/FiltersPane/helpers.d.ts +1 -1
  57. package/dist/components/FiltersPane/index.d.ts +1 -0
  58. package/dist/components/FiltersPane/types.d.ts +8 -3
  59. package/dist/components/Flag/Flag.styles.d.ts +1 -1
  60. package/dist/components/FlexibleTable/FlexibleTable.d.ts +4 -2
  61. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +2 -2
  62. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +4 -3
  63. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +1 -1
  64. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +2 -5
  65. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +1 -1
  66. package/dist/components/FlexibleTable/helpers.d.ts +2 -2
  67. package/dist/components/FlexibleTable/types.d.ts +19 -11
  68. package/dist/components/FloatDocActions/FloatDocActions.d.ts +6 -0
  69. package/dist/components/FloatDocActions/FloatDocActions.styles.d.ts +8 -0
  70. package/dist/components/FloatDocActions/components/DocActions/DocActions.d.ts +12 -0
  71. package/dist/components/FloatDocActions/components/DocActions/DocActions.styles.d.ts +6 -0
  72. package/dist/components/FloatDocActions/components/DocActions/constants.d.ts +1 -0
  73. package/dist/components/FloatDocActions/components/DocActions/index.d.ts +4 -0
  74. package/dist/components/FloatDocActions/components/DocActions/types.d.ts +2 -0
  75. package/dist/components/FloatDocActions/components/index.d.ts +1 -0
  76. package/dist/components/FloatDocActions/constants.d.ts +1 -0
  77. package/dist/components/FloatDocActions/index.d.ts +3 -0
  78. package/dist/components/Icon/Icon.styles.d.ts +1 -1
  79. package/dist/components/Icon/icons/index.d.ts +31 -0
  80. package/dist/components/Icon/index.d.ts +1 -1
  81. package/dist/components/Icon/types.d.ts +7 -11
  82. package/dist/components/IconButton/IconButton.d.ts +1 -2
  83. package/dist/components/IconButton/IconButton.styles.d.ts +1 -1
  84. package/dist/components/IconButton/constants.d.ts +1 -1
  85. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +1 -3
  86. package/dist/components/Input/Input.d.ts +3 -3
  87. package/dist/components/Input/Input.styles.d.ts +1 -1
  88. package/dist/components/Input/InputBase.d.ts +3 -3
  89. package/dist/components/List/List.d.ts +1 -1
  90. package/dist/components/List/List.styles.d.ts +1 -1
  91. package/dist/components/List/components/ListItem/ListItem.styles.d.ts +1 -1
  92. package/dist/components/List/index.d.ts +2 -1
  93. package/dist/components/List/types.d.ts +4 -0
  94. package/dist/components/Modal/Modal.d.ts +1 -1
  95. package/dist/components/Modal/Modal.styles.d.ts +1 -1
  96. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +1 -1
  97. package/dist/components/MultiSelect/MultiSelect.d.ts +0 -1
  98. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +1 -1
  99. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +1 -1
  100. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +1 -1
  101. package/dist/components/MultiSelectList/constants.d.ts +1 -1
  102. package/dist/components/MultiSelectList/helpers.d.ts +1 -1
  103. package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +1 -1
  104. package/dist/components/Notification/Notification.styles.d.ts +1 -1
  105. package/dist/components/NumberInput/NumberInput.d.ts +1 -2
  106. package/dist/components/NumberInput/helpers.d.ts +2 -2
  107. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +1 -1
  108. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +1 -1
  109. package/dist/components/RadioButton/RadioButton.d.ts +3 -1
  110. package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -2
  111. package/dist/components/RadioButton/index.d.ts +1 -0
  112. package/dist/components/RadioButton/types.d.ts +3 -0
  113. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +3 -373
  114. package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +1 -1
  115. package/dist/components/SearchInput/SearchInput.d.ts +2 -3
  116. package/dist/components/Select/Select.d.ts +3 -3
  117. package/dist/components/Select/Select.styles.d.ts +12 -22
  118. package/dist/components/Select/components/SelectList/SelectList.d.ts +8 -6
  119. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +3 -2
  120. package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +4 -3
  121. package/dist/components/Select/helpers.d.ts +1 -1
  122. package/dist/components/Select/index.d.ts +1 -1
  123. package/dist/components/Select/types.d.ts +4 -0
  124. package/dist/components/Selector/Selector.d.ts +0 -1
  125. package/dist/components/Selector/Selector.styles.d.ts +1 -1
  126. package/dist/components/Skeleton/Skeleton.styles.d.ts +1 -1
  127. package/dist/components/SmartInput/SmartInput.d.ts +1 -1
  128. package/dist/components/Status/Status.styles.d.ts +3 -2
  129. package/dist/components/Status/constants.d.ts +0 -1
  130. package/dist/components/Status/index.d.ts +1 -0
  131. package/dist/components/Status/types.d.ts +5 -2
  132. package/dist/components/Switch/Switch.d.ts +3 -2
  133. package/dist/components/Switch/Switch.styles.d.ts +3 -2
  134. package/dist/components/Switch/types.d.ts +3 -0
  135. package/dist/components/TextArea/TextArea.d.ts +5 -6
  136. package/dist/components/TextArea/TextArea.styles.d.ts +5 -4
  137. package/dist/components/TextArea/index.d.ts +1 -1
  138. package/dist/components/TextArea/types.d.ts +4 -2
  139. package/dist/components/TextButton/TextButton.d.ts +1 -1
  140. package/dist/components/TextButton/TextButton.styles.d.ts +1 -1
  141. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +1 -1
  142. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +2 -0
  143. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +1 -1
  144. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +1 -1
  145. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +1 -1
  146. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +1 -1
  147. package/dist/components/Toaster/Toaster.styles.d.ts +1 -1
  148. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  149. package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -2
  150. package/dist/components/Tooltip/types.d.ts +3 -0
  151. package/dist/components/WithMessages/WithMessages.d.ts +1 -1
  152. package/dist/components/WithMessages/WithMessages.styles.d.ts +1 -1
  153. package/dist/components/WithPopup/WithPopup.d.ts +11 -3
  154. package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
  155. package/dist/components/WithPopup/types.d.ts +4 -4
  156. package/dist/components/WithTooltip/WithTooltip.d.ts +2 -0
  157. package/dist/components/index.d.ts +1 -1
  158. package/dist/constants/phone-info.d.ts +1 -1
  159. package/dist/helpers/misc.d.ts +5 -3
  160. package/dist/helpers/phone.d.ts +1 -1
  161. package/dist/hooks/index.d.ts +8 -4
  162. package/dist/hooks/use-dropdown.d.ts +3 -3
  163. package/dist/hooks/use-intersection-ref.d.ts +9 -0
  164. package/dist/hooks/use-latest-ref.d.ts +2 -0
  165. package/dist/hooks/use-merge.d.ts +1 -0
  166. package/dist/hooks/use-mixed-styles.d.ts +3 -1
  167. package/dist/hooks/use-on-click-outside.d.ts +2 -2
  168. package/dist/hooks/use-resize-ref.d.ts +7 -0
  169. package/dist/hooks/use-tweak-styles.d.ts +8 -7
  170. package/dist/theme/Provider.d.ts +3 -10
  171. package/dist/theme/common.d.ts +34 -4
  172. package/dist/theme/helpers.d.ts +2 -9
  173. package/dist/theme/types.d.ts +13 -10
  174. package/dist/true-react-common-ui-kit.js +7906 -27407
  175. package/dist/true-react-common-ui-kit.js.map +1 -1
  176. package/dist/true-react-common-ui-kit.umd.cjs +1 -31620
  177. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  178. package/dist/types.d.ts +9 -2
  179. package/package.json +36 -39
  180. package/src/components/AccountInfo/AccountInfo.stories.tsx +19 -27
  181. package/src/components/AccountInfo/AccountInfo.tsx +2 -3
  182. package/src/components/AddButton/AddButton.stories.tsx +14 -17
  183. package/src/components/AddButton/AddButton.tsx +3 -5
  184. package/src/components/Button/Button.stories.tsx +8 -26
  185. package/src/components/Button/Button.tsx +76 -77
  186. package/src/components/Checkbox/Checkbox.stories.tsx +27 -16
  187. package/src/components/Checkbox/Checkbox.styles.ts +3 -1
  188. package/src/components/Checkbox/Checkbox.tsx +7 -5
  189. package/src/components/Checkbox/index.ts +1 -0
  190. package/src/components/Checkbox/types.ts +4 -0
  191. package/src/components/CloseButton/CloseButton.stories.tsx +5 -6
  192. package/src/components/CloseButton/CloseButton.tsx +2 -4
  193. package/src/components/Colors/Colors.stories.tsx +64 -3
  194. package/src/components/ControlWrapper/ControlWrapper.stories.tsx +46 -35
  195. package/src/components/ControlWrapper/ControlWrapper.styles.ts +15 -6
  196. package/src/components/ControlWrapper/ControlWrapper.tsx +73 -44
  197. package/src/components/ControlWrapper/constants.ts +11 -0
  198. package/src/components/ControlWrapper/helpers.ts +11 -0
  199. package/src/components/ControlWrapper/index.ts +3 -0
  200. package/src/components/ControlWrapper/types.ts +19 -0
  201. package/src/components/CssBaseline/CssBaseline.styles.ts +2 -0
  202. package/src/components/CssBaseline/CssBaseline.tsx +2 -3
  203. package/src/components/DateInput/DateInput.stories.tsx +13 -31
  204. package/src/components/DateInput/DateInput.tsx +61 -64
  205. package/src/components/DatePicker/DatePicker.stories.tsx +18 -42
  206. package/src/components/DatePicker/DatePicker.styles.ts +3 -1
  207. package/src/components/DatePicker/DatePicker.tsx +284 -256
  208. package/src/components/DatePicker/components/DatePickerBase/DatePickerBase.tsx +14 -0
  209. package/src/components/DatePicker/components/DatePickerBase/index.ts +1 -0
  210. package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +4 -4
  211. package/src/components/DatePicker/components/index.ts +1 -0
  212. package/src/components/DatePicker/constants.ts +9 -3
  213. package/src/components/DatePicker/helpers.ts +1 -1
  214. package/src/components/DatePicker/index.ts +1 -0
  215. package/src/components/DatePicker/types.ts +6 -4
  216. package/src/components/Description/Description.stories.tsx +11 -16
  217. package/src/components/Description/Description.tsx +2 -3
  218. package/src/components/FileInput/FileInput.stories.tsx +59 -63
  219. package/src/components/FileInput/FileInput.tsx +87 -95
  220. package/src/components/FileItem/FileItem.stories.tsx +48 -48
  221. package/src/components/FileItem/FileItem.tsx +2 -4
  222. package/src/components/FileItem/constants.ts +3 -14
  223. package/src/components/FileItem/helpers.ts +3 -2
  224. package/src/components/FileItem/types.ts +1 -3
  225. package/src/components/FiltersPane/FiltersPane.stories.tsx +34 -28
  226. package/src/components/FiltersPane/FiltersPane.tsx +28 -19
  227. package/src/components/FiltersPane/components/Filter/Filter.tsx +36 -30
  228. package/src/components/FiltersPane/components/Filter/helpers.ts +18 -0
  229. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +1 -2
  230. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +7 -20
  231. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +1 -2
  232. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +22 -23
  233. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +8 -5
  234. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +3 -3
  235. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +9 -7
  236. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +4 -3
  237. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +17 -12
  238. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +5 -0
  239. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +19 -19
  240. package/src/components/FiltersPane/helpers.ts +3 -3
  241. package/src/components/FiltersPane/index.ts +1 -0
  242. package/src/components/FiltersPane/types.ts +12 -4
  243. package/src/components/Flag/Flag.stories.tsx +15 -20
  244. package/src/components/Flag/Flag.tsx +2 -2
  245. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +47 -50
  246. package/src/components/FlexibleTable/FlexibleTable.styles.ts +5 -2
  247. package/src/components/FlexibleTable/FlexibleTable.tsx +43 -64
  248. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +1 -0
  249. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +13 -7
  250. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +15 -15
  251. package/src/components/FlexibleTable/types.ts +19 -11
  252. package/src/components/FloatDocActions/FloatDocActions.stories.tsx +111 -0
  253. package/src/components/FloatDocActions/FloatDocActions.styles.ts +12 -0
  254. package/src/components/FloatDocActions/FloatDocActions.tsx +34 -0
  255. package/src/components/FloatDocActions/components/DocActions/DocActions.styles.ts +29 -0
  256. package/src/components/FloatDocActions/components/DocActions/DocActions.tsx +43 -0
  257. package/src/components/FloatDocActions/components/DocActions/constants.ts +1 -0
  258. package/src/components/FloatDocActions/components/DocActions/index.ts +4 -0
  259. package/src/components/FloatDocActions/components/DocActions/types.ts +3 -0
  260. package/src/components/FloatDocActions/components/index.ts +1 -0
  261. package/src/components/FloatDocActions/constants.ts +1 -0
  262. package/src/components/FloatDocActions/index.ts +3 -0
  263. package/src/components/Icon/Icon.stories.tsx +80 -67
  264. package/src/components/Icon/Icon.styles.ts +1 -1
  265. package/src/components/Icon/Icon.tsx +17 -12
  266. package/src/components/Icon/icons/calendar.svg +1 -0
  267. package/src/components/Icon/icons/check.svg +1 -0
  268. package/src/components/Icon/icons/chevron-down-small.svg +1 -0
  269. package/src/components/Icon/icons/chevron-down.svg +1 -0
  270. package/src/components/Icon/icons/chevron-left.svg +1 -0
  271. package/src/components/Icon/icons/chevron-right.svg +1 -0
  272. package/src/components/Icon/icons/close-large.svg +1 -0
  273. package/src/components/Icon/icons/close-window.svg +1 -0
  274. package/src/components/Icon/icons/close.svg +1 -0
  275. package/src/components/Icon/icons/filter.svg +1 -0
  276. package/src/components/Icon/icons/index.ts +62 -0
  277. package/src/components/Icon/icons/information.svg +1 -0
  278. package/src/components/Icon/icons/menu.svg +1 -0
  279. package/src/components/Icon/icons/minus.svg +1 -0
  280. package/src/components/Icon/icons/plus.svg +1 -0
  281. package/src/components/Icon/icons/search.svg +1 -0
  282. package/src/components/Icon/icons/status-error.svg +1 -0
  283. package/src/components/Icon/icons/status-info.svg +1 -0
  284. package/src/components/Icon/icons/status-not-ok.svg +1 -0
  285. package/src/components/Icon/icons/status-ok.svg +1 -0
  286. package/src/components/Icon/icons/status-warning.svg +1 -0
  287. package/src/components/Icon/icons/trash-can.svg +1 -0
  288. package/src/components/Icon/index.ts +1 -1
  289. package/src/components/Icon/types.ts +7 -13
  290. package/src/components/IconButton/IconButton.stories.tsx +7 -12
  291. package/src/components/IconButton/IconButton.styles.ts +15 -13
  292. package/src/components/IconButton/IconButton.tsx +44 -48
  293. package/src/components/IconButton/constants.ts +1 -1
  294. package/src/components/IncrementInput/IncrementInput.stories.tsx +25 -23
  295. package/src/components/IncrementInput/IncrementInput.styles.ts +31 -39
  296. package/src/components/IncrementInput/IncrementInput.tsx +28 -25
  297. package/src/components/Input/Input.stories.tsx +38 -68
  298. package/src/components/Input/Input.styles.ts +5 -2
  299. package/src/components/Input/Input.tsx +29 -26
  300. package/src/components/Input/InputBase.tsx +172 -172
  301. package/src/components/List/List.stories.tsx +22 -17
  302. package/src/components/List/List.styles.ts +2 -1
  303. package/src/components/List/List.tsx +7 -5
  304. package/src/components/List/components/ListItem/ListItem.tsx +2 -4
  305. package/src/components/List/index.ts +2 -1
  306. package/src/components/List/types.ts +5 -0
  307. package/src/components/Modal/Modal.stories.tsx +50 -59
  308. package/src/components/Modal/Modal.tsx +3 -5
  309. package/src/components/MoreMenu/MoreMenu.stories.tsx +24 -15
  310. package/src/components/MoreMenu/MoreMenu.tsx +2 -4
  311. package/src/components/MultiSelect/MultiSelect.stories.tsx +23 -20
  312. package/src/components/MultiSelect/MultiSelect.tsx +2 -4
  313. package/src/components/MultiSelectList/MultiSelectList.tsx +15 -11
  314. package/src/components/MultiSelectList/helpers.ts +2 -2
  315. package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +42 -40
  316. package/src/components/NewMoreMenu/NewMoreMenu.tsx +2 -4
  317. package/src/components/Notification/Notification.stories.tsx +35 -34
  318. package/src/components/Notification/Notification.tsx +2 -3
  319. package/src/components/NumberInput/NumberInput.stories.tsx +32 -28
  320. package/src/components/NumberInput/NumberInput.tsx +91 -93
  321. package/src/components/PhoneInput/PhoneInput.stories.tsx +29 -55
  322. package/src/components/PhoneInput/PhoneInput.tsx +3 -4
  323. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +5 -11
  324. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +1 -4
  325. package/src/components/RadioButton/RadioButton.stories.tsx +31 -21
  326. package/src/components/RadioButton/RadioButton.styles.ts +2 -1
  327. package/src/components/RadioButton/RadioButton.tsx +12 -5
  328. package/src/components/RadioButton/index.ts +1 -0
  329. package/src/components/RadioButton/types.ts +4 -0
  330. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +15 -9
  331. package/src/components/SearchInput/SearchInput.stories.tsx +19 -14
  332. package/src/components/SearchInput/SearchInput.styles.ts +6 -12
  333. package/src/components/SearchInput/SearchInput.tsx +21 -24
  334. package/src/components/Select/CustomSelect.stories.tsx +29 -32
  335. package/src/components/Select/MultiSelect.stories.tsx +45 -45
  336. package/src/components/Select/Select.stories.tsx +45 -44
  337. package/src/components/Select/Select.styles.ts +5 -40
  338. package/src/components/Select/Select.tsx +62 -52
  339. package/src/components/Select/components/SelectList/SelectList.styles.ts +2 -1
  340. package/src/components/Select/components/SelectList/SelectList.tsx +13 -7
  341. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +5 -2
  342. package/src/components/Select/index.ts +1 -1
  343. package/src/components/Select/types.ts +3 -0
  344. package/src/components/Selector/Selector.stories.tsx +25 -27
  345. package/src/components/Selector/Selector.tsx +5 -8
  346. package/src/components/Skeleton/Skeleton.stories.tsx +13 -12
  347. package/src/components/SmartInput/SmartInput.stories.tsx +23 -23
  348. package/src/components/SmartInput/SmartInput.tsx +85 -87
  349. package/src/components/Status/Status.stories.tsx +79 -28
  350. package/src/components/Status/Status.styles.ts +2 -37
  351. package/src/components/Status/Status.tsx +5 -4
  352. package/src/components/Status/constants.ts +0 -10
  353. package/src/components/Status/index.ts +1 -1
  354. package/src/components/Status/types.ts +7 -3
  355. package/src/components/Switch/Switch.stories.tsx +19 -26
  356. package/src/components/Switch/Switch.styles.ts +21 -13
  357. package/src/components/Switch/Switch.tsx +11 -6
  358. package/src/components/Switch/types.ts +5 -0
  359. package/src/components/TextArea/TextArea.stories.tsx +37 -26
  360. package/src/components/TextArea/TextArea.styles.ts +15 -8
  361. package/src/components/TextArea/TextArea.tsx +114 -83
  362. package/src/components/TextArea/index.ts +1 -1
  363. package/src/components/TextArea/types.ts +5 -5
  364. package/src/components/TextButton/TextButton.stories.tsx +8 -19
  365. package/src/components/TextButton/TextButton.styles.ts +1 -0
  366. package/src/components/TextButton/TextButton.tsx +68 -69
  367. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +13 -21
  368. package/src/components/TextWithInfo/TextWithInfo.tsx +2 -4
  369. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +26 -25
  370. package/src/components/TextWithTooltip/TextWithTooltip.tsx +7 -6
  371. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +12 -23
  372. package/src/components/ThemedPreloader/ThemedPreloader.tsx +2 -4
  373. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +4 -4
  374. package/src/components/Toaster/Toaster.stories.tsx +16 -14
  375. package/src/components/Toaster/Toaster.tsx +2 -4
  376. package/src/components/Tooltip/Tooltip.stories.tsx +15 -4
  377. package/src/components/Tooltip/Tooltip.styles.ts +2 -1
  378. package/src/components/Tooltip/Tooltip.tsx +12 -5
  379. package/src/components/Tooltip/types.ts +5 -0
  380. package/src/components/WithMessages/WithMessages.stories.tsx +16 -20
  381. package/src/components/WithMessages/WithMessages.tsx +41 -40
  382. package/src/components/WithPopup/WithPopup.stories.tsx +27 -26
  383. package/src/components/WithPopup/WithPopup.tsx +36 -15
  384. package/src/components/WithTooltip/WithTooltip.stories.tsx +28 -28
  385. package/src/components/WithTooltip/WithTooltip.tsx +4 -0
  386. package/src/components/index.ts +1 -1
  387. package/src/helpers/misc.ts +15 -7
  388. package/src/helpers/popper-helpers.ts +0 -1
  389. package/src/hooks/index.ts +8 -4
  390. package/src/hooks/use-intersection-ref.ts +48 -0
  391. package/src/hooks/use-latest-ref.ts +11 -0
  392. package/src/hooks/use-merge.ts +8 -0
  393. package/src/hooks/use-mixed-styles.ts +9 -11
  394. package/src/hooks/use-on-click-outside.ts +22 -14
  395. package/src/hooks/use-resize-ref.ts +35 -0
  396. package/src/hooks/use-tweak-styles.ts +18 -33
  397. package/src/theme/Provider.tsx +5 -17
  398. package/src/theme/common.ts +33 -36
  399. package/src/theme/helpers.ts +60 -50
  400. package/src/theme/types.ts +19 -15
  401. package/src/types.ts +17 -6
  402. package/dist/components/AccountInfo/AccountInfo.stories.d.ts +0 -6
  403. package/dist/components/AddButton/AddButton.stories.d.ts +0 -6
  404. package/dist/components/Button/Button.stories.d.ts +0 -6
  405. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -8
  406. package/dist/components/CloseButton/CloseButton.stories.d.ts +0 -5
  407. package/dist/components/Colors/Colors.d.ts +0 -2
  408. package/dist/components/Colors/Colors.stories.d.ts +0 -5
  409. package/dist/components/Colors/Colors.styles.d.ts +0 -1
  410. package/dist/components/Colors/index.d.ts +0 -1
  411. package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +0 -6
  412. package/dist/components/DateInput/DateInput.stories.d.ts +0 -7
  413. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
  414. package/dist/components/Description/Description.stories.d.ts +0 -16
  415. package/dist/components/FileInput/FileInput.stories.d.ts +0 -7
  416. package/dist/components/FileItem/FileItem.stories.d.ts +0 -8
  417. package/dist/components/FiltersPane/FiltersPane.stories.d.ts +0 -31
  418. package/dist/components/Flag/Flag.stories.d.ts +0 -12
  419. package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +0 -19
  420. package/dist/components/Icon/Icon.stories.d.ts +0 -6
  421. package/dist/components/Icon/complexIcons/icons.d.ts +0 -10
  422. package/dist/components/Icon/complexIcons/index.d.ts +0 -1
  423. package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +0 -6
  424. package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +0 -1
  425. package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +0 -6
  426. package/dist/components/Icon/components/IconBolerplate/index.d.ts +0 -1
  427. package/dist/components/Icon/components/index.d.ts +0 -2
  428. package/dist/components/Icon/helpers.d.ts +0 -6
  429. package/dist/components/Icon/icons-list.d.ts +0 -1
  430. package/dist/components/IconButton/IconButton.stories.d.ts +0 -6
  431. package/dist/components/IncrementInput/IncrementInput.stories.d.ts +0 -6
  432. package/dist/components/Input/Input.stories.d.ts +0 -25
  433. package/dist/components/List/List.stories.d.ts +0 -5
  434. package/dist/components/Modal/Modal.stories.d.ts +0 -29
  435. package/dist/components/MoreMenu/MoreMenu.stories.d.ts +0 -6
  436. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -13
  437. package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +0 -12
  438. package/dist/components/Notification/Notification.stories.d.ts +0 -8
  439. package/dist/components/NumberInput/NumberInput.stories.d.ts +0 -7
  440. package/dist/components/PhoneInput/PhoneInput.stories.d.ts +0 -28
  441. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +0 -5
  442. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -7
  443. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -7
  444. package/dist/components/Select/CustomSelect.stories.d.ts +0 -11
  445. package/dist/components/Select/MultiSelect.stories.d.ts +0 -15
  446. package/dist/components/Select/Select.stories.d.ts +0 -15
  447. package/dist/components/Selector/Selector.stories.d.ts +0 -7
  448. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -6
  449. package/dist/components/SmartInput/SmartInput.stories.d.ts +0 -18
  450. package/dist/components/Status/Status.stories.d.ts +0 -6
  451. package/dist/components/Switch/Switch.stories.d.ts +0 -16
  452. package/dist/components/TextArea/TextArea.stories.d.ts +0 -17
  453. package/dist/components/TextButton/TextButton.stories.d.ts +0 -6
  454. package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +0 -12
  455. package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +0 -24
  456. package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +0 -17
  457. package/dist/components/Toaster/Toaster.stories.d.ts +0 -5
  458. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -5
  459. package/dist/components/WithMessages/WithMessages.stories.d.ts +0 -7
  460. package/dist/components/WithPopup/WithPopup.stories.d.ts +0 -16
  461. package/dist/components/WithTooltip/WithTooltip.stories.d.ts +0 -6
  462. package/dist/style.css +0 -820
  463. package/src/components/Colors/Colors.styles.ts +0 -36
  464. package/src/components/Colors/Colors.tsx +0 -26
  465. package/src/components/Colors/index.ts +0 -1
  466. package/src/components/Flag/augment.d.ts +0 -1
  467. package/src/components/Flag/customFlags/augment.d.ts +0 -1
  468. package/src/components/Icon/complexIcons/augment.d.ts +0 -1
  469. package/src/components/Icon/complexIcons/icons.ts +0 -19
  470. package/src/components/Icon/complexIcons/index.ts +0 -1
  471. package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +0 -16
  472. package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +0 -1
  473. package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +0 -43
  474. package/src/components/Icon/components/IconBolerplate/index.ts +0 -1
  475. package/src/components/Icon/components/index.ts +0 -2
  476. package/src/components/Icon/helpers.tsx +0 -9
  477. package/src/components/Icon/icons-list.ts +0 -855
  478. package/src/vite-env.d.ts +0 -1
  479. /package/src/components/Icon/{complexIcons/avatarGreen.svg → icons/avatar.svg} +0 -0
  480. /package/src/components/Icon/{complexIcons/fileExcel.svg → icons/file-excel.svg} +0 -0
  481. /package/src/components/Icon/{complexIcons/fileImage.svg → icons/file-image.svg} +0 -0
  482. /package/src/components/Icon/{complexIcons/fileOther.svg → icons/file-other.svg} +0 -0
  483. /package/src/components/Icon/{complexIcons/filePdf.svg → icons/file-pdf.svg} +0 -0
  484. /package/src/components/Icon/{complexIcons/fileWord.svg → icons/file-word.svg} +0 -0
  485. /package/src/components/Icon/{complexIcons/fileXml.svg → icons/file-xml.svg} +0 -0
  486. /package/src/components/Icon/{complexIcons/fileZip.svg → icons/file-zip.svg} +0 -0
@@ -1,4 +1,8 @@
1
1
  import { ChangeEvent, KeyboardEvent } from 'react';
2
+ import { IRenderNode } from '../../types';
2
3
  import { IChangeInputEvent } from '../Input';
3
4
  export type IMultipleSelectValue<Value> = Array<NonNullable<Value>>;
4
5
  export type IChangeSelectEvent = IChangeInputEvent | ChangeEvent<HTMLElement> | KeyboardEvent;
6
+ export type ISelectFooter<T> = IRenderNode<{
7
+ filteredOptions: T[];
8
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ICommonProps } from '../../types';
3
2
  import { ISelectorOption, ISelectorValue } from './types';
4
3
  import { ISelectorStyles } from './Selector.styles';
@@ -5,5 +5,5 @@ export declare const getSelectorLineStyle: (activeElementData?: {
5
5
  clientWidth: number;
6
6
  offsetLeft: number;
7
7
  }) => CSSProperties | undefined;
8
- export declare const useStyles: import("../../theme").IUseStyles<"invalid" | "root" | "active" | "disabled" | "iconFromRight" | "s" | "m" | "l" | "option" | "required" | "optionWrapper" | "optionIcon" | "optionText" | "line" | "selector" | "autoWidth", unknown>;
8
+ export declare const useStyles: import('../../theme').IUseStyles<"option" | "s" | "line" | "invalid" | "root" | "active" | "disabled" | "m" | "l" | "iconFromRight" | "required" | "optionWrapper" | "optionIcon" | "optionText" | "selector" | "autoWidth">;
9
9
  export type ISelectorStyles = ITweakStyles<typeof useStyles>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"root" | "@keyframes skeleton", unknown>;
2
+ export declare const useStyles: import('../../theme').IUseStyles<"root" | "@keyframes skeleton">;
3
3
  export type ISkeletonStyles = ITweakStyles<typeof useStyles>;
@@ -11,4 +11,4 @@ export interface ISmartInputProps extends Omit<IInputProps, 'onChange'> {
11
11
  isTransliterationEnabled?: boolean;
12
12
  onChange: (value: string, rawValue: IInputRawValue, event?: IChangeInputEvent | ClipboardEvent<HTMLInputElement>) => void;
13
13
  }
14
- export declare const SmartInput: import("react").ForwardRefExoticComponent<ISmartInputProps & import("react").RefAttributes<HTMLInputElement>>;
14
+ export declare const SmartInput: import('react').ForwardRefExoticComponent<ISmartInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,4 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"root" | "text" | "blue" | "green" | "grey" | "orange" | "red" | "teal" | "violet" | "icon" | "custom" | "s" | "m" | "iconLeft" | "badge" | "xs", unknown>;
3
- export type IStatusStyles = ITweakStyles<typeof useStyles>;
2
+ import { IStatusColors } from './types';
3
+ export declare const useStyles: import('../../theme').IUseStyles<"custom" | "s" | "text" | "root" | "icon" | "m" | "xs" | "iconLeft" | "badge">;
4
+ export type IStatusStyles = ITweakStyles<typeof useStyles, IStatusColors>;
@@ -1,2 +1 @@
1
- export declare const STATUS_COLORS: readonly ["green", "teal", "blue", "grey", "orange", "red", "violet", "custom"];
2
1
  export declare const STATUS_SIZES: readonly ["xs", "s", "m"];
@@ -1,2 +1,3 @@
1
1
  export * from './Status';
2
+ export * from './types';
2
3
  export type { IStatusStyles } from './Status.styles';
@@ -1,3 +1,6 @@
1
- import { STATUS_COLORS, STATUS_SIZES } from './constants';
2
- export type IStatusColor = (typeof STATUS_COLORS)[number];
1
+ import { IDefaultExtendableProps } from '../../types';
2
+ import { STATUS_SIZES } from './constants';
3
3
  export type IStatusSize = (typeof STATUS_SIZES)[number];
4
+ export interface IStatusColors extends IDefaultExtendableProps {
5
+ }
6
+ export type IStatusColor = keyof IStatusColors;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
- import { ISwitchState } from './types';
3
+ import { ISwitchSize, ISwitchState } from './types';
4
4
  import { ISwitchStyles } from './Switch.styles';
5
5
  export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyles> {
6
6
  children?: ReactNode;
@@ -15,6 +15,7 @@ export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyl
15
15
  labelPosition?: 'left' | 'right';
16
16
  /** @default 'primary' */
17
17
  color?: 'primary' | 'secondary';
18
+ size?: ISwitchSize;
18
19
  onChange: (state: ISwitchState<V>) => void;
19
20
  }
20
- export declare const Switch: <V extends string>({ isDisabled, isChecked, isInvalid, value, children, labelPosition, color, data, tweakStyles, testId, onChange, }: ISwitchProps<V>) => JSX.Element;
21
+ export declare const Switch: <V extends string>({ isDisabled, isChecked, isInvalid, value, children, labelPosition, color, size, data, tweakStyles, testId, onChange, }: ISwitchProps<V>) => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"input" | "invalid" | "root" | "disabled" | "primary" | "secondary" | "checked" | "label" | "switch" | "labelLeft" | "labelRight", unknown>;
3
- export type ISwitchStyles = ITweakStyles<typeof useStyles>;
2
+ import { ISwitchSizes } from './types';
3
+ export declare const useStyles: import('../../theme').IUseStyles<"input" | "label" | "switch" | "invalid" | "root" | "disabled" | "primary" | "secondary" | "checked" | "labelLeft" | "labelRight">;
4
+ export type ISwitchStyles = ITweakStyles<typeof useStyles, ISwitchSizes>;
@@ -2,3 +2,6 @@ export interface ISwitchState<V = string> {
2
2
  name: V;
3
3
  isEnabled: boolean;
4
4
  }
5
+ export interface ISwitchSizes {
6
+ }
7
+ export type ISwitchSize = keyof ISwitchSizes;
@@ -1,14 +1,13 @@
1
- import { FormEvent } from 'react';
1
+ import { FormEvent, TextareaHTMLAttributes } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { IControlWrapperProps } from '../ControlWrapper';
4
4
  import { IWithMessagesProps } from '../WithMessages';
5
- import { ITextAreaHTMLBaseProps } from './types';
5
+ import { ITextAreaCounterPosition } from './types';
6
6
  import { ITextAreaStyles } from './TextArea.styles';
7
- export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled'>, Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'>, Pick<ITextAreaHTMLBaseProps, 'name' | 'maxLength' | 'rows' | 'onPaste' | 'onFocus' | 'onBlur'> {
7
+ export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled' | 'size' | 'groupPlacement'>, Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'> {
8
8
  value?: string;
9
9
  placeholder?: string;
10
- /** @default false */
11
- isDisabled?: boolean;
10
+ counterPosition?: ITextAreaCounterPosition;
12
11
  /** @default false */
13
12
  isActive?: boolean;
14
13
  /**
@@ -26,4 +25,4 @@ export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Pick<ICon
26
25
  shouldAlwaysShowPlaceholder?: boolean;
27
26
  onChange: (value: string, event?: FormEvent<HTMLTextAreaElement>) => void;
28
27
  }
29
- export declare const TextArea: import("react").ForwardRefExoticComponent<ITextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
28
+ export declare const TextArea: import('react').ForwardRefExoticComponent<ITextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -1,9 +1,10 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- import { IControlWrapperStyles } from '../ControlWrapper';
2
+ import { IWithPrefix } from '../../types';
3
+ import { IControlWrapperSizes, IControlWrapperStyles } from '../ControlWrapper';
3
4
  import { IWithMessagesStyles } from '../WithMessages';
4
- export declare const useStyles: import("../../theme").IUseStyles<"textarea" | "autoSized" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
5
- export declare const controlWrapperStyles: IControlWrapperStyles;
5
+ import { ITextAreaCounterPositions } from './types';
6
+ export declare const useStyles: import('../../theme').IUseStyles<"textarea" | "root" | "wrapper" | "autoSized" | "withLabel" | "symbolsCount" | "symbolsCountError" | "symbolsCountActive" | "counter-default">;
6
7
  export type ITextAreaStyles = ITweakStyles<typeof useStyles, {
7
8
  tweakWithMessages: IWithMessagesStyles;
8
9
  tweakControlWrapper: IControlWrapperStyles;
9
- }>;
10
+ } & IWithPrefix<ITextAreaCounterPositions, 'counter-'> & IControlWrapperSizes>;
@@ -1,3 +1,3 @@
1
1
  export * from './TextArea';
2
- export * from './types';
3
2
  export type { ITextAreaStyles } from './TextArea.styles';
3
+ export * from './types';
@@ -1,2 +1,4 @@
1
- import { TextareaHTMLAttributes } from 'react';
2
- export type ITextAreaHTMLBaseProps = Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'placeholder' | 'name' | 'maxLength' | 'rows' | 'onPaste' | 'onFocus' | 'onBlur'>;
1
+ import { IExtendableProps } from '../../types';
2
+ export interface ITextAreaCounterPositions extends IExtendableProps<'default'> {
3
+ }
4
+ export type ITextAreaCounterPosition = keyof ITextAreaCounterPositions;
@@ -28,4 +28,4 @@ export interface ITextButtonProps extends ICommonProps<ITextButtonStyles>, IText
28
28
  /** @default 'dots' */
29
29
  preloaderType?: IThemedPreloaderProps['type'];
30
30
  }
31
- export declare const TextButton: import("react").ForwardRefExoticComponent<ITextButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
31
+ export declare const TextButton: import('react').ForwardRefExoticComponent<ITextButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IThemedPreloaderStyles } from '../ThemedPreloader';
3
- export declare const useStyles: import("../../theme").IUseStyles<"content" | "bold" | "root" | "circle" | "icon" | "active" | "disabled" | "primary" | "secondary" | "custom" | "l" | "xl" | "loader" | "loading" | "iconContainer" | "reverseContent", unknown>;
3
+ export declare const useStyles: import('../../theme').IUseStyles<"content" | "custom" | "bold" | "circle" | "root" | "active" | "disabled" | "icon" | "l" | "xl" | "primary" | "secondary" | "loader" | "loading" | "iconContainer" | "reverseContent">;
4
4
  export declare const preloaderStyles: IThemedPreloaderStyles;
5
5
  export type ITextButtonStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakPreloader: IThemedPreloaderStyles;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"container" | "root" | "text" | "info" | "selected", unknown>;
2
+ export declare const useStyles: import('../../theme').IUseStyles<"container" | "text" | "root" | "info" | "selected">;
3
3
  export type ITextWithInfoStyles = ITweakStyles<typeof useStyles>;
@@ -15,6 +15,8 @@ export interface ITextWithTooltipProps extends ICommonProps<ITextWithTooltipStyl
15
15
  /** @default [] */
16
16
  tooltipModifiers?: Array<Partial<Modifier<any, any>>>;
17
17
  tooltipOffsetOptions?: Record<string, unknown>;
18
+ /** @default 'undefined' */
19
+ tooltipSize?: ITooltipProps['size'];
18
20
  /** @default 'hover' */
19
21
  mouseEventType?: 'hover' | 'click';
20
22
  hoverDelay?: number;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { ITooltipStyles } from '../Tooltip';
3
- export declare const useStyles: import("../../theme").IUseStyles<"root" | "tooltip" | "clickable", unknown>;
3
+ export declare const useStyles: import('../../theme').IUseStyles<"root" | "clickable" | "tooltip">;
4
4
  export type ITextWithTooltipStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakTooltip: ITooltipStyles;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IDotsPreloaderStyles, ISvgPreloaderStyles } from './components';
3
- export declare const useStyles: import("../../theme").IUseStyles<"root" | "default" | "currentColor" | "dots" | "logo", unknown>;
3
+ export declare const useStyles: import('../../theme').IUseStyles<"root" | "default" | "currentColor" | "logo" | "dots">;
4
4
  export type IThemedPreloaderStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakDotsPreloader: IDotsPreloaderStyles;
6
6
  tweakSvgPreloader: ISvgPreloaderStyles;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
- export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown>;
2
+ export declare const useStyles: import('../../../../theme').IUseStyles<"root" | "fadedDot" | "@keyframes FadedDots" | "dot">;
3
3
  export type IDotsPreloaderStyles = ITweakStyles<typeof useStyles>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
- export declare const useStyles: import("../../../../theme").IUseStyles<"root", unknown>;
2
+ export declare const useStyles: import('../../../../theme').IUseStyles<"root">;
3
3
  export type ISvgPreloaderStyles = ITweakStyles<typeof useStyles>;
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IIconButtonStyles } from '../IconButton';
3
- export declare const useStyles: import("../../theme").IUseStyles<"content" | "close" | "error" | "root" | "text" | "warning" | "info" | "iconContainer" | "title" | "ok" | "not-ok", unknown>;
3
+ export declare const useStyles: import('../../theme').IUseStyles<"content" | "title" | "text" | "close" | "error" | "root" | "warning" | "info" | "iconContainer" | "ok" | "not-ok">;
4
4
  export type IToasterStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakCloseButton: IIconButtonStyles;
6
6
  }>;
@@ -1,5 +1,6 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
+ import { ITooltipSize } from './types';
3
4
  import { ITooltipStyles } from './Tooltip.styles';
4
5
  export interface ITooltipProps extends ICommonProps<ITooltipStyles> {
5
6
  text: ReactNode;
@@ -7,5 +8,7 @@ export interface ITooltipProps extends ICommonProps<ITooltipStyles> {
7
8
  view?: 'tooltip' | 'hint' | 'custom';
8
9
  /** @default 'info' */
9
10
  type?: 'info' | 'error';
11
+ /** @default 'undefined' */
12
+ size?: ITooltipSize;
10
13
  }
11
14
  export declare const Tooltip: FC<ITooltipProps>;
@@ -1,3 +1,4 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"error" | "root" | "tooltip" | "custom" | "info" | "hint", unknown>;
3
- export type ITooltipStyles = ITweakStyles<typeof useStyles>;
2
+ import { ITooltipSizes } from './types';
3
+ export declare const useStyles: import('../../theme').IUseStyles<"custom" | "error" | "root" | "tooltip" | "info" | "hint">;
4
+ export type ITooltipStyles = ITweakStyles<typeof useStyles, ITooltipSizes>;
@@ -1 +1,4 @@
1
1
  export type ITooltipType = 'info' | 'warning';
2
+ export interface ITooltipSizes {
3
+ }
4
+ export type ITooltipSize = keyof ITooltipSizes;
@@ -7,4 +7,4 @@ export interface IWithMessagesProps extends ICommonProps<IWithMessagesStyles> {
7
7
  errorMessage?: ReactNode;
8
8
  controlsDirection?: 'horizontal' | 'vertical';
9
9
  }
10
- export declare const WithMessages: import("react").ForwardRefExoticComponent<IWithMessagesProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare const WithMessages: import('react').ForwardRefExoticComponent<IWithMessagesProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"error" | "horizontal" | "vertical" | "children" | "info" | "withMessages" | "message", unknown>;
2
+ export declare const useStyles: import('../../theme').IUseStyles<"error" | "children" | "withMessages" | "info" | "horizontal" | "vertical" | "message">;
3
3
  export type IWithMessagesStyles = ITweakStyles<typeof useStyles>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { Placement, Middleware, OffsetOptions, UseHoverProps } from '@floating-ui/react';
2
+ import { Placement, Middleware, OffsetOptions, UseHoverProps, UseClickProps, UseFocusProps, UseDismissProps, UseTransitionStatusProps } from '@floating-ui/react';
3
3
  import { ICommonProps, IDataAttributes, IRenderNode } from '../../types';
4
4
  import { IPopupArrowProps, IPopupEventType, IWithPopupChildrenProps, IWithPopupToggleEvent, IWithPopupTriggerProps } from './types';
5
5
  import { IWithPopupStyles } from './WithPopup.styles';
@@ -11,8 +11,11 @@ export interface IWithPopupProps extends ICommonProps<IWithPopupStyles> {
11
11
  placement?: Placement;
12
12
  /** @default 'click' */
13
13
  eventType?: IPopupEventType;
14
- /** @default 0 */
15
- hoverDelay?: UseHoverProps['delay'];
14
+ /**
15
+ * @deprecated Используйте hoverOptions
16
+ * @default 0
17
+ */
18
+ hoverDelay?: number;
16
19
  /** @default 6 */
17
20
  popupOffset?: OffsetOptions;
18
21
  arrowProps?: IPopupArrowProps;
@@ -35,6 +38,11 @@ export interface IWithPopupProps extends ICommonProps<IWithPopupStyles> {
35
38
  /** Должна ли минимальная ширина попапа быть равна ширине триггера
36
39
  * @default false */
37
40
  isMinWidthSameAsTrigger?: boolean;
41
+ hoverOptions?: UseHoverProps;
42
+ clickOptions?: UseClickProps;
43
+ focusOptions?: UseFocusProps;
44
+ dismissOptions?: UseDismissProps;
45
+ transitionOptions?: UseTransitionStatusProps;
38
46
  onToggle?: (isActive: boolean, event?: IWithPopupToggleEvent) => void;
39
47
  }
40
48
  export declare const WithPopup: FC<IWithPopupProps>;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"active" | "disabled" | "clickable" | "animationEnd" | "animationStart" | "arrow" | "trigger" | "popup" | "dropdown-initial" | "dropdown-open" | "dropdown-close" | "dropdown-unmounted", unknown>;
2
+ export declare const useStyles: import('../../theme').IUseStyles<"trigger" | "clickable" | "active" | "disabled" | "popup" | "arrow" | "animationEnd" | "animationStart" | "dropdown-initial" | "dropdown-open" | "dropdown-close" | "dropdown-unmounted">;
3
3
  export type IWithPopupStyles = ITweakStyles<typeof useStyles>;
@@ -1,7 +1,7 @@
1
- import type { MouseEvent, KeyboardEvent } from 'react';
2
- import type { FloatingArrowProps, UseFloatingReturn } from '@floating-ui/react';
3
- import type { IDataAttributesProps, IDomElementInteractions } from '../../types';
4
- import type { POPUP_EVENT_TYPES } from './constants';
1
+ import { MouseEvent, KeyboardEvent } from 'react';
2
+ import { FloatingArrowProps, UseFloatingReturn } from '@floating-ui/react';
3
+ import { IDataAttributesProps, IDomElementInteractions } from '../../types';
4
+ import { POPUP_EVENT_TYPES } from './constants';
5
5
  export type IPopupEventType = (typeof POPUP_EVENT_TYPES)[number];
6
6
  export type IWithPopupToggleEvent = MouseEvent | KeyboardEvent | Event;
7
7
  export interface IReferenceProps extends IDomElementInteractions<HTMLElement> {
@@ -14,5 +14,7 @@ export interface IWithTooltipProps extends Omit<IWithPopupProps, 'trigger' | 'ch
14
14
  tooltipView?: ITooltipProps['view'];
15
15
  /** @default 'info' */
16
16
  tooltipType?: ITooltipProps['type'];
17
+ /** @default 'undefined' */
18
+ tooltipSize?: ITooltipProps['size'];
17
19
  }
18
20
  export declare const WithTooltip: FC<IWithTooltipProps>;
@@ -3,7 +3,6 @@ export * from './AddButton';
3
3
  export * from './Button';
4
4
  export * from './Checkbox';
5
5
  export * from './CloseButton';
6
- export * from './Colors';
7
6
  export * from './CssBaseline';
8
7
  export * from './DateInput';
9
8
  export * from './DatePicker';
@@ -13,6 +12,7 @@ export * from './FileItem';
13
12
  export * from './FiltersPane';
14
13
  export * from './Flag';
15
14
  export * from './FlexibleTable';
15
+ export * from './FloatDocActions';
16
16
  export * from './Icon';
17
17
  export * from './IconButton';
18
18
  export * from './IncrementInput';
@@ -1,2 +1,2 @@
1
- import type { IPhoneInfo } from '../components';
1
+ import { IPhoneInfo } from '../components';
2
2
  export declare const phoneInfo: IPhoneInfo[];
@@ -1,10 +1,10 @@
1
- import hexToRgba from 'hex-to-rgba';
1
+ import { ComponentType, memo } from 'react';
2
2
  import { IDataAttributes } from '../types';
3
- export declare const rgba: typeof hexToRgba;
3
+ export { default as rgba } from 'hex-to-rgba';
4
4
  /** @deprecated Используйте `toKebabCase` из `true-react-platform-helpers` */
5
5
  export declare const transformToKebab: (string: string) => string;
6
- export declare const hasExactParent: (element: Element, parent: Element) => boolean;
7
6
  export declare const getParentNode: (element: Element | ShadowRoot | Document) => Element;
7
+ export declare const hasExactParent: (element: Element, parent: Element) => boolean;
8
8
  export declare const getStyleComputedProperty: (element: Element) => Partial<CSSStyleDeclaration>;
9
9
  export declare const getScrollParent: (element: Element | Document) => Element;
10
10
  export declare const isElementOffScreen: (element: HTMLElement, input?: HTMLElement) => boolean;
@@ -19,3 +19,5 @@ export declare const getNumberLength: (n?: number) => number;
19
19
  export declare const trimStringToMaxLength: (val: string, maxLength: number) => string;
20
20
  /** @deprecated Используйте `addDataAttributes` из `true-react-platform-helpers` */
21
21
  export declare const addDataAttributes: (data?: IDataAttributes) => IDataAttributes;
22
+ export declare const excludeStorybookParams: (params: string[]) => RegExp;
23
+ export declare const genericMemo: <T extends ComponentType<any>>(...args: Parameters<typeof memo<T>>) => T;
@@ -1,4 +1,4 @@
1
- import type { IPhoneInfo, IPhoneValue } from '../components';
1
+ import { IPhoneInfo, IPhoneValue } from '../components';
2
2
  export declare const findCountryByCode: (countryCode?: string, countriesList?: IPhoneInfo[]) => IPhoneInfo | undefined;
3
3
  export declare const findCountryIndexByCode: (countryCode?: string, countriesList?: IPhoneInfo[]) => number;
4
4
  export declare const getCountryTextByLocale: (country: IPhoneInfo, locale: string) => string;
@@ -1,7 +1,11 @@
1
+ export * from './use-did-mount-effect';
2
+ export * from './use-dropdown';
3
+ export * from './use-intersection-ref';
4
+ export * from './use-resize-ref';
1
5
  export * from './use-is-mounted';
6
+ export * from './use-latest-ref';
7
+ export * from './use-merge';
8
+ export * from './use-merged-refs';
9
+ export * from './use-mixed-styles';
2
10
  export * from './use-on-click-outside';
3
- export * from './use-dropdown';
4
11
  export * from './use-tweak-styles';
5
- export * from './use-did-mount-effect';
6
- export * from './use-mixed-styles';
7
- export * from './use-merged-refs';
@@ -1,11 +1,11 @@
1
1
  import { DependencyList } from 'react';
2
- import usePopper, { VirtualElement } from 'react-overlays/usePopper';
2
+ import { default as usePopper, VirtualElement } from 'react-overlays/usePopper';
3
3
  import { IDropdownWithPopperOptions } from '../types';
4
4
  export declare const useDropdown: ({ isOpen, onDropdownClose, referenceElement, dropdownElement, options, dependenciesForPositionUpdating, }: {
5
5
  isOpen: boolean;
6
6
  referenceElement: VirtualElement | null | undefined;
7
7
  dropdownElement: HTMLElement | null | undefined;
8
- options?: IDropdownWithPopperOptions | undefined;
9
- dependenciesForPositionUpdating?: DependencyList | undefined;
8
+ options?: IDropdownWithPopperOptions;
9
+ dependenciesForPositionUpdating?: DependencyList;
10
10
  onDropdownClose: (event: Event) => void;
11
11
  }) => ReturnType<typeof usePopper> | undefined;
@@ -0,0 +1,9 @@
1
+ import { RefCallback } from 'react';
2
+ export interface IInsertionRefOptions {
3
+ /** @default false */
4
+ isDisabled?: boolean;
5
+ onIntersection?: VoidFunction;
6
+ onIntersectionEnd?: VoidFunction;
7
+ observerOptions?: IntersectionObserverInit;
8
+ }
9
+ export declare const useIntersectionRef: ({ observerOptions, ...options }: IInsertionRefOptions) => RefCallback<Element>;
@@ -0,0 +1,2 @@
1
+ import { MutableRefObject } from 'react';
2
+ export declare const useLatestRef: <T>(value: T) => MutableRefObject<T>;
@@ -0,0 +1 @@
1
+ export declare const useMerge: <T>(one?: T, two?: T) => T | undefined;
@@ -1 +1,3 @@
1
- export declare const useMixedStyles: <StyleSheet_1>(baseStyles?: StyleSheet_1 | undefined, tweakStyles?: StyleSheet_1 | undefined) => StyleSheet_1 | undefined;
1
+ import { IMixedStyles } from '../theme';
2
+ export declare const mixStyles: <T>(...tweakStyles: Array<IMixedStyles<T>>) => Array<NonNullable<T>>;
3
+ export declare const useMixedStyles: <StyleSheet>(baseStyles?: IMixedStyles<StyleSheet>, tweakStyles?: IMixedStyles<StyleSheet>) => Array<NonNullable<StyleSheet>>;
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
2
  export declare const checkElementParentsClassNames: (element: HTMLElement, className: string) => boolean;
3
3
  export declare const isElementOneOfParents: (element: HTMLElement, elToSearch: HTMLElement) => boolean;
4
- export declare function useOnClickOutsideWithRef<Elem extends HTMLElement, IgnoreElem extends HTMLElement>(ref: RefObject<Elem>, handler: (event: MouseEvent | TouchEvent) => void, ignoreRef?: RefObject<IgnoreElem>): void;
5
- export declare function useOnClickOutside<Elem extends HTMLElement, IgnoreElem extends HTMLElement>(ref: RefObject<Elem>, handler: (event: MouseEvent | TouchEvent) => void, ignoreClassName?: string, ignoreRef?: RefObject<IgnoreElem>): void;
4
+ export declare function useOnClickOutsideWithRef<Elem extends HTMLElement, IgnoreElem extends HTMLElement>(refOrGetter: RefObject<Elem | null> | (() => Elem | null | undefined) | undefined, handler: (event: MouseEvent | TouchEvent) => void, ignoreRef?: RefObject<IgnoreElem>): void;
5
+ export declare function useOnClickOutside<Elem extends HTMLElement, IgnoreElem extends HTMLElement>(refOrGetter: RefObject<Elem | null> | (() => Elem | null | undefined) | undefined, handler: (event: MouseEvent | TouchEvent) => void, ignoreClassName?: string, ignoreRef?: RefObject<IgnoreElem>): void;
@@ -0,0 +1,7 @@
1
+ import { RefCallback } from 'react';
2
+ export interface IResizeRefOptions {
3
+ /** @default false */
4
+ isDisabled?: boolean;
5
+ onChange: (entry: ResizeObserverEntry) => void;
6
+ }
7
+ export declare const useResizeRef: (options: IResizeRefOptions) => RefCallback<Element>;
@@ -1,21 +1,22 @@
1
- import { IComponentName } from '../theme';
2
- export declare const useTweakStyles: <StyleSheet_1, ClassName extends keyof StyleSheet_1 & `tweak${string}`>({ innerStyles, tweakStyles: currentComponentTweakStyles, className, currentComponentName, }: {
1
+ import { IMaybeArray } from '@true-engineering/true-react-platform-helpers';
2
+ import { IComponentName, IMixedStyles } from '../theme';
3
+ export declare const useTweakStyles: <StyleSheet, ClassName extends keyof StyleSheet & `tweak${string}`>({ innerStyles, tweakStyles, className, currentComponentName, }: {
3
4
  /**
4
5
  * Это tweakStyles, определенные в родительском компоненте
5
6
  * (например, стили для Input, определенные в стилях компонента Select)
6
7
  */
7
- innerStyles?: StyleSheet_1[ClassName] | undefined;
8
+ innerStyles?: IMixedStyles<StyleSheet[ClassName]>;
8
9
  /**
9
10
  * Пропса tweakStyles из родительского компонента
10
11
  * (это уже непосредственно ISelectProps.tweakStyles)
11
12
  */
12
- tweakStyles?: StyleSheet_1 | undefined;
13
+ tweakStyles?: IMaybeArray<StyleSheet>;
13
14
  /**
14
15
  * Класс для переопределения tweakStyles из-вне. (Например, 'tweakInput')
15
16
  */
16
17
  className: ClassName;
17
18
  /**
18
- * Название компонента который вызывает useTweakStyles. (В данном примере 'Select')
19
+ * Название компонента который вызывает useTweakStyles
19
20
  */
20
- currentComponentName?: keyof import("../theme").IComponentStyles | undefined;
21
- }) => StyleSheet_1[ClassName];
21
+ currentComponentName?: IComponentName;
22
+ }) => Array<NonNullable<StyleSheet[ClassName]>>;
@@ -1,11 +1,4 @@
1
- import { FC, ReactNode } from 'react';
2
1
  import { IUiKitTheme } from './types';
3
- export interface IThemedProviderProps {
4
- theme: IUiKitTheme;
5
- children: ReactNode;
6
- }
7
- export declare const getTheme: () => IUiKitTheme;
8
- export declare const ThemeContext: import("react").Context<{
9
- theme: IUiKitTheme;
10
- }>;
11
- export declare const ThemeProvider: FC<IThemedProviderProps>;
2
+ export declare const ThemeContext: import('react').Context<IUiKitTheme>;
3
+ export declare const ThemeProvider: import('react').Provider<IUiKitTheme>;
4
+ export declare const useTheme: () => IUiKitTheme;
@@ -1,4 +1,3 @@
1
- import { Styles } from 'react-jss';
2
1
  import { IUiKitTheme } from './types';
3
2
  export declare const colors: {
4
3
  readonly FONT_MAIN: "#222a37";
@@ -43,10 +42,41 @@ export declare const dimensions: {
43
42
  };
44
43
  };
45
44
  export declare const helpers: {
46
- withAngle: (angleSize?: number, position?: 'left' | 'right', distance?: number) => Styles;
45
+ withAngle: (angleSize?: number, position?: "left" | "right", distance?: number) => {
46
+ display: "inline-block";
47
+ position: "relative";
48
+ marginTop: number;
49
+ boxShadow: "0 8px 20px 0 rgba(0, 0, 0, 0.04)";
50
+ border: (string | number)[];
51
+ borderRadius: 4;
52
+ '&:before': {
53
+ content: "\"\"";
54
+ position: "absolute";
55
+ top: number;
56
+ left: number | false;
57
+ right: number | false;
58
+ width: number;
59
+ height: number;
60
+ borderLeft: (string | number)[];
61
+ borderRight: (string | number)[];
62
+ borderBottom: (string | number)[];
63
+ };
64
+ '&:after': {
65
+ content: "\"\"";
66
+ position: "absolute";
67
+ top: number;
68
+ left: number | false;
69
+ right: number | false;
70
+ width: number;
71
+ height: number;
72
+ borderLeft: (string | number)[];
73
+ borderRight: (string | number)[];
74
+ borderBottom: (string | number)[];
75
+ };
76
+ };
47
77
  withScrollBar: {
48
- boxSizing: string;
49
- overflow: string;
78
+ boxSizing: "border-box";
79
+ overflow: "auto";
50
80
  '@supports selector(::-webkit-scrollbar)': {
51
81
  '--webkit-scrollbar-width': string;
52
82
  '--webkit-scrollbar-height': string;
@@ -1,10 +1,3 @@
1
1
  import { IComponentName, IStyles, IUseStyles } from './types';
2
- export declare const areStylesThemed: (styles: Record<string, unknown>) => boolean;
3
- /**
4
- * Подмешивает стили из темы. Мутирует, добавляя специально поле,
5
- * по которому можно определить была ли уже произведена мутация ранее,
6
- * тем самым сохраняя ссылку на объект и позволяя этим кэшировать JSS стили
7
- */
8
- export declare const themedStyles: <T>(styles: T, themeComponentStyles: T) => T;
9
- export declare function createThemedStyles<C extends string, P>(styles: IStyles<C, P>): IUseStyles<C, P>;
10
- export declare function createThemedStyles<C extends string, P>(componentName: IComponentName, styles: IStyles<C, P>): IUseStyles<C, P>;
2
+ export declare const useThemeComponentStyles: <T>(componentName?: IComponentName) => Partial<T> | undefined;
3
+ export declare const createThemedStyles: <C extends string>(...args: [IStyles<C>] | [IComponentName, IStyles<C>]) => IUseStyles<C>;