@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
@@ -964,7 +964,17 @@
964
964
  BORDER_RADIUS_STD: 8,
965
965
  BORDER_RADIUS_SMALL: 6,
966
966
  BORDER_RADIUS_EXTRA_SMALL: 4,
967
- CONTROL_HEIGHT: 48
967
+ CONTROL: {
968
+ HEIGHT: 48,
969
+ PADDING: 16,
970
+ ICON_SIZE: 24,
971
+ ICON_INNER_SIZE: 24,
972
+ ICON_GAP: 8
973
+ },
974
+ Z_INDEX: {
975
+ CONTROL_INVALID: 1,
976
+ CONTROL_FOCUS: 2
977
+ }
968
978
  };
969
979
  var helpers = {
970
980
  withAngle: function() {
@@ -1035,11 +1045,9 @@
1035
1045
  overflow: "auto",
1036
1046
  // Chromium
1037
1047
  "@supports selector(::-webkit-scrollbar)": {
1038
- "--webkit-scrollbar-width": "10px",
1039
- "--webkit-scrollbar-height": "10px",
1040
1048
  "&::-webkit-scrollbar": {
1041
- width: "var(--webkit-scrollbar-width)",
1042
- height: "var(--webkit-scrollbar-height)",
1049
+ height: 10,
1050
+ width: 10,
1043
1051
  "&-thumb": {
1044
1052
  width: 6,
1045
1053
  minHeight: 30,
@@ -1862,7 +1870,7 @@
1862
1870
  baseMerge(object, source, srcIndex);
1863
1871
  });
1864
1872
  const merge$1 = merge;
1865
- function _define_property$15(obj, key, value) {
1873
+ function _define_property$18(obj, key, value) {
1866
1874
  if (key in obj) {
1867
1875
  Object.defineProperty(obj, key, {
1868
1876
  value,
@@ -1875,7 +1883,7 @@
1875
1883
  }
1876
1884
  return obj;
1877
1885
  }
1878
- function _object_spread$13(target) {
1886
+ function _object_spread$16(target) {
1879
1887
  for (var i = 1; i < arguments.length; i++) {
1880
1888
  var source = arguments[i] != null ? arguments[i] : {};
1881
1889
  var ownKeys2 = Object.keys(source);
@@ -1885,12 +1893,12 @@
1885
1893
  }));
1886
1894
  }
1887
1895
  ownKeys2.forEach(function(key) {
1888
- _define_property$15(target, key, source[key]);
1896
+ _define_property$18(target, key, source[key]);
1889
1897
  });
1890
1898
  }
1891
1899
  return target;
1892
1900
  }
1893
- function ownKeys$U(object, enumerableOnly) {
1901
+ function ownKeys$X(object, enumerableOnly) {
1894
1902
  var keys2 = Object.keys(object);
1895
1903
  if (Object.getOwnPropertySymbols) {
1896
1904
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1903,12 +1911,12 @@
1903
1911
  }
1904
1912
  return keys2;
1905
1913
  }
1906
- function _object_spread_props$U(target, source) {
1914
+ function _object_spread_props$X(target, source) {
1907
1915
  source = source != null ? source : {};
1908
1916
  if (Object.getOwnPropertyDescriptors) {
1909
1917
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1910
1918
  } else {
1911
- ownKeys$U(Object(source)).forEach(function(key) {
1919
+ ownKeys$X(Object(source)).forEach(function(key) {
1912
1920
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1913
1921
  });
1914
1922
  }
@@ -1963,7 +1971,7 @@
1963
1971
  return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.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);
1964
1972
  });
1965
1973
  return function(data) {
1966
- return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$U(_object_spread$13({}, data), {
1974
+ return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$X(_object_spread$16({}, data), {
1967
1975
  theme: cleanStyles(data.theme)
1968
1976
  }) : data);
1969
1977
  };
@@ -6497,7 +6505,7 @@
6497
6505
  if (Array.isArray(arr))
6498
6506
  return _array_like_to_array$n(arr);
6499
6507
  }
6500
- function _define_property$14(obj, key, value) {
6508
+ function _define_property$17(obj, key, value) {
6501
6509
  if (key in obj) {
6502
6510
  Object.defineProperty(obj, key, {
6503
6511
  value,
@@ -6517,7 +6525,7 @@
6517
6525
  function _non_iterable_spread$8() {
6518
6526
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6519
6527
  }
6520
- function _object_spread$12(target) {
6528
+ function _object_spread$15(target) {
6521
6529
  for (var i = 1; i < arguments.length; i++) {
6522
6530
  var source = arguments[i] != null ? arguments[i] : {};
6523
6531
  var ownKeys2 = Object.keys(source);
@@ -6527,7 +6535,7 @@
6527
6535
  }));
6528
6536
  }
6529
6537
  ownKeys2.forEach(function(key) {
6530
- _define_property$14(target, key, source[key]);
6538
+ _define_property$17(target, key, source[key]);
6531
6539
  });
6532
6540
  }
6533
6541
  return target;
@@ -6583,7 +6591,7 @@
6583
6591
  },
6584
6592
  {
6585
6593
  name: "flip",
6586
- options: _object_spread$12({
6594
+ options: _object_spread$15({
6587
6595
  fallbackPlacements: canBeFlipped ? [
6588
6596
  "bottom-start",
6589
6597
  "top-start"
@@ -6657,71 +6665,71 @@
6657
6665
  return trueReactPlatformHelpers.mergeRefs(refs);
6658
6666
  }, refs);
6659
6667
  };
6660
- const avatarGreen = ` <svg\r
6661
- width="100%"\r
6662
- height="100%"\r
6663
- viewBox="0 0 32 32"\r
6664
- fill="none"\r
6665
- xmlns="http://www.w3.org/2000/svg"\r
6666
- >\r
6667
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
6668
- <mask\r
6669
- id="mask0_0_12744"\r
6670
- style="mask-type: 'alpha';"\r
6671
- maskUnits="userSpaceOnUse"\r
6672
- x="0"\r
6673
- y="0"\r
6674
- width="32"\r
6675
- height="32"\r
6676
- >\r
6677
- <circle cx="16" cy="16" r="16" fill="white" />\r
6678
- </mask>\r
6679
- <g mask="url(#mask0_0_12744)">\r
6680
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
6681
- <mask\r
6682
- id="mask1_0_12744"\r
6683
- style="mask-type: 'alpha';"\r
6684
- maskUnits="userSpaceOnUse"\r
6685
- x="3"\r
6686
- y="16"\r
6687
- width="26"\r
6688
- height="26"\r
6689
- >\r
6690
- <circle cx="16" cy="29" r="13" fill="white" />\r
6691
- </mask>\r
6692
- <g mask="url(#mask1_0_12744)">\r
6693
- <ellipse\r
6694
- cx="16"\r
6695
- cy="17.5"\r
6696
- rx="6"\r
6697
- ry="7.5"\r
6698
- fill="#505F79"\r
6699
- fill-opacity="0.204983"\r
6700
- />\r
6701
- </g>\r
6702
- </g>\r
6703
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
6704
- <defs>\r
6705
- <linearGradient\r
6706
- id="paint0_linear_0_12744"\r
6707
- x1="13.347"\r
6708
- y1="46.279"\r
6709
- x2="33.5318"\r
6710
- y2="30.8088"\r
6711
- gradientUnits="userSpaceOnUse"\r
6712
- >\r
6713
- <stop stop-color="#ABD229" />\r
6714
- <stop offset="1" stop-color="#9CD03F" />\r
6715
- </linearGradient>\r
6716
- </defs>\r
6668
+ const avatarGreen = ` <svg
6669
+ width="100%"
6670
+ height="100%"
6671
+ viewBox="0 0 32 32"
6672
+ fill="none"
6673
+ xmlns="http://www.w3.org/2000/svg"
6674
+ >
6675
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
6676
+ <mask
6677
+ id="mask0_0_12744"
6678
+ style="mask-type: 'alpha';"
6679
+ maskUnits="userSpaceOnUse"
6680
+ x="0"
6681
+ y="0"
6682
+ width="32"
6683
+ height="32"
6684
+ >
6685
+ <circle cx="16" cy="16" r="16" fill="white" />
6686
+ </mask>
6687
+ <g mask="url(#mask0_0_12744)">
6688
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
6689
+ <mask
6690
+ id="mask1_0_12744"
6691
+ style="mask-type: 'alpha';"
6692
+ maskUnits="userSpaceOnUse"
6693
+ x="3"
6694
+ y="16"
6695
+ width="26"
6696
+ height="26"
6697
+ >
6698
+ <circle cx="16" cy="29" r="13" fill="white" />
6699
+ </mask>
6700
+ <g mask="url(#mask1_0_12744)">
6701
+ <ellipse
6702
+ cx="16"
6703
+ cy="17.5"
6704
+ rx="6"
6705
+ ry="7.5"
6706
+ fill="#505F79"
6707
+ fill-opacity="0.204983"
6708
+ />
6709
+ </g>
6710
+ </g>
6711
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
6712
+ <defs>
6713
+ <linearGradient
6714
+ id="paint0_linear_0_12744"
6715
+ x1="13.347"
6716
+ y1="46.279"
6717
+ x2="33.5318"
6718
+ y2="30.8088"
6719
+ gradientUnits="userSpaceOnUse"
6720
+ >
6721
+ <stop stop-color="#ABD229" />
6722
+ <stop offset="1" stop-color="#9CD03F" />
6723
+ </linearGradient>
6724
+ </defs>
6717
6725
  </svg>`;
6718
- 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>';
6719
- 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>';
6720
- 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>';
6721
- 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>';
6722
- 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>';
6723
- 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>';
6724
- 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>';
6726
+ 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>';
6727
+ 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>';
6728
+ 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>';
6729
+ 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>';
6730
+ 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>';
6731
+ 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>';
6732
+ 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>';
6725
6733
  var complexIcons = {
6726
6734
  avatar: avatarGreen,
6727
6735
  "file-excel": fileExcel,
@@ -6732,7 +6740,7 @@
6732
6740
  "file-xml": fileXml,
6733
6741
  "file-zip": fileZip
6734
6742
  };
6735
- function _define_property$13(obj, key, value) {
6743
+ function _define_property$16(obj, key, value) {
6736
6744
  if (key in obj) {
6737
6745
  Object.defineProperty(obj, key, {
6738
6746
  value,
@@ -6745,7 +6753,7 @@
6745
6753
  }
6746
6754
  return obj;
6747
6755
  }
6748
- function _object_spread$11(target) {
6756
+ function _object_spread$14(target) {
6749
6757
  for (var i = 1; i < arguments.length; i++) {
6750
6758
  var source = arguments[i] != null ? arguments[i] : {};
6751
6759
  var ownKeys2 = Object.keys(source);
@@ -6755,7 +6763,7 @@
6755
6763
  }));
6756
6764
  }
6757
6765
  ownKeys2.forEach(function(key) {
6758
- _define_property$13(target, key, source[key]);
6766
+ _define_property$16(target, key, source[key]);
6759
6767
  });
6760
6768
  }
6761
6769
  return target;
@@ -6764,7 +6772,7 @@
6764
6772
  var type = param.type;
6765
6773
  var theme = React.useContext(ThemeContext).theme;
6766
6774
  var icons = React.useMemo(function() {
6767
- return _object_spread$11({}, complexIcons, theme.complexIcons);
6775
+ return _object_spread$14({}, complexIcons, theme.complexIcons);
6768
6776
  }, []);
6769
6777
  var ComplexIcon = icons[type];
6770
6778
  return /* @__PURE__ */ jsx("div", {
@@ -7635,7 +7643,7 @@
7635
7643
  ]
7636
7644
  }
7637
7645
  });
7638
- function _define_property$12(obj, key, value) {
7646
+ function _define_property$15(obj, key, value) {
7639
7647
  if (key in obj) {
7640
7648
  Object.defineProperty(obj, key, {
7641
7649
  value,
@@ -7648,7 +7656,7 @@
7648
7656
  }
7649
7657
  return obj;
7650
7658
  }
7651
- function _object_spread$10(target) {
7659
+ function _object_spread$13(target) {
7652
7660
  for (var i = 1; i < arguments.length; i++) {
7653
7661
  var source = arguments[i] != null ? arguments[i] : {};
7654
7662
  var ownKeys2 = Object.keys(source);
@@ -7658,12 +7666,12 @@
7658
7666
  }));
7659
7667
  }
7660
7668
  ownKeys2.forEach(function(key) {
7661
- _define_property$12(target, key, source[key]);
7669
+ _define_property$15(target, key, source[key]);
7662
7670
  });
7663
7671
  }
7664
7672
  return target;
7665
7673
  }
7666
- function ownKeys$T(object, enumerableOnly) {
7674
+ function ownKeys$W(object, enumerableOnly) {
7667
7675
  var keys2 = Object.keys(object);
7668
7676
  if (Object.getOwnPropertySymbols) {
7669
7677
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7676,12 +7684,12 @@
7676
7684
  }
7677
7685
  return keys2;
7678
7686
  }
7679
- function _object_spread_props$T(target, source) {
7687
+ function _object_spread_props$W(target, source) {
7680
7688
  source = source != null ? source : {};
7681
7689
  if (Object.getOwnPropertyDescriptors) {
7682
7690
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7683
7691
  } else {
7684
- ownKeys$T(Object(source)).forEach(function(key) {
7692
+ ownKeys$W(Object(source)).forEach(function(key) {
7685
7693
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7686
7694
  });
7687
7695
  }
@@ -7692,7 +7700,7 @@
7692
7700
  var _icon_paths, _icon_rects, _icon_circles;
7693
7701
  var theme = React.useContext(ThemeContext).theme;
7694
7702
  var icons = React.useMemo(function() {
7695
- return _object_spread$10({}, iconsList, theme.icons);
7703
+ return _object_spread$13({}, iconsList, theme.icons);
7696
7704
  }, []);
7697
7705
  var icon = icons[type];
7698
7706
  var _icon_viewBox;
@@ -7705,7 +7713,7 @@
7705
7713
  children: [
7706
7714
  (_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
7707
7715
  var _path_fill, _path_stroke;
7708
- return jsx("path", _object_spread$10({
7716
+ return jsx("path", _object_spread$13({
7709
7717
  fillRule: "evenodd",
7710
7718
  clipRule: "evenodd",
7711
7719
  fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
@@ -7713,25 +7721,25 @@
7713
7721
  }, path), index);
7714
7722
  }),
7715
7723
  (_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
7716
- return /* @__PURE__ */ React.createElement("rect", _object_spread_props$T(_object_spread$10({}, rect), {
7724
+ return /* @__PURE__ */ React.createElement("rect", _object_spread_props$W(_object_spread$13({}, rect), {
7717
7725
  key: index
7718
7726
  }));
7719
7727
  }),
7720
7728
  (_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
7721
- return /* @__PURE__ */ React.createElement("circle", _object_spread_props$T(_object_spread$10({}, circle), {
7729
+ return /* @__PURE__ */ React.createElement("circle", _object_spread_props$W(_object_spread$13({}, circle), {
7722
7730
  key: index
7723
7731
  }));
7724
7732
  })
7725
7733
  ]
7726
7734
  });
7727
7735
  };
7728
- var useStyles$V = createThemedStyles("Icon", {
7736
+ var useStyles$X = createThemedStyles("Icon", {
7729
7737
  root: {
7730
7738
  display: "flex",
7731
7739
  alignItems: "center"
7732
7740
  }
7733
7741
  });
7734
- function _define_property$11(obj, key, value) {
7742
+ function _define_property$14(obj, key, value) {
7735
7743
  if (key in obj) {
7736
7744
  Object.defineProperty(obj, key, {
7737
7745
  value,
@@ -7744,7 +7752,7 @@
7744
7752
  }
7745
7753
  return obj;
7746
7754
  }
7747
- function _object_spread$$(target) {
7755
+ function _object_spread$12(target) {
7748
7756
  for (var i = 1; i < arguments.length; i++) {
7749
7757
  var source = arguments[i] != null ? arguments[i] : {};
7750
7758
  var ownKeys2 = Object.keys(source);
@@ -7754,12 +7762,12 @@
7754
7762
  }));
7755
7763
  }
7756
7764
  ownKeys2.forEach(function(key) {
7757
- _define_property$11(target, key, source[key]);
7765
+ _define_property$14(target, key, source[key]);
7758
7766
  });
7759
7767
  }
7760
7768
  return target;
7761
7769
  }
7762
- function ownKeys$S(object, enumerableOnly) {
7770
+ function ownKeys$V(object, enumerableOnly) {
7763
7771
  var keys2 = Object.keys(object);
7764
7772
  if (Object.getOwnPropertySymbols) {
7765
7773
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7772,12 +7780,12 @@
7772
7780
  }
7773
7781
  return keys2;
7774
7782
  }
7775
- function _object_spread_props$S(target, source) {
7783
+ function _object_spread_props$V(target, source) {
7776
7784
  source = source != null ? source : {};
7777
7785
  if (Object.getOwnPropertyDescriptors) {
7778
7786
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7779
7787
  } else {
7780
- ownKeys$S(Object(source)).forEach(function(key) {
7788
+ ownKeys$V(Object(source)).forEach(function(key) {
7781
7789
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7782
7790
  });
7783
7791
  }
@@ -7785,10 +7793,10 @@
7785
7793
  }
7786
7794
  var Icon = function(param) {
7787
7795
  var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
7788
- var classes = useStyles$V({
7796
+ var classes = useStyles$X({
7789
7797
  theme: tweakStyles
7790
7798
  });
7791
- return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
7799
+ return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$12({
7792
7800
  className: classes.root
7793
7801
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
7794
7802
  children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
@@ -7804,15 +7812,7 @@
7804
7812
  }) : icon;
7805
7813
  };
7806
7814
  var DEFAULT_OFFSET = 6;
7807
- var minWidthRelativeToTrigger = react.size({
7808
- apply: function apply2(param) {
7809
- var rects = param.rects, elements = param.elements;
7810
- Object.assign(elements.floating.style, {
7811
- minWidth: "".concat(rects.reference.width, "px")
7812
- });
7813
- }
7814
- });
7815
- var useStyles$U = createThemedStyles("WithPopup", {
7815
+ var useStyles$W = createThemedStyles("WithPopup", {
7816
7816
  trigger: {
7817
7817
  width: "fit-content"
7818
7818
  },
@@ -7827,7 +7827,6 @@
7827
7827
  zIndex: 5,
7828
7828
  outline: "none"
7829
7829
  },
7830
- arrow: {},
7831
7830
  animationEnd: {},
7832
7831
  animationStart: {},
7833
7832
  "dropdown-initial": {
@@ -7859,7 +7858,7 @@
7859
7858
  if (Array.isArray(arr))
7860
7859
  return _array_like_to_array$m(arr);
7861
7860
  }
7862
- function _define_property$10(obj, key, value) {
7861
+ function _define_property$13(obj, key, value) {
7863
7862
  if (key in obj) {
7864
7863
  Object.defineProperty(obj, key, {
7865
7864
  value,
@@ -7910,7 +7909,7 @@
7910
7909
  function _non_iterable_spread$7() {
7911
7910
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7912
7911
  }
7913
- function _object_spread$_(target) {
7912
+ function _object_spread$11(target) {
7914
7913
  for (var i = 1; i < arguments.length; i++) {
7915
7914
  var source = arguments[i] != null ? arguments[i] : {};
7916
7915
  var ownKeys2 = Object.keys(source);
@@ -7920,12 +7919,12 @@
7920
7919
  }));
7921
7920
  }
7922
7921
  ownKeys2.forEach(function(key) {
7923
- _define_property$10(target, key, source[key]);
7922
+ _define_property$13(target, key, source[key]);
7924
7923
  });
7925
7924
  }
7926
7925
  return target;
7927
7926
  }
7928
- function ownKeys$R(object, enumerableOnly) {
7927
+ function ownKeys$U(object, enumerableOnly) {
7929
7928
  var keys2 = Object.keys(object);
7930
7929
  if (Object.getOwnPropertySymbols) {
7931
7930
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7938,12 +7937,12 @@
7938
7937
  }
7939
7938
  return keys2;
7940
7939
  }
7941
- function _object_spread_props$R(target, source) {
7940
+ function _object_spread_props$U(target, source) {
7942
7941
  source = source != null ? source : {};
7943
7942
  if (Object.getOwnPropertyDescriptors) {
7944
7943
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7945
7944
  } else {
7946
- ownKeys$R(Object(source)).forEach(function(key) {
7945
+ ownKeys$U(Object(source)).forEach(function(key) {
7947
7946
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7948
7947
  });
7949
7948
  }
@@ -7969,12 +7968,11 @@
7969
7968
  return _array_like_to_array$m(o, minLen);
7970
7969
  }
7971
7970
  var WithPopup = function(param) {
7972
- 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;
7973
- var classes = useStyles$U({
7971
+ 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;
7972
+ var classes = useStyles$W({
7974
7973
  theme: tweakStyles
7975
7974
  });
7976
7975
  var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
7977
- var arrowRef = React.useRef(null);
7978
7976
  var handleToggle = function(isActive, event) {
7979
7977
  event === null || event === void 0 ? void 0 : event.stopPropagation();
7980
7978
  if (!isDisabled) {
@@ -7991,13 +7989,8 @@
7991
7989
  react.offset(popupOffset),
7992
7990
  canBeFlipped && react.flip({
7993
7991
  fallbackAxisSideDirection: "start"
7994
- }),
7995
- isMinWidthSameAsTrigger && minWidthRelativeToTrigger
7996
- ].concat(_to_consumable_array$7(middlewares), [
7997
- shouldShowArrow && react.arrow({
7998
- element: arrowRef
7999
7992
  })
8000
- ]),
7993
+ ].concat(_to_consumable_array$7(middlewares)),
8001
7994
  whileElementsMounted: react.autoUpdate,
8002
7995
  placement,
8003
7996
  onOpenChange: handleToggle
@@ -8031,17 +8024,17 @@
8031
8024
  close: 500
8032
8025
  }
8033
8026
  }), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
8034
- var referenceProps = getReferenceProps(_object_spread$_({
8027
+ var referenceProps = getReferenceProps(_object_spread$11({
8035
8028
  ref: refs.setReference
8036
8029
  }, shouldStopPropagation && {
8037
8030
  onClick: trueReactPlatformHelpers.stopPropagation
8038
8031
  }));
8039
8032
  var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
8040
8033
  referenceProps: !isTriggerWrapped ? referenceProps : void 0,
8041
- triggerProps: _object_spread$_({
8034
+ triggerProps: _object_spread$11({
8042
8035
  isActive: isOpen,
8043
8036
  isDisabled
8044
- }, !isTriggerWrapped && _object_spread$_({
8037
+ }, !isTriggerWrapped && _object_spread$11({
8045
8038
  data,
8046
8039
  testId
8047
8040
  }, referenceProps))
@@ -8049,31 +8042,23 @@
8049
8042
  var _obj2;
8050
8043
  return /* @__PURE__ */ jsxs(Fragment, {
8051
8044
  children: [
8052
- isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$_({
8053
- 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))
8054
- }, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
8045
+ isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
8046
+ 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))
8047
+ }, referenceProps, trueReactPlatformHelpers.addDataTestId(testId), trueReactPlatformHelpers.addDataAttributes(data)), {
8055
8048
  children: triggerElement
8056
8049
  })) : triggerElement,
8057
8050
  isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
8058
- root: shouldRenderInBody ? document.body : refs.reference.current,
8059
- children: /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$_({
8060
- ref: refs.setFloating,
8051
+ root: !shouldRenderInBody ? refs.reference.current : void 0,
8052
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
8061
8053
  style: floatingStyles,
8062
- className: classes.popup
8063
- }, getFloatingProps(), trueReactPlatformHelpers.addDataAttributes(popupData)), {
8064
- children: /* @__PURE__ */ jsxs("div", {
8054
+ className: classes.popup,
8055
+ ref: refs.setFloating
8056
+ }, getFloatingProps()), {
8057
+ children: /* @__PURE__ */ jsx("div", {
8065
8058
  className: classes["dropdown-".concat(status)],
8066
- children: [
8067
- shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$R(_object_spread$_({}, arrowProps), {
8068
- ref: arrowRef,
8069
- context,
8070
- className: classes.arrow
8071
- })),
8072
- trueReactPlatformHelpers.applyAction(children, {
8073
- floatingContext: context,
8074
- onClose: handleClose
8075
- })
8076
- ]
8059
+ children: trueReactPlatformHelpers.applyAction(children, {
8060
+ onClose: handleClose
8061
+ })
8077
8062
  })
8078
8063
  }))
8079
8064
  })
@@ -8083,7 +8068,7 @@
8083
8068
  var ITEM_HORIZONTAL_PADDING = 16;
8084
8069
  var ICON_SIZE$1 = 20;
8085
8070
  var ICON_GAP = 12;
8086
- var useStyles$T = createThemedStyles("ListItem", {
8071
+ var useStyles$V = createThemedStyles("ListItem", {
8087
8072
  root: {
8088
8073
  display: "flex",
8089
8074
  alignItems: "center",
@@ -8122,7 +8107,7 @@
8122
8107
  flexGrow: 1
8123
8108
  }
8124
8109
  });
8125
- function _define_property$$(obj, key, value) {
8110
+ function _define_property$12(obj, key, value) {
8126
8111
  if (key in obj) {
8127
8112
  Object.defineProperty(obj, key, {
8128
8113
  value,
@@ -8135,7 +8120,7 @@
8135
8120
  }
8136
8121
  return obj;
8137
8122
  }
8138
- function _object_spread$Z(target) {
8123
+ function _object_spread$10(target) {
8139
8124
  for (var i = 1; i < arguments.length; i++) {
8140
8125
  var source = arguments[i] != null ? arguments[i] : {};
8141
8126
  var ownKeys2 = Object.keys(source);
@@ -8145,12 +8130,12 @@
8145
8130
  }));
8146
8131
  }
8147
8132
  ownKeys2.forEach(function(key) {
8148
- _define_property$$(target, key, source[key]);
8133
+ _define_property$12(target, key, source[key]);
8149
8134
  });
8150
8135
  }
8151
8136
  return target;
8152
8137
  }
8153
- function ownKeys$Q(object, enumerableOnly) {
8138
+ function ownKeys$T(object, enumerableOnly) {
8154
8139
  var keys2 = Object.keys(object);
8155
8140
  if (Object.getOwnPropertySymbols) {
8156
8141
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8163,12 +8148,12 @@
8163
8148
  }
8164
8149
  return keys2;
8165
8150
  }
8166
- function _object_spread_props$Q(target, source) {
8151
+ function _object_spread_props$T(target, source) {
8167
8152
  source = source != null ? source : {};
8168
8153
  if (Object.getOwnPropertyDescriptors) {
8169
8154
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8170
8155
  } else {
8171
- ownKeys$Q(Object(source)).forEach(function(key) {
8156
+ ownKeys$T(Object(source)).forEach(function(key) {
8172
8157
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8173
8158
  });
8174
8159
  }
@@ -8176,7 +8161,7 @@
8176
8161
  }
8177
8162
  var ListItem = function(param) {
8178
8163
  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;
8179
- var classes = useStyles$T({
8164
+ var classes = useStyles$V({
8180
8165
  theme: tweakStyles
8181
8166
  });
8182
8167
  var _obj2;
@@ -8185,9 +8170,9 @@
8185
8170
  shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
8186
8171
  className: classes.spacer
8187
8172
  }),
8188
- /* @__PURE__ */ jsxs("div", _object_spread_props$Q(_object_spread$Z({
8189
- 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))
8190
- }, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$Q(_object_spread$Z({}, data), {
8173
+ /* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$10({
8174
+ 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))
8175
+ }, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$10({}, data), {
8191
8176
  disabled: isDisabled ? true : void 0
8192
8177
  }))), {
8193
8178
  children: [
@@ -8213,7 +8198,7 @@
8213
8198
  ]
8214
8199
  });
8215
8200
  };
8216
- var useStyles$S = createThemedStyles("List", {
8201
+ var useStyles$U = createThemedStyles("List", {
8217
8202
  root: {
8218
8203
  minWidth: 180,
8219
8204
  backgroundColor: colors.CLASSIC_WHITE,
@@ -8229,12 +8214,12 @@
8229
8214
  paddingLeft: 4
8230
8215
  }
8231
8216
  });
8232
- var withPopupStyles$1 = {
8217
+ var withPopupStyles = {
8233
8218
  trigger: {
8234
8219
  width: "100%"
8235
8220
  }
8236
8221
  };
8237
- function _define_property$_(obj, key, value) {
8222
+ function _define_property$11(obj, key, value) {
8238
8223
  if (key in obj) {
8239
8224
  Object.defineProperty(obj, key, {
8240
8225
  value,
@@ -8247,7 +8232,7 @@
8247
8232
  }
8248
8233
  return obj;
8249
8234
  }
8250
- function _object_spread$Y(target) {
8235
+ function _object_spread$$(target) {
8251
8236
  for (var i = 1; i < arguments.length; i++) {
8252
8237
  var source = arguments[i] != null ? arguments[i] : {};
8253
8238
  var ownKeys2 = Object.keys(source);
@@ -8257,12 +8242,12 @@
8257
8242
  }));
8258
8243
  }
8259
8244
  ownKeys2.forEach(function(key) {
8260
- _define_property$_(target, key, source[key]);
8245
+ _define_property$11(target, key, source[key]);
8261
8246
  });
8262
8247
  }
8263
8248
  return target;
8264
8249
  }
8265
- function ownKeys$P(object, enumerableOnly) {
8250
+ function ownKeys$S(object, enumerableOnly) {
8266
8251
  var keys2 = Object.keys(object);
8267
8252
  if (Object.getOwnPropertySymbols) {
8268
8253
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8275,12 +8260,12 @@
8275
8260
  }
8276
8261
  return keys2;
8277
8262
  }
8278
- function _object_spread_props$P(target, source) {
8263
+ function _object_spread_props$S(target, source) {
8279
8264
  source = source != null ? source : {};
8280
8265
  if (Object.getOwnPropertyDescriptors) {
8281
8266
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8282
8267
  } else {
8283
- ownKeys$P(Object(source)).forEach(function(key) {
8268
+ ownKeys$S(Object(source)).forEach(function(key) {
8284
8269
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8285
8270
  });
8286
8271
  }
@@ -8288,7 +8273,7 @@
8288
8273
  }
8289
8274
  var List = function(param) {
8290
8275
  var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
8291
- var classes = useStyles$S({
8276
+ var classes = useStyles$U({
8292
8277
  theme: tweakStyles
8293
8278
  });
8294
8279
  var handleItemClick = function(event, param2) {
@@ -8298,11 +8283,11 @@
8298
8283
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
8299
8284
  }
8300
8285
  };
8301
- return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
8286
+ return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
8302
8287
  className: classes.root
8303
8288
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
8304
8289
  children: items.map(function(item, i) {
8305
- var itemProps = _object_spread_props$P(_object_spread$Y({
8290
+ var itemProps = _object_spread_props$S(_object_spread$$({
8306
8291
  testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
8307
8292
  }, item), {
8308
8293
  shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
@@ -8314,13 +8299,13 @@
8314
8299
  return /* @__PURE__ */ jsx(React.Fragment, {
8315
8300
  children: trueReactPlatformHelpers.isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
8316
8301
  eventType: "hover",
8317
- tweakStyles: withPopupStyles$1,
8302
+ tweakStyles: withPopupStyles,
8318
8303
  placement: "right-start",
8319
8304
  popupOffset: 0,
8320
8305
  shouldRenderInBody: false,
8321
8306
  trigger: function(param2) {
8322
8307
  var triggerProps = param2.triggerProps;
8323
- return /* @__PURE__ */ jsx(ListItem, _object_spread_props$P(_object_spread$Y({}, itemProps), {
8308
+ return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$$({}, itemProps), {
8324
8309
  isFocused: triggerProps.isActive
8325
8310
  }));
8326
8311
  },
@@ -8331,13 +8316,13 @@
8331
8316
  onClick
8332
8317
  })
8333
8318
  })
8334
- }) : /* @__PURE__ */ jsx(ListItem, _object_spread$Y({}, itemProps))
8319
+ }) : /* @__PURE__ */ jsx(ListItem, _object_spread$$({}, itemProps))
8335
8320
  }, i);
8336
8321
  })
8337
8322
  }));
8338
8323
  };
8339
8324
  var ANIMATION_TIMEOUT = 150;
8340
- function _define_property$Z(obj, key, value) {
8325
+ function _define_property$10(obj, key, value) {
8341
8326
  if (key in obj) {
8342
8327
  Object.defineProperty(obj, key, {
8343
8328
  value,
@@ -8350,7 +8335,7 @@
8350
8335
  }
8351
8336
  return obj;
8352
8337
  }
8353
- function _object_spread$X(target) {
8338
+ function _object_spread$_(target) {
8354
8339
  for (var i = 1; i < arguments.length; i++) {
8355
8340
  var source = arguments[i] != null ? arguments[i] : {};
8356
8341
  var ownKeys2 = Object.keys(source);
@@ -8360,12 +8345,12 @@
8360
8345
  }));
8361
8346
  }
8362
8347
  ownKeys2.forEach(function(key) {
8363
- _define_property$Z(target, key, source[key]);
8348
+ _define_property$10(target, key, source[key]);
8364
8349
  });
8365
8350
  }
8366
8351
  return target;
8367
8352
  }
8368
- var useStyles$R = createThemedStyles("AccountInfo", _object_spread$X({
8353
+ var useStyles$T = createThemedStyles("AccountInfo", _object_spread$_({
8369
8354
  root: {
8370
8355
  display: "flex"
8371
8356
  },
@@ -8419,7 +8404,7 @@
8419
8404
  if (Array.isArray(arr))
8420
8405
  return arr;
8421
8406
  }
8422
- function _define_property$Y(obj, key, value) {
8407
+ function _define_property$$(obj, key, value) {
8423
8408
  if (key in obj) {
8424
8409
  Object.defineProperty(obj, key, {
8425
8410
  value,
@@ -8463,7 +8448,7 @@
8463
8448
  function _non_iterable_rest$l() {
8464
8449
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8465
8450
  }
8466
- function _object_spread$W(target) {
8451
+ function _object_spread$Z(target) {
8467
8452
  for (var i = 1; i < arguments.length; i++) {
8468
8453
  var source = arguments[i] != null ? arguments[i] : {};
8469
8454
  var ownKeys2 = Object.keys(source);
@@ -8473,12 +8458,12 @@
8473
8458
  }));
8474
8459
  }
8475
8460
  ownKeys2.forEach(function(key) {
8476
- _define_property$Y(target, key, source[key]);
8461
+ _define_property$$(target, key, source[key]);
8477
8462
  });
8478
8463
  }
8479
8464
  return target;
8480
8465
  }
8481
- function ownKeys$O(object, enumerableOnly) {
8466
+ function ownKeys$R(object, enumerableOnly) {
8482
8467
  var keys2 = Object.keys(object);
8483
8468
  if (Object.getOwnPropertySymbols) {
8484
8469
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8491,12 +8476,12 @@
8491
8476
  }
8492
8477
  return keys2;
8493
8478
  }
8494
- function _object_spread_props$O(target, source) {
8479
+ function _object_spread_props$R(target, source) {
8495
8480
  source = source != null ? source : {};
8496
8481
  if (Object.getOwnPropertyDescriptors) {
8497
8482
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8498
8483
  } else {
8499
- ownKeys$O(Object(source)).forEach(function(key) {
8484
+ ownKeys$R(Object(source)).forEach(function(key) {
8500
8485
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8501
8486
  });
8502
8487
  }
@@ -8520,7 +8505,7 @@
8520
8505
  }
8521
8506
  var AccountInfo = function(param) {
8522
8507
  var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
8523
- var classes = useStyles$R({
8508
+ var classes = useStyles$T({
8524
8509
  theme: tweakStyles
8525
8510
  });
8526
8511
  var tweakListStyles = useTweakStyles({
@@ -8540,7 +8525,7 @@
8540
8525
  useOnClickOutsideWithRef(dropdownRef, function() {
8541
8526
  return setIsMenuOpen(false);
8542
8527
  }, nameRef);
8543
- return /* @__PURE__ */ jsxs("div", _object_spread_props$O(_object_spread$W({
8528
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$Z({
8544
8529
  className: classes.root
8545
8530
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
8546
8531
  children: [
@@ -8590,7 +8575,7 @@
8590
8575
  ]
8591
8576
  }));
8592
8577
  };
8593
- var useStyles$Q = createThemedStyles("AddButton", {
8578
+ var useStyles$S = createThemedStyles("AddButton", {
8594
8579
  root: {
8595
8580
  display: "flex",
8596
8581
  alignItems: "center",
@@ -8616,7 +8601,7 @@
8616
8601
  width: "100%"
8617
8602
  }
8618
8603
  });
8619
- function _define_property$X(obj, key, value) {
8604
+ function _define_property$_(obj, key, value) {
8620
8605
  if (key in obj) {
8621
8606
  Object.defineProperty(obj, key, {
8622
8607
  value,
@@ -8629,7 +8614,7 @@
8629
8614
  }
8630
8615
  return obj;
8631
8616
  }
8632
- function _object_spread$V(target) {
8617
+ function _object_spread$Y(target) {
8633
8618
  for (var i = 1; i < arguments.length; i++) {
8634
8619
  var source = arguments[i] != null ? arguments[i] : {};
8635
8620
  var ownKeys2 = Object.keys(source);
@@ -8639,12 +8624,12 @@
8639
8624
  }));
8640
8625
  }
8641
8626
  ownKeys2.forEach(function(key) {
8642
- _define_property$X(target, key, source[key]);
8627
+ _define_property$_(target, key, source[key]);
8643
8628
  });
8644
8629
  }
8645
8630
  return target;
8646
8631
  }
8647
- function ownKeys$N(object, enumerableOnly) {
8632
+ function ownKeys$Q(object, enumerableOnly) {
8648
8633
  var keys2 = Object.keys(object);
8649
8634
  if (Object.getOwnPropertySymbols) {
8650
8635
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8657,12 +8642,12 @@
8657
8642
  }
8658
8643
  return keys2;
8659
8644
  }
8660
- function _object_spread_props$N(target, source) {
8645
+ function _object_spread_props$Q(target, source) {
8661
8646
  source = source != null ? source : {};
8662
8647
  if (Object.getOwnPropertyDescriptors) {
8663
8648
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8664
8649
  } else {
8665
- ownKeys$N(Object(source)).forEach(function(key) {
8650
+ ownKeys$Q(Object(source)).forEach(function(key) {
8666
8651
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8667
8652
  });
8668
8653
  }
@@ -8670,10 +8655,10 @@
8670
8655
  }
8671
8656
  var AddButton = function(param) {
8672
8657
  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;
8673
- var classes = useStyles$Q({
8658
+ var classes = useStyles$S({
8674
8659
  theme: tweakStyles
8675
8660
  });
8676
- return /* @__PURE__ */ jsxs("button", _object_spread_props$N(_object_spread$V({
8661
+ return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Y({
8677
8662
  type,
8678
8663
  className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
8679
8664
  onClick: !isDisabled ? onClick : void 0,
@@ -8692,7 +8677,7 @@
8692
8677
  ]
8693
8678
  }));
8694
8679
  };
8695
- var useStyles$P = createThemedStyles("DotsPreloader", {
8680
+ var useStyles$R = createThemedStyles("DotsPreloader", {
8696
8681
  root: {
8697
8682
  display: "flex",
8698
8683
  gap: 4,
@@ -8738,7 +8723,7 @@
8738
8723
  });
8739
8724
  var DotsPreloader = function(param) {
8740
8725
  var tweakStyles = param.tweakStyles;
8741
- var classes = useStyles$P({
8726
+ var classes = useStyles$R({
8742
8727
  theme: tweakStyles
8743
8728
  });
8744
8729
  return /* @__PURE__ */ jsx("div", {
@@ -8804,7 +8789,7 @@
8804
8789
  ]
8805
8790
  });
8806
8791
  };
8807
- var useStyles$O = createThemedStyles("SvgPreloader", {
8792
+ var useStyles$Q = createThemedStyles("SvgPreloader", {
8808
8793
  root: {
8809
8794
  display: "flex",
8810
8795
  width: "100%",
@@ -8814,7 +8799,7 @@
8814
8799
  var SvgPreloader = function(param) {
8815
8800
  var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
8816
8801
  var _theme_preloaders;
8817
- var classes = useStyles$O({
8802
+ var classes = useStyles$Q({
8818
8803
  theme: tweakStyles
8819
8804
  });
8820
8805
  var theme = React.useContext(ThemeContext).theme;
@@ -8828,7 +8813,7 @@
8828
8813
  }
8829
8814
  }) : /* @__PURE__ */ jsx(PreloaderIcon, {});
8830
8815
  };
8831
- var useStyles$N = createThemedStyles("ThemedPreloader", {
8816
+ var useStyles$P = createThemedStyles("ThemedPreloader", {
8832
8817
  root: {
8833
8818
  display: "flex"
8834
8819
  },
@@ -8839,7 +8824,7 @@
8839
8824
  color: "currentColor"
8840
8825
  }
8841
8826
  });
8842
- function _define_property$W(obj, key, value) {
8827
+ function _define_property$Z(obj, key, value) {
8843
8828
  if (key in obj) {
8844
8829
  Object.defineProperty(obj, key, {
8845
8830
  value,
@@ -8852,7 +8837,7 @@
8852
8837
  }
8853
8838
  return obj;
8854
8839
  }
8855
- function _object_spread$U(target) {
8840
+ function _object_spread$X(target) {
8856
8841
  for (var i = 1; i < arguments.length; i++) {
8857
8842
  var source = arguments[i] != null ? arguments[i] : {};
8858
8843
  var ownKeys2 = Object.keys(source);
@@ -8862,12 +8847,12 @@
8862
8847
  }));
8863
8848
  }
8864
8849
  ownKeys2.forEach(function(key) {
8865
- _define_property$W(target, key, source[key]);
8850
+ _define_property$Z(target, key, source[key]);
8866
8851
  });
8867
8852
  }
8868
8853
  return target;
8869
8854
  }
8870
- function ownKeys$M(object, enumerableOnly) {
8855
+ function ownKeys$P(object, enumerableOnly) {
8871
8856
  var keys2 = Object.keys(object);
8872
8857
  if (Object.getOwnPropertySymbols) {
8873
8858
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8880,12 +8865,12 @@
8880
8865
  }
8881
8866
  return keys2;
8882
8867
  }
8883
- function _object_spread_props$M(target, source) {
8868
+ function _object_spread_props$P(target, source) {
8884
8869
  source = source != null ? source : {};
8885
8870
  if (Object.getOwnPropertyDescriptors) {
8886
8871
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8887
8872
  } else {
8888
- ownKeys$M(Object(source)).forEach(function(key) {
8873
+ ownKeys$P(Object(source)).forEach(function(key) {
8889
8874
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8890
8875
  });
8891
8876
  }
@@ -8893,7 +8878,7 @@
8893
8878
  }
8894
8879
  var ThemedPreloader = function(param) {
8895
8880
  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;
8896
- var classes = useStyles$N({
8881
+ var classes = useStyles$P({
8897
8882
  theme: tweakStyles
8898
8883
  });
8899
8884
  var tweakDotsPreloaderStyles = useTweakStyles({
@@ -8906,8 +8891,8 @@
8906
8891
  className: "tweakSvgPreloader",
8907
8892
  currentComponentName: "ThemedPreloader"
8908
8893
  });
8909
- return /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$U({
8910
- className: clsx(classes.root, classes[type], _define_property$W({}, classes.currentColor, useCurrentColor))
8894
+ return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$X({
8895
+ className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
8911
8896
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
8912
8897
  children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
8913
8898
  tweakStyles: tweakDotsPreloaderStyles
@@ -8917,7 +8902,7 @@
8917
8902
  })
8918
8903
  }));
8919
8904
  };
8920
- var useStyles$M = createThemedStyles("Button", {
8905
+ var useStyles$O = createThemedStyles("Button", {
8921
8906
  root: {
8922
8907
  display: "flex",
8923
8908
  justifyContent: "center",
@@ -9088,7 +9073,7 @@
9088
9073
  var getPreloaderStyles = function(size) {
9089
9074
  return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
9090
9075
  };
9091
- function _define_property$V(obj, key, value) {
9076
+ function _define_property$Y(obj, key, value) {
9092
9077
  if (key in obj) {
9093
9078
  Object.defineProperty(obj, key, {
9094
9079
  value,
@@ -9101,7 +9086,7 @@
9101
9086
  }
9102
9087
  return obj;
9103
9088
  }
9104
- function _object_spread$T(target) {
9089
+ function _object_spread$W(target) {
9105
9090
  for (var i = 1; i < arguments.length; i++) {
9106
9091
  var source = arguments[i] != null ? arguments[i] : {};
9107
9092
  var ownKeys2 = Object.keys(source);
@@ -9111,12 +9096,12 @@
9111
9096
  }));
9112
9097
  }
9113
9098
  ownKeys2.forEach(function(key) {
9114
- _define_property$V(target, key, source[key]);
9099
+ _define_property$Y(target, key, source[key]);
9115
9100
  });
9116
9101
  }
9117
9102
  return target;
9118
9103
  }
9119
- function ownKeys$L(object, enumerableOnly) {
9104
+ function ownKeys$O(object, enumerableOnly) {
9120
9105
  var keys2 = Object.keys(object);
9121
9106
  if (Object.getOwnPropertySymbols) {
9122
9107
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9129,21 +9114,21 @@
9129
9114
  }
9130
9115
  return keys2;
9131
9116
  }
9132
- function _object_spread_props$L(target, source) {
9117
+ function _object_spread_props$O(target, source) {
9133
9118
  source = source != null ? source : {};
9134
9119
  if (Object.getOwnPropertyDescriptors) {
9135
9120
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9136
9121
  } else {
9137
- ownKeys$L(Object(source)).forEach(function(key) {
9122
+ ownKeys$O(Object(source)).forEach(function(key) {
9138
9123
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9139
9124
  });
9140
9125
  }
9141
9126
  return target;
9142
9127
  }
9143
- function _object_without_properties$h(source, excluded) {
9128
+ function _object_without_properties$j(source, excluded) {
9144
9129
  if (source == null)
9145
9130
  return {};
9146
- var target = _object_without_properties_loose$h(source, excluded);
9131
+ var target = _object_without_properties_loose$j(source, excluded);
9147
9132
  var key, i;
9148
9133
  if (Object.getOwnPropertySymbols) {
9149
9134
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -9158,7 +9143,7 @@
9158
9143
  }
9159
9144
  return target;
9160
9145
  }
9161
- function _object_without_properties_loose$h(source, excluded) {
9146
+ function _object_without_properties_loose$j(source, excluded) {
9162
9147
  if (source == null)
9163
9148
  return {};
9164
9149
  var target = {};
@@ -9173,7 +9158,7 @@
9173
9158
  return target;
9174
9159
  }
9175
9160
  var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
9176
- 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$h(_param, [
9161
+ 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, [
9177
9162
  "type",
9178
9163
  "children",
9179
9164
  "size",
@@ -9191,7 +9176,7 @@
9191
9176
  "iconPosition",
9192
9177
  "preloaderType"
9193
9178
  ]);
9194
- var classes = useStyles$M({
9179
+ var classes = useStyles$O({
9195
9180
  theme: tweakStyles
9196
9181
  });
9197
9182
  var tweakPreloaderStyles = useTweakStyles({
@@ -9204,16 +9189,16 @@
9204
9189
  var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
9205
9190
  var hasNoAction = isDisabled || isLoading;
9206
9191
  var _obj2, _obj1;
9207
- return /* @__PURE__ */ jsxs("button", _object_spread_props$L(_object_spread$T({
9192
+ return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$W({
9208
9193
  ref,
9209
9194
  type,
9210
- className: clsx(classes.root, classes[size], 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)),
9195
+ 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)),
9211
9196
  tabIndex: shouldSkipTabNavigation ? -1 : void 0,
9212
9197
  disabled: hasNoAction
9213
9198
  }, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
9214
9199
  children: [
9215
9200
  /* @__PURE__ */ jsxs("span", {
9216
- 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)),
9201
+ 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)),
9217
9202
  children: [
9218
9203
  hasIcon && /* @__PURE__ */ jsx("span", {
9219
9204
  className: classes.icon,
@@ -9236,7 +9221,7 @@
9236
9221
  ]
9237
9222
  }));
9238
9223
  });
9239
- var useStyles$L = createThemedStyles("Checkbox", {
9224
+ var useStyles$N = createThemedStyles("Checkbox", {
9240
9225
  root: {
9241
9226
  cursor: "pointer",
9242
9227
  display: "flex",
@@ -9274,7 +9259,7 @@
9274
9259
  flexDirection: "row-reverse"
9275
9260
  }
9276
9261
  });
9277
- function _define_property$U(obj, key, value) {
9262
+ function _define_property$X(obj, key, value) {
9278
9263
  if (key in obj) {
9279
9264
  Object.defineProperty(obj, key, {
9280
9265
  value,
@@ -9287,7 +9272,7 @@
9287
9272
  }
9288
9273
  return obj;
9289
9274
  }
9290
- function _object_spread$S(target) {
9275
+ function _object_spread$V(target) {
9291
9276
  for (var i = 1; i < arguments.length; i++) {
9292
9277
  var source = arguments[i] != null ? arguments[i] : {};
9293
9278
  var ownKeys2 = Object.keys(source);
@@ -9297,12 +9282,12 @@
9297
9282
  }));
9298
9283
  }
9299
9284
  ownKeys2.forEach(function(key) {
9300
- _define_property$U(target, key, source[key]);
9285
+ _define_property$X(target, key, source[key]);
9301
9286
  });
9302
9287
  }
9303
9288
  return target;
9304
9289
  }
9305
- function ownKeys$K(object, enumerableOnly) {
9290
+ function ownKeys$N(object, enumerableOnly) {
9306
9291
  var keys2 = Object.keys(object);
9307
9292
  if (Object.getOwnPropertySymbols) {
9308
9293
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9315,12 +9300,12 @@
9315
9300
  }
9316
9301
  return keys2;
9317
9302
  }
9318
- function _object_spread_props$K(target, source) {
9303
+ function _object_spread_props$N(target, source) {
9319
9304
  source = source != null ? source : {};
9320
9305
  if (Object.getOwnPropertyDescriptors) {
9321
9306
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9322
9307
  } else {
9323
- ownKeys$K(Object(source)).forEach(function(key) {
9308
+ ownKeys$N(Object(source)).forEach(function(key) {
9324
9309
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9325
9310
  });
9326
9311
  }
@@ -9328,7 +9313,7 @@
9328
9313
  }
9329
9314
  function Checkbox(param) {
9330
9315
  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;
9331
- var classes = useStyles$L({
9316
+ var classes = useStyles$N({
9332
9317
  theme: tweakStyles
9333
9318
  });
9334
9319
  var hasAction = !isDisabled && !isReadonly;
@@ -9340,11 +9325,11 @@
9340
9325
  }, event);
9341
9326
  };
9342
9327
  var _obj2;
9343
- return /* @__PURE__ */ jsxs("label", _object_spread_props$K(_object_spread$S({
9344
- 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))
9328
+ return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$V({
9329
+ 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))
9345
9330
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
9346
9331
  children: [
9347
- /* @__PURE__ */ jsx("input", _object_spread$S({
9332
+ /* @__PURE__ */ jsx("input", _object_spread$V({
9348
9333
  className: classes.input,
9349
9334
  type: "checkbox",
9350
9335
  checked: isSelected,
@@ -9367,7 +9352,7 @@
9367
9352
  ]
9368
9353
  }));
9369
9354
  }
9370
- var useStyles$K = createThemedStyles("CloseButton", {
9355
+ var useStyles$M = createThemedStyles("CloseButton", {
9371
9356
  root: {
9372
9357
  width: 40,
9373
9358
  height: 40,
@@ -9393,7 +9378,7 @@
9393
9378
  }
9394
9379
  }
9395
9380
  });
9396
- function _define_property$T(obj, key, value) {
9381
+ function _define_property$W(obj, key, value) {
9397
9382
  if (key in obj) {
9398
9383
  Object.defineProperty(obj, key, {
9399
9384
  value,
@@ -9406,7 +9391,7 @@
9406
9391
  }
9407
9392
  return obj;
9408
9393
  }
9409
- function _object_spread$R(target) {
9394
+ function _object_spread$U(target) {
9410
9395
  for (var i = 1; i < arguments.length; i++) {
9411
9396
  var source = arguments[i] != null ? arguments[i] : {};
9412
9397
  var ownKeys2 = Object.keys(source);
@@ -9416,12 +9401,12 @@
9416
9401
  }));
9417
9402
  }
9418
9403
  ownKeys2.forEach(function(key) {
9419
- _define_property$T(target, key, source[key]);
9404
+ _define_property$W(target, key, source[key]);
9420
9405
  });
9421
9406
  }
9422
9407
  return target;
9423
9408
  }
9424
- function ownKeys$J(object, enumerableOnly) {
9409
+ function ownKeys$M(object, enumerableOnly) {
9425
9410
  var keys2 = Object.keys(object);
9426
9411
  if (Object.getOwnPropertySymbols) {
9427
9412
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9434,33 +9419,33 @@
9434
9419
  }
9435
9420
  return keys2;
9436
9421
  }
9437
- function _object_spread_props$J(target, source) {
9422
+ function _object_spread_props$M(target, source) {
9438
9423
  source = source != null ? source : {};
9439
9424
  if (Object.getOwnPropertyDescriptors) {
9440
9425
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9441
9426
  } else {
9442
- ownKeys$J(Object(source)).forEach(function(key) {
9427
+ ownKeys$M(Object(source)).forEach(function(key) {
9443
9428
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9444
9429
  });
9445
9430
  }
9446
9431
  return target;
9447
9432
  }
9448
9433
  var CloseButton = function(param) {
9449
- 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;
9450
- var classes = useStyles$K({
9434
+ 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;
9435
+ var classes = useStyles$M({
9451
9436
  theme: tweakStyles
9452
9437
  });
9453
- return /* @__PURE__ */ jsx("button", _object_spread_props$J(_object_spread$R({
9438
+ return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$U({
9454
9439
  type: "button",
9455
9440
  className: classes.root,
9456
9441
  onClick: onClose
9457
9442
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
9458
9443
  children: /* @__PURE__ */ jsx(Icon, {
9459
- type: iconType
9444
+ type: icon
9460
9445
  })
9461
9446
  }));
9462
9447
  };
9463
- var useStyles$J = createThemedStyles({
9448
+ var useStyles$L = createThemedStyles({
9464
9449
  root: {
9465
9450
  display: "flex",
9466
9451
  flexWrap: "wrap"
@@ -9553,7 +9538,7 @@
9553
9538
  return _array_like_to_array$k(o, minLen);
9554
9539
  }
9555
9540
  var Colors = function() {
9556
- var classes = useStyles$J();
9541
+ var classes = useStyles$L();
9557
9542
  var theme = React.useContext(ThemeContext).theme;
9558
9543
  var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
9559
9544
  return /* @__PURE__ */ jsx("div", {
@@ -9583,7 +9568,7 @@
9583
9568
  })
9584
9569
  });
9585
9570
  };
9586
- var useStyles$I = createThemedStyles("CssBaseline", {
9571
+ var useStyles$K = createThemedStyles("CssBaseline", {
9587
9572
  "@global html, body": {
9588
9573
  fontFamily: "Arial, sans-serif",
9589
9574
  color: colors.FONT_MAIN,
@@ -9592,7 +9577,7 @@
9592
9577
  },
9593
9578
  root: {}
9594
9579
  });
9595
- function _define_property$S(obj, key, value) {
9580
+ function _define_property$V(obj, key, value) {
9596
9581
  if (key in obj) {
9597
9582
  Object.defineProperty(obj, key, {
9598
9583
  value,
@@ -9605,7 +9590,7 @@
9605
9590
  }
9606
9591
  return obj;
9607
9592
  }
9608
- function _object_spread$Q(target) {
9593
+ function _object_spread$T(target) {
9609
9594
  for (var i = 1; i < arguments.length; i++) {
9610
9595
  var source = arguments[i] != null ? arguments[i] : {};
9611
9596
  var ownKeys2 = Object.keys(source);
@@ -9615,296 +9600,485 @@
9615
9600
  }));
9616
9601
  }
9617
9602
  ownKeys2.forEach(function(key) {
9618
- _define_property$S(target, key, source[key]);
9603
+ _define_property$V(target, key, source[key]);
9619
9604
  });
9620
9605
  }
9621
9606
  return target;
9622
9607
  }
9623
9608
  var CssBaseline = function(param) {
9624
9609
  var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
9625
- var classes = useStyles$I({
9610
+ var classes = useStyles$K({
9626
9611
  theme: tweakStyles
9627
9612
  });
9628
- return /* @__PURE__ */ jsx("div", _object_spread$Q({
9613
+ return /* @__PURE__ */ jsx("div", _object_spread$T({
9629
9614
  className: classes.root
9630
9615
  }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
9631
9616
  };
9632
- var DEFAULT_SIZE = 6;
9633
- var PADDING_X$1 = 12;
9634
- var AUTOSIZE_MAX_WIDTH = 480;
9635
- var useStyles$H = createThemedStyles("Input", {
9636
- root: {
9637
- width: "100%",
9638
- boxSizing: "border-box",
9639
- position: "relative"
9640
- },
9641
- inputWrapper: {
9617
+ var useStyles$J = createThemedStyles("WithMessages", {
9618
+ withMessages: {
9642
9619
  display: "flex",
9620
+ flexDirection: "column",
9643
9621
  width: "100%",
9644
- height: dimensions.CONTROL_HEIGHT,
9645
- boxSizing: "border-box",
9646
- transition: animations.defaultTransition,
9647
- transitionProperty: "border-color",
9648
- backgroundColor: "white",
9649
9622
  position: "relative"
9650
9623
  },
9651
- inputContent: {
9652
- fontSize: 16,
9653
- fontFamily: "inherit",
9654
- padding: [
9655
- 0,
9656
- PADDING_X$1
9657
- ]
9624
+ error: {
9625
+ color: "red"
9658
9626
  },
9659
- input: {
9660
- extend: "inputContent",
9661
- width: "100%",
9662
- height: "100%",
9663
- outline: "none",
9664
- boxSizing: "border-box",
9665
- outlineStyle: "none",
9666
- transition: animations.defaultTransition,
9667
- transitionProperty: "background-color",
9668
- border: "none",
9669
- background: "none",
9670
- "&::placeholder": {
9671
- opacity: 1
9672
- },
9673
- MozAppearance: "textfield",
9674
- "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": {
9675
- WebkitAppearance: "none",
9676
- margin: 0
9677
- }
9627
+ info: {
9628
+ color: "gray"
9678
9629
  },
9679
- autosize: {
9680
- display: "inline-grid",
9681
- verticalAlign: "top",
9682
- alignItems: "center",
9683
- justifyContent: "start",
9684
- "&::after, input": {
9685
- width: "auto",
9686
- minWidth: "1em",
9687
- gridArea: "1 / 2",
9688
- font: "inherit",
9689
- justifySelf: "stretch"
9690
- },
9691
- "&::after": {
9692
- maxWidth: AUTOSIZE_MAX_WIDTH,
9693
- content: 'attr(data-value) " "',
9694
- visibility: "hidden",
9695
- whiteSpace: "pre-wrap"
9630
+ horizontal: {
9631
+ display: "flex",
9632
+ "& > *": {
9633
+ flexGrow: 1,
9634
+ "&:not(:first-child)": {
9635
+ marginLeft: -1
9636
+ }
9696
9637
  }
9697
9638
  },
9698
- focused: {
9699
- position: "relative",
9700
- zIndex: 1
9701
- },
9702
- unitsWrapper: {
9703
- extend: "inputContent",
9704
- position: "absolute",
9705
- left: 0,
9706
- height: "100%",
9707
- boxSizing: "border-box",
9639
+ vertical: {
9708
9640
  display: "flex",
9709
- alignItems: "center",
9710
- pointerEvents: "none"
9641
+ flexDirection: "column",
9642
+ "& > *:not(:first-child)": {
9643
+ marginTop: -1
9644
+ }
9711
9645
  },
9712
- fakeValue: {
9713
- visibility: "hidden"
9646
+ message: {
9647
+ fontSize: 12
9714
9648
  },
9715
- units: {
9716
- paddingLeft: 4
9717
- },
9718
- withFloatingLabel: {
9719
- paddingTop: 18
9649
+ children: {}
9650
+ });
9651
+ function _define_property$U(obj, key, value) {
9652
+ if (key in obj) {
9653
+ Object.defineProperty(obj, key, {
9654
+ value,
9655
+ enumerable: true,
9656
+ configurable: true,
9657
+ writable: true
9658
+ });
9659
+ } else {
9660
+ obj[key] = value;
9661
+ }
9662
+ return obj;
9663
+ }
9664
+ function _object_spread$S(target) {
9665
+ for (var i = 1; i < arguments.length; i++) {
9666
+ var source = arguments[i] != null ? arguments[i] : {};
9667
+ var ownKeys2 = Object.keys(source);
9668
+ if (typeof Object.getOwnPropertySymbols === "function") {
9669
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9670
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9671
+ }));
9672
+ }
9673
+ ownKeys2.forEach(function(key) {
9674
+ _define_property$U(target, key, source[key]);
9675
+ });
9676
+ }
9677
+ return target;
9678
+ }
9679
+ function ownKeys$L(object, enumerableOnly) {
9680
+ var keys2 = Object.keys(object);
9681
+ if (Object.getOwnPropertySymbols) {
9682
+ var symbols = Object.getOwnPropertySymbols(object);
9683
+ if (enumerableOnly) {
9684
+ symbols = symbols.filter(function(sym) {
9685
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9686
+ });
9687
+ }
9688
+ keys2.push.apply(keys2, symbols);
9689
+ }
9690
+ return keys2;
9691
+ }
9692
+ function _object_spread_props$L(target, source) {
9693
+ source = source != null ? source : {};
9694
+ if (Object.getOwnPropertyDescriptors) {
9695
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9696
+ } else {
9697
+ ownKeys$L(Object(source)).forEach(function(key) {
9698
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9699
+ });
9700
+ }
9701
+ return target;
9702
+ }
9703
+ var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
9704
+ var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
9705
+ var classes = useStyles$J({
9706
+ theme: tweakStyles
9707
+ });
9708
+ var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
9709
+ var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
9710
+ var _obj2;
9711
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
9712
+ ref,
9713
+ className: classes.withMessages,
9714
+ "data-invalid": shouldShowError ? true : void 0
9715
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
9716
+ children: [
9717
+ trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
9718
+ className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
9719
+ children
9720
+ }),
9721
+ (shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
9722
+ className: classes.message,
9723
+ children: [
9724
+ shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9725
+ className: classes.error
9726
+ }, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
9727
+ children: errorMessage
9728
+ })),
9729
+ shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9730
+ className: classes.info
9731
+ }, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
9732
+ children: infoMessage
9733
+ }))
9734
+ ]
9735
+ })
9736
+ ]
9737
+ }));
9738
+ });
9739
+ var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
9740
+ var useStyles$I = createThemedStyles("ControlWrapper", {
9741
+ controlWrapper: {
9742
+ "--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
9743
+ // borders
9744
+ "--control-padding": "".concat(CONTROL$1.PADDING, "px"),
9745
+ "--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
9746
+ "--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
9747
+ "--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
9748
+ display: "flex",
9749
+ width: "100%",
9750
+ backgroundColor: "white",
9751
+ position: "relative",
9752
+ border: [
9753
+ "solid",
9754
+ 1,
9755
+ "gray"
9756
+ ],
9757
+ borderRadius: 8,
9758
+ boxSizing: "border-box",
9759
+ zIndex: 0
9720
9760
  },
9721
- floatingLabelWithoutPadding: {
9722
- paddingTop: 18,
9723
- paddingLeft: 0
9761
+ invalid: {
9762
+ zIndex: Z_INDEX$2.CONTROL_INVALID
9724
9763
  },
9725
- floating: {},
9726
- activeLabel: {
9727
- display: "none",
9728
- "&$floating": {
9729
- display: "block",
9730
- transform: "scale(0.75) translateY(-120%)"
9731
- }
9764
+ disabled: {},
9765
+ focused: {
9766
+ position: "relative",
9767
+ zIndex: Z_INDEX$2.CONTROL_FOCUS
9732
9768
  },
9733
- required: {
9734
- "&:before": {
9735
- content: '""',
9736
- position: "absolute",
9737
- left: -12,
9738
- top: "50%",
9739
- transform: "translate(0, -50%)",
9740
- width: 6,
9741
- height: 6,
9742
- borderRadius: "50%"
9743
- }
9769
+ withValue: {},
9770
+ loading: {},
9771
+ minContent: {
9772
+ width: "min-content"
9744
9773
  },
9745
9774
  label: {
9746
9775
  position: "absolute",
9747
9776
  pointerEvents: "none",
9748
- left: PADDING_X$1,
9777
+ left: "var(--control-padding)",
9749
9778
  top: "50%",
9750
9779
  transformOrigin: "top left",
9751
9780
  transform: "translateY(-50%)",
9752
9781
  transition: animations.defaultTransition,
9753
9782
  transitionProperty: "transform, color",
9754
- fontSize: 16
9755
- },
9756
- floatingWithoutPadding: {
9757
- left: 0
9783
+ fontSize: 16,
9784
+ zIndex: 1
9758
9785
  },
9786
+ activeLabel: {},
9759
9787
  requiredLabel: {
9760
9788
  "&:after": {
9761
9789
  content: '""',
9790
+ display: "block",
9762
9791
  position: "absolute",
9792
+ top: 0,
9763
9793
  right: -8,
9764
- top: 4,
9765
- transform: "translate(0, -50%)",
9766
9794
  width: 6,
9767
9795
  height: 6,
9768
- borderRadius: "50%"
9796
+ borderRadius: "50%",
9797
+ backgroundColor: "orange"
9769
9798
  }
9770
9799
  },
9771
- activeIcon: {
9772
- cursor: "pointer"
9800
+ disabledLabel: {},
9801
+ wrapper: {
9802
+ display: "flex",
9803
+ flexGrow: 1,
9804
+ minWidth: 0,
9805
+ // Нужно для селекта
9806
+ textAlign: "left"
9773
9807
  },
9774
- "border-top": {
9775
- borderRadius: 0,
9776
- borderWidth: [
9777
- 1,
9778
- 0,
9779
- 0,
9780
- 0
9781
- ]
9808
+ controls: {
9809
+ display: "flex",
9810
+ marginLeft: "auto",
9811
+ flexShrink: 0
9782
9812
  },
9783
- "border-bottom": {
9784
- borderRadius: 0,
9785
- borderWidth: [
9786
- 0,
9787
- 0,
9788
- 1,
9789
- 0
9790
- ]
9813
+ icon: {
9814
+ display: "flex",
9815
+ alignItems: "center",
9816
+ justifyContent: "center",
9817
+ minWidth: "var(--icon-size)",
9818
+ width: "var(--icon-size)",
9819
+ height: "100%",
9820
+ flexShrink: 0,
9821
+ cursor: "default",
9822
+ "&:last-child": {
9823
+ paddingRight: 6
9824
+ }
9791
9825
  },
9792
- "border-left": {
9793
- borderRadius: 0,
9794
- borderWidth: [
9795
- 0,
9796
- 0,
9797
- 0,
9798
- 1
9799
- ]
9826
+ iconInner: {
9827
+ width: "var(--icon-inner-size)"
9800
9828
  },
9801
- "border-right": {
9802
- borderRadius: 0,
9803
- borderWidth: [
9804
- 0,
9805
- 1,
9806
- 0,
9807
- 0
9808
- ]
9829
+ customIcon: {
9830
+ width: "unset",
9831
+ "& $iconInner": {
9832
+ width: "unset"
9833
+ }
9809
9834
  },
9810
- top: {
9835
+ endIcon: {},
9836
+ activeIcon: {
9837
+ cursor: "pointer",
9838
+ outline: "none"
9839
+ },
9840
+ clearIcon: {
9841
+ "& $iconInner": {
9842
+ width: "var(--icon-inner-size)"
9843
+ }
9844
+ },
9845
+ loader: {
9846
+ "& $iconInner": {
9847
+ width: "var(--icon-inner-size)"
9848
+ }
9849
+ },
9850
+ /* groupPositions */
9851
+ "placement-top": {
9811
9852
  borderBottomLeftRadius: 0,
9812
9853
  borderBottomRightRadius: 0
9813
9854
  },
9814
- bottom: {
9855
+ "placement-bottom": {
9815
9856
  borderTopLeftRadius: 0,
9816
9857
  borderTopRightRadius: 0
9817
9858
  },
9818
- "top-left": {
9859
+ "placement-top-left": {
9819
9860
  borderTopRightRadius: 0,
9820
9861
  borderBottomLeftRadius: 0,
9821
9862
  borderBottomRightRadius: 0
9822
9863
  },
9823
- "top-right": {
9864
+ "placement-top-right": {
9824
9865
  borderTopLeftRadius: 0,
9825
9866
  borderBottomLeftRadius: 0,
9826
9867
  borderBottomRightRadius: 0
9827
9868
  },
9828
- "bottom-left": {
9869
+ "placement-bottom-left": {
9829
9870
  borderTopLeftRadius: 0,
9830
9871
  borderTopRightRadius: 0,
9831
9872
  borderBottomRightRadius: 0
9832
9873
  },
9833
- "bottom-right": {
9874
+ "placement-bottom-right": {
9834
9875
  borderTopLeftRadius: 0,
9835
9876
  borderTopRightRadius: 0,
9836
9877
  borderBottomLeftRadius: 0
9837
9878
  },
9838
- left: {
9879
+ "placement-left": {
9839
9880
  borderTopRightRadius: 0,
9840
9881
  borderBottomRightRadius: 0
9841
9882
  },
9842
- right: {
9883
+ "placement-right": {
9843
9884
  borderTopLeftRadius: 0,
9844
9885
  borderBottomLeftRadius: 0
9845
9886
  },
9846
- middle: {
9887
+ "placement-middle": {
9847
9888
  borderRadius: 0
9848
- },
9849
- controls: {
9850
- display: "flex",
9851
- gridArea: "1 / 3"
9852
- },
9853
- icon: {
9854
- display: "flex",
9855
- alignItems: "center",
9889
+ }
9890
+ });
9891
+ function _define_property$T(obj, key, value) {
9892
+ if (key in obj) {
9893
+ Object.defineProperty(obj, key, {
9894
+ value,
9895
+ enumerable: true,
9896
+ configurable: true,
9897
+ writable: true
9898
+ });
9899
+ } else {
9900
+ obj[key] = value;
9901
+ }
9902
+ return obj;
9903
+ }
9904
+ function _object_spread$R(target) {
9905
+ for (var i = 1; i < arguments.length; i++) {
9906
+ var source = arguments[i] != null ? arguments[i] : {};
9907
+ var ownKeys2 = Object.keys(source);
9908
+ if (typeof Object.getOwnPropertySymbols === "function") {
9909
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9910
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9911
+ }));
9912
+ }
9913
+ ownKeys2.forEach(function(key) {
9914
+ _define_property$T(target, key, source[key]);
9915
+ });
9916
+ }
9917
+ return target;
9918
+ }
9919
+ function ownKeys$K(object, enumerableOnly) {
9920
+ var keys2 = Object.keys(object);
9921
+ if (Object.getOwnPropertySymbols) {
9922
+ var symbols = Object.getOwnPropertySymbols(object);
9923
+ if (enumerableOnly) {
9924
+ symbols = symbols.filter(function(sym) {
9925
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9926
+ });
9927
+ }
9928
+ keys2.push.apply(keys2, symbols);
9929
+ }
9930
+ return keys2;
9931
+ }
9932
+ function _object_spread_props$K(target, source) {
9933
+ source = source != null ? source : {};
9934
+ if (Object.getOwnPropertyDescriptors) {
9935
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9936
+ } else {
9937
+ ownKeys$K(Object(source)).forEach(function(key) {
9938
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9939
+ });
9940
+ }
9941
+ return target;
9942
+ }
9943
+ var ControlWrapper = function(param) {
9944
+ 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;
9945
+ var classes = useStyles$I({
9946
+ theme: tweakStyles
9947
+ });
9948
+ var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
9949
+ var hasClearButton = !isDisabled && !isLoading && hasValue && trueReactPlatformHelpers.isNotEmpty(onClear);
9950
+ var hasControls = hasEndIcon || hasClearButton || isLoading;
9951
+ var tweakPreloaderStyles = useTweakStyles({
9952
+ tweakStyles,
9953
+ className: "tweakPreloader",
9954
+ currentComponentName: "ControlWrapper"
9955
+ });
9956
+ var _obj2, _obj1, _obj22;
9957
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
9958
+ className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
9959
+ classes["placement-".concat(groupPlacement)]
9960
+ ], (_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))
9961
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
9962
+ children: [
9963
+ trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
9964
+ 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)),
9965
+ children: label
9966
+ }),
9967
+ /* @__PURE__ */ jsxs("div", {
9968
+ className: classes.wrapper,
9969
+ children: [
9970
+ children,
9971
+ hasControls && /* @__PURE__ */ jsxs("div", {
9972
+ className: classes.controls,
9973
+ children: [
9974
+ hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9975
+ className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
9976
+ }, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
9977
+ children: /* @__PURE__ */ jsx("div", {
9978
+ className: classes.iconInner,
9979
+ children: /* @__PURE__ */ jsx(Icon, {
9980
+ type: "close"
9981
+ })
9982
+ })
9983
+ })),
9984
+ hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9985
+ className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !trueReactPlatformHelpers.isString(icon)), _obj22))
9986
+ }, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
9987
+ children: /* @__PURE__ */ jsx("div", {
9988
+ className: classes.iconInner,
9989
+ children: renderIcon(icon)
9990
+ })
9991
+ })),
9992
+ isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9993
+ className: clsx(classes.icon, classes.loader)
9994
+ }, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
9995
+ children: /* @__PURE__ */ jsx("div", {
9996
+ className: classes.iconInner,
9997
+ children: /* @__PURE__ */ jsx(ThemedPreloader, {
9998
+ tweakStyles: tweakPreloaderStyles
9999
+ })
10000
+ })
10001
+ }))
10002
+ ]
10003
+ })
10004
+ ]
10005
+ })
10006
+ ]
10007
+ }));
10008
+ };
10009
+ var PADDING_WITH_UNITS = 8;
10010
+ var useStyles$H = createThemedStyles("Input", {
10011
+ inputContent: {
10012
+ height: "var(--control-height)",
9856
10013
  padding: [
9857
10014
  0,
9858
- 4
10015
+ "var(--control-padding)"
9859
10016
  ],
9860
- width: 20,
9861
- transition: animations.defaultTransition,
9862
- transitionProperty: "color",
9863
- boxSizing: "content-box",
9864
- "&:last-child": {
9865
- paddingRight: 8
10017
+ fontSize: 16,
10018
+ fontFamily: "inherit"
10019
+ },
10020
+ input: {
10021
+ extend: "inputContent",
10022
+ width: "100%",
10023
+ outline: "none",
10024
+ outlineStyle: "none",
10025
+ boxSizing: "border-box",
10026
+ border: "none",
10027
+ background: "none",
10028
+ color: "black",
10029
+ "&[readonly]": {
10030
+ cursor: "default"
10031
+ },
10032
+ "&::placeholder": {
10033
+ opacity: 1
9866
10034
  },
9867
- "& + $units": {
9868
- marginLeft: 4
10035
+ "&::-webkit-date-and-time-value": {
10036
+ textAlign: "left"
10037
+ },
10038
+ MozAppearance: "textfield",
10039
+ "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
10040
+ display: "none",
10041
+ WebkitAppearance: "none",
10042
+ margin: 0
9869
10043
  }
9870
10044
  },
9871
- clearIcon: {
9872
- extend: "icon"
9873
- },
9874
- inputIcon: {
9875
- extend: "icon"
9876
- },
9877
- withIcons: {
9878
- paddingRight: 4
10045
+ autoSizeWrapper: {
10046
+ position: "relative",
10047
+ display: "flex",
10048
+ minWidth: 0,
10049
+ zIndex: 0,
10050
+ flexGrow: 1
9879
10051
  },
9880
- withControls: {},
9881
- invalid: {},
9882
- disabled: {},
9883
- invalidLabel: {},
9884
- error: {
9885
- fontSize: 12
10052
+ autoSized: {
10053
+ position: "absolute",
10054
+ top: 0,
10055
+ left: 0,
10056
+ height: "100%"
9886
10057
  },
9887
- info: {
9888
- fontSize: 12,
9889
- paddingTop: 4,
9890
- paddingLeft: 13
10058
+ withUnits: {
10059
+ extend: "autoSized",
10060
+ paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
10061
+ "& + $fakeValue": {
10062
+ paddingRight: PADDING_WITH_UNITS
10063
+ }
9891
10064
  },
9892
- "error-top": {
9893
- position: "absolute",
9894
- top: -18,
9895
- left: -1,
9896
- padding: [
9897
- 4,
9898
- 8
9899
- ],
9900
- zIndex: 1
10065
+ withLabel: {},
10066
+ withValue: {},
10067
+ fakeValue: {
10068
+ extend: "inputContent",
10069
+ visibility: "hidden",
10070
+ maxWidth: "100%",
10071
+ overflow: "hidden",
10072
+ minWidth: 8,
10073
+ whiteSpace: "nowrap"
9901
10074
  },
9902
- "error-bottom": {
9903
- paddingTop: 4,
9904
- paddingLeft: 13
10075
+ units: {
10076
+ alignSelf: "center",
10077
+ paddingRight: "var(--control-padding)"
9905
10078
  },
9906
- loading: {},
9907
- withUnits: {}
10079
+ focusedInput: {},
10080
+ disabledInput: {},
10081
+ invalidInput: {}
9908
10082
  });
9909
10083
  function _array_like_to_array$j(arr, len) {
9910
10084
  if (len == null || len > arr.length)
@@ -9946,7 +10120,7 @@
9946
10120
  });
9947
10121
  };
9948
10122
  }
9949
- function _define_property$R(obj, key, value) {
10123
+ function _define_property$S(obj, key, value) {
9950
10124
  if (key in obj) {
9951
10125
  Object.defineProperty(obj, key, {
9952
10126
  value,
@@ -9990,7 +10164,7 @@
9990
10164
  function _non_iterable_rest$j() {
9991
10165
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9992
10166
  }
9993
- function _object_spread$P(target) {
10167
+ function _object_spread$Q(target) {
9994
10168
  for (var i = 1; i < arguments.length; i++) {
9995
10169
  var source = arguments[i] != null ? arguments[i] : {};
9996
10170
  var ownKeys2 = Object.keys(source);
@@ -10000,12 +10174,12 @@
10000
10174
  }));
10001
10175
  }
10002
10176
  ownKeys2.forEach(function(key) {
10003
- _define_property$R(target, key, source[key]);
10177
+ _define_property$S(target, key, source[key]);
10004
10178
  });
10005
10179
  }
10006
10180
  return target;
10007
10181
  }
10008
- function ownKeys$I(object, enumerableOnly) {
10182
+ function ownKeys$J(object, enumerableOnly) {
10009
10183
  var keys2 = Object.keys(object);
10010
10184
  if (Object.getOwnPropertySymbols) {
10011
10185
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10018,21 +10192,21 @@
10018
10192
  }
10019
10193
  return keys2;
10020
10194
  }
10021
- function _object_spread_props$I(target, source) {
10195
+ function _object_spread_props$J(target, source) {
10022
10196
  source = source != null ? source : {};
10023
10197
  if (Object.getOwnPropertyDescriptors) {
10024
10198
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10025
10199
  } else {
10026
- ownKeys$I(Object(source)).forEach(function(key) {
10200
+ ownKeys$J(Object(source)).forEach(function(key) {
10027
10201
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10028
10202
  });
10029
10203
  }
10030
10204
  return target;
10031
10205
  }
10032
- function _object_without_properties$g(source, excluded) {
10206
+ function _object_without_properties$i(source, excluded) {
10033
10207
  if (source == null)
10034
10208
  return {};
10035
- var target = _object_without_properties_loose$g(source, excluded);
10209
+ var target = _object_without_properties_loose$i(source, excluded);
10036
10210
  var key, i;
10037
10211
  if (Object.getOwnPropertySymbols) {
10038
10212
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10047,7 +10221,7 @@
10047
10221
  }
10048
10222
  return target;
10049
10223
  }
10050
- function _object_without_properties_loose$g(source, excluded) {
10224
+ function _object_without_properties_loose$i(source, excluded) {
10051
10225
  if (source == null)
10052
10226
  return {};
10053
10227
  var target = {};
@@ -10179,38 +10353,32 @@
10179
10353
  };
10180
10354
  }
10181
10355
  }
10182
- var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10183
- 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, [
10356
+ var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10357
+ 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, [
10184
10358
  "value",
10185
- "label",
10186
10359
  "placeholder",
10360
+ "label",
10187
10361
  "type",
10188
10362
  "isDisabled",
10363
+ "autoComplete",
10364
+ "inputMode",
10189
10365
  "isReadonly",
10190
- "hasFloatingLabel",
10191
10366
  "isInvalid",
10192
10367
  "isActive",
10193
10368
  "isClearable",
10194
- "infoMessage",
10195
- "errorMessage",
10196
- "errorPosition",
10197
- "inlineStyle",
10198
- "border",
10199
- "isRequired",
10200
- "isLoading",
10201
- "isAutoSizeable",
10202
- "defaultSize",
10203
- "iconType",
10204
- "hasRequiredLabel",
10205
- "data",
10369
+ "isAutoSized",
10370
+ "name",
10206
10371
  "tweakStyles",
10372
+ "maxLength",
10207
10373
  "shouldFocusOnMount",
10208
10374
  "units",
10209
10375
  "testId",
10376
+ "tabIndex",
10210
10377
  "onChange",
10378
+ "onPaste",
10211
10379
  "onFocus",
10212
10380
  "onBlur",
10213
- "onIconClick",
10381
+ "onKeyDown",
10214
10382
  "mask",
10215
10383
  "maskPlaceholder",
10216
10384
  "alwaysShowMask",
@@ -10220,13 +10388,27 @@
10220
10388
  var classes = useStyles$H({
10221
10389
  theme: tweakStyles
10222
10390
  });
10223
- var tweakPreloaderStyles = useTweakStyles({
10391
+ var tweakControlWrapperStyles = useTweakStyles({
10224
10392
  tweakStyles,
10225
- className: "tweakPreloader",
10393
+ className: "tweakControlWrapper",
10226
10394
  currentComponentName: "Input"
10227
10395
  });
10228
10396
  var _useState = _sliced_to_array$j(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
10397
+ var _useState1 = _sliced_to_array$j(React.useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
10229
10398
  var inputRef = React.useRef(null);
10399
+ var mergedRef = trueReactPlatformHelpers.mergeRefs([
10400
+ ref,
10401
+ inputRef
10402
+ ]);
10403
+ var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
10404
+ "email",
10405
+ "tel",
10406
+ "url"
10407
+ ].includes(type) ? type : void 0;
10408
+ var hasFocus = isFocused || isActive;
10409
+ var hasValue = trueReactPlatformHelpers.isNotEmpty(value) && value !== "";
10410
+ var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
10411
+ var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
10230
10412
  var handleChange = function(event) {
10231
10413
  onChange(event.currentTarget.value, event);
10232
10414
  };
@@ -10238,9 +10420,9 @@
10238
10420
  setFocused(false);
10239
10421
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
10240
10422
  };
10241
- var handleOnInputClear = function() {
10423
+ var handleInputClear = function() {
10242
10424
  var _ref = _async_to_generator$5(function(event) {
10243
- var _input_current, input;
10425
+ var _inputRef_current;
10244
10426
  return _ts_generator$5(this, function(_state) {
10245
10427
  switch (_state.label) {
10246
10428
  case 0:
@@ -10250,114 +10432,195 @@
10250
10432
  ];
10251
10433
  case 1:
10252
10434
  _state.sent();
10253
- input = ref !== null && ref !== void 0 ? ref : inputRef;
10254
- (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus();
10435
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10255
10436
  return [
10256
10437
  2
10257
10438
  ];
10258
10439
  }
10259
10440
  });
10260
10441
  });
10261
- return function handleOnInputClear2(event) {
10442
+ return function handleInputClear2(event) {
10262
10443
  return _ref.apply(this, arguments);
10263
10444
  };
10264
10445
  }();
10265
- var hasFocus = isFocused || isActive;
10266
- var hasClearIcon = isClearable && value.length > 0;
10267
- var hasControls = hasClearIcon || iconType !== void 0 || isLoading;
10268
- var hasValue = value !== void 0 && value !== "";
10269
- var hasUnits = units !== void 0 && units !== "";
10270
- var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
10271
- var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder;
10272
- var hasPlaceholder = (!hasLabel || isLabelActive) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
10273
- var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
10446
+ var unitsRef = React.useCallback(function(node) {
10447
+ setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
10448
+ }, [
10449
+ units
10450
+ ]);
10274
10451
  var _obj2;
10275
- var props = _object_spread_props$I(_object_spread$P({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), {
10276
- 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)),
10277
- onFocus: handleFocus,
10278
- onBlur: handleBlur,
10279
- onChange: handleChange,
10452
+ var props = _object_spread$Q({
10453
+ 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, trueReactPlatformHelpers.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)),
10454
+ style: hasUnits && hasValue ? {
10455
+ "--units-width": "".concat(unitsWidth, "px")
10456
+ } : void 0,
10280
10457
  value,
10281
10458
  type,
10459
+ autoComplete,
10460
+ inputMode,
10282
10461
  disabled: isDisabled,
10283
10462
  placeholder: hasPlaceholder ? placeholder : void 0,
10284
- autoFocus: shouldFocusOnMount,
10463
+ name,
10464
+ maxLength,
10285
10465
  readOnly: isReadonly,
10286
- size: isAutoSizeable ? defaultSize : void 0
10466
+ tabIndex,
10467
+ onKeyDown,
10468
+ onPaste,
10469
+ onFocus: handleFocus,
10470
+ onBlur: handleBlur,
10471
+ onChange: handleChange
10472
+ }, trueReactPlatformHelpers.addDataTestId(testId, "input"));
10473
+ React.useEffect(function() {
10474
+ if (shouldFocusOnMount) {
10475
+ var _inputRef_current;
10476
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10477
+ }
10478
+ }, []);
10479
+ var inputContent = /* @__PURE__ */ jsxs(Fragment, {
10480
+ children: [
10481
+ trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
10482
+ ref: mergedRef,
10483
+ mask,
10484
+ maskPlaceholder,
10485
+ alwaysShowMask,
10486
+ beforeMaskedStateChange
10487
+ }, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
10488
+ ref: mergedRef
10489
+ }, props)),
10490
+ (hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
10491
+ className: classes.fakeValue,
10492
+ children: value
10493
+ }),
10494
+ hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
10495
+ className: classes.units,
10496
+ ref: unitsRef,
10497
+ children: units
10498
+ })
10499
+ ]
10500
+ });
10501
+ return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
10502
+ label,
10503
+ isDisabled,
10504
+ isFocused: hasFocus,
10505
+ isInvalid,
10506
+ hasValue: hasValue || hasPlaceholder,
10507
+ isFullWidth: !isAutoSized,
10508
+ tweakStyles: tweakControlWrapperStyles,
10509
+ onClear: isClearable && hasValue ? handleInputClear : void 0
10510
+ }, controlProps), {
10511
+ children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
10512
+ className: classes.autoSizeWrapper,
10513
+ children: inputContent
10514
+ }) : inputContent
10515
+ }));
10516
+ });
10517
+ function _define_property$R(obj, key, value) {
10518
+ if (key in obj) {
10519
+ Object.defineProperty(obj, key, {
10520
+ value,
10521
+ enumerable: true,
10522
+ configurable: true,
10523
+ writable: true
10524
+ });
10525
+ } else {
10526
+ obj[key] = value;
10527
+ }
10528
+ return obj;
10529
+ }
10530
+ function _object_spread$P(target) {
10531
+ for (var i = 1; i < arguments.length; i++) {
10532
+ var source = arguments[i] != null ? arguments[i] : {};
10533
+ var ownKeys2 = Object.keys(source);
10534
+ if (typeof Object.getOwnPropertySymbols === "function") {
10535
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10536
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
10537
+ }));
10538
+ }
10539
+ ownKeys2.forEach(function(key) {
10540
+ _define_property$R(target, key, source[key]);
10541
+ });
10542
+ }
10543
+ return target;
10544
+ }
10545
+ function ownKeys$I(object, enumerableOnly) {
10546
+ var keys2 = Object.keys(object);
10547
+ if (Object.getOwnPropertySymbols) {
10548
+ var symbols = Object.getOwnPropertySymbols(object);
10549
+ if (enumerableOnly) {
10550
+ symbols = symbols.filter(function(sym) {
10551
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10552
+ });
10553
+ }
10554
+ keys2.push.apply(keys2, symbols);
10555
+ }
10556
+ return keys2;
10557
+ }
10558
+ function _object_spread_props$I(target, source) {
10559
+ source = source != null ? source : {};
10560
+ if (Object.getOwnPropertyDescriptors) {
10561
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10562
+ } else {
10563
+ ownKeys$I(Object(source)).forEach(function(key) {
10564
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10565
+ });
10566
+ }
10567
+ return target;
10568
+ }
10569
+ function _object_without_properties$h(source, excluded) {
10570
+ if (source == null)
10571
+ return {};
10572
+ var target = _object_without_properties_loose$h(source, excluded);
10573
+ var key, i;
10574
+ if (Object.getOwnPropertySymbols) {
10575
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
10576
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
10577
+ key = sourceSymbolKeys[i];
10578
+ if (excluded.indexOf(key) >= 0)
10579
+ continue;
10580
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
10581
+ continue;
10582
+ target[key] = source[key];
10583
+ }
10584
+ }
10585
+ return target;
10586
+ }
10587
+ function _object_without_properties_loose$h(source, excluded) {
10588
+ if (source == null)
10589
+ return {};
10590
+ var target = {};
10591
+ var sourceKeys = Object.keys(source);
10592
+ var key, i;
10593
+ for (i = 0; i < sourceKeys.length; i++) {
10594
+ key = sourceKeys[i];
10595
+ if (excluded.indexOf(key) >= 0)
10596
+ continue;
10597
+ target[key] = source[key];
10598
+ }
10599
+ return target;
10600
+ }
10601
+ var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10602
+ var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
10603
+ "infoMessage",
10604
+ "errorMessage",
10605
+ "isInvalid",
10606
+ "testId",
10607
+ "tweakStyles"
10608
+ ]);
10609
+ var tweakWithMessagesStyles = useTweakStyles({
10610
+ tweakStyles,
10611
+ className: "tweakWithMessages"
10287
10612
  });
10288
- var _obj1, _obj22;
10289
- return /* @__PURE__ */ jsxs("div", {
10290
- className: classes.root,
10291
- children: [
10292
- /* @__PURE__ */ jsxs("div", _object_spread_props$I(_object_spread$P({
10293
- 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)]),
10294
- "data-value": isAutoSizeable ? value : void 0
10295
- }, addDataAttributes(data)), {
10296
- children: [
10297
- mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$P({
10298
- ref: ref !== null && ref !== void 0 ? ref : inputRef
10299
- }, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$P({
10300
- ref: ref !== null && ref !== void 0 ? ref : inputRef,
10301
- mask,
10302
- maskPlaceholder,
10303
- alwaysShowMask,
10304
- beforeMaskedStateChange
10305
- }, props)),
10306
- hasLabel && /* @__PURE__ */ jsx("span", {
10307
- 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), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
10308
- _define_property$R(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)),
10309
- children: label
10310
- }),
10311
- shouldShowUnits && /* @__PURE__ */ jsxs("div", {
10312
- className: clsx(classes.unitsWrapper, _define_property$R({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
10313
- children: [
10314
- /* @__PURE__ */ jsx("span", {
10315
- className: classes.fakeValue,
10316
- children: value
10317
- }),
10318
- /* @__PURE__ */ jsx("span", {
10319
- className: classes.units,
10320
- children: units
10321
- })
10322
- ]
10323
- }),
10324
- hasControls && /* @__PURE__ */ jsxs("div", {
10325
- className: classes.controls,
10326
- children: [
10327
- isLoading && /* @__PURE__ */ jsx("div", {
10328
- className: clsx(classes.inputIcon, classes.loading),
10329
- children: /* @__PURE__ */ jsx(ThemedPreloader, {
10330
- tweakStyles: tweakPreloaderStyles
10331
- })
10332
- }),
10333
- !isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", {
10334
- className: clsx(classes.clearIcon, classes.activeIcon),
10335
- onMouseDown: function(event) {
10336
- return event.preventDefault();
10337
- },
10338
- onClick: handleOnInputClear,
10339
- children: /* @__PURE__ */ jsx(Icon, {
10340
- type: "close"
10341
- })
10342
- }),
10343
- trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
10344
- className: clsx(classes.inputIcon, _define_property$R({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
10345
- onClick: !isDisabled ? onIconClick : void 0,
10346
- children: renderIcon(iconType)
10347
- })
10348
- ]
10349
- })
10350
- ]
10351
- })),
10352
- trueReactPlatformHelpers.isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", {
10353
- className: classes.info,
10354
- children: infoMessage
10355
- }),
10356
- trueReactPlatformHelpers.isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", {
10357
- className: clsx(classes.error, classes["error-".concat(errorPosition)]),
10358
- children: errorMessage
10359
- })
10360
- ]
10613
+ return /* @__PURE__ */ jsx(WithMessages, {
10614
+ errorMessage,
10615
+ infoMessage,
10616
+ testId,
10617
+ tweakStyles: tweakWithMessagesStyles,
10618
+ children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
10619
+ ref,
10620
+ testId,
10621
+ tweakStyles,
10622
+ isInvalid
10623
+ }))
10361
10624
  });
10362
10625
  });
10363
10626
  var EMPTY_DATE_INPUT_VALUE = "__.__.____";
@@ -10422,10 +10685,10 @@
10422
10685
  }
10423
10686
  return target;
10424
10687
  }
10425
- function _object_without_properties$f(source, excluded) {
10688
+ function _object_without_properties$g(source, excluded) {
10426
10689
  if (source == null)
10427
10690
  return {};
10428
- var target = _object_without_properties_loose$f(source, excluded);
10691
+ var target = _object_without_properties_loose$g(source, excluded);
10429
10692
  var key, i;
10430
10693
  if (Object.getOwnPropertySymbols) {
10431
10694
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10440,7 +10703,7 @@
10440
10703
  }
10441
10704
  return target;
10442
10705
  }
10443
- function _object_without_properties_loose$f(source, excluded) {
10706
+ function _object_without_properties_loose$g(source, excluded) {
10444
10707
  if (source == null)
10445
10708
  return {};
10446
10709
  var target = {};
@@ -10455,7 +10718,7 @@
10455
10718
  return target;
10456
10719
  }
10457
10720
  var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10458
- 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, [
10721
+ 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, [
10459
10722
  "date",
10460
10723
  "startDate",
10461
10724
  "endDate",
@@ -10511,7 +10774,7 @@
10511
10774
  }));
10512
10775
  });
10513
10776
  const reactDatepicker = "";
10514
- var LEFT_PADDING = 44;
10777
+ var Z_INDEX$1 = dimensions.Z_INDEX;
10515
10778
  var useStyles$F = createThemedStyles("SearchInput", {
10516
10779
  root: {
10517
10780
  position: "relative"
@@ -10523,33 +10786,26 @@
10523
10786
  left: 12,
10524
10787
  height: "100%",
10525
10788
  width: 20,
10526
- zIndex: 2,
10527
- color: colors.GREY_ACTIVE
10528
- },
10529
- iconClickable: {
10530
- cursor: "pointer"
10789
+ color: colors.GREY_ACTIVE,
10790
+ zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
10531
10791
  }
10532
10792
  });
10533
10793
  var inputStyles$4 = {
10534
- inputWrapper: {
10535
- height: 35,
10536
- borderColor: "transparent",
10537
- backgroundColor: rgba(colors.BORDER_MAIN, 0.3),
10538
- borderRadius: 18,
10539
- paddingLeft: LEFT_PADDING,
10540
- transitionProperty: "background-color, border-color"
10541
- },
10542
- focused: {
10543
- backgroundColor: colors.CLASSIC_WHITE,
10544
- borderColor: colors.BORDER_MAIN
10794
+ tweakControlWrapper: {
10795
+ controlWrapper: {
10796
+ borderColor: "transparent",
10797
+ borderRadius: 18,
10798
+ paddingLeft: 0,
10799
+ transitionProperty: "background-color, border-color"
10800
+ },
10801
+ focused: {
10802
+ backgroundColor: colors.CLASSIC_WHITE,
10803
+ borderColor: colors.BORDER_MAIN
10804
+ }
10545
10805
  },
10546
- input: {
10806
+ inputContent: {
10547
10807
  fontSize: 14,
10548
- paddingLeft: 0
10549
- },
10550
- label: {
10551
- left: LEFT_PADDING,
10552
- fontSize: 14
10808
+ paddingLeft: 44
10553
10809
  }
10554
10810
  };
10555
10811
  function _define_property$P(obj, key, value) {
@@ -10604,10 +10860,10 @@
10604
10860
  }
10605
10861
  return target;
10606
10862
  }
10607
- function _object_without_properties$e(source, excluded) {
10863
+ function _object_without_properties$f(source, excluded) {
10608
10864
  if (source == null)
10609
10865
  return {};
10610
- var target = _object_without_properties_loose$e(source, excluded);
10866
+ var target = _object_without_properties_loose$f(source, excluded);
10611
10867
  var key, i;
10612
10868
  if (Object.getOwnPropertySymbols) {
10613
10869
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10622,7 +10878,7 @@
10622
10878
  }
10623
10879
  return target;
10624
10880
  }
10625
- function _object_without_properties_loose$e(source, excluded) {
10881
+ function _object_without_properties_loose$f(source, excluded) {
10626
10882
  if (source == null)
10627
10883
  return {};
10628
10884
  var target = {};
@@ -10637,12 +10893,13 @@
10637
10893
  return target;
10638
10894
  }
10639
10895
  var SearchInput = function(_param) {
10640
- 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, [
10896
+ 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, [
10641
10897
  "isClearable",
10642
10898
  "tweakStyles",
10899
+ "placeholder",
10900
+ "value",
10643
10901
  "testId",
10644
- "data",
10645
- "onSearchIconClick"
10902
+ "data"
10646
10903
  ]);
10647
10904
  var classes = useStyles$F({
10648
10905
  theme: tweakStyles
@@ -10655,23 +10912,20 @@
10655
10912
  });
10656
10913
  return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
10657
10914
  className: classes.root
10658
- }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
10915
+ }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
10659
10916
  children: [
10660
- /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$N({
10661
- className: clsx(classes.icon, _define_property$P({}, classes.iconClickable, trueReactPlatformHelpers.isNotEmpty(onSearchIconClick)))
10662
- }, trueReactPlatformHelpers.addClickHandler(onSearchIconClick)), {
10917
+ /* @__PURE__ */ jsx("div", {
10918
+ className: classes.icon,
10663
10919
  children: /* @__PURE__ */ jsx(Icon, {
10664
10920
  type: "search"
10665
10921
  })
10666
- })),
10922
+ }),
10667
10923
  /* @__PURE__ */ jsx(Input, _object_spread$N({
10668
- inputMode: "search",
10924
+ value,
10925
+ placeholder,
10669
10926
  isClearable,
10670
- isActive: props.value !== "" && props.value !== void 0,
10671
10927
  testId: trueReactPlatformHelpers.getTestId(testId, "input"),
10672
- tweakStyles: tweakInputStyles,
10673
- hasFloatingLabel: false,
10674
- label: props.placeholder
10928
+ tweakStyles: tweakInputStyles
10675
10929
  }, props))
10676
10930
  ]
10677
10931
  }));
@@ -10761,10 +11015,10 @@
10761
11015
  }
10762
11016
  return target;
10763
11017
  }
10764
- function _object_without_properties$d(source, excluded) {
11018
+ function _object_without_properties$e(source, excluded) {
10765
11019
  if (source == null)
10766
11020
  return {};
10767
- var target = _object_without_properties_loose$d(source, excluded);
11021
+ var target = _object_without_properties_loose$e(source, excluded);
10768
11022
  var key, i;
10769
11023
  if (Object.getOwnPropertySymbols) {
10770
11024
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10779,7 +11033,7 @@
10779
11033
  }
10780
11034
  return target;
10781
11035
  }
10782
- function _object_without_properties_loose$d(source, excluded) {
11036
+ function _object_without_properties_loose$e(source, excluded) {
10783
11037
  if (source == null)
10784
11038
  return {};
10785
11039
  var target = {};
@@ -10882,7 +11136,7 @@
10882
11136
  _this_props.active;
10883
11137
  var elementType = _this_props.elementType, children = _this_props.children;
10884
11138
  _this_props.options;
10885
- var wrapperProps = _object_without_properties$d(_this_props, [
11139
+ var wrapperProps = _object_without_properties$e(_this_props, [
10886
11140
  "active",
10887
11141
  "elementType",
10888
11142
  "children",
@@ -11244,6 +11498,7 @@
11244
11498
  return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
11245
11499
  };
11246
11500
  };
11501
+ var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
11247
11502
  var useStyles$D = createThemedStyles("Select", {
11248
11503
  root: {
11249
11504
  width: "100%",
@@ -11263,7 +11518,8 @@
11263
11518
  },
11264
11519
  withoutPopper: {
11265
11520
  position: "absolute",
11266
- top: "calc(var(--dropdown-offset, 100%) + 6px)"
11521
+ top: "100%",
11522
+ paddingTop: 4
11267
11523
  },
11268
11524
  listWrapperInBody: {
11269
11525
  minWidth: "auto",
@@ -11273,16 +11529,17 @@
11273
11529
  arrow: {
11274
11530
  position: "absolute",
11275
11531
  right: 12,
11276
- top: 14,
11532
+ top: "50%",
11277
11533
  width: 20,
11278
11534
  height: 20,
11279
11535
  cursor: "pointer",
11280
- zIndex: 1,
11536
+ transform: "translateY(-50%)",
11281
11537
  transition: animations.defaultTransition,
11282
- transitionProperty: "transform"
11538
+ transitionProperty: "transform",
11539
+ zIndex: Z_INDEX.CONTROL_FOCUS + 1
11283
11540
  },
11284
11541
  activeArrow: {
11285
- transform: "rotate(180deg)"
11542
+ transform: "translateY(-50%) rotate(180deg)"
11286
11543
  },
11287
11544
  disabled: {
11288
11545
  "& $arrow": {
@@ -11295,21 +11552,32 @@
11295
11552
  }
11296
11553
  },
11297
11554
  icon: {
11298
- width: 16,
11299
- height: 16
11555
+ width: CONTROL.ICON_INNER_SIZE,
11556
+ height: CONTROL.ICON_INNER_SIZE
11557
+ },
11558
+ iconWrapper: {
11559
+ display: "flex",
11560
+ alignItems: "center"
11300
11561
  }
11301
11562
  });
11302
11563
  var baseInputStyles = {
11303
- input: {
11564
+ inputContent: {
11304
11565
  paddingRight: 32
11305
11566
  },
11306
- disabled: {
11307
- "& $input": {
11308
- cursor: "default"
11567
+ input: {
11568
+ "&[readonly]": {
11569
+ cursor: "pointer"
11309
11570
  }
11310
11571
  },
11311
- controls: {
11312
- paddingRight: 32
11572
+ tweakControlWrapper: {
11573
+ controls: {
11574
+ paddingRight: 40
11575
+ },
11576
+ icon: {
11577
+ "&:last-child": {
11578
+ paddingRight: 0
11579
+ }
11580
+ }
11313
11581
  }
11314
11582
  };
11315
11583
  var readonlyInputBaseStyles = {
@@ -11317,16 +11585,8 @@
11317
11585
  cursor: "pointer"
11318
11586
  }
11319
11587
  };
11320
- var multiSelectInputBaseStyles = {
11321
- inputIcon: {
11322
- "&:not($loading)": {
11323
- width: "auto"
11324
- }
11325
- }
11326
- };
11327
11588
  var readonlyInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11328
- var multiSelectInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, multiSelectInputBaseStyles);
11329
- var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
11589
+ var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11330
11590
  var getInputStyles = function(param) {
11331
11591
  var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
11332
11592
  if (hasReadonlyInput && isMultiSelect) {
@@ -11335,21 +11595,8 @@
11335
11595
  if (hasReadonlyInput && !isMultiSelect) {
11336
11596
  return readonlyInputStyles;
11337
11597
  }
11338
- if (!hasReadonlyInput && isMultiSelect) {
11339
- return multiSelectInputStyles;
11340
- }
11341
11598
  return baseInputStyles;
11342
11599
  };
11343
- var searchInputStyles$3 = {
11344
- tweakInput: {
11345
- inputWrapper: {
11346
- height: 48,
11347
- borderRadius: 0,
11348
- border: "none",
11349
- backgroundColor: "transparent"
11350
- }
11351
- }
11352
- };
11353
11600
  function _array_like_to_array$i(arr, len) {
11354
11601
  if (len == null || len > arr.length)
11355
11602
  len = arr.length;
@@ -11484,10 +11731,10 @@
11484
11731
  }
11485
11732
  return target;
11486
11733
  }
11487
- function _object_without_properties$c(source, excluded) {
11734
+ function _object_without_properties$d(source, excluded) {
11488
11735
  if (source == null)
11489
11736
  return {};
11490
- var target = _object_without_properties_loose$c(source, excluded);
11737
+ var target = _object_without_properties_loose$d(source, excluded);
11491
11738
  var key, i;
11492
11739
  if (Object.getOwnPropertySymbols) {
11493
11740
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -11502,7 +11749,7 @@
11502
11749
  }
11503
11750
  return target;
11504
11751
  }
11505
- function _object_without_properties_loose$c(source, excluded) {
11752
+ function _object_without_properties_loose$d(source, excluded) {
11506
11753
  if (source == null)
11507
11754
  return {};
11508
11755
  var target = {};
@@ -11639,7 +11886,7 @@
11639
11886
  }
11640
11887
  function Select(props) {
11641
11888
  var _input_current;
11642
- 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, [
11889
+ 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, [
11643
11890
  "options",
11644
11891
  "isMultiSelect",
11645
11892
  "value",
@@ -11661,7 +11908,7 @@
11661
11908
  "dropdownIcon",
11662
11909
  "shouldScrollToList",
11663
11910
  "searchInput",
11664
- "iconType",
11911
+ "icon",
11665
11912
  "onChange",
11666
11913
  "onFocus",
11667
11914
  "onBlur",
@@ -11672,16 +11919,23 @@
11672
11919
  "convertValueToString",
11673
11920
  "convertValueToId",
11674
11921
  "convertValueToReactNode",
11675
- "optionsFilter"
11922
+ "optionsFilter",
11923
+ "infoMessage",
11924
+ "errorMessage"
11676
11925
  ]);
11677
11926
  var classes = useStyles$D({
11678
11927
  theme: tweakStyles
11679
11928
  });
11680
- var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$c(_ref, [
11929
+ var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
11681
11930
  "shouldRenderInList"
11682
11931
  ]);
11683
11932
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11684
11933
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11934
+ var tweakWithMessagesStyles = useTweakStyles({
11935
+ tweakStyles,
11936
+ className: "tweakWithMessages",
11937
+ currentComponentName: "Select"
11938
+ });
11685
11939
  var tweakInputStyles = useTweakStyles({
11686
11940
  innerStyles: getInputStyles({
11687
11941
  hasReadonlyInput,
@@ -11692,7 +11946,6 @@
11692
11946
  currentComponentName: "Select"
11693
11947
  });
11694
11948
  var tweakSearchInputStyles = useTweakStyles({
11695
- innerStyles: searchInputStyles$3,
11696
11949
  tweakStyles,
11697
11950
  className: "tweakSearchInput",
11698
11951
  currentComponentName: "Select"
@@ -11772,22 +12025,10 @@
11772
12025
  convertValueToId,
11773
12026
  convertValueToString
11774
12027
  ]);
11775
- var getDropdownOffset = function() {
11776
- var _input_current_parentElement2;
11777
- if (trueReactPlatformHelpers.isEmpty(input.current) || inputProps.errorPosition === "top") {
11778
- return 0;
11779
- }
11780
- var _input_current_parentElement_offsetHeight;
11781
- 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;
11782
- };
11783
12028
  var closeList = React.useCallback(function() {
11784
12029
  setIsListOpen(false);
11785
12030
  setSearchValue("");
11786
12031
  setShouldShowDefaultOption(true);
11787
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11788
- var _root_current;
11789
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
11790
- }
11791
12032
  }, [
11792
12033
  dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
11793
12034
  ]);
@@ -11799,15 +12040,8 @@
11799
12040
  onBlur
11800
12041
  ]);
11801
12042
  var handleListOpen = function() {
11802
- if (isReadonly) {
11803
- return;
11804
- }
11805
- if (!isListOpen) {
12043
+ if (!isReadonly && !isListOpen) {
11806
12044
  setIsListOpen(true);
11807
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
11808
- var _root_current;
11809
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
11810
- }
11811
12045
  }
11812
12046
  };
11813
12047
  var handleFocus = function(event) {
@@ -12086,7 +12320,8 @@
12086
12320
  onToggleCheckbox: handleToggleOptionCheckbox
12087
12321
  })
12088
12322
  }));
12089
- var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, {
12323
+ var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
12324
+ className: classes.iconWrapper,
12090
12325
  children: [
12091
12326
  shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
12092
12327
  className: classes.counter,
@@ -12096,59 +12331,62 @@
12096
12331
  ")"
12097
12332
  ]
12098
12333
  }),
12099
- trueReactPlatformHelpers.isNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
12334
+ trueReactPlatformHelpers.isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
12100
12335
  className: classes.icon,
12101
- children: renderIcon(iconType)
12336
+ children: renderIcon(icon)
12102
12337
  })
12103
12338
  ]
12104
12339
  }) : void 0;
12105
- return /* @__PURE__ */ jsxs("div", {
12106
- className: classes.root,
12107
- onKeyDown: handleKeyDown,
12108
- ref: root2,
12109
- children: [
12110
- /* @__PURE__ */ jsxs("div", {
12111
- className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12112
- onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12113
- ref: inputWrapper,
12114
- children: [
12115
- /* @__PURE__ */ jsx(Input, _object_spread$I({
12116
- value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
12117
- onChange: handleInputChange,
12118
- isActive: isListOpen || isActive,
12119
- isReadonly: hasReadonlyInput,
12120
- onFocus: handleFocus,
12121
- onBlur: handleBlur,
12122
- isDisabled,
12123
- ref: input,
12124
- isLoading: areOptionsLoading,
12125
- tweakStyles: tweakInputStyles,
12126
- testId,
12127
- iconType: isMultiSelect ? multiSelectCounterWithIcon : iconType
12128
- }, inputProps)),
12129
- /* @__PURE__ */ jsx("div", {
12130
- onMouseDown: function(event) {
12131
- event.preventDefault();
12132
- },
12133
- onClick: onArrowClick,
12134
- className: clsx(classes.arrow, isOpen && classes.activeArrow),
12135
- children: renderIcon(dropdownIcon)
12340
+ return /* @__PURE__ */ jsx(WithMessages, {
12341
+ errorMessage,
12342
+ infoMessage,
12343
+ tweakStyles: tweakWithMessagesStyles,
12344
+ children: /* @__PURE__ */ jsxs("div", {
12345
+ className: classes.root,
12346
+ onKeyDown: handleKeyDown,
12347
+ ref: root2,
12348
+ children: [
12349
+ /* @__PURE__ */ jsxs("div", {
12350
+ className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12351
+ onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12352
+ ref: inputWrapper,
12353
+ children: [
12354
+ /* @__PURE__ */ jsx(InputBase, _object_spread$I({
12355
+ value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
12356
+ onChange: handleInputChange,
12357
+ isActive: isListOpen || isActive,
12358
+ isReadonly: hasReadonlyInput,
12359
+ onFocus: handleFocus,
12360
+ onBlur: handleBlur,
12361
+ isDisabled,
12362
+ ref: input,
12363
+ isLoading: areOptionsLoading,
12364
+ tweakStyles: tweakInputStyles,
12365
+ testId,
12366
+ icon: isMultiSelect ? multiSelectCounterWithIcon : icon
12367
+ }, inputProps)),
12368
+ /* @__PURE__ */ jsx("div", {
12369
+ onMouseDown: function(event) {
12370
+ event.preventDefault();
12371
+ },
12372
+ onClick: onArrowClick,
12373
+ className: clsx(classes.arrow, isOpen && classes.activeArrow),
12374
+ children: renderIcon(dropdownIcon)
12375
+ })
12376
+ ]
12377
+ }),
12378
+ shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
12379
+ container: shouldRenderInBody ? document.body : inputWrapper.current,
12380
+ children: /* @__PURE__ */ jsx(Fragment, {
12381
+ children: listEl
12136
12382
  })
12137
- ]
12138
- }),
12139
- shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
12140
- container: shouldRenderInBody ? document.body : inputWrapper.current,
12141
- children: /* @__PURE__ */ jsx(Fragment, {
12142
- children: listEl
12383
+ }) : /* @__PURE__ */ jsx(Fragment, {
12384
+ children: isOpen && listEl
12143
12385
  })
12144
- }) : /* @__PURE__ */ jsx(Fragment, {
12145
- children: isOpen && listEl
12146
- })
12147
- ]
12386
+ ]
12387
+ })
12148
12388
  });
12149
12389
  }
12150
- var SELECT_PADDING_LEFT = 12;
12151
- var SELECT_PADDING_RIGHT = 24;
12152
12390
  var useStyles$C = createThemedStyles("DatePickerHeader", {
12153
12391
  btn: {
12154
12392
  width: 36,
@@ -12160,26 +12398,6 @@
12160
12398
  cursor: "pointer",
12161
12399
  marginLeft: 8
12162
12400
  },
12163
- select: {
12164
- height: 35,
12165
- fontSize: 16,
12166
- position: "relative"
12167
- },
12168
- selectValue: {
12169
- fontSize: 16,
12170
- fontWeight: "bold",
12171
- color: "transparent",
12172
- pointerEvents: "none",
12173
- paddingLeft: SELECT_PADDING_LEFT,
12174
- paddingRight: SELECT_PADDING_RIGHT
12175
- },
12176
- selectControl: {
12177
- position: "absolute",
12178
- top: 0,
12179
- left: 0,
12180
- width: "100%",
12181
- height: "100%"
12182
- },
12183
12401
  header: {
12184
12402
  margin: 6,
12185
12403
  display: "flex",
@@ -12197,22 +12415,16 @@
12197
12415
  minHeight: 35
12198
12416
  }
12199
12417
  },
12200
- arrow: {
12201
- right: 0,
12202
- top: 9,
12203
- width: 16,
12204
- height: 16
12205
- },
12206
12418
  tweakInput: {
12207
- inputWrapper: {
12208
- height: 35,
12209
- border: "none"
12419
+ tweakControlWrapper: {
12420
+ controlWrapper: {
12421
+ "--control-height": "35px",
12422
+ border: "none"
12423
+ }
12210
12424
  },
12211
- input: {
12425
+ inputContent: {
12212
12426
  fontSize: 16,
12213
- fontWeight: "bold",
12214
- paddingRight: SELECT_PADDING_RIGHT - 8,
12215
- paddingLeft: SELECT_PADDING_LEFT
12427
+ fontWeight: "bold"
12216
12428
  }
12217
12429
  }
12218
12430
  };
@@ -12235,47 +12447,25 @@
12235
12447
  return /* @__PURE__ */ jsxs("div", {
12236
12448
  className: classes.header,
12237
12449
  children: [
12238
- /* @__PURE__ */ jsxs("div", {
12239
- className: classes.select,
12240
- children: [
12241
- /* @__PURE__ */ jsx("div", {
12242
- className: classes.selectValue,
12243
- children: months[dateFns.getMonth(date)]
12244
- }),
12245
- /* @__PURE__ */ jsx("div", {
12246
- className: classes.selectControl,
12247
- children: /* @__PURE__ */ jsx(Select, {
12248
- value: months[dateFns.getMonth(date)],
12249
- options: months,
12250
- dropdownIcon: "chevron-down-small",
12251
- tweakStyles: tweakSelectStyles,
12252
- onChange: function(value) {
12253
- return changeMonth(months.indexOf(value));
12254
- }
12255
- })
12256
- })
12257
- ]
12450
+ /* @__PURE__ */ jsx(Select, {
12451
+ value: months[dateFns.getMonth(date)],
12452
+ options: months,
12453
+ dropdownIcon: "chevron-down-small",
12454
+ isAutoSized: true,
12455
+ tweakStyles: tweakSelectStyles,
12456
+ onChange: function(value) {
12457
+ return changeMonth(months.indexOf(value));
12458
+ }
12258
12459
  }),
12259
- /* @__PURE__ */ jsxs("div", {
12260
- className: classes.select,
12261
- children: [
12262
- /* @__PURE__ */ jsx("div", {
12263
- className: classes.selectValue,
12264
- children: dateFns.getYear(date)
12265
- }),
12266
- /* @__PURE__ */ jsx("div", {
12267
- className: classes.selectControl,
12268
- children: /* @__PURE__ */ jsx(Select, {
12269
- value: dateFns.getYear(date),
12270
- options: years,
12271
- dropdownIcon: "chevron-down-small",
12272
- tweakStyles: tweakSelectStyles,
12273
- onChange: function(value) {
12274
- return changeYear(value);
12275
- }
12276
- })
12277
- })
12278
- ]
12460
+ /* @__PURE__ */ jsx(Select, {
12461
+ value: dateFns.getYear(date),
12462
+ options: years,
12463
+ dropdownIcon: "chevron-down-small",
12464
+ isAutoSized: true,
12465
+ tweakStyles: tweakSelectStyles,
12466
+ onChange: function(value) {
12467
+ return changeYear(value);
12468
+ }
12279
12469
  }),
12280
12470
  /* @__PURE__ */ jsxs("div", {
12281
12471
  className: classes.buttons,
@@ -12444,10 +12634,10 @@
12444
12634
  }
12445
12635
  return target;
12446
12636
  }
12447
- function _object_without_properties$b(source, excluded) {
12637
+ function _object_without_properties$c(source, excluded) {
12448
12638
  if (source == null)
12449
12639
  return {};
12450
- var target = _object_without_properties_loose$b(source, excluded);
12640
+ var target = _object_without_properties_loose$c(source, excluded);
12451
12641
  var key, i;
12452
12642
  if (Object.getOwnPropertySymbols) {
12453
12643
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -12462,7 +12652,7 @@
12462
12652
  }
12463
12653
  return target;
12464
12654
  }
12465
- function _object_without_properties_loose$b(source, excluded) {
12655
+ function _object_without_properties_loose$c(source, excluded) {
12466
12656
  if (source == null)
12467
12657
  return {};
12468
12658
  var target = {};
@@ -12493,7 +12683,7 @@
12493
12683
  return _array_like_to_array$h(o, minLen);
12494
12684
  }
12495
12685
  var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
12496
- 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, [
12686
+ 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, [
12497
12687
  "data",
12498
12688
  "selectedDate",
12499
12689
  "minDate",
@@ -12569,7 +12759,7 @@
12569
12759
  isDisabled,
12570
12760
  isClearable,
12571
12761
  isActive: isOpen,
12572
- iconType: isClearable && hasDateInputValue ? void 0 : "calendar",
12762
+ icon: isClearable && hasDateInputValue ? void 0 : "calendar",
12573
12763
  tweakStyles: tweakDateInputStyles
12574
12764
  }), isRange ? {
12575
12765
  startDate: startDateValue,
@@ -13311,10 +13501,10 @@
13311
13501
  }
13312
13502
  return target;
13313
13503
  }
13314
- function _object_without_properties$a(source, excluded) {
13504
+ function _object_without_properties$b(source, excluded) {
13315
13505
  if (source == null)
13316
13506
  return {};
13317
- var target = _object_without_properties_loose$a(source, excluded);
13507
+ var target = _object_without_properties_loose$b(source, excluded);
13318
13508
  var key, i;
13319
13509
  if (Object.getOwnPropertySymbols) {
13320
13510
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -13329,7 +13519,7 @@
13329
13519
  }
13330
13520
  return target;
13331
13521
  }
13332
- function _object_without_properties_loose$a(source, excluded) {
13522
+ function _object_without_properties_loose$b(source, excluded) {
13333
13523
  if (source == null)
13334
13524
  return {};
13335
13525
  var target = {};
@@ -13344,7 +13534,7 @@
13344
13534
  return target;
13345
13535
  }
13346
13536
  var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
13347
- 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$a(_param, [
13537
+ 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, [
13348
13538
  "icon",
13349
13539
  "size",
13350
13540
  "view",
@@ -14268,10 +14458,10 @@
14268
14458
  }
14269
14459
  return target;
14270
14460
  }
14271
- function _object_without_properties$9(source, excluded) {
14461
+ function _object_without_properties$a(source, excluded) {
14272
14462
  if (source == null)
14273
14463
  return {};
14274
- var target = _object_without_properties_loose$9(source, excluded);
14464
+ var target = _object_without_properties_loose$a(source, excluded);
14275
14465
  var key, i;
14276
14466
  if (Object.getOwnPropertySymbols) {
14277
14467
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -14286,7 +14476,7 @@
14286
14476
  }
14287
14477
  return target;
14288
14478
  }
14289
- function _object_without_properties_loose$9(source, excluded) {
14479
+ function _object_without_properties_loose$a(source, excluded) {
14290
14480
  if (source == null)
14291
14481
  return {};
14292
14482
  var target = {};
@@ -14419,7 +14609,7 @@
14419
14609
  }
14420
14610
  }
14421
14611
  var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
14422
- 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, [
14612
+ 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, [
14423
14613
  "value",
14424
14614
  "canBeFloat",
14425
14615
  "canBeNegative",
@@ -14900,11 +15090,13 @@
14900
15090
  input: {
14901
15091
  minWidth: 120
14902
15092
  },
14903
- icon: {
14904
- padding: 0,
14905
- width: 24,
14906
- "&:last-child": {
14907
- paddingRight: 0
15093
+ tweakControlWrapper: {
15094
+ icon: {
15095
+ padding: 0,
15096
+ width: 24,
15097
+ "&:last-child": {
15098
+ paddingRight: 0
15099
+ }
14908
15100
  }
14909
15101
  }
14910
15102
  };
@@ -15020,7 +15212,6 @@
15020
15212
  onChange: handleFromChange,
15021
15213
  value: value === null || value === void 0 ? void 0 : value[0],
15022
15214
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
15023
- border: "bottom",
15024
15215
  canBeFloat,
15025
15216
  isClearable: true,
15026
15217
  min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
@@ -15045,7 +15236,6 @@
15045
15236
  onChange: handleToChange,
15046
15237
  value: value === null || value === void 0 ? void 0 : value[1],
15047
15238
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
15048
- border: "bottom",
15049
15239
  canBeFloat,
15050
15240
  isClearable: true,
15051
15241
  min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
@@ -15220,10 +15410,12 @@
15220
15410
  });
15221
15411
  var searchInputStyles$2 = {
15222
15412
  tweakInput: {
15223
- inputWrapper: {
15224
- backgroundColor: "transparent",
15225
- border: "none",
15226
- height: 40
15413
+ tweakControlWrapper: {
15414
+ controlWrapper: {
15415
+ "--control-height": "40px",
15416
+ backgroundColor: "transparent",
15417
+ border: "none"
15418
+ }
15227
15419
  }
15228
15420
  }
15229
15421
  };
@@ -16178,10 +16370,12 @@
16178
16370
  });
16179
16371
  var searchInputStyles$1 = {
16180
16372
  tweakInput: {
16181
- inputWrapper: {
16182
- backgroundColor: "transparent",
16183
- border: "none",
16184
- height: 40
16373
+ tweakControlWrapper: {
16374
+ controlWrapper: {
16375
+ "--control-height": "40px",
16376
+ backgroundColor: "transparent",
16377
+ border: "none"
16378
+ }
16185
16379
  }
16186
16380
  }
16187
16381
  };
@@ -18203,7 +18397,6 @@
18203
18397
  locale: dateLocale,
18204
18398
  onChangeDate: handleChangeFrom,
18205
18399
  tweakStyles: tweakStartDatePickerStyles,
18206
- border: "bottom",
18207
18400
  testId: trueReactPlatformHelpers.getTestId(testId, "from"),
18208
18401
  isClearable
18209
18402
  }, startPickerProps))
@@ -18218,7 +18411,6 @@
18218
18411
  locale: dateLocale,
18219
18412
  onChangeDate: handleChangeTo,
18220
18413
  tweakStyles: tweakEndDatePickerStyles,
18221
- border: "bottom",
18222
18414
  testId: trueReactPlatformHelpers.getTestId(testId, "to"),
18223
18415
  isClearable
18224
18416
  }, endPickerProps))
@@ -18765,16 +18957,17 @@
18765
18957
  });
18766
18958
  var searchInputStyles = {
18767
18959
  tweakInput: {
18768
- inputWrapper: {
18769
- backgroundColor: "transparent",
18770
- border: "none",
18771
- height: FILTER_HEIGHT - 2,
18772
- fontSize: 14,
18773
- minWidth: 140
18774
- },
18775
- focused: {
18776
- backgroundColor: "transparent",
18777
- border: "none"
18960
+ tweakControlWrapper: {
18961
+ controlWrapper: {
18962
+ "--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
18963
+ backgroundColor: "transparent",
18964
+ border: "none",
18965
+ minWidth: 140
18966
+ },
18967
+ focused: {
18968
+ backgroundColor: "transparent",
18969
+ border: "none"
18970
+ }
18778
18971
  }
18779
18972
  }
18780
18973
  };
@@ -18898,7 +19091,7 @@
18898
19091
  return _array_like_to_array$8(o, minLen);
18899
19092
  }
18900
19093
  function FiltersPaneSearch(param) {
18901
- 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;
19094
+ 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;
18902
19095
  var classes = useStyles$o({
18903
19096
  theme: tweakStyles
18904
19097
  });
@@ -18964,7 +19157,6 @@
18964
19157
  },
18965
19158
  testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
18966
19159
  maxLength,
18967
- isAutoSizeable,
18968
19160
  isDisabled
18969
19161
  }),
18970
19162
  /* @__PURE__ */ jsxs("div", {
@@ -26048,10 +26240,10 @@
26048
26240
  }
26049
26241
  return target;
26050
26242
  }
26051
- function _object_without_properties$8(source, excluded) {
26243
+ function _object_without_properties$9(source, excluded) {
26052
26244
  if (source == null)
26053
26245
  return {};
26054
- var target = _object_without_properties_loose$8(source, excluded);
26246
+ var target = _object_without_properties_loose$9(source, excluded);
26055
26247
  var key, i;
26056
26248
  if (Object.getOwnPropertySymbols) {
26057
26249
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26066,7 +26258,7 @@
26066
26258
  }
26067
26259
  return target;
26068
26260
  }
26069
- function _object_without_properties_loose$8(source, excluded) {
26261
+ function _object_without_properties_loose$9(source, excluded) {
26070
26262
  if (source == null)
26071
26263
  return {};
26072
26264
  var target = {};
@@ -26081,7 +26273,7 @@
26081
26273
  return target;
26082
26274
  }
26083
26275
  function FlexibleTableCell(_param) {
26084
- 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, [
26276
+ 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, [
26085
26277
  "row",
26086
26278
  "columnName",
26087
26279
  "config",
@@ -26424,10 +26616,10 @@
26424
26616
  }
26425
26617
  return target;
26426
26618
  }
26427
- function _object_without_properties$7(source, excluded) {
26619
+ function _object_without_properties$8(source, excluded) {
26428
26620
  if (source == null)
26429
26621
  return {};
26430
- var target = _object_without_properties_loose$7(source, excluded);
26622
+ var target = _object_without_properties_loose$8(source, excluded);
26431
26623
  var key, i;
26432
26624
  if (Object.getOwnPropertySymbols) {
26433
26625
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26442,7 +26634,7 @@
26442
26634
  }
26443
26635
  return target;
26444
26636
  }
26445
- function _object_without_properties_loose$7(source, excluded) {
26637
+ function _object_without_properties_loose$8(source, excluded) {
26446
26638
  if (source == null)
26447
26639
  return {};
26448
26640
  var target = {};
@@ -26457,7 +26649,7 @@
26457
26649
  return target;
26458
26650
  }
26459
26651
  function FlexibleTable(_param) {
26460
- 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, [
26652
+ 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, [
26461
26653
  "content",
26462
26654
  "headerContent",
26463
26655
  "config",
@@ -26690,11 +26882,11 @@
26690
26882
  right: BUTTONS_GAP,
26691
26883
  top: BUTTONS_GAP,
26692
26884
  bottom: BUTTONS_GAP,
26693
- zIndex: 1
26885
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
26694
26886
  },
26695
26887
  button: {
26696
26888
  width: "100%",
26697
- height: (dimensions.CONTROL_HEIGHT - 5) / 2,
26889
+ height: (dimensions.CONTROL.HEIGHT - 5) / 2,
26698
26890
  border: "none",
26699
26891
  outline: "none",
26700
26892
  backgroundColor: colors.GREY_BACKGROUND,
@@ -26731,12 +26923,12 @@
26731
26923
  });
26732
26924
  var inputStyles$2 = {
26733
26925
  input: {
26734
- "&:not($withControls)": {
26926
+ paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26927
+ },
26928
+ tweakControlWrapper: {
26929
+ controls: {
26735
26930
  paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26736
26931
  }
26737
- },
26738
- controls: {
26739
- paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26740
26932
  }
26741
26933
  };
26742
26934
  function _define_property$k(obj, key, value) {
@@ -26791,10 +26983,10 @@
26791
26983
  }
26792
26984
  return target;
26793
26985
  }
26794
- function _object_without_properties$6(source, excluded) {
26986
+ function _object_without_properties$7(source, excluded) {
26795
26987
  if (source == null)
26796
26988
  return {};
26797
- var target = _object_without_properties_loose$6(source, excluded);
26989
+ var target = _object_without_properties_loose$7(source, excluded);
26798
26990
  var key, i;
26799
26991
  if (Object.getOwnPropertySymbols) {
26800
26992
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26809,7 +27001,7 @@
26809
27001
  }
26810
27002
  return target;
26811
27003
  }
26812
- function _object_without_properties_loose$6(source, excluded) {
27004
+ function _object_without_properties_loose$7(source, excluded) {
26813
27005
  if (source == null)
26814
27006
  return {};
26815
27007
  var target = {};
@@ -26824,7 +27016,7 @@
26824
27016
  return target;
26825
27017
  }
26826
27018
  var IncrementInput = function(_param) {
26827
- 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, [
27019
+ 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, [
26828
27020
  "value",
26829
27021
  "onChange",
26830
27022
  "min",
@@ -27272,10 +27464,10 @@
27272
27464
  }
27273
27465
  return target;
27274
27466
  }
27275
- function _object_without_properties$5(source, excluded) {
27467
+ function _object_without_properties$6(source, excluded) {
27276
27468
  if (source == null)
27277
27469
  return {};
27278
- var target = _object_without_properties_loose$5(source, excluded);
27470
+ var target = _object_without_properties_loose$6(source, excluded);
27279
27471
  var key, i;
27280
27472
  if (Object.getOwnPropertySymbols) {
27281
27473
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -27290,7 +27482,7 @@
27290
27482
  }
27291
27483
  return target;
27292
27484
  }
27293
- function _object_without_properties_loose$5(source, excluded) {
27485
+ function _object_without_properties_loose$6(source, excluded) {
27294
27486
  if (source == null)
27295
27487
  return {};
27296
27488
  var target = {};
@@ -27321,7 +27513,7 @@
27321
27513
  return _array_like_to_array$6(o, minLen);
27322
27514
  }
27323
27515
  var Modal = function(_param) {
27324
- 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$5(_param, [
27516
+ 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, [
27325
27517
  "data",
27326
27518
  "tweakStyles",
27327
27519
  "title",
@@ -28166,7 +28358,7 @@
28166
28358
  },
28167
28359
  searchContainer: {
28168
28360
  width: "100%",
28169
- height: dimensions.CONTROL_HEIGHT,
28361
+ height: dimensions.CONTROL.HEIGHT,
28170
28362
  display: "flex",
28171
28363
  alignItems: "center",
28172
28364
  boxSizing: "border-box",
@@ -28247,9 +28439,11 @@
28247
28439
  }
28248
28440
  });
28249
28441
  var inputStyles$1 = {
28250
- inputWrapper: {
28251
- border: "none",
28252
- height: "calc(var(--control-height) - 2px)"
28442
+ tweakControlWrapper: {
28443
+ controlWrapper: {
28444
+ border: "none",
28445
+ height: "calc(var(--control-height) - 2px)"
28446
+ }
28253
28447
  },
28254
28448
  input: {
28255
28449
  fontSize: 14,
@@ -28463,14 +28657,15 @@
28463
28657
  root: {
28464
28658
  width: "100%",
28465
28659
  position: "relative",
28466
- boxSizing: "border-box"
28660
+ boxSizing: "border-box",
28661
+ zIndex: 0
28467
28662
  },
28468
28663
  countrySelectContainer: {
28469
28664
  position: "absolute",
28470
28665
  left: 1,
28471
28666
  top: 1,
28472
28667
  width: COUNTRY_SELECT_WIDTH,
28473
- height: dimensions.CONTROL_HEIGHT - 2,
28668
+ height: dimensions.CONTROL.HEIGHT - 2,
28474
28669
  display: "flex",
28475
28670
  alignItems: "center",
28476
28671
  justifyContent: "center",
@@ -28481,7 +28676,7 @@
28481
28676
  ],
28482
28677
  transition: "border-color 0.2s ease-in",
28483
28678
  cursor: "pointer",
28484
- zIndex: 2
28679
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
28485
28680
  },
28486
28681
  disabledCountrySelect: {
28487
28682
  cursor: "default"
@@ -28513,17 +28708,19 @@
28513
28708
  flagListContainer: {
28514
28709
  position: "absolute",
28515
28710
  width: "100%",
28516
- top: dimensions.CONTROL_HEIGHT + 6,
28711
+ top: dimensions.CONTROL.HEIGHT + 6,
28517
28712
  left: -1,
28518
28713
  zIndex: 3
28519
28714
  }
28520
28715
  });
28521
28716
  var inputStyles = {
28522
- inputWrapper: {
28523
- paddingLeft: COUNTRY_SELECT_WIDTH
28524
- },
28525
- label: {
28526
- marginLeft: COUNTRY_SELECT_WIDTH
28717
+ tweakControlWrapper: {
28718
+ controlWrapper: {
28719
+ paddingLeft: COUNTRY_SELECT_WIDTH
28720
+ },
28721
+ label: {
28722
+ marginLeft: COUNTRY_SELECT_WIDTH
28723
+ }
28527
28724
  }
28528
28725
  };
28529
28726
  function _array_like_to_array$2(arr, len) {
@@ -28620,10 +28817,10 @@
28620
28817
  }
28621
28818
  return target;
28622
28819
  }
28623
- function _object_without_properties$4(source, excluded) {
28820
+ function _object_without_properties$5(source, excluded) {
28624
28821
  if (source == null)
28625
28822
  return {};
28626
- var target = _object_without_properties_loose$4(source, excluded);
28823
+ var target = _object_without_properties_loose$5(source, excluded);
28627
28824
  var key, i;
28628
28825
  if (Object.getOwnPropertySymbols) {
28629
28826
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -28638,7 +28835,7 @@
28638
28835
  }
28639
28836
  return target;
28640
28837
  }
28641
- function _object_without_properties_loose$4(source, excluded) {
28838
+ function _object_without_properties_loose$5(source, excluded) {
28642
28839
  if (source == null)
28643
28840
  return {};
28644
28841
  var target = {};
@@ -28669,7 +28866,7 @@
28669
28866
  return _array_like_to_array$2(o, minLen);
28670
28867
  }
28671
28868
  var PhoneInput = function(_param) {
28672
- 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, [
28869
+ 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, [
28673
28870
  "locale",
28674
28871
  "value",
28675
28872
  "onChange",
@@ -29498,10 +29695,10 @@
29498
29695
  }
29499
29696
  return target;
29500
29697
  }
29501
- function _object_without_properties$3(source, excluded) {
29698
+ function _object_without_properties$4(source, excluded) {
29502
29699
  if (source == null)
29503
29700
  return {};
29504
- var target = _object_without_properties_loose$3(source, excluded);
29701
+ var target = _object_without_properties_loose$4(source, excluded);
29505
29702
  var key, i;
29506
29703
  if (Object.getOwnPropertySymbols) {
29507
29704
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29516,7 +29713,7 @@
29516
29713
  }
29517
29714
  return target;
29518
29715
  }
29519
- function _object_without_properties_loose$3(source, excluded) {
29716
+ function _object_without_properties_loose$4(source, excluded) {
29520
29717
  if (source == null)
29521
29718
  return {};
29522
29719
  var target = {};
@@ -29633,7 +29830,7 @@
29633
29830
  }
29634
29831
  }
29635
29832
  var SmartInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
29636
- 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, [
29833
+ 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, [
29637
29834
  "value",
29638
29835
  "smartType",
29639
29836
  "regExp",
@@ -30138,49 +30335,28 @@
30138
30335
  }
30139
30336
  return target;
30140
30337
  }
30141
- var PADDING_X = 12;
30142
30338
  var useStyles$4 = createThemedStyles("TextArea", {
30143
- root: {
30144
- width: "100%",
30145
- height: "100%",
30146
- display: "flex",
30147
- flexDirection: "column"
30148
- },
30149
- wrapper: {
30150
- display: "flex",
30151
- position: "relative",
30152
- width: "100%",
30153
- flexGrow: 1,
30154
- boxSizing: "border-box",
30155
- transition: animations.defaultTransition,
30156
- transitionProperty: "border-color",
30157
- backgroundColor: "white",
30158
- border: [
30159
- "solid",
30160
- 1,
30161
- "lightgray"
30162
- ]
30163
- },
30164
30339
  textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
30165
30340
  width: "100%",
30166
30341
  height: "100%",
30167
- outline: "none",
30168
- outlineStyle: "none",
30169
30342
  fontFamily: "inherit",
30170
30343
  fontSize: 16,
30171
30344
  padding: [
30172
30345
  14,
30173
- PADDING_X,
30174
- 8
30346
+ 0,
30347
+ 8,
30348
+ "var(--control-padding)"
30175
30349
  ],
30176
- scrollPadding: "14px 0 8px",
30350
+ scrollPadding: "14px 0 8px var(--control-padding)",
30351
+ scrollbarGutter: "stable",
30352
+ boxSizing: "border-box",
30353
+ outline: "none",
30354
+ outlineStyle: "none",
30177
30355
  transition: animations.defaultTransition,
30178
30356
  transitionProperty: "background-color",
30179
30357
  border: "none",
30180
30358
  resize: "none",
30181
- "&:disabled": {
30182
- extend: "disabled"
30183
- },
30359
+ background: "transparent",
30184
30360
  "&::placeholder": {
30185
30361
  opacity: 1
30186
30362
  },
@@ -30190,107 +30366,41 @@
30190
30366
  margin: 0
30191
30367
  }
30192
30368
  }),
30193
- autosize: {
30194
- display: "inline-grid",
30369
+ wrapper: {
30370
+ width: "100%"
30371
+ },
30372
+ autoSized: {
30373
+ display: "grid",
30195
30374
  gridTemplateRows: "minmax(0, 100%)",
30196
30375
  "& > $textarea, &::after": {
30197
- gridArea: "1 / 1 / 2 / 2"
30376
+ gridArea: "1 / 1"
30198
30377
  },
30199
30378
  "&::after": {
30200
30379
  extend: "textarea",
30201
30380
  content: 'attr(data-value) " "',
30381
+ // Без пробела ломается!
30202
30382
  overflowWrap: "break-word",
30203
30383
  whiteSpace: "pre-wrap",
30204
- visibility: "hidden",
30205
- scrollbarGutter: "stable"
30206
- }
30207
- },
30208
- focused: {
30209
- position: "relative",
30210
- zIndex: 1
30211
- },
30212
- withFloatingLabel: {
30213
- "& $textarea, &::after": {
30214
- paddingTop: 24,
30215
- scrollPaddingTop: "24px"
30216
- }
30217
- },
30218
- floating: {},
30219
- activeLabel: {
30220
- display: "none",
30221
- "&$floating": {
30222
- display: "block",
30223
- transform: "scale(0.75) translateY(-120%)"
30224
- }
30225
- },
30226
- required: {
30227
- "&:before": {
30228
- content: '""',
30229
- position: "absolute",
30230
- left: -12,
30231
- top: 20,
30232
- width: 6,
30233
- height: 6,
30234
- borderRadius: "50%",
30235
- backgroundColor: "red"
30236
- }
30237
- },
30238
- disabled: {},
30239
- label: {
30240
- position: "absolute",
30241
- pointerEvents: "none",
30242
- left: PADDING_X,
30243
- top: PADDING_X * 2,
30244
- transformOrigin: "top left",
30245
- transform: "translateY(-50%)",
30246
- transition: animations.defaultTransition,
30247
- transitionProperty: "transform, color",
30248
- fontSize: 16
30249
- },
30250
- invalid: {
30251
- borderColor: "red"
30252
- },
30253
- invalidLabel: {},
30254
- error: {
30255
- fontSize: 12,
30256
- paddingTop: 4,
30257
- paddingLeft: 13,
30258
- color: "red"
30259
- },
30260
- requiredLabel: {
30261
- "&:after": {
30262
- content: '""',
30263
- position: "absolute",
30264
- right: -8,
30265
- top: 4,
30266
- transform: "translate(0, -50%)",
30267
- width: 6,
30268
- height: 6,
30269
- borderRadius: "50%",
30270
- backgroundColor: "red"
30384
+ visibility: "hidden"
30271
30385
  }
30272
30386
  },
30273
30387
  symbolsCount: {
30274
- display: "block",
30275
30388
  textAlign: "right",
30276
30389
  marginTop: 4,
30277
30390
  fontSize: 12,
30278
30391
  marginLeft: "auto",
30279
- paddingLeft: 32,
30280
- whiteSpace: "nowrap"
30392
+ whiteSpace: "nowrap",
30393
+ pointerEvents: "none"
30281
30394
  },
30282
30395
  symbolsCountError: {
30283
30396
  color: "red"
30284
- },
30285
- footer: {
30286
- display: "flex"
30287
- },
30288
- info: {
30289
- fontSize: 12,
30290
- paddingTop: 4,
30291
- paddingLeft: 13
30292
30397
  }
30293
30398
  });
30399
+ var controlWrapperStyles = {
30400
+ label: {
30401
+ top: 16
30402
+ }
30403
+ };
30294
30404
  function _array_like_to_array(arr, len) {
30295
30405
  if (len == null || len > arr.length)
30296
30406
  len = arr.length;
@@ -30385,6 +30495,38 @@
30385
30495
  }
30386
30496
  return target;
30387
30497
  }
30498
+ function _object_without_properties$3(source, excluded) {
30499
+ if (source == null)
30500
+ return {};
30501
+ var target = _object_without_properties_loose$3(source, excluded);
30502
+ var key, i;
30503
+ if (Object.getOwnPropertySymbols) {
30504
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
30505
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
30506
+ key = sourceSymbolKeys[i];
30507
+ if (excluded.indexOf(key) >= 0)
30508
+ continue;
30509
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
30510
+ continue;
30511
+ target[key] = source[key];
30512
+ }
30513
+ }
30514
+ return target;
30515
+ }
30516
+ function _object_without_properties_loose$3(source, excluded) {
30517
+ if (source == null)
30518
+ return {};
30519
+ var target = {};
30520
+ var sourceKeys = Object.keys(source);
30521
+ var key, i;
30522
+ for (i = 0; i < sourceKeys.length; i++) {
30523
+ key = sourceKeys[i];
30524
+ if (excluded.indexOf(key) >= 0)
30525
+ continue;
30526
+ target[key] = source[key];
30527
+ }
30528
+ return target;
30529
+ }
30388
30530
  function _sliced_to_array(arr, i) {
30389
30531
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
30390
30532
  }
@@ -30402,93 +30544,108 @@
30402
30544
  return _array_like_to_array(o, minLen);
30403
30545
  }
30404
30546
  var DEFAULT_VALUE = "";
30405
- var TextArea = /* @__PURE__ */ React.forwardRef(function(param, ref) {
30406
- 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;
30547
+ var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
30548
+ 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;
30549
+ _param.shouldFocusOnMount;
30550
+ 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, [
30551
+ "value",
30552
+ "label",
30553
+ "placeholder",
30554
+ "infoMessage",
30555
+ "errorMessage",
30556
+ "name",
30557
+ "shouldFocusOnMount",
30558
+ "hasCounter",
30559
+ "shouldTrimAfterMaxLength",
30560
+ "isAutoSized",
30561
+ "shouldAlwaysShowPlaceholder",
30562
+ "isDisabled",
30563
+ "isActive",
30564
+ "maxLength",
30565
+ "rows",
30566
+ "data",
30567
+ "testId",
30568
+ "tweakStyles",
30569
+ "onChange",
30570
+ "onPaste",
30571
+ "onFocus",
30572
+ "onBlur"
30573
+ ]);
30407
30574
  var classes = useStyles$4({
30408
30575
  theme: tweakStyles
30409
30576
  });
30577
+ var tweakWithMessagesStyles = useTweakStyles({
30578
+ tweakStyles,
30579
+ className: "tweakWithMessages",
30580
+ currentComponentName: "TextArea"
30581
+ });
30582
+ var tweakControlWrapperStyles = useTweakStyles({
30583
+ innerStyles: controlWrapperStyles,
30584
+ tweakStyles,
30585
+ className: "tweakControlWrapper",
30586
+ currentComponentName: "TextArea"
30587
+ });
30410
30588
  var _useState = _sliced_to_array(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
30411
- var handleOnChange = function(event) {
30412
- var rawValue = event.currentTarget.value;
30413
- var newValue = shouldTrimAfterMaxLength && maxLength !== void 0 ? trimStringToMaxLength(rawValue, maxLength) : rawValue;
30414
- onChange(newValue, event);
30589
+ var hasFocus = isFocused || isActive;
30590
+ var hasValue = value !== void 0 && value !== "";
30591
+ var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
30592
+ var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
30593
+ var handleChange = function(event) {
30594
+ onChange(event.currentTarget.value, event);
30415
30595
  };
30416
- var handleOnFocus = function(event) {
30596
+ var handleFocus = function(event) {
30417
30597
  setFocused(true);
30418
- if (onFocus !== void 0) {
30419
- onFocus(event);
30420
- }
30598
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
30421
30599
  };
30422
- var handleOnBlur = function(event) {
30600
+ var handleBlur = function(event) {
30423
30601
  setFocused(false);
30424
- if (onBlur !== void 0) {
30425
- onBlur(event);
30426
- }
30602
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
30427
30603
  };
30428
- var hasFocus = isFocused || isActive;
30429
- var hasValue = value !== void 0 && value !== "";
30430
- var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
30431
- var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
30432
- var props = _object_spread$5({
30433
- className: classes.textarea,
30434
- onFocus: handleOnFocus,
30435
- onBlur: handleOnBlur,
30436
- onChange: handleOnChange,
30437
- value,
30438
- onPaste,
30439
- disabled: isDisabled,
30440
- placeholder: hasPlaceholder ? placeholder : void 0,
30441
- name,
30442
- autoFocus: shouldFocusOnMount,
30443
- rows
30444
- }, trueReactPlatformHelpers.addDataTestId(testId));
30445
- var hasInfoMessage = trueReactPlatformHelpers.isStringNotEmpty(infoMessage);
30446
- var hasErrorMessage = trueReactPlatformHelpers.isStringNotEmpty(errorMessage);
30447
- var _obj2, _obj1;
30448
- return /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
30449
- className: classes.root
30450
- }, addDataAttributes(data)), {
30604
+ return /* @__PURE__ */ jsxs(WithMessages, {
30605
+ errorMessage,
30606
+ infoMessage,
30607
+ tweakStyles: tweakWithMessagesStyles,
30451
30608
  children: [
30452
- /* @__PURE__ */ jsxs("div", {
30453
- 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)),
30454
- "data-value": isAutoSizeable ? value : void 0,
30455
- children: [
30456
- hasLabel && /* @__PURE__ */ jsx("span", {
30457
- 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)),
30458
- children: label
30459
- }),
30460
- /* @__PURE__ */ jsx("textarea", _object_spread$5({
30461
- ref
30462
- }, props))
30463
- ]
30464
- }),
30465
- /* @__PURE__ */ jsxs("div", {
30466
- className: classes.footer,
30609
+ /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
30610
+ label,
30611
+ tweakStyles: tweakControlWrapperStyles,
30612
+ isFocused: hasFocus,
30613
+ isDisabled,
30614
+ hasValue,
30615
+ isFullWidth: true,
30616
+ testId
30617
+ }, controlProps), {
30618
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
30619
+ className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
30620
+ }, isAutoSized && {
30621
+ "data-value": value
30622
+ }), {
30623
+ children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
30624
+ ref,
30625
+ className: classes.textarea,
30626
+ value,
30627
+ disabled: isDisabled,
30628
+ placeholder: hasPlaceholder ? placeholder : void 0,
30629
+ maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
30630
+ name,
30631
+ rows,
30632
+ onPaste,
30633
+ onFocus: handleFocus,
30634
+ onBlur: handleBlur,
30635
+ onChange: handleChange
30636
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId, "control")))
30637
+ }))
30638
+ })),
30639
+ hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
30640
+ className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
30467
30641
  children: [
30468
- hasInfoMessage && /* @__PURE__ */ jsx("div", {
30469
- className: classes.info,
30470
- children: infoMessage
30471
- }),
30472
- !hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
30473
- className: classes.error,
30474
- children: errorMessage
30475
- }),
30476
- hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
30477
- className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
30478
- children: [
30479
- value.length,
30480
- " / ",
30481
- maxLength
30482
- ]
30483
- })
30642
+ value.length,
30643
+ " / ",
30644
+ maxLength
30484
30645
  ]
30485
- }),
30486
- hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
30487
- className: classes.error,
30488
- children: errorMessage
30489
30646
  })
30490
30647
  ]
30491
- }));
30648
+ });
30492
30649
  });
30493
30650
  var useStyles$3 = createThemedStyles("TextButton", {
30494
30651
  root: {
@@ -31197,11 +31354,6 @@
31197
31354
  }
31198
31355
  }));
31199
31356
  };
31200
- var withPopupStyles = {
31201
- popup: {
31202
- zIndex: 9999
31203
- }
31204
- };
31205
31357
  function _define_property(obj, key, value) {
31206
31358
  if (key in obj) {
31207
31359
  Object.defineProperty(obj, key, {
@@ -31287,7 +31439,7 @@
31287
31439
  return target;
31288
31440
  }
31289
31441
  var WithTooltip = function(_param) {
31290
- 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, [
31442
+ 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, [
31291
31443
  "children",
31292
31444
  "eventType",
31293
31445
  "placement",
@@ -31295,29 +31447,22 @@
31295
31447
  "tooltipView",
31296
31448
  "tooltipType",
31297
31449
  "isDisabled",
31298
- "popupData",
31299
31450
  "tweakStyles"
31300
31451
  ]);
31301
31452
  var tweakWithPopupStyles = useTweakStyles({
31302
- innerStyles: withPopupStyles,
31303
31453
  tweakStyles,
31304
- className: "tweakWithPopup",
31305
- currentComponentName: "WithTooltip"
31454
+ className: "tweakWithPopup"
31306
31455
  });
31307
31456
  var tweakTooltipStyles = useTweakStyles({
31308
31457
  tweakStyles,
31309
- className: "tweakTooltip",
31310
- currentComponentName: "WithTooltip"
31458
+ className: "tweakTooltip"
31311
31459
  });
31312
31460
  return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
31313
31461
  trigger: children,
31314
31462
  placement,
31315
31463
  eventType,
31316
- popupData: _object_spread_props(_object_spread({}, popupData), {
31317
- tooltipView
31318
- }),
31319
- isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
31320
31464
  isTriggerWrapped: true,
31465
+ isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
31321
31466
  tweakStyles: tweakWithPopupStyles
31322
31467
  }, restProps), {
31323
31468
  children: /* @__PURE__ */ jsx(Tooltip, {
@@ -31335,6 +31480,7 @@
31335
31480
  exports2.Checkbox = Checkbox;
31336
31481
  exports2.CloseButton = CloseButton;
31337
31482
  exports2.Colors = Colors;
31483
+ exports2.ControlWrapper = ControlWrapper;
31338
31484
  exports2.CssBaseline = CssBaseline;
31339
31485
  exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
31340
31486
  exports2.DateInput = DateInput;
@@ -31360,6 +31506,7 @@
31360
31506
  exports2.IconButton = IconButton;
31361
31507
  exports2.IncrementInput = IncrementInput;
31362
31508
  exports2.Input = Input;
31509
+ exports2.InputBase = InputBase;
31363
31510
  exports2.List = List;
31364
31511
  exports2.ListItem = ListItem;
31365
31512
  exports2.Modal = Modal;
@@ -31389,6 +31536,7 @@
31389
31536
  exports2.ThemedPreloader = ThemedPreloader;
31390
31537
  exports2.Toaster = Toaster;
31391
31538
  exports2.Tooltip = Tooltip;
31539
+ exports2.WithMessages = WithMessages;
31392
31540
  exports2.WithPopup = WithPopup;
31393
31541
  exports2.WithTooltip = WithTooltip;
31394
31542
  exports2.addDataAttributes = addDataAttributes;