@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
@@ -6656,71 +6656,71 @@
6656
6656
  return trueReactPlatformHelpers.mergeRefs(refs);
6657
6657
  }, refs);
6658
6658
  };
6659
- const avatarGreen = ` <svg\r
6660
- width="100%"\r
6661
- height="100%"\r
6662
- viewBox="0 0 32 32"\r
6663
- fill="none"\r
6664
- xmlns="http://www.w3.org/2000/svg"\r
6665
- >\r
6666
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
6667
- <mask\r
6668
- id="mask0_0_12744"\r
6669
- style="mask-type: 'alpha';"\r
6670
- maskUnits="userSpaceOnUse"\r
6671
- x="0"\r
6672
- y="0"\r
6673
- width="32"\r
6674
- height="32"\r
6675
- >\r
6676
- <circle cx="16" cy="16" r="16" fill="white" />\r
6677
- </mask>\r
6678
- <g mask="url(#mask0_0_12744)">\r
6679
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
6680
- <mask\r
6681
- id="mask1_0_12744"\r
6682
- style="mask-type: 'alpha';"\r
6683
- maskUnits="userSpaceOnUse"\r
6684
- x="3"\r
6685
- y="16"\r
6686
- width="26"\r
6687
- height="26"\r
6688
- >\r
6689
- <circle cx="16" cy="29" r="13" fill="white" />\r
6690
- </mask>\r
6691
- <g mask="url(#mask1_0_12744)">\r
6692
- <ellipse\r
6693
- cx="16"\r
6694
- cy="17.5"\r
6695
- rx="6"\r
6696
- ry="7.5"\r
6697
- fill="#505F79"\r
6698
- fill-opacity="0.204983"\r
6699
- />\r
6700
- </g>\r
6701
- </g>\r
6702
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
6703
- <defs>\r
6704
- <linearGradient\r
6705
- id="paint0_linear_0_12744"\r
6706
- x1="13.347"\r
6707
- y1="46.279"\r
6708
- x2="33.5318"\r
6709
- y2="30.8088"\r
6710
- gradientUnits="userSpaceOnUse"\r
6711
- >\r
6712
- <stop stop-color="#ABD229" />\r
6713
- <stop offset="1" stop-color="#9CD03F" />\r
6714
- </linearGradient>\r
6715
- </defs>\r
6659
+ const avatarGreen = ` <svg
6660
+ width="100%"
6661
+ height="100%"
6662
+ viewBox="0 0 32 32"
6663
+ fill="none"
6664
+ xmlns="http://www.w3.org/2000/svg"
6665
+ >
6666
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
6667
+ <mask
6668
+ id="mask0_0_12744"
6669
+ style="mask-type: 'alpha';"
6670
+ maskUnits="userSpaceOnUse"
6671
+ x="0"
6672
+ y="0"
6673
+ width="32"
6674
+ height="32"
6675
+ >
6676
+ <circle cx="16" cy="16" r="16" fill="white" />
6677
+ </mask>
6678
+ <g mask="url(#mask0_0_12744)">
6679
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
6680
+ <mask
6681
+ id="mask1_0_12744"
6682
+ style="mask-type: 'alpha';"
6683
+ maskUnits="userSpaceOnUse"
6684
+ x="3"
6685
+ y="16"
6686
+ width="26"
6687
+ height="26"
6688
+ >
6689
+ <circle cx="16" cy="29" r="13" fill="white" />
6690
+ </mask>
6691
+ <g mask="url(#mask1_0_12744)">
6692
+ <ellipse
6693
+ cx="16"
6694
+ cy="17.5"
6695
+ rx="6"
6696
+ ry="7.5"
6697
+ fill="#505F79"
6698
+ fill-opacity="0.204983"
6699
+ />
6700
+ </g>
6701
+ </g>
6702
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
6703
+ <defs>
6704
+ <linearGradient
6705
+ id="paint0_linear_0_12744"
6706
+ x1="13.347"
6707
+ y1="46.279"
6708
+ x2="33.5318"
6709
+ y2="30.8088"
6710
+ gradientUnits="userSpaceOnUse"
6711
+ >
6712
+ <stop stop-color="#ABD229" />
6713
+ <stop offset="1" stop-color="#9CD03F" />
6714
+ </linearGradient>
6715
+ </defs>
6716
6716
  </svg>`;
6717
- 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>';
6718
- 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>';
6719
- 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>';
6720
- 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>';
6721
- 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>';
6722
- 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>';
6723
- 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>';
6717
+ 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>';
6718
+ 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>';
6719
+ 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>';
6720
+ 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>';
6721
+ 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>';
6722
+ 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>';
6723
+ 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>';
6724
6724
  var complexIcons = {
6725
6725
  avatar: avatarGreen,
6726
6726
  "file-excel": fileExcel,
@@ -10607,15 +10607,11 @@
10607
10607
  withListHeader: {
10608
10608
  paddingTop: 0
10609
10609
  },
10610
- listHeader: {
10611
- "& + $list": {
10612
- borderTop: [
10613
- 1,
10614
- "solid",
10615
- colors.BORDER_LIGHT
10616
- ]
10617
- }
10610
+ withListFooter: {
10611
+ paddingBottom: 0
10618
10612
  },
10613
+ listHeader: {},
10614
+ listFooter: {},
10619
10615
  list: _object_spread$K({
10620
10616
  height: "100%",
10621
10617
  maxHeight: ROW_HEIGHT$1 * 6,
@@ -10712,8 +10708,18 @@
10712
10708
  return target;
10713
10709
  }
10714
10710
  var SelectListItem = function(param) {
10715
- 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;
10716
- var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
10711
+ 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;
10712
+ var multiSelectContent = isMultiSelect && /* @__PURE__ */ jsx(Checkbox, {
10713
+ isChecked: isActive || isSemiChecked,
10714
+ isSemiChecked,
10715
+ isDisabled,
10716
+ tweakStyles: checkboxStyles$1,
10717
+ onSelect: function(param2, event) {
10718
+ var isSelected = param2.isSelected;
10719
+ return onToggleCheckbox(index, isSelected, event);
10720
+ },
10721
+ children
10722
+ });
10717
10723
  var _obj2;
10718
10724
  return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$E(_object_spread$J({
10719
10725
  active: isFocused,
@@ -10729,17 +10735,7 @@
10729
10735
  onClick: !isDisabled && !isMultiSelect ? function(event) {
10730
10736
  return onOptionSelect(index, event);
10731
10737
  } : void 0,
10732
- children: isMultiSelect ? /* @__PURE__ */ jsx(Checkbox, {
10733
- value: index,
10734
- isChecked: isActive || isSemiChecked,
10735
- isSemiChecked,
10736
- isDisabled,
10737
- tweakStyles: checkboxStyles$1,
10738
- onSelect: function(v, event) {
10739
- return onToggleCheckbox(index, v.isSelected, event);
10740
- },
10741
- children
10742
- }) : children
10738
+ children: isMultiSelect ? multiSelectContent : children
10743
10739
  }));
10744
10740
  };
10745
10741
  function _define_property$K(obj, key, value) {
@@ -10795,47 +10791,39 @@
10795
10791
  return target;
10796
10792
  }
10797
10793
  function SelectList(param) {
10798
- 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;
10794
+ 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;
10799
10795
  var classes = useStyles$F({
10800
10796
  theme: tweakStyles
10801
10797
  });
10802
- var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
10803
- var multiSelectValue = activeValue;
10804
- var _multiSelectValue_length;
10805
- var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
10806
- var activeOptionsIdMap = React.useMemo(function() {
10807
- var _multiSelectValue_map;
10808
- return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
10809
- }, [
10810
- isMultiSelect,
10811
- multiSelectValue,
10812
- convertValueToId
10813
- ]);
10798
+ var isHeaderNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader);
10799
+ var isFooterNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListFooter);
10814
10800
  var optionsDisableMap = React.useMemo(function() {
10815
- return options.map(function(o) {
10816
- return isOptionDisabled(o);
10817
- });
10801
+ return options.map(isOptionDisabled);
10818
10802
  }, [
10819
10803
  options,
10820
10804
  isOptionDisabled
10821
10805
  ]);
10822
10806
  var listOptions = React.useMemo(function() {
10823
- return options.map(function(opt, i) {
10824
- return convertValueToReactNode(opt, optionsDisableMap[i]);
10807
+ return options.map(function(option, index) {
10808
+ return convertValueToReactNode(option, optionsDisableMap[index]);
10825
10809
  });
10826
10810
  }, [
10827
10811
  options,
10828
10812
  convertValueToReactNode,
10829
10813
  optionsDisableMap
10830
10814
  ]);
10831
- var isActiveOption = function(item) {
10832
- return isMultiSelect ? activeOptionsIdMap.includes(convertValueToId(item)) : trueReactPlatformHelpers.isNotEmpty(activeValue) && convertValueToId(activeValue) === convertValueToId(item);
10833
- };
10815
+ var activeOptionsIds = React.useMemo(function() {
10816
+ return new Set(trueReactPlatformHelpers.getArray(activeValue).map(convertValueToId));
10817
+ }, [
10818
+ activeValue,
10819
+ convertValueToId
10820
+ ]);
10821
+ var _obj2;
10834
10822
  return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
10835
10823
  active: shouldScrollToList && !isMultiSelect,
10836
- className: clsx(classes.root, _define_property$K({}, classes.withListHeader, trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader))),
10824
+ className: clsx(classes.root, (_obj2 = {}, _define_property$K(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$K(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
10837
10825
  children: [
10838
- trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
10826
+ isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
10839
10827
  className: classes.listHeader,
10840
10828
  children: customListHeader
10841
10829
  }),
@@ -10861,9 +10849,10 @@
10861
10849
  trueReactPlatformHelpers.isReactNodeNotEmpty(allOptionsLabel) && /* @__PURE__ */ jsx(SelectListItem, {
10862
10850
  classes,
10863
10851
  index: ALL_OPTION_INDEX,
10864
- isSemiChecked: selectedOptionsCount > 0 && !areAllOptionsSelected,
10852
+ isSemiChecked: activeOptionsIds.size > 0 && !areAllOptionsSelected,
10865
10853
  isActive: areAllOptionsSelected,
10866
10854
  isFocused: focusedIndex === ALL_OPTION_INDEX,
10855
+ isMultiSelect,
10867
10856
  onOptionSelect,
10868
10857
  onToggleCheckbox,
10869
10858
  children: allOptionsLabel
@@ -10871,7 +10860,7 @@
10871
10860
  listOptions.map(function(opt, i) {
10872
10861
  var optionValue = options[i];
10873
10862
  var isFocused = focusedIndex === i;
10874
- var isActive = isActiveOption(optionValue);
10863
+ var isActive = activeOptionsIds.has(convertValueToId(optionValue));
10875
10864
  var isDisabled = optionsDisableMap[i];
10876
10865
  return /* @__PURE__ */ jsx(SelectListItem, {
10877
10866
  classes,
@@ -10879,6 +10868,7 @@
10879
10868
  isDisabled,
10880
10869
  isActive,
10881
10870
  isFocused,
10871
+ isMultiSelect,
10882
10872
  onOptionSelect,
10883
10873
  onToggleCheckbox,
10884
10874
  children: opt
@@ -10890,7 +10880,11 @@
10890
10880
  })
10891
10881
  ]
10892
10882
  })
10893
- }))
10883
+ })),
10884
+ isFooterNotEmpty && /* @__PURE__ */ jsx("div", {
10885
+ className: classes.listFooter,
10886
+ children: customListFooter
10887
+ })
10894
10888
  ]
10895
10889
  });
10896
10890
  }
@@ -10909,9 +10903,6 @@
10909
10903
  return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
10910
10904
  };
10911
10905
  };
10912
- var isMultiSelectValue = function(props, _value) {
10913
- return props.isMultiSelect === true;
10914
- };
10915
10906
  var useStyles$E = createThemedStyles("Select", {
10916
10907
  root: {
10917
10908
  width: "100%",
@@ -10931,7 +10922,7 @@
10931
10922
  },
10932
10923
  withoutPopper: {
10933
10924
  position: "absolute",
10934
- top: "calc(100% + 6px)"
10925
+ top: "calc(var(--dropdown-offset, 100%) + 6px)"
10935
10926
  },
10936
10927
  listWrapperInBody: {
10937
10928
  minWidth: "auto",
@@ -10946,7 +10937,8 @@
10946
10937
  height: 20,
10947
10938
  cursor: "pointer",
10948
10939
  zIndex: 1,
10949
- transition: "transform 0.1s ease"
10940
+ transition: animations.defaultTransition,
10941
+ transitionProperty: "transform"
10950
10942
  },
10951
10943
  activeArrow: {
10952
10944
  transform: "rotate(180deg)"
@@ -11305,9 +11297,13 @@
11305
11297
  }
11306
11298
  }
11307
11299
  function Select(props) {
11308
- 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, [
11300
+ var _input_current;
11301
+ 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, [
11309
11302
  "options",
11303
+ "isMultiSelect",
11310
11304
  "value",
11305
+ "header",
11306
+ "footer",
11311
11307
  "defaultOptionLabel",
11312
11308
  "allOptionsLabel",
11313
11309
  "debounceTime",
@@ -11343,7 +11339,6 @@
11343
11339
  "shouldRenderInList"
11344
11340
  ]);
11345
11341
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11346
- var isMultiSelect = isMultiSelectValue(props);
11347
11342
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11348
11343
  var tweakInputStyles = useTweakStyles({
11349
11344
  innerStyles: getInputStyles({
@@ -11372,6 +11367,7 @@
11372
11367
  var _useState2 = _sliced_to_array$k(React.useState(DEFAULT_OPTION_INDEX), 2), focusedListCellIndex = _useState2[0], setFocusedListCellIndex = _useState2[1];
11373
11368
  var _useState3 = _sliced_to_array$k(React.useState(""), 2), searchValue = _useState3[0], setSearchValue = _useState3[1];
11374
11369
  var _useState4 = _sliced_to_array$k(React.useState(true), 2), shouldShowDefaultOption = _useState4[0], setShouldShowDefaultOption = _useState4[1];
11370
+ var root2 = React.useRef(null);
11375
11371
  var inputWrapper = React.useRef(null);
11376
11372
  var list = React.useRef(null);
11377
11373
  var input = React.useRef(null);
@@ -11396,8 +11392,8 @@
11396
11392
  optionsMode
11397
11393
  ]);
11398
11394
  var availableOptions = React.useMemo(function() {
11399
- return options.filter(function(o) {
11400
- return !isOptionDisabled(o);
11395
+ return options.filter(function(option) {
11396
+ return !isOptionDisabled(option);
11401
11397
  });
11402
11398
  }, [
11403
11399
  options,
@@ -11434,17 +11430,39 @@
11434
11430
  convertValueToId,
11435
11431
  convertValueToString
11436
11432
  ]);
11437
- var handleListClose = React.useCallback(function(event) {
11433
+ var getDropdownOffset = function() {
11434
+ var _input_current_parentElement2;
11435
+ if (trueReactPlatformHelpers.isEmpty(input.current) || inputProps.errorPosition === "top") {
11436
+ return 0;
11437
+ }
11438
+ var _input_current_parentElement_offsetHeight;
11439
+ 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;
11440
+ };
11441
+ var closeList = React.useCallback(function() {
11438
11442
  setIsListOpen(false);
11439
11443
  setSearchValue("");
11440
11444
  setShouldShowDefaultOption(true);
11445
+ if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11446
+ var _root_current;
11447
+ (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
11448
+ }
11449
+ }, [
11450
+ dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
11451
+ ]);
11452
+ var handleListClose = React.useCallback(function(event) {
11453
+ closeList();
11441
11454
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
11442
11455
  }, [
11456
+ closeList,
11443
11457
  onBlur
11444
11458
  ]);
11445
11459
  var handleListOpen = function() {
11446
11460
  if (!isListOpen) {
11447
11461
  setIsListOpen(true);
11462
+ if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11463
+ var _root_current;
11464
+ (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
11465
+ }
11448
11466
  }
11449
11467
  };
11450
11468
  var handleFocus = function(event) {
@@ -11467,7 +11485,7 @@
11467
11485
  handleListClose(event);
11468
11486
  }
11469
11487
  };
11470
- var handleOnChange = React.useCallback(function(newValue, event) {
11488
+ var handleChange = React.useCallback(function(newValue, event) {
11471
11489
  if (!compareValuesOnChange(value, newValue)) {
11472
11490
  onChange(newValue, event);
11473
11491
  }
@@ -11477,12 +11495,12 @@
11477
11495
  onChange
11478
11496
  ]);
11479
11497
  var handleOptionSelect = React.useCallback(function(index, event) {
11480
- var _input_current;
11481
- handleOnChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event);
11498
+ var _input_current2;
11499
+ handleChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event);
11482
11500
  handleListClose(event);
11483
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.blur();
11501
+ (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur();
11484
11502
  }, [
11485
- handleOnChange,
11503
+ handleChange,
11486
11504
  handleListClose,
11487
11505
  filteredOptions
11488
11506
  ]);
@@ -11491,15 +11509,15 @@
11491
11509
  return;
11492
11510
  }
11493
11511
  if (index === DEFAULT_OPTION_INDEX || index === ALL_OPTION_INDEX && !isSelected) {
11494
- handleOnChange(void 0, event);
11512
+ handleChange(void 0, event);
11495
11513
  return;
11496
11514
  }
11497
11515
  if (index === ALL_OPTION_INDEX && isSelected) {
11498
- handleOnChange(availableOptions, event);
11516
+ handleChange(availableOptions, event);
11499
11517
  return;
11500
11518
  }
11501
11519
  var option = filteredOptions[index];
11502
- handleOnChange(isSelected ? (
11520
+ handleChange(isSelected ? (
11503
11521
  // Добавляем
11504
11522
  _to_consumable_array$7(value !== null && value !== void 0 ? value : []).concat([
11505
11523
  option
@@ -11513,7 +11531,7 @@
11513
11531
  }, [
11514
11532
  isMultiSelect,
11515
11533
  filteredOptions,
11516
- handleOnChange,
11534
+ handleChange,
11517
11535
  value,
11518
11536
  availableOptions,
11519
11537
  convertToId
@@ -11573,7 +11591,7 @@
11573
11591
  setShouldShowDefaultOption(v === "");
11574
11592
  }
11575
11593
  if (v === "" && !hasSearchInputInList) {
11576
- handleOnChange(void 0, event);
11594
+ handleChange(void 0, event);
11577
11595
  }
11578
11596
  setSearchValue(v);
11579
11597
  };
@@ -11597,7 +11615,8 @@
11597
11615
  if (indexToSelect === ALL_OPTION_INDEX) {
11598
11616
  isThisValueAlreadySelected = areAllOptionsSelected;
11599
11617
  } else {
11600
- var valueIdToSelect = convertToId(filteredOptions[indexToSelect]);
11618
+ var option = filteredOptions[indexToSelect];
11619
+ var valueIdToSelect = convertToId(option);
11601
11620
  var _value_some;
11602
11621
  isThisValueAlreadySelected = (_value_some = value === null || value === void 0 ? void 0 : value.some(function(opt) {
11603
11622
  return convertToId(opt) === valueIdToSelect;
@@ -11625,8 +11644,9 @@
11625
11644
  };
11626
11645
  var onArrowClick = function() {
11627
11646
  if (isListOpen) {
11628
- var _input_current;
11629
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.blur();
11647
+ var _input_current2;
11648
+ (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur();
11649
+ closeList();
11630
11650
  } else {
11631
11651
  var _input_current1;
11632
11652
  (_input_current1 = input.current) === null || _input_current1 === void 0 ? void 0 : _input_current1.focus();
@@ -11646,10 +11666,11 @@
11646
11666
  (optionsMode === "normal" || hasEnoughSymbolsToSearch)
11647
11667
  );
11648
11668
  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;
11669
+ var _input_current_parentElement;
11649
11670
  var popperData = useDropdown({
11650
11671
  isOpen,
11651
11672
  onDropdownClose: handleListClose,
11652
- referenceElement: inputWrapper.current,
11673
+ 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,
11653
11674
  dropdownElement: list.current,
11654
11675
  options: dropdownOptions,
11655
11676
  dependenciesForPositionUpdating: [
@@ -11658,10 +11679,11 @@
11658
11679
  ]
11659
11680
  });
11660
11681
  React.useEffect(function() {
11661
- var _optionsIndexesForNavigation_find;
11662
- setFocusedListCellIndex((_optionsIndexesForNavigation_find = optionsIndexesForNavigation.find(function(index) {
11663
- return trueReactPlatformHelpers.isNotEmpty(strValue) && trueReactPlatformHelpers.isNotEmpty(filteredOptions[index]) && convertToId(filteredOptions[index]) === convertToId(strValue);
11664
- })) !== null && _optionsIndexesForNavigation_find !== void 0 ? _optionsIndexesForNavigation_find : optionsIndexesForNavigation[0]);
11682
+ var focusedCellIndex = trueReactPlatformHelpers.isNotEmpty(strValue) ? optionsIndexesForNavigation.find(function(index) {
11683
+ var option = filteredOptions[index];
11684
+ return trueReactPlatformHelpers.isNotEmpty(option) && convertToId(option) === convertToId(strValue);
11685
+ }) : void 0;
11686
+ setFocusedListCellIndex(focusedCellIndex !== null && focusedCellIndex !== void 0 ? focusedCellIndex : optionsIndexesForNavigation[0]);
11665
11687
  }, [
11666
11688
  strValue,
11667
11689
  filteredOptions,
@@ -11675,11 +11697,24 @@
11675
11697
  }, [
11676
11698
  isOpen
11677
11699
  ]);
11700
+ var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$H({
11701
+ value: searchValue,
11702
+ onChange: handleInputChange,
11703
+ tweakStyles: tweakSearchInputStyles,
11704
+ placeholder: "Поиск"
11705
+ }, searchInputProps));
11706
+ var customHeader = (trueReactPlatformHelpers.isReactNodeNotEmpty(searchInputEl) || trueReactPlatformHelpers.isReactNodeNotEmpty(header)) && /* @__PURE__ */ jsxs(Fragment, {
11707
+ children: [
11708
+ searchInputEl,
11709
+ header
11710
+ ]
11711
+ });
11678
11712
  var _obj2;
11679
11713
  var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$C(_object_spread$H({
11680
11714
  className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$J(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$J(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
11681
11715
  ref: list,
11682
11716
  style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
11717
+ tabIndex: 0,
11683
11718
  onBlur: handleBlur
11684
11719
  }, popperData === null || popperData === void 0 ? void 0 : popperData.attributes.popper), {
11685
11720
  children: isOpen && /* @__PURE__ */ jsx(SelectList, {
@@ -11687,12 +11722,8 @@
11687
11722
  defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
11688
11723
  allOptionsLabel: shouldShowAllOption && allOptionsLabel,
11689
11724
  areAllOptionsSelected,
11690
- customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$H({
11691
- value: searchValue,
11692
- onChange: handleInputChange,
11693
- tweakStyles: tweakSearchInputStyles,
11694
- placeholder: "Поиск"
11695
- }, searchInputProps)),
11725
+ customListHeader: customHeader,
11726
+ customListFooter: footer,
11696
11727
  noMatchesLabel,
11697
11728
  focusedIndex: focusedListCellIndex,
11698
11729
  activeValue: value,
@@ -11700,13 +11731,14 @@
11700
11731
  loadingLabel,
11701
11732
  tweakStyles: tweakSelectListStyles,
11702
11733
  testId: trueReactPlatformHelpers.getTestId(testId, "list"),
11734
+ isMultiSelect,
11703
11735
  shouldScrollToList: shouldScrollToList && !shouldUsePopper && !shouldHideOnScroll,
11704
11736
  isOptionDisabled,
11705
11737
  convertValueToString,
11706
11738
  convertValueToReactNode,
11707
11739
  convertValueToId: convertToId,
11708
11740
  onOptionSelect: handleOptionSelect,
11709
- onToggleCheckbox: isMultiSelect ? handleToggleOptionCheckbox : void 0
11741
+ onToggleCheckbox: handleToggleOptionCheckbox
11710
11742
  })
11711
11743
  }));
11712
11744
  var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, {
@@ -11728,6 +11760,7 @@
11728
11760
  return /* @__PURE__ */ jsxs("div", {
11729
11761
  className: classes.root,
11730
11762
  onKeyDown: handleKeyDown,
11763
+ ref: root2,
11731
11764
  children: [
11732
11765
  /* @__PURE__ */ jsxs("div", {
11733
11766
  className: clsx(classes.inputWrapper, isDisabled && classes.disabled),