@true-engineering/true-react-common-ui-kit 2.6.0 → 3.0.0-alpha.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 (363) hide show
  1. package/dist/components/AccountInfo/AccountInfo.d.ts +2 -3
  2. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -64
  3. package/dist/components/AccountInfo/index.d.ts +1 -1
  4. package/dist/components/AddButton/AddButton.d.ts +2 -3
  5. package/dist/components/AddButton/AddButton.styles.d.ts +3 -28
  6. package/dist/components/AddButton/index.d.ts +1 -1
  7. package/dist/components/Button/Button.d.ts +2 -4
  8. package/dist/components/Button/Button.styles.d.ts +8 -150
  9. package/dist/components/Button/index.d.ts +1 -1
  10. package/dist/components/Checkbox/Checkbox.d.ts +3 -17
  11. package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -50
  12. package/dist/components/Checkbox/index.d.ts +1 -1
  13. package/dist/components/CloseButton/CloseButton.d.ts +3 -5
  14. package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -27
  15. package/dist/components/CloseButton/index.d.ts +1 -1
  16. package/dist/components/Colors/Colors.styles.d.ts +1 -32
  17. package/dist/components/Colors/index.d.ts +0 -1
  18. package/dist/components/CssBaseline/CssBaseline.d.ts +2 -4
  19. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -11
  20. package/dist/components/CssBaseline/index.d.ts +1 -1
  21. package/dist/components/DateInput/DateInput.d.ts +3 -3
  22. package/dist/components/DateInput/DateInput.styles.d.ts +6 -11
  23. package/dist/components/DateInput/index.d.ts +1 -1
  24. package/dist/components/DatePicker/DatePicker.d.ts +5 -7
  25. package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -33
  26. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +3 -3
  27. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -69
  28. package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +1 -1
  29. package/dist/components/DatePicker/index.d.ts +2 -2
  30. package/dist/components/Description/Description.d.ts +2 -3
  31. package/dist/components/Description/Description.styles.d.ts +3 -24
  32. package/dist/components/Description/index.d.ts +1 -1
  33. package/dist/components/FiltersPane/FiltersPane.d.ts +6 -8
  34. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +8 -56
  35. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +2 -4
  36. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -52
  37. package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +1 -1
  38. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +2 -4
  39. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -124
  40. package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +1 -1
  41. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +3 -1
  42. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -12
  43. package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +1 -1
  44. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +5 -7
  45. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -47
  46. package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +1 -1
  47. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +4 -6
  48. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -12
  49. package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +1 -1
  50. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +5 -6
  51. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +6 -96
  52. package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +1 -1
  53. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +2 -4
  54. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -91
  55. package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +1 -1
  56. package/dist/components/FiltersPane/helpers.d.ts +1 -1
  57. package/dist/components/FiltersPane/index.d.ts +1 -1
  58. package/dist/components/FiltersPane/types.d.ts +1 -1
  59. package/dist/components/Flag/Flag.d.ts +2 -3
  60. package/dist/components/Flag/Flag.styles.d.ts +3 -12
  61. package/dist/components/Flag/index.d.ts +1 -1
  62. package/dist/components/FlexibleTable/FlexibleTable.d.ts +2 -4
  63. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -101
  64. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +17 -0
  65. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -0
  66. package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -0
  67. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +19 -0
  68. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -0
  69. package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -0
  70. package/dist/components/FlexibleTable/components/index.d.ts +2 -2
  71. package/dist/components/FlexibleTable/index.d.ts +2 -1
  72. package/dist/components/Icon/Icon.d.ts +2 -3
  73. package/dist/components/Icon/Icon.styles.d.ts +3 -8
  74. package/dist/components/Icon/icons-list.d.ts +1 -1
  75. package/dist/components/Icon/index.d.ts +1 -1
  76. package/dist/components/IncrementInput/IncrementInput.d.ts +3 -3
  77. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +7 -61
  78. package/dist/components/IncrementInput/index.d.ts +1 -1
  79. package/dist/components/Input/Input.d.ts +2 -4
  80. package/dist/components/Input/Input.styles.d.ts +6 -247
  81. package/dist/components/Input/index.d.ts +1 -1
  82. package/dist/components/List/List.d.ts +2 -4
  83. package/dist/components/List/List.styles.d.ts +3 -39
  84. package/dist/components/List/index.d.ts +1 -1
  85. package/dist/components/Modal/Modal.d.ts +2 -4
  86. package/dist/components/Modal/Modal.styles.d.ts +6 -239
  87. package/dist/components/Modal/index.d.ts +1 -1
  88. package/dist/components/MoreMenu/MoreMenu.d.ts +2 -4
  89. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -54
  90. package/dist/components/MoreMenu/index.d.ts +1 -1
  91. package/dist/components/MultiSelect/MultiSelect.d.ts +8 -8
  92. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -44
  93. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +4 -4
  94. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -62
  95. package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +1 -1
  96. package/dist/components/MultiSelect/index.d.ts +2 -2
  97. package/dist/components/MultiSelect/types.d.ts +1 -1
  98. package/dist/components/MultiSelectList/MultiSelectList.d.ts +2 -4
  99. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -105
  100. package/dist/components/MultiSelectList/index.d.ts +1 -1
  101. package/dist/components/Notification/Notification.d.ts +4 -6
  102. package/dist/components/Notification/Notification.styles.d.ts +3 -37
  103. package/dist/components/Notification/index.d.ts +1 -1
  104. package/dist/components/Notification/types.d.ts +1 -1
  105. package/dist/components/PhoneInput/PhoneInput.d.ts +3 -3
  106. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -66
  107. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +2 -3
  108. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -83
  109. package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +1 -1
  110. package/dist/components/PhoneInput/index.d.ts +2 -2
  111. package/dist/components/RadioButton/RadioButton.d.ts +3 -4
  112. package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -30
  113. package/dist/components/RadioButton/index.d.ts +1 -1
  114. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +4 -4
  115. package/dist/components/SearchInput/SearchInput.d.ts +3 -4
  116. package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -39
  117. package/dist/components/SearchInput/index.d.ts +1 -1
  118. package/dist/components/Select/Select.d.ts +3 -4
  119. package/dist/components/Select/Select.styles.d.ts +33 -80
  120. package/dist/components/Select/components/SelectList/SelectList.d.ts +2 -4
  121. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +3 -57
  122. package/dist/components/Select/components/SelectList/index.d.ts +1 -1
  123. package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
  124. package/dist/components/Select/index.d.ts +2 -2
  125. package/dist/components/SmartInput/SmartInput.d.ts +2 -2
  126. package/dist/components/SmartInput/helpers.d.ts +2 -2
  127. package/dist/components/SmartInput/types.d.ts +1 -1
  128. package/dist/components/Switch/Switch.d.ts +2 -4
  129. package/dist/components/Switch/Switch.styles.d.ts +3 -62
  130. package/dist/components/Switch/index.d.ts +1 -1
  131. package/dist/components/TextArea/TextArea.d.ts +2 -4
  132. package/dist/components/TextArea/TextArea.styles.d.ts +3 -128
  133. package/dist/components/TextArea/index.d.ts +1 -1
  134. package/dist/components/TextWithInfo/TextWithInfo.d.ts +2 -3
  135. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -48
  136. package/dist/components/TextWithInfo/index.d.ts +1 -1
  137. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +2 -3
  138. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -14
  139. package/dist/components/TextWithTooltip/index.d.ts +1 -1
  140. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +2 -3
  141. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -14
  142. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +2 -4
  143. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -43
  144. package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +1 -1
  145. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -3
  146. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -9
  147. package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +1 -1
  148. package/dist/components/ThemedPreloader/index.d.ts +2 -2
  149. package/dist/components/Toaster/Toaster.d.ts +4 -5
  150. package/dist/components/Toaster/Toaster.styles.d.ts +6 -45
  151. package/dist/components/Toaster/index.d.ts +1 -1
  152. package/dist/components/Toaster/types.d.ts +1 -1
  153. package/dist/components/Tooltip/Tooltip.d.ts +2 -3
  154. package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -35
  155. package/dist/components/Tooltip/index.d.ts +1 -1
  156. package/dist/helpers/index.d.ts +0 -1
  157. package/dist/helpers/phone.d.ts +3 -0
  158. package/dist/hooks/index.d.ts +0 -1
  159. package/dist/hooks/use-tweak-styles.d.ts +21 -2
  160. package/dist/index.d.ts +1 -1
  161. package/dist/theme/Provider.d.ts +11 -0
  162. package/dist/{theme.d.ts → theme/common.d.ts} +6 -10
  163. package/dist/theme/helpers.d.ts +10 -0
  164. package/dist/theme/index.d.ts +4 -0
  165. package/dist/theme/types.d.ts +72 -0
  166. package/dist/true-react-common-ui-kit.js +2980 -2471
  167. package/dist/true-react-common-ui-kit.js.map +1 -1
  168. package/dist/true-react-common-ui-kit.umd.cjs +2912 -2403
  169. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  170. package/dist/types.d.ts +4 -22
  171. package/package.json +2 -2
  172. package/src/components/AccountInfo/AccountInfo.styles.ts +5 -9
  173. package/src/components/AccountInfo/AccountInfo.tsx +13 -10
  174. package/src/components/AccountInfo/constants.ts +1 -1
  175. package/src/components/AccountInfo/index.ts +1 -1
  176. package/src/components/AddButton/AddButton.styles.ts +4 -4
  177. package/src/components/AddButton/AddButton.tsx +7 -6
  178. package/src/components/AddButton/index.ts +1 -1
  179. package/src/components/Button/Button.styles.ts +14 -9
  180. package/src/components/Button/Button.tsx +12 -19
  181. package/src/components/Button/index.ts +1 -1
  182. package/src/components/Checkbox/Checkbox.stories.tsx +5 -9
  183. package/src/components/Checkbox/Checkbox.styles.ts +8 -24
  184. package/src/components/Checkbox/Checkbox.tsx +3 -25
  185. package/src/components/Checkbox/index.ts +1 -1
  186. package/src/components/CloseButton/CloseButton.styles.ts +4 -5
  187. package/src/components/CloseButton/CloseButton.tsx +6 -8
  188. package/src/components/CloseButton/index.ts +1 -1
  189. package/src/components/Colors/Colors.styles.ts +3 -5
  190. package/src/components/Colors/Colors.tsx +3 -3
  191. package/src/components/Colors/index.ts +0 -1
  192. package/src/components/CssBaseline/CssBaseline.styles.ts +4 -5
  193. package/src/components/CssBaseline/CssBaseline.tsx +6 -8
  194. package/src/components/CssBaseline/index.ts +1 -1
  195. package/src/components/DateInput/DateInput.styles.ts +10 -6
  196. package/src/components/DateInput/DateInput.tsx +20 -7
  197. package/src/components/DateInput/index.ts +1 -1
  198. package/src/components/DatePicker/DatePicker.styles.ts +8 -14
  199. package/src/components/DatePicker/DatePicker.tsx +15 -16
  200. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +30 -26
  201. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +17 -7
  202. package/src/components/DatePicker/components/DatePickerHeader/index.ts +1 -1
  203. package/src/components/DatePicker/index.ts +2 -2
  204. package/src/components/Description/Description.styles.ts +4 -5
  205. package/src/components/Description/Description.tsx +6 -6
  206. package/src/components/Description/index.ts +1 -1
  207. package/src/components/FiltersPane/FiltersPane.styles.ts +38 -22
  208. package/src/components/FiltersPane/FiltersPane.tsx +23 -18
  209. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +23 -27
  210. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +25 -12
  211. package/src/components/FiltersPane/components/FilterInterval/index.ts +1 -1
  212. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +21 -26
  213. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +27 -14
  214. package/src/components/FiltersPane/components/FilterSelect/index.ts +1 -1
  215. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +4 -4
  216. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +6 -4
  217. package/src/components/FiltersPane/components/FilterValueView/index.tsx +1 -1
  218. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +33 -26
  219. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +54 -25
  220. package/src/components/FiltersPane/components/FilterWithDates/index.ts +1 -1
  221. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +11 -7
  222. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +12 -9
  223. package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +1 -1
  224. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +11 -6
  225. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +28 -10
  226. package/src/components/FiltersPane/components/FilterWrapper/index.ts +1 -1
  227. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +31 -24
  228. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +23 -10
  229. package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +1 -1
  230. package/src/components/FiltersPane/helpers.ts +1 -1
  231. package/src/components/FiltersPane/index.ts +1 -1
  232. package/src/components/FiltersPane/types.ts +1 -1
  233. package/src/components/Flag/Flag.styles.ts +4 -5
  234. package/src/components/Flag/Flag.tsx +3 -5
  235. package/src/components/Flag/index.ts +1 -1
  236. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +12 -0
  237. package/src/components/FlexibleTable/FlexibleTable.styles.ts +10 -37
  238. package/src/components/FlexibleTable/FlexibleTable.tsx +19 -28
  239. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +28 -0
  240. package/src/components/FlexibleTable/components/{TableValue/TableValue.tsx → FlexibleTableCell/FlexibleTableCell.tsx} +11 -12
  241. package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -0
  242. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +19 -0
  243. package/src/components/FlexibleTable/components/{TableRow/TableRow.tsx → FlexibleTableRow/FlexibleTableRow.tsx} +24 -25
  244. package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -0
  245. package/src/components/FlexibleTable/components/index.ts +2 -2
  246. package/src/components/FlexibleTable/index.ts +2 -1
  247. package/src/components/Icon/Icon.styles.ts +4 -4
  248. package/src/components/Icon/Icon.tsx +6 -7
  249. package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +1 -1
  250. package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +1 -1
  251. package/src/components/Icon/helpers.ts +1 -1
  252. package/src/components/Icon/index.ts +1 -1
  253. package/src/components/IncrementInput/IncrementInput.styles.ts +12 -12
  254. package/src/components/IncrementInput/IncrementInput.tsx +59 -35
  255. package/src/components/IncrementInput/index.ts +1 -1
  256. package/src/components/Input/Input.styles.ts +8 -8
  257. package/src/components/Input/Input.tsx +10 -8
  258. package/src/components/Input/index.ts +1 -1
  259. package/src/components/List/List.styles.ts +4 -5
  260. package/src/components/List/List.tsx +3 -6
  261. package/src/components/List/index.ts +1 -1
  262. package/src/components/Modal/Modal.styles.ts +5 -7
  263. package/src/components/Modal/Modal.tsx +10 -8
  264. package/src/components/Modal/index.ts +1 -1
  265. package/src/components/MoreMenu/MoreMenu.styles.ts +5 -7
  266. package/src/components/MoreMenu/MoreMenu.tsx +10 -7
  267. package/src/components/MoreMenu/index.ts +1 -1
  268. package/src/components/MultiSelect/MultiSelect.styles.ts +11 -7
  269. package/src/components/MultiSelect/MultiSelect.tsx +24 -15
  270. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +4 -4
  271. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +7 -6
  272. package/src/components/MultiSelect/components/MultiSelectInput/index.ts +1 -1
  273. package/src/components/MultiSelect/index.ts +2 -2
  274. package/src/components/MultiSelect/types.ts +1 -1
  275. package/src/components/MultiSelectList/MultiSelectList.styles.ts +37 -29
  276. package/src/components/MultiSelectList/MultiSelectList.tsx +36 -17
  277. package/src/components/MultiSelectList/helpers.ts +1 -1
  278. package/src/components/MultiSelectList/index.ts +1 -1
  279. package/src/components/Notification/Notification.styles.ts +14 -9
  280. package/src/components/Notification/Notification.tsx +6 -9
  281. package/src/components/Notification/index.ts +1 -1
  282. package/src/components/Notification/types.ts +1 -1
  283. package/src/components/PhoneInput/PhoneInput.styles.ts +18 -13
  284. package/src/components/PhoneInput/PhoneInput.tsx +34 -17
  285. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +18 -15
  286. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +16 -6
  287. package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +1 -1
  288. package/src/components/PhoneInput/index.ts +2 -2
  289. package/src/components/RadioButton/RadioButton.styles.ts +4 -4
  290. package/src/components/RadioButton/RadioButton.tsx +6 -6
  291. package/src/components/RadioButton/index.ts +1 -1
  292. package/src/components/SearchInput/SearchInput.styles.ts +28 -28
  293. package/src/components/SearchInput/SearchInput.tsx +12 -7
  294. package/src/components/SearchInput/index.ts +1 -1
  295. package/src/components/Select/Select.styles.ts +71 -23
  296. package/src/components/Select/Select.tsx +33 -34
  297. package/src/components/Select/components/SelectList/SelectList.styles.ts +4 -5
  298. package/src/components/Select/components/SelectList/SelectList.tsx +6 -7
  299. package/src/components/Select/components/SelectList/index.ts +1 -1
  300. package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +2 -2
  301. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +1 -1
  302. package/src/components/Select/helpers.ts +3 -2
  303. package/src/components/Select/index.ts +2 -2
  304. package/src/components/SmartInput/SmartInput.stories.tsx +2 -2
  305. package/src/components/SmartInput/SmartInput.tsx +2 -2
  306. package/src/components/SmartInput/helpers.ts +2 -2
  307. package/src/components/SmartInput/types.ts +1 -1
  308. package/src/components/Switch/Switch.styles.ts +4 -4
  309. package/src/components/Switch/Switch.tsx +3 -6
  310. package/src/components/Switch/index.ts +1 -1
  311. package/src/components/TextArea/TextArea.styles.ts +4 -4
  312. package/src/components/TextArea/TextArea.tsx +3 -6
  313. package/src/components/TextArea/index.ts +1 -1
  314. package/src/components/TextWithInfo/TextWithInfo.styles.ts +4 -5
  315. package/src/components/TextWithInfo/TextWithInfo.tsx +6 -5
  316. package/src/components/TextWithInfo/index.ts +1 -1
  317. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +8 -6
  318. package/src/components/TextWithTooltip/TextWithTooltip.tsx +15 -9
  319. package/src/components/TextWithTooltip/index.ts +1 -1
  320. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +11 -6
  321. package/src/components/ThemedPreloader/ThemedPreloader.tsx +19 -11
  322. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +4 -4
  323. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +3 -6
  324. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +1 -1
  325. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +4 -4
  326. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +5 -6
  327. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +1 -1
  328. package/src/components/ThemedPreloader/index.ts +2 -2
  329. package/src/components/Toaster/Toaster.styles.ts +8 -7
  330. package/src/components/Toaster/Toaster.tsx +15 -9
  331. package/src/components/Toaster/index.ts +1 -1
  332. package/src/components/Toaster/types.ts +1 -1
  333. package/src/components/Tooltip/Tooltip.styles.ts +20 -16
  334. package/src/components/Tooltip/Tooltip.tsx +10 -6
  335. package/src/components/Tooltip/index.ts +1 -1
  336. package/src/helpers/index.ts +0 -1
  337. package/src/helpers/misc.ts +1 -1
  338. package/src/helpers/phone.ts +4 -1
  339. package/src/hooks/index.ts +0 -1
  340. package/src/hooks/use-tweak-styles.ts +56 -12
  341. package/src/index.ts +1 -1
  342. package/src/theme/Provider.tsx +21 -0
  343. package/src/{theme.ts → theme/common.ts} +6 -6
  344. package/src/theme/helpers.ts +74 -0
  345. package/src/theme/index.ts +4 -0
  346. package/src/theme/types.ts +137 -0
  347. package/src/types.ts +4 -82
  348. package/dist/components/FlexibleTable/components/TableRow/TableRow.d.ts +0 -28
  349. package/dist/components/FlexibleTable/components/TableRow/index.d.ts +0 -1
  350. package/dist/components/FlexibleTable/components/TableValue/TableValue.d.ts +0 -21
  351. package/dist/components/FlexibleTable/components/TableValue/index.d.ts +0 -1
  352. package/dist/components/IncrementInput/components/ChangeButton/ChangeButton.d.ts +0 -10
  353. package/dist/components/IncrementInput/components/ChangeButton/index.d.ts +0 -1
  354. package/dist/components/IncrementInput/components/index.d.ts +0 -1
  355. package/dist/helpers/deprecated.d.ts +0 -12
  356. package/dist/hooks/use-theme.d.ts +0 -9
  357. package/src/components/FlexibleTable/components/TableRow/index.ts +0 -1
  358. package/src/components/FlexibleTable/components/TableValue/index.ts +0 -1
  359. package/src/components/IncrementInput/components/ChangeButton/ChangeButton.tsx +0 -33
  360. package/src/components/IncrementInput/components/ChangeButton/index.ts +0 -1
  361. package/src/components/IncrementInput/components/index.ts +0 -1
  362. package/src/helpers/deprecated.ts +0 -23
  363. package/src/hooks/use-theme.ts +0 -32
@@ -1,83 +1,7 @@
1
- import { ComponentStyles } from '../../../../types';
2
- export declare const styles: {
3
- root: {
4
- borderRadius: 6;
5
- backgroundColor: "#ffffff";
6
- border: (string | number)[];
7
- boxShadow: string;
8
- overflow: string;
9
- };
10
- searchContainer: {
11
- width: string;
12
- height: 48;
13
- display: string;
14
- alignItems: string;
15
- boxSizing: string;
16
- padding: number[];
17
- borderBottom: (string | number)[];
18
- };
19
- icon: {
20
- width: number;
21
- height: number;
22
- };
23
- searchIcon: {
24
- extend: string;
25
- color: "#7a869a";
26
- flexShrink: number;
27
- };
28
- flagList: {
29
- maxHeight: number;
30
- padding: number[];
31
- } | {
32
- maxHeight: number;
33
- padding: number[];
34
- };
35
- listItem: {
36
- height: number;
37
- padding: number[];
38
- display: string;
39
- alignItems: string;
40
- cursor: string;
41
- fontSize: number;
42
- lineHeight: string;
43
- letterSpacing: number;
44
- whiteSpace: string;
45
- boxSizing: string;
46
- };
47
- selectedCountry: {
48
- backgroundColor: "#f6f8fc";
49
- };
50
- activeCountry: {
51
- backgroundColor: "#eceff5";
52
- };
53
- flag: {
54
- width: number;
55
- height: number;
56
- flexShrink: number;
57
- };
58
- countryName: {
59
- color: "#222a37";
60
- overflowX: string;
61
- textOverflow: string;
62
- margin: number[];
63
- };
64
- dialCode: {
65
- color: "#95a0b3";
66
- };
67
- emptyResult: {
68
- color: "#7a869a";
69
- padding: number[];
70
- };
71
- tweakInput: {
72
- inputWrapper: {
73
- border: string;
74
- height: string;
75
- };
76
- input: {
77
- fontSize: number;
78
- lineHeight: string;
79
- letterSpacing: number;
80
- };
81
- };
82
- };
83
- export declare type PhoneInputCountryListStyles = ComponentStyles<typeof styles>;
1
+ import { ITweakStyles } from '../../../../theme';
2
+ import { IInputStyles } from '../../../Input';
3
+ export declare const useStyles: import("../../../../theme").IUseStyles<"dialCode" | "root" | "icon" | "flag" | "searchContainer" | "searchIcon" | "flagList" | "listItem" | "selectedCountry" | "activeCountry" | "countryName" | "emptyResult", unknown>;
4
+ export declare const inputStyles: IInputStyles;
5
+ export declare type IPhoneInputCountryListStyles = ITweakStyles<typeof useStyles, {
6
+ tweakInput: IInputStyles;
7
+ }>;
@@ -1,2 +1,2 @@
1
1
  export * from './PhoneInputCountryList';
2
- export type { PhoneInputCountryListStyles } from './PhoneInputCountryList.styles';
2
+ export type { IPhoneInputCountryListStyles } from './PhoneInputCountryList.styles';
@@ -1,5 +1,5 @@
1
1
  export * from './PhoneInput';
2
2
  export { phoneInfo } from './phone-info';
3
3
  export * from './types';
4
- export type { PhoneInputStyles } from './PhoneInput.styles';
5
- export type { PhoneInputCountryListStyles } from './components';
4
+ export type { IPhoneInputStyles } from './PhoneInput.styles';
5
+ export type { IPhoneInputCountryListStyles } from './components';
@@ -1,8 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
- import { RadioButtonStyles } from './RadioButton.styles';
4
- export interface IRadioButtonProps<Value extends string> extends ICommonProps {
5
- tweakStyles?: RadioButtonStyles;
3
+ import { IRadioButtonStyles } from './RadioButton.styles';
4
+ export interface IRadioButtonProps<Value extends string> extends ICommonProps<IRadioButtonStyles> {
6
5
  children?: ReactNode;
7
6
  value: Value;
8
7
  groupName: string;
@@ -11,4 +10,4 @@ export interface IRadioButtonProps<Value extends string> extends ICommonProps {
11
10
  isInvalid?: boolean;
12
11
  onChange(value: Value): void | Promise<void>;
13
12
  }
14
- export declare function RadioButton<Value extends string>({ children, value, groupName, isChecked, isDisabled, isInvalid, data, tweakStyles, onChange, }: IRadioButtonProps<Value>): JSX.Element;
13
+ export declare function RadioButton<Value extends string>({ children, value, groupName, isChecked, isDisabled, isInvalid, data, testId, tweakStyles, onChange, }: IRadioButtonProps<Value>): JSX.Element;
@@ -1,30 +1,3 @@
1
- import { ComponentStyles } from '../../types';
2
- export declare const styles: {
3
- input: {
4
- appearance: string;
5
- cursor: string;
6
- borderRadius: string;
7
- width: number;
8
- height: number;
9
- outline: string;
10
- transition: string;
11
- margin: number;
12
- border: (string | number)[];
13
- '&:checked': {
14
- border: (string | number)[];
15
- };
16
- };
17
- label: {
18
- display: string;
19
- alignItems: string;
20
- cursor: string;
21
- };
22
- content: {
23
- marginLeft: number;
24
- };
25
- isDisabled: {
26
- cursor: string;
27
- };
28
- isInvalid: {};
29
- };
30
- export declare type RadioButtonStyles = ComponentStyles<typeof styles>;
1
+ import { ITweakStyles } from '../../theme';
2
+ export declare const useStyles: import("../../theme").IUseStyles<"content" | "input" | "label" | "isDisabled" | "isInvalid", unknown>;
3
+ export declare type IRadioButtonStyles = ITweakStyles<typeof useStyles>;
@@ -1,2 +1,2 @@
1
1
  export * from './RadioButton';
2
- export type { RadioButtonStyles } from './RadioButton.styles';
2
+ export type { IRadioButtonStyles } from './RadioButton.styles';
@@ -160,11 +160,11 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
160
160
  results?: number | undefined;
161
161
  security?: string | undefined;
162
162
  unselectable?: "on" | "off" | undefined;
163
- inputMode?: "search" | "none" | "email" | "text" | "tel" | "url" | "numeric" | "decimal" | undefined;
163
+ inputMode?: "none" | "email" | "search" | "text" | "tel" | "url" | "numeric" | "decimal" | undefined;
164
164
  is?: string | undefined;
165
165
  'aria-activedescendant'?: string | undefined;
166
166
  'aria-atomic'?: (boolean | "false" | "true") | undefined;
167
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
167
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
168
168
  'aria-busy'?: (boolean | "false" | "true") | undefined;
169
169
  'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
170
170
  'aria-colcount'?: number | undefined;
@@ -175,12 +175,12 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
175
175
  'aria-describedby'?: string | undefined;
176
176
  'aria-details'?: string | undefined;
177
177
  'aria-disabled'?: (boolean | "false" | "true") | undefined;
178
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
178
+ 'aria-dropeffect'?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
179
179
  'aria-errormessage'?: string | undefined;
180
180
  'aria-expanded'?: (boolean | "false" | "true") | undefined;
181
181
  'aria-flowto'?: string | undefined;
182
182
  'aria-grabbed'?: (boolean | "false" | "true") | undefined;
183
- 'aria-haspopup'?: boolean | "grid" | "menu" | "dialog" | "listbox" | "false" | "true" | "tree" | undefined;
183
+ 'aria-haspopup'?: boolean | "menu" | "grid" | "listbox" | "false" | "true" | "dialog" | "tree" | undefined;
184
184
  'aria-hidden'?: (boolean | "false" | "true") | undefined;
185
185
  'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
186
186
  'aria-keyshortcuts'?: string | undefined;
@@ -1,7 +1,6 @@
1
1
  import { FC } from 'react';
2
+ import { ICommonProps } from '../../types';
2
3
  import { IInputProps } from '../Input';
3
- import { SearchInputStyles } from './SearchInput.styles';
4
- export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> & {
5
- tweakStyles?: SearchInputStyles;
6
- };
4
+ import { ISearchInputStyles } from './SearchInput.styles';
5
+ export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> & ICommonProps<ISearchInputStyles>;
7
6
  export declare const SearchInput: FC<ISearchInputProps>;
@@ -1,39 +1,7 @@
1
- import { ComponentStyles } from '../../types';
2
- export declare const styles: {
3
- root: {
4
- position: string;
5
- };
6
- icon: {
7
- display: string;
8
- alignItems: string;
9
- position: string;
10
- left: number;
11
- height: string;
12
- width: number;
13
- zIndex: number;
14
- color: "#95a0b3";
15
- };
16
- tweakInput: {
17
- inputWrapper: {
18
- height: number;
19
- borderColor: string;
20
- backgroundColor: string;
21
- borderRadius: number;
22
- paddingLeft: number;
23
- transitionProperty: string;
24
- };
25
- focused: {
26
- backgroundColor: "#ffffff";
27
- borderColor: "#d0d6e1";
28
- };
29
- input: {
30
- fontSize: number;
31
- paddingLeft: number;
32
- };
33
- label: {
34
- left: number;
35
- fontSize: number;
36
- };
37
- };
38
- };
39
- export declare type SearchInputStyles = ComponentStyles<typeof styles>;
1
+ import { ITweakStyles } from '../../theme';
2
+ import { IInputStyles } from '../Input';
3
+ export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon", unknown>;
4
+ export declare const inputStyles: IInputStyles;
5
+ export declare type ISearchInputStyles = ITweakStyles<typeof useStyles, {
6
+ tweakInput: IInputStyles;
7
+ }>;
@@ -1,2 +1,2 @@
1
1
  export * from './SearchInput';
2
- export type { SearchInputStyles } from './SearchInput.styles';
2
+ export type { ISearchInputStyles } from './SearchInput.styles';
@@ -1,11 +1,10 @@
1
1
  import { ReactNode, SyntheticEvent } from 'react';
2
- import { IDropdownWithPopperOptions, IIcon } from '../../types';
2
+ import { ICommonProps, IDropdownWithPopperOptions, IIcon } from '../../types';
3
3
  import { IInputProps } from '../Input';
4
4
  import { ISearchInputProps } from '../SearchInput';
5
5
  import { IMultipleSelectValue } from './types';
6
- import { SelectStyles } from './Select.styles';
7
- export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type'> {
8
- tweakStyles?: SelectStyles;
6
+ import { ISelectStyles } from './Select.styles';
7
+ export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type' | 'tweakStyles'>, ICommonProps<ISelectStyles> {
9
8
  defaultOptionLabel?: string;
10
9
  allOptionsLabel?: string;
11
10
  noMatchesLabel?: string;
@@ -1,80 +1,33 @@
1
- import { ComponentStyles } from '../../types';
2
- export declare const styles: {
3
- root: {
4
- width: string;
5
- position: string;
6
- boxSizing: string;
7
- };
8
- inputWrapper: {
9
- width: string;
10
- cursor: string;
11
- position: string;
12
- };
13
- listWrapper: {
14
- left: number;
15
- zIndex: number;
16
- width: string;
17
- minWidth: string;
18
- };
19
- withoutPopper: {
20
- position: string;
21
- top: string;
22
- };
23
- listWrapperInBody: {
24
- minWidth: string;
25
- width: string;
26
- maxWidth: string;
27
- };
28
- arrow: {
29
- position: string;
30
- right: number;
31
- top: number;
32
- width: number;
33
- height: number;
34
- cursor: string;
35
- zIndex: number;
36
- transition: string;
37
- };
38
- activeArrow: {
39
- transform: string;
40
- };
41
- disabled: {
42
- '& $arrow': {
43
- cursor: string;
44
- };
45
- };
46
- counter: {
47
- '&:not(:last-child)': {
48
- paddingRight: number;
49
- };
50
- };
51
- icon: {
52
- width: number;
53
- height: number;
54
- };
55
- tweakInput: {
56
- input: {
57
- paddingRight: number;
58
- };
59
- disabled: {
60
- '& $input': {
61
- cursor: string;
62
- };
63
- };
64
- controls: {
65
- paddingRight: number;
66
- };
67
- };
68
- tweakSelectList: {};
69
- tweakSearchInput: {
70
- tweakInput: {
71
- inputWrapper: {
72
- height: number;
73
- borderRadius: number;
74
- border: string;
75
- backgroundColor: string;
76
- };
77
- };
78
- };
79
- };
80
- export declare type SelectStyles = ComponentStyles<typeof styles>;
1
+ import { ITweakStyles } from '../../theme';
2
+ import { IInputStyles } from '../Input';
3
+ import { ISearchInputStyles } from '../SearchInput';
4
+ import { ISelectListStyles } from './components';
5
+ export declare const useStyles: import("../../theme").IUseStyles<"arrow" | "root" | "icon" | "disabled" | "inputWrapper" | "listWrapper" | "withoutPopper" | "listWrapperInBody" | "activeArrow" | "counter", unknown>;
6
+ export declare const readonlyInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
7
+ tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
8
+ tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
9
+ tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
10
+ }>;
11
+ }>;
12
+ export declare const multiSelectInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
13
+ tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
14
+ tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
15
+ tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
16
+ }>;
17
+ }>;
18
+ export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
19
+ tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
20
+ tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
21
+ tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
22
+ }>;
23
+ }>;
24
+ export declare const getInputStyles: ({ hasReadonlyInput, isMultiSelect, }: {
25
+ hasReadonlyInput: boolean;
26
+ isMultiSelect: boolean;
27
+ }) => IInputStyles;
28
+ export declare const searchInputStyles: ISearchInputStyles;
29
+ export declare type ISelectStyles = ITweakStyles<typeof useStyles, {
30
+ tweakInput: IInputStyles;
31
+ tweakSelectList: ISelectListStyles;
32
+ tweakSearchInput: ISearchInputStyles;
33
+ }>;
@@ -1,8 +1,7 @@
1
1
  import { ReactNode, MouseEvent } from 'react';
2
2
  import { ICommonProps } from '../../../../types';
3
- import { SelectListStyles } from './SelectList.styles';
4
- export interface ISelectListProps<Value> extends ICommonProps {
5
- tweakStyles?: SelectListStyles;
3
+ import { ISelectListStyles } from './SelectList.styles';
4
+ export interface ISelectListProps<Value> extends ICommonProps<ISelectListStyles> {
6
5
  options: Value[];
7
6
  focusedIndex?: number;
8
7
  activeValue?: Value | Value[];
@@ -10,7 +9,6 @@ export interface ISelectListProps<Value> extends ICommonProps {
10
9
  isLoading?: boolean;
11
10
  loadingLabel?: ReactNode;
12
11
  defaultOptionLabel?: string;
13
- testId?: string;
14
12
  allOptionsLabel?: string;
15
13
  areAllOptionsSelected?: boolean;
16
14
  shouldScrollToList?: boolean;
@@ -1,60 +1,6 @@
1
- import { ComponentStyles } from '../../../../types';
1
+ import { ITweakStyles } from '../../../../theme';
2
2
  export declare const ROW_HEIGHT = 40;
3
3
  export declare const CONTAINER_PADDING = 10;
4
4
  export declare const CELL_PADDING: number[];
5
- export declare const styles: {
6
- root: {
7
- borderRadius: 6;
8
- boxShadow: string;
9
- boxSizing: string;
10
- padding: number[];
11
- fontSize: number;
12
- overflow: string;
13
- };
14
- withListHeader: {
15
- paddingTop: number;
16
- };
17
- listHeader: {
18
- '& + $list': {
19
- borderTop: (string | number)[];
20
- };
21
- };
22
- list: {
23
- height: string;
24
- maxHeight: number;
25
- cursor: string;
26
- backgroundColor: "#ffffff";
27
- } | {
28
- height: string;
29
- maxHeight: number;
30
- cursor: string;
31
- backgroundColor: "#ffffff";
32
- };
33
- cell: {
34
- display: string;
35
- cursor: string;
36
- minHeight: number;
37
- width: string;
38
- padding: number[];
39
- alignItems: string;
40
- boxSizing: string;
41
- fontSize: number;
42
- };
43
- cellWithCheckbox: {
44
- padding: number;
45
- };
46
- noMatchesLabel: {
47
- pointerEvents: string;
48
- };
49
- focused: {};
50
- active: {};
51
- disabled: {
52
- cursor: string;
53
- };
54
- loading: {
55
- cursor: string;
56
- pointerEvents: string;
57
- };
58
- defaultCell: {};
59
- };
60
- export declare type SelectListStyles = ComponentStyles<typeof styles>;
5
+ export declare const useStyles: import("../../../../theme").IUseStyles<"list" | "root" | "cell" | "active" | "disabled" | "loading" | "focused" | "withListHeader" | "listHeader" | "cellWithCheckbox" | "noMatchesLabel" | "defaultCell", unknown>;
6
+ export declare type ISelectListStyles = ITweakStyles<typeof useStyles>;
@@ -1,2 +1,2 @@
1
1
  export * from './SelectList';
2
- export type { SelectListStyles } from './SelectList.styles';
2
+ export type { ISelectListStyles } from './SelectList.styles';
@@ -1,2 +1,2 @@
1
- import { CheckboxStyles } from '../../../Checkbox';
2
- export declare const checkboxStyles: CheckboxStyles;
1
+ import { ICheckboxStyles } from '../../../Checkbox';
2
+ export declare const checkboxStyles: ICheckboxStyles;
@@ -1,4 +1,4 @@
1
1
  export * from './Select';
2
2
  export * from './types';
3
- export type { SelectStyles } from './Select.styles';
4
- export type { SelectListStyles } from './components';
3
+ export type { ISelectStyles } from './Select.styles';
4
+ export type { ISelectListStyles } from './components';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { IInputProps } from '../Input';
3
- import { TSmartType } from './types';
3
+ import { ISmartType } from './types';
4
4
  export interface ISmartInputProps extends IInputProps {
5
5
  isUpperCase?: boolean;
6
- smartType?: TSmartType;
6
+ smartType?: ISmartType;
7
7
  regExp?: RegExp;
8
8
  onChange: (value: string) => void;
9
9
  }
@@ -1,4 +1,4 @@
1
- import { TSmartType } from './types';
2
- export declare const transformCaseSensitive: (smartType: TSmartType, map: {
1
+ import { ISmartType } from './types';
2
+ export declare const transformCaseSensitive: (smartType: ISmartType, map: {
3
3
  [key: string]: string;
4
4
  }, symbol: string) => string;
@@ -1 +1 @@
1
- export declare type TSmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
1
+ export declare type ISmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
@@ -1,9 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
3
  import { ISwitchState } from './types';
4
- import { SwitchStyles } from './Switch.styles';
5
- export interface ISwitchProps<V extends string> extends ICommonProps {
6
- tweakStyles?: SwitchStyles;
4
+ import { ISwitchStyles } from './Switch.styles';
5
+ export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyles> {
7
6
  children?: ReactNode;
8
7
  value: V;
9
8
  isChecked: boolean;
@@ -17,7 +16,6 @@ export interface ISwitchProps<V extends string> extends ICommonProps {
17
16
  * @default `primary`
18
17
  */
19
18
  color?: 'primary' | 'secondary';
20
- testId?: string;
21
19
  onChange(state: ISwitchState<V>): void;
22
20
  }
23
21
  export declare const Switch: <V extends string>({ isDisabled, isChecked, isInvalid, value, children, labelPosition, color, data, tweakStyles, testId, onChange, }: ISwitchProps<V>) => JSX.Element;
@@ -1,62 +1,3 @@
1
- import { ComponentStyles } from '../../types';
2
- export declare const styles: {
3
- root: {
4
- display: string;
5
- alignItems: string;
6
- cursor: string;
7
- };
8
- primary: {};
9
- secondary: {};
10
- invalid: {};
11
- disabled: {
12
- pointerEvents: string;
13
- cursor: string;
14
- };
15
- checked: {
16
- '& $switch::before': {
17
- left: number;
18
- };
19
- };
20
- switch: {
21
- position: string;
22
- flexShrink: number;
23
- display: string;
24
- width: number;
25
- height: number;
26
- backgroundColor: string;
27
- borderRadius: number;
28
- boxSizing: string;
29
- transitionProperty: string;
30
- transition: string;
31
- '&::before': {
32
- content: string;
33
- position: string;
34
- top: number;
35
- left: number;
36
- right: string;
37
- display: string;
38
- width: number;
39
- height: number;
40
- backgroundColor: string;
41
- borderRadius: string;
42
- zIndex: number;
43
- transitionProperty: string;
44
- transition: string;
45
- };
46
- };
47
- input: {
48
- display: string;
49
- };
50
- label: {
51
- transitionProperty: string;
52
- transition: string;
53
- };
54
- labelLeft: {
55
- order: number;
56
- marginRight: number;
57
- };
58
- labelRight: {
59
- marginLeft: number;
60
- };
61
- };
62
- export declare type SwitchStyles = ComponentStyles<typeof styles>;
1
+ import { ITweakStyles } from '../../theme';
2
+ export declare const useStyles: import("../../theme").IUseStyles<"root" | "disabled" | "input" | "label" | "switch" | "invalid" | "primary" | "secondary" | "checked" | "labelLeft" | "labelRight", unknown>;
3
+ export declare type ISwitchStyles = ITweakStyles<typeof useStyles>;
@@ -1,3 +1,3 @@
1
1
  export * from './Switch';
2
2
  export * from './types';
3
- export type { SwitchStyles } from './Switch.styles';
3
+ export type { ISwitchStyles } from './Switch.styles';
@@ -1,8 +1,7 @@
1
1
  import { FC, FormEvent, FocusEvent, ClipboardEvent } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
- import { TextAreaStyles } from './TextArea.styles';
4
- export interface ITextAreaProps extends ICommonProps {
5
- tweakStyles?: TextAreaStyles;
3
+ import { ITextAreaStyles } from './TextArea.styles';
4
+ export interface ITextAreaProps extends ICommonProps<ITextAreaStyles> {
6
5
  value?: string;
7
6
  label?: string;
8
7
  placeholder?: string;
@@ -20,7 +19,6 @@ export interface ITextAreaProps extends ICommonProps {
20
19
  shouldTrimAfterMaxLength?: boolean;
21
20
  maxLength?: number;
22
21
  rows?: number;
23
- testId?: string;
24
22
  onChange(value: string, event?: FormEvent<HTMLTextAreaElement>): void;
25
23
  onFocus?(event: FocusEvent<HTMLTextAreaElement>): void;
26
24
  onBlur?(event: FocusEvent<HTMLTextAreaElement>): void;