@true-engineering/true-react-common-ui-kit 3.24.1 → 3.25.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 (680) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +15 -0
  3. package/dist/components/AccountInfo/AccountInfo.d.ts +11 -11
  4. package/dist/components/AccountInfo/AccountInfo.stories.d.ts +6 -6
  5. package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -6
  6. package/dist/components/AccountInfo/constants.d.ts +1 -1
  7. package/dist/components/AccountInfo/index.d.ts +2 -2
  8. package/dist/components/AddButton/AddButton.d.ts +14 -14
  9. package/dist/components/AddButton/AddButton.stories.d.ts +6 -6
  10. package/dist/components/AddButton/AddButton.styles.d.ts +3 -3
  11. package/dist/components/AddButton/index.d.ts +2 -2
  12. package/dist/components/Button/Button.d.ts +41 -41
  13. package/dist/components/Button/Button.stories.d.ts +6 -6
  14. package/dist/components/Button/Button.styles.d.ts +8 -8
  15. package/dist/components/Button/constants.d.ts +2 -2
  16. package/dist/components/Button/index.d.ts +3 -3
  17. package/dist/components/Button/types.d.ts +3 -3
  18. package/dist/components/Checkbox/Checkbox.d.ts +24 -24
  19. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  20. package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
  21. package/dist/components/Checkbox/index.d.ts +2 -2
  22. package/dist/components/CloseButton/CloseButton.d.ts +10 -10
  23. package/dist/components/CloseButton/CloseButton.stories.d.ts +5 -5
  24. package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -3
  25. package/dist/components/CloseButton/index.d.ts +2 -2
  26. package/dist/components/Colors/Colors.d.ts +2 -2
  27. package/dist/components/Colors/Colors.stories.d.ts +5 -5
  28. package/dist/components/Colors/Colors.styles.d.ts +1 -1
  29. package/dist/components/Colors/index.d.ts +1 -1
  30. package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
  31. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
  32. package/dist/components/CssBaseline/index.d.ts +2 -2
  33. package/dist/components/DateInput/DateInput.d.ts +17 -17
  34. package/dist/components/DateInput/DateInput.stories.d.ts +7 -7
  35. package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
  36. package/dist/components/DateInput/constants.d.ts +2 -2
  37. package/dist/components/DateInput/index.d.ts +3 -3
  38. package/dist/components/DatePicker/DatePicker.d.ts +26 -26
  39. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -7
  40. package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
  41. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
  42. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
  43. package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
  44. package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
  45. package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
  46. package/dist/components/DatePicker/components/index.d.ts +2 -2
  47. package/dist/components/DatePicker/constants.d.ts +3 -3
  48. package/dist/components/DatePicker/helpers.d.ts +3 -3
  49. package/dist/components/DatePicker/index.d.ts +4 -4
  50. package/dist/components/DatePicker/types.d.ts +4 -4
  51. package/dist/components/Description/Description.d.ts +13 -13
  52. package/dist/components/Description/Description.stories.d.ts +16 -16
  53. package/dist/components/Description/Description.styles.d.ts +3 -3
  54. package/dist/components/Description/constants.d.ts +1 -1
  55. package/dist/components/Description/index.d.ts +2 -2
  56. package/dist/components/FileInput/FileInput.d.ts +25 -25
  57. package/dist/components/FileInput/FileInput.stories.d.ts +7 -7
  58. package/dist/components/FileInput/FileInput.styles.d.ts +3 -3
  59. package/dist/components/FileInput/helpers.d.ts +2 -2
  60. package/dist/components/FileInput/index.d.ts +2 -2
  61. package/dist/components/FileItem/FileItem.d.ts +31 -31
  62. package/dist/components/FileItem/FileItem.stories.d.ts +8 -8
  63. package/dist/components/FileItem/FileItem.styles.d.ts +11 -11
  64. package/dist/components/FileItem/constants.d.ts +5 -5
  65. package/dist/components/FileItem/helpers.d.ts +4 -4
  66. package/dist/components/FileItem/index.d.ts +4 -4
  67. package/dist/components/FileItem/types.d.ts +8 -8
  68. package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
  69. package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -31
  70. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +11 -11
  71. package/dist/components/FiltersPane/components/Filter/Filter.d.ts +7 -7
  72. package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
  73. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
  74. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
  75. package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
  76. package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
  77. package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
  78. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +30 -30
  79. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
  80. package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
  81. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
  82. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
  83. package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
  84. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
  85. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
  86. package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
  87. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
  88. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  89. package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
  90. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +13 -13
  91. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +8 -8
  92. package/dist/components/FiltersPane/components/FilterWrapper/helpers.d.ts +1 -1
  93. package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
  94. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +21 -21
  95. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
  96. package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
  97. package/dist/components/FiltersPane/components/index.d.ts +9 -9
  98. package/dist/components/FiltersPane/constants.d.ts +9 -9
  99. package/dist/components/FiltersPane/helpers.d.ts +5 -5
  100. package/dist/components/FiltersPane/index.d.ts +4 -4
  101. package/dist/components/FiltersPane/types.d.ts +107 -107
  102. package/dist/components/Flag/Flag.d.ts +8 -8
  103. package/dist/components/Flag/Flag.stories.d.ts +12 -12
  104. package/dist/components/Flag/Flag.styles.d.ts +3 -3
  105. package/dist/components/Flag/index.d.ts +2 -2
  106. package/dist/components/FlexibleTable/FlexibleTable.d.ts +22 -22
  107. package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +15 -15
  108. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
  109. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
  110. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
  111. package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
  112. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +28 -28
  113. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
  114. package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
  115. package/dist/components/FlexibleTable/components/index.d.ts +2 -2
  116. package/dist/components/FlexibleTable/constants.d.ts +1 -1
  117. package/dist/components/FlexibleTable/helpers.d.ts +3 -3
  118. package/dist/components/FlexibleTable/index.d.ts +4 -4
  119. package/dist/components/FlexibleTable/types.d.ts +45 -45
  120. package/dist/components/Icon/Icon.d.ts +8 -8
  121. package/dist/components/Icon/Icon.stories.d.ts +6 -6
  122. package/dist/components/Icon/Icon.styles.d.ts +3 -3
  123. package/dist/components/Icon/complexIcons/icons.d.ts +10 -10
  124. package/dist/components/Icon/complexIcons/index.d.ts +1 -1
  125. package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
  126. package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
  127. package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
  128. package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
  129. package/dist/components/Icon/components/index.d.ts +2 -2
  130. package/dist/components/Icon/helpers.d.ts +6 -6
  131. package/dist/components/Icon/icons-list.d.ts +1 -1
  132. package/dist/components/Icon/index.d.ts +5 -5
  133. package/dist/components/Icon/snippet.d.ts +3 -3
  134. package/dist/components/Icon/types.d.ts +13 -13
  135. package/dist/components/IconButton/IconButton.d.ts +19 -19
  136. package/dist/components/IconButton/IconButton.stories.d.ts +6 -6
  137. package/dist/components/IconButton/IconButton.styles.d.ts +3 -3
  138. package/dist/components/IconButton/constants.d.ts +2 -2
  139. package/dist/components/IconButton/index.d.ts +3 -3
  140. package/dist/components/IconButton/types.d.ts +5 -5
  141. package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
  142. package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -6
  143. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
  144. package/dist/components/IncrementInput/index.d.ts +2 -2
  145. package/dist/components/Input/Input.d.ts +52 -52
  146. package/dist/components/Input/Input.stories.d.ts +34 -34
  147. package/dist/components/Input/Input.styles.d.ts +7 -7
  148. package/dist/components/Input/constants.d.ts +1 -1
  149. package/dist/components/Input/index.d.ts +3 -3
  150. package/dist/components/Input/types.d.ts +4 -4
  151. package/dist/components/List/List.d.ts +9 -9
  152. package/dist/components/List/List.stories.d.ts +5 -5
  153. package/dist/components/List/List.styles.d.ts +3 -3
  154. package/dist/components/List/components/ListItem/ListItem.d.ts +15 -15
  155. package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
  156. package/dist/components/List/components/ListItem/index.d.ts +2 -2
  157. package/dist/components/List/components/index.d.ts +1 -1
  158. package/dist/components/List/index.d.ts +3 -3
  159. package/dist/components/Modal/Modal.d.ts +34 -34
  160. package/dist/components/Modal/Modal.stories.d.ts +29 -29
  161. package/dist/components/Modal/Modal.styles.d.ts +7 -7
  162. package/dist/components/Modal/index.d.ts +3 -3
  163. package/dist/components/Modal/types.d.ts +3 -3
  164. package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
  165. package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -6
  166. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
  167. package/dist/components/MoreMenu/index.d.ts +2 -2
  168. package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
  169. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -13
  170. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
  171. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
  172. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
  173. package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
  174. package/dist/components/MultiSelect/components/index.d.ts +1 -1
  175. package/dist/components/MultiSelect/index.d.ts +4 -4
  176. package/dist/components/MultiSelect/types.d.ts +1 -1
  177. package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
  178. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
  179. package/dist/components/MultiSelectList/constants.d.ts +3 -3
  180. package/dist/components/MultiSelectList/helpers.d.ts +3 -3
  181. package/dist/components/MultiSelectList/index.d.ts +3 -3
  182. package/dist/components/MultiSelectList/types.d.ts +12 -12
  183. package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +13 -13
  184. package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -12
  185. package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
  186. package/dist/components/NewMoreMenu/index.d.ts +2 -2
  187. package/dist/components/Notification/Notification.d.ts +15 -15
  188. package/dist/components/Notification/Notification.stories.d.ts +8 -8
  189. package/dist/components/Notification/Notification.styles.d.ts +3 -3
  190. package/dist/components/Notification/index.d.ts +3 -3
  191. package/dist/components/Notification/types.d.ts +1 -1
  192. package/dist/components/NumberInput/NumberInput.d.ts +18 -18
  193. package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -7
  194. package/dist/components/NumberInput/helpers.d.ts +4 -4
  195. package/dist/components/NumberInput/index.d.ts +1 -1
  196. package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
  197. package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -28
  198. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
  199. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +13 -13
  200. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -5
  201. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
  202. package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
  203. package/dist/components/PhoneInput/components/index.d.ts +1 -1
  204. package/dist/components/PhoneInput/constants.d.ts +2 -2
  205. package/dist/components/PhoneInput/index.d.ts +4 -4
  206. package/dist/components/PhoneInput/types.d.ts +15 -15
  207. package/dist/components/RadioButton/RadioButton.d.ts +15 -15
  208. package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -7
  209. package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
  210. package/dist/components/RadioButton/index.d.ts +2 -2
  211. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -386
  212. package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
  213. package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
  214. package/dist/components/SearchInput/SearchInput.d.ts +6 -6
  215. package/dist/components/SearchInput/SearchInput.stories.d.ts +13 -13
  216. package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
  217. package/dist/components/SearchInput/index.d.ts +2 -2
  218. package/dist/components/Select/CustomSelect.stories.d.ts +11 -11
  219. package/dist/components/Select/MultiSelect.stories.d.ts +15 -15
  220. package/dist/components/Select/Select.d.ts +52 -47
  221. package/dist/components/Select/Select.stories.d.ts +15 -15
  222. package/dist/components/Select/Select.styles.d.ts +33 -33
  223. package/dist/components/Select/components/SelectList/SelectList.d.ts +23 -22
  224. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
  225. package/dist/components/Select/components/SelectList/index.d.ts +2 -2
  226. package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +15 -14
  227. package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
  228. package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
  229. package/dist/components/Select/components/index.d.ts +2 -2
  230. package/dist/components/Select/constants.d.ts +2 -2
  231. package/dist/components/Select/helpers.d.ts +4 -7
  232. package/dist/components/Select/index.d.ts +4 -4
  233. package/dist/components/Select/types.d.ts +1 -1
  234. package/dist/components/Selector/Selector.d.ts +22 -22
  235. package/dist/components/Selector/Selector.stories.d.ts +7 -7
  236. package/dist/components/Selector/Selector.styles.d.ts +9 -9
  237. package/dist/components/Selector/index.d.ts +2 -2
  238. package/dist/components/Selector/types.d.ts +10 -10
  239. package/dist/components/Skeleton/Skeleton.d.ts +7 -7
  240. package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -6
  241. package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
  242. package/dist/components/Skeleton/index.d.ts +2 -2
  243. package/dist/components/SmartInput/SmartInput.d.ts +12 -12
  244. package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -18
  245. package/dist/components/SmartInput/constants.d.ts +18 -18
  246. package/dist/components/SmartInput/helpers.d.ts +4 -4
  247. package/dist/components/SmartInput/index.d.ts +2 -2
  248. package/dist/components/SmartInput/types.d.ts +1 -1
  249. package/dist/components/Status/Status.d.ts +16 -16
  250. package/dist/components/Status/Status.stories.d.ts +6 -6
  251. package/dist/components/Status/Status.styles.d.ts +3 -3
  252. package/dist/components/Status/constants.d.ts +2 -2
  253. package/dist/components/Status/index.d.ts +2 -2
  254. package/dist/components/Status/types.d.ts +3 -3
  255. package/dist/components/Switch/Switch.d.ts +20 -20
  256. package/dist/components/Switch/Switch.stories.d.ts +16 -16
  257. package/dist/components/Switch/Switch.styles.d.ts +3 -3
  258. package/dist/components/Switch/index.d.ts +3 -3
  259. package/dist/components/Switch/types.d.ts +4 -4
  260. package/dist/components/TextArea/TextArea.d.ts +38 -38
  261. package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
  262. package/dist/components/TextArea/TextArea.styles.d.ts +3 -3
  263. package/dist/components/TextArea/index.d.ts +3 -3
  264. package/dist/components/TextArea/types.d.ts +2 -2
  265. package/dist/components/TextButton/TextButton.d.ts +31 -31
  266. package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
  267. package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
  268. package/dist/components/TextButton/constants.d.ts +2 -2
  269. package/dist/components/TextButton/index.d.ts +3 -3
  270. package/dist/components/TextButton/types.d.ts +5 -5
  271. package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
  272. package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -12
  273. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
  274. package/dist/components/TextWithInfo/index.d.ts +2 -2
  275. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +26 -26
  276. package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -24
  277. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
  278. package/dist/components/TextWithTooltip/index.d.ts +2 -2
  279. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
  280. package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -17
  281. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
  282. package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
  283. package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
  284. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
  285. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
  286. package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
  287. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
  288. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
  289. package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
  290. package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
  291. package/dist/components/ThemedPreloader/constants.d.ts +1 -1
  292. package/dist/components/ThemedPreloader/index.d.ts +4 -4
  293. package/dist/components/ThemedPreloader/types.d.ts +2 -2
  294. package/dist/components/Toaster/Toaster.d.ts +23 -23
  295. package/dist/components/Toaster/Toaster.stories.d.ts +5 -5
  296. package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
  297. package/dist/components/Toaster/constants.d.ts +1 -1
  298. package/dist/components/Toaster/index.d.ts +3 -3
  299. package/dist/components/Toaster/types.d.ts +1 -1
  300. package/dist/components/Tooltip/Tooltip.d.ts +11 -11
  301. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -5
  302. package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
  303. package/dist/components/Tooltip/index.d.ts +3 -3
  304. package/dist/components/Tooltip/types.d.ts +1 -1
  305. package/dist/components/WithPopup/WithPopup.d.ts +32 -32
  306. package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -16
  307. package/dist/components/WithPopup/WithPopup.styles.d.ts +3 -3
  308. package/dist/components/WithPopup/constants.d.ts +2 -2
  309. package/dist/components/WithPopup/index.d.ts +2 -2
  310. package/dist/components/WithPopup/types.d.ts +2 -2
  311. package/dist/components/index.d.ts +45 -45
  312. package/dist/constants/index.d.ts +2 -2
  313. package/dist/constants/mime-types.d.ts +76 -76
  314. package/dist/constants/phone-info.d.ts +2 -2
  315. package/dist/helpers/index.d.ts +3 -3
  316. package/dist/helpers/misc.d.ts +19 -19
  317. package/dist/helpers/phone.d.ts +14 -14
  318. package/dist/helpers/popper-helpers.d.ts +2 -2
  319. package/dist/hooks/index.d.ts +7 -7
  320. package/dist/hooks/use-did-mount-effect.d.ts +2 -2
  321. package/dist/hooks/use-dropdown.d.ts +11 -11
  322. package/dist/hooks/use-is-mounted.d.ts +1 -1
  323. package/dist/hooks/use-merged-refs.d.ts +2 -2
  324. package/dist/hooks/use-mixed-styles.d.ts +1 -1
  325. package/dist/hooks/use-on-click-outside.d.ts +5 -5
  326. package/dist/hooks/use-tweak-styles.d.ts +21 -21
  327. package/dist/index.d.ts +6 -6
  328. package/dist/theme/Provider.d.ts +11 -11
  329. package/dist/theme/common.d.ts +101 -101
  330. package/dist/theme/helpers.d.ts +10 -10
  331. package/dist/theme/index.d.ts +4 -4
  332. package/dist/theme/types.d.ts +82 -82
  333. package/dist/true-react-common-ui-kit.js +180 -147
  334. package/dist/true-react-common-ui-kit.js.map +1 -1
  335. package/dist/true-react-common-ui-kit.umd.cjs +179 -146
  336. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  337. package/dist/types.d.ts +19 -19
  338. package/package.json +98 -98
  339. package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
  340. package/src/components/AccountInfo/AccountInfo.styles.ts +52 -52
  341. package/src/components/AccountInfo/AccountInfo.tsx +80 -80
  342. package/src/components/AccountInfo/constants.ts +1 -1
  343. package/src/components/AccountInfo/index.ts +2 -2
  344. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  345. package/src/components/AddButton/AddButton.styles.ts +34 -34
  346. package/src/components/AddButton/AddButton.tsx +52 -52
  347. package/src/components/AddButton/index.ts +2 -2
  348. package/src/components/Button/Button.stories.tsx +54 -54
  349. package/src/components/Button/Button.styles.ts +200 -200
  350. package/src/components/Button/Button.tsx +129 -129
  351. package/src/components/Button/constants.ts +11 -11
  352. package/src/components/Button/index.ts +3 -3
  353. package/src/components/Button/types.ts +5 -5
  354. package/src/components/Checkbox/Checkbox.stories.tsx +54 -54
  355. package/src/components/Checkbox/Checkbox.styles.ts +49 -49
  356. package/src/components/Checkbox/Checkbox.tsx +84 -84
  357. package/src/components/Checkbox/index.ts +2 -2
  358. package/src/components/CloseButton/CloseButton.stories.tsx +11 -11
  359. package/src/components/CloseButton/CloseButton.styles.ts +34 -34
  360. package/src/components/CloseButton/CloseButton.tsx +35 -35
  361. package/src/components/CloseButton/index.ts +2 -2
  362. package/src/components/Colors/Colors.stories.tsx +7 -7
  363. package/src/components/Colors/Colors.styles.ts +36 -36
  364. package/src/components/Colors/Colors.tsx +26 -26
  365. package/src/components/Colors/index.ts +1 -1
  366. package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
  367. package/src/components/CssBaseline/CssBaseline.tsx +13 -13
  368. package/src/components/CssBaseline/index.ts +2 -2
  369. package/src/components/DateInput/DateInput.stories.tsx +61 -61
  370. package/src/components/DateInput/DateInput.styles.ts +18 -18
  371. package/src/components/DateInput/DateInput.tsx +90 -90
  372. package/src/components/DateInput/constants.ts +2 -2
  373. package/src/components/DateInput/index.ts +3 -3
  374. package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
  375. package/src/components/DatePicker/DatePicker.styles.ts +38 -38
  376. package/src/components/DatePicker/DatePicker.tsx +314 -314
  377. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +88 -88
  378. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +89 -89
  379. package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
  380. package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
  381. package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
  382. package/src/components/DatePicker/components/index.ts +2 -2
  383. package/src/components/DatePicker/constants.ts +6 -6
  384. package/src/components/DatePicker/helpers.ts +23 -23
  385. package/src/components/DatePicker/index.ts +4 -4
  386. package/src/components/DatePicker/types.ts +48 -48
  387. package/src/components/Description/Description.stories.tsx +27 -27
  388. package/src/components/Description/Description.styles.ts +30 -30
  389. package/src/components/Description/Description.tsx +61 -61
  390. package/src/components/Description/constants.ts +1 -1
  391. package/src/components/Description/index.ts +2 -2
  392. package/src/components/FileInput/FileInput.stories.tsx +75 -75
  393. package/src/components/FileInput/FileInput.styles.ts +80 -80
  394. package/src/components/FileInput/FileInput.tsx +147 -147
  395. package/src/components/FileInput/helpers.ts +6 -6
  396. package/src/components/FileInput/index.ts +2 -2
  397. package/src/components/FileItem/FileItem.stories.tsx +63 -63
  398. package/src/components/FileItem/FileItem.styles.ts +122 -122
  399. package/src/components/FileItem/FileItem.tsx +157 -157
  400. package/src/components/FileItem/constants.ts +29 -29
  401. package/src/components/FileItem/helpers.ts +27 -27
  402. package/src/components/FileItem/index.ts +4 -4
  403. package/src/components/FileItem/types.ts +11 -11
  404. package/src/components/FiltersPane/FiltersPane.stories.tsx +287 -287
  405. package/src/components/FiltersPane/FiltersPane.styles.ts +92 -92
  406. package/src/components/FiltersPane/FiltersPane.tsx +162 -162
  407. package/src/components/FiltersPane/components/Filter/Filter.tsx +114 -114
  408. package/src/components/FiltersPane/components/Filter/index.ts +1 -1
  409. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +61 -61
  410. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +154 -154
  411. package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
  412. package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
  413. package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
  414. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +141 -141
  415. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +361 -361
  416. package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
  417. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
  418. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
  419. package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
  420. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
  421. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -210
  422. package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
  423. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
  424. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
  425. package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
  426. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +95 -95
  427. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +130 -130
  428. package/src/components/FiltersPane/components/FilterWrapper/helpers.ts +14 -14
  429. package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
  430. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +123 -123
  431. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +165 -165
  432. package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
  433. package/src/components/FiltersPane/components/index.ts +9 -9
  434. package/src/components/FiltersPane/constants.ts +137 -137
  435. package/src/components/FiltersPane/helpers.ts +26 -26
  436. package/src/components/FiltersPane/index.ts +5 -5
  437. package/src/components/FiltersPane/types.ts +156 -156
  438. package/src/components/Flag/Flag.stories.tsx +29 -29
  439. package/src/components/Flag/Flag.styles.ts +17 -17
  440. package/src/components/Flag/Flag.tsx +26 -26
  441. package/src/components/Flag/augment.d.ts +1 -1
  442. package/src/components/Flag/index.ts +2 -2
  443. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +268 -268
  444. package/src/components/FlexibleTable/FlexibleTable.styles.ts +111 -111
  445. package/src/components/FlexibleTable/FlexibleTable.tsx +272 -272
  446. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +38 -38
  447. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +85 -85
  448. package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
  449. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
  450. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +179 -179
  451. package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
  452. package/src/components/FlexibleTable/components/index.ts +2 -2
  453. package/src/components/FlexibleTable/constants.ts +1 -1
  454. package/src/components/FlexibleTable/helpers.ts +13 -13
  455. package/src/components/FlexibleTable/index.ts +4 -4
  456. package/src/components/FlexibleTable/types.ts +53 -53
  457. package/src/components/Icon/Icon.stories.tsx +86 -86
  458. package/src/components/Icon/Icon.styles.ts +10 -10
  459. package/src/components/Icon/Icon.tsx +26 -26
  460. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  461. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  462. package/src/components/Icon/complexIcons/fileExcel.svg +10 -10
  463. package/src/components/Icon/complexIcons/fileImage.svg +12 -12
  464. package/src/components/Icon/complexIcons/fileOther.svg +9 -9
  465. package/src/components/Icon/complexIcons/filePdf.svg +10 -10
  466. package/src/components/Icon/complexIcons/fileWord.svg +10 -10
  467. package/src/components/Icon/complexIcons/fileXml.svg +12 -12
  468. package/src/components/Icon/complexIcons/fileZip.svg +15 -15
  469. package/src/components/Icon/complexIcons/icons.ts +19 -19
  470. package/src/components/Icon/complexIcons/index.ts +1 -1
  471. package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
  472. package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
  473. package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
  474. package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
  475. package/src/components/Icon/components/index.ts +2 -2
  476. package/src/components/Icon/helpers.tsx +9 -9
  477. package/src/components/Icon/icons-list.ts +856 -856
  478. package/src/components/Icon/index.ts +5 -5
  479. package/src/components/Icon/snippet.tsx +6 -6
  480. package/src/components/Icon/types.ts +18 -18
  481. package/src/components/IconButton/IconButton.stories.tsx +32 -32
  482. package/src/components/IconButton/IconButton.styles.ts +84 -84
  483. package/src/components/IconButton/IconButton.tsx +74 -74
  484. package/src/components/IconButton/constants.ts +3 -3
  485. package/src/components/IconButton/index.ts +3 -3
  486. package/src/components/IconButton/types.ts +11 -11
  487. package/src/components/IncrementInput/IncrementInput.stories.tsx +31 -31
  488. package/src/components/IncrementInput/IncrementInput.styles.ts +78 -78
  489. package/src/components/IncrementInput/IncrementInput.tsx +105 -105
  490. package/src/components/IncrementInput/index.ts +2 -2
  491. package/src/components/Input/Input.stories.tsx +86 -86
  492. package/src/components/Input/Input.styles.ts +308 -308
  493. package/src/components/Input/Input.tsx +297 -297
  494. package/src/components/Input/constants.ts +1 -1
  495. package/src/components/Input/index.ts +3 -3
  496. package/src/components/Input/types.ts +32 -32
  497. package/src/components/List/List.stories.tsx +70 -70
  498. package/src/components/List/List.styles.ts +52 -52
  499. package/src/components/List/List.tsx +33 -33
  500. package/src/components/List/components/ListItem/ListItem.styles.ts +48 -48
  501. package/src/components/List/components/ListItem/ListItem.tsx +57 -57
  502. package/src/components/List/components/ListItem/index.ts +2 -2
  503. package/src/components/List/components/index.ts +1 -1
  504. package/src/components/List/index.ts +3 -3
  505. package/src/components/Modal/Modal.stories.tsx +105 -105
  506. package/src/components/Modal/Modal.styles.ts +318 -318
  507. package/src/components/Modal/Modal.tsx +203 -203
  508. package/src/components/Modal/index.ts +3 -3
  509. package/src/components/Modal/types.ts +17 -17
  510. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  511. package/src/components/MoreMenu/MoreMenu.styles.ts +69 -69
  512. package/src/components/MoreMenu/MoreMenu.tsx +93 -93
  513. package/src/components/MoreMenu/index.ts +2 -2
  514. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
  515. package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
  516. package/src/components/MultiSelect/MultiSelect.tsx +106 -106
  517. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
  518. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
  519. package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
  520. package/src/components/MultiSelect/components/index.ts +1 -1
  521. package/src/components/MultiSelect/index.ts +4 -4
  522. package/src/components/MultiSelect/types.ts +1 -1
  523. package/src/components/MultiSelectList/MultiSelectList.styles.ts +136 -136
  524. package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
  525. package/src/components/MultiSelectList/constants.ts +21 -21
  526. package/src/components/MultiSelectList/helpers.ts +11 -11
  527. package/src/components/MultiSelectList/index.ts +3 -3
  528. package/src/components/MultiSelectList/types.ts +15 -15
  529. package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +74 -74
  530. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +39 -39
  531. package/src/components/NewMoreMenu/NewMoreMenu.tsx +80 -80
  532. package/src/components/NewMoreMenu/index.ts +2 -2
  533. package/src/components/Notification/Notification.stories.tsx +46 -46
  534. package/src/components/Notification/Notification.styles.ts +55 -55
  535. package/src/components/Notification/Notification.tsx +69 -69
  536. package/src/components/Notification/index.ts +3 -3
  537. package/src/components/Notification/types.ts +1 -1
  538. package/src/components/NumberInput/NumberInput.stories.tsx +35 -35
  539. package/src/components/NumberInput/NumberInput.tsx +137 -137
  540. package/src/components/NumberInput/helpers.ts +86 -86
  541. package/src/components/NumberInput/index.ts +1 -1
  542. package/src/components/PhoneInput/PhoneInput.stories.tsx +70 -70
  543. package/src/components/PhoneInput/PhoneInput.styles.ts +89 -89
  544. package/src/components/PhoneInput/PhoneInput.tsx +214 -214
  545. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
  546. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +103 -103
  547. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
  548. package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
  549. package/src/components/PhoneInput/components/index.ts +1 -1
  550. package/src/components/PhoneInput/constants.ts +3 -3
  551. package/src/components/PhoneInput/index.ts +4 -4
  552. package/src/components/PhoneInput/types.ts +16 -16
  553. package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
  554. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  555. package/src/components/RadioButton/RadioButton.tsx +57 -57
  556. package/src/components/RadioButton/index.ts +2 -2
  557. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
  558. package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
  559. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  560. package/src/components/SearchInput/SearchInput.stories.tsx +23 -23
  561. package/src/components/SearchInput/SearchInput.styles.ts +50 -50
  562. package/src/components/SearchInput/SearchInput.tsx +56 -56
  563. package/src/components/SearchInput/index.ts +2 -2
  564. package/src/components/Select/CustomSelect.stories.tsx +253 -217
  565. package/src/components/Select/MultiSelect.stories.tsx +240 -240
  566. package/src/components/Select/Select.stories.tsx +235 -235
  567. package/src/components/Select/Select.styles.ts +147 -146
  568. package/src/components/Select/Select.tsx +653 -609
  569. package/src/components/Select/components/SelectList/SelectList.styles.ts +73 -71
  570. package/src/components/Select/components/SelectList/SelectList.tsx +152 -156
  571. package/src/components/Select/components/SelectList/index.ts +2 -2
  572. package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
  573. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +76 -72
  574. package/src/components/Select/components/SelectListItem/index.ts +1 -1
  575. package/src/components/Select/components/index.ts +2 -2
  576. package/src/components/Select/constants.ts +2 -2
  577. package/src/components/Select/helpers.ts +20 -27
  578. package/src/components/Select/index.ts +4 -4
  579. package/src/components/Select/types.ts +1 -1
  580. package/src/components/Selector/Selector.stories.tsx +62 -62
  581. package/src/components/Selector/Selector.styles.ts +165 -165
  582. package/src/components/Selector/Selector.tsx +115 -115
  583. package/src/components/Selector/index.ts +2 -2
  584. package/src/components/Selector/types.ts +12 -12
  585. package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
  586. package/src/components/Skeleton/Skeleton.styles.ts +46 -46
  587. package/src/components/Skeleton/Skeleton.tsx +12 -12
  588. package/src/components/Skeleton/index.ts +2 -2
  589. package/src/components/SmartInput/SmartInput.stories.tsx +51 -51
  590. package/src/components/SmartInput/SmartInput.tsx +134 -134
  591. package/src/components/SmartInput/constants.ts +84 -84
  592. package/src/components/SmartInput/helpers.ts +13 -13
  593. package/src/components/SmartInput/index.ts +2 -2
  594. package/src/components/SmartInput/types.ts +11 -11
  595. package/src/components/Status/Status.stories.tsx +73 -73
  596. package/src/components/Status/Status.styles.ts +143 -143
  597. package/src/components/Status/Status.tsx +49 -49
  598. package/src/components/Status/constants.ts +11 -11
  599. package/src/components/Status/index.ts +3 -3
  600. package/src/components/Status/types.ts +5 -5
  601. package/src/components/Switch/Switch.stories.tsx +40 -40
  602. package/src/components/Switch/Switch.styles.ts +75 -75
  603. package/src/components/Switch/Switch.tsx +75 -75
  604. package/src/components/Switch/index.ts +3 -3
  605. package/src/components/Switch/types.ts +4 -4
  606. package/src/components/TextArea/TextArea.stories.tsx +37 -37
  607. package/src/components/TextArea/TextArea.styles.ts +177 -177
  608. package/src/components/TextArea/TextArea.tsx +183 -183
  609. package/src/components/TextArea/index.ts +3 -3
  610. package/src/components/TextArea/types.ts +6 -6
  611. package/src/components/TextButton/TextButton.stories.tsx +47 -47
  612. package/src/components/TextButton/TextButton.styles.ts +130 -130
  613. package/src/components/TextButton/TextButton.tsx +110 -110
  614. package/src/components/TextButton/constants.ts +3 -3
  615. package/src/components/TextButton/index.ts +3 -3
  616. package/src/components/TextButton/types.ts +11 -11
  617. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
  618. package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
  619. package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
  620. package/src/components/TextWithInfo/index.ts +2 -2
  621. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  622. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
  623. package/src/components/TextWithTooltip/TextWithTooltip.tsx +155 -156
  624. package/src/components/TextWithTooltip/index.ts +2 -2
  625. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
  626. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
  627. package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
  628. package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
  629. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  630. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +55 -55
  631. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
  632. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  633. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  634. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
  635. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  636. package/src/components/ThemedPreloader/components/index.ts +3 -3
  637. package/src/components/ThemedPreloader/constants.ts +1 -1
  638. package/src/components/ThemedPreloader/index.ts +4 -4
  639. package/src/components/ThemedPreloader/types.ts +3 -3
  640. package/src/components/Toaster/Toaster.stories.tsx +30 -30
  641. package/src/components/Toaster/Toaster.styles.ts +60 -60
  642. package/src/components/Toaster/Toaster.tsx +109 -109
  643. package/src/components/Toaster/constants.ts +1 -1
  644. package/src/components/Toaster/index.ts +3 -3
  645. package/src/components/Toaster/types.ts +1 -1
  646. package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
  647. package/src/components/Tooltip/Tooltip.styles.ts +49 -49
  648. package/src/components/Tooltip/Tooltip.tsx +35 -35
  649. package/src/components/Tooltip/index.ts +3 -3
  650. package/src/components/Tooltip/types.ts +1 -1
  651. package/src/components/WithPopup/WithPopup.stories.tsx +78 -78
  652. package/src/components/WithPopup/WithPopup.styles.ts +42 -42
  653. package/src/components/WithPopup/WithPopup.tsx +137 -137
  654. package/src/components/WithPopup/constants.ts +3 -3
  655. package/src/components/WithPopup/index.ts +2 -2
  656. package/src/components/WithPopup/types.ts +3 -3
  657. package/src/components/index.ts +45 -45
  658. package/src/constants/index.ts +2 -2
  659. package/src/constants/mime-types.ts +77 -77
  660. package/src/constants/phone-info.ts +2147 -2147
  661. package/src/helpers/index.ts +3 -3
  662. package/src/helpers/misc.ts +158 -158
  663. package/src/helpers/phone.ts +91 -91
  664. package/src/helpers/popper-helpers.ts +17 -17
  665. package/src/hooks/index.ts +7 -7
  666. package/src/hooks/use-did-mount-effect.ts +18 -18
  667. package/src/hooks/use-dropdown.ts +84 -84
  668. package/src/hooks/use-is-mounted.ts +15 -15
  669. package/src/hooks/use-merged-refs.ts +4 -4
  670. package/src/hooks/use-mixed-styles.ts +14 -14
  671. package/src/hooks/use-on-click-outside.ts +77 -77
  672. package/src/hooks/use-tweak-styles.ts +57 -57
  673. package/src/index.ts +6 -6
  674. package/src/theme/Provider.tsx +21 -21
  675. package/src/theme/common.ts +164 -164
  676. package/src/theme/helpers.ts +76 -76
  677. package/src/theme/index.ts +4 -4
  678. package/src/theme/types.ts +157 -157
  679. package/src/types.ts +26 -26
  680. package/src/vite-env.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useRef, useEffect, useCallback, useState, useMemo, useContext, createElement, Fragment as Fragment$1, forwardRef, createRef, PureComponent, memo } from "react";
2
2
  import { createUseStyles } from "react-jss";
3
- import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, mergeRefs, addDataTestId, isReactNodeNotEmpty, addClickHandler, getTestId, getSelectKeyHandler, createFilter, isFunction as isFunction$1, isObject as isObject$1, getTransition, applyAction, indexMap, isNumberInteger, hasDuplicates } from "@true-engineering/true-react-platform-helpers";
3
+ import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, mergeRefs, addDataTestId, isReactNodeNotEmpty, addClickHandler, getTestId, getSelectKeyHandler, getArray, createFilter, isFunction as isFunction$1, isObject as isObject$1, getTransition, applyAction, indexMap, isNumberInteger, hasDuplicates } from "@true-engineering/true-react-platform-helpers";
4
4
  import { CSSTransition } from "react-transition-group";
5
5
  import clsx from "clsx";
6
6
  import hexToRgba from "hex-to-rgba";
@@ -6668,71 +6668,71 @@ var useMergedRefs = function(refs) {
6668
6668
  return mergeRefs(refs);
6669
6669
  }, refs);
6670
6670
  };
6671
- const avatarGreen = ` <svg\r
6672
- width="100%"\r
6673
- height="100%"\r
6674
- viewBox="0 0 32 32"\r
6675
- fill="none"\r
6676
- xmlns="http://www.w3.org/2000/svg"\r
6677
- >\r
6678
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
6679
- <mask\r
6680
- id="mask0_0_12744"\r
6681
- style="mask-type: 'alpha';"\r
6682
- maskUnits="userSpaceOnUse"\r
6683
- x="0"\r
6684
- y="0"\r
6685
- width="32"\r
6686
- height="32"\r
6687
- >\r
6688
- <circle cx="16" cy="16" r="16" fill="white" />\r
6689
- </mask>\r
6690
- <g mask="url(#mask0_0_12744)">\r
6691
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
6692
- <mask\r
6693
- id="mask1_0_12744"\r
6694
- style="mask-type: 'alpha';"\r
6695
- maskUnits="userSpaceOnUse"\r
6696
- x="3"\r
6697
- y="16"\r
6698
- width="26"\r
6699
- height="26"\r
6700
- >\r
6701
- <circle cx="16" cy="29" r="13" fill="white" />\r
6702
- </mask>\r
6703
- <g mask="url(#mask1_0_12744)">\r
6704
- <ellipse\r
6705
- cx="16"\r
6706
- cy="17.5"\r
6707
- rx="6"\r
6708
- ry="7.5"\r
6709
- fill="#505F79"\r
6710
- fill-opacity="0.204983"\r
6711
- />\r
6712
- </g>\r
6713
- </g>\r
6714
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
6715
- <defs>\r
6716
- <linearGradient\r
6717
- id="paint0_linear_0_12744"\r
6718
- x1="13.347"\r
6719
- y1="46.279"\r
6720
- x2="33.5318"\r
6721
- y2="30.8088"\r
6722
- gradientUnits="userSpaceOnUse"\r
6723
- >\r
6724
- <stop stop-color="#ABD229" />\r
6725
- <stop offset="1" stop-color="#9CD03F" />\r
6726
- </linearGradient>\r
6727
- </defs>\r
6671
+ const avatarGreen = ` <svg
6672
+ width="100%"
6673
+ height="100%"
6674
+ viewBox="0 0 32 32"
6675
+ fill="none"
6676
+ xmlns="http://www.w3.org/2000/svg"
6677
+ >
6678
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
6679
+ <mask
6680
+ id="mask0_0_12744"
6681
+ style="mask-type: 'alpha';"
6682
+ maskUnits="userSpaceOnUse"
6683
+ x="0"
6684
+ y="0"
6685
+ width="32"
6686
+ height="32"
6687
+ >
6688
+ <circle cx="16" cy="16" r="16" fill="white" />
6689
+ </mask>
6690
+ <g mask="url(#mask0_0_12744)">
6691
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
6692
+ <mask
6693
+ id="mask1_0_12744"
6694
+ style="mask-type: 'alpha';"
6695
+ maskUnits="userSpaceOnUse"
6696
+ x="3"
6697
+ y="16"
6698
+ width="26"
6699
+ height="26"
6700
+ >
6701
+ <circle cx="16" cy="29" r="13" fill="white" />
6702
+ </mask>
6703
+ <g mask="url(#mask1_0_12744)">
6704
+ <ellipse
6705
+ cx="16"
6706
+ cy="17.5"
6707
+ rx="6"
6708
+ ry="7.5"
6709
+ fill="#505F79"
6710
+ fill-opacity="0.204983"
6711
+ />
6712
+ </g>
6713
+ </g>
6714
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
6715
+ <defs>
6716
+ <linearGradient
6717
+ id="paint0_linear_0_12744"
6718
+ x1="13.347"
6719
+ y1="46.279"
6720
+ x2="33.5318"
6721
+ y2="30.8088"
6722
+ gradientUnits="userSpaceOnUse"
6723
+ >
6724
+ <stop stop-color="#ABD229" />
6725
+ <stop offset="1" stop-color="#9CD03F" />
6726
+ </linearGradient>
6727
+ </defs>
6728
6728
  </svg>`;
6729
- const fileExcel = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#21A366"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16081)" style="mix-blend-mode:overlay"/>\r\n <path d="M8.00342 14.5244L10.0728 11.3062L12.1357 14.5244H14.4019L11.2217 9.73828L14.1162 5.21875H11.939L10.1108 8.2085L8.24463 5.21875H6.04834L8.93018 9.66846L5.75 14.5244H8.00342Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16081" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6730
- const fileImage = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16103)" style="mix-blend-mode:overlay"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.90113 15C3.09595 15 2.62093 14.097 3.07709 13.4335L6.67606 8.19861C7.07341 7.62064 7.9268 7.62065 8.32414 8.19861L13.0001 15H3.90113Z" fill="white"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.53962 15L12.7076 10.2481C13.1034 9.65434 13.9758 9.65434 14.3717 10.2481L16.5031 13.4453C16.9462 14.1099 16.4698 15 15.6711 15H9.53962Z" fill="white"/>\r\n <path d="M16.0001 5.5C16.0001 6.32843 15.3285 7 14.5001 7C13.6717 7 13.0001 6.32843 13.0001 5.5C13.0001 4.67157 13.6717 4 14.5001 4C15.3285 4 16.0001 4.67157 16.0001 5.5Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16103" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6731
- const fileOther = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="#AABFFC"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="url(#paint0_linear_0_16113)" style="mix-blend-mode:overlay"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16113" x1="-5.9615" y1="9.95168" x2="13.4572" y2="25.4862" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6732
- const filePdf = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#FF5630"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16087)" style="mix-blend-mode:overlay"/>\r\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.55535 13.6488V11.0388H4.92535C5.65535 11.0388 5.93535 10.9988 6.27535 10.8688C6.97535 10.5988 7.36535 9.92876 7.36535 8.99876C7.36535 8.21876 7.07535 7.57876 6.57535 7.25876C6.27535 7.06876 5.82535 6.97876 5.09535 6.97876H2.98535V13.6488H4.55535ZM4.84535 9.90876H4.54535V8.10876H4.84535C5.51535 8.10876 5.75535 8.34876 5.75535 9.02876C5.75535 9.66876 5.51535 9.90876 4.84535 9.90876ZM11.6393 13.4388C11.2793 13.5988 10.9993 13.6488 10.4393 13.6488H8.21935V6.97876H10.2593C11.2393 6.97876 11.7193 7.11876 12.1093 7.52876C12.5993 8.02876 12.7693 8.71876 12.7693 10.1388C12.7693 10.9388 12.7093 11.6788 12.6093 12.1588C12.4893 12.7388 12.1193 13.2188 11.6393 13.4388ZM10.0793 12.5188H9.79935V8.10876H10.0193C10.9713 8.10876 11.1466 8.35839 11.1586 9.95112L11.1593 10.1488C11.1593 12.2088 11.0193 12.5188 10.0793 12.5188ZM15.3333 10.8188V13.6488H13.7533V6.97876H17.6033V8.23876H15.3333V9.58876H17.4433V10.8188H15.3333Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16087" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6733
- const fileWord = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#2C7CD3"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16075)" style="mix-blend-mode:overlay"/>\r\n <path d="M8.0542 14.9946L9.90137 8.0376L11.7549 14.9946H13.748L16.0078 5.68896H14.1162L12.688 12.189L11.0566 5.68896H8.82227L7.12109 12.0811L5.71826 5.68896H3.79492L6.0166 14.9946H8.0542Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_0_16075" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6734
- const fileXml = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\r\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_2163_24057)" style="mix-blend-mode:overlay"/>\r\n <path d="M1.97561 5.99658L3.56111 9.43008L1.84961 13.0001H3.66611L4.21211 11.6771C4.40111 11.0996 4.45361 10.8791 4.49561 10.6166H4.52711C4.54811 10.8686 4.61111 11.1101 4.77911 11.5826L5.34611 13.0001H7.20461L5.49311 9.44058L7.07861 5.99658H5.28311L4.86311 7.06758C4.85261 7.08858 4.83161 7.16208 4.80011 7.25658C4.75811 7.44558 4.70561 7.63458 4.65311 7.82358C4.60061 8.02308 4.57961 8.10708 4.56911 8.23308H4.52711C4.49561 8.02308 4.43261 7.78158 4.27511 7.23558L3.82361 5.99658H1.97561Z" fill="white"/>\r\n <path d="M7.53437 5.99658V13.0001H9.05687V9.78708L9.02537 9.34608L8.98337 8.41158C8.98337 8.33808 8.96237 8.00208 8.92037 7.47708H8.98337C9.05687 7.90758 9.10937 8.21208 9.18287 8.53758C9.24587 8.87358 9.34037 9.28308 9.44537 9.77658L10.1804 13.0001H11.3984L12.1544 9.59808C12.2909 8.98908 12.5324 7.79208 12.5744 7.47708H12.6374C12.6059 7.80258 12.5849 8.01258 12.5744 8.22258L12.5534 8.98908C12.5429 9.25158 12.5324 9.52458 12.5219 9.80808V13.0001H14.0444V5.99658H11.6714L11.2409 8.10708C11.0834 8.74758 10.8419 10.3751 10.8419 10.8161L10.7999 10.8266C10.7894 10.2911 10.5269 8.61108 10.3274 7.85508L9.92837 5.99658H7.53437Z" fill="white"/>\r\n <path d="M14.8685 5.99658V13.0001H18.89V11.6666H16.5275V5.99658H14.8685Z" fill="white"/>\r\n <defs>\r\n <linearGradient id="paint0_linear_2163_24057" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n </defs>\r\n</svg>';
6735
- const fileZip = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\r\n <g clip-path="url(#clip0_922_22603)">\r\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="#A1D237"/>\r\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="url(#paint0_linear_922_22603)" style="mix-blend-mode:overlay"/>\r\n <path d="M8.32086 14V12.6807H6.32086C5.92513 12.6807 5.72193 12.6927 5.58289 12.7166C5.64706 12.6207 5.68984 12.5367 5.73262 12.4528C5.7861 12.3568 5.83957 12.2609 5.89305 12.1529L8.28877 7.22339V6H4.17112V7.31934H6.20321C6.39572 7.31934 6.59893 7.30735 6.69519 7.29535C6.58824 7.47526 6.49198 7.65517 6.41711 7.81109L4 12.8246V14H8.32086ZM10.4813 14V6H9.03743V14H10.4813ZM12.9519 14V10.8096H13.4439C14.2139 10.8096 14.5241 10.7616 14.877 10.6057C15.5936 10.2699 16 9.47826 16 8.38681C16 7.45127 15.6898 6.69565 15.1444 6.32384C14.8342 6.09595 14.3743 6 13.6364 6H11.508V14H12.9519ZM13.4118 9.6102H12.9519V7.1994H13.3797C13.7219 7.1994 13.9679 7.24738 14.107 7.34333C14.385 7.53523 14.5241 7.87106 14.5241 8.38681C14.5241 8.91454 14.4064 9.25037 14.1497 9.44228C13.9893 9.57421 13.8075 9.6102 13.4118 9.6102Z" fill="white"/>\r\n </g>\r\n <defs>\r\n <linearGradient id="paint0_linear_922_22603" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\r\n <stop stop-color="white" stop-opacity="0.245559"/>\r\n <stop offset="1" stop-opacity="0.498578"/>\r\n </linearGradient>\r\n <clipPath id="clip0_922_22603">\r\n <rect width="20" height="20" fill="white"/>\r\n </clipPath>\r\n </defs>\r\n</svg>';
6729
+ const fileExcel = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#21A366"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16081)" style="mix-blend-mode:overlay"/>\n <path d="M8.00342 14.5244L10.0728 11.3062L12.1357 14.5244H14.4019L11.2217 9.73828L14.1162 5.21875H11.939L10.1108 8.2085L8.24463 5.21875H6.04834L8.93018 9.66846L5.75 14.5244H8.00342Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16081" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6730
+ const fileImage = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16103)" style="mix-blend-mode:overlay"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.90113 15C3.09595 15 2.62093 14.097 3.07709 13.4335L6.67606 8.19861C7.07341 7.62064 7.9268 7.62065 8.32414 8.19861L13.0001 15H3.90113Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.53962 15L12.7076 10.2481C13.1034 9.65434 13.9758 9.65434 14.3717 10.2481L16.5031 13.4453C16.9462 14.1099 16.4698 15 15.6711 15H9.53962Z" fill="white"/>\n <path d="M16.0001 5.5C16.0001 6.32843 15.3285 7 14.5001 7C13.6717 7 13.0001 6.32843 13.0001 5.5C13.0001 4.67157 13.6717 4 14.5001 4C15.3285 4 16.0001 4.67157 16.0001 5.5Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16103" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6731
+ const fileOther = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="#AABFFC"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="url(#paint0_linear_0_16113)" style="mix-blend-mode:overlay"/>\n <defs>\n <linearGradient id="paint0_linear_0_16113" x1="-5.9615" y1="9.95168" x2="13.4572" y2="25.4862" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6732
+ const filePdf = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF5630"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16087)" style="mix-blend-mode:overlay"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.55535 13.6488V11.0388H4.92535C5.65535 11.0388 5.93535 10.9988 6.27535 10.8688C6.97535 10.5988 7.36535 9.92876 7.36535 8.99876C7.36535 8.21876 7.07535 7.57876 6.57535 7.25876C6.27535 7.06876 5.82535 6.97876 5.09535 6.97876H2.98535V13.6488H4.55535ZM4.84535 9.90876H4.54535V8.10876H4.84535C5.51535 8.10876 5.75535 8.34876 5.75535 9.02876C5.75535 9.66876 5.51535 9.90876 4.84535 9.90876ZM11.6393 13.4388C11.2793 13.5988 10.9993 13.6488 10.4393 13.6488H8.21935V6.97876H10.2593C11.2393 6.97876 11.7193 7.11876 12.1093 7.52876C12.5993 8.02876 12.7693 8.71876 12.7693 10.1388C12.7693 10.9388 12.7093 11.6788 12.6093 12.1588C12.4893 12.7388 12.1193 13.2188 11.6393 13.4388ZM10.0793 12.5188H9.79935V8.10876H10.0193C10.9713 8.10876 11.1466 8.35839 11.1586 9.95112L11.1593 10.1488C11.1593 12.2088 11.0193 12.5188 10.0793 12.5188ZM15.3333 10.8188V13.6488H13.7533V6.97876H17.6033V8.23876H15.3333V9.58876H17.4433V10.8188H15.3333Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16087" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6733
+ const fileWord = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#2C7CD3"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16075)" style="mix-blend-mode:overlay"/>\n <path d="M8.0542 14.9946L9.90137 8.0376L11.7549 14.9946H13.748L16.0078 5.68896H14.1162L12.688 12.189L11.0566 5.68896H8.82227L7.12109 12.0811L5.71826 5.68896H3.79492L6.0166 14.9946H8.0542Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16075" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6734
+ const fileXml = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_2163_24057)" style="mix-blend-mode:overlay"/>\n <path d="M1.97561 5.99658L3.56111 9.43008L1.84961 13.0001H3.66611L4.21211 11.6771C4.40111 11.0996 4.45361 10.8791 4.49561 10.6166H4.52711C4.54811 10.8686 4.61111 11.1101 4.77911 11.5826L5.34611 13.0001H7.20461L5.49311 9.44058L7.07861 5.99658H5.28311L4.86311 7.06758C4.85261 7.08858 4.83161 7.16208 4.80011 7.25658C4.75811 7.44558 4.70561 7.63458 4.65311 7.82358C4.60061 8.02308 4.57961 8.10708 4.56911 8.23308H4.52711C4.49561 8.02308 4.43261 7.78158 4.27511 7.23558L3.82361 5.99658H1.97561Z" fill="white"/>\n <path d="M7.53437 5.99658V13.0001H9.05687V9.78708L9.02537 9.34608L8.98337 8.41158C8.98337 8.33808 8.96237 8.00208 8.92037 7.47708H8.98337C9.05687 7.90758 9.10937 8.21208 9.18287 8.53758C9.24587 8.87358 9.34037 9.28308 9.44537 9.77658L10.1804 13.0001H11.3984L12.1544 9.59808C12.2909 8.98908 12.5324 7.79208 12.5744 7.47708H12.6374C12.6059 7.80258 12.5849 8.01258 12.5744 8.22258L12.5534 8.98908C12.5429 9.25158 12.5324 9.52458 12.5219 9.80808V13.0001H14.0444V5.99658H11.6714L11.2409 8.10708C11.0834 8.74758 10.8419 10.3751 10.8419 10.8161L10.7999 10.8266C10.7894 10.2911 10.5269 8.61108 10.3274 7.85508L9.92837 5.99658H7.53437Z" fill="white"/>\n <path d="M14.8685 5.99658V13.0001H18.89V11.6666H16.5275V5.99658H14.8685Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_2163_24057" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
6735
+ const fileZip = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <g clip-path="url(#clip0_922_22603)">\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="#A1D237"/>\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="url(#paint0_linear_922_22603)" style="mix-blend-mode:overlay"/>\n <path d="M8.32086 14V12.6807H6.32086C5.92513 12.6807 5.72193 12.6927 5.58289 12.7166C5.64706 12.6207 5.68984 12.5367 5.73262 12.4528C5.7861 12.3568 5.83957 12.2609 5.89305 12.1529L8.28877 7.22339V6H4.17112V7.31934H6.20321C6.39572 7.31934 6.59893 7.30735 6.69519 7.29535C6.58824 7.47526 6.49198 7.65517 6.41711 7.81109L4 12.8246V14H8.32086ZM10.4813 14V6H9.03743V14H10.4813ZM12.9519 14V10.8096H13.4439C14.2139 10.8096 14.5241 10.7616 14.877 10.6057C15.5936 10.2699 16 9.47826 16 8.38681C16 7.45127 15.6898 6.69565 15.1444 6.32384C14.8342 6.09595 14.3743 6 13.6364 6H11.508V14H12.9519ZM13.4118 9.6102H12.9519V7.1994H13.3797C13.7219 7.1994 13.9679 7.24738 14.107 7.34333C14.385 7.53523 14.5241 7.87106 14.5241 8.38681C14.5241 8.91454 14.4064 9.25037 14.1497 9.44228C13.9893 9.57421 13.8075 9.6102 13.4118 9.6102Z" fill="white"/>\n </g>\n <defs>\n <linearGradient id="paint0_linear_922_22603" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n <clipPath id="clip0_922_22603">\n <rect width="20" height="20" fill="white"/>\n </clipPath>\n </defs>\n</svg>';
6736
6736
  var complexIcons = {
6737
6737
  avatar: avatarGreen,
6738
6738
  "file-excel": fileExcel,
@@ -10619,15 +10619,11 @@ var useStyles$F = createThemedStyles("SelectList", {
10619
10619
  withListHeader: {
10620
10620
  paddingTop: 0
10621
10621
  },
10622
- listHeader: {
10623
- "& + $list": {
10624
- borderTop: [
10625
- 1,
10626
- "solid",
10627
- colors.BORDER_LIGHT
10628
- ]
10629
- }
10622
+ withListFooter: {
10623
+ paddingBottom: 0
10630
10624
  },
10625
+ listHeader: {},
10626
+ listFooter: {},
10631
10627
  list: _object_spread$K({
10632
10628
  height: "100%",
10633
10629
  maxHeight: ROW_HEIGHT$1 * 6,
@@ -10724,8 +10720,18 @@ function _object_spread_props$E(target, source) {
10724
10720
  return target;
10725
10721
  }
10726
10722
  var SelectListItem = function(param) {
10727
- var classes = param.classes, index = param.index, isSemiChecked = param.isSemiChecked, isDisabled = param.isDisabled, isActive = param.isActive, children = param.children, isFocused = param.isFocused, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox;
10728
- var isMultiSelect = isNotEmpty(onToggleCheckbox);
10723
+ var classes = param.classes, index = param.index, isSemiChecked = param.isSemiChecked, isDisabled = param.isDisabled, isActive = param.isActive, children = param.children, isFocused = param.isFocused, isMultiSelect = param.isMultiSelect, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox;
10724
+ var multiSelectContent = isMultiSelect && /* @__PURE__ */ jsx(Checkbox, {
10725
+ isChecked: isActive || isSemiChecked,
10726
+ isSemiChecked,
10727
+ isDisabled,
10728
+ tweakStyles: checkboxStyles$1,
10729
+ onSelect: function(param2, event) {
10730
+ var isSelected = param2.isSelected;
10731
+ return onToggleCheckbox(index, isSelected, event);
10732
+ },
10733
+ children
10734
+ });
10729
10735
  var _obj2;
10730
10736
  return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$E(_object_spread$J({
10731
10737
  active: isFocused,
@@ -10741,17 +10747,7 @@ var SelectListItem = function(param) {
10741
10747
  onClick: !isDisabled && !isMultiSelect ? function(event) {
10742
10748
  return onOptionSelect(index, event);
10743
10749
  } : void 0,
10744
- children: isMultiSelect ? /* @__PURE__ */ jsx(Checkbox, {
10745
- value: index,
10746
- isChecked: isActive || isSemiChecked,
10747
- isSemiChecked,
10748
- isDisabled,
10749
- tweakStyles: checkboxStyles$1,
10750
- onSelect: function(v, event) {
10751
- return onToggleCheckbox(index, v.isSelected, event);
10752
- },
10753
- children
10754
- }) : children
10750
+ children: isMultiSelect ? multiSelectContent : children
10755
10751
  }));
10756
10752
  };
10757
10753
  function _define_property$K(obj, key, value) {
@@ -10807,47 +10803,39 @@ function _object_spread_props$D(target, source) {
10807
10803
  return target;
10808
10804
  }
10809
10805
  function SelectList(param) {
10810
- var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
10806
+ var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, customListFooter = param.customListFooter, isMultiSelect = param.isMultiSelect, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
10811
10807
  var classes = useStyles$F({
10812
10808
  theme: tweakStyles
10813
10809
  });
10814
- var isMultiSelect = isNotEmpty(onToggleCheckbox);
10815
- var multiSelectValue = activeValue;
10816
- var _multiSelectValue_length;
10817
- var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
10818
- var activeOptionsIdMap = useMemo(function() {
10819
- var _multiSelectValue_map;
10820
- return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
10821
- }, [
10822
- isMultiSelect,
10823
- multiSelectValue,
10824
- convertValueToId
10825
- ]);
10810
+ var isHeaderNotEmpty = isReactNodeNotEmpty(customListHeader);
10811
+ var isFooterNotEmpty = isReactNodeNotEmpty(customListFooter);
10826
10812
  var optionsDisableMap = useMemo(function() {
10827
- return options.map(function(o) {
10828
- return isOptionDisabled(o);
10829
- });
10813
+ return options.map(isOptionDisabled);
10830
10814
  }, [
10831
10815
  options,
10832
10816
  isOptionDisabled
10833
10817
  ]);
10834
10818
  var listOptions = useMemo(function() {
10835
- return options.map(function(opt, i) {
10836
- return convertValueToReactNode(opt, optionsDisableMap[i]);
10819
+ return options.map(function(option, index) {
10820
+ return convertValueToReactNode(option, optionsDisableMap[index]);
10837
10821
  });
10838
10822
  }, [
10839
10823
  options,
10840
10824
  convertValueToReactNode,
10841
10825
  optionsDisableMap
10842
10826
  ]);
10843
- var isActiveOption = function(item) {
10844
- return isMultiSelect ? activeOptionsIdMap.includes(convertValueToId(item)) : isNotEmpty(activeValue) && convertValueToId(activeValue) === convertValueToId(item);
10845
- };
10827
+ var activeOptionsIds = useMemo(function() {
10828
+ return new Set(getArray(activeValue).map(convertValueToId));
10829
+ }, [
10830
+ activeValue,
10831
+ convertValueToId
10832
+ ]);
10833
+ var _obj2;
10846
10834
  return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
10847
10835
  active: shouldScrollToList && !isMultiSelect,
10848
- className: clsx(classes.root, _define_property$K({}, classes.withListHeader, isReactNodeNotEmpty(customListHeader))),
10836
+ className: clsx(classes.root, (_obj2 = {}, _define_property$K(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$K(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
10849
10837
  children: [
10850
- isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
10838
+ isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
10851
10839
  className: classes.listHeader,
10852
10840
  children: customListHeader
10853
10841
  }),
@@ -10873,9 +10861,10 @@ function SelectList(param) {
10873
10861
  isReactNodeNotEmpty(allOptionsLabel) && /* @__PURE__ */ jsx(SelectListItem, {
10874
10862
  classes,
10875
10863
  index: ALL_OPTION_INDEX,
10876
- isSemiChecked: selectedOptionsCount > 0 && !areAllOptionsSelected,
10864
+ isSemiChecked: activeOptionsIds.size > 0 && !areAllOptionsSelected,
10877
10865
  isActive: areAllOptionsSelected,
10878
10866
  isFocused: focusedIndex === ALL_OPTION_INDEX,
10867
+ isMultiSelect,
10879
10868
  onOptionSelect,
10880
10869
  onToggleCheckbox,
10881
10870
  children: allOptionsLabel
@@ -10883,7 +10872,7 @@ function SelectList(param) {
10883
10872
  listOptions.map(function(opt, i) {
10884
10873
  var optionValue = options[i];
10885
10874
  var isFocused = focusedIndex === i;
10886
- var isActive = isActiveOption(optionValue);
10875
+ var isActive = activeOptionsIds.has(convertValueToId(optionValue));
10887
10876
  var isDisabled = optionsDisableMap[i];
10888
10877
  return /* @__PURE__ */ jsx(SelectListItem, {
10889
10878
  classes,
@@ -10891,6 +10880,7 @@ function SelectList(param) {
10891
10880
  isDisabled,
10892
10881
  isActive,
10893
10882
  isFocused,
10883
+ isMultiSelect,
10894
10884
  onOptionSelect,
10895
10885
  onToggleCheckbox,
10896
10886
  children: opt
@@ -10902,7 +10892,11 @@ function SelectList(param) {
10902
10892
  })
10903
10893
  ]
10904
10894
  })
10905
- }))
10895
+ })),
10896
+ isFooterNotEmpty && /* @__PURE__ */ jsx("div", {
10897
+ className: classes.listFooter,
10898
+ children: customListFooter
10899
+ })
10906
10900
  ]
10907
10901
  });
10908
10902
  }
@@ -10921,9 +10915,6 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
10921
10915
  return isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
10922
10916
  };
10923
10917
  };
10924
- var isMultiSelectValue = function(props, _value) {
10925
- return props.isMultiSelect === true;
10926
- };
10927
10918
  var useStyles$E = createThemedStyles("Select", {
10928
10919
  root: {
10929
10920
  width: "100%",
@@ -10943,7 +10934,7 @@ var useStyles$E = createThemedStyles("Select", {
10943
10934
  },
10944
10935
  withoutPopper: {
10945
10936
  position: "absolute",
10946
- top: "calc(100% + 6px)"
10937
+ top: "calc(var(--dropdown-offset, 100%) + 6px)"
10947
10938
  },
10948
10939
  listWrapperInBody: {
10949
10940
  minWidth: "auto",
@@ -10958,7 +10949,8 @@ var useStyles$E = createThemedStyles("Select", {
10958
10949
  height: 20,
10959
10950
  cursor: "pointer",
10960
10951
  zIndex: 1,
10961
- transition: "transform 0.1s ease"
10952
+ transition: animations.defaultTransition,
10953
+ transitionProperty: "transform"
10962
10954
  },
10963
10955
  activeArrow: {
10964
10956
  transform: "rotate(180deg)"
@@ -11317,9 +11309,13 @@ function _ts_generator$4(thisArg, body) {
11317
11309
  }
11318
11310
  }
11319
11311
  function Select(props) {
11320
- var options = props.options, value = props.value, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$b(props, [
11312
+ var _input_current;
11313
+ var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$b(props, [
11321
11314
  "options",
11315
+ "isMultiSelect",
11322
11316
  "value",
11317
+ "header",
11318
+ "footer",
11323
11319
  "defaultOptionLabel",
11324
11320
  "allOptionsLabel",
11325
11321
  "debounceTime",
@@ -11355,7 +11351,6 @@ function Select(props) {
11355
11351
  "shouldRenderInList"
11356
11352
  ]);
11357
11353
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11358
- var isMultiSelect = isMultiSelectValue(props);
11359
11354
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11360
11355
  var tweakInputStyles = useTweakStyles({
11361
11356
  innerStyles: getInputStyles({
@@ -11384,6 +11379,7 @@ function Select(props) {
11384
11379
  var _useState2 = _sliced_to_array$k(useState(DEFAULT_OPTION_INDEX), 2), focusedListCellIndex = _useState2[0], setFocusedListCellIndex = _useState2[1];
11385
11380
  var _useState3 = _sliced_to_array$k(useState(""), 2), searchValue = _useState3[0], setSearchValue = _useState3[1];
11386
11381
  var _useState4 = _sliced_to_array$k(useState(true), 2), shouldShowDefaultOption = _useState4[0], setShouldShowDefaultOption = _useState4[1];
11382
+ var root2 = useRef(null);
11387
11383
  var inputWrapper = useRef(null);
11388
11384
  var list = useRef(null);
11389
11385
  var input = useRef(null);
@@ -11408,8 +11404,8 @@ function Select(props) {
11408
11404
  optionsMode
11409
11405
  ]);
11410
11406
  var availableOptions = useMemo(function() {
11411
- return options.filter(function(o) {
11412
- return !isOptionDisabled(o);
11407
+ return options.filter(function(option) {
11408
+ return !isOptionDisabled(option);
11413
11409
  });
11414
11410
  }, [
11415
11411
  options,
@@ -11446,17 +11442,39 @@ function Select(props) {
11446
11442
  convertValueToId,
11447
11443
  convertValueToString
11448
11444
  ]);
11449
- var handleListClose = useCallback(function(event) {
11445
+ var getDropdownOffset = function() {
11446
+ var _input_current_parentElement2;
11447
+ if (isEmpty(input.current) || inputProps.errorPosition === "top") {
11448
+ return 0;
11449
+ }
11450
+ var _input_current_parentElement_offsetHeight;
11451
+ return (_input_current_parentElement_offsetHeight = (_input_current_parentElement2 = input.current.parentElement) === null || _input_current_parentElement2 === void 0 ? void 0 : _input_current_parentElement2.offsetHeight) !== null && _input_current_parentElement_offsetHeight !== void 0 ? _input_current_parentElement_offsetHeight : 0;
11452
+ };
11453
+ var closeList = useCallback(function() {
11450
11454
  setIsListOpen(false);
11451
11455
  setSearchValue("");
11452
11456
  setShouldShowDefaultOption(true);
11457
+ if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11458
+ var _root_current;
11459
+ (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
11460
+ }
11461
+ }, [
11462
+ dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
11463
+ ]);
11464
+ var handleListClose = useCallback(function(event) {
11465
+ closeList();
11453
11466
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
11454
11467
  }, [
11468
+ closeList,
11455
11469
  onBlur
11456
11470
  ]);
11457
11471
  var handleListOpen = function() {
11458
11472
  if (!isListOpen) {
11459
11473
  setIsListOpen(true);
11474
+ if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11475
+ var _root_current;
11476
+ (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
11477
+ }
11460
11478
  }
11461
11479
  };
11462
11480
  var handleFocus = function(event) {
@@ -11479,7 +11497,7 @@ function Select(props) {
11479
11497
  handleListClose(event);
11480
11498
  }
11481
11499
  };
11482
- var handleOnChange = useCallback(function(newValue, event) {
11500
+ var handleChange = useCallback(function(newValue, event) {
11483
11501
  if (!compareValuesOnChange(value, newValue)) {
11484
11502
  onChange(newValue, event);
11485
11503
  }
@@ -11489,12 +11507,12 @@ function Select(props) {
11489
11507
  onChange
11490
11508
  ]);
11491
11509
  var handleOptionSelect = useCallback(function(index, event) {
11492
- var _input_current;
11493
- handleOnChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event);
11510
+ var _input_current2;
11511
+ handleChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event);
11494
11512
  handleListClose(event);
11495
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.blur();
11513
+ (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur();
11496
11514
  }, [
11497
- handleOnChange,
11515
+ handleChange,
11498
11516
  handleListClose,
11499
11517
  filteredOptions
11500
11518
  ]);
@@ -11503,15 +11521,15 @@ function Select(props) {
11503
11521
  return;
11504
11522
  }
11505
11523
  if (index === DEFAULT_OPTION_INDEX || index === ALL_OPTION_INDEX && !isSelected) {
11506
- handleOnChange(void 0, event);
11524
+ handleChange(void 0, event);
11507
11525
  return;
11508
11526
  }
11509
11527
  if (index === ALL_OPTION_INDEX && isSelected) {
11510
- handleOnChange(availableOptions, event);
11528
+ handleChange(availableOptions, event);
11511
11529
  return;
11512
11530
  }
11513
11531
  var option = filteredOptions[index];
11514
- handleOnChange(isSelected ? (
11532
+ handleChange(isSelected ? (
11515
11533
  // Добавляем
11516
11534
  _to_consumable_array$7(value !== null && value !== void 0 ? value : []).concat([
11517
11535
  option
@@ -11525,7 +11543,7 @@ function Select(props) {
11525
11543
  }, [
11526
11544
  isMultiSelect,
11527
11545
  filteredOptions,
11528
- handleOnChange,
11546
+ handleChange,
11529
11547
  value,
11530
11548
  availableOptions,
11531
11549
  convertToId
@@ -11585,7 +11603,7 @@ function Select(props) {
11585
11603
  setShouldShowDefaultOption(v === "");
11586
11604
  }
11587
11605
  if (v === "" && !hasSearchInputInList) {
11588
- handleOnChange(void 0, event);
11606
+ handleChange(void 0, event);
11589
11607
  }
11590
11608
  setSearchValue(v);
11591
11609
  };
@@ -11609,7 +11627,8 @@ function Select(props) {
11609
11627
  if (indexToSelect === ALL_OPTION_INDEX) {
11610
11628
  isThisValueAlreadySelected = areAllOptionsSelected;
11611
11629
  } else {
11612
- var valueIdToSelect = convertToId(filteredOptions[indexToSelect]);
11630
+ var option = filteredOptions[indexToSelect];
11631
+ var valueIdToSelect = convertToId(option);
11613
11632
  var _value_some;
11614
11633
  isThisValueAlreadySelected = (_value_some = value === null || value === void 0 ? void 0 : value.some(function(opt) {
11615
11634
  return convertToId(opt) === valueIdToSelect;
@@ -11637,8 +11656,9 @@ function Select(props) {
11637
11656
  };
11638
11657
  var onArrowClick = function() {
11639
11658
  if (isListOpen) {
11640
- var _input_current;
11641
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.blur();
11659
+ var _input_current2;
11660
+ (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur();
11661
+ closeList();
11642
11662
  } else {
11643
11663
  var _input_current1;
11644
11664
  (_input_current1 = input.current) === null || _input_current1 === void 0 ? void 0 : _input_current1.focus();
@@ -11658,10 +11678,11 @@ function Select(props) {
11658
11678
  (optionsMode === "normal" || hasEnoughSymbolsToSearch)
11659
11679
  );
11660
11680
  var _ref1 = dropdownOptions !== null && dropdownOptions !== void 0 ? dropdownOptions : {}, _ref_shouldUsePopper = _ref1.shouldUsePopper, shouldUsePopper = _ref_shouldUsePopper === void 0 ? false : _ref_shouldUsePopper, _ref_shouldRenderInBody = _ref1.shouldRenderInBody, shouldRenderInBody = _ref_shouldRenderInBody === void 0 ? false : _ref_shouldRenderInBody, _ref_shouldHideOnScroll = _ref1.shouldHideOnScroll, shouldHideOnScroll = _ref_shouldHideOnScroll === void 0 ? false : _ref_shouldHideOnScroll;
11681
+ var _input_current_parentElement;
11661
11682
  var popperData = useDropdown({
11662
11683
  isOpen,
11663
11684
  onDropdownClose: handleListClose,
11664
- referenceElement: inputWrapper.current,
11685
+ referenceElement: (_input_current_parentElement = (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.parentElement) !== null && _input_current_parentElement !== void 0 ? _input_current_parentElement : inputWrapper.current,
11665
11686
  dropdownElement: list.current,
11666
11687
  options: dropdownOptions,
11667
11688
  dependenciesForPositionUpdating: [
@@ -11670,10 +11691,11 @@ function Select(props) {
11670
11691
  ]
11671
11692
  });
11672
11693
  useEffect(function() {
11673
- var _optionsIndexesForNavigation_find;
11674
- setFocusedListCellIndex((_optionsIndexesForNavigation_find = optionsIndexesForNavigation.find(function(index) {
11675
- return isNotEmpty(strValue) && isNotEmpty(filteredOptions[index]) && convertToId(filteredOptions[index]) === convertToId(strValue);
11676
- })) !== null && _optionsIndexesForNavigation_find !== void 0 ? _optionsIndexesForNavigation_find : optionsIndexesForNavigation[0]);
11694
+ var focusedCellIndex = isNotEmpty(strValue) ? optionsIndexesForNavigation.find(function(index) {
11695
+ var option = filteredOptions[index];
11696
+ return isNotEmpty(option) && convertToId(option) === convertToId(strValue);
11697
+ }) : void 0;
11698
+ setFocusedListCellIndex(focusedCellIndex !== null && focusedCellIndex !== void 0 ? focusedCellIndex : optionsIndexesForNavigation[0]);
11677
11699
  }, [
11678
11700
  strValue,
11679
11701
  filteredOptions,
@@ -11687,11 +11709,24 @@ function Select(props) {
11687
11709
  }, [
11688
11710
  isOpen
11689
11711
  ]);
11712
+ var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$H({
11713
+ value: searchValue,
11714
+ onChange: handleInputChange,
11715
+ tweakStyles: tweakSearchInputStyles,
11716
+ placeholder: "Поиск"
11717
+ }, searchInputProps));
11718
+ var customHeader = (isReactNodeNotEmpty(searchInputEl) || isReactNodeNotEmpty(header)) && /* @__PURE__ */ jsxs(Fragment, {
11719
+ children: [
11720
+ searchInputEl,
11721
+ header
11722
+ ]
11723
+ });
11690
11724
  var _obj2;
11691
11725
  var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$C(_object_spread$H({
11692
11726
  className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$J(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$J(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
11693
11727
  ref: list,
11694
11728
  style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
11729
+ tabIndex: 0,
11695
11730
  onBlur: handleBlur
11696
11731
  }, popperData === null || popperData === void 0 ? void 0 : popperData.attributes.popper), {
11697
11732
  children: isOpen && /* @__PURE__ */ jsx(SelectList, {
@@ -11699,12 +11734,8 @@ function Select(props) {
11699
11734
  defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
11700
11735
  allOptionsLabel: shouldShowAllOption && allOptionsLabel,
11701
11736
  areAllOptionsSelected,
11702
- customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$H({
11703
- value: searchValue,
11704
- onChange: handleInputChange,
11705
- tweakStyles: tweakSearchInputStyles,
11706
- placeholder: "Поиск"
11707
- }, searchInputProps)),
11737
+ customListHeader: customHeader,
11738
+ customListFooter: footer,
11708
11739
  noMatchesLabel,
11709
11740
  focusedIndex: focusedListCellIndex,
11710
11741
  activeValue: value,
@@ -11712,13 +11743,14 @@ function Select(props) {
11712
11743
  loadingLabel,
11713
11744
  tweakStyles: tweakSelectListStyles,
11714
11745
  testId: getTestId(testId, "list"),
11746
+ isMultiSelect,
11715
11747
  shouldScrollToList: shouldScrollToList && !shouldUsePopper && !shouldHideOnScroll,
11716
11748
  isOptionDisabled,
11717
11749
  convertValueToString,
11718
11750
  convertValueToReactNode,
11719
11751
  convertValueToId: convertToId,
11720
11752
  onOptionSelect: handleOptionSelect,
11721
- onToggleCheckbox: isMultiSelect ? handleToggleOptionCheckbox : void 0
11753
+ onToggleCheckbox: handleToggleOptionCheckbox
11722
11754
  })
11723
11755
  }));
11724
11756
  var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, {
@@ -11740,6 +11772,7 @@ function Select(props) {
11740
11772
  return /* @__PURE__ */ jsxs("div", {
11741
11773
  className: classes.root,
11742
11774
  onKeyDown: handleKeyDown,
11775
+ ref: root2,
11743
11776
  children: [
11744
11777
  /* @__PURE__ */ jsxs("div", {
11745
11778
  className: clsx(classes.inputWrapper, isDisabled && classes.disabled),