@true-engineering/true-react-common-ui-kit 1.0.1

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 (428) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +13 -0
  3. package/dist/components/AccountInfo/AccountInfo.d.ts +11 -0
  4. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +64 -0
  5. package/dist/components/AccountInfo/index.d.ts +2 -0
  6. package/dist/components/AddButton/AddButton.d.ts +12 -0
  7. package/dist/components/AddButton/AddButton.styles.d.ts +28 -0
  8. package/dist/components/AddButton/index.d.ts +2 -0
  9. package/dist/components/Button/Button.d.ts +28 -0
  10. package/dist/components/Button/Button.styles.d.ts +150 -0
  11. package/dist/components/Button/index.d.ts +2 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +21 -0
  13. package/dist/components/Checkbox/Checkbox.styles.d.ts +47 -0
  14. package/dist/components/Checkbox/index.d.ts +2 -0
  15. package/dist/components/CloseButton/CloseButton.d.ts +10 -0
  16. package/dist/components/CloseButton/CloseButton.styles.d.ts +27 -0
  17. package/dist/components/CloseButton/index.d.ts +2 -0
  18. package/dist/components/Colors/Colors.d.ts +2 -0
  19. package/dist/components/Colors/Colors.styles.d.ts +32 -0
  20. package/dist/components/Colors/index.d.ts +2 -0
  21. package/dist/components/CssBaseline/CssBaseline.d.ts +7 -0
  22. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +11 -0
  23. package/dist/components/CssBaseline/index.d.ts +2 -0
  24. package/dist/components/DateInput/DateInput.d.ts +14 -0
  25. package/dist/components/DateInput/DateInput.styles.d.ts +11 -0
  26. package/dist/components/DateInput/index.d.ts +2 -0
  27. package/dist/components/DatePicker/DatePicker.d.ts +34 -0
  28. package/dist/components/DatePicker/DatePicker.styles.d.ts +46 -0
  29. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +14 -0
  30. package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +69 -0
  31. package/dist/components/DatePicker/DatePickerHeader/index.d.ts +1 -0
  32. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +11 -0
  33. package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +20 -0
  34. package/dist/components/DatePicker/DatePickerInput/index.d.ts +1 -0
  35. package/dist/components/DatePicker/index.d.ts +4 -0
  36. package/dist/components/Description/Description.d.ts +12 -0
  37. package/dist/components/Description/Description.styles.d.ts +24 -0
  38. package/dist/components/Description/index.d.ts +2 -0
  39. package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +26 -0
  40. package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +52 -0
  41. package/dist/components/FiltersPane/FilterInterval/index.d.ts +1 -0
  42. package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +5 -0
  43. package/dist/components/FiltersPane/FilterMultiSelect/index.d.ts +1 -0
  44. package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +25 -0
  45. package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +124 -0
  46. package/dist/components/FiltersPane/FilterSelect/index.d.ts +1 -0
  47. package/dist/components/FiltersPane/FilterSelect/locales.d.ts +11 -0
  48. package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +3 -0
  49. package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +12 -0
  50. package/dist/components/FiltersPane/FilterValueView/index.d.ts +1 -0
  51. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +23 -0
  52. package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +47 -0
  53. package/dist/components/FiltersPane/FilterWithDates/index.d.ts +1 -0
  54. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +16 -0
  55. package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +12 -0
  56. package/dist/components/FiltersPane/FilterWithPeriod/index.d.ts +1 -0
  57. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +27 -0
  58. package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +96 -0
  59. package/dist/components/FiltersPane/FilterWrapper/index.d.ts +1 -0
  60. package/dist/components/FiltersPane/FiltersPane.d.ts +22 -0
  61. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +57 -0
  62. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +26 -0
  63. package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +91 -0
  64. package/dist/components/FiltersPane/FiltersPaneSearch/index.d.ts +1 -0
  65. package/dist/components/FiltersPane/index.d.ts +16 -0
  66. package/dist/components/FiltersPane/locales.d.ts +28 -0
  67. package/dist/components/FiltersPane/types.d.ts +77 -0
  68. package/dist/components/Flag/Flag.d.ts +8 -0
  69. package/dist/components/Flag/Flag.styles.d.ts +12 -0
  70. package/dist/components/Flag/augment.d.ts +1 -0
  71. package/dist/components/Flag/index.d.ts +2 -0
  72. package/dist/components/FlexibleTable/FlexibleTable.d.ts +25 -0
  73. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +101 -0
  74. package/dist/components/FlexibleTable/TableRow.d.ts +28 -0
  75. package/dist/components/FlexibleTable/TableValue.d.ts +21 -0
  76. package/dist/components/FlexibleTable/index.d.ts +3 -0
  77. package/dist/components/FlexibleTable/types.d.ts +44 -0
  78. package/dist/components/Icon/ComplexIconBoilerplate.d.ts +7 -0
  79. package/dist/components/Icon/Icon.d.ts +11 -0
  80. package/dist/components/Icon/Icon.styles.d.ts +8 -0
  81. package/dist/components/Icon/IconBoilerplate.d.ts +6 -0
  82. package/dist/components/Icon/complexIcons/augment.d.ts +1 -0
  83. package/dist/components/Icon/complexIcons/icons.d.ts +4 -0
  84. package/dist/components/Icon/complexIcons/index.d.ts +1 -0
  85. package/dist/components/Icon/icons/icons.d.ts +9 -0
  86. package/dist/components/Icon/icons/index.d.ts +1 -0
  87. package/dist/components/Icon/index.d.ts +4 -0
  88. package/dist/components/IncrementInput/ChangeButton.d.ts +11 -0
  89. package/dist/components/IncrementInput/IncrementInput.d.ts +8 -0
  90. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +63 -0
  91. package/dist/components/IncrementInput/index.d.ts +2 -0
  92. package/dist/components/Input/Input.d.ts +45 -0
  93. package/dist/components/Input/Input.styles.d.ts +247 -0
  94. package/dist/components/Input/index.d.ts +2 -0
  95. package/dist/components/List/List.d.ts +21 -0
  96. package/dist/components/List/List.styles.d.ts +39 -0
  97. package/dist/components/List/index.d.ts +2 -0
  98. package/dist/components/Modal/Modal.d.ts +26 -0
  99. package/dist/components/Modal/Modal.styles.d.ts +239 -0
  100. package/dist/components/Modal/index.d.ts +2 -0
  101. package/dist/components/MoreMenu/MoreMenu.d.ts +14 -0
  102. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +53 -0
  103. package/dist/components/MoreMenu/index.d.ts +2 -0
  104. package/dist/components/MultiSelect/MultiSelect.d.ts +19 -0
  105. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +44 -0
  106. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +11 -0
  107. package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +62 -0
  108. package/dist/components/MultiSelect/MultiSelectInput/index.d.ts +1 -0
  109. package/dist/components/MultiSelect/index.d.ts +3 -0
  110. package/dist/components/MultiSelectList/MultiSelectList.d.ts +28 -0
  111. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +105 -0
  112. package/dist/components/MultiSelectList/index.d.ts +2 -0
  113. package/dist/components/MultiSelectList/locales.d.ts +11 -0
  114. package/dist/components/Notification/Notification.d.ts +16 -0
  115. package/dist/components/Notification/Notification.styles.d.ts +37 -0
  116. package/dist/components/Notification/index.d.ts +2 -0
  117. package/dist/components/NumberInput/NumberInput.d.ts +13 -0
  118. package/dist/components/NumberInput/helpers.d.ts +2 -0
  119. package/dist/components/NumberInput/index.d.ts +1 -0
  120. package/dist/components/PhoneInput/PhoneInput.d.ts +13 -0
  121. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +66 -0
  122. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +15 -0
  123. package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +83 -0
  124. package/dist/components/PhoneInput/PhoneInputCountryList/index.d.ts +2 -0
  125. package/dist/components/PhoneInput/index.d.ts +5 -0
  126. package/dist/components/PhoneInput/phone-info.d.ts +2 -0
  127. package/dist/components/PhoneInput/types.d.ts +15 -0
  128. package/dist/components/RadioButton/RadioButton.d.ts +13 -0
  129. package/dist/components/RadioButton/RadioButton.styles.d.ts +30 -0
  130. package/dist/components/RadioButton/index.d.ts +2 -0
  131. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +382 -0
  132. package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -0
  133. package/dist/components/SearchInput/SearchInput.d.ts +7 -0
  134. package/dist/components/SearchInput/SearchInput.styles.d.ts +39 -0
  135. package/dist/components/SearchInput/index.d.ts +2 -0
  136. package/dist/components/Select/Select.d.ts +27 -0
  137. package/dist/components/Select/Select.styles.d.ts +61 -0
  138. package/dist/components/Select/SelectList/SelectList.d.ts +21 -0
  139. package/dist/components/Select/SelectList/SelectList.styles.d.ts +46 -0
  140. package/dist/components/Select/SelectList/index.d.ts +1 -0
  141. package/dist/components/Select/helpers.d.ts +3 -0
  142. package/dist/components/Select/index.d.ts +3 -0
  143. package/dist/components/SmartInput/SmartInput.d.ts +22 -0
  144. package/dist/components/SmartInput/helpers.d.ts +10 -0
  145. package/dist/components/SmartInput/index.d.ts +1 -0
  146. package/dist/components/Switch/Switch.d.ts +20 -0
  147. package/dist/components/Switch/Switch.styles.d.ts +62 -0
  148. package/dist/components/Switch/index.d.ts +2 -0
  149. package/dist/components/TextArea/TextArea.d.ts +29 -0
  150. package/dist/components/TextArea/TextArea.styles.d.ts +128 -0
  151. package/dist/components/TextArea/index.d.ts +2 -0
  152. package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -0
  153. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +48 -0
  154. package/dist/components/TextWithInfo/index.d.ts +2 -0
  155. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +20 -0
  156. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +14 -0
  157. package/dist/components/TextWithTooltip/index.d.ts +2 -0
  158. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +12 -0
  159. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +14 -0
  160. package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -0
  161. package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -0
  162. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +7 -0
  163. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +43 -0
  164. package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -0
  165. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +9 -0
  166. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +9 -0
  167. package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -0
  168. package/dist/components/ThemedPreloader/components/index.d.ts +2 -0
  169. package/dist/components/ThemedPreloader/index.d.ts +2 -0
  170. package/dist/components/Toaster/Toaster.d.ts +17 -0
  171. package/dist/components/Toaster/Toaster.styles.d.ts +45 -0
  172. package/dist/components/Toaster/index.d.ts +2 -0
  173. package/dist/components/Tooltip/Tooltip.d.ts +10 -0
  174. package/dist/components/Tooltip/Tooltip.styles.d.ts +35 -0
  175. package/dist/components/Tooltip/index.d.ts +3 -0
  176. package/dist/components/Tooltip/types.d.ts +1 -0
  177. package/dist/components/index.d.ts +36 -0
  178. package/dist/helpers/colors.d.ts +2 -0
  179. package/dist/helpers/data-attributes.d.ts +5 -0
  180. package/dist/helpers/index.d.ts +5 -0
  181. package/dist/helpers/phone.d.ts +11 -0
  182. package/dist/helpers/popper-helpers.d.ts +2 -0
  183. package/dist/helpers/utils.d.ts +17 -0
  184. package/dist/hooks/index.d.ts +6 -0
  185. package/dist/hooks/use-did-mount-effect.d.ts +2 -0
  186. package/dist/hooks/use-dropdown.d.ts +11 -0
  187. package/dist/hooks/use-is-mounted.d.ts +1 -0
  188. package/dist/hooks/use-on-click-outside.d.ts +5 -0
  189. package/dist/hooks/use-theme.d.ts +9 -0
  190. package/dist/hooks/use-tweak-styles.d.ts +2 -0
  191. package/dist/index.d.ts +5 -0
  192. package/dist/style.css +745 -0
  193. package/dist/theme.d.ts +67 -0
  194. package/dist/true-react-common-ui-kit.js +26961 -0
  195. package/dist/true-react-common-ui-kit.js.map +1 -0
  196. package/dist/true-react-common-ui-kit.umd.cjs +26951 -0
  197. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -0
  198. package/dist/types.d.ts +35 -0
  199. package/dist/vite-env.d.ts +1 -0
  200. package/package.json +90 -0
  201. package/src/components/AccountInfo/AccountInfo.stories.tsx +35 -0
  202. package/src/components/AccountInfo/AccountInfo.styles.ts +55 -0
  203. package/src/components/AccountInfo/AccountInfo.tsx +106 -0
  204. package/src/components/AccountInfo/index.ts +2 -0
  205. package/src/components/AddButton/AddButton.stories.tsx +21 -0
  206. package/src/components/AddButton/AddButton.styles.ts +34 -0
  207. package/src/components/AddButton/AddButton.tsx +49 -0
  208. package/src/components/AddButton/index.ts +2 -0
  209. package/src/components/Button/Button.stories.tsx +61 -0
  210. package/src/components/Button/Button.styles.ts +196 -0
  211. package/src/components/Button/Button.tsx +195 -0
  212. package/src/components/Button/index.ts +2 -0
  213. package/src/components/Checkbox/Checkbox.stories.tsx +35 -0
  214. package/src/components/Checkbox/Checkbox.styles.ts +59 -0
  215. package/src/components/Checkbox/Checkbox.tsx +93 -0
  216. package/src/components/Checkbox/index.ts +2 -0
  217. package/src/components/CloseButton/CloseButton.styles.ts +34 -0
  218. package/src/components/CloseButton/CloseButton.tsx +37 -0
  219. package/src/components/CloseButton/index.ts +2 -0
  220. package/src/components/Colors/Colors.stories.tsx +7 -0
  221. package/src/components/Colors/Colors.styles.ts +38 -0
  222. package/src/components/Colors/Colors.tsx +34 -0
  223. package/src/components/Colors/index.ts +2 -0
  224. package/src/components/CssBaseline/CssBaseline.styles.ts +15 -0
  225. package/src/components/CssBaseline/CssBaseline.tsx +17 -0
  226. package/src/components/CssBaseline/index.ts +2 -0
  227. package/src/components/DateInput/DateInput.stories.tsx +63 -0
  228. package/src/components/DateInput/DateInput.styles.ts +14 -0
  229. package/src/components/DateInput/DateInput.tsx +60 -0
  230. package/src/components/DateInput/index.ts +2 -0
  231. package/src/components/DatePicker/DatePicker.stories.tsx +96 -0
  232. package/src/components/DatePicker/DatePicker.styles.ts +54 -0
  233. package/src/components/DatePicker/DatePicker.tsx +358 -0
  234. package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.ts +84 -0
  235. package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx +94 -0
  236. package/src/components/DatePicker/DatePickerHeader/index.ts +1 -0
  237. package/src/components/DatePicker/DatePickerInput/DatePickerInput.styles.ts +25 -0
  238. package/src/components/DatePicker/DatePickerInput/DatePickerInput.tsx +31 -0
  239. package/src/components/DatePicker/DatePickerInput/index.ts +1 -0
  240. package/src/components/DatePicker/index.ts +4 -0
  241. package/src/components/Description/Description.stories.tsx +29 -0
  242. package/src/components/Description/Description.styles.ts +31 -0
  243. package/src/components/Description/Description.tsx +69 -0
  244. package/src/components/Description/index.ts +2 -0
  245. package/src/components/FiltersPane/FilterInterval/FilterInterval.styles.ts +64 -0
  246. package/src/components/FiltersPane/FilterInterval/FilterInterval.tsx +162 -0
  247. package/src/components/FiltersPane/FilterInterval/index.ts +1 -0
  248. package/src/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.tsx +14 -0
  249. package/src/components/FiltersPane/FilterMultiSelect/index.ts +1 -0
  250. package/src/components/FiltersPane/FilterSelect/FilterSelect.styles.ts +144 -0
  251. package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +397 -0
  252. package/src/components/FiltersPane/FilterSelect/index.ts +1 -0
  253. package/src/components/FiltersPane/FilterSelect/locales.ts +37 -0
  254. package/src/components/FiltersPane/FilterValueView/FilterValueView.styles.tsx +15 -0
  255. package/src/components/FiltersPane/FilterValueView/FilterValueView.tsx +186 -0
  256. package/src/components/FiltersPane/FilterValueView/index.tsx +1 -0
  257. package/src/components/FiltersPane/FilterWithDates/FilterWithDates.styles.ts +60 -0
  258. package/src/components/FiltersPane/FilterWithDates/FilterWithDates.tsx +222 -0
  259. package/src/components/FiltersPane/FilterWithDates/index.ts +1 -0
  260. package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.ts +17 -0
  261. package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.tsx +231 -0
  262. package/src/components/FiltersPane/FilterWithPeriod/index.ts +1 -0
  263. package/src/components/FiltersPane/FilterWrapper/FilterWrapper.styles.ts +110 -0
  264. package/src/components/FiltersPane/FilterWrapper/FilterWrapper.tsx +360 -0
  265. package/src/components/FiltersPane/FilterWrapper/index.ts +1 -0
  266. package/src/components/FiltersPane/FiltersPane.stories.tsx +307 -0
  267. package/src/components/FiltersPane/FiltersPane.styles.ts +71 -0
  268. package/src/components/FiltersPane/FiltersPane.tsx +193 -0
  269. package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.ts +109 -0
  270. package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.tsx +175 -0
  271. package/src/components/FiltersPane/FiltersPaneSearch/index.ts +1 -0
  272. package/src/components/FiltersPane/index.ts +20 -0
  273. package/src/components/FiltersPane/locales.ts +107 -0
  274. package/src/components/FiltersPane/types.ts +126 -0
  275. package/src/components/Flag/Flag.stories.tsx +29 -0
  276. package/src/components/Flag/Flag.styles.ts +18 -0
  277. package/src/components/Flag/Flag.tsx +28 -0
  278. package/src/components/Flag/augment.d.ts +1 -0
  279. package/src/components/Flag/index.ts +2 -0
  280. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +80 -0
  281. package/src/components/FlexibleTable/FlexibleTable.styles.ts +131 -0
  282. package/src/components/FlexibleTable/FlexibleTable.tsx +241 -0
  283. package/src/components/FlexibleTable/TableRow.tsx +164 -0
  284. package/src/components/FlexibleTable/TableValue.tsx +86 -0
  285. package/src/components/FlexibleTable/fixture-test.ts +254 -0
  286. package/src/components/FlexibleTable/index.ts +3 -0
  287. package/src/components/FlexibleTable/types.ts +58 -0
  288. package/src/components/Icon/ComplexIconBoilerplate.tsx +17 -0
  289. package/src/components/Icon/Icon.stories.tsx +88 -0
  290. package/src/components/Icon/Icon.styles.ts +10 -0
  291. package/src/components/Icon/Icon.tsx +34 -0
  292. package/src/components/Icon/IconBoilerplate.tsx +42 -0
  293. package/src/components/Icon/complexIcons/augment.d.ts +1 -0
  294. package/src/components/Icon/complexIcons/avatarGreen.svg +58 -0
  295. package/src/components/Icon/complexIcons/icons.ts +7 -0
  296. package/src/components/Icon/complexIcons/index.ts +1 -0
  297. package/src/components/Icon/icons/icons.ts +838 -0
  298. package/src/components/Icon/icons/index.ts +1 -0
  299. package/src/components/Icon/index.ts +4 -0
  300. package/src/components/IncrementInput/ChangeButton.tsx +34 -0
  301. package/src/components/IncrementInput/IncrementInput.stories.tsx +34 -0
  302. package/src/components/IncrementInput/IncrementInput.styles.ts +77 -0
  303. package/src/components/IncrementInput/IncrementInput.tsx +95 -0
  304. package/src/components/IncrementInput/index.ts +2 -0
  305. package/src/components/Input/Input.stories.tsx +92 -0
  306. package/src/components/Input/Input.styles.ts +305 -0
  307. package/src/components/Input/Input.tsx +308 -0
  308. package/src/components/Input/index.ts +2 -0
  309. package/src/components/List/List.stories.tsx +62 -0
  310. package/src/components/List/List.styles.ts +52 -0
  311. package/src/components/List/List.tsx +75 -0
  312. package/src/components/List/index.ts +2 -0
  313. package/src/components/Modal/Modal.stories.tsx +113 -0
  314. package/src/components/Modal/Modal.styles.ts +308 -0
  315. package/src/components/Modal/Modal.tsx +210 -0
  316. package/src/components/Modal/index.ts +2 -0
  317. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -0
  318. package/src/components/MoreMenu/MoreMenu.styles.ts +68 -0
  319. package/src/components/MoreMenu/MoreMenu.tsx +91 -0
  320. package/src/components/MoreMenu/index.ts +2 -0
  321. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -0
  322. package/src/components/MultiSelect/MultiSelect.styles.ts +55 -0
  323. package/src/components/MultiSelect/MultiSelect.tsx +98 -0
  324. package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.ts +73 -0
  325. package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.tsx +62 -0
  326. package/src/components/MultiSelect/MultiSelectInput/index.ts +1 -0
  327. package/src/components/MultiSelect/index.ts +3 -0
  328. package/src/components/MultiSelectList/MultiSelectList.styles.ts +125 -0
  329. package/src/components/MultiSelectList/MultiSelectList.tsx +519 -0
  330. package/src/components/MultiSelectList/index.ts +2 -0
  331. package/src/components/MultiSelectList/locales.ts +37 -0
  332. package/src/components/Notification/Notification.stories.tsx +51 -0
  333. package/src/components/Notification/Notification.styles.ts +50 -0
  334. package/src/components/Notification/Notification.tsx +84 -0
  335. package/src/components/Notification/index.ts +2 -0
  336. package/src/components/NumberInput/NumberInput.stories.tsx +35 -0
  337. package/src/components/NumberInput/NumberInput.tsx +142 -0
  338. package/src/components/NumberInput/helpers.ts +68 -0
  339. package/src/components/NumberInput/index.ts +1 -0
  340. package/src/components/PhoneInput/PhoneInput.stories.tsx +71 -0
  341. package/src/components/PhoneInput/PhoneInput.styles.ts +84 -0
  342. package/src/components/PhoneInput/PhoneInput.tsx +223 -0
  343. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -0
  344. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.ts +100 -0
  345. package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.tsx +171 -0
  346. package/src/components/PhoneInput/PhoneInputCountryList/index.ts +2 -0
  347. package/src/components/PhoneInput/index.ts +6 -0
  348. package/src/components/PhoneInput/phone-info.ts +2167 -0
  349. package/src/components/PhoneInput/types.ts +16 -0
  350. package/src/components/RadioButton/RadioButton.stories.tsx +46 -0
  351. package/src/components/RadioButton/RadioButton.styles.ts +37 -0
  352. package/src/components/RadioButton/RadioButton.tsx +56 -0
  353. package/src/components/RadioButton/index.ts +2 -0
  354. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +66 -0
  355. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -0
  356. package/src/components/SearchInput/SearchInput.stories.tsx +24 -0
  357. package/src/components/SearchInput/SearchInput.styles.ts +50 -0
  358. package/src/components/SearchInput/SearchInput.tsx +63 -0
  359. package/src/components/SearchInput/index.ts +2 -0
  360. package/src/components/Select/Select.stories.tsx +230 -0
  361. package/src/components/Select/Select.styles.ts +74 -0
  362. package/src/components/Select/Select.tsx +440 -0
  363. package/src/components/Select/SelectList/SelectList.styles.ts +57 -0
  364. package/src/components/Select/SelectList/SelectList.tsx +135 -0
  365. package/src/components/Select/SelectList/index.ts +1 -0
  366. package/src/components/Select/helpers.ts +13 -0
  367. package/src/components/Select/index.ts +3 -0
  368. package/src/components/SmartInput/SmartInput.stories.tsx +63 -0
  369. package/src/components/SmartInput/SmartInput.tsx +177 -0
  370. package/src/components/SmartInput/helpers.ts +85 -0
  371. package/src/components/SmartInput/index.ts +1 -0
  372. package/src/components/Switch/Switch.stories.tsx +40 -0
  373. package/src/components/Switch/Switch.styles.ts +75 -0
  374. package/src/components/Switch/Switch.tsx +89 -0
  375. package/src/components/Switch/index.ts +2 -0
  376. package/src/components/TextArea/TextArea.stories.tsx +35 -0
  377. package/src/components/TextArea/TextArea.styles.ts +153 -0
  378. package/src/components/TextArea/TextArea.tsx +178 -0
  379. package/src/components/TextArea/index.ts +2 -0
  380. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -0
  381. package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -0
  382. package/src/components/TextWithInfo/TextWithInfo.tsx +67 -0
  383. package/src/components/TextWithInfo/index.ts +2 -0
  384. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -0
  385. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -0
  386. package/src/components/TextWithTooltip/TextWithTooltip.tsx +163 -0
  387. package/src/components/TextWithTooltip/index.ts +2 -0
  388. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -0
  389. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -0
  390. package/src/components/ThemedPreloader/ThemedPreloader.tsx +56 -0
  391. package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +34 -0
  392. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -0
  393. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -0
  394. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +18 -0
  395. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -0
  396. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -0
  397. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +32 -0
  398. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -0
  399. package/src/components/ThemedPreloader/components/index.ts +2 -0
  400. package/src/components/ThemedPreloader/index.ts +2 -0
  401. package/src/components/Toaster/Toaster.stories.tsx +34 -0
  402. package/src/components/Toaster/Toaster.styles.ts +59 -0
  403. package/src/components/Toaster/Toaster.tsx +113 -0
  404. package/src/components/Toaster/index.ts +2 -0
  405. package/src/components/Tooltip/Tooltip.stories.tsx +21 -0
  406. package/src/components/Tooltip/Tooltip.styles.ts +45 -0
  407. package/src/components/Tooltip/Tooltip.tsx +40 -0
  408. package/src/components/Tooltip/index.ts +3 -0
  409. package/src/components/Tooltip/types.ts +1 -0
  410. package/src/components/index.ts +36 -0
  411. package/src/helpers/colors.ts +2 -0
  412. package/src/helpers/data-attributes.ts +18 -0
  413. package/src/helpers/dateHelpers/date-helpers.ts +9 -0
  414. package/src/helpers/index.ts +5 -0
  415. package/src/helpers/phone.ts +106 -0
  416. package/src/helpers/popper-helpers.ts +17 -0
  417. package/src/helpers/utils.ts +164 -0
  418. package/src/hooks/index.ts +6 -0
  419. package/src/hooks/use-did-mount-effect.ts +21 -0
  420. package/src/hooks/use-dropdown.ts +85 -0
  421. package/src/hooks/use-is-mounted.ts +15 -0
  422. package/src/hooks/use-on-click-outside.ts +92 -0
  423. package/src/hooks/use-theme.ts +36 -0
  424. package/src/hooks/use-tweak-styles.ts +14 -0
  425. package/src/index.ts +5 -0
  426. package/src/theme.ts +155 -0
  427. package/src/types.ts +106 -0
  428. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1 @@
1
+ export * from './FilterWithDates';
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { ICommonProps } from '../../../types';
3
+ import { IPeriod, IPeriodsList } from '../types';
4
+ import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
5
+ import { FilterWithPeriodStyles } from './FilterWithPeriod.styles';
6
+ export interface IFilterWithPeriodProps extends ICommonProps {
7
+ tweakStyles?: FilterWithPeriodStyles;
8
+ value?: IPeriod;
9
+ onChange: (period?: IPeriod) => void;
10
+ onClose?: () => void;
11
+ localeKey?: IFilterLocaleKey;
12
+ locale?: IPartialFilterLocale;
13
+ periods?: IPeriodsList;
14
+ testId?: string;
15
+ }
16
+ export declare const FilterWithPeriod: FC<IFilterWithPeriodProps>;
@@ -0,0 +1,12 @@
1
+ import { ComponentStyles } from '../../../types';
2
+ export declare const styles: {
3
+ root: {};
4
+ main: {};
5
+ picker: {};
6
+ tweakSelect: {
7
+ options: {
8
+ maxHeight: string;
9
+ };
10
+ };
11
+ };
12
+ export declare type FilterWithPeriodStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1 @@
1
+ export * from './FilterWithPeriod';
@@ -0,0 +1,27 @@
1
+ import { RefObject } from 'react';
2
+ import { Classes } from 'jss';
3
+ import { ConfigItem } from '../types';
4
+ import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
5
+ import { FilterWrapperStyles } from './FilterWrapper.styles';
6
+ export interface IFilterWrapperProps<Values, Key extends keyof Values> {
7
+ tweakStyles?: FilterWrapperStyles;
8
+ filter: ConfigItem<Values[Key]>;
9
+ value?: Values[Key];
10
+ onChange: <V>(value: V) => void;
11
+ isDisabled?: boolean;
12
+ localeKey?: IFilterLocaleKey;
13
+ locale?: IPartialFilterLocale;
14
+ testId?: string;
15
+ filtersPaneRef: RefObject<HTMLDivElement> | null;
16
+ }
17
+ interface IFilterOtherProps<Values, Key extends keyof Values> extends IFilterWrapperProps<Values, Key> {
18
+ parentRef?: RefObject<HTMLElement>;
19
+ isInline?: boolean;
20
+ onChange: <V>(v: V) => void;
21
+ onClose?: () => void;
22
+ filtersPaneRef: RefObject<HTMLDivElement> | null;
23
+ classes: Classes<'left' | 'right' | 'dropdown'>;
24
+ }
25
+ export declare function FilterWrapper<Values, Key extends keyof Values>({ filter, value, isDisabled, onChange, locale, localeKey, testId, filtersPaneRef, tweakStyles, }: IFilterWrapperProps<Values, Key>): JSX.Element;
26
+ export declare function Filter<Values, Key extends keyof Values>({ filter, value, parentRef, isInline, onChange, onClose, localeKey, locale, filtersPaneRef, testId, classes, }: IFilterOtherProps<Values, Key>): JSX.Element | null;
27
+ export {};
@@ -0,0 +1,96 @@
1
+ import { ComponentStyles } from '../../../types';
2
+ export declare const styles: {
3
+ root: {
4
+ position: string;
5
+ transition: string;
6
+ transitionProperty: string;
7
+ border: (string | number)[];
8
+ borderRadius: number;
9
+ boxSizing: string;
10
+ height: number;
11
+ minWidth: number;
12
+ };
13
+ item: {
14
+ display: string;
15
+ padding: number[];
16
+ cursor: string;
17
+ };
18
+ booleanItem: {
19
+ padding: number;
20
+ };
21
+ name: {
22
+ fontSize: number;
23
+ lineHeight: string;
24
+ whiteSpace: string;
25
+ };
26
+ boolean: {
27
+ padding: number[];
28
+ };
29
+ noValue: {};
30
+ openNoValue: {};
31
+ openWithValue: {};
32
+ disabled: {
33
+ '& > $item': {
34
+ cursor: string;
35
+ };
36
+ };
37
+ withValue: {};
38
+ iconContainer: {
39
+ width: number;
40
+ height: number;
41
+ transition: string;
42
+ alignSelf: string;
43
+ marginLeft: number;
44
+ marginRight: number;
45
+ flexShrink: number;
46
+ };
47
+ open: {
48
+ transform: string;
49
+ };
50
+ dropdown: {
51
+ position: string;
52
+ zIndex: number;
53
+ marginTop: number;
54
+ border: (string | number)[];
55
+ };
56
+ left: {
57
+ left: number;
58
+ };
59
+ right: {
60
+ right: number;
61
+ };
62
+ value: {
63
+ alignSelf: string;
64
+ fontSize: number;
65
+ lineHeight: string;
66
+ margin: number[];
67
+ fontWeight: string;
68
+ display: string;
69
+ minWidth: number;
70
+ };
71
+ animationEnd: {
72
+ opacity: number;
73
+ transform: string;
74
+ transition: string;
75
+ transitionProperty: string;
76
+ };
77
+ animationStart: {
78
+ opacity: number;
79
+ transform: string;
80
+ transition: string;
81
+ transitionProperty: string;
82
+ };
83
+ 'dropdown-enter': {
84
+ extend: string;
85
+ };
86
+ 'dropdown-enter-active': {
87
+ extend: string;
88
+ };
89
+ 'dropdown-exit-active': {
90
+ extend: string;
91
+ };
92
+ 'dropdown-exit': {
93
+ extend: string;
94
+ };
95
+ };
96
+ export declare type FilterWrapperStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1 @@
1
+ export * from './FilterWrapper';
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { ICommonProps } from '../../types';
3
+ import { ConfigType } from './types';
4
+ import { IFiltersPaneSearchProps } from './FiltersPaneSearch';
5
+ import { IFilterLocaleKey, IPartialFilterLocale } from './locales';
6
+ import { FiltersPaneStyles } from './FiltersPane.styles';
7
+ export interface IFiltersPaneProps<Values, Content = Values> extends ICommonProps {
8
+ tweakStyles?: FiltersPaneStyles;
9
+ filtersConfig: ConfigType<Values>;
10
+ enabledFilters?: Array<keyof ConfigType<Values>>;
11
+ values?: Partial<Values>;
12
+ search?: IFiltersPaneSearchProps<keyof Content>;
13
+ localeKey?: IFilterLocaleKey;
14
+ locale?: IPartialFilterLocale;
15
+ isDisabled?: boolean;
16
+ hasClearButton?: boolean;
17
+ onClear?: () => void;
18
+ onChangeFilters: (values: Partial<Values>) => void;
19
+ onSettingsButtonClick?: () => void;
20
+ testId?: string;
21
+ }
22
+ export declare function FiltersPane<Values extends Record<string, unknown>, Content = Values>({ data, tweakStyles, filtersConfig, enabledFilters, values, localeKey, locale, search, isDisabled, hasClearButton, onChangeFilters, onSettingsButtonClick, onClear, testId, }: IFiltersPaneProps<Values, Content>): JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { ComponentStyles } from '../../types';
2
+ export declare const FILTER_HEIGHT = 36;
3
+ export declare const styles: {
4
+ root: {
5
+ display: string;
6
+ flexWrap: string;
7
+ gap: number;
8
+ width: string;
9
+ };
10
+ settings: {
11
+ display: string;
12
+ alignItems: string;
13
+ justifyContent: string;
14
+ borderRadius: number;
15
+ boxSizing: string;
16
+ width: number;
17
+ height: number;
18
+ cursor: string;
19
+ transition: string;
20
+ };
21
+ settingsIcon: {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ clear: {
26
+ display: string;
27
+ alignItems: string;
28
+ height: number;
29
+ };
30
+ filterWithClearButton: {
31
+ display: string;
32
+ gap: number;
33
+ minWidth: number;
34
+ };
35
+ tweakClearButton: {
36
+ s: {
37
+ paddingLeft: number;
38
+ paddingRight: number;
39
+ minWidth: string;
40
+ };
41
+ text: {
42
+ background: string;
43
+ color: "#95a0b3";
44
+ '&:hover, &:focus': {
45
+ color: "#505f79";
46
+ };
47
+ '&:active': {
48
+ color: "#222a37";
49
+ };
50
+ '&:hover, &:focus, &:active': {
51
+ background: string;
52
+ borderColor: string;
53
+ };
54
+ };
55
+ };
56
+ };
57
+ export declare type FiltersPaneStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { IFilterSelectProps } from '../FilterSelect';
3
+ import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
4
+ import { IFiltersPaneSearchPayload } from '../types';
5
+ import { ICommonProps } from '../../../types';
6
+ import { FiltersPaneSearchStyles } from './FiltersPaneSearch.styles';
7
+ export interface IFiltersPaneSearchProps<Value> extends ICommonProps {
8
+ tweakStyles?: FiltersPaneSearchStyles;
9
+ field?: Value;
10
+ fields?: Value[];
11
+ value?: string;
12
+ onChange: (v: IFiltersPaneSearchPayload<Value>) => void;
13
+ localeKey?: IFilterLocaleKey;
14
+ locale?: IPartialFilterLocale;
15
+ testId?: string;
16
+ maxLength?: number;
17
+ getValueView?: (value: Value) => ReactNode;
18
+ getValueId?: (value: Value) => string;
19
+ getValueString?: (value: Value) => string;
20
+ selectWidth?: IFilterSelectProps<Value>['width'];
21
+ hasClearSelectButton?: boolean;
22
+ isDisabled?: boolean;
23
+ isSelectSearchEnabled?: boolean;
24
+ isAutoSizeable?: boolean;
25
+ }
26
+ export declare function FiltersPaneSearch<Value>({ value, fields, field, onChange, localeKey, locale, getValueId, getValueView, getValueString, selectWidth, hasClearSelectButton, isDisabled, isSelectSearchEnabled, isAutoSizeable, maxLength, data, tweakStyles, testId, }: IFiltersPaneSearchProps<Value>): JSX.Element;
@@ -0,0 +1,91 @@
1
+ import { ComponentStyles } from '../../../types';
2
+ export declare const styles: {
3
+ root: {
4
+ display: string;
5
+ position: string;
6
+ backgroundColor: string;
7
+ border: (string | number)[];
8
+ borderRadius: number;
9
+ paddingRight: number;
10
+ transition: string;
11
+ transitionProperty: string;
12
+ };
13
+ focused: {
14
+ backgroundColor: "#ffffff";
15
+ borderColor: "#d0d6e1";
16
+ };
17
+ disabled: {
18
+ '& $selectBlock': {
19
+ cursor: string;
20
+ };
21
+ };
22
+ selectWrapper: {
23
+ position: string;
24
+ display: string;
25
+ flexShrink: number;
26
+ };
27
+ selectBlock: {
28
+ display: string;
29
+ alignItems: string;
30
+ gap: number;
31
+ cursor: string;
32
+ height: string;
33
+ };
34
+ selectLabel: {
35
+ flexShrink: number;
36
+ fontSize: number;
37
+ userSelect: string;
38
+ };
39
+ chevronIcon: {
40
+ flexShrink: number;
41
+ width: number;
42
+ height: number;
43
+ marginRight: number;
44
+ transition: string;
45
+ opacity: number;
46
+ };
47
+ open: {
48
+ transform: string;
49
+ };
50
+ dropdown: {
51
+ position: string;
52
+ top: number;
53
+ right: number;
54
+ zIndex: number;
55
+ minWidth: number;
56
+ marginTop: number;
57
+ borderRadius: 6;
58
+ backgroundColor: "#ffffff";
59
+ overflow: string;
60
+ };
61
+ dropdownInput: {
62
+ borderBottom: (string | number)[];
63
+ };
64
+ active: {
65
+ fontWeight: string;
66
+ };
67
+ tweakSearchInput: {
68
+ tweakInput: {
69
+ inputWrapper: {
70
+ backgroundColor: string;
71
+ border: string;
72
+ height: number;
73
+ fontSize: number;
74
+ minWidth: number;
75
+ };
76
+ focused: {
77
+ backgroundColor: string;
78
+ border: string;
79
+ };
80
+ };
81
+ };
82
+ tweakSelect: {
83
+ root: {
84
+ borderRadius: number;
85
+ borderBottomLeftRadius: number;
86
+ borderBottomRightRadius: number;
87
+ boxShadow: string;
88
+ };
89
+ };
90
+ };
91
+ export declare type FiltersPaneSearchStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1 @@
1
+ export * from './FiltersPaneSearch';
@@ -0,0 +1,16 @@
1
+ export * from './FiltersPane';
2
+ export * from './types';
3
+ export * from './locales';
4
+ export * from './FilterInterval';
5
+ export * from './FilterMultiSelect';
6
+ export * from './FilterSelect';
7
+ export * from './FiltersPaneSearch';
8
+ export * from './FilterWithDates';
9
+ export * from './FilterWithPeriod';
10
+ export type { FiltersPaneStyles } from './FiltersPane.styles';
11
+ export type { FilterIntervalStyles } from './FilterInterval/FilterInterval.styles';
12
+ export type { FilterSelectStyles } from './FilterSelect/FilterSelect.styles';
13
+ export type { FiltersPaneSearchStyles } from './FiltersPaneSearch/FiltersPaneSearch.styles';
14
+ export type { FilterWithDatesStyles } from './FilterWithDates/FilterWithDates.styles';
15
+ export type { FilterWithPeriodStyles } from './FilterWithPeriod/FilterWithPeriod.styles';
16
+ export type { FilterWrapperStyles } from './FilterWrapper/FilterWrapper.styles';
@@ -0,0 +1,28 @@
1
+ export interface IFilterLocale {
2
+ clear: string;
3
+ all: string;
4
+ other: string;
5
+ chosen: string;
6
+ searchPlaceholder: string;
7
+ displayedFields: string;
8
+ nothingFound: string;
9
+ from: string;
10
+ to: string;
11
+ back: string;
12
+ months: string[];
13
+ periods: {
14
+ [key: string]: string;
15
+ THIS_MONTH: string;
16
+ LAST_MONTH: string;
17
+ THIS_YEAR: string;
18
+ LAST_YEAR: string;
19
+ CUSTOM: string;
20
+ };
21
+ }
22
+ export declare type IPartialFilterLocale = Partial<Omit<IFilterLocale, 'periods'>> & {
23
+ periods?: Partial<IFilterLocale['periods']>;
24
+ };
25
+ export declare const FilterLocales: Record<string, IFilterLocale>;
26
+ export declare type IFilterLocaleKey = keyof typeof FilterLocales;
27
+ export declare const DEFAULT_LOCALE: IFilterLocaleKey;
28
+ export declare const getLocale: (key?: IFilterLocaleKey, custom?: IPartialFilterLocale, custom2?: IPartialFilterLocale) => IFilterLocale;
@@ -0,0 +1,77 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { IFilterIntervalProps } from './FilterInterval';
3
+ import { IFilterMultiSelectProps } from './FilterMultiSelect';
4
+ import { IFilterSelectProps } from './FilterSelect';
5
+ import { IFilterWithDatesProps } from './FilterWithDates';
6
+ import { IFilterWithPeriodProps } from './FilterWithPeriod';
7
+ import { IFilterLocaleKey, IPartialFilterLocale } from './locales';
8
+ import { IMultiSelectListValues } from '../MultiSelectList';
9
+ export declare const PERIODS: readonly ["THIS_MONTH", "LAST_MONTH", "THIS_YEAR", "LAST_YEAR", "CUSTOM"];
10
+ export declare type IPeriodType = (typeof PERIODS)[number];
11
+ export declare type IFilterMultiSelectValues<Option = string> = IMultiSelectListValues<Option>;
12
+ export declare type IPeriodsList = Array<IPeriodType | [string, IPeriodGetter]>;
13
+ export interface IFiltersPaneSearchPayload<Value> {
14
+ value?: string;
15
+ field?: Value;
16
+ }
17
+ export interface IFilterValueViewProps<Value> {
18
+ value?: Value;
19
+ filter: ConfigItem<Value>;
20
+ }
21
+ export interface IDatePeriod {
22
+ from: Date | null;
23
+ to: Date | null;
24
+ }
25
+ export interface IPeriod extends IDatePeriod {
26
+ periodType: string;
27
+ label?: string;
28
+ }
29
+ export declare type IPeriodGetter = () => IDatePeriod;
30
+ export declare type IFilterWithDatesValue = IDatePeriod;
31
+ export declare type MultiSelectOptionType<Value> = Value | undefined extends IFilterMultiSelectValues<infer Option> | undefined ? Option : unknown;
32
+ export interface IConfigItemBasicBase<Value> {
33
+ name: string;
34
+ isInline?: boolean;
35
+ requiredFilledFilters?: string[];
36
+ localeKey?: IFilterLocaleKey;
37
+ locale?: IPartialFilterLocale;
38
+ getSelectedValueView?: (v: Value) => ReactNode;
39
+ }
40
+ export declare type IIntervalConfigItem<Value> = IConfigItemBasicBase<Value> & {
41
+ type: 'interval';
42
+ } & Omit<IFilterIntervalProps, 'value' | 'onChange' | 'labelName'>;
43
+ export interface IBooleanConfigItem<Value> extends IConfigItemBasicBase<Value> {
44
+ type: 'boolean';
45
+ }
46
+ export declare type IMultiSelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
47
+ type: 'multiSelect';
48
+ } & Omit<IFilterMultiSelectProps<Value, MultiSelectOptionType<Value>>, 'value' | 'onChange'>;
49
+ export declare type ISelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
50
+ type: 'select';
51
+ } & Omit<IFilterSelectProps<Value>, 'value' | 'onChange'>;
52
+ export declare type IDateRangeWithoutPeriodConfigItem<Value> = IConfigItemBasicBase<Value> & {
53
+ type: 'dateRangeWithoutPeriod';
54
+ dateFormat?: string;
55
+ } & Omit<IFilterWithDatesProps, 'value' | 'onChange' | 'onStartBtnSubmit' | 'onEndBtnSubmit'>;
56
+ export declare type IDateRangeConfigItem<Value> = IConfigItemBasicBase<Value> & {
57
+ type: 'dateRange';
58
+ dateFormat?: string;
59
+ } & Omit<IFilterWithPeriodProps, 'value' | 'onChange' | 'setIsOpen'>;
60
+ export declare type CustomComponent<Value> = FC<{
61
+ value?: Value;
62
+ onChange: (v?: Value) => void;
63
+ onClose?: () => void;
64
+ filter: ICustomConfigItem<Value>;
65
+ localeKey?: IFilterLocaleKey;
66
+ locale?: IPartialFilterLocale;
67
+ }>;
68
+ export interface ICustomConfigItem<Value> extends IConfigItemBasicBase<Value> {
69
+ [key: string]: any;
70
+ type: 'custom';
71
+ component: CustomComponent<Value>;
72
+ valueViewType?: 'range' | 'multiple';
73
+ }
74
+ export declare type ConfigItem<Value> = ISelectConfigItem<Value> | IMultiSelectConfigItem<Value> | ICustomConfigItem<Value> | IDateRangeWithoutPeriodConfigItem<Value> | IDateRangeConfigItem<Value> | IIntervalConfigItem<Value> | IBooleanConfigItem<Value>;
75
+ export declare type ConfigType<Values> = {
76
+ [K in keyof Values]: ConfigItem<Values[K]>;
77
+ };
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { FlagStyles } from './Flag.styles';
4
+ export interface IFlagProps extends ICommonProps {
5
+ tweakStyles?: FlagStyles;
6
+ countryCode?: string;
7
+ }
8
+ export declare const Flag: FC<IFlagProps>;
@@ -0,0 +1,12 @@
1
+ import { ComponentStyles } from '../../types';
2
+ export declare const styles: {
3
+ root: {
4
+ border: (string | number)[];
5
+ borderRadius: number;
6
+ };
7
+ noFlag: {
8
+ width: number;
9
+ color: "#505f79";
10
+ };
11
+ };
12
+ export declare type FlagStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1 @@
1
+ declare module 'country-flag-icons/react/3x2';
@@ -0,0 +1,2 @@
1
+ export * from './Flag';
2
+ export type { FlagStyles } from './Flag.styles';
@@ -0,0 +1,25 @@
1
+ import React, { RefObject } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { FlexibleTableConfigType, IInfinityScrollConfig } from './types';
4
+ import { FlexibleTableStyles } from './FlexibleTable.styles';
5
+ export interface IFlexibleTableProps<Values extends Record<string, any>> extends ICommonProps {
6
+ tweakStyles?: FlexibleTableStyles;
7
+ content: Values[];
8
+ headerContent?: Partial<Record<keyof Values, any>>;
9
+ enabledColumns?: Array<keyof Values>;
10
+ activeRows?: number[];
11
+ config?: FlexibleTableConfigType<Values>;
12
+ isHorizontallyScrollable?: boolean;
13
+ isFirstColumnSticky?: boolean;
14
+ infinityScrollConfig?: IInfinityScrollConfig;
15
+ uniqueField?: keyof Values;
16
+ onHeadClick?: (column: keyof Values) => void;
17
+ onRowClick?: (id: string) => void;
18
+ onRowHover?: (id?: string) => void;
19
+ rowAttributes?: Array<keyof Values>;
20
+ refForScroll?: RefObject<HTMLDivElement>;
21
+ nothingFoundContent?: React.ReactNode;
22
+ expandableRowComponent?: (item: Values, isOpen: boolean, close: () => void) => React.ReactNode;
23
+ testId?: string;
24
+ }
25
+ export declare function FlexibleTable<Values extends Record<string, any>>({ data, tweakStyles, content, headerContent, config, activeRows, enabledColumns, isHorizontallyScrollable, isFirstColumnSticky, infinityScrollConfig, uniqueField, onHeadClick, onRowHover, onRowClick, refForScroll, rowAttributes, nothingFoundContent, testId, expandableRowComponent, }: IFlexibleTableProps<Values>): JSX.Element;
@@ -0,0 +1,101 @@
1
+ import { ComponentStyles } from '../../types';
2
+ export declare const styles: {
3
+ root: {
4
+ position: string;
5
+ width: string;
6
+ borderCollapse: string;
7
+ borderSpacing: number;
8
+ };
9
+ row: {
10
+ position: string;
11
+ };
12
+ scroll: {
13
+ overflow: string;
14
+ maxHeight: string;
15
+ };
16
+ horizontallyScrolled: {
17
+ '& $cellSticky': {
18
+ boxShadow: string;
19
+ };
20
+ '& $headerSticky::before': {
21
+ boxShadow: string;
22
+ };
23
+ };
24
+ loader: {
25
+ position: string;
26
+ left: number;
27
+ maxWidth: string;
28
+ height: number;
29
+ display: string;
30
+ justifyContent: string;
31
+ alignItems: string;
32
+ };
33
+ headerRow: {
34
+ verticalAlign: string;
35
+ };
36
+ activeRow: {};
37
+ cell: {
38
+ position: string;
39
+ boxSizing: string;
40
+ padding: number[];
41
+ fontSize: number;
42
+ lineHeight: number;
43
+ zIndex: number;
44
+ verticalAlign: string;
45
+ };
46
+ cellSticky: {
47
+ zIndex: number;
48
+ paddingLeft: number;
49
+ paddingRight: number;
50
+ transition: string[];
51
+ };
52
+ cellSecond: {
53
+ paddingLeft: number;
54
+ };
55
+ header: {
56
+ position: string;
57
+ boxSizing: string;
58
+ top: number;
59
+ zIndex: number;
60
+ fontSize: number;
61
+ fontWeight: string;
62
+ padding: number[];
63
+ };
64
+ headerSticky: {
65
+ zIndex: number;
66
+ left: number;
67
+ paddingLeft: number;
68
+ paddingRight: number;
69
+ '&::before': {
70
+ content: string;
71
+ display: string;
72
+ width: string;
73
+ height: string;
74
+ position: string;
75
+ left: number;
76
+ top: number;
77
+ background: string;
78
+ pointerEvents: string;
79
+ zIndex: number;
80
+ transition: string[];
81
+ };
82
+ '&::after': {
83
+ content: string;
84
+ display: string;
85
+ width: number;
86
+ height: string;
87
+ position: string;
88
+ left: string;
89
+ top: number;
90
+ background: string;
91
+ zIndex: number;
92
+ };
93
+ };
94
+ headerSecond: {
95
+ paddingLeft: number;
96
+ };
97
+ editableRow: {
98
+ cursor: string;
99
+ };
100
+ };
101
+ export declare type FlexibleTableStyles = ComponentStyles<typeof styles>;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { FlexibleTableConfigType } from './types';
3
+ import { ICommonProps } from '../../types';
4
+ interface ITableRowProps<Values extends Record<string, any>> extends ICommonProps {
5
+ item: Values;
6
+ uniqueField?: keyof Values;
7
+ isFirstColumnSticky?: boolean;
8
+ isActive: boolean;
9
+ config?: FlexibleTableConfigType<Values>;
10
+ enabledColumns?: Array<keyof Values>;
11
+ rowAttributes?: Array<keyof Values>;
12
+ expandableRowComponent?: (item: Values, isOpen: boolean, close: () => void) => React.ReactNode;
13
+ onRowHover?: (id?: string) => void;
14
+ onRowClick?: (id: string) => void;
15
+ classes: {
16
+ root: string;
17
+ active: string;
18
+ editable: string;
19
+ cell: {
20
+ root: string;
21
+ sticky: string;
22
+ second: string;
23
+ };
24
+ };
25
+ }
26
+ declare function TableRow<Values extends Record<string, any>>({ item, uniqueField, isFirstColumnSticky, isActive, config, enabledColumns, onRowHover, onRowClick, rowAttributes, expandableRowComponent, classes, }: ITableRowProps<Values>): JSX.Element;
27
+ declare const _default: typeof TableRow;
28
+ export default _default;