@true-engineering/true-react-common-ui-kit 3.45.2 → 4.0.0-alpha1

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 (708) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +0 -40
  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/ControlWrapper/ControlWrapper.d.ts +27 -0
  31. package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
  32. package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
  33. package/dist/components/ControlWrapper/index.d.ts +2 -0
  34. package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
  35. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
  36. package/dist/components/CssBaseline/index.d.ts +2 -2
  37. package/dist/components/DateInput/DateInput.d.ts +17 -17
  38. package/dist/components/DateInput/DateInput.stories.d.ts +7 -7
  39. package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
  40. package/dist/components/DateInput/constants.d.ts +2 -2
  41. package/dist/components/DateInput/index.d.ts +3 -3
  42. package/dist/components/DatePicker/DatePicker.d.ts +26 -26
  43. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -7
  44. package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
  45. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
  46. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
  47. package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
  48. package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
  49. package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
  50. package/dist/components/DatePicker/components/index.d.ts +2 -2
  51. package/dist/components/DatePicker/constants.d.ts +3 -3
  52. package/dist/components/DatePicker/helpers.d.ts +3 -3
  53. package/dist/components/DatePicker/index.d.ts +4 -4
  54. package/dist/components/DatePicker/types.d.ts +4 -4
  55. package/dist/components/Description/Description.d.ts +13 -13
  56. package/dist/components/Description/Description.stories.d.ts +16 -16
  57. package/dist/components/Description/Description.styles.d.ts +3 -3
  58. package/dist/components/Description/constants.d.ts +1 -1
  59. package/dist/components/Description/index.d.ts +2 -2
  60. package/dist/components/FileInput/FileInput.d.ts +25 -25
  61. package/dist/components/FileInput/FileInput.stories.d.ts +7 -7
  62. package/dist/components/FileInput/FileInput.styles.d.ts +3 -3
  63. package/dist/components/FileInput/helpers.d.ts +2 -2
  64. package/dist/components/FileInput/index.d.ts +2 -2
  65. package/dist/components/FileItem/FileItem.d.ts +31 -31
  66. package/dist/components/FileItem/FileItem.stories.d.ts +8 -8
  67. package/dist/components/FileItem/FileItem.styles.d.ts +11 -11
  68. package/dist/components/FileItem/constants.d.ts +5 -5
  69. package/dist/components/FileItem/helpers.d.ts +4 -4
  70. package/dist/components/FileItem/index.d.ts +4 -4
  71. package/dist/components/FileItem/types.d.ts +8 -8
  72. package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
  73. package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -32
  74. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +11 -11
  75. package/dist/components/FiltersPane/components/Filter/Filter.d.ts +7 -7
  76. package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
  77. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
  78. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
  79. package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
  80. package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
  81. package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
  82. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +30 -30
  83. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
  84. package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
  85. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
  86. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
  87. package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
  88. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
  89. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
  90. package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
  91. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
  92. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  93. package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
  94. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +13 -13
  95. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +8 -8
  96. package/dist/components/FiltersPane/components/FilterWrapper/helpers.d.ts +1 -1
  97. package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
  98. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +20 -21
  99. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
  100. package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
  101. package/dist/components/FiltersPane/components/index.d.ts +9 -9
  102. package/dist/components/FiltersPane/constants.d.ts +9 -9
  103. package/dist/components/FiltersPane/helpers.d.ts +5 -5
  104. package/dist/components/FiltersPane/index.d.ts +4 -4
  105. package/dist/components/FiltersPane/types.d.ts +108 -108
  106. package/dist/components/Flag/Flag.d.ts +8 -8
  107. package/dist/components/Flag/Flag.stories.d.ts +12 -12
  108. package/dist/components/Flag/Flag.styles.d.ts +3 -3
  109. package/dist/components/Flag/index.d.ts +2 -2
  110. package/dist/components/FlexibleTable/FlexibleTable.d.ts +31 -31
  111. package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +19 -19
  112. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
  113. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
  114. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
  115. package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
  116. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +31 -31
  117. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
  118. package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
  119. package/dist/components/FlexibleTable/components/index.d.ts +2 -2
  120. package/dist/components/FlexibleTable/constants.d.ts +3 -3
  121. package/dist/components/FlexibleTable/helpers.d.ts +3 -3
  122. package/dist/components/FlexibleTable/index.d.ts +4 -4
  123. package/dist/components/FlexibleTable/types.d.ts +57 -57
  124. package/dist/components/Icon/Icon.d.ts +8 -8
  125. package/dist/components/Icon/Icon.stories.d.ts +6 -6
  126. package/dist/components/Icon/Icon.styles.d.ts +3 -3
  127. package/dist/components/Icon/complexIcons/icons.d.ts +10 -10
  128. package/dist/components/Icon/complexIcons/index.d.ts +1 -1
  129. package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
  130. package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
  131. package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
  132. package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
  133. package/dist/components/Icon/components/index.d.ts +2 -2
  134. package/dist/components/Icon/helpers.d.ts +6 -6
  135. package/dist/components/Icon/icons-list.d.ts +1 -1
  136. package/dist/components/Icon/index.d.ts +5 -5
  137. package/dist/components/Icon/snippet.d.ts +3 -3
  138. package/dist/components/Icon/types.d.ts +13 -13
  139. package/dist/components/IconButton/IconButton.d.ts +19 -19
  140. package/dist/components/IconButton/IconButton.stories.d.ts +6 -6
  141. package/dist/components/IconButton/IconButton.styles.d.ts +3 -3
  142. package/dist/components/IconButton/constants.d.ts +2 -2
  143. package/dist/components/IconButton/index.d.ts +3 -3
  144. package/dist/components/IconButton/types.d.ts +5 -5
  145. package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
  146. package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -6
  147. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
  148. package/dist/components/IncrementInput/index.d.ts +2 -2
  149. package/dist/components/Input/Input.d.ts +5 -52
  150. package/dist/components/Input/Input.stories.d.ts +25 -34
  151. package/dist/components/Input/Input.styles.d.ts +8 -7
  152. package/dist/components/Input/InputBase.d.ts +24 -0
  153. package/dist/components/Input/index.d.ts +4 -3
  154. package/dist/components/Input/types.d.ts +3 -4
  155. package/dist/components/List/List.d.ts +9 -9
  156. package/dist/components/List/List.stories.d.ts +5 -5
  157. package/dist/components/List/List.styles.d.ts +5 -5
  158. package/dist/components/List/components/ListItem/ListItem.d.ts +17 -17
  159. package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
  160. package/dist/components/List/components/ListItem/index.d.ts +2 -2
  161. package/dist/components/List/components/index.d.ts +1 -1
  162. package/dist/components/List/index.d.ts +3 -3
  163. package/dist/components/Modal/Modal.d.ts +34 -34
  164. package/dist/components/Modal/Modal.stories.d.ts +29 -29
  165. package/dist/components/Modal/Modal.styles.d.ts +7 -7
  166. package/dist/components/Modal/index.d.ts +3 -3
  167. package/dist/components/Modal/types.d.ts +3 -3
  168. package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
  169. package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -6
  170. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
  171. package/dist/components/MoreMenu/index.d.ts +2 -2
  172. package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
  173. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -13
  174. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
  175. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
  176. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
  177. package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
  178. package/dist/components/MultiSelect/components/index.d.ts +1 -1
  179. package/dist/components/MultiSelect/index.d.ts +4 -4
  180. package/dist/components/MultiSelect/types.d.ts +1 -1
  181. package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
  182. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
  183. package/dist/components/MultiSelectList/constants.d.ts +3 -3
  184. package/dist/components/MultiSelectList/helpers.d.ts +3 -3
  185. package/dist/components/MultiSelectList/index.d.ts +3 -3
  186. package/dist/components/MultiSelectList/types.d.ts +12 -12
  187. package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +13 -13
  188. package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -12
  189. package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
  190. package/dist/components/NewMoreMenu/index.d.ts +2 -2
  191. package/dist/components/Notification/Notification.d.ts +17 -17
  192. package/dist/components/Notification/Notification.stories.d.ts +8 -8
  193. package/dist/components/Notification/Notification.styles.d.ts +3 -3
  194. package/dist/components/Notification/index.d.ts +3 -3
  195. package/dist/components/Notification/types.d.ts +1 -1
  196. package/dist/components/NumberInput/NumberInput.d.ts +18 -18
  197. package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -7
  198. package/dist/components/NumberInput/helpers.d.ts +4 -4
  199. package/dist/components/NumberInput/index.d.ts +1 -1
  200. package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
  201. package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -28
  202. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
  203. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +14 -13
  204. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -5
  205. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
  206. package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
  207. package/dist/components/PhoneInput/components/index.d.ts +1 -1
  208. package/dist/components/PhoneInput/constants.d.ts +2 -2
  209. package/dist/components/PhoneInput/index.d.ts +4 -4
  210. package/dist/components/PhoneInput/types.d.ts +17 -15
  211. package/dist/components/RadioButton/RadioButton.d.ts +15 -15
  212. package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -7
  213. package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
  214. package/dist/components/RadioButton/index.d.ts +2 -2
  215. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -386
  216. package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
  217. package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
  218. package/dist/components/SearchInput/SearchInput.d.ts +6 -8
  219. package/dist/components/SearchInput/SearchInput.stories.d.ts +16 -6
  220. package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
  221. package/dist/components/SearchInput/index.d.ts +2 -2
  222. package/dist/components/Select/CustomSelect.stories.d.ts +11 -11
  223. package/dist/components/Select/MultiSelect.stories.d.ts +15 -15
  224. package/dist/components/Select/Select.d.ts +52 -52
  225. package/dist/components/Select/Select.stories.d.ts +15 -15
  226. package/dist/components/Select/Select.styles.d.ts +34 -33
  227. package/dist/components/Select/components/SelectList/SelectList.d.ts +23 -23
  228. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
  229. package/dist/components/Select/components/SelectList/index.d.ts +2 -2
  230. package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +15 -15
  231. package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
  232. package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
  233. package/dist/components/Select/components/index.d.ts +2 -2
  234. package/dist/components/Select/constants.d.ts +2 -2
  235. package/dist/components/Select/helpers.d.ts +4 -4
  236. package/dist/components/Select/index.d.ts +4 -4
  237. package/dist/components/Select/types.d.ts +4 -1
  238. package/dist/components/Selector/Selector.d.ts +22 -22
  239. package/dist/components/Selector/Selector.stories.d.ts +7 -7
  240. package/dist/components/Selector/Selector.styles.d.ts +9 -9
  241. package/dist/components/Selector/index.d.ts +2 -2
  242. package/dist/components/Selector/types.d.ts +10 -10
  243. package/dist/components/Skeleton/Skeleton.d.ts +7 -7
  244. package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -6
  245. package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
  246. package/dist/components/Skeleton/index.d.ts +2 -2
  247. package/dist/components/SmartInput/SmartInput.d.ts +14 -14
  248. package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -18
  249. package/dist/components/SmartInput/constants.d.ts +16 -16
  250. package/dist/components/SmartInput/helpers.d.ts +2 -2
  251. package/dist/components/SmartInput/index.d.ts +2 -2
  252. package/dist/components/SmartInput/types.d.ts +6 -6
  253. package/dist/components/Status/Status.d.ts +16 -16
  254. package/dist/components/Status/Status.stories.d.ts +6 -6
  255. package/dist/components/Status/Status.styles.d.ts +3 -3
  256. package/dist/components/Status/constants.d.ts +2 -2
  257. package/dist/components/Status/index.d.ts +2 -2
  258. package/dist/components/Status/types.d.ts +3 -3
  259. package/dist/components/Switch/Switch.d.ts +20 -20
  260. package/dist/components/Switch/Switch.stories.d.ts +16 -16
  261. package/dist/components/Switch/Switch.styles.d.ts +3 -3
  262. package/dist/components/Switch/index.d.ts +3 -3
  263. package/dist/components/Switch/types.d.ts +4 -4
  264. package/dist/components/TextArea/TextArea.d.ts +29 -38
  265. package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
  266. package/dist/components/TextArea/TextArea.styles.d.ts +9 -3
  267. package/dist/components/TextArea/index.d.ts +3 -3
  268. package/dist/components/TextArea/types.d.ts +2 -2
  269. package/dist/components/TextButton/TextButton.d.ts +31 -31
  270. package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
  271. package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
  272. package/dist/components/TextButton/constants.d.ts +2 -2
  273. package/dist/components/TextButton/index.d.ts +3 -3
  274. package/dist/components/TextButton/types.d.ts +5 -5
  275. package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
  276. package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -12
  277. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
  278. package/dist/components/TextWithInfo/index.d.ts +2 -2
  279. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +27 -27
  280. package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -24
  281. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
  282. package/dist/components/TextWithTooltip/index.d.ts +2 -2
  283. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
  284. package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -17
  285. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
  286. package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
  287. package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
  288. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
  289. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
  290. package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
  291. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
  292. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
  293. package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
  294. package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
  295. package/dist/components/ThemedPreloader/constants.d.ts +1 -1
  296. package/dist/components/ThemedPreloader/index.d.ts +4 -4
  297. package/dist/components/ThemedPreloader/types.d.ts +2 -2
  298. package/dist/components/Toaster/Toaster.d.ts +23 -23
  299. package/dist/components/Toaster/Toaster.stories.d.ts +5 -5
  300. package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
  301. package/dist/components/Toaster/constants.d.ts +1 -1
  302. package/dist/components/Toaster/index.d.ts +3 -3
  303. package/dist/components/Toaster/types.d.ts +1 -1
  304. package/dist/components/Tooltip/Tooltip.d.ts +11 -11
  305. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -5
  306. package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
  307. package/dist/components/Tooltip/index.d.ts +3 -3
  308. package/dist/components/Tooltip/types.d.ts +1 -1
  309. package/dist/components/WithMessages/WithMessages.d.ts +10 -0
  310. package/dist/components/WithMessages/WithMessages.stories.d.ts +7 -0
  311. package/dist/components/WithMessages/WithMessages.styles.d.ts +3 -0
  312. package/dist/components/WithMessages/index.d.ts +2 -0
  313. package/dist/components/WithPopup/WithPopup.d.ts +33 -40
  314. package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -16
  315. package/dist/components/WithPopup/WithPopup.styles.d.ts +3 -3
  316. package/dist/components/WithPopup/constants.d.ts +2 -2
  317. package/dist/components/WithPopup/index.d.ts +2 -2
  318. package/dist/components/WithPopup/types.d.ts +19 -22
  319. package/dist/components/WithTooltip/WithTooltip.d.ts +18 -18
  320. package/dist/components/WithTooltip/WithTooltip.stories.d.ts +6 -6
  321. package/dist/components/WithTooltip/WithTooltip.styles.d.ts +6 -7
  322. package/dist/components/WithTooltip/index.d.ts +2 -2
  323. package/dist/components/index.d.ts +48 -46
  324. package/dist/constants/index.d.ts +2 -2
  325. package/dist/constants/mime-types.d.ts +76 -76
  326. package/dist/constants/phone-info.d.ts +2 -2
  327. package/dist/helpers/index.d.ts +3 -3
  328. package/dist/helpers/misc.d.ts +21 -21
  329. package/dist/helpers/phone.d.ts +14 -14
  330. package/dist/helpers/popper-helpers.d.ts +2 -2
  331. package/dist/hooks/index.d.ts +7 -7
  332. package/dist/hooks/use-did-mount-effect.d.ts +2 -2
  333. package/dist/hooks/use-dropdown.d.ts +11 -11
  334. package/dist/hooks/use-is-mounted.d.ts +1 -1
  335. package/dist/hooks/use-merged-refs.d.ts +2 -2
  336. package/dist/hooks/use-mixed-styles.d.ts +1 -1
  337. package/dist/hooks/use-on-click-outside.d.ts +5 -5
  338. package/dist/hooks/use-tweak-styles.d.ts +21 -21
  339. package/dist/index.d.ts +6 -6
  340. package/dist/theme/Provider.d.ts +11 -11
  341. package/dist/theme/common.d.ts +111 -103
  342. package/dist/theme/helpers.d.ts +10 -10
  343. package/dist/theme/index.d.ts +4 -4
  344. package/dist/theme/types.d.ts +84 -82
  345. package/dist/true-react-common-ui-kit.js +1258 -1110
  346. package/dist/true-react-common-ui-kit.js.map +1 -1
  347. package/dist/true-react-common-ui-kit.umd.cjs +1238 -1090
  348. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  349. package/dist/types.d.ts +45 -44
  350. package/package.json +99 -99
  351. package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
  352. package/src/components/AccountInfo/AccountInfo.styles.ts +52 -52
  353. package/src/components/AccountInfo/AccountInfo.tsx +80 -80
  354. package/src/components/AccountInfo/constants.ts +1 -1
  355. package/src/components/AccountInfo/index.ts +2 -2
  356. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  357. package/src/components/AddButton/AddButton.styles.ts +34 -34
  358. package/src/components/AddButton/AddButton.tsx +52 -52
  359. package/src/components/AddButton/index.ts +2 -2
  360. package/src/components/Button/Button.stories.tsx +50 -54
  361. package/src/components/Button/Button.styles.ts +200 -200
  362. package/src/components/Button/Button.tsx +129 -129
  363. package/src/components/Button/constants.ts +11 -11
  364. package/src/components/Button/index.ts +3 -3
  365. package/src/components/Button/types.ts +5 -5
  366. package/src/components/Checkbox/Checkbox.stories.tsx +54 -54
  367. package/src/components/Checkbox/Checkbox.styles.ts +49 -49
  368. package/src/components/Checkbox/Checkbox.tsx +84 -84
  369. package/src/components/Checkbox/index.ts +2 -2
  370. package/src/components/CloseButton/CloseButton.stories.tsx +11 -11
  371. package/src/components/CloseButton/CloseButton.styles.ts +34 -34
  372. package/src/components/CloseButton/CloseButton.tsx +35 -35
  373. package/src/components/CloseButton/index.ts +2 -2
  374. package/src/components/Colors/Colors.stories.tsx +7 -7
  375. package/src/components/Colors/Colors.styles.ts +36 -36
  376. package/src/components/Colors/Colors.tsx +26 -26
  377. package/src/components/Colors/index.ts +1 -1
  378. package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
  379. package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
  380. package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
  381. package/src/components/ControlWrapper/index.ts +2 -0
  382. package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
  383. package/src/components/CssBaseline/CssBaseline.tsx +13 -13
  384. package/src/components/CssBaseline/index.ts +2 -2
  385. package/src/components/DateInput/DateInput.stories.tsx +61 -61
  386. package/src/components/DateInput/DateInput.styles.ts +13 -18
  387. package/src/components/DateInput/DateInput.tsx +90 -90
  388. package/src/components/DateInput/constants.ts +2 -2
  389. package/src/components/DateInput/index.ts +3 -3
  390. package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
  391. package/src/components/DatePicker/DatePicker.styles.ts +38 -38
  392. package/src/components/DatePicker/DatePicker.tsx +314 -314
  393. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +54 -88
  394. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +81 -89
  395. package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
  396. package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
  397. package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
  398. package/src/components/DatePicker/components/index.ts +2 -2
  399. package/src/components/DatePicker/constants.ts +6 -6
  400. package/src/components/DatePicker/helpers.ts +23 -23
  401. package/src/components/DatePicker/index.ts +4 -4
  402. package/src/components/DatePicker/types.ts +48 -48
  403. package/src/components/Description/Description.stories.tsx +27 -27
  404. package/src/components/Description/Description.styles.ts +30 -30
  405. package/src/components/Description/Description.tsx +61 -61
  406. package/src/components/Description/constants.ts +1 -1
  407. package/src/components/Description/index.ts +2 -2
  408. package/src/components/FileInput/FileInput.stories.tsx +75 -75
  409. package/src/components/FileInput/FileInput.styles.ts +80 -80
  410. package/src/components/FileInput/FileInput.tsx +147 -147
  411. package/src/components/FileInput/helpers.ts +6 -6
  412. package/src/components/FileInput/index.ts +2 -2
  413. package/src/components/FileItem/FileItem.stories.tsx +59 -63
  414. package/src/components/FileItem/FileItem.styles.ts +122 -122
  415. package/src/components/FileItem/FileItem.tsx +157 -157
  416. package/src/components/FileItem/constants.ts +29 -29
  417. package/src/components/FileItem/helpers.ts +27 -27
  418. package/src/components/FileItem/index.ts +4 -4
  419. package/src/components/FileItem/types.ts +11 -11
  420. package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -299
  421. package/src/components/FiltersPane/FiltersPane.styles.ts +92 -92
  422. package/src/components/FiltersPane/FiltersPane.tsx +162 -162
  423. package/src/components/FiltersPane/components/Filter/Filter.tsx +114 -114
  424. package/src/components/FiltersPane/components/Filter/index.ts +1 -1
  425. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +63 -61
  426. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +147 -154
  427. package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
  428. package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
  429. package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
  430. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +143 -141
  431. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +361 -361
  432. package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
  433. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
  434. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
  435. package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
  436. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
  437. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +208 -210
  438. package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
  439. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
  440. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
  441. package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
  442. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +99 -99
  443. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +149 -149
  444. package/src/components/FiltersPane/components/FilterWrapper/helpers.ts +14 -14
  445. package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
  446. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +124 -123
  447. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +162 -165
  448. package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
  449. package/src/components/FiltersPane/components/index.ts +9 -9
  450. package/src/components/FiltersPane/constants.ts +137 -137
  451. package/src/components/FiltersPane/helpers.ts +26 -26
  452. package/src/components/FiltersPane/index.ts +5 -5
  453. package/src/components/FiltersPane/types.ts +157 -157
  454. package/src/components/Flag/Flag.stories.tsx +29 -29
  455. package/src/components/Flag/Flag.styles.ts +17 -17
  456. package/src/components/Flag/Flag.tsx +26 -26
  457. package/src/components/Flag/augment.d.ts +1 -1
  458. package/src/components/Flag/index.ts +2 -2
  459. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +300 -300
  460. package/src/components/FlexibleTable/FlexibleTable.styles.ts +111 -111
  461. package/src/components/FlexibleTable/FlexibleTable.tsx +308 -308
  462. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +43 -43
  463. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +113 -113
  464. package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
  465. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
  466. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +193 -193
  467. package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
  468. package/src/components/FlexibleTable/components/index.ts +2 -2
  469. package/src/components/FlexibleTable/constants.ts +8 -8
  470. package/src/components/FlexibleTable/helpers.ts +16 -16
  471. package/src/components/FlexibleTable/index.ts +4 -4
  472. package/src/components/FlexibleTable/types.ts +82 -82
  473. package/src/components/Icon/Icon.stories.tsx +86 -86
  474. package/src/components/Icon/Icon.styles.ts +10 -10
  475. package/src/components/Icon/Icon.tsx +26 -26
  476. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  477. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  478. package/src/components/Icon/complexIcons/fileExcel.svg +10 -10
  479. package/src/components/Icon/complexIcons/fileImage.svg +12 -12
  480. package/src/components/Icon/complexIcons/fileOther.svg +9 -9
  481. package/src/components/Icon/complexIcons/filePdf.svg +10 -10
  482. package/src/components/Icon/complexIcons/fileWord.svg +10 -10
  483. package/src/components/Icon/complexIcons/fileXml.svg +12 -12
  484. package/src/components/Icon/complexIcons/fileZip.svg +15 -15
  485. package/src/components/Icon/complexIcons/icons.ts +19 -19
  486. package/src/components/Icon/complexIcons/index.ts +1 -1
  487. package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
  488. package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
  489. package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
  490. package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
  491. package/src/components/Icon/components/index.ts +2 -2
  492. package/src/components/Icon/helpers.tsx +9 -9
  493. package/src/components/Icon/icons-list.ts +855 -855
  494. package/src/components/Icon/index.ts +5 -5
  495. package/src/components/Icon/snippet.tsx +6 -6
  496. package/src/components/Icon/types.ts +18 -18
  497. package/src/components/IconButton/IconButton.stories.tsx +32 -32
  498. package/src/components/IconButton/IconButton.styles.ts +84 -84
  499. package/src/components/IconButton/IconButton.tsx +74 -74
  500. package/src/components/IconButton/constants.ts +3 -3
  501. package/src/components/IconButton/index.ts +3 -3
  502. package/src/components/IconButton/types.ts +11 -11
  503. package/src/components/IncrementInput/IncrementInput.stories.tsx +29 -31
  504. package/src/components/IncrementInput/IncrementInput.styles.ts +78 -78
  505. package/src/components/IncrementInput/IncrementInput.tsx +105 -105
  506. package/src/components/IncrementInput/index.ts +2 -2
  507. package/src/components/Input/Input.stories.tsx +83 -91
  508. package/src/components/Input/Input.styles.ts +101 -308
  509. package/src/components/Input/Input.tsx +33 -296
  510. package/src/components/Input/InputBase.tsx +251 -0
  511. package/src/components/Input/index.ts +4 -3
  512. package/src/components/Input/types.ts +4 -33
  513. package/src/components/List/List.stories.tsx +90 -90
  514. package/src/components/List/List.styles.ts +25 -25
  515. package/src/components/List/List.tsx +68 -68
  516. package/src/components/List/components/ListItem/ListItem.styles.ts +52 -52
  517. package/src/components/List/components/ListItem/ListItem.tsx +68 -68
  518. package/src/components/List/components/ListItem/index.ts +2 -2
  519. package/src/components/List/components/index.ts +1 -1
  520. package/src/components/List/index.ts +3 -3
  521. package/src/components/Modal/Modal.stories.tsx +105 -105
  522. package/src/components/Modal/Modal.styles.ts +318 -318
  523. package/src/components/Modal/Modal.tsx +203 -203
  524. package/src/components/Modal/index.ts +3 -3
  525. package/src/components/Modal/types.ts +17 -17
  526. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  527. package/src/components/MoreMenu/MoreMenu.styles.ts +69 -69
  528. package/src/components/MoreMenu/MoreMenu.tsx +93 -93
  529. package/src/components/MoreMenu/index.ts +2 -2
  530. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
  531. package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
  532. package/src/components/MultiSelect/MultiSelect.tsx +106 -106
  533. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
  534. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
  535. package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
  536. package/src/components/MultiSelect/components/index.ts +1 -1
  537. package/src/components/MultiSelect/index.ts +4 -4
  538. package/src/components/MultiSelect/types.ts +1 -1
  539. package/src/components/MultiSelectList/MultiSelectList.styles.ts +138 -136
  540. package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
  541. package/src/components/MultiSelectList/constants.ts +21 -21
  542. package/src/components/MultiSelectList/helpers.ts +11 -11
  543. package/src/components/MultiSelectList/index.ts +3 -3
  544. package/src/components/MultiSelectList/types.ts +15 -15
  545. package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +74 -74
  546. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +39 -39
  547. package/src/components/NewMoreMenu/NewMoreMenu.tsx +79 -79
  548. package/src/components/NewMoreMenu/index.ts +2 -2
  549. package/src/components/Notification/Notification.stories.tsx +51 -55
  550. package/src/components/Notification/Notification.styles.ts +57 -57
  551. package/src/components/Notification/Notification.tsx +77 -77
  552. package/src/components/Notification/index.ts +3 -3
  553. package/src/components/Notification/types.ts +1 -1
  554. package/src/components/NumberInput/NumberInput.stories.tsx +33 -35
  555. package/src/components/NumberInput/NumberInput.tsx +134 -137
  556. package/src/components/NumberInput/helpers.ts +84 -84
  557. package/src/components/NumberInput/index.ts +1 -1
  558. package/src/components/PhoneInput/PhoneInput.stories.tsx +66 -70
  559. package/src/components/PhoneInput/PhoneInput.styles.ts +92 -89
  560. package/src/components/PhoneInput/PhoneInput.tsx +211 -214
  561. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
  562. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +105 -103
  563. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
  564. package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
  565. package/src/components/PhoneInput/components/index.ts +1 -1
  566. package/src/components/PhoneInput/constants.ts +3 -3
  567. package/src/components/PhoneInput/index.ts +4 -4
  568. package/src/components/PhoneInput/types.ts +20 -16
  569. package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
  570. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  571. package/src/components/RadioButton/RadioButton.tsx +57 -57
  572. package/src/components/RadioButton/index.ts +2 -2
  573. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
  574. package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
  575. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  576. package/src/components/SearchInput/SearchInput.stories.tsx +24 -23
  577. package/src/components/SearchInput/SearchInput.styles.ts +44 -54
  578. package/src/components/SearchInput/SearchInput.tsx +49 -70
  579. package/src/components/SearchInput/index.ts +2 -2
  580. package/src/components/Select/CustomSelect.stories.tsx +250 -253
  581. package/src/components/Select/MultiSelect.stories.tsx +232 -240
  582. package/src/components/Select/Select.stories.tsx +228 -236
  583. package/src/components/Select/Select.styles.ts +139 -147
  584. package/src/components/Select/Select.tsx +628 -658
  585. package/src/components/Select/components/SelectList/SelectList.styles.ts +73 -73
  586. package/src/components/Select/components/SelectList/SelectList.tsx +152 -152
  587. package/src/components/Select/components/SelectList/index.ts +2 -2
  588. package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
  589. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +76 -76
  590. package/src/components/Select/components/SelectListItem/index.ts +1 -1
  591. package/src/components/Select/components/index.ts +2 -2
  592. package/src/components/Select/constants.ts +2 -2
  593. package/src/components/Select/helpers.ts +20 -20
  594. package/src/components/Select/index.ts +4 -4
  595. package/src/components/Select/types.ts +6 -1
  596. package/src/components/Selector/Selector.stories.tsx +62 -62
  597. package/src/components/Selector/Selector.styles.ts +165 -165
  598. package/src/components/Selector/Selector.tsx +115 -115
  599. package/src/components/Selector/index.ts +2 -2
  600. package/src/components/Selector/types.ts +12 -12
  601. package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
  602. package/src/components/Skeleton/Skeleton.styles.ts +46 -46
  603. package/src/components/Skeleton/Skeleton.tsx +12 -12
  604. package/src/components/Skeleton/index.ts +2 -2
  605. package/src/components/SmartInput/SmartInput.stories.tsx +51 -52
  606. package/src/components/SmartInput/SmartInput.tsx +116 -116
  607. package/src/components/SmartInput/constants.ts +91 -91
  608. package/src/components/SmartInput/helpers.ts +26 -26
  609. package/src/components/SmartInput/index.ts +2 -2
  610. package/src/components/SmartInput/types.ts +18 -18
  611. package/src/components/Status/Status.stories.tsx +69 -73
  612. package/src/components/Status/Status.styles.ts +143 -143
  613. package/src/components/Status/Status.tsx +49 -49
  614. package/src/components/Status/constants.ts +11 -11
  615. package/src/components/Status/index.ts +3 -3
  616. package/src/components/Status/types.ts +5 -5
  617. package/src/components/Switch/Switch.stories.tsx +40 -40
  618. package/src/components/Switch/Switch.styles.ts +75 -75
  619. package/src/components/Switch/Switch.tsx +75 -75
  620. package/src/components/Switch/index.ts +3 -3
  621. package/src/components/Switch/types.ts +4 -4
  622. package/src/components/TextArea/TextArea.stories.tsx +35 -37
  623. package/src/components/TextArea/TextArea.styles.ts +82 -177
  624. package/src/components/TextArea/TextArea.tsx +161 -183
  625. package/src/components/TextArea/index.ts +3 -3
  626. package/src/components/TextArea/types.ts +6 -6
  627. package/src/components/TextButton/TextButton.stories.tsx +43 -47
  628. package/src/components/TextButton/TextButton.styles.ts +130 -130
  629. package/src/components/TextButton/TextButton.tsx +110 -110
  630. package/src/components/TextButton/constants.ts +3 -3
  631. package/src/components/TextButton/index.ts +3 -3
  632. package/src/components/TextButton/types.ts +11 -11
  633. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
  634. package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
  635. package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
  636. package/src/components/TextWithInfo/index.ts +2 -2
  637. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  638. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
  639. package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
  640. package/src/components/TextWithTooltip/index.ts +2 -2
  641. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
  642. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
  643. package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
  644. package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
  645. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  646. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +55 -55
  647. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
  648. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  649. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  650. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
  651. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  652. package/src/components/ThemedPreloader/components/index.ts +3 -3
  653. package/src/components/ThemedPreloader/constants.ts +1 -1
  654. package/src/components/ThemedPreloader/index.ts +4 -4
  655. package/src/components/ThemedPreloader/types.ts +3 -3
  656. package/src/components/Toaster/Toaster.stories.tsx +30 -30
  657. package/src/components/Toaster/Toaster.styles.ts +60 -60
  658. package/src/components/Toaster/Toaster.tsx +96 -96
  659. package/src/components/Toaster/constants.ts +1 -1
  660. package/src/components/Toaster/index.ts +3 -3
  661. package/src/components/Toaster/types.ts +1 -1
  662. package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
  663. package/src/components/Tooltip/Tooltip.styles.ts +49 -49
  664. package/src/components/Tooltip/Tooltip.tsx +35 -35
  665. package/src/components/Tooltip/index.ts +3 -3
  666. package/src/components/Tooltip/types.ts +1 -1
  667. package/src/components/WithMessages/WithMessages.stories.tsx +40 -0
  668. package/src/components/WithMessages/WithMessages.styles.ts +47 -0
  669. package/src/components/WithMessages/WithMessages.tsx +59 -0
  670. package/src/components/WithMessages/index.ts +2 -0
  671. package/src/components/WithPopup/WithPopup.stories.tsx +100 -101
  672. package/src/components/WithPopup/WithPopup.styles.ts +45 -47
  673. package/src/components/WithPopup/WithPopup.tsx +184 -210
  674. package/src/components/WithPopup/constants.ts +3 -3
  675. package/src/components/WithPopup/index.ts +2 -2
  676. package/src/components/WithPopup/types.ts +25 -32
  677. package/src/components/WithTooltip/WithTooltip.stories.tsx +56 -56
  678. package/src/components/WithTooltip/WithTooltip.styles.ts +7 -13
  679. package/src/components/WithTooltip/WithTooltip.tsx +67 -72
  680. package/src/components/WithTooltip/index.ts +2 -2
  681. package/src/components/index.ts +48 -46
  682. package/src/constants/index.ts +2 -2
  683. package/src/constants/mime-types.ts +77 -77
  684. package/src/constants/phone-info.ts +2147 -2147
  685. package/src/helpers/index.ts +3 -3
  686. package/src/helpers/misc.ts +160 -160
  687. package/src/helpers/phone.ts +91 -91
  688. package/src/helpers/popper-helpers.ts +17 -17
  689. package/src/hooks/index.ts +7 -7
  690. package/src/hooks/use-did-mount-effect.ts +18 -18
  691. package/src/hooks/use-dropdown.ts +84 -84
  692. package/src/hooks/use-is-mounted.ts +15 -15
  693. package/src/hooks/use-merged-refs.ts +4 -4
  694. package/src/hooks/use-mixed-styles.ts +14 -14
  695. package/src/hooks/use-on-click-outside.ts +77 -77
  696. package/src/hooks/use-tweak-styles.ts +57 -57
  697. package/src/index.ts +6 -6
  698. package/src/theme/Provider.tsx +21 -21
  699. package/src/theme/common.ts +175 -166
  700. package/src/theme/helpers.ts +76 -76
  701. package/src/theme/index.ts +4 -4
  702. package/src/theme/types.ts +162 -158
  703. package/src/types.ts +65 -62
  704. package/src/vite-env.d.ts +1 -1
  705. package/dist/components/Input/constants.d.ts +0 -1
  706. package/dist/components/WithPopup/helpers.d.ts +0 -2
  707. package/src/components/Input/constants.ts +0 -1
  708. package/src/components/WithPopup/helpers.ts +0 -9
@@ -4,7 +4,7 @@ import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNo
4
4
  import { CSSTransition } from "react-transition-group";
5
5
  import clsx from "clsx";
6
6
  import hexToRgba from "hex-to-rgba";
7
- import { size, useFloating, offset as offset$2, flip as flip$2, arrow as arrow$2, autoUpdate, useHover, safePolygon, useFocus, useClick, useDismiss, useInteractions, useTransitionStatus, FloatingPortal, FloatingArrow } from "@floating-ui/react";
7
+ import { useFloating, offset as offset$2, flip as flip$2, autoUpdate, useHover, safePolygon, useFocus, useClick, useDismiss, useInteractions, useTransitionStatus, FloatingPortal } from "@floating-ui/react";
8
8
  import InputMask from "react-input-mask";
9
9
  import { getYear, getMonth, format, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
10
10
  import { Portal } from "react-overlays";
@@ -976,7 +976,17 @@ var dimensions = {
976
976
  BORDER_RADIUS_STD: 8,
977
977
  BORDER_RADIUS_SMALL: 6,
978
978
  BORDER_RADIUS_EXTRA_SMALL: 4,
979
- CONTROL_HEIGHT: 48
979
+ CONTROL: {
980
+ HEIGHT: 48,
981
+ PADDING: 16,
982
+ ICON_SIZE: 24,
983
+ ICON_INNER_SIZE: 24,
984
+ ICON_GAP: 8
985
+ },
986
+ Z_INDEX: {
987
+ CONTROL_INVALID: 1,
988
+ CONTROL_FOCUS: 2
989
+ }
980
990
  };
981
991
  var helpers = {
982
992
  withAngle: function() {
@@ -1047,11 +1057,9 @@ var helpers = {
1047
1057
  overflow: "auto",
1048
1058
  // Chromium
1049
1059
  "@supports selector(::-webkit-scrollbar)": {
1050
- "--webkit-scrollbar-width": "10px",
1051
- "--webkit-scrollbar-height": "10px",
1052
1060
  "&::-webkit-scrollbar": {
1053
- width: "var(--webkit-scrollbar-width)",
1054
- height: "var(--webkit-scrollbar-height)",
1061
+ height: 10,
1062
+ width: 10,
1055
1063
  "&-thumb": {
1056
1064
  width: 6,
1057
1065
  minHeight: 30,
@@ -1388,9 +1396,9 @@ function mapCacheHas(key) {
1388
1396
  return getMapData(this, key).has(key);
1389
1397
  }
1390
1398
  function mapCacheSet(key, value) {
1391
- var data = getMapData(this, key), size2 = data.size;
1399
+ var data = getMapData(this, key), size = data.size;
1392
1400
  data.set(key, value);
1393
- this.size += data.size == size2 ? 0 : 1;
1401
+ this.size += data.size == size ? 0 : 1;
1394
1402
  return this;
1395
1403
  }
1396
1404
  function MapCache(entries) {
@@ -1874,7 +1882,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
1874
1882
  baseMerge(object, source, srcIndex);
1875
1883
  });
1876
1884
  const merge$1 = merge;
1877
- function _define_property$15(obj, key, value) {
1885
+ function _define_property$18(obj, key, value) {
1878
1886
  if (key in obj) {
1879
1887
  Object.defineProperty(obj, key, {
1880
1888
  value,
@@ -1887,7 +1895,7 @@ function _define_property$15(obj, key, value) {
1887
1895
  }
1888
1896
  return obj;
1889
1897
  }
1890
- function _object_spread$13(target) {
1898
+ function _object_spread$16(target) {
1891
1899
  for (var i = 1; i < arguments.length; i++) {
1892
1900
  var source = arguments[i] != null ? arguments[i] : {};
1893
1901
  var ownKeys2 = Object.keys(source);
@@ -1897,12 +1905,12 @@ function _object_spread$13(target) {
1897
1905
  }));
1898
1906
  }
1899
1907
  ownKeys2.forEach(function(key) {
1900
- _define_property$15(target, key, source[key]);
1908
+ _define_property$18(target, key, source[key]);
1901
1909
  });
1902
1910
  }
1903
1911
  return target;
1904
1912
  }
1905
- function ownKeys$U(object, enumerableOnly) {
1913
+ function ownKeys$X(object, enumerableOnly) {
1906
1914
  var keys2 = Object.keys(object);
1907
1915
  if (Object.getOwnPropertySymbols) {
1908
1916
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1915,12 +1923,12 @@ function ownKeys$U(object, enumerableOnly) {
1915
1923
  }
1916
1924
  return keys2;
1917
1925
  }
1918
- function _object_spread_props$U(target, source) {
1926
+ function _object_spread_props$X(target, source) {
1919
1927
  source = source != null ? source : {};
1920
1928
  if (Object.getOwnPropertyDescriptors) {
1921
1929
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1922
1930
  } else {
1923
- ownKeys$U(Object(source)).forEach(function(key) {
1931
+ ownKeys$X(Object(source)).forEach(function(key) {
1924
1932
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1925
1933
  });
1926
1934
  }
@@ -1975,7 +1983,7 @@ function createThemedStyles() {
1975
1983
  return mergeStyles(styles, isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
1976
1984
  });
1977
1985
  return function(data) {
1978
- return useStyles2(isNotEmpty(data) ? _object_spread_props$U(_object_spread$13({}, data), {
1986
+ return useStyles2(isNotEmpty(data) ? _object_spread_props$X(_object_spread$16({}, data), {
1979
1987
  theme: cleanStyles(data.theme)
1980
1988
  }) : data);
1981
1989
  };
@@ -6509,7 +6517,7 @@ function _array_without_holes$8(arr) {
6509
6517
  if (Array.isArray(arr))
6510
6518
  return _array_like_to_array$n(arr);
6511
6519
  }
6512
- function _define_property$14(obj, key, value) {
6520
+ function _define_property$17(obj, key, value) {
6513
6521
  if (key in obj) {
6514
6522
  Object.defineProperty(obj, key, {
6515
6523
  value,
@@ -6529,7 +6537,7 @@ function _iterable_to_array$8(iter) {
6529
6537
  function _non_iterable_spread$8() {
6530
6538
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6531
6539
  }
6532
- function _object_spread$12(target) {
6540
+ function _object_spread$15(target) {
6533
6541
  for (var i = 1; i < arguments.length; i++) {
6534
6542
  var source = arguments[i] != null ? arguments[i] : {};
6535
6543
  var ownKeys2 = Object.keys(source);
@@ -6539,7 +6547,7 @@ function _object_spread$12(target) {
6539
6547
  }));
6540
6548
  }
6541
6549
  ownKeys2.forEach(function(key) {
6542
- _define_property$14(target, key, source[key]);
6550
+ _define_property$17(target, key, source[key]);
6543
6551
  });
6544
6552
  }
6545
6553
  return target;
@@ -6595,7 +6603,7 @@ var useDropdown = function(param) {
6595
6603
  },
6596
6604
  {
6597
6605
  name: "flip",
6598
- options: _object_spread$12({
6606
+ options: _object_spread$15({
6599
6607
  fallbackPlacements: canBeFlipped ? [
6600
6608
  "bottom-start",
6601
6609
  "top-start"
@@ -6669,71 +6677,71 @@ var useMergedRefs = function(refs) {
6669
6677
  return mergeRefs(refs);
6670
6678
  }, refs);
6671
6679
  };
6672
- const avatarGreen = ` <svg\r
6673
- width="100%"\r
6674
- height="100%"\r
6675
- viewBox="0 0 32 32"\r
6676
- fill="none"\r
6677
- xmlns="http://www.w3.org/2000/svg"\r
6678
- >\r
6679
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
6680
- <mask\r
6681
- id="mask0_0_12744"\r
6682
- style="mask-type: 'alpha';"\r
6683
- maskUnits="userSpaceOnUse"\r
6684
- x="0"\r
6685
- y="0"\r
6686
- width="32"\r
6687
- height="32"\r
6688
- >\r
6689
- <circle cx="16" cy="16" r="16" fill="white" />\r
6690
- </mask>\r
6691
- <g mask="url(#mask0_0_12744)">\r
6692
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
6693
- <mask\r
6694
- id="mask1_0_12744"\r
6695
- style="mask-type: 'alpha';"\r
6696
- maskUnits="userSpaceOnUse"\r
6697
- x="3"\r
6698
- y="16"\r
6699
- width="26"\r
6700
- height="26"\r
6701
- >\r
6702
- <circle cx="16" cy="29" r="13" fill="white" />\r
6703
- </mask>\r
6704
- <g mask="url(#mask1_0_12744)">\r
6705
- <ellipse\r
6706
- cx="16"\r
6707
- cy="17.5"\r
6708
- rx="6"\r
6709
- ry="7.5"\r
6710
- fill="#505F79"\r
6711
- fill-opacity="0.204983"\r
6712
- />\r
6713
- </g>\r
6714
- </g>\r
6715
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
6716
- <defs>\r
6717
- <linearGradient\r
6718
- id="paint0_linear_0_12744"\r
6719
- x1="13.347"\r
6720
- y1="46.279"\r
6721
- x2="33.5318"\r
6722
- y2="30.8088"\r
6723
- gradientUnits="userSpaceOnUse"\r
6724
- >\r
6725
- <stop stop-color="#ABD229" />\r
6726
- <stop offset="1" stop-color="#9CD03F" />\r
6727
- </linearGradient>\r
6728
- </defs>\r
6680
+ const avatarGreen = ` <svg
6681
+ width="100%"
6682
+ height="100%"
6683
+ viewBox="0 0 32 32"
6684
+ fill="none"
6685
+ xmlns="http://www.w3.org/2000/svg"
6686
+ >
6687
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
6688
+ <mask
6689
+ id="mask0_0_12744"
6690
+ style="mask-type: 'alpha';"
6691
+ maskUnits="userSpaceOnUse"
6692
+ x="0"
6693
+ y="0"
6694
+ width="32"
6695
+ height="32"
6696
+ >
6697
+ <circle cx="16" cy="16" r="16" fill="white" />
6698
+ </mask>
6699
+ <g mask="url(#mask0_0_12744)">
6700
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
6701
+ <mask
6702
+ id="mask1_0_12744"
6703
+ style="mask-type: 'alpha';"
6704
+ maskUnits="userSpaceOnUse"
6705
+ x="3"
6706
+ y="16"
6707
+ width="26"
6708
+ height="26"
6709
+ >
6710
+ <circle cx="16" cy="29" r="13" fill="white" />
6711
+ </mask>
6712
+ <g mask="url(#mask1_0_12744)">
6713
+ <ellipse
6714
+ cx="16"
6715
+ cy="17.5"
6716
+ rx="6"
6717
+ ry="7.5"
6718
+ fill="#505F79"
6719
+ fill-opacity="0.204983"
6720
+ />
6721
+ </g>
6722
+ </g>
6723
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
6724
+ <defs>
6725
+ <linearGradient
6726
+ id="paint0_linear_0_12744"
6727
+ x1="13.347"
6728
+ y1="46.279"
6729
+ x2="33.5318"
6730
+ y2="30.8088"
6731
+ gradientUnits="userSpaceOnUse"
6732
+ >
6733
+ <stop stop-color="#ABD229" />
6734
+ <stop offset="1" stop-color="#9CD03F" />
6735
+ </linearGradient>
6736
+ </defs>
6729
6737
  </svg>`;
6730
- 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>';
6731
- 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>';
6732
- 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>';
6733
- 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>';
6734
- 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>';
6735
- 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>';
6736
- 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>';
6738
+ 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>';
6739
+ 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>';
6740
+ 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>';
6741
+ 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>';
6742
+ 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>';
6743
+ 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>';
6744
+ 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>';
6737
6745
  var complexIcons = {
6738
6746
  avatar: avatarGreen,
6739
6747
  "file-excel": fileExcel,
@@ -6744,7 +6752,7 @@ var complexIcons = {
6744
6752
  "file-xml": fileXml,
6745
6753
  "file-zip": fileZip
6746
6754
  };
6747
- function _define_property$13(obj, key, value) {
6755
+ function _define_property$16(obj, key, value) {
6748
6756
  if (key in obj) {
6749
6757
  Object.defineProperty(obj, key, {
6750
6758
  value,
@@ -6757,7 +6765,7 @@ function _define_property$13(obj, key, value) {
6757
6765
  }
6758
6766
  return obj;
6759
6767
  }
6760
- function _object_spread$11(target) {
6768
+ function _object_spread$14(target) {
6761
6769
  for (var i = 1; i < arguments.length; i++) {
6762
6770
  var source = arguments[i] != null ? arguments[i] : {};
6763
6771
  var ownKeys2 = Object.keys(source);
@@ -6767,7 +6775,7 @@ function _object_spread$11(target) {
6767
6775
  }));
6768
6776
  }
6769
6777
  ownKeys2.forEach(function(key) {
6770
- _define_property$13(target, key, source[key]);
6778
+ _define_property$16(target, key, source[key]);
6771
6779
  });
6772
6780
  }
6773
6781
  return target;
@@ -6776,7 +6784,7 @@ var ComplexIconBoilerplate = function(param) {
6776
6784
  var type = param.type;
6777
6785
  var theme = useContext(ThemeContext).theme;
6778
6786
  var icons = useMemo(function() {
6779
- return _object_spread$11({}, complexIcons, theme.complexIcons);
6787
+ return _object_spread$14({}, complexIcons, theme.complexIcons);
6780
6788
  }, []);
6781
6789
  var ComplexIcon = icons[type];
6782
6790
  return /* @__PURE__ */ jsx("div", {
@@ -7647,7 +7655,7 @@ var iconsList = checkIcons({
7647
7655
  ]
7648
7656
  }
7649
7657
  });
7650
- function _define_property$12(obj, key, value) {
7658
+ function _define_property$15(obj, key, value) {
7651
7659
  if (key in obj) {
7652
7660
  Object.defineProperty(obj, key, {
7653
7661
  value,
@@ -7660,7 +7668,7 @@ function _define_property$12(obj, key, value) {
7660
7668
  }
7661
7669
  return obj;
7662
7670
  }
7663
- function _object_spread$10(target) {
7671
+ function _object_spread$13(target) {
7664
7672
  for (var i = 1; i < arguments.length; i++) {
7665
7673
  var source = arguments[i] != null ? arguments[i] : {};
7666
7674
  var ownKeys2 = Object.keys(source);
@@ -7670,12 +7678,12 @@ function _object_spread$10(target) {
7670
7678
  }));
7671
7679
  }
7672
7680
  ownKeys2.forEach(function(key) {
7673
- _define_property$12(target, key, source[key]);
7681
+ _define_property$15(target, key, source[key]);
7674
7682
  });
7675
7683
  }
7676
7684
  return target;
7677
7685
  }
7678
- function ownKeys$T(object, enumerableOnly) {
7686
+ function ownKeys$W(object, enumerableOnly) {
7679
7687
  var keys2 = Object.keys(object);
7680
7688
  if (Object.getOwnPropertySymbols) {
7681
7689
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7688,12 +7696,12 @@ function ownKeys$T(object, enumerableOnly) {
7688
7696
  }
7689
7697
  return keys2;
7690
7698
  }
7691
- function _object_spread_props$T(target, source) {
7699
+ function _object_spread_props$W(target, source) {
7692
7700
  source = source != null ? source : {};
7693
7701
  if (Object.getOwnPropertyDescriptors) {
7694
7702
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7695
7703
  } else {
7696
- ownKeys$T(Object(source)).forEach(function(key) {
7704
+ ownKeys$W(Object(source)).forEach(function(key) {
7697
7705
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7698
7706
  });
7699
7707
  }
@@ -7704,7 +7712,7 @@ var IconBoilerplate = function(param) {
7704
7712
  var _icon_paths, _icon_rects, _icon_circles;
7705
7713
  var theme = useContext(ThemeContext).theme;
7706
7714
  var icons = useMemo(function() {
7707
- return _object_spread$10({}, iconsList, theme.icons);
7715
+ return _object_spread$13({}, iconsList, theme.icons);
7708
7716
  }, []);
7709
7717
  var icon = icons[type];
7710
7718
  var _icon_viewBox;
@@ -7717,7 +7725,7 @@ var IconBoilerplate = function(param) {
7717
7725
  children: [
7718
7726
  (_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
7719
7727
  var _path_fill, _path_stroke;
7720
- return jsx("path", _object_spread$10({
7728
+ return jsx("path", _object_spread$13({
7721
7729
  fillRule: "evenodd",
7722
7730
  clipRule: "evenodd",
7723
7731
  fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
@@ -7725,25 +7733,25 @@ var IconBoilerplate = function(param) {
7725
7733
  }, path), index);
7726
7734
  }),
7727
7735
  (_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
7728
- return /* @__PURE__ */ createElement("rect", _object_spread_props$T(_object_spread$10({}, rect), {
7736
+ return /* @__PURE__ */ createElement("rect", _object_spread_props$W(_object_spread$13({}, rect), {
7729
7737
  key: index
7730
7738
  }));
7731
7739
  }),
7732
7740
  (_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
7733
- return /* @__PURE__ */ createElement("circle", _object_spread_props$T(_object_spread$10({}, circle), {
7741
+ return /* @__PURE__ */ createElement("circle", _object_spread_props$W(_object_spread$13({}, circle), {
7734
7742
  key: index
7735
7743
  }));
7736
7744
  })
7737
7745
  ]
7738
7746
  });
7739
7747
  };
7740
- var useStyles$V = createThemedStyles("Icon", {
7748
+ var useStyles$X = createThemedStyles("Icon", {
7741
7749
  root: {
7742
7750
  display: "flex",
7743
7751
  alignItems: "center"
7744
7752
  }
7745
7753
  });
7746
- function _define_property$11(obj, key, value) {
7754
+ function _define_property$14(obj, key, value) {
7747
7755
  if (key in obj) {
7748
7756
  Object.defineProperty(obj, key, {
7749
7757
  value,
@@ -7756,7 +7764,7 @@ function _define_property$11(obj, key, value) {
7756
7764
  }
7757
7765
  return obj;
7758
7766
  }
7759
- function _object_spread$$(target) {
7767
+ function _object_spread$12(target) {
7760
7768
  for (var i = 1; i < arguments.length; i++) {
7761
7769
  var source = arguments[i] != null ? arguments[i] : {};
7762
7770
  var ownKeys2 = Object.keys(source);
@@ -7766,12 +7774,12 @@ function _object_spread$$(target) {
7766
7774
  }));
7767
7775
  }
7768
7776
  ownKeys2.forEach(function(key) {
7769
- _define_property$11(target, key, source[key]);
7777
+ _define_property$14(target, key, source[key]);
7770
7778
  });
7771
7779
  }
7772
7780
  return target;
7773
7781
  }
7774
- function ownKeys$S(object, enumerableOnly) {
7782
+ function ownKeys$V(object, enumerableOnly) {
7775
7783
  var keys2 = Object.keys(object);
7776
7784
  if (Object.getOwnPropertySymbols) {
7777
7785
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7784,12 +7792,12 @@ function ownKeys$S(object, enumerableOnly) {
7784
7792
  }
7785
7793
  return keys2;
7786
7794
  }
7787
- function _object_spread_props$S(target, source) {
7795
+ function _object_spread_props$V(target, source) {
7788
7796
  source = source != null ? source : {};
7789
7797
  if (Object.getOwnPropertyDescriptors) {
7790
7798
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7791
7799
  } else {
7792
- ownKeys$S(Object(source)).forEach(function(key) {
7800
+ ownKeys$V(Object(source)).forEach(function(key) {
7793
7801
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7794
7802
  });
7795
7803
  }
@@ -7797,10 +7805,10 @@ function _object_spread_props$S(target, source) {
7797
7805
  }
7798
7806
  var Icon = function(param) {
7799
7807
  var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
7800
- var classes = useStyles$V({
7808
+ var classes = useStyles$X({
7801
7809
  theme: tweakStyles
7802
7810
  });
7803
- return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
7811
+ return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$12({
7804
7812
  className: classes.root
7805
7813
  }, addDataTestId(testId), addDataAttributes(data)), {
7806
7814
  children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
@@ -7816,15 +7824,7 @@ var renderIcon = function(icon) {
7816
7824
  }) : icon;
7817
7825
  };
7818
7826
  var DEFAULT_OFFSET = 6;
7819
- var minWidthRelativeToTrigger = size({
7820
- apply: function apply2(param) {
7821
- var rects = param.rects, elements = param.elements;
7822
- Object.assign(elements.floating.style, {
7823
- minWidth: "".concat(rects.reference.width, "px")
7824
- });
7825
- }
7826
- });
7827
- var useStyles$U = createThemedStyles("WithPopup", {
7827
+ var useStyles$W = createThemedStyles("WithPopup", {
7828
7828
  trigger: {
7829
7829
  width: "fit-content"
7830
7830
  },
@@ -7839,7 +7839,6 @@ var useStyles$U = createThemedStyles("WithPopup", {
7839
7839
  zIndex: 5,
7840
7840
  outline: "none"
7841
7841
  },
7842
- arrow: {},
7843
7842
  animationEnd: {},
7844
7843
  animationStart: {},
7845
7844
  "dropdown-initial": {
@@ -7871,7 +7870,7 @@ function _array_without_holes$7(arr) {
7871
7870
  if (Array.isArray(arr))
7872
7871
  return _array_like_to_array$m(arr);
7873
7872
  }
7874
- function _define_property$10(obj, key, value) {
7873
+ function _define_property$13(obj, key, value) {
7875
7874
  if (key in obj) {
7876
7875
  Object.defineProperty(obj, key, {
7877
7876
  value,
@@ -7922,7 +7921,7 @@ function _non_iterable_rest$m() {
7922
7921
  function _non_iterable_spread$7() {
7923
7922
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7924
7923
  }
7925
- function _object_spread$_(target) {
7924
+ function _object_spread$11(target) {
7926
7925
  for (var i = 1; i < arguments.length; i++) {
7927
7926
  var source = arguments[i] != null ? arguments[i] : {};
7928
7927
  var ownKeys2 = Object.keys(source);
@@ -7932,12 +7931,12 @@ function _object_spread$_(target) {
7932
7931
  }));
7933
7932
  }
7934
7933
  ownKeys2.forEach(function(key) {
7935
- _define_property$10(target, key, source[key]);
7934
+ _define_property$13(target, key, source[key]);
7936
7935
  });
7937
7936
  }
7938
7937
  return target;
7939
7938
  }
7940
- function ownKeys$R(object, enumerableOnly) {
7939
+ function ownKeys$U(object, enumerableOnly) {
7941
7940
  var keys2 = Object.keys(object);
7942
7941
  if (Object.getOwnPropertySymbols) {
7943
7942
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7950,12 +7949,12 @@ function ownKeys$R(object, enumerableOnly) {
7950
7949
  }
7951
7950
  return keys2;
7952
7951
  }
7953
- function _object_spread_props$R(target, source) {
7952
+ function _object_spread_props$U(target, source) {
7954
7953
  source = source != null ? source : {};
7955
7954
  if (Object.getOwnPropertyDescriptors) {
7956
7955
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7957
7956
  } else {
7958
- ownKeys$R(Object(source)).forEach(function(key) {
7957
+ ownKeys$U(Object(source)).forEach(function(key) {
7959
7958
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7960
7959
  });
7961
7960
  }
@@ -7981,12 +7980,11 @@ function _unsupported_iterable_to_array$m(o, minLen) {
7981
7980
  return _array_like_to_array$m(o, minLen);
7982
7981
  }
7983
7982
  var WithPopup = function(param) {
7984
- var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, arrowProps = param.arrowProps, popupData = param.popupData, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? eventType === "click" : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldShowArrow = param.shouldShowArrow, shouldShowArrow = _param_shouldShowArrow === void 0 ? false : _param_shouldShowArrow, _param_isMinWidthSameAsTrigger = param.isMinWidthSameAsTrigger, isMinWidthSameAsTrigger = _param_isMinWidthSameAsTrigger === void 0 ? false : _param_isMinWidthSameAsTrigger, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
7985
- var classes = useStyles$U({
7983
+ var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? true : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
7984
+ var classes = useStyles$W({
7986
7985
  theme: tweakStyles
7987
7986
  });
7988
7987
  var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
7989
- var arrowRef = useRef(null);
7990
7988
  var handleToggle = function(isActive, event) {
7991
7989
  event === null || event === void 0 ? void 0 : event.stopPropagation();
7992
7990
  if (!isDisabled) {
@@ -8003,13 +8001,8 @@ var WithPopup = function(param) {
8003
8001
  offset$2(popupOffset),
8004
8002
  canBeFlipped && flip$2({
8005
8003
  fallbackAxisSideDirection: "start"
8006
- }),
8007
- isMinWidthSameAsTrigger && minWidthRelativeToTrigger
8008
- ].concat(_to_consumable_array$7(middlewares), [
8009
- shouldShowArrow && arrow$2({
8010
- element: arrowRef
8011
8004
  })
8012
- ]),
8005
+ ].concat(_to_consumable_array$7(middlewares)),
8013
8006
  whileElementsMounted: autoUpdate,
8014
8007
  placement,
8015
8008
  onOpenChange: handleToggle
@@ -8043,17 +8036,17 @@ var WithPopup = function(param) {
8043
8036
  close: 500
8044
8037
  }
8045
8038
  }), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
8046
- var referenceProps = getReferenceProps(_object_spread$_({
8039
+ var referenceProps = getReferenceProps(_object_spread$11({
8047
8040
  ref: refs.setReference
8048
8041
  }, shouldStopPropagation && {
8049
8042
  onClick: stopPropagation
8050
8043
  }));
8051
8044
  var triggerElement = applyAction(trigger, {
8052
8045
  referenceProps: !isTriggerWrapped ? referenceProps : void 0,
8053
- triggerProps: _object_spread$_({
8046
+ triggerProps: _object_spread$11({
8054
8047
  isActive: isOpen,
8055
8048
  isDisabled
8056
- }, !isTriggerWrapped && _object_spread$_({
8049
+ }, !isTriggerWrapped && _object_spread$11({
8057
8050
  data,
8058
8051
  testId
8059
8052
  }, referenceProps))
@@ -8061,31 +8054,23 @@ var WithPopup = function(param) {
8061
8054
  var _obj2;
8062
8055
  return /* @__PURE__ */ jsxs(Fragment, {
8063
8056
  children: [
8064
- isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$_({
8065
- className: clsx(classes.trigger, (_obj2 = {}, _define_property$10(_obj2, classes.clickable, eventType === "click"), _define_property$10(_obj2, classes.disabled, isDisabled), _define_property$10(_obj2, classes.active, isOpen), _obj2))
8066
- }, referenceProps, addDataAttributes$1(data, testId)), {
8057
+ isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
8058
+ className: clsx(classes.trigger, (_obj2 = {}, _define_property$13(_obj2, classes.clickable, eventType === "click"), _define_property$13(_obj2, classes.disabled, isDisabled), _define_property$13(_obj2, classes.active, isOpen), _obj2))
8059
+ }, referenceProps, addDataTestId(testId), addDataAttributes$1(data)), {
8067
8060
  children: triggerElement
8068
8061
  })) : triggerElement,
8069
8062
  isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
8070
- root: shouldRenderInBody ? document.body : refs.reference.current,
8071
- children: /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$_({
8072
- ref: refs.setFloating,
8063
+ root: !shouldRenderInBody ? refs.reference.current : void 0,
8064
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
8073
8065
  style: floatingStyles,
8074
- className: classes.popup
8075
- }, getFloatingProps(), addDataAttributes$1(popupData)), {
8076
- children: /* @__PURE__ */ jsxs("div", {
8066
+ className: classes.popup,
8067
+ ref: refs.setFloating
8068
+ }, getFloatingProps()), {
8069
+ children: /* @__PURE__ */ jsx("div", {
8077
8070
  className: classes["dropdown-".concat(status)],
8078
- children: [
8079
- shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$R(_object_spread$_({}, arrowProps), {
8080
- ref: arrowRef,
8081
- context,
8082
- className: classes.arrow
8083
- })),
8084
- applyAction(children, {
8085
- floatingContext: context,
8086
- onClose: handleClose
8087
- })
8088
- ]
8071
+ children: applyAction(children, {
8072
+ onClose: handleClose
8073
+ })
8089
8074
  })
8090
8075
  }))
8091
8076
  })
@@ -8095,7 +8080,7 @@ var WithPopup = function(param) {
8095
8080
  var ITEM_HORIZONTAL_PADDING = 16;
8096
8081
  var ICON_SIZE$1 = 20;
8097
8082
  var ICON_GAP = 12;
8098
- var useStyles$T = createThemedStyles("ListItem", {
8083
+ var useStyles$V = createThemedStyles("ListItem", {
8099
8084
  root: {
8100
8085
  display: "flex",
8101
8086
  alignItems: "center",
@@ -8134,7 +8119,7 @@ var useStyles$T = createThemedStyles("ListItem", {
8134
8119
  flexGrow: 1
8135
8120
  }
8136
8121
  });
8137
- function _define_property$$(obj, key, value) {
8122
+ function _define_property$12(obj, key, value) {
8138
8123
  if (key in obj) {
8139
8124
  Object.defineProperty(obj, key, {
8140
8125
  value,
@@ -8147,7 +8132,7 @@ function _define_property$$(obj, key, value) {
8147
8132
  }
8148
8133
  return obj;
8149
8134
  }
8150
- function _object_spread$Z(target) {
8135
+ function _object_spread$10(target) {
8151
8136
  for (var i = 1; i < arguments.length; i++) {
8152
8137
  var source = arguments[i] != null ? arguments[i] : {};
8153
8138
  var ownKeys2 = Object.keys(source);
@@ -8157,12 +8142,12 @@ function _object_spread$Z(target) {
8157
8142
  }));
8158
8143
  }
8159
8144
  ownKeys2.forEach(function(key) {
8160
- _define_property$$(target, key, source[key]);
8145
+ _define_property$12(target, key, source[key]);
8161
8146
  });
8162
8147
  }
8163
8148
  return target;
8164
8149
  }
8165
- function ownKeys$Q(object, enumerableOnly) {
8150
+ function ownKeys$T(object, enumerableOnly) {
8166
8151
  var keys2 = Object.keys(object);
8167
8152
  if (Object.getOwnPropertySymbols) {
8168
8153
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8175,12 +8160,12 @@ function ownKeys$Q(object, enumerableOnly) {
8175
8160
  }
8176
8161
  return keys2;
8177
8162
  }
8178
- function _object_spread_props$Q(target, source) {
8163
+ function _object_spread_props$T(target, source) {
8179
8164
  source = source != null ? source : {};
8180
8165
  if (Object.getOwnPropertyDescriptors) {
8181
8166
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8182
8167
  } else {
8183
- ownKeys$Q(Object(source)).forEach(function(key) {
8168
+ ownKeys$T(Object(source)).forEach(function(key) {
8184
8169
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8185
8170
  });
8186
8171
  }
@@ -8188,7 +8173,7 @@ function _object_spread_props$Q(target, source) {
8188
8173
  }
8189
8174
  var ListItem = function(param) {
8190
8175
  var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
8191
- var classes = useStyles$T({
8176
+ var classes = useStyles$V({
8192
8177
  theme: tweakStyles
8193
8178
  });
8194
8179
  var _obj2;
@@ -8197,9 +8182,9 @@ var ListItem = function(param) {
8197
8182
  shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
8198
8183
  className: classes.spacer
8199
8184
  }),
8200
- /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
8201
- className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$$(_obj2, classes.disabledItem, isDisabled), _define_property$$(_obj2, classes.withIconGap, withIconGap), _define_property$$(_obj2, classes.focused, isFocused), _obj2))
8202
- }, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$Q(_object_spread$Z({}, data), {
8185
+ /* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$10({
8186
+ className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabledItem, isDisabled), _define_property$12(_obj2, classes.withIconGap, withIconGap), _define_property$12(_obj2, classes.focused, isFocused), _obj2))
8187
+ }, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$10({}, data), {
8203
8188
  disabled: isDisabled ? true : void 0
8204
8189
  }))), {
8205
8190
  children: [
@@ -8225,7 +8210,7 @@ var ListItem = function(param) {
8225
8210
  ]
8226
8211
  });
8227
8212
  };
8228
- var useStyles$S = createThemedStyles("List", {
8213
+ var useStyles$U = createThemedStyles("List", {
8229
8214
  root: {
8230
8215
  minWidth: 180,
8231
8216
  backgroundColor: colors.CLASSIC_WHITE,
@@ -8241,12 +8226,12 @@ var useStyles$S = createThemedStyles("List", {
8241
8226
  paddingLeft: 4
8242
8227
  }
8243
8228
  });
8244
- var withPopupStyles$1 = {
8229
+ var withPopupStyles = {
8245
8230
  trigger: {
8246
8231
  width: "100%"
8247
8232
  }
8248
8233
  };
8249
- function _define_property$_(obj, key, value) {
8234
+ function _define_property$11(obj, key, value) {
8250
8235
  if (key in obj) {
8251
8236
  Object.defineProperty(obj, key, {
8252
8237
  value,
@@ -8259,7 +8244,7 @@ function _define_property$_(obj, key, value) {
8259
8244
  }
8260
8245
  return obj;
8261
8246
  }
8262
- function _object_spread$Y(target) {
8247
+ function _object_spread$$(target) {
8263
8248
  for (var i = 1; i < arguments.length; i++) {
8264
8249
  var source = arguments[i] != null ? arguments[i] : {};
8265
8250
  var ownKeys2 = Object.keys(source);
@@ -8269,12 +8254,12 @@ function _object_spread$Y(target) {
8269
8254
  }));
8270
8255
  }
8271
8256
  ownKeys2.forEach(function(key) {
8272
- _define_property$_(target, key, source[key]);
8257
+ _define_property$11(target, key, source[key]);
8273
8258
  });
8274
8259
  }
8275
8260
  return target;
8276
8261
  }
8277
- function ownKeys$P(object, enumerableOnly) {
8262
+ function ownKeys$S(object, enumerableOnly) {
8278
8263
  var keys2 = Object.keys(object);
8279
8264
  if (Object.getOwnPropertySymbols) {
8280
8265
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8287,12 +8272,12 @@ function ownKeys$P(object, enumerableOnly) {
8287
8272
  }
8288
8273
  return keys2;
8289
8274
  }
8290
- function _object_spread_props$P(target, source) {
8275
+ function _object_spread_props$S(target, source) {
8291
8276
  source = source != null ? source : {};
8292
8277
  if (Object.getOwnPropertyDescriptors) {
8293
8278
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8294
8279
  } else {
8295
- ownKeys$P(Object(source)).forEach(function(key) {
8280
+ ownKeys$S(Object(source)).forEach(function(key) {
8296
8281
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8297
8282
  });
8298
8283
  }
@@ -8300,7 +8285,7 @@ function _object_spread_props$P(target, source) {
8300
8285
  }
8301
8286
  var List = function(param) {
8302
8287
  var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
8303
- var classes = useStyles$S({
8288
+ var classes = useStyles$U({
8304
8289
  theme: tweakStyles
8305
8290
  });
8306
8291
  var handleItemClick = function(event, param2) {
@@ -8310,11 +8295,11 @@ var List = function(param) {
8310
8295
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
8311
8296
  }
8312
8297
  };
8313
- return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
8298
+ return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
8314
8299
  className: classes.root
8315
8300
  }, addDataTestId(testId), addDataAttributes(data)), {
8316
8301
  children: items.map(function(item, i) {
8317
- var itemProps = _object_spread_props$P(_object_spread$Y({
8302
+ var itemProps = _object_spread_props$S(_object_spread$$({
8318
8303
  testId: getTestId(testId, "item-".concat(i))
8319
8304
  }, item), {
8320
8305
  shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
@@ -8326,13 +8311,13 @@ var List = function(param) {
8326
8311
  return /* @__PURE__ */ jsx(Fragment$1, {
8327
8312
  children: isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
8328
8313
  eventType: "hover",
8329
- tweakStyles: withPopupStyles$1,
8314
+ tweakStyles: withPopupStyles,
8330
8315
  placement: "right-start",
8331
8316
  popupOffset: 0,
8332
8317
  shouldRenderInBody: false,
8333
8318
  trigger: function(param2) {
8334
8319
  var triggerProps = param2.triggerProps;
8335
- return /* @__PURE__ */ jsx(ListItem, _object_spread_props$P(_object_spread$Y({}, itemProps), {
8320
+ return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$$({}, itemProps), {
8336
8321
  isFocused: triggerProps.isActive
8337
8322
  }));
8338
8323
  },
@@ -8343,13 +8328,13 @@ var List = function(param) {
8343
8328
  onClick
8344
8329
  })
8345
8330
  })
8346
- }) : /* @__PURE__ */ jsx(ListItem, _object_spread$Y({}, itemProps))
8331
+ }) : /* @__PURE__ */ jsx(ListItem, _object_spread$$({}, itemProps))
8347
8332
  }, i);
8348
8333
  })
8349
8334
  }));
8350
8335
  };
8351
8336
  var ANIMATION_TIMEOUT = 150;
8352
- function _define_property$Z(obj, key, value) {
8337
+ function _define_property$10(obj, key, value) {
8353
8338
  if (key in obj) {
8354
8339
  Object.defineProperty(obj, key, {
8355
8340
  value,
@@ -8362,7 +8347,7 @@ function _define_property$Z(obj, key, value) {
8362
8347
  }
8363
8348
  return obj;
8364
8349
  }
8365
- function _object_spread$X(target) {
8350
+ function _object_spread$_(target) {
8366
8351
  for (var i = 1; i < arguments.length; i++) {
8367
8352
  var source = arguments[i] != null ? arguments[i] : {};
8368
8353
  var ownKeys2 = Object.keys(source);
@@ -8372,12 +8357,12 @@ function _object_spread$X(target) {
8372
8357
  }));
8373
8358
  }
8374
8359
  ownKeys2.forEach(function(key) {
8375
- _define_property$Z(target, key, source[key]);
8360
+ _define_property$10(target, key, source[key]);
8376
8361
  });
8377
8362
  }
8378
8363
  return target;
8379
8364
  }
8380
- var useStyles$R = createThemedStyles("AccountInfo", _object_spread$X({
8365
+ var useStyles$T = createThemedStyles("AccountInfo", _object_spread$_({
8381
8366
  root: {
8382
8367
  display: "flex"
8383
8368
  },
@@ -8431,7 +8416,7 @@ function _array_with_holes$l(arr) {
8431
8416
  if (Array.isArray(arr))
8432
8417
  return arr;
8433
8418
  }
8434
- function _define_property$Y(obj, key, value) {
8419
+ function _define_property$$(obj, key, value) {
8435
8420
  if (key in obj) {
8436
8421
  Object.defineProperty(obj, key, {
8437
8422
  value,
@@ -8475,7 +8460,7 @@ function _iterable_to_array_limit$l(arr, i) {
8475
8460
  function _non_iterable_rest$l() {
8476
8461
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8477
8462
  }
8478
- function _object_spread$W(target) {
8463
+ function _object_spread$Z(target) {
8479
8464
  for (var i = 1; i < arguments.length; i++) {
8480
8465
  var source = arguments[i] != null ? arguments[i] : {};
8481
8466
  var ownKeys2 = Object.keys(source);
@@ -8485,12 +8470,12 @@ function _object_spread$W(target) {
8485
8470
  }));
8486
8471
  }
8487
8472
  ownKeys2.forEach(function(key) {
8488
- _define_property$Y(target, key, source[key]);
8473
+ _define_property$$(target, key, source[key]);
8489
8474
  });
8490
8475
  }
8491
8476
  return target;
8492
8477
  }
8493
- function ownKeys$O(object, enumerableOnly) {
8478
+ function ownKeys$R(object, enumerableOnly) {
8494
8479
  var keys2 = Object.keys(object);
8495
8480
  if (Object.getOwnPropertySymbols) {
8496
8481
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8503,12 +8488,12 @@ function ownKeys$O(object, enumerableOnly) {
8503
8488
  }
8504
8489
  return keys2;
8505
8490
  }
8506
- function _object_spread_props$O(target, source) {
8491
+ function _object_spread_props$R(target, source) {
8507
8492
  source = source != null ? source : {};
8508
8493
  if (Object.getOwnPropertyDescriptors) {
8509
8494
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8510
8495
  } else {
8511
- ownKeys$O(Object(source)).forEach(function(key) {
8496
+ ownKeys$R(Object(source)).forEach(function(key) {
8512
8497
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8513
8498
  });
8514
8499
  }
@@ -8532,7 +8517,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
8532
8517
  }
8533
8518
  var AccountInfo = function(param) {
8534
8519
  var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
8535
- var classes = useStyles$R({
8520
+ var classes = useStyles$T({
8536
8521
  theme: tweakStyles
8537
8522
  });
8538
8523
  var tweakListStyles = useTweakStyles({
@@ -8552,7 +8537,7 @@ var AccountInfo = function(param) {
8552
8537
  useOnClickOutsideWithRef(dropdownRef, function() {
8553
8538
  return setIsMenuOpen(false);
8554
8539
  }, nameRef);
8555
- return /* @__PURE__ */ jsxs("div", _object_spread_props$O(_object_spread$W({
8540
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$Z({
8556
8541
  className: classes.root
8557
8542
  }, addDataTestId(testId), addDataAttributes(data)), {
8558
8543
  children: [
@@ -8602,7 +8587,7 @@ var AccountInfo = function(param) {
8602
8587
  ]
8603
8588
  }));
8604
8589
  };
8605
- var useStyles$Q = createThemedStyles("AddButton", {
8590
+ var useStyles$S = createThemedStyles("AddButton", {
8606
8591
  root: {
8607
8592
  display: "flex",
8608
8593
  alignItems: "center",
@@ -8628,7 +8613,7 @@ var useStyles$Q = createThemedStyles("AddButton", {
8628
8613
  width: "100%"
8629
8614
  }
8630
8615
  });
8631
- function _define_property$X(obj, key, value) {
8616
+ function _define_property$_(obj, key, value) {
8632
8617
  if (key in obj) {
8633
8618
  Object.defineProperty(obj, key, {
8634
8619
  value,
@@ -8641,7 +8626,7 @@ function _define_property$X(obj, key, value) {
8641
8626
  }
8642
8627
  return obj;
8643
8628
  }
8644
- function _object_spread$V(target) {
8629
+ function _object_spread$Y(target) {
8645
8630
  for (var i = 1; i < arguments.length; i++) {
8646
8631
  var source = arguments[i] != null ? arguments[i] : {};
8647
8632
  var ownKeys2 = Object.keys(source);
@@ -8651,12 +8636,12 @@ function _object_spread$V(target) {
8651
8636
  }));
8652
8637
  }
8653
8638
  ownKeys2.forEach(function(key) {
8654
- _define_property$X(target, key, source[key]);
8639
+ _define_property$_(target, key, source[key]);
8655
8640
  });
8656
8641
  }
8657
8642
  return target;
8658
8643
  }
8659
- function ownKeys$N(object, enumerableOnly) {
8644
+ function ownKeys$Q(object, enumerableOnly) {
8660
8645
  var keys2 = Object.keys(object);
8661
8646
  if (Object.getOwnPropertySymbols) {
8662
8647
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8669,12 +8654,12 @@ function ownKeys$N(object, enumerableOnly) {
8669
8654
  }
8670
8655
  return keys2;
8671
8656
  }
8672
- function _object_spread_props$N(target, source) {
8657
+ function _object_spread_props$Q(target, source) {
8673
8658
  source = source != null ? source : {};
8674
8659
  if (Object.getOwnPropertyDescriptors) {
8675
8660
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8676
8661
  } else {
8677
- ownKeys$N(Object(source)).forEach(function(key) {
8662
+ ownKeys$Q(Object(source)).forEach(function(key) {
8678
8663
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8679
8664
  });
8680
8665
  }
@@ -8682,10 +8667,10 @@ function _object_spread_props$N(target, source) {
8682
8667
  }
8683
8668
  var AddButton = function(param) {
8684
8669
  var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
8685
- var classes = useStyles$Q({
8670
+ var classes = useStyles$S({
8686
8671
  theme: tweakStyles
8687
8672
  });
8688
- return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$V({
8673
+ return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Y({
8689
8674
  type,
8690
8675
  className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
8691
8676
  onClick: !isDisabled ? onClick : void 0,
@@ -8704,7 +8689,7 @@ var AddButton = function(param) {
8704
8689
  ]
8705
8690
  }));
8706
8691
  };
8707
- var useStyles$P = createThemedStyles("DotsPreloader", {
8692
+ var useStyles$R = createThemedStyles("DotsPreloader", {
8708
8693
  root: {
8709
8694
  display: "flex",
8710
8695
  gap: 4,
@@ -8750,7 +8735,7 @@ var useStyles$P = createThemedStyles("DotsPreloader", {
8750
8735
  });
8751
8736
  var DotsPreloader = function(param) {
8752
8737
  var tweakStyles = param.tweakStyles;
8753
- var classes = useStyles$P({
8738
+ var classes = useStyles$R({
8754
8739
  theme: tweakStyles
8755
8740
  });
8756
8741
  return /* @__PURE__ */ jsx("div", {
@@ -8816,7 +8801,7 @@ var DefaultPreloader = function() {
8816
8801
  ]
8817
8802
  });
8818
8803
  };
8819
- var useStyles$O = createThemedStyles("SvgPreloader", {
8804
+ var useStyles$Q = createThemedStyles("SvgPreloader", {
8820
8805
  root: {
8821
8806
  display: "flex",
8822
8807
  width: "100%",
@@ -8826,7 +8811,7 @@ var useStyles$O = createThemedStyles("SvgPreloader", {
8826
8811
  var SvgPreloader = function(param) {
8827
8812
  var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
8828
8813
  var _theme_preloaders;
8829
- var classes = useStyles$O({
8814
+ var classes = useStyles$Q({
8830
8815
  theme: tweakStyles
8831
8816
  });
8832
8817
  var theme = useContext(ThemeContext).theme;
@@ -8840,7 +8825,7 @@ var SvgPreloader = function(param) {
8840
8825
  }
8841
8826
  }) : /* @__PURE__ */ jsx(PreloaderIcon, {});
8842
8827
  };
8843
- var useStyles$N = createThemedStyles("ThemedPreloader", {
8828
+ var useStyles$P = createThemedStyles("ThemedPreloader", {
8844
8829
  root: {
8845
8830
  display: "flex"
8846
8831
  },
@@ -8851,7 +8836,7 @@ var useStyles$N = createThemedStyles("ThemedPreloader", {
8851
8836
  color: "currentColor"
8852
8837
  }
8853
8838
  });
8854
- function _define_property$W(obj, key, value) {
8839
+ function _define_property$Z(obj, key, value) {
8855
8840
  if (key in obj) {
8856
8841
  Object.defineProperty(obj, key, {
8857
8842
  value,
@@ -8864,7 +8849,7 @@ function _define_property$W(obj, key, value) {
8864
8849
  }
8865
8850
  return obj;
8866
8851
  }
8867
- function _object_spread$U(target) {
8852
+ function _object_spread$X(target) {
8868
8853
  for (var i = 1; i < arguments.length; i++) {
8869
8854
  var source = arguments[i] != null ? arguments[i] : {};
8870
8855
  var ownKeys2 = Object.keys(source);
@@ -8874,12 +8859,12 @@ function _object_spread$U(target) {
8874
8859
  }));
8875
8860
  }
8876
8861
  ownKeys2.forEach(function(key) {
8877
- _define_property$W(target, key, source[key]);
8862
+ _define_property$Z(target, key, source[key]);
8878
8863
  });
8879
8864
  }
8880
8865
  return target;
8881
8866
  }
8882
- function ownKeys$M(object, enumerableOnly) {
8867
+ function ownKeys$P(object, enumerableOnly) {
8883
8868
  var keys2 = Object.keys(object);
8884
8869
  if (Object.getOwnPropertySymbols) {
8885
8870
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8892,12 +8877,12 @@ function ownKeys$M(object, enumerableOnly) {
8892
8877
  }
8893
8878
  return keys2;
8894
8879
  }
8895
- function _object_spread_props$M(target, source) {
8880
+ function _object_spread_props$P(target, source) {
8896
8881
  source = source != null ? source : {};
8897
8882
  if (Object.getOwnPropertyDescriptors) {
8898
8883
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8899
8884
  } else {
8900
- ownKeys$M(Object(source)).forEach(function(key) {
8885
+ ownKeys$P(Object(source)).forEach(function(key) {
8901
8886
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8902
8887
  });
8903
8888
  }
@@ -8905,7 +8890,7 @@ function _object_spread_props$M(target, source) {
8905
8890
  }
8906
8891
  var ThemedPreloader = function(param) {
8907
8892
  var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
8908
- var classes = useStyles$N({
8893
+ var classes = useStyles$P({
8909
8894
  theme: tweakStyles
8910
8895
  });
8911
8896
  var tweakDotsPreloaderStyles = useTweakStyles({
@@ -8918,8 +8903,8 @@ var ThemedPreloader = function(param) {
8918
8903
  className: "tweakSvgPreloader",
8919
8904
  currentComponentName: "ThemedPreloader"
8920
8905
  });
8921
- return /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$U({
8922
- className: clsx(classes.root, classes[type], _define_property$W({}, classes.currentColor, useCurrentColor))
8906
+ return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$X({
8907
+ className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
8923
8908
  }, addDataTestId(testId), addDataAttributes(data)), {
8924
8909
  children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
8925
8910
  tweakStyles: tweakDotsPreloaderStyles
@@ -8929,7 +8914,7 @@ var ThemedPreloader = function(param) {
8929
8914
  })
8930
8915
  }));
8931
8916
  };
8932
- var useStyles$M = createThemedStyles("Button", {
8917
+ var useStyles$O = createThemedStyles("Button", {
8933
8918
  root: {
8934
8919
  display: "flex",
8935
8920
  justifyContent: "center",
@@ -9097,10 +9082,10 @@ var dotsPreloaderStyles = {
9097
9082
  }
9098
9083
  }
9099
9084
  };
9100
- var getPreloaderStyles = function(size2) {
9101
- return size2 === "s" || size2 === "m" ? dotsPreloaderStyles : void 0;
9085
+ var getPreloaderStyles = function(size) {
9086
+ return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
9102
9087
  };
9103
- function _define_property$V(obj, key, value) {
9088
+ function _define_property$Y(obj, key, value) {
9104
9089
  if (key in obj) {
9105
9090
  Object.defineProperty(obj, key, {
9106
9091
  value,
@@ -9113,7 +9098,7 @@ function _define_property$V(obj, key, value) {
9113
9098
  }
9114
9099
  return obj;
9115
9100
  }
9116
- function _object_spread$T(target) {
9101
+ function _object_spread$W(target) {
9117
9102
  for (var i = 1; i < arguments.length; i++) {
9118
9103
  var source = arguments[i] != null ? arguments[i] : {};
9119
9104
  var ownKeys2 = Object.keys(source);
@@ -9123,12 +9108,12 @@ function _object_spread$T(target) {
9123
9108
  }));
9124
9109
  }
9125
9110
  ownKeys2.forEach(function(key) {
9126
- _define_property$V(target, key, source[key]);
9111
+ _define_property$Y(target, key, source[key]);
9127
9112
  });
9128
9113
  }
9129
9114
  return target;
9130
9115
  }
9131
- function ownKeys$L(object, enumerableOnly) {
9116
+ function ownKeys$O(object, enumerableOnly) {
9132
9117
  var keys2 = Object.keys(object);
9133
9118
  if (Object.getOwnPropertySymbols) {
9134
9119
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9141,21 +9126,21 @@ function ownKeys$L(object, enumerableOnly) {
9141
9126
  }
9142
9127
  return keys2;
9143
9128
  }
9144
- function _object_spread_props$L(target, source) {
9129
+ function _object_spread_props$O(target, source) {
9145
9130
  source = source != null ? source : {};
9146
9131
  if (Object.getOwnPropertyDescriptors) {
9147
9132
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9148
9133
  } else {
9149
- ownKeys$L(Object(source)).forEach(function(key) {
9134
+ ownKeys$O(Object(source)).forEach(function(key) {
9150
9135
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9151
9136
  });
9152
9137
  }
9153
9138
  return target;
9154
9139
  }
9155
- function _object_without_properties$h(source, excluded) {
9140
+ function _object_without_properties$j(source, excluded) {
9156
9141
  if (source == null)
9157
9142
  return {};
9158
- var target = _object_without_properties_loose$h(source, excluded);
9143
+ var target = _object_without_properties_loose$j(source, excluded);
9159
9144
  var key, i;
9160
9145
  if (Object.getOwnPropertySymbols) {
9161
9146
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -9170,7 +9155,7 @@ function _object_without_properties$h(source, excluded) {
9170
9155
  }
9171
9156
  return target;
9172
9157
  }
9173
- function _object_without_properties_loose$h(source, excluded) {
9158
+ function _object_without_properties_loose$j(source, excluded) {
9174
9159
  if (source == null)
9175
9160
  return {};
9176
9161
  var target = {};
@@ -9185,7 +9170,7 @@ function _object_without_properties_loose$h(source, excluded) {
9185
9170
  return target;
9186
9171
  }
9187
9172
  var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
9188
- var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$h(_param, [
9173
+ var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
9189
9174
  "type",
9190
9175
  "children",
9191
9176
  "size",
@@ -9203,11 +9188,11 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
9203
9188
  "iconPosition",
9204
9189
  "preloaderType"
9205
9190
  ]);
9206
- var classes = useStyles$M({
9191
+ var classes = useStyles$O({
9207
9192
  theme: tweakStyles
9208
9193
  });
9209
9194
  var tweakPreloaderStyles = useTweakStyles({
9210
- innerStyles: getPreloaderStyles(size2),
9195
+ innerStyles: getPreloaderStyles(size),
9211
9196
  tweakStyles,
9212
9197
  className: "tweakPreloader",
9213
9198
  currentComponentName: "Button"
@@ -9216,16 +9201,16 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
9216
9201
  var hasChildren = isReactNodeNotEmpty(children);
9217
9202
  var hasNoAction = isDisabled || isLoading;
9218
9203
  var _obj2, _obj1;
9219
- return /* @__PURE__ */ jsxs("button", _object_spread_props$L(_object_spread$T({
9204
+ return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$W({
9220
9205
  ref,
9221
9206
  type,
9222
- className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$V(_obj2, classes.disabled, isDisabled), _define_property$V(_obj2, classes.fullWidth, isFullWidth), _define_property$V(_obj2, classes.inline, isInline), _define_property$V(_obj2, classes.active, isActive), _define_property$V(_obj2, classes.loading, isLoading), _define_property$V(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
9207
+ className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.fullWidth, isFullWidth), _define_property$Y(_obj2, classes.inline, isInline), _define_property$Y(_obj2, classes.active, isActive), _define_property$Y(_obj2, classes.loading, isLoading), _define_property$Y(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
9223
9208
  tabIndex: shouldSkipTabNavigation ? -1 : void 0,
9224
9209
  disabled: hasNoAction
9225
9210
  }, interactions, addDataTestId(testId), addDataAttributes(data)), {
9226
9211
  children: [
9227
9212
  /* @__PURE__ */ jsxs("span", {
9228
- className: clsx(classes.content, (_obj1 = {}, _define_property$V(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$V(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
9213
+ className: clsx(classes.content, (_obj1 = {}, _define_property$Y(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Y(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
9229
9214
  children: [
9230
9215
  hasIcon && /* @__PURE__ */ jsx("span", {
9231
9216
  className: classes.icon,
@@ -9248,7 +9233,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
9248
9233
  ]
9249
9234
  }));
9250
9235
  });
9251
- var useStyles$L = createThemedStyles("Checkbox", {
9236
+ var useStyles$N = createThemedStyles("Checkbox", {
9252
9237
  root: {
9253
9238
  cursor: "pointer",
9254
9239
  display: "flex",
@@ -9286,7 +9271,7 @@ var useStyles$L = createThemedStyles("Checkbox", {
9286
9271
  flexDirection: "row-reverse"
9287
9272
  }
9288
9273
  });
9289
- function _define_property$U(obj, key, value) {
9274
+ function _define_property$X(obj, key, value) {
9290
9275
  if (key in obj) {
9291
9276
  Object.defineProperty(obj, key, {
9292
9277
  value,
@@ -9299,7 +9284,7 @@ function _define_property$U(obj, key, value) {
9299
9284
  }
9300
9285
  return obj;
9301
9286
  }
9302
- function _object_spread$S(target) {
9287
+ function _object_spread$V(target) {
9303
9288
  for (var i = 1; i < arguments.length; i++) {
9304
9289
  var source = arguments[i] != null ? arguments[i] : {};
9305
9290
  var ownKeys2 = Object.keys(source);
@@ -9309,12 +9294,12 @@ function _object_spread$S(target) {
9309
9294
  }));
9310
9295
  }
9311
9296
  ownKeys2.forEach(function(key) {
9312
- _define_property$U(target, key, source[key]);
9297
+ _define_property$X(target, key, source[key]);
9313
9298
  });
9314
9299
  }
9315
9300
  return target;
9316
9301
  }
9317
- function ownKeys$K(object, enumerableOnly) {
9302
+ function ownKeys$N(object, enumerableOnly) {
9318
9303
  var keys2 = Object.keys(object);
9319
9304
  if (Object.getOwnPropertySymbols) {
9320
9305
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9327,12 +9312,12 @@ function ownKeys$K(object, enumerableOnly) {
9327
9312
  }
9328
9313
  return keys2;
9329
9314
  }
9330
- function _object_spread_props$K(target, source) {
9315
+ function _object_spread_props$N(target, source) {
9331
9316
  source = source != null ? source : {};
9332
9317
  if (Object.getOwnPropertyDescriptors) {
9333
9318
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9334
9319
  } else {
9335
- ownKeys$K(Object(source)).forEach(function(key) {
9320
+ ownKeys$N(Object(source)).forEach(function(key) {
9336
9321
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9337
9322
  });
9338
9323
  }
@@ -9340,7 +9325,7 @@ function _object_spread_props$K(target, source) {
9340
9325
  }
9341
9326
  function Checkbox(param) {
9342
9327
  var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
9343
- var classes = useStyles$L({
9328
+ var classes = useStyles$N({
9344
9329
  theme: tweakStyles
9345
9330
  });
9346
9331
  var hasAction = !isDisabled && !isReadonly;
@@ -9352,11 +9337,11 @@ function Checkbox(param) {
9352
9337
  }, event);
9353
9338
  };
9354
9339
  var _obj2;
9355
- return /* @__PURE__ */ jsxs("label", _object_spread_props$K(_object_spread$S({
9356
- className: clsx(classes.root, (_obj2 = {}, _define_property$U(_obj2, classes.checked, isSelected), _define_property$U(_obj2, classes.invalid, isInvalid), _define_property$U(_obj2, classes.disabled, isDisabled), _define_property$U(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
9340
+ return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$V({
9341
+ className: clsx(classes.root, (_obj2 = {}, _define_property$X(_obj2, classes.checked, isSelected), _define_property$X(_obj2, classes.invalid, isInvalid), _define_property$X(_obj2, classes.disabled, isDisabled), _define_property$X(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
9357
9342
  }, addDataTestId(testId), addDataAttributes(data)), {
9358
9343
  children: [
9359
- /* @__PURE__ */ jsx("input", _object_spread$S({
9344
+ /* @__PURE__ */ jsx("input", _object_spread$V({
9360
9345
  className: classes.input,
9361
9346
  type: "checkbox",
9362
9347
  checked: isSelected,
@@ -9379,7 +9364,7 @@ function Checkbox(param) {
9379
9364
  ]
9380
9365
  }));
9381
9366
  }
9382
- var useStyles$K = createThemedStyles("CloseButton", {
9367
+ var useStyles$M = createThemedStyles("CloseButton", {
9383
9368
  root: {
9384
9369
  width: 40,
9385
9370
  height: 40,
@@ -9405,7 +9390,7 @@ var useStyles$K = createThemedStyles("CloseButton", {
9405
9390
  }
9406
9391
  }
9407
9392
  });
9408
- function _define_property$T(obj, key, value) {
9393
+ function _define_property$W(obj, key, value) {
9409
9394
  if (key in obj) {
9410
9395
  Object.defineProperty(obj, key, {
9411
9396
  value,
@@ -9418,7 +9403,7 @@ function _define_property$T(obj, key, value) {
9418
9403
  }
9419
9404
  return obj;
9420
9405
  }
9421
- function _object_spread$R(target) {
9406
+ function _object_spread$U(target) {
9422
9407
  for (var i = 1; i < arguments.length; i++) {
9423
9408
  var source = arguments[i] != null ? arguments[i] : {};
9424
9409
  var ownKeys2 = Object.keys(source);
@@ -9428,12 +9413,12 @@ function _object_spread$R(target) {
9428
9413
  }));
9429
9414
  }
9430
9415
  ownKeys2.forEach(function(key) {
9431
- _define_property$T(target, key, source[key]);
9416
+ _define_property$W(target, key, source[key]);
9432
9417
  });
9433
9418
  }
9434
9419
  return target;
9435
9420
  }
9436
- function ownKeys$J(object, enumerableOnly) {
9421
+ function ownKeys$M(object, enumerableOnly) {
9437
9422
  var keys2 = Object.keys(object);
9438
9423
  if (Object.getOwnPropertySymbols) {
9439
9424
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9446,33 +9431,33 @@ function ownKeys$J(object, enumerableOnly) {
9446
9431
  }
9447
9432
  return keys2;
9448
9433
  }
9449
- function _object_spread_props$J(target, source) {
9434
+ function _object_spread_props$M(target, source) {
9450
9435
  source = source != null ? source : {};
9451
9436
  if (Object.getOwnPropertyDescriptors) {
9452
9437
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9453
9438
  } else {
9454
- ownKeys$J(Object(source)).forEach(function(key) {
9439
+ ownKeys$M(Object(source)).forEach(function(key) {
9455
9440
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9456
9441
  });
9457
9442
  }
9458
9443
  return target;
9459
9444
  }
9460
9445
  var CloseButton = function(param) {
9461
- var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
9462
- var classes = useStyles$K({
9446
+ var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
9447
+ var classes = useStyles$M({
9463
9448
  theme: tweakStyles
9464
9449
  });
9465
- return /* @__PURE__ */ jsx("button", _object_spread_props$J(_object_spread$R({
9450
+ return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$U({
9466
9451
  type: "button",
9467
9452
  className: classes.root,
9468
9453
  onClick: onClose
9469
9454
  }, addDataTestId(testId), addDataAttributes(data)), {
9470
9455
  children: /* @__PURE__ */ jsx(Icon, {
9471
- type: iconType
9456
+ type: icon
9472
9457
  })
9473
9458
  }));
9474
9459
  };
9475
- var useStyles$J = createThemedStyles({
9460
+ var useStyles$L = createThemedStyles({
9476
9461
  root: {
9477
9462
  display: "flex",
9478
9463
  flexWrap: "wrap"
@@ -9565,7 +9550,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
9565
9550
  return _array_like_to_array$k(o, minLen);
9566
9551
  }
9567
9552
  var Colors = function() {
9568
- var classes = useStyles$J();
9553
+ var classes = useStyles$L();
9569
9554
  var theme = useContext(ThemeContext).theme;
9570
9555
  var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
9571
9556
  return /* @__PURE__ */ jsx("div", {
@@ -9595,7 +9580,7 @@ var Colors = function() {
9595
9580
  })
9596
9581
  });
9597
9582
  };
9598
- var useStyles$I = createThemedStyles("CssBaseline", {
9583
+ var useStyles$K = createThemedStyles("CssBaseline", {
9599
9584
  "@global html, body": {
9600
9585
  fontFamily: "Arial, sans-serif",
9601
9586
  color: colors.FONT_MAIN,
@@ -9604,7 +9589,7 @@ var useStyles$I = createThemedStyles("CssBaseline", {
9604
9589
  },
9605
9590
  root: {}
9606
9591
  });
9607
- function _define_property$S(obj, key, value) {
9592
+ function _define_property$V(obj, key, value) {
9608
9593
  if (key in obj) {
9609
9594
  Object.defineProperty(obj, key, {
9610
9595
  value,
@@ -9617,7 +9602,7 @@ function _define_property$S(obj, key, value) {
9617
9602
  }
9618
9603
  return obj;
9619
9604
  }
9620
- function _object_spread$Q(target) {
9605
+ function _object_spread$T(target) {
9621
9606
  for (var i = 1; i < arguments.length; i++) {
9622
9607
  var source = arguments[i] != null ? arguments[i] : {};
9623
9608
  var ownKeys2 = Object.keys(source);
@@ -9627,296 +9612,485 @@ function _object_spread$Q(target) {
9627
9612
  }));
9628
9613
  }
9629
9614
  ownKeys2.forEach(function(key) {
9630
- _define_property$S(target, key, source[key]);
9615
+ _define_property$V(target, key, source[key]);
9631
9616
  });
9632
9617
  }
9633
9618
  return target;
9634
9619
  }
9635
9620
  var CssBaseline = function(param) {
9636
9621
  var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
9637
- var classes = useStyles$I({
9622
+ var classes = useStyles$K({
9638
9623
  theme: tweakStyles
9639
9624
  });
9640
- return /* @__PURE__ */ jsx("div", _object_spread$Q({
9625
+ return /* @__PURE__ */ jsx("div", _object_spread$T({
9641
9626
  className: classes.root
9642
9627
  }, addDataTestId(testId), addDataAttributes(data)));
9643
9628
  };
9644
- var DEFAULT_SIZE = 6;
9645
- var PADDING_X$1 = 12;
9646
- var AUTOSIZE_MAX_WIDTH = 480;
9647
- var useStyles$H = createThemedStyles("Input", {
9648
- root: {
9649
- width: "100%",
9650
- boxSizing: "border-box",
9651
- position: "relative"
9652
- },
9653
- inputWrapper: {
9629
+ var useStyles$J = createThemedStyles("WithMessages", {
9630
+ withMessages: {
9654
9631
  display: "flex",
9632
+ flexDirection: "column",
9655
9633
  width: "100%",
9656
- height: dimensions.CONTROL_HEIGHT,
9657
- boxSizing: "border-box",
9658
- transition: animations.defaultTransition,
9659
- transitionProperty: "border-color",
9660
- backgroundColor: "white",
9661
9634
  position: "relative"
9662
9635
  },
9663
- inputContent: {
9664
- fontSize: 16,
9665
- fontFamily: "inherit",
9666
- padding: [
9667
- 0,
9668
- PADDING_X$1
9669
- ]
9636
+ error: {
9637
+ color: "red"
9670
9638
  },
9671
- input: {
9672
- extend: "inputContent",
9673
- width: "100%",
9674
- height: "100%",
9675
- outline: "none",
9676
- boxSizing: "border-box",
9677
- outlineStyle: "none",
9678
- transition: animations.defaultTransition,
9679
- transitionProperty: "background-color",
9680
- border: "none",
9681
- background: "none",
9682
- "&::placeholder": {
9683
- opacity: 1
9684
- },
9685
- MozAppearance: "textfield",
9686
- "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": {
9687
- WebkitAppearance: "none",
9688
- margin: 0
9689
- }
9639
+ info: {
9640
+ color: "gray"
9690
9641
  },
9691
- autosize: {
9692
- display: "inline-grid",
9693
- verticalAlign: "top",
9694
- alignItems: "center",
9695
- justifyContent: "start",
9696
- "&::after, input": {
9697
- width: "auto",
9698
- minWidth: "1em",
9699
- gridArea: "1 / 2",
9700
- font: "inherit",
9701
- justifySelf: "stretch"
9702
- },
9703
- "&::after": {
9704
- maxWidth: AUTOSIZE_MAX_WIDTH,
9705
- content: 'attr(data-value) " "',
9706
- visibility: "hidden",
9707
- whiteSpace: "pre-wrap"
9642
+ horizontal: {
9643
+ display: "flex",
9644
+ "& > *": {
9645
+ flexGrow: 1,
9646
+ "&:not(:first-child)": {
9647
+ marginLeft: -1
9648
+ }
9708
9649
  }
9709
9650
  },
9710
- focused: {
9711
- position: "relative",
9712
- zIndex: 1
9713
- },
9714
- unitsWrapper: {
9715
- extend: "inputContent",
9716
- position: "absolute",
9717
- left: 0,
9718
- height: "100%",
9719
- boxSizing: "border-box",
9651
+ vertical: {
9720
9652
  display: "flex",
9721
- alignItems: "center",
9722
- pointerEvents: "none"
9653
+ flexDirection: "column",
9654
+ "& > *:not(:first-child)": {
9655
+ marginTop: -1
9656
+ }
9723
9657
  },
9724
- fakeValue: {
9725
- visibility: "hidden"
9658
+ message: {
9659
+ fontSize: 12
9726
9660
  },
9727
- units: {
9728
- paddingLeft: 4
9729
- },
9730
- withFloatingLabel: {
9731
- paddingTop: 18
9661
+ children: {}
9662
+ });
9663
+ function _define_property$U(obj, key, value) {
9664
+ if (key in obj) {
9665
+ Object.defineProperty(obj, key, {
9666
+ value,
9667
+ enumerable: true,
9668
+ configurable: true,
9669
+ writable: true
9670
+ });
9671
+ } else {
9672
+ obj[key] = value;
9673
+ }
9674
+ return obj;
9675
+ }
9676
+ function _object_spread$S(target) {
9677
+ for (var i = 1; i < arguments.length; i++) {
9678
+ var source = arguments[i] != null ? arguments[i] : {};
9679
+ var ownKeys2 = Object.keys(source);
9680
+ if (typeof Object.getOwnPropertySymbols === "function") {
9681
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9682
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9683
+ }));
9684
+ }
9685
+ ownKeys2.forEach(function(key) {
9686
+ _define_property$U(target, key, source[key]);
9687
+ });
9688
+ }
9689
+ return target;
9690
+ }
9691
+ function ownKeys$L(object, enumerableOnly) {
9692
+ var keys2 = Object.keys(object);
9693
+ if (Object.getOwnPropertySymbols) {
9694
+ var symbols = Object.getOwnPropertySymbols(object);
9695
+ if (enumerableOnly) {
9696
+ symbols = symbols.filter(function(sym) {
9697
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9698
+ });
9699
+ }
9700
+ keys2.push.apply(keys2, symbols);
9701
+ }
9702
+ return keys2;
9703
+ }
9704
+ function _object_spread_props$L(target, source) {
9705
+ source = source != null ? source : {};
9706
+ if (Object.getOwnPropertyDescriptors) {
9707
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9708
+ } else {
9709
+ ownKeys$L(Object(source)).forEach(function(key) {
9710
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9711
+ });
9712
+ }
9713
+ return target;
9714
+ }
9715
+ var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
9716
+ var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
9717
+ var classes = useStyles$J({
9718
+ theme: tweakStyles
9719
+ });
9720
+ var shouldShowError = isReactNodeNotEmpty(errorMessage);
9721
+ var shouldShowInfo = isReactNodeNotEmpty(infoMessage) && !shouldShowError;
9722
+ var _obj2;
9723
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
9724
+ ref,
9725
+ className: classes.withMessages,
9726
+ "data-invalid": shouldShowError ? true : void 0
9727
+ }, addDataAttributes$1(data, testId)), {
9728
+ children: [
9729
+ isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
9730
+ className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
9731
+ children
9732
+ }),
9733
+ (shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
9734
+ className: classes.message,
9735
+ children: [
9736
+ shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9737
+ className: classes.error
9738
+ }, addDataTestId(testId, "error")), {
9739
+ children: errorMessage
9740
+ })),
9741
+ shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9742
+ className: classes.info
9743
+ }, addDataTestId(testId, "info")), {
9744
+ children: infoMessage
9745
+ }))
9746
+ ]
9747
+ })
9748
+ ]
9749
+ }));
9750
+ });
9751
+ var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
9752
+ var useStyles$I = createThemedStyles("ControlWrapper", {
9753
+ controlWrapper: {
9754
+ "--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
9755
+ // borders
9756
+ "--control-padding": "".concat(CONTROL$1.PADDING, "px"),
9757
+ "--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
9758
+ "--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
9759
+ "--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
9760
+ display: "flex",
9761
+ width: "100%",
9762
+ backgroundColor: "white",
9763
+ position: "relative",
9764
+ border: [
9765
+ "solid",
9766
+ 1,
9767
+ "gray"
9768
+ ],
9769
+ borderRadius: 8,
9770
+ boxSizing: "border-box",
9771
+ zIndex: 0
9732
9772
  },
9733
- floatingLabelWithoutPadding: {
9734
- paddingTop: 18,
9735
- paddingLeft: 0
9773
+ invalid: {
9774
+ zIndex: Z_INDEX$2.CONTROL_INVALID
9736
9775
  },
9737
- floating: {},
9738
- activeLabel: {
9739
- display: "none",
9740
- "&$floating": {
9741
- display: "block",
9742
- transform: "scale(0.75) translateY(-120%)"
9743
- }
9776
+ disabled: {},
9777
+ focused: {
9778
+ position: "relative",
9779
+ zIndex: Z_INDEX$2.CONTROL_FOCUS
9744
9780
  },
9745
- required: {
9746
- "&:before": {
9747
- content: '""',
9748
- position: "absolute",
9749
- left: -12,
9750
- top: "50%",
9751
- transform: "translate(0, -50%)",
9752
- width: 6,
9753
- height: 6,
9754
- borderRadius: "50%"
9755
- }
9781
+ withValue: {},
9782
+ loading: {},
9783
+ minContent: {
9784
+ width: "min-content"
9756
9785
  },
9757
9786
  label: {
9758
9787
  position: "absolute",
9759
9788
  pointerEvents: "none",
9760
- left: PADDING_X$1,
9789
+ left: "var(--control-padding)",
9761
9790
  top: "50%",
9762
9791
  transformOrigin: "top left",
9763
9792
  transform: "translateY(-50%)",
9764
9793
  transition: animations.defaultTransition,
9765
9794
  transitionProperty: "transform, color",
9766
- fontSize: 16
9767
- },
9768
- floatingWithoutPadding: {
9769
- left: 0
9795
+ fontSize: 16,
9796
+ zIndex: 1
9770
9797
  },
9798
+ activeLabel: {},
9771
9799
  requiredLabel: {
9772
9800
  "&:after": {
9773
9801
  content: '""',
9802
+ display: "block",
9774
9803
  position: "absolute",
9804
+ top: 0,
9775
9805
  right: -8,
9776
- top: 4,
9777
- transform: "translate(0, -50%)",
9778
9806
  width: 6,
9779
9807
  height: 6,
9780
- borderRadius: "50%"
9808
+ borderRadius: "50%",
9809
+ backgroundColor: "orange"
9781
9810
  }
9782
9811
  },
9783
- activeIcon: {
9784
- cursor: "pointer"
9812
+ disabledLabel: {},
9813
+ wrapper: {
9814
+ display: "flex",
9815
+ flexGrow: 1,
9816
+ minWidth: 0,
9817
+ // Нужно для селекта
9818
+ textAlign: "left"
9785
9819
  },
9786
- "border-top": {
9787
- borderRadius: 0,
9788
- borderWidth: [
9789
- 1,
9790
- 0,
9791
- 0,
9792
- 0
9793
- ]
9820
+ controls: {
9821
+ display: "flex",
9822
+ marginLeft: "auto",
9823
+ flexShrink: 0
9794
9824
  },
9795
- "border-bottom": {
9796
- borderRadius: 0,
9797
- borderWidth: [
9798
- 0,
9799
- 0,
9800
- 1,
9801
- 0
9802
- ]
9825
+ icon: {
9826
+ display: "flex",
9827
+ alignItems: "center",
9828
+ justifyContent: "center",
9829
+ minWidth: "var(--icon-size)",
9830
+ width: "var(--icon-size)",
9831
+ height: "100%",
9832
+ flexShrink: 0,
9833
+ cursor: "default",
9834
+ "&:last-child": {
9835
+ paddingRight: 6
9836
+ }
9803
9837
  },
9804
- "border-left": {
9805
- borderRadius: 0,
9806
- borderWidth: [
9807
- 0,
9808
- 0,
9809
- 0,
9810
- 1
9811
- ]
9838
+ iconInner: {
9839
+ width: "var(--icon-inner-size)"
9812
9840
  },
9813
- "border-right": {
9814
- borderRadius: 0,
9815
- borderWidth: [
9816
- 0,
9817
- 1,
9818
- 0,
9819
- 0
9820
- ]
9841
+ customIcon: {
9842
+ width: "unset",
9843
+ "& $iconInner": {
9844
+ width: "unset"
9845
+ }
9821
9846
  },
9822
- top: {
9847
+ endIcon: {},
9848
+ activeIcon: {
9849
+ cursor: "pointer",
9850
+ outline: "none"
9851
+ },
9852
+ clearIcon: {
9853
+ "& $iconInner": {
9854
+ width: "var(--icon-inner-size)"
9855
+ }
9856
+ },
9857
+ loader: {
9858
+ "& $iconInner": {
9859
+ width: "var(--icon-inner-size)"
9860
+ }
9861
+ },
9862
+ /* groupPositions */
9863
+ "placement-top": {
9823
9864
  borderBottomLeftRadius: 0,
9824
9865
  borderBottomRightRadius: 0
9825
9866
  },
9826
- bottom: {
9867
+ "placement-bottom": {
9827
9868
  borderTopLeftRadius: 0,
9828
9869
  borderTopRightRadius: 0
9829
9870
  },
9830
- "top-left": {
9871
+ "placement-top-left": {
9831
9872
  borderTopRightRadius: 0,
9832
9873
  borderBottomLeftRadius: 0,
9833
9874
  borderBottomRightRadius: 0
9834
9875
  },
9835
- "top-right": {
9876
+ "placement-top-right": {
9836
9877
  borderTopLeftRadius: 0,
9837
9878
  borderBottomLeftRadius: 0,
9838
9879
  borderBottomRightRadius: 0
9839
9880
  },
9840
- "bottom-left": {
9881
+ "placement-bottom-left": {
9841
9882
  borderTopLeftRadius: 0,
9842
9883
  borderTopRightRadius: 0,
9843
9884
  borderBottomRightRadius: 0
9844
9885
  },
9845
- "bottom-right": {
9886
+ "placement-bottom-right": {
9846
9887
  borderTopLeftRadius: 0,
9847
9888
  borderTopRightRadius: 0,
9848
9889
  borderBottomLeftRadius: 0
9849
9890
  },
9850
- left: {
9891
+ "placement-left": {
9851
9892
  borderTopRightRadius: 0,
9852
9893
  borderBottomRightRadius: 0
9853
9894
  },
9854
- right: {
9895
+ "placement-right": {
9855
9896
  borderTopLeftRadius: 0,
9856
9897
  borderBottomLeftRadius: 0
9857
9898
  },
9858
- middle: {
9899
+ "placement-middle": {
9859
9900
  borderRadius: 0
9860
- },
9861
- controls: {
9862
- display: "flex",
9863
- gridArea: "1 / 3"
9864
- },
9865
- icon: {
9866
- display: "flex",
9867
- alignItems: "center",
9901
+ }
9902
+ });
9903
+ function _define_property$T(obj, key, value) {
9904
+ if (key in obj) {
9905
+ Object.defineProperty(obj, key, {
9906
+ value,
9907
+ enumerable: true,
9908
+ configurable: true,
9909
+ writable: true
9910
+ });
9911
+ } else {
9912
+ obj[key] = value;
9913
+ }
9914
+ return obj;
9915
+ }
9916
+ function _object_spread$R(target) {
9917
+ for (var i = 1; i < arguments.length; i++) {
9918
+ var source = arguments[i] != null ? arguments[i] : {};
9919
+ var ownKeys2 = Object.keys(source);
9920
+ if (typeof Object.getOwnPropertySymbols === "function") {
9921
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9922
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9923
+ }));
9924
+ }
9925
+ ownKeys2.forEach(function(key) {
9926
+ _define_property$T(target, key, source[key]);
9927
+ });
9928
+ }
9929
+ return target;
9930
+ }
9931
+ function ownKeys$K(object, enumerableOnly) {
9932
+ var keys2 = Object.keys(object);
9933
+ if (Object.getOwnPropertySymbols) {
9934
+ var symbols = Object.getOwnPropertySymbols(object);
9935
+ if (enumerableOnly) {
9936
+ symbols = symbols.filter(function(sym) {
9937
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9938
+ });
9939
+ }
9940
+ keys2.push.apply(keys2, symbols);
9941
+ }
9942
+ return keys2;
9943
+ }
9944
+ function _object_spread_props$K(target, source) {
9945
+ source = source != null ? source : {};
9946
+ if (Object.getOwnPropertyDescriptors) {
9947
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9948
+ } else {
9949
+ ownKeys$K(Object(source)).forEach(function(key) {
9950
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9951
+ });
9952
+ }
9953
+ return target;
9954
+ }
9955
+ var ControlWrapper = function(param) {
9956
+ var label = param.label, icon = param.icon, groupPlacement = param.groupPlacement, isInvalid = param.isInvalid, isFocused = param.isFocused, isRequired = param.isRequired, isLoading = param.isLoading, isFullWidth = param.isFullWidth, isDisabled = param.isDisabled, hasValue = param.hasValue, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onIconClick = param.onIconClick, onClear = param.onClear;
9957
+ var classes = useStyles$I({
9958
+ theme: tweakStyles
9959
+ });
9960
+ var hasEndIcon = !isLoading && isReactNodeNotEmpty(icon);
9961
+ var hasClearButton = !isDisabled && !isLoading && hasValue && isNotEmpty(onClear);
9962
+ var hasControls = hasEndIcon || hasClearButton || isLoading;
9963
+ var tweakPreloaderStyles = useTweakStyles({
9964
+ tweakStyles,
9965
+ className: "tweakPreloader",
9966
+ currentComponentName: "ControlWrapper"
9967
+ });
9968
+ var _obj2, _obj1, _obj22;
9969
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
9970
+ className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && [
9971
+ classes["placement-".concat(groupPlacement)]
9972
+ ], (_obj2 = {}, _define_property$T(_obj2, classes.invalid, isInvalid), _define_property$T(_obj2, classes.focused, isFocused), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.minContent, !isFullWidth), _obj2))
9973
+ }, addDataAttributes$1(data, testId)), {
9974
+ children: [
9975
+ isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
9976
+ className: clsx(classes.label, (_obj1 = {}, _define_property$T(_obj1, classes.requiredLabel, isRequired), _define_property$T(_obj1, classes.disabledLabel, isDisabled), _define_property$T(_obj1, classes.activeLabel, isFocused || hasValue), _obj1)),
9977
+ children: label
9978
+ }),
9979
+ /* @__PURE__ */ jsxs("div", {
9980
+ className: classes.wrapper,
9981
+ children: [
9982
+ children,
9983
+ hasControls && /* @__PURE__ */ jsxs("div", {
9984
+ className: classes.controls,
9985
+ children: [
9986
+ hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9987
+ className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
9988
+ }, addClickHandler(onClear), addDataTestId(testId, "clear")), {
9989
+ children: /* @__PURE__ */ jsx("div", {
9990
+ className: classes.iconInner,
9991
+ children: /* @__PURE__ */ jsx(Icon, {
9992
+ type: "close"
9993
+ })
9994
+ })
9995
+ })),
9996
+ hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9997
+ className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !isString(icon)), _obj22))
9998
+ }, addClickHandler(onIconClick, !isDisabled), addDataTestId(testId, "icon")), {
9999
+ children: /* @__PURE__ */ jsx("div", {
10000
+ className: classes.iconInner,
10001
+ children: renderIcon(icon)
10002
+ })
10003
+ })),
10004
+ isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
10005
+ className: clsx(classes.icon, classes.loader)
10006
+ }, addDataTestId(testId, "loading")), {
10007
+ children: /* @__PURE__ */ jsx("div", {
10008
+ className: classes.iconInner,
10009
+ children: /* @__PURE__ */ jsx(ThemedPreloader, {
10010
+ tweakStyles: tweakPreloaderStyles
10011
+ })
10012
+ })
10013
+ }))
10014
+ ]
10015
+ })
10016
+ ]
10017
+ })
10018
+ ]
10019
+ }));
10020
+ };
10021
+ var PADDING_WITH_UNITS = 8;
10022
+ var useStyles$H = createThemedStyles("Input", {
10023
+ inputContent: {
10024
+ height: "var(--control-height)",
9868
10025
  padding: [
9869
10026
  0,
9870
- 4
10027
+ "var(--control-padding)"
9871
10028
  ],
9872
- width: 20,
9873
- transition: animations.defaultTransition,
9874
- transitionProperty: "color",
9875
- boxSizing: "content-box",
9876
- "&:last-child": {
9877
- paddingRight: 8
10029
+ fontSize: 16,
10030
+ fontFamily: "inherit"
10031
+ },
10032
+ input: {
10033
+ extend: "inputContent",
10034
+ width: "100%",
10035
+ outline: "none",
10036
+ outlineStyle: "none",
10037
+ boxSizing: "border-box",
10038
+ border: "none",
10039
+ background: "none",
10040
+ color: "black",
10041
+ "&[readonly]": {
10042
+ cursor: "default"
10043
+ },
10044
+ "&::placeholder": {
10045
+ opacity: 1
9878
10046
  },
9879
- "& + $units": {
9880
- marginLeft: 4
10047
+ "&::-webkit-date-and-time-value": {
10048
+ textAlign: "left"
10049
+ },
10050
+ MozAppearance: "textfield",
10051
+ "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
10052
+ display: "none",
10053
+ WebkitAppearance: "none",
10054
+ margin: 0
9881
10055
  }
9882
10056
  },
9883
- clearIcon: {
9884
- extend: "icon"
9885
- },
9886
- inputIcon: {
9887
- extend: "icon"
9888
- },
9889
- withIcons: {
9890
- paddingRight: 4
10057
+ autoSizeWrapper: {
10058
+ position: "relative",
10059
+ display: "flex",
10060
+ minWidth: 0,
10061
+ zIndex: 0,
10062
+ flexGrow: 1
9891
10063
  },
9892
- withControls: {},
9893
- invalid: {},
9894
- disabled: {},
9895
- invalidLabel: {},
9896
- error: {
9897
- fontSize: 12
10064
+ autoSized: {
10065
+ position: "absolute",
10066
+ top: 0,
10067
+ left: 0,
10068
+ height: "100%"
9898
10069
  },
9899
- info: {
9900
- fontSize: 12,
9901
- paddingTop: 4,
9902
- paddingLeft: 13
10070
+ withUnits: {
10071
+ extend: "autoSized",
10072
+ paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
10073
+ "& + $fakeValue": {
10074
+ paddingRight: PADDING_WITH_UNITS
10075
+ }
9903
10076
  },
9904
- "error-top": {
9905
- position: "absolute",
9906
- top: -18,
9907
- left: -1,
9908
- padding: [
9909
- 4,
9910
- 8
9911
- ],
9912
- zIndex: 1
10077
+ withLabel: {},
10078
+ withValue: {},
10079
+ fakeValue: {
10080
+ extend: "inputContent",
10081
+ visibility: "hidden",
10082
+ maxWidth: "100%",
10083
+ overflow: "hidden",
10084
+ minWidth: 8,
10085
+ whiteSpace: "nowrap"
9913
10086
  },
9914
- "error-bottom": {
9915
- paddingTop: 4,
9916
- paddingLeft: 13
10087
+ units: {
10088
+ alignSelf: "center",
10089
+ paddingRight: "var(--control-padding)"
9917
10090
  },
9918
- loading: {},
9919
- withUnits: {}
10091
+ focusedInput: {},
10092
+ disabledInput: {},
10093
+ invalidInput: {}
9920
10094
  });
9921
10095
  function _array_like_to_array$j(arr, len) {
9922
10096
  if (len == null || len > arr.length)
@@ -9958,7 +10132,7 @@ function _async_to_generator$5(fn3) {
9958
10132
  });
9959
10133
  };
9960
10134
  }
9961
- function _define_property$R(obj, key, value) {
10135
+ function _define_property$S(obj, key, value) {
9962
10136
  if (key in obj) {
9963
10137
  Object.defineProperty(obj, key, {
9964
10138
  value,
@@ -10002,7 +10176,7 @@ function _iterable_to_array_limit$j(arr, i) {
10002
10176
  function _non_iterable_rest$j() {
10003
10177
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10004
10178
  }
10005
- function _object_spread$P(target) {
10179
+ function _object_spread$Q(target) {
10006
10180
  for (var i = 1; i < arguments.length; i++) {
10007
10181
  var source = arguments[i] != null ? arguments[i] : {};
10008
10182
  var ownKeys2 = Object.keys(source);
@@ -10012,12 +10186,12 @@ function _object_spread$P(target) {
10012
10186
  }));
10013
10187
  }
10014
10188
  ownKeys2.forEach(function(key) {
10015
- _define_property$R(target, key, source[key]);
10189
+ _define_property$S(target, key, source[key]);
10016
10190
  });
10017
10191
  }
10018
10192
  return target;
10019
10193
  }
10020
- function ownKeys$I(object, enumerableOnly) {
10194
+ function ownKeys$J(object, enumerableOnly) {
10021
10195
  var keys2 = Object.keys(object);
10022
10196
  if (Object.getOwnPropertySymbols) {
10023
10197
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10030,21 +10204,21 @@ function ownKeys$I(object, enumerableOnly) {
10030
10204
  }
10031
10205
  return keys2;
10032
10206
  }
10033
- function _object_spread_props$I(target, source) {
10207
+ function _object_spread_props$J(target, source) {
10034
10208
  source = source != null ? source : {};
10035
10209
  if (Object.getOwnPropertyDescriptors) {
10036
10210
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10037
10211
  } else {
10038
- ownKeys$I(Object(source)).forEach(function(key) {
10212
+ ownKeys$J(Object(source)).forEach(function(key) {
10039
10213
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10040
10214
  });
10041
10215
  }
10042
10216
  return target;
10043
10217
  }
10044
- function _object_without_properties$g(source, excluded) {
10218
+ function _object_without_properties$i(source, excluded) {
10045
10219
  if (source == null)
10046
10220
  return {};
10047
- var target = _object_without_properties_loose$g(source, excluded);
10221
+ var target = _object_without_properties_loose$i(source, excluded);
10048
10222
  var key, i;
10049
10223
  if (Object.getOwnPropertySymbols) {
10050
10224
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10059,7 +10233,7 @@ function _object_without_properties$g(source, excluded) {
10059
10233
  }
10060
10234
  return target;
10061
10235
  }
10062
- function _object_without_properties_loose$g(source, excluded) {
10236
+ function _object_without_properties_loose$i(source, excluded) {
10063
10237
  if (source == null)
10064
10238
  return {};
10065
10239
  var target = {};
@@ -10191,38 +10365,32 @@ function _ts_generator$5(thisArg, body) {
10191
10365
  };
10192
10366
  }
10193
10367
  }
10194
- var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10195
- var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$g(_param, [
10368
+ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
10369
+ var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, controlProps = _object_without_properties$i(_param, [
10196
10370
  "value",
10197
- "label",
10198
10371
  "placeholder",
10372
+ "label",
10199
10373
  "type",
10200
10374
  "isDisabled",
10375
+ "autoComplete",
10376
+ "inputMode",
10201
10377
  "isReadonly",
10202
- "hasFloatingLabel",
10203
10378
  "isInvalid",
10204
10379
  "isActive",
10205
10380
  "isClearable",
10206
- "infoMessage",
10207
- "errorMessage",
10208
- "errorPosition",
10209
- "inlineStyle",
10210
- "border",
10211
- "isRequired",
10212
- "isLoading",
10213
- "isAutoSizeable",
10214
- "defaultSize",
10215
- "iconType",
10216
- "hasRequiredLabel",
10217
- "data",
10381
+ "isAutoSized",
10382
+ "name",
10218
10383
  "tweakStyles",
10384
+ "maxLength",
10219
10385
  "shouldFocusOnMount",
10220
10386
  "units",
10221
10387
  "testId",
10388
+ "tabIndex",
10222
10389
  "onChange",
10390
+ "onPaste",
10223
10391
  "onFocus",
10224
10392
  "onBlur",
10225
- "onIconClick",
10393
+ "onKeyDown",
10226
10394
  "mask",
10227
10395
  "maskPlaceholder",
10228
10396
  "alwaysShowMask",
@@ -10232,13 +10400,27 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10232
10400
  var classes = useStyles$H({
10233
10401
  theme: tweakStyles
10234
10402
  });
10235
- var tweakPreloaderStyles = useTweakStyles({
10403
+ var tweakControlWrapperStyles = useTweakStyles({
10236
10404
  tweakStyles,
10237
- className: "tweakPreloader",
10405
+ className: "tweakControlWrapper",
10238
10406
  currentComponentName: "Input"
10239
10407
  });
10240
10408
  var _useState = _sliced_to_array$j(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
10409
+ var _useState1 = _sliced_to_array$j(useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
10241
10410
  var inputRef = useRef(null);
10411
+ var mergedRef = mergeRefs([
10412
+ ref,
10413
+ inputRef
10414
+ ]);
10415
+ var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
10416
+ "email",
10417
+ "tel",
10418
+ "url"
10419
+ ].includes(type) ? type : void 0;
10420
+ var hasFocus = isFocused || isActive;
10421
+ var hasValue = isNotEmpty(value) && value !== "";
10422
+ var hasUnits = isReactNodeNotEmpty(units);
10423
+ var hasPlaceholder = (!isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
10242
10424
  var handleChange = function(event) {
10243
10425
  onChange(event.currentTarget.value, event);
10244
10426
  };
@@ -10250,9 +10432,9 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10250
10432
  setFocused(false);
10251
10433
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
10252
10434
  };
10253
- var handleOnInputClear = function() {
10435
+ var handleInputClear = function() {
10254
10436
  var _ref = _async_to_generator$5(function(event) {
10255
- var _input_current, input;
10437
+ var _inputRef_current;
10256
10438
  return _ts_generator$5(this, function(_state) {
10257
10439
  switch (_state.label) {
10258
10440
  case 0:
@@ -10262,114 +10444,195 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10262
10444
  ];
10263
10445
  case 1:
10264
10446
  _state.sent();
10265
- input = ref !== null && ref !== void 0 ? ref : inputRef;
10266
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus();
10447
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10267
10448
  return [
10268
10449
  2
10269
10450
  ];
10270
10451
  }
10271
10452
  });
10272
10453
  });
10273
- return function handleOnInputClear2(event) {
10454
+ return function handleInputClear2(event) {
10274
10455
  return _ref.apply(this, arguments);
10275
10456
  };
10276
10457
  }();
10277
- var hasFocus = isFocused || isActive;
10278
- var hasClearIcon = isClearable && value.length > 0;
10279
- var hasControls = hasClearIcon || iconType !== void 0 || isLoading;
10280
- var hasValue = value !== void 0 && value !== "";
10281
- var hasUnits = units !== void 0 && units !== "";
10282
- var hasLabel = isReactNodeNotEmpty(label);
10283
- var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder;
10284
- var hasPlaceholder = (!hasLabel || isLabelActive) && isStringNotEmpty(placeholder);
10285
- var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
10458
+ var unitsRef = useCallback(function(node) {
10459
+ setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
10460
+ }, [
10461
+ units
10462
+ ]);
10286
10463
  var _obj2;
10287
- var props = _object_spread_props$I(_object_spread$P({}, inputProps, addDataTestId(testId)), {
10288
- className: clsx(classes.input, (_obj2 = {}, _define_property$R(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$R(_obj2, classes.withIcons, hasControls), _define_property$R(_obj2, classes.withControls, hasControls), _define_property$R(_obj2, classes.withUnits, shouldShowUnits), _define_property$R(_obj2, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj2)),
10289
- onFocus: handleFocus,
10290
- onBlur: handleBlur,
10291
- onChange: handleChange,
10464
+ var props = _object_spread$Q({
10465
+ className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withValue, hasValue), _define_property$S(_obj2, classes.withLabel, isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
10466
+ style: hasUnits && hasValue ? {
10467
+ "--units-width": "".concat(unitsWidth, "px")
10468
+ } : void 0,
10292
10469
  value,
10293
10470
  type,
10471
+ autoComplete,
10472
+ inputMode,
10294
10473
  disabled: isDisabled,
10295
10474
  placeholder: hasPlaceholder ? placeholder : void 0,
10296
- autoFocus: shouldFocusOnMount,
10475
+ name,
10476
+ maxLength,
10297
10477
  readOnly: isReadonly,
10298
- size: isAutoSizeable ? defaultSize : void 0
10478
+ tabIndex,
10479
+ onKeyDown,
10480
+ onPaste,
10481
+ onFocus: handleFocus,
10482
+ onBlur: handleBlur,
10483
+ onChange: handleChange
10484
+ }, addDataTestId(testId, "input"));
10485
+ useEffect(function() {
10486
+ if (shouldFocusOnMount) {
10487
+ var _inputRef_current;
10488
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10489
+ }
10490
+ }, []);
10491
+ var inputContent = /* @__PURE__ */ jsxs(Fragment, {
10492
+ children: [
10493
+ isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
10494
+ ref: mergedRef,
10495
+ mask,
10496
+ maskPlaceholder,
10497
+ alwaysShowMask,
10498
+ beforeMaskedStateChange
10499
+ }, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
10500
+ ref: mergedRef
10501
+ }, props)),
10502
+ (hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
10503
+ className: classes.fakeValue,
10504
+ children: value
10505
+ }),
10506
+ hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
10507
+ className: classes.units,
10508
+ ref: unitsRef,
10509
+ children: units
10510
+ })
10511
+ ]
10512
+ });
10513
+ return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
10514
+ label,
10515
+ isDisabled,
10516
+ isFocused: hasFocus,
10517
+ isInvalid,
10518
+ hasValue: hasValue || hasPlaceholder,
10519
+ isFullWidth: !isAutoSized,
10520
+ tweakStyles: tweakControlWrapperStyles,
10521
+ onClear: isClearable && hasValue ? handleInputClear : void 0
10522
+ }, controlProps), {
10523
+ children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
10524
+ className: classes.autoSizeWrapper,
10525
+ children: inputContent
10526
+ }) : inputContent
10527
+ }));
10528
+ });
10529
+ function _define_property$R(obj, key, value) {
10530
+ if (key in obj) {
10531
+ Object.defineProperty(obj, key, {
10532
+ value,
10533
+ enumerable: true,
10534
+ configurable: true,
10535
+ writable: true
10536
+ });
10537
+ } else {
10538
+ obj[key] = value;
10539
+ }
10540
+ return obj;
10541
+ }
10542
+ function _object_spread$P(target) {
10543
+ for (var i = 1; i < arguments.length; i++) {
10544
+ var source = arguments[i] != null ? arguments[i] : {};
10545
+ var ownKeys2 = Object.keys(source);
10546
+ if (typeof Object.getOwnPropertySymbols === "function") {
10547
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10548
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
10549
+ }));
10550
+ }
10551
+ ownKeys2.forEach(function(key) {
10552
+ _define_property$R(target, key, source[key]);
10553
+ });
10554
+ }
10555
+ return target;
10556
+ }
10557
+ function ownKeys$I(object, enumerableOnly) {
10558
+ var keys2 = Object.keys(object);
10559
+ if (Object.getOwnPropertySymbols) {
10560
+ var symbols = Object.getOwnPropertySymbols(object);
10561
+ if (enumerableOnly) {
10562
+ symbols = symbols.filter(function(sym) {
10563
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10564
+ });
10565
+ }
10566
+ keys2.push.apply(keys2, symbols);
10567
+ }
10568
+ return keys2;
10569
+ }
10570
+ function _object_spread_props$I(target, source) {
10571
+ source = source != null ? source : {};
10572
+ if (Object.getOwnPropertyDescriptors) {
10573
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10574
+ } else {
10575
+ ownKeys$I(Object(source)).forEach(function(key) {
10576
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10577
+ });
10578
+ }
10579
+ return target;
10580
+ }
10581
+ function _object_without_properties$h(source, excluded) {
10582
+ if (source == null)
10583
+ return {};
10584
+ var target = _object_without_properties_loose$h(source, excluded);
10585
+ var key, i;
10586
+ if (Object.getOwnPropertySymbols) {
10587
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
10588
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
10589
+ key = sourceSymbolKeys[i];
10590
+ if (excluded.indexOf(key) >= 0)
10591
+ continue;
10592
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
10593
+ continue;
10594
+ target[key] = source[key];
10595
+ }
10596
+ }
10597
+ return target;
10598
+ }
10599
+ function _object_without_properties_loose$h(source, excluded) {
10600
+ if (source == null)
10601
+ return {};
10602
+ var target = {};
10603
+ var sourceKeys = Object.keys(source);
10604
+ var key, i;
10605
+ for (i = 0; i < sourceKeys.length; i++) {
10606
+ key = sourceKeys[i];
10607
+ if (excluded.indexOf(key) >= 0)
10608
+ continue;
10609
+ target[key] = source[key];
10610
+ }
10611
+ return target;
10612
+ }
10613
+ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10614
+ var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
10615
+ "infoMessage",
10616
+ "errorMessage",
10617
+ "isInvalid",
10618
+ "testId",
10619
+ "tweakStyles"
10620
+ ]);
10621
+ var tweakWithMessagesStyles = useTweakStyles({
10622
+ tweakStyles,
10623
+ className: "tweakWithMessages"
10299
10624
  });
10300
- var _obj1, _obj22;
10301
- return /* @__PURE__ */ jsxs("div", {
10302
- className: classes.root,
10303
- children: [
10304
- /* @__PURE__ */ jsxs("div", _object_spread_props$I(_object_spread$P({
10305
- className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$R(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$R(_obj1, classes.invalid, isInvalid), _define_property$R(_obj1, classes.focused, hasFocus), _define_property$R(_obj1, classes.disabled, isDisabled), _define_property$R(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]),
10306
- "data-value": isAutoSizeable ? value : void 0
10307
- }, addDataAttributes(data)), {
10308
- children: [
10309
- mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$P({
10310
- ref: ref !== null && ref !== void 0 ? ref : inputRef
10311
- }, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$P({
10312
- ref: ref !== null && ref !== void 0 ? ref : inputRef,
10313
- mask,
10314
- maskPlaceholder,
10315
- alwaysShowMask,
10316
- beforeMaskedStateChange
10317
- }, props)),
10318
- hasLabel && /* @__PURE__ */ jsx("span", {
10319
- className: clsx(classes.label, (_obj22 = {}, _define_property$R(_obj22, classes.invalidLabel, isInvalid), _define_property$R(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$R(_obj22, classes.activeLabel, isLabelActive), _define_property$R(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
10320
- _define_property$R(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)),
10321
- children: label
10322
- }),
10323
- shouldShowUnits && /* @__PURE__ */ jsxs("div", {
10324
- className: clsx(classes.unitsWrapper, _define_property$R({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
10325
- children: [
10326
- /* @__PURE__ */ jsx("span", {
10327
- className: classes.fakeValue,
10328
- children: value
10329
- }),
10330
- /* @__PURE__ */ jsx("span", {
10331
- className: classes.units,
10332
- children: units
10333
- })
10334
- ]
10335
- }),
10336
- hasControls && /* @__PURE__ */ jsxs("div", {
10337
- className: classes.controls,
10338
- children: [
10339
- isLoading && /* @__PURE__ */ jsx("div", {
10340
- className: clsx(classes.inputIcon, classes.loading),
10341
- children: /* @__PURE__ */ jsx(ThemedPreloader, {
10342
- tweakStyles: tweakPreloaderStyles
10343
- })
10344
- }),
10345
- !isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", {
10346
- className: clsx(classes.clearIcon, classes.activeIcon),
10347
- onMouseDown: function(event) {
10348
- return event.preventDefault();
10349
- },
10350
- onClick: handleOnInputClear,
10351
- children: /* @__PURE__ */ jsx(Icon, {
10352
- type: "close"
10353
- })
10354
- }),
10355
- isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
10356
- className: clsx(classes.inputIcon, _define_property$R({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
10357
- onClick: !isDisabled ? onIconClick : void 0,
10358
- children: renderIcon(iconType)
10359
- })
10360
- ]
10361
- })
10362
- ]
10363
- })),
10364
- isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", {
10365
- className: classes.info,
10366
- children: infoMessage
10367
- }),
10368
- isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", {
10369
- className: clsx(classes.error, classes["error-".concat(errorPosition)]),
10370
- children: errorMessage
10371
- })
10372
- ]
10625
+ return /* @__PURE__ */ jsx(WithMessages, {
10626
+ errorMessage,
10627
+ infoMessage,
10628
+ testId,
10629
+ tweakStyles: tweakWithMessagesStyles,
10630
+ children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
10631
+ ref,
10632
+ testId,
10633
+ tweakStyles,
10634
+ isInvalid
10635
+ }))
10373
10636
  });
10374
10637
  });
10375
10638
  var EMPTY_DATE_INPUT_VALUE = "__.__.____";
@@ -10434,10 +10697,10 @@ function _object_spread_props$H(target, source) {
10434
10697
  }
10435
10698
  return target;
10436
10699
  }
10437
- function _object_without_properties$f(source, excluded) {
10700
+ function _object_without_properties$g(source, excluded) {
10438
10701
  if (source == null)
10439
10702
  return {};
10440
- var target = _object_without_properties_loose$f(source, excluded);
10703
+ var target = _object_without_properties_loose$g(source, excluded);
10441
10704
  var key, i;
10442
10705
  if (Object.getOwnPropertySymbols) {
10443
10706
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10452,7 +10715,7 @@ function _object_without_properties$f(source, excluded) {
10452
10715
  }
10453
10716
  return target;
10454
10717
  }
10455
- function _object_without_properties_loose$f(source, excluded) {
10718
+ function _object_without_properties_loose$g(source, excluded) {
10456
10719
  if (source == null)
10457
10720
  return {};
10458
10721
  var target = {};
@@ -10467,7 +10730,7 @@ function _object_without_properties_loose$f(source, excluded) {
10467
10730
  return target;
10468
10731
  }
10469
10732
  var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
10470
- var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$f(_param, [
10733
+ var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$g(_param, [
10471
10734
  "date",
10472
10735
  "startDate",
10473
10736
  "endDate",
@@ -10523,7 +10786,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
10523
10786
  }));
10524
10787
  });
10525
10788
  const reactDatepicker = "";
10526
- var LEFT_PADDING = 44;
10789
+ var Z_INDEX$1 = dimensions.Z_INDEX;
10527
10790
  var useStyles$F = createThemedStyles("SearchInput", {
10528
10791
  root: {
10529
10792
  position: "relative"
@@ -10535,33 +10798,26 @@ var useStyles$F = createThemedStyles("SearchInput", {
10535
10798
  left: 12,
10536
10799
  height: "100%",
10537
10800
  width: 20,
10538
- zIndex: 2,
10539
- color: colors.GREY_ACTIVE
10540
- },
10541
- iconClickable: {
10542
- cursor: "pointer"
10801
+ color: colors.GREY_ACTIVE,
10802
+ zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
10543
10803
  }
10544
10804
  });
10545
10805
  var inputStyles$4 = {
10546
- inputWrapper: {
10547
- height: 35,
10548
- borderColor: "transparent",
10549
- backgroundColor: rgba(colors.BORDER_MAIN, 0.3),
10550
- borderRadius: 18,
10551
- paddingLeft: LEFT_PADDING,
10552
- transitionProperty: "background-color, border-color"
10553
- },
10554
- focused: {
10555
- backgroundColor: colors.CLASSIC_WHITE,
10556
- borderColor: colors.BORDER_MAIN
10806
+ tweakControlWrapper: {
10807
+ controlWrapper: {
10808
+ borderColor: "transparent",
10809
+ borderRadius: 18,
10810
+ paddingLeft: 0,
10811
+ transitionProperty: "background-color, border-color"
10812
+ },
10813
+ focused: {
10814
+ backgroundColor: colors.CLASSIC_WHITE,
10815
+ borderColor: colors.BORDER_MAIN
10816
+ }
10557
10817
  },
10558
- input: {
10818
+ inputContent: {
10559
10819
  fontSize: 14,
10560
- paddingLeft: 0
10561
- },
10562
- label: {
10563
- left: LEFT_PADDING,
10564
- fontSize: 14
10820
+ paddingLeft: 44
10565
10821
  }
10566
10822
  };
10567
10823
  function _define_property$P(obj, key, value) {
@@ -10616,10 +10872,10 @@ function _object_spread_props$G(target, source) {
10616
10872
  }
10617
10873
  return target;
10618
10874
  }
10619
- function _object_without_properties$e(source, excluded) {
10875
+ function _object_without_properties$f(source, excluded) {
10620
10876
  if (source == null)
10621
10877
  return {};
10622
- var target = _object_without_properties_loose$e(source, excluded);
10878
+ var target = _object_without_properties_loose$f(source, excluded);
10623
10879
  var key, i;
10624
10880
  if (Object.getOwnPropertySymbols) {
10625
10881
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10634,7 +10890,7 @@ function _object_without_properties$e(source, excluded) {
10634
10890
  }
10635
10891
  return target;
10636
10892
  }
10637
- function _object_without_properties_loose$e(source, excluded) {
10893
+ function _object_without_properties_loose$f(source, excluded) {
10638
10894
  if (source == null)
10639
10895
  return {};
10640
10896
  var target = {};
@@ -10649,12 +10905,13 @@ function _object_without_properties_loose$e(source, excluded) {
10649
10905
  return target;
10650
10906
  }
10651
10907
  var SearchInput = function(_param) {
10652
- var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, onSearchIconClick = _param.onSearchIconClick, props = _object_without_properties$e(_param, [
10908
+ var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, placeholder = _param.placeholder, value = _param.value, testId = _param.testId, data = _param.data, props = _object_without_properties$f(_param, [
10653
10909
  "isClearable",
10654
10910
  "tweakStyles",
10911
+ "placeholder",
10912
+ "value",
10655
10913
  "testId",
10656
- "data",
10657
- "onSearchIconClick"
10914
+ "data"
10658
10915
  ]);
10659
10916
  var classes = useStyles$F({
10660
10917
  theme: tweakStyles
@@ -10667,23 +10924,20 @@ var SearchInput = function(_param) {
10667
10924
  });
10668
10925
  return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
10669
10926
  className: classes.root
10670
- }, addDataAttributes$1(data, testId)), {
10927
+ }, addDataTestId(testId), addDataAttributes(data)), {
10671
10928
  children: [
10672
- /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$N({
10673
- className: clsx(classes.icon, _define_property$P({}, classes.iconClickable, isNotEmpty(onSearchIconClick)))
10674
- }, addClickHandler(onSearchIconClick)), {
10929
+ /* @__PURE__ */ jsx("div", {
10930
+ className: classes.icon,
10675
10931
  children: /* @__PURE__ */ jsx(Icon, {
10676
10932
  type: "search"
10677
10933
  })
10678
- })),
10934
+ }),
10679
10935
  /* @__PURE__ */ jsx(Input, _object_spread$N({
10680
- inputMode: "search",
10936
+ value,
10937
+ placeholder,
10681
10938
  isClearable,
10682
- isActive: props.value !== "" && props.value !== void 0,
10683
10939
  testId: getTestId(testId, "input"),
10684
- tweakStyles: tweakInputStyles,
10685
- hasFloatingLabel: false,
10686
- label: props.placeholder
10940
+ tweakStyles: tweakInputStyles
10687
10941
  }, props))
10688
10942
  ]
10689
10943
  }));
@@ -10773,10 +11027,10 @@ function _object_spread$M(target) {
10773
11027
  }
10774
11028
  return target;
10775
11029
  }
10776
- function _object_without_properties$d(source, excluded) {
11030
+ function _object_without_properties$e(source, excluded) {
10777
11031
  if (source == null)
10778
11032
  return {};
10779
- var target = _object_without_properties_loose$d(source, excluded);
11033
+ var target = _object_without_properties_loose$e(source, excluded);
10780
11034
  var key, i;
10781
11035
  if (Object.getOwnPropertySymbols) {
10782
11036
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10791,7 +11045,7 @@ function _object_without_properties$d(source, excluded) {
10791
11045
  }
10792
11046
  return target;
10793
11047
  }
10794
- function _object_without_properties_loose$d(source, excluded) {
11048
+ function _object_without_properties_loose$e(source, excluded) {
10795
11049
  if (source == null)
10796
11050
  return {};
10797
11051
  var target = {};
@@ -10894,7 +11148,7 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
10894
11148
  _this_props.active;
10895
11149
  var elementType = _this_props.elementType, children = _this_props.children;
10896
11150
  _this_props.options;
10897
- var wrapperProps = _object_without_properties$d(_this_props, [
11151
+ var wrapperProps = _object_without_properties$e(_this_props, [
10898
11152
  "active",
10899
11153
  "elementType",
10900
11154
  "children",
@@ -11256,6 +11510,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
11256
11510
  return isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
11257
11511
  };
11258
11512
  };
11513
+ var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
11259
11514
  var useStyles$D = createThemedStyles("Select", {
11260
11515
  root: {
11261
11516
  width: "100%",
@@ -11275,7 +11530,8 @@ var useStyles$D = createThemedStyles("Select", {
11275
11530
  },
11276
11531
  withoutPopper: {
11277
11532
  position: "absolute",
11278
- top: "calc(var(--dropdown-offset, 100%) + 6px)"
11533
+ top: "100%",
11534
+ paddingTop: 4
11279
11535
  },
11280
11536
  listWrapperInBody: {
11281
11537
  minWidth: "auto",
@@ -11285,16 +11541,17 @@ var useStyles$D = createThemedStyles("Select", {
11285
11541
  arrow: {
11286
11542
  position: "absolute",
11287
11543
  right: 12,
11288
- top: 14,
11544
+ top: "50%",
11289
11545
  width: 20,
11290
11546
  height: 20,
11291
11547
  cursor: "pointer",
11292
- zIndex: 1,
11548
+ transform: "translateY(-50%)",
11293
11549
  transition: animations.defaultTransition,
11294
- transitionProperty: "transform"
11550
+ transitionProperty: "transform",
11551
+ zIndex: Z_INDEX.CONTROL_FOCUS + 1
11295
11552
  },
11296
11553
  activeArrow: {
11297
- transform: "rotate(180deg)"
11554
+ transform: "translateY(-50%) rotate(180deg)"
11298
11555
  },
11299
11556
  disabled: {
11300
11557
  "& $arrow": {
@@ -11307,21 +11564,32 @@ var useStyles$D = createThemedStyles("Select", {
11307
11564
  }
11308
11565
  },
11309
11566
  icon: {
11310
- width: 16,
11311
- height: 16
11567
+ width: CONTROL.ICON_INNER_SIZE,
11568
+ height: CONTROL.ICON_INNER_SIZE
11569
+ },
11570
+ iconWrapper: {
11571
+ display: "flex",
11572
+ alignItems: "center"
11312
11573
  }
11313
11574
  });
11314
11575
  var baseInputStyles = {
11315
- input: {
11576
+ inputContent: {
11316
11577
  paddingRight: 32
11317
11578
  },
11318
- disabled: {
11319
- "& $input": {
11320
- cursor: "default"
11579
+ input: {
11580
+ "&[readonly]": {
11581
+ cursor: "pointer"
11321
11582
  }
11322
11583
  },
11323
- controls: {
11324
- paddingRight: 32
11584
+ tweakControlWrapper: {
11585
+ controls: {
11586
+ paddingRight: 40
11587
+ },
11588
+ icon: {
11589
+ "&:last-child": {
11590
+ paddingRight: 0
11591
+ }
11592
+ }
11325
11593
  }
11326
11594
  };
11327
11595
  var readonlyInputBaseStyles = {
@@ -11329,16 +11597,8 @@ var readonlyInputBaseStyles = {
11329
11597
  cursor: "pointer"
11330
11598
  }
11331
11599
  };
11332
- var multiSelectInputBaseStyles = {
11333
- inputIcon: {
11334
- "&:not($loading)": {
11335
- width: "auto"
11336
- }
11337
- }
11338
- };
11339
11600
  var readonlyInputStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11340
- var multiSelectInputStyles = mergeStyles(baseInputStyles, multiSelectInputBaseStyles);
11341
- var readonlyMultiSelectStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
11601
+ var readonlyMultiSelectStyles = mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11342
11602
  var getInputStyles = function(param) {
11343
11603
  var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
11344
11604
  if (hasReadonlyInput && isMultiSelect) {
@@ -11347,21 +11607,8 @@ var getInputStyles = function(param) {
11347
11607
  if (hasReadonlyInput && !isMultiSelect) {
11348
11608
  return readonlyInputStyles;
11349
11609
  }
11350
- if (!hasReadonlyInput && isMultiSelect) {
11351
- return multiSelectInputStyles;
11352
- }
11353
11610
  return baseInputStyles;
11354
11611
  };
11355
- var searchInputStyles$3 = {
11356
- tweakInput: {
11357
- inputWrapper: {
11358
- height: 48,
11359
- borderRadius: 0,
11360
- border: "none",
11361
- backgroundColor: "transparent"
11362
- }
11363
- }
11364
- };
11365
11612
  function _array_like_to_array$i(arr, len) {
11366
11613
  if (len == null || len > arr.length)
11367
11614
  len = arr.length;
@@ -11496,10 +11743,10 @@ function _object_spread_props$D(target, source) {
11496
11743
  }
11497
11744
  return target;
11498
11745
  }
11499
- function _object_without_properties$c(source, excluded) {
11746
+ function _object_without_properties$d(source, excluded) {
11500
11747
  if (source == null)
11501
11748
  return {};
11502
- var target = _object_without_properties_loose$c(source, excluded);
11749
+ var target = _object_without_properties_loose$d(source, excluded);
11503
11750
  var key, i;
11504
11751
  if (Object.getOwnPropertySymbols) {
11505
11752
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -11514,7 +11761,7 @@ function _object_without_properties$c(source, excluded) {
11514
11761
  }
11515
11762
  return target;
11516
11763
  }
11517
- function _object_without_properties_loose$c(source, excluded) {
11764
+ function _object_without_properties_loose$d(source, excluded) {
11518
11765
  if (source == null)
11519
11766
  return {};
11520
11767
  var target = {};
@@ -11651,7 +11898,7 @@ function _ts_generator$4(thisArg, body) {
11651
11898
  }
11652
11899
  function Select(props) {
11653
11900
  var _input_current;
11654
- 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, isActive = props.isActive, 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$c(props, [
11901
+ 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, isActive = props.isActive, 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, icon = props.icon, 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, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$d(props, [
11655
11902
  "options",
11656
11903
  "isMultiSelect",
11657
11904
  "value",
@@ -11673,7 +11920,7 @@ function Select(props) {
11673
11920
  "dropdownIcon",
11674
11921
  "shouldScrollToList",
11675
11922
  "searchInput",
11676
- "iconType",
11923
+ "icon",
11677
11924
  "onChange",
11678
11925
  "onFocus",
11679
11926
  "onBlur",
@@ -11684,16 +11931,23 @@ function Select(props) {
11684
11931
  "convertValueToString",
11685
11932
  "convertValueToId",
11686
11933
  "convertValueToReactNode",
11687
- "optionsFilter"
11934
+ "optionsFilter",
11935
+ "infoMessage",
11936
+ "errorMessage"
11688
11937
  ]);
11689
11938
  var classes = useStyles$D({
11690
11939
  theme: tweakStyles
11691
11940
  });
11692
- var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$c(_ref, [
11941
+ var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
11693
11942
  "shouldRenderInList"
11694
11943
  ]);
11695
11944
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11696
11945
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11946
+ var tweakWithMessagesStyles = useTweakStyles({
11947
+ tweakStyles,
11948
+ className: "tweakWithMessages",
11949
+ currentComponentName: "Select"
11950
+ });
11697
11951
  var tweakInputStyles = useTweakStyles({
11698
11952
  innerStyles: getInputStyles({
11699
11953
  hasReadonlyInput,
@@ -11704,7 +11958,6 @@ function Select(props) {
11704
11958
  currentComponentName: "Select"
11705
11959
  });
11706
11960
  var tweakSearchInputStyles = useTweakStyles({
11707
- innerStyles: searchInputStyles$3,
11708
11961
  tweakStyles,
11709
11962
  className: "tweakSearchInput",
11710
11963
  currentComponentName: "Select"
@@ -11784,22 +12037,10 @@ function Select(props) {
11784
12037
  convertValueToId,
11785
12038
  convertValueToString
11786
12039
  ]);
11787
- var getDropdownOffset = function() {
11788
- var _input_current_parentElement2;
11789
- if (isEmpty(input.current) || inputProps.errorPosition === "top") {
11790
- return 0;
11791
- }
11792
- var _input_current_parentElement_offsetHeight;
11793
- 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;
11794
- };
11795
12040
  var closeList = useCallback(function() {
11796
12041
  setIsListOpen(false);
11797
12042
  setSearchValue("");
11798
12043
  setShouldShowDefaultOption(true);
11799
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11800
- var _root_current;
11801
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
11802
- }
11803
12044
  }, [
11804
12045
  dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
11805
12046
  ]);
@@ -11811,15 +12052,8 @@ function Select(props) {
11811
12052
  onBlur
11812
12053
  ]);
11813
12054
  var handleListOpen = function() {
11814
- if (isReadonly) {
11815
- return;
11816
- }
11817
- if (!isListOpen) {
12055
+ if (!isReadonly && !isListOpen) {
11818
12056
  setIsListOpen(true);
11819
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11820
- var _root_current;
11821
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
11822
- }
11823
12057
  }
11824
12058
  };
11825
12059
  var handleFocus = function(event) {
@@ -12098,7 +12332,8 @@ function Select(props) {
12098
12332
  onToggleCheckbox: handleToggleOptionCheckbox
12099
12333
  })
12100
12334
  }));
12101
- var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, {
12335
+ var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
12336
+ className: classes.iconWrapper,
12102
12337
  children: [
12103
12338
  shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
12104
12339
  className: classes.counter,
@@ -12108,59 +12343,62 @@ function Select(props) {
12108
12343
  ")"
12109
12344
  ]
12110
12345
  }),
12111
- isNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
12346
+ isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
12112
12347
  className: classes.icon,
12113
- children: renderIcon(iconType)
12348
+ children: renderIcon(icon)
12114
12349
  })
12115
12350
  ]
12116
12351
  }) : void 0;
12117
- return /* @__PURE__ */ jsxs("div", {
12118
- className: classes.root,
12119
- onKeyDown: handleKeyDown,
12120
- ref: root2,
12121
- children: [
12122
- /* @__PURE__ */ jsxs("div", {
12123
- className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12124
- onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12125
- ref: inputWrapper,
12126
- children: [
12127
- /* @__PURE__ */ jsx(Input, _object_spread$I({
12128
- value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
12129
- onChange: handleInputChange,
12130
- isActive: isListOpen || isActive,
12131
- isReadonly: hasReadonlyInput,
12132
- onFocus: handleFocus,
12133
- onBlur: handleBlur,
12134
- isDisabled,
12135
- ref: input,
12136
- isLoading: areOptionsLoading,
12137
- tweakStyles: tweakInputStyles,
12138
- testId,
12139
- iconType: isMultiSelect ? multiSelectCounterWithIcon : iconType
12140
- }, inputProps)),
12141
- /* @__PURE__ */ jsx("div", {
12142
- onMouseDown: function(event) {
12143
- event.preventDefault();
12144
- },
12145
- onClick: onArrowClick,
12146
- className: clsx(classes.arrow, isOpen && classes.activeArrow),
12147
- children: renderIcon(dropdownIcon)
12352
+ return /* @__PURE__ */ jsx(WithMessages, {
12353
+ errorMessage,
12354
+ infoMessage,
12355
+ tweakStyles: tweakWithMessagesStyles,
12356
+ children: /* @__PURE__ */ jsxs("div", {
12357
+ className: classes.root,
12358
+ onKeyDown: handleKeyDown,
12359
+ ref: root2,
12360
+ children: [
12361
+ /* @__PURE__ */ jsxs("div", {
12362
+ className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12363
+ onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12364
+ ref: inputWrapper,
12365
+ children: [
12366
+ /* @__PURE__ */ jsx(InputBase, _object_spread$I({
12367
+ value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
12368
+ onChange: handleInputChange,
12369
+ isActive: isListOpen || isActive,
12370
+ isReadonly: hasReadonlyInput,
12371
+ onFocus: handleFocus,
12372
+ onBlur: handleBlur,
12373
+ isDisabled,
12374
+ ref: input,
12375
+ isLoading: areOptionsLoading,
12376
+ tweakStyles: tweakInputStyles,
12377
+ testId,
12378
+ icon: isMultiSelect ? multiSelectCounterWithIcon : icon
12379
+ }, inputProps)),
12380
+ /* @__PURE__ */ jsx("div", {
12381
+ onMouseDown: function(event) {
12382
+ event.preventDefault();
12383
+ },
12384
+ onClick: onArrowClick,
12385
+ className: clsx(classes.arrow, isOpen && classes.activeArrow),
12386
+ children: renderIcon(dropdownIcon)
12387
+ })
12388
+ ]
12389
+ }),
12390
+ shouldUsePopper ? /* @__PURE__ */ jsx(Portal, {
12391
+ container: shouldRenderInBody ? document.body : inputWrapper.current,
12392
+ children: /* @__PURE__ */ jsx(Fragment, {
12393
+ children: listEl
12148
12394
  })
12149
- ]
12150
- }),
12151
- shouldUsePopper ? /* @__PURE__ */ jsx(Portal, {
12152
- container: shouldRenderInBody ? document.body : inputWrapper.current,
12153
- children: /* @__PURE__ */ jsx(Fragment, {
12154
- children: listEl
12395
+ }) : /* @__PURE__ */ jsx(Fragment, {
12396
+ children: isOpen && listEl
12155
12397
  })
12156
- }) : /* @__PURE__ */ jsx(Fragment, {
12157
- children: isOpen && listEl
12158
- })
12159
- ]
12398
+ ]
12399
+ })
12160
12400
  });
12161
12401
  }
12162
- var SELECT_PADDING_LEFT = 12;
12163
- var SELECT_PADDING_RIGHT = 24;
12164
12402
  var useStyles$C = createThemedStyles("DatePickerHeader", {
12165
12403
  btn: {
12166
12404
  width: 36,
@@ -12172,26 +12410,6 @@ var useStyles$C = createThemedStyles("DatePickerHeader", {
12172
12410
  cursor: "pointer",
12173
12411
  marginLeft: 8
12174
12412
  },
12175
- select: {
12176
- height: 35,
12177
- fontSize: 16,
12178
- position: "relative"
12179
- },
12180
- selectValue: {
12181
- fontSize: 16,
12182
- fontWeight: "bold",
12183
- color: "transparent",
12184
- pointerEvents: "none",
12185
- paddingLeft: SELECT_PADDING_LEFT,
12186
- paddingRight: SELECT_PADDING_RIGHT
12187
- },
12188
- selectControl: {
12189
- position: "absolute",
12190
- top: 0,
12191
- left: 0,
12192
- width: "100%",
12193
- height: "100%"
12194
- },
12195
12413
  header: {
12196
12414
  margin: 6,
12197
12415
  display: "flex",
@@ -12209,22 +12427,16 @@ var selectStyles$1 = {
12209
12427
  minHeight: 35
12210
12428
  }
12211
12429
  },
12212
- arrow: {
12213
- right: 0,
12214
- top: 9,
12215
- width: 16,
12216
- height: 16
12217
- },
12218
12430
  tweakInput: {
12219
- inputWrapper: {
12220
- height: 35,
12221
- border: "none"
12431
+ tweakControlWrapper: {
12432
+ controlWrapper: {
12433
+ "--control-height": "35px",
12434
+ border: "none"
12435
+ }
12222
12436
  },
12223
- input: {
12437
+ inputContent: {
12224
12438
  fontSize: 16,
12225
- fontWeight: "bold",
12226
- paddingRight: SELECT_PADDING_RIGHT - 8,
12227
- paddingLeft: SELECT_PADDING_LEFT
12439
+ fontWeight: "bold"
12228
12440
  }
12229
12441
  }
12230
12442
  };
@@ -12247,47 +12459,25 @@ var DatePickerHeader = function(param) {
12247
12459
  return /* @__PURE__ */ jsxs("div", {
12248
12460
  className: classes.header,
12249
12461
  children: [
12250
- /* @__PURE__ */ jsxs("div", {
12251
- className: classes.select,
12252
- children: [
12253
- /* @__PURE__ */ jsx("div", {
12254
- className: classes.selectValue,
12255
- children: months[getMonth(date)]
12256
- }),
12257
- /* @__PURE__ */ jsx("div", {
12258
- className: classes.selectControl,
12259
- children: /* @__PURE__ */ jsx(Select, {
12260
- value: months[getMonth(date)],
12261
- options: months,
12262
- dropdownIcon: "chevron-down-small",
12263
- tweakStyles: tweakSelectStyles,
12264
- onChange: function(value) {
12265
- return changeMonth(months.indexOf(value));
12266
- }
12267
- })
12268
- })
12269
- ]
12462
+ /* @__PURE__ */ jsx(Select, {
12463
+ value: months[getMonth(date)],
12464
+ options: months,
12465
+ dropdownIcon: "chevron-down-small",
12466
+ isAutoSized: true,
12467
+ tweakStyles: tweakSelectStyles,
12468
+ onChange: function(value) {
12469
+ return changeMonth(months.indexOf(value));
12470
+ }
12270
12471
  }),
12271
- /* @__PURE__ */ jsxs("div", {
12272
- className: classes.select,
12273
- children: [
12274
- /* @__PURE__ */ jsx("div", {
12275
- className: classes.selectValue,
12276
- children: getYear(date)
12277
- }),
12278
- /* @__PURE__ */ jsx("div", {
12279
- className: classes.selectControl,
12280
- children: /* @__PURE__ */ jsx(Select, {
12281
- value: getYear(date),
12282
- options: years,
12283
- dropdownIcon: "chevron-down-small",
12284
- tweakStyles: tweakSelectStyles,
12285
- onChange: function(value) {
12286
- return changeYear(value);
12287
- }
12288
- })
12289
- })
12290
- ]
12472
+ /* @__PURE__ */ jsx(Select, {
12473
+ value: getYear(date),
12474
+ options: years,
12475
+ dropdownIcon: "chevron-down-small",
12476
+ isAutoSized: true,
12477
+ tweakStyles: tweakSelectStyles,
12478
+ onChange: function(value) {
12479
+ return changeYear(value);
12480
+ }
12291
12481
  }),
12292
12482
  /* @__PURE__ */ jsxs("div", {
12293
12483
  className: classes.buttons,
@@ -12456,10 +12646,10 @@ function _object_spread_props$C(target, source) {
12456
12646
  }
12457
12647
  return target;
12458
12648
  }
12459
- function _object_without_properties$b(source, excluded) {
12649
+ function _object_without_properties$c(source, excluded) {
12460
12650
  if (source == null)
12461
12651
  return {};
12462
- var target = _object_without_properties_loose$b(source, excluded);
12652
+ var target = _object_without_properties_loose$c(source, excluded);
12463
12653
  var key, i;
12464
12654
  if (Object.getOwnPropertySymbols) {
12465
12655
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -12474,7 +12664,7 @@ function _object_without_properties$b(source, excluded) {
12474
12664
  }
12475
12665
  return target;
12476
12666
  }
12477
- function _object_without_properties_loose$b(source, excluded) {
12667
+ function _object_without_properties_loose$c(source, excluded) {
12478
12668
  if (source == null)
12479
12669
  return {};
12480
12670
  var target = {};
@@ -12505,7 +12695,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
12505
12695
  return _array_like_to_array$h(o, minLen);
12506
12696
  }
12507
12697
  var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
12508
- var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$b(_param, [
12698
+ var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$c(_param, [
12509
12699
  "data",
12510
12700
  "selectedDate",
12511
12701
  "minDate",
@@ -12581,7 +12771,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
12581
12771
  isDisabled,
12582
12772
  isClearable,
12583
12773
  isActive: isOpen,
12584
- iconType: isClearable && hasDateInputValue ? void 0 : "calendar",
12774
+ icon: isClearable && hasDateInputValue ? void 0 : "calendar",
12585
12775
  tweakStyles: tweakDateInputStyles
12586
12776
  }), isRange ? {
12587
12777
  startDate: startDateValue,
@@ -13323,10 +13513,10 @@ function _object_spread_props$z(target, source) {
13323
13513
  }
13324
13514
  return target;
13325
13515
  }
13326
- function _object_without_properties$a(source, excluded) {
13516
+ function _object_without_properties$b(source, excluded) {
13327
13517
  if (source == null)
13328
13518
  return {};
13329
- var target = _object_without_properties_loose$a(source, excluded);
13519
+ var target = _object_without_properties_loose$b(source, excluded);
13330
13520
  var key, i;
13331
13521
  if (Object.getOwnPropertySymbols) {
13332
13522
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -13341,7 +13531,7 @@ function _object_without_properties$a(source, excluded) {
13341
13531
  }
13342
13532
  return target;
13343
13533
  }
13344
- function _object_without_properties_loose$a(source, excluded) {
13534
+ function _object_without_properties_loose$b(source, excluded) {
13345
13535
  if (source == null)
13346
13536
  return {};
13347
13537
  var target = {};
@@ -13356,7 +13546,7 @@ function _object_without_properties_loose$a(source, excluded) {
13356
13546
  return target;
13357
13547
  }
13358
13548
  var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
13359
- var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$a(_param, [
13549
+ var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$b(_param, [
13360
13550
  "icon",
13361
13551
  "size",
13362
13552
  "view",
@@ -13376,7 +13566,7 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
13376
13566
  var _obj2;
13377
13567
  return /* @__PURE__ */ jsx("button", _object_spread_props$z(_object_spread$E({
13378
13568
  ref,
13379
- className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$G(_obj2, classes.disabled, isDisabled), _define_property$G(_obj2, classes.active, isActive), _define_property$G(_obj2, classes.loading, isLoading), _obj2)),
13569
+ className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$G(_obj2, classes.disabled, isDisabled), _define_property$G(_obj2, classes.active, isActive), _define_property$G(_obj2, classes.loading, isLoading), _obj2)),
13380
13570
  type,
13381
13571
  disabled: isDisabled,
13382
13572
  onClick: hasNoAction ? void 0 : onClick
@@ -13934,7 +14124,7 @@ var FileItem = function(param) {
13934
14124
  event.stopPropagation();
13935
14125
  onRemove === null || onRemove === void 0 ? void 0 : onRemove(event);
13936
14126
  };
13937
- var name = fileInfo.name, size2 = fileInfo.size;
14127
+ var name = fileInfo.name, size = fileInfo.size;
13938
14128
  var hasRemoveButton = isFunction$1(onRemove);
13939
14129
  return /* @__PURE__ */ jsxs("div", {
13940
14130
  className: classes.root,
@@ -13963,9 +14153,9 @@ var FileItem = function(param) {
13963
14153
  className: classes.metadata,
13964
14154
  children: [
13965
14155
  metadata,
13966
- shouldShowSize && isNotEmpty(size2) && /* @__PURE__ */ jsx("div", {
14156
+ shouldShowSize && isNotEmpty(size) && /* @__PURE__ */ jsx("div", {
13967
14157
  className: classes.fileSize,
13968
- children: filesize(size2)
14158
+ children: filesize(size)
13969
14159
  })
13970
14160
  ]
13971
14161
  })
@@ -14280,10 +14470,10 @@ function _object_spread$A(target) {
14280
14470
  }
14281
14471
  return target;
14282
14472
  }
14283
- function _object_without_properties$9(source, excluded) {
14473
+ function _object_without_properties$a(source, excluded) {
14284
14474
  if (source == null)
14285
14475
  return {};
14286
- var target = _object_without_properties_loose$9(source, excluded);
14476
+ var target = _object_without_properties_loose$a(source, excluded);
14287
14477
  var key, i;
14288
14478
  if (Object.getOwnPropertySymbols) {
14289
14479
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -14298,7 +14488,7 @@ function _object_without_properties$9(source, excluded) {
14298
14488
  }
14299
14489
  return target;
14300
14490
  }
14301
- function _object_without_properties_loose$9(source, excluded) {
14491
+ function _object_without_properties_loose$a(source, excluded) {
14302
14492
  if (source == null)
14303
14493
  return {};
14304
14494
  var target = {};
@@ -14431,7 +14621,7 @@ function _ts_generator$3(thisArg, body) {
14431
14621
  }
14432
14622
  }
14433
14623
  var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
14434
- var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$9(_param, [
14624
+ var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$a(_param, [
14435
14625
  "value",
14436
14626
  "canBeFloat",
14437
14627
  "canBeNegative",
@@ -14912,11 +15102,13 @@ var inputStyles$3 = {
14912
15102
  input: {
14913
15103
  minWidth: 120
14914
15104
  },
14915
- icon: {
14916
- padding: 0,
14917
- width: 24,
14918
- "&:last-child": {
14919
- paddingRight: 0
15105
+ tweakControlWrapper: {
15106
+ icon: {
15107
+ padding: 0,
15108
+ width: 24,
15109
+ "&:last-child": {
15110
+ paddingRight: 0
15111
+ }
14920
15112
  }
14921
15113
  }
14922
15114
  };
@@ -15032,7 +15224,6 @@ var FilterInterval = function(param) {
15032
15224
  onChange: handleFromChange,
15033
15225
  value: value === null || value === void 0 ? void 0 : value[0],
15034
15226
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
15035
- border: "bottom",
15036
15227
  canBeFloat,
15037
15228
  isClearable: true,
15038
15229
  min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
@@ -15057,7 +15248,6 @@ var FilterInterval = function(param) {
15057
15248
  onChange: handleToChange,
15058
15249
  value: value === null || value === void 0 ? void 0 : value[1],
15059
15250
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
15060
- border: "bottom",
15061
15251
  canBeFloat,
15062
15252
  isClearable: true,
15063
15253
  min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
@@ -15232,10 +15422,12 @@ var useStyles$s = createThemedStyles("MultiSelectList", {
15232
15422
  });
15233
15423
  var searchInputStyles$2 = {
15234
15424
  tweakInput: {
15235
- inputWrapper: {
15236
- backgroundColor: "transparent",
15237
- border: "none",
15238
- height: 40
15425
+ tweakControlWrapper: {
15426
+ controlWrapper: {
15427
+ "--control-height": "40px",
15428
+ backgroundColor: "transparent",
15429
+ border: "none"
15430
+ }
15239
15431
  }
15240
15432
  }
15241
15433
  };
@@ -16190,10 +16382,12 @@ var useStyles$r = createThemedStyles("FilterSelect", {
16190
16382
  });
16191
16383
  var searchInputStyles$1 = {
16192
16384
  tweakInput: {
16193
- inputWrapper: {
16194
- backgroundColor: "transparent",
16195
- border: "none",
16196
- height: 40
16385
+ tweakControlWrapper: {
16386
+ controlWrapper: {
16387
+ "--control-height": "40px",
16388
+ backgroundColor: "transparent",
16389
+ border: "none"
16390
+ }
16197
16391
  }
16198
16392
  }
16199
16393
  };
@@ -18215,7 +18409,6 @@ var FilterWithDates = function(param) {
18215
18409
  locale: dateLocale,
18216
18410
  onChangeDate: handleChangeFrom,
18217
18411
  tweakStyles: tweakStartDatePickerStyles,
18218
- border: "bottom",
18219
18412
  testId: getTestId(testId, "from"),
18220
18413
  isClearable
18221
18414
  }, startPickerProps))
@@ -18230,7 +18423,6 @@ var FilterWithDates = function(param) {
18230
18423
  locale: dateLocale,
18231
18424
  onChangeDate: handleChangeTo,
18232
18425
  tweakStyles: tweakEndDatePickerStyles,
18233
- border: "bottom",
18234
18426
  testId: getTestId(testId, "to"),
18235
18427
  isClearable
18236
18428
  }, endPickerProps))
@@ -18777,16 +18969,17 @@ var useStyles$o = createThemedStyles("FiltersPaneSearch", {
18777
18969
  });
18778
18970
  var searchInputStyles = {
18779
18971
  tweakInput: {
18780
- inputWrapper: {
18781
- backgroundColor: "transparent",
18782
- border: "none",
18783
- height: FILTER_HEIGHT - 2,
18784
- fontSize: 14,
18785
- minWidth: 140
18786
- },
18787
- focused: {
18788
- backgroundColor: "transparent",
18789
- border: "none"
18972
+ tweakControlWrapper: {
18973
+ controlWrapper: {
18974
+ "--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
18975
+ backgroundColor: "transparent",
18976
+ border: "none",
18977
+ minWidth: 140
18978
+ },
18979
+ focused: {
18980
+ backgroundColor: "transparent",
18981
+ border: "none"
18982
+ }
18790
18983
  }
18791
18984
  }
18792
18985
  };
@@ -18910,7 +19103,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
18910
19103
  return _array_like_to_array$8(o, minLen);
18911
19104
  }
18912
19105
  function FiltersPaneSearch(param) {
18913
- var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
19106
+ var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
18914
19107
  var classes = useStyles$o({
18915
19108
  theme: tweakStyles
18916
19109
  });
@@ -18976,7 +19169,6 @@ function FiltersPaneSearch(param) {
18976
19169
  },
18977
19170
  testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
18978
19171
  maxLength,
18979
- isAutoSizeable,
18980
19172
  isDisabled
18981
19173
  }),
18982
19174
  /* @__PURE__ */ jsxs("div", {
@@ -26060,10 +26252,10 @@ function _object_spread_props$l(target, source) {
26060
26252
  }
26061
26253
  return target;
26062
26254
  }
26063
- function _object_without_properties$8(source, excluded) {
26255
+ function _object_without_properties$9(source, excluded) {
26064
26256
  if (source == null)
26065
26257
  return {};
26066
- var target = _object_without_properties_loose$8(source, excluded);
26258
+ var target = _object_without_properties_loose$9(source, excluded);
26067
26259
  var key, i;
26068
26260
  if (Object.getOwnPropertySymbols) {
26069
26261
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26078,7 +26270,7 @@ function _object_without_properties$8(source, excluded) {
26078
26270
  }
26079
26271
  return target;
26080
26272
  }
26081
- function _object_without_properties_loose$8(source, excluded) {
26273
+ function _object_without_properties_loose$9(source, excluded) {
26082
26274
  if (source == null)
26083
26275
  return {};
26084
26276
  var target = {};
@@ -26093,7 +26285,7 @@ function _object_without_properties_loose$8(source, excluded) {
26093
26285
  return target;
26094
26286
  }
26095
26287
  function FlexibleTableCell(_param) {
26096
- var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$8(_param, [
26288
+ var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
26097
26289
  "row",
26098
26290
  "columnName",
26099
26291
  "config",
@@ -26436,10 +26628,10 @@ function _object_spread_props$j(target, source) {
26436
26628
  }
26437
26629
  return target;
26438
26630
  }
26439
- function _object_without_properties$7(source, excluded) {
26631
+ function _object_without_properties$8(source, excluded) {
26440
26632
  if (source == null)
26441
26633
  return {};
26442
- var target = _object_without_properties_loose$7(source, excluded);
26634
+ var target = _object_without_properties_loose$8(source, excluded);
26443
26635
  var key, i;
26444
26636
  if (Object.getOwnPropertySymbols) {
26445
26637
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26454,7 +26646,7 @@ function _object_without_properties$7(source, excluded) {
26454
26646
  }
26455
26647
  return target;
26456
26648
  }
26457
- function _object_without_properties_loose$7(source, excluded) {
26649
+ function _object_without_properties_loose$8(source, excluded) {
26458
26650
  if (source == null)
26459
26651
  return {};
26460
26652
  var target = {};
@@ -26469,7 +26661,7 @@ function _object_without_properties_loose$7(source, excluded) {
26469
26661
  return target;
26470
26662
  }
26471
26663
  function FlexibleTable(_param) {
26472
- var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$7(_param, [
26664
+ var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$8(_param, [
26473
26665
  "content",
26474
26666
  "headerContent",
26475
26667
  "config",
@@ -26702,11 +26894,11 @@ var useStyles$g = createThemedStyles("IncrementInput", {
26702
26894
  right: BUTTONS_GAP,
26703
26895
  top: BUTTONS_GAP,
26704
26896
  bottom: BUTTONS_GAP,
26705
- zIndex: 1
26897
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
26706
26898
  },
26707
26899
  button: {
26708
26900
  width: "100%",
26709
- height: (dimensions.CONTROL_HEIGHT - 5) / 2,
26901
+ height: (dimensions.CONTROL.HEIGHT - 5) / 2,
26710
26902
  border: "none",
26711
26903
  outline: "none",
26712
26904
  backgroundColor: colors.GREY_BACKGROUND,
@@ -26743,12 +26935,12 @@ var useStyles$g = createThemedStyles("IncrementInput", {
26743
26935
  });
26744
26936
  var inputStyles$2 = {
26745
26937
  input: {
26746
- "&:not($withControls)": {
26938
+ paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26939
+ },
26940
+ tweakControlWrapper: {
26941
+ controls: {
26747
26942
  paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26748
26943
  }
26749
- },
26750
- controls: {
26751
- paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26752
26944
  }
26753
26945
  };
26754
26946
  function _define_property$k(obj, key, value) {
@@ -26803,10 +26995,10 @@ function _object_spread_props$i(target, source) {
26803
26995
  }
26804
26996
  return target;
26805
26997
  }
26806
- function _object_without_properties$6(source, excluded) {
26998
+ function _object_without_properties$7(source, excluded) {
26807
26999
  if (source == null)
26808
27000
  return {};
26809
- var target = _object_without_properties_loose$6(source, excluded);
27001
+ var target = _object_without_properties_loose$7(source, excluded);
26810
27002
  var key, i;
26811
27003
  if (Object.getOwnPropertySymbols) {
26812
27004
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26821,7 +27013,7 @@ function _object_without_properties$6(source, excluded) {
26821
27013
  }
26822
27014
  return target;
26823
27015
  }
26824
- function _object_without_properties_loose$6(source, excluded) {
27016
+ function _object_without_properties_loose$7(source, excluded) {
26825
27017
  if (source == null)
26826
27018
  return {};
26827
27019
  var target = {};
@@ -26836,7 +27028,7 @@ function _object_without_properties_loose$6(source, excluded) {
26836
27028
  return target;
26837
27029
  }
26838
27030
  var IncrementInput = function(_param) {
26839
- var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$6(_param, [
27031
+ var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$7(_param, [
26840
27032
  "value",
26841
27033
  "onChange",
26842
27034
  "min",
@@ -27284,10 +27476,10 @@ function _object_spread_props$h(target, source) {
27284
27476
  }
27285
27477
  return target;
27286
27478
  }
27287
- function _object_without_properties$5(source, excluded) {
27479
+ function _object_without_properties$6(source, excluded) {
27288
27480
  if (source == null)
27289
27481
  return {};
27290
- var target = _object_without_properties_loose$5(source, excluded);
27482
+ var target = _object_without_properties_loose$6(source, excluded);
27291
27483
  var key, i;
27292
27484
  if (Object.getOwnPropertySymbols) {
27293
27485
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -27302,7 +27494,7 @@ function _object_without_properties$5(source, excluded) {
27302
27494
  }
27303
27495
  return target;
27304
27496
  }
27305
- function _object_without_properties_loose$5(source, excluded) {
27497
+ function _object_without_properties_loose$6(source, excluded) {
27306
27498
  if (source == null)
27307
27499
  return {};
27308
27500
  var target = {};
@@ -27333,7 +27525,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
27333
27525
  return _array_like_to_array$6(o, minLen);
27334
27526
  }
27335
27527
  var Modal = function(_param) {
27336
- var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$5(_param, [
27528
+ var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$6(_param, [
27337
27529
  "data",
27338
27530
  "tweakStyles",
27339
27531
  "title",
@@ -27425,7 +27617,7 @@ var Modal = function(_param) {
27425
27617
  enabled: shouldBlockScroll,
27426
27618
  forwardProps: true,
27427
27619
  children: /* @__PURE__ */ jsx("div", _object_spread_props$h(_object_spread$i({
27428
- className: clsx(classes.root, classes[size2], (_obj2 = {}, _define_property$j(_obj2, classes.overlay, position !== "static" && hasOverlay), _define_property$j(_obj2, classes.sideBar, position === "left" || position === "right"), _define_property$j(_obj2, classes.fixedPosition, position !== "static"), _obj2)),
27620
+ className: clsx(classes.root, classes[size], (_obj2 = {}, _define_property$j(_obj2, classes.overlay, position !== "static" && hasOverlay), _define_property$j(_obj2, classes.sideBar, position === "left" || position === "right"), _define_property$j(_obj2, classes.fixedPosition, position !== "static"), _obj2)),
27429
27621
  style: {
27430
27622
  zIndex
27431
27623
  }
@@ -28093,7 +28285,7 @@ function _object_spread_props$e(target, source) {
28093
28285
  return target;
28094
28286
  }
28095
28287
  var Notification = function(param) {
28096
- var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size, size2 = _param_size === void 0 ? "s" : _param_size, data = param.data, icon = param.icon, tweakStyles = param.tweakStyles;
28288
+ var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, data = param.data, icon = param.icon, tweakStyles = param.tweakStyles;
28097
28289
  var classes = useStyles$b({
28098
28290
  theme: tweakStyles
28099
28291
  });
@@ -28103,7 +28295,7 @@ var Notification = function(param) {
28103
28295
  var hasIcon = isReactNodeNotEmpty(icon) || isDefaultType;
28104
28296
  var _obj2;
28105
28297
  return /* @__PURE__ */ jsxs("div", _object_spread_props$e(_object_spread$f({
28106
- className: clsx(classes.root, classes[size2], classes[type], (_obj2 = {}, _define_property$g(_obj2, classes.inline, !isFullWidth), _define_property$g(_obj2, classes.withTitle, hasTitle), _define_property$g(_obj2, classes.withText, hasText), _obj2))
28298
+ className: clsx(classes.root, classes[size], classes[type], (_obj2 = {}, _define_property$g(_obj2, classes.inline, !isFullWidth), _define_property$g(_obj2, classes.withTitle, hasTitle), _define_property$g(_obj2, classes.withText, hasText), _obj2))
28107
28299
  }, addDataTestId(testId), addDataAttributes(data)), {
28108
28300
  children: [
28109
28301
  hasIcon && /* @__PURE__ */ jsx("div", {
@@ -28178,7 +28370,7 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
28178
28370
  },
28179
28371
  searchContainer: {
28180
28372
  width: "100%",
28181
- height: dimensions.CONTROL_HEIGHT,
28373
+ height: dimensions.CONTROL.HEIGHT,
28182
28374
  display: "flex",
28183
28375
  alignItems: "center",
28184
28376
  boxSizing: "border-box",
@@ -28259,9 +28451,11 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
28259
28451
  }
28260
28452
  });
28261
28453
  var inputStyles$1 = {
28262
- inputWrapper: {
28263
- border: "none",
28264
- height: "calc(var(--control-height) - 2px)"
28454
+ tweakControlWrapper: {
28455
+ controlWrapper: {
28456
+ border: "none",
28457
+ height: "calc(var(--control-height) - 2px)"
28458
+ }
28265
28459
  },
28266
28460
  input: {
28267
28461
  fontSize: 14,
@@ -28475,14 +28669,15 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
28475
28669
  root: {
28476
28670
  width: "100%",
28477
28671
  position: "relative",
28478
- boxSizing: "border-box"
28672
+ boxSizing: "border-box",
28673
+ zIndex: 0
28479
28674
  },
28480
28675
  countrySelectContainer: {
28481
28676
  position: "absolute",
28482
28677
  left: 1,
28483
28678
  top: 1,
28484
28679
  width: COUNTRY_SELECT_WIDTH,
28485
- height: dimensions.CONTROL_HEIGHT - 2,
28680
+ height: dimensions.CONTROL.HEIGHT - 2,
28486
28681
  display: "flex",
28487
28682
  alignItems: "center",
28488
28683
  justifyContent: "center",
@@ -28493,7 +28688,7 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
28493
28688
  ],
28494
28689
  transition: "border-color 0.2s ease-in",
28495
28690
  cursor: "pointer",
28496
- zIndex: 2
28691
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
28497
28692
  },
28498
28693
  disabledCountrySelect: {
28499
28694
  cursor: "default"
@@ -28525,17 +28720,19 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
28525
28720
  flagListContainer: {
28526
28721
  position: "absolute",
28527
28722
  width: "100%",
28528
- top: dimensions.CONTROL_HEIGHT + 6,
28723
+ top: dimensions.CONTROL.HEIGHT + 6,
28529
28724
  left: -1,
28530
28725
  zIndex: 3
28531
28726
  }
28532
28727
  });
28533
28728
  var inputStyles = {
28534
- inputWrapper: {
28535
- paddingLeft: COUNTRY_SELECT_WIDTH
28536
- },
28537
- label: {
28538
- marginLeft: COUNTRY_SELECT_WIDTH
28729
+ tweakControlWrapper: {
28730
+ controlWrapper: {
28731
+ paddingLeft: COUNTRY_SELECT_WIDTH
28732
+ },
28733
+ label: {
28734
+ marginLeft: COUNTRY_SELECT_WIDTH
28735
+ }
28539
28736
  }
28540
28737
  };
28541
28738
  function _array_like_to_array$2(arr, len) {
@@ -28632,10 +28829,10 @@ function _object_spread_props$d(target, source) {
28632
28829
  }
28633
28830
  return target;
28634
28831
  }
28635
- function _object_without_properties$4(source, excluded) {
28832
+ function _object_without_properties$5(source, excluded) {
28636
28833
  if (source == null)
28637
28834
  return {};
28638
- var target = _object_without_properties_loose$4(source, excluded);
28835
+ var target = _object_without_properties_loose$5(source, excluded);
28639
28836
  var key, i;
28640
28837
  if (Object.getOwnPropertySymbols) {
28641
28838
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -28650,7 +28847,7 @@ function _object_without_properties$4(source, excluded) {
28650
28847
  }
28651
28848
  return target;
28652
28849
  }
28653
- function _object_without_properties_loose$4(source, excluded) {
28850
+ function _object_without_properties_loose$5(source, excluded) {
28654
28851
  if (source == null)
28655
28852
  return {};
28656
28853
  var target = {};
@@ -28681,7 +28878,7 @@ function _unsupported_iterable_to_array$2(o, minLen) {
28681
28878
  return _array_like_to_array$2(o, minLen);
28682
28879
  }
28683
28880
  var PhoneInput = function(_param) {
28684
- var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$4(_param, [
28881
+ var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$5(_param, [
28685
28882
  "locale",
28686
28883
  "value",
28687
28884
  "onChange",
@@ -29211,7 +29408,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
29211
29408
  return _array_like_to_array$1(o, minLen);
29212
29409
  }
29213
29410
  function Selector(param) {
29214
- var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size, size2 = _param_size === void 0 ? "l" : _param_size, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange;
29411
+ var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange;
29215
29412
  var classes = useStyles$7({
29216
29413
  theme: tweakStyles
29217
29414
  });
@@ -29231,7 +29428,7 @@ function Selector(param) {
29231
29428
  setElementsData(_to_consumable_array(listEl.querySelectorAll(".".concat(classes.optionWrapper))));
29232
29429
  }, [
29233
29430
  options,
29234
- size2
29431
+ size
29235
29432
  ]);
29236
29433
  var activeElementData = isNotEmpty(value) ? elementsData[optionsValues.indexOf(value)] : void 0;
29237
29434
  var _obj2;
@@ -29255,7 +29452,7 @@ function Selector(param) {
29255
29452
  }, addDataTestId(testId)), {
29256
29453
  children: /* @__PURE__ */ jsxs("button", _object_spread_props$b(_object_spread$b({
29257
29454
  type: "button",
29258
- className: clsx(classes.option, classes[size2], (_obj3 = {}, _define_property$b(_obj3, classes.active, isActiveOption), _define_property$b(_obj3, classes.disabled, isDisabledOption), _obj3)),
29455
+ className: clsx(classes.option, classes[size], (_obj3 = {}, _define_property$b(_obj3, classes.active, isActiveOption), _define_property$b(_obj3, classes.disabled, isDisabledOption), _obj3)),
29259
29456
  disabled: isDisabledOption,
29260
29457
  onClick: !isDisabledOption ? function() {
29261
29458
  return onChange(option.value);
@@ -29510,10 +29707,10 @@ function _object_spread_props$9(target, source) {
29510
29707
  }
29511
29708
  return target;
29512
29709
  }
29513
- function _object_without_properties$3(source, excluded) {
29710
+ function _object_without_properties$4(source, excluded) {
29514
29711
  if (source == null)
29515
29712
  return {};
29516
- var target = _object_without_properties_loose$3(source, excluded);
29713
+ var target = _object_without_properties_loose$4(source, excluded);
29517
29714
  var key, i;
29518
29715
  if (Object.getOwnPropertySymbols) {
29519
29716
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29528,7 +29725,7 @@ function _object_without_properties$3(source, excluded) {
29528
29725
  }
29529
29726
  return target;
29530
29727
  }
29531
- function _object_without_properties_loose$3(source, excluded) {
29728
+ function _object_without_properties_loose$4(source, excluded) {
29532
29729
  if (source == null)
29533
29730
  return {};
29534
29731
  var target = {};
@@ -29645,7 +29842,7 @@ function _ts_generator(thisArg, body) {
29645
29842
  }
29646
29843
  }
29647
29844
  var SmartInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
29648
- var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$3(_param, [
29845
+ var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$4(_param, [
29649
29846
  "value",
29650
29847
  "smartType",
29651
29848
  "regExp",
@@ -29929,12 +30126,12 @@ function _object_spread_props$8(target, source) {
29929
30126
  return target;
29930
30127
  }
29931
30128
  var Status = function(param) {
29932
- var children = param.children, color = param.color, _param_size = param.size, size2 = _param_size === void 0 ? "s" : _param_size, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "right" : _param_iconPosition, badge = param.badge, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
30129
+ var children = param.children, color = param.color, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "right" : _param_iconPosition, badge = param.badge, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
29933
30130
  var classes = useStyles$6({
29934
30131
  theme: tweakStyles
29935
30132
  });
29936
30133
  return /* @__PURE__ */ jsxs("span", _object_spread_props$8(_object_spread$8({
29937
- className: clsx(classes.root, classes[size2], classes[color])
30134
+ className: clsx(classes.root, classes[size], classes[color])
29938
30135
  }, addDataTestId(testId), addDataAttributes(data)), {
29939
30136
  children: [
29940
30137
  isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", {
@@ -30150,49 +30347,28 @@ function _object_spread_props$6(target, source) {
30150
30347
  }
30151
30348
  return target;
30152
30349
  }
30153
- var PADDING_X = 12;
30154
30350
  var useStyles$4 = createThemedStyles("TextArea", {
30155
- root: {
30156
- width: "100%",
30157
- height: "100%",
30158
- display: "flex",
30159
- flexDirection: "column"
30160
- },
30161
- wrapper: {
30162
- display: "flex",
30163
- position: "relative",
30164
- width: "100%",
30165
- flexGrow: 1,
30166
- boxSizing: "border-box",
30167
- transition: animations.defaultTransition,
30168
- transitionProperty: "border-color",
30169
- backgroundColor: "white",
30170
- border: [
30171
- "solid",
30172
- 1,
30173
- "lightgray"
30174
- ]
30175
- },
30176
30351
  textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
30177
30352
  width: "100%",
30178
30353
  height: "100%",
30179
- outline: "none",
30180
- outlineStyle: "none",
30181
30354
  fontFamily: "inherit",
30182
30355
  fontSize: 16,
30183
30356
  padding: [
30184
30357
  14,
30185
- PADDING_X,
30186
- 8
30358
+ 0,
30359
+ 8,
30360
+ "var(--control-padding)"
30187
30361
  ],
30188
- scrollPadding: "14px 0 8px",
30362
+ scrollPadding: "14px 0 8px var(--control-padding)",
30363
+ scrollbarGutter: "stable",
30364
+ boxSizing: "border-box",
30365
+ outline: "none",
30366
+ outlineStyle: "none",
30189
30367
  transition: animations.defaultTransition,
30190
30368
  transitionProperty: "background-color",
30191
30369
  border: "none",
30192
30370
  resize: "none",
30193
- "&:disabled": {
30194
- extend: "disabled"
30195
- },
30371
+ background: "transparent",
30196
30372
  "&::placeholder": {
30197
30373
  opacity: 1
30198
30374
  },
@@ -30202,107 +30378,41 @@ var useStyles$4 = createThemedStyles("TextArea", {
30202
30378
  margin: 0
30203
30379
  }
30204
30380
  }),
30205
- autosize: {
30206
- display: "inline-grid",
30381
+ wrapper: {
30382
+ width: "100%"
30383
+ },
30384
+ autoSized: {
30385
+ display: "grid",
30207
30386
  gridTemplateRows: "minmax(0, 100%)",
30208
30387
  "& > $textarea, &::after": {
30209
- gridArea: "1 / 1 / 2 / 2"
30388
+ gridArea: "1 / 1"
30210
30389
  },
30211
30390
  "&::after": {
30212
30391
  extend: "textarea",
30213
30392
  content: 'attr(data-value) " "',
30393
+ // Без пробела ломается!
30214
30394
  overflowWrap: "break-word",
30215
30395
  whiteSpace: "pre-wrap",
30216
- visibility: "hidden",
30217
- scrollbarGutter: "stable"
30218
- }
30219
- },
30220
- focused: {
30221
- position: "relative",
30222
- zIndex: 1
30223
- },
30224
- withFloatingLabel: {
30225
- "& $textarea, &::after": {
30226
- paddingTop: 24,
30227
- scrollPaddingTop: "24px"
30228
- }
30229
- },
30230
- floating: {},
30231
- activeLabel: {
30232
- display: "none",
30233
- "&$floating": {
30234
- display: "block",
30235
- transform: "scale(0.75) translateY(-120%)"
30236
- }
30237
- },
30238
- required: {
30239
- "&:before": {
30240
- content: '""',
30241
- position: "absolute",
30242
- left: -12,
30243
- top: 20,
30244
- width: 6,
30245
- height: 6,
30246
- borderRadius: "50%",
30247
- backgroundColor: "red"
30248
- }
30249
- },
30250
- disabled: {},
30251
- label: {
30252
- position: "absolute",
30253
- pointerEvents: "none",
30254
- left: PADDING_X,
30255
- top: PADDING_X * 2,
30256
- transformOrigin: "top left",
30257
- transform: "translateY(-50%)",
30258
- transition: animations.defaultTransition,
30259
- transitionProperty: "transform, color",
30260
- fontSize: 16
30261
- },
30262
- invalid: {
30263
- borderColor: "red"
30264
- },
30265
- invalidLabel: {},
30266
- error: {
30267
- fontSize: 12,
30268
- paddingTop: 4,
30269
- paddingLeft: 13,
30270
- color: "red"
30271
- },
30272
- requiredLabel: {
30273
- "&:after": {
30274
- content: '""',
30275
- position: "absolute",
30276
- right: -8,
30277
- top: 4,
30278
- transform: "translate(0, -50%)",
30279
- width: 6,
30280
- height: 6,
30281
- borderRadius: "50%",
30282
- backgroundColor: "red"
30396
+ visibility: "hidden"
30283
30397
  }
30284
30398
  },
30285
30399
  symbolsCount: {
30286
- display: "block",
30287
30400
  textAlign: "right",
30288
30401
  marginTop: 4,
30289
30402
  fontSize: 12,
30290
30403
  marginLeft: "auto",
30291
- paddingLeft: 32,
30292
- whiteSpace: "nowrap"
30404
+ whiteSpace: "nowrap",
30405
+ pointerEvents: "none"
30293
30406
  },
30294
30407
  symbolsCountError: {
30295
30408
  color: "red"
30296
- },
30297
- footer: {
30298
- display: "flex"
30299
- },
30300
- info: {
30301
- fontSize: 12,
30302
- paddingTop: 4,
30303
- paddingLeft: 13
30304
30409
  }
30305
30410
  });
30411
+ var controlWrapperStyles = {
30412
+ label: {
30413
+ top: 16
30414
+ }
30415
+ };
30306
30416
  function _array_like_to_array(arr, len) {
30307
30417
  if (len == null || len > arr.length)
30308
30418
  len = arr.length;
@@ -30397,6 +30507,38 @@ function _object_spread_props$5(target, source) {
30397
30507
  }
30398
30508
  return target;
30399
30509
  }
30510
+ function _object_without_properties$3(source, excluded) {
30511
+ if (source == null)
30512
+ return {};
30513
+ var target = _object_without_properties_loose$3(source, excluded);
30514
+ var key, i;
30515
+ if (Object.getOwnPropertySymbols) {
30516
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
30517
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
30518
+ key = sourceSymbolKeys[i];
30519
+ if (excluded.indexOf(key) >= 0)
30520
+ continue;
30521
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
30522
+ continue;
30523
+ target[key] = source[key];
30524
+ }
30525
+ }
30526
+ return target;
30527
+ }
30528
+ function _object_without_properties_loose$3(source, excluded) {
30529
+ if (source == null)
30530
+ return {};
30531
+ var target = {};
30532
+ var sourceKeys = Object.keys(source);
30533
+ var key, i;
30534
+ for (i = 0; i < sourceKeys.length; i++) {
30535
+ key = sourceKeys[i];
30536
+ if (excluded.indexOf(key) >= 0)
30537
+ continue;
30538
+ target[key] = source[key];
30539
+ }
30540
+ return target;
30541
+ }
30400
30542
  function _sliced_to_array(arr, i) {
30401
30543
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
30402
30544
  }
@@ -30414,93 +30556,108 @@ function _unsupported_iterable_to_array(o, minLen) {
30414
30556
  return _array_like_to_array(o, minLen);
30415
30557
  }
30416
30558
  var DEFAULT_VALUE = "";
30417
- var TextArea = /* @__PURE__ */ forwardRef(function(param, ref) {
30418
- var _param_value = param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = param.label, placeholder = param.placeholder, isDisabled = param.isDisabled, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, name = param.name, _param_hasRequiredLabel = param.hasRequiredLabel, hasRequiredLabel = _param_hasRequiredLabel === void 0 ? false : _param_hasRequiredLabel, _param_shouldFocusOnMount = param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, _param_hasCounter = param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, _param_shouldTrimAfterMaxLength = param.shouldTrimAfterMaxLength, shouldTrimAfterMaxLength = _param_shouldTrimAfterMaxLength === void 0 ? false : _param_shouldTrimAfterMaxLength, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, _param_shouldAlwaysShowPlaceholder = param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, maxLength = param.maxLength, rows = param.rows, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur;
30559
+ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
30560
+ var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, name = _param.name;
30561
+ _param.shouldFocusOnMount;
30562
+ var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, controlProps = _object_without_properties$3(_param, [
30563
+ "value",
30564
+ "label",
30565
+ "placeholder",
30566
+ "infoMessage",
30567
+ "errorMessage",
30568
+ "name",
30569
+ "shouldFocusOnMount",
30570
+ "hasCounter",
30571
+ "shouldTrimAfterMaxLength",
30572
+ "isAutoSized",
30573
+ "shouldAlwaysShowPlaceholder",
30574
+ "isDisabled",
30575
+ "isActive",
30576
+ "maxLength",
30577
+ "rows",
30578
+ "data",
30579
+ "testId",
30580
+ "tweakStyles",
30581
+ "onChange",
30582
+ "onPaste",
30583
+ "onFocus",
30584
+ "onBlur"
30585
+ ]);
30419
30586
  var classes = useStyles$4({
30420
30587
  theme: tweakStyles
30421
30588
  });
30589
+ var tweakWithMessagesStyles = useTweakStyles({
30590
+ tweakStyles,
30591
+ className: "tweakWithMessages",
30592
+ currentComponentName: "TextArea"
30593
+ });
30594
+ var tweakControlWrapperStyles = useTweakStyles({
30595
+ innerStyles: controlWrapperStyles,
30596
+ tweakStyles,
30597
+ className: "tweakControlWrapper",
30598
+ currentComponentName: "TextArea"
30599
+ });
30422
30600
  var _useState = _sliced_to_array(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
30423
- var handleOnChange = function(event) {
30424
- var rawValue = event.currentTarget.value;
30425
- var newValue = shouldTrimAfterMaxLength && maxLength !== void 0 ? trimStringToMaxLength(rawValue, maxLength) : rawValue;
30426
- onChange(newValue, event);
30601
+ var hasFocus = isFocused || isActive;
30602
+ var hasValue = value !== void 0 && value !== "";
30603
+ var hasLabel = isReactNodeNotEmpty(label);
30604
+ var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
30605
+ var handleChange = function(event) {
30606
+ onChange(event.currentTarget.value, event);
30427
30607
  };
30428
- var handleOnFocus = function(event) {
30608
+ var handleFocus = function(event) {
30429
30609
  setFocused(true);
30430
- if (onFocus !== void 0) {
30431
- onFocus(event);
30432
- }
30610
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
30433
30611
  };
30434
- var handleOnBlur = function(event) {
30612
+ var handleBlur = function(event) {
30435
30613
  setFocused(false);
30436
- if (onBlur !== void 0) {
30437
- onBlur(event);
30438
- }
30614
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
30439
30615
  };
30440
- var hasFocus = isFocused || isActive;
30441
- var hasValue = value !== void 0 && value !== "";
30442
- var hasLabel = isReactNodeNotEmpty(label);
30443
- var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
30444
- var props = _object_spread$5({
30445
- className: classes.textarea,
30446
- onFocus: handleOnFocus,
30447
- onBlur: handleOnBlur,
30448
- onChange: handleOnChange,
30449
- value,
30450
- onPaste,
30451
- disabled: isDisabled,
30452
- placeholder: hasPlaceholder ? placeholder : void 0,
30453
- name,
30454
- autoFocus: shouldFocusOnMount,
30455
- rows
30456
- }, addDataTestId(testId));
30457
- var hasInfoMessage = isStringNotEmpty(infoMessage);
30458
- var hasErrorMessage = isStringNotEmpty(errorMessage);
30459
- var _obj2, _obj1;
30460
- return /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
30461
- className: classes.root
30462
- }, addDataAttributes(data)), {
30616
+ return /* @__PURE__ */ jsxs(WithMessages, {
30617
+ errorMessage,
30618
+ infoMessage,
30619
+ tweakStyles: tweakWithMessagesStyles,
30463
30620
  children: [
30464
- /* @__PURE__ */ jsxs("div", {
30465
- className: clsx(classes.wrapper, (_obj2 = {}, _define_property$5(_obj2, classes.required, isRequired && !hasRequiredLabel), _define_property$5(_obj2, classes.invalid, isInvalid), _define_property$5(_obj2, classes.focused, hasFocus), _define_property$5(_obj2, classes.disabled, isDisabled), _define_property$5(_obj2, classes.autosize, isAutoSizeable), _define_property$5(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _obj2)),
30466
- "data-value": isAutoSizeable ? value : void 0,
30467
- children: [
30468
- hasLabel && /* @__PURE__ */ jsx("span", {
30469
- className: clsx(classes.label, (_obj1 = {}, _define_property$5(_obj1, classes.invalidLabel, isInvalid), _define_property$5(_obj1, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$5(_obj1, classes.activeLabel, hasFocus || hasValue), _define_property$5(_obj1, classes.floating, hasFloatingLabel), _obj1)),
30470
- children: label
30471
- }),
30472
- /* @__PURE__ */ jsx("textarea", _object_spread$5({
30473
- ref
30474
- }, props))
30475
- ]
30476
- }),
30477
- /* @__PURE__ */ jsxs("div", {
30478
- className: classes.footer,
30621
+ /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
30622
+ label,
30623
+ tweakStyles: tweakControlWrapperStyles,
30624
+ isFocused: hasFocus,
30625
+ isDisabled,
30626
+ hasValue,
30627
+ isFullWidth: true,
30628
+ testId
30629
+ }, controlProps), {
30630
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
30631
+ className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
30632
+ }, isAutoSized && {
30633
+ "data-value": value
30634
+ }), {
30635
+ children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
30636
+ ref,
30637
+ className: classes.textarea,
30638
+ value,
30639
+ disabled: isDisabled,
30640
+ placeholder: hasPlaceholder ? placeholder : void 0,
30641
+ maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
30642
+ name,
30643
+ rows,
30644
+ onPaste,
30645
+ onFocus: handleFocus,
30646
+ onBlur: handleBlur,
30647
+ onChange: handleChange
30648
+ }, addDataAttributes$1(data, testId, "control")))
30649
+ }))
30650
+ })),
30651
+ hasCounter && isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
30652
+ className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
30479
30653
  children: [
30480
- hasInfoMessage && /* @__PURE__ */ jsx("div", {
30481
- className: classes.info,
30482
- children: infoMessage
30483
- }),
30484
- !hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
30485
- className: classes.error,
30486
- children: errorMessage
30487
- }),
30488
- hasCounter && isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
30489
- className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
30490
- children: [
30491
- value.length,
30492
- " / ",
30493
- maxLength
30494
- ]
30495
- })
30654
+ value.length,
30655
+ " / ",
30656
+ maxLength
30496
30657
  ]
30497
- }),
30498
- hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
30499
- className: classes.error,
30500
- children: errorMessage
30501
30658
  })
30502
30659
  ]
30503
- }));
30660
+ });
30504
30661
  });
30505
30662
  var useStyles$3 = createThemedStyles("TextButton", {
30506
30663
  root: {
@@ -30689,7 +30846,7 @@ function _object_without_properties_loose$2(source, excluded) {
30689
30846
  return target;
30690
30847
  }
30691
30848
  var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
30692
- var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$2(_param, [
30849
+ var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$2(_param, [
30693
30850
  "children",
30694
30851
  "icon",
30695
30852
  "view",
@@ -30721,7 +30878,7 @@ var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
30721
30878
  return /* @__PURE__ */ jsxs("button", _object_spread_props$4(_object_spread$4({
30722
30879
  ref,
30723
30880
  type,
30724
- className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$4(_obj2, classes.bold, isBold), _define_property$4(_obj2, classes.loading, isLoading), _define_property$4(_obj2, classes.active, isActive), _define_property$4(_obj2, classes.disabled, isDisabled), _obj2)),
30881
+ className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$4(_obj2, classes.bold, isBold), _define_property$4(_obj2, classes.loading, isLoading), _define_property$4(_obj2, classes.active, isActive), _define_property$4(_obj2, classes.disabled, isDisabled), _obj2)),
30725
30882
  disabled: hasNoAction,
30726
30883
  onClick: !hasNoAction ? onClick : void 0
30727
30884
  }, restProps, addDataTestId(testId), addDataAttributes(data)), {
@@ -31209,11 +31366,6 @@ var NewMoreMenu = function(_param) {
31209
31366
  }
31210
31367
  }));
31211
31368
  };
31212
- var withPopupStyles = {
31213
- popup: {
31214
- zIndex: 9999
31215
- }
31216
- };
31217
31369
  function _define_property(obj, key, value) {
31218
31370
  if (key in obj) {
31219
31371
  Object.defineProperty(obj, key, {
@@ -31299,7 +31451,7 @@ function _object_without_properties_loose(source, excluded) {
31299
31451
  return target;
31300
31452
  }
31301
31453
  var WithTooltip = function(_param) {
31302
- var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, popupData = _param.popupData, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
31454
+ var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
31303
31455
  "children",
31304
31456
  "eventType",
31305
31457
  "placement",
@@ -31307,29 +31459,22 @@ var WithTooltip = function(_param) {
31307
31459
  "tooltipView",
31308
31460
  "tooltipType",
31309
31461
  "isDisabled",
31310
- "popupData",
31311
31462
  "tweakStyles"
31312
31463
  ]);
31313
31464
  var tweakWithPopupStyles = useTweakStyles({
31314
- innerStyles: withPopupStyles,
31315
31465
  tweakStyles,
31316
- className: "tweakWithPopup",
31317
- currentComponentName: "WithTooltip"
31466
+ className: "tweakWithPopup"
31318
31467
  });
31319
31468
  var tweakTooltipStyles = useTweakStyles({
31320
31469
  tweakStyles,
31321
- className: "tweakTooltip",
31322
- currentComponentName: "WithTooltip"
31470
+ className: "tweakTooltip"
31323
31471
  });
31324
31472
  return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
31325
31473
  trigger: children,
31326
31474
  placement,
31327
31475
  eventType,
31328
- popupData: _object_spread_props(_object_spread({}, popupData), {
31329
- tooltipView
31330
- }),
31331
- isDisabled: isDisabled || !isReactNodeNotEmpty(tooltipText),
31332
31476
  isTriggerWrapped: true,
31477
+ isDisabled: isDisabled || !isReactNodeNotEmpty(tooltipText),
31333
31478
  tweakStyles: tweakWithPopupStyles
31334
31479
  }, restProps), {
31335
31480
  children: /* @__PURE__ */ jsx(Tooltip, {
@@ -31348,6 +31493,7 @@ export {
31348
31493
  Checkbox,
31349
31494
  CloseButton,
31350
31495
  Colors,
31496
+ ControlWrapper,
31351
31497
  CssBaseline,
31352
31498
  DEFAULT_PHONE_MASK,
31353
31499
  DateInput,
@@ -31373,6 +31519,7 @@ export {
31373
31519
  IconButton,
31374
31520
  IncrementInput,
31375
31521
  Input,
31522
+ InputBase,
31376
31523
  List,
31377
31524
  ListItem,
31378
31525
  Modal,
@@ -31402,6 +31549,7 @@ export {
31402
31549
  ThemedPreloader,
31403
31550
  Toaster,
31404
31551
  Tooltip,
31552
+ WithMessages,
31405
31553
  WithPopup,
31406
31554
  WithTooltip,
31407
31555
  addDataAttributes,