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

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/ControlGroup/ControlGroup.d.ts +10 -0
  31. package/dist/components/ControlGroup/ControlGroup.stories.d.ts +7 -0
  32. package/dist/components/ControlGroup/ControlGroup.styles.d.ts +3 -0
  33. package/dist/components/ControlGroup/index.d.ts +2 -0
  34. package/dist/components/ControlWrapper/ControlWrapper.d.ts +27 -0
  35. package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
  36. package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
  37. package/dist/components/ControlWrapper/index.d.ts +2 -0
  38. package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
  39. package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
  40. package/dist/components/CssBaseline/index.d.ts +2 -2
  41. package/dist/components/DateInput/DateInput.d.ts +17 -17
  42. package/dist/components/DateInput/DateInput.stories.d.ts +7 -7
  43. package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
  44. package/dist/components/DateInput/constants.d.ts +2 -2
  45. package/dist/components/DateInput/index.d.ts +3 -3
  46. package/dist/components/DatePicker/DatePicker.d.ts +26 -26
  47. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -7
  48. package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
  49. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
  50. package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
  51. package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
  52. package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
  53. package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
  54. package/dist/components/DatePicker/components/index.d.ts +2 -2
  55. package/dist/components/DatePicker/constants.d.ts +3 -3
  56. package/dist/components/DatePicker/helpers.d.ts +3 -3
  57. package/dist/components/DatePicker/index.d.ts +4 -4
  58. package/dist/components/DatePicker/types.d.ts +4 -4
  59. package/dist/components/Description/Description.d.ts +13 -13
  60. package/dist/components/Description/Description.stories.d.ts +16 -16
  61. package/dist/components/Description/Description.styles.d.ts +3 -3
  62. package/dist/components/Description/constants.d.ts +1 -1
  63. package/dist/components/Description/index.d.ts +2 -2
  64. package/dist/components/FileInput/FileInput.d.ts +25 -25
  65. package/dist/components/FileInput/FileInput.stories.d.ts +7 -7
  66. package/dist/components/FileInput/FileInput.styles.d.ts +3 -3
  67. package/dist/components/FileInput/helpers.d.ts +2 -2
  68. package/dist/components/FileInput/index.d.ts +2 -2
  69. package/dist/components/FileItem/FileItem.d.ts +31 -31
  70. package/dist/components/FileItem/FileItem.stories.d.ts +8 -8
  71. package/dist/components/FileItem/FileItem.styles.d.ts +11 -11
  72. package/dist/components/FileItem/constants.d.ts +5 -5
  73. package/dist/components/FileItem/helpers.d.ts +4 -4
  74. package/dist/components/FileItem/index.d.ts +4 -4
  75. package/dist/components/FileItem/types.d.ts +8 -8
  76. package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
  77. package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -32
  78. package/dist/components/FiltersPane/FiltersPane.styles.d.ts +11 -11
  79. package/dist/components/FiltersPane/components/Filter/Filter.d.ts +7 -7
  80. package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
  81. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
  82. package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
  83. package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
  84. package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
  85. package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
  86. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +30 -30
  87. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
  88. package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
  89. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
  90. package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
  91. package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
  92. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
  93. package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
  94. package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
  95. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
  96. package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
  97. package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
  98. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +13 -13
  99. package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +8 -8
  100. package/dist/components/FiltersPane/components/FilterWrapper/helpers.d.ts +1 -1
  101. package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
  102. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +20 -21
  103. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
  104. package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
  105. package/dist/components/FiltersPane/components/index.d.ts +9 -9
  106. package/dist/components/FiltersPane/constants.d.ts +9 -9
  107. package/dist/components/FiltersPane/helpers.d.ts +5 -5
  108. package/dist/components/FiltersPane/index.d.ts +4 -4
  109. package/dist/components/FiltersPane/types.d.ts +108 -108
  110. package/dist/components/Flag/Flag.d.ts +8 -8
  111. package/dist/components/Flag/Flag.stories.d.ts +12 -12
  112. package/dist/components/Flag/Flag.styles.d.ts +3 -3
  113. package/dist/components/Flag/index.d.ts +2 -2
  114. package/dist/components/FlexibleTable/FlexibleTable.d.ts +31 -31
  115. package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +19 -19
  116. package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
  117. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
  118. package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
  119. package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
  120. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +31 -31
  121. package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
  122. package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
  123. package/dist/components/FlexibleTable/components/index.d.ts +2 -2
  124. package/dist/components/FlexibleTable/constants.d.ts +3 -3
  125. package/dist/components/FlexibleTable/helpers.d.ts +3 -3
  126. package/dist/components/FlexibleTable/index.d.ts +4 -4
  127. package/dist/components/FlexibleTable/types.d.ts +57 -57
  128. package/dist/components/Icon/Icon.d.ts +8 -8
  129. package/dist/components/Icon/Icon.stories.d.ts +6 -6
  130. package/dist/components/Icon/Icon.styles.d.ts +3 -3
  131. package/dist/components/Icon/complexIcons/icons.d.ts +10 -10
  132. package/dist/components/Icon/complexIcons/index.d.ts +1 -1
  133. package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
  134. package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
  135. package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
  136. package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
  137. package/dist/components/Icon/components/index.d.ts +2 -2
  138. package/dist/components/Icon/helpers.d.ts +6 -6
  139. package/dist/components/Icon/icons-list.d.ts +1 -1
  140. package/dist/components/Icon/index.d.ts +5 -5
  141. package/dist/components/Icon/snippet.d.ts +3 -3
  142. package/dist/components/Icon/types.d.ts +13 -13
  143. package/dist/components/IconButton/IconButton.d.ts +19 -19
  144. package/dist/components/IconButton/IconButton.stories.d.ts +6 -6
  145. package/dist/components/IconButton/IconButton.styles.d.ts +3 -3
  146. package/dist/components/IconButton/constants.d.ts +2 -2
  147. package/dist/components/IconButton/index.d.ts +3 -3
  148. package/dist/components/IconButton/types.d.ts +5 -5
  149. package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
  150. package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -6
  151. package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
  152. package/dist/components/IncrementInput/index.d.ts +2 -2
  153. package/dist/components/Input/Input.d.ts +5 -52
  154. package/dist/components/Input/Input.stories.d.ts +25 -34
  155. package/dist/components/Input/Input.styles.d.ts +8 -7
  156. package/dist/components/Input/InputBase.d.ts +24 -0
  157. package/dist/components/Input/index.d.ts +4 -3
  158. package/dist/components/Input/types.d.ts +3 -4
  159. package/dist/components/List/List.d.ts +9 -9
  160. package/dist/components/List/List.stories.d.ts +5 -5
  161. package/dist/components/List/List.styles.d.ts +5 -5
  162. package/dist/components/List/components/ListItem/ListItem.d.ts +17 -17
  163. package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
  164. package/dist/components/List/components/ListItem/index.d.ts +2 -2
  165. package/dist/components/List/components/index.d.ts +1 -1
  166. package/dist/components/List/index.d.ts +3 -3
  167. package/dist/components/Modal/Modal.d.ts +34 -34
  168. package/dist/components/Modal/Modal.stories.d.ts +29 -29
  169. package/dist/components/Modal/Modal.styles.d.ts +7 -7
  170. package/dist/components/Modal/index.d.ts +3 -3
  171. package/dist/components/Modal/types.d.ts +3 -3
  172. package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
  173. package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -6
  174. package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
  175. package/dist/components/MoreMenu/index.d.ts +2 -2
  176. package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
  177. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -13
  178. package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
  179. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
  180. package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
  181. package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
  182. package/dist/components/MultiSelect/components/index.d.ts +1 -1
  183. package/dist/components/MultiSelect/index.d.ts +4 -4
  184. package/dist/components/MultiSelect/types.d.ts +1 -1
  185. package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
  186. package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
  187. package/dist/components/MultiSelectList/constants.d.ts +3 -3
  188. package/dist/components/MultiSelectList/helpers.d.ts +3 -3
  189. package/dist/components/MultiSelectList/index.d.ts +3 -3
  190. package/dist/components/MultiSelectList/types.d.ts +12 -12
  191. package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +13 -13
  192. package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -12
  193. package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
  194. package/dist/components/NewMoreMenu/index.d.ts +2 -2
  195. package/dist/components/Notification/Notification.d.ts +17 -17
  196. package/dist/components/Notification/Notification.stories.d.ts +8 -8
  197. package/dist/components/Notification/Notification.styles.d.ts +3 -3
  198. package/dist/components/Notification/index.d.ts +3 -3
  199. package/dist/components/Notification/types.d.ts +1 -1
  200. package/dist/components/NumberInput/NumberInput.d.ts +18 -18
  201. package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -7
  202. package/dist/components/NumberInput/helpers.d.ts +4 -4
  203. package/dist/components/NumberInput/index.d.ts +1 -1
  204. package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
  205. package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -28
  206. package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
  207. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +14 -13
  208. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -5
  209. package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
  210. package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
  211. package/dist/components/PhoneInput/components/index.d.ts +1 -1
  212. package/dist/components/PhoneInput/constants.d.ts +2 -2
  213. package/dist/components/PhoneInput/index.d.ts +4 -4
  214. package/dist/components/PhoneInput/types.d.ts +17 -15
  215. package/dist/components/RadioButton/RadioButton.d.ts +15 -15
  216. package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -7
  217. package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
  218. package/dist/components/RadioButton/index.d.ts +2 -2
  219. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -386
  220. package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
  221. package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
  222. package/dist/components/SearchInput/SearchInput.d.ts +6 -8
  223. package/dist/components/SearchInput/SearchInput.stories.d.ts +16 -6
  224. package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
  225. package/dist/components/SearchInput/index.d.ts +2 -2
  226. package/dist/components/Select/CustomSelect.stories.d.ts +11 -11
  227. package/dist/components/Select/MultiSelect.stories.d.ts +15 -15
  228. package/dist/components/Select/Select.d.ts +52 -52
  229. package/dist/components/Select/Select.stories.d.ts +15 -15
  230. package/dist/components/Select/Select.styles.d.ts +34 -33
  231. package/dist/components/Select/components/SelectList/SelectList.d.ts +23 -23
  232. package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
  233. package/dist/components/Select/components/SelectList/index.d.ts +2 -2
  234. package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +15 -15
  235. package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
  236. package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
  237. package/dist/components/Select/components/index.d.ts +2 -2
  238. package/dist/components/Select/constants.d.ts +2 -2
  239. package/dist/components/Select/helpers.d.ts +4 -4
  240. package/dist/components/Select/index.d.ts +4 -4
  241. package/dist/components/Select/types.d.ts +4 -1
  242. package/dist/components/Selector/Selector.d.ts +22 -22
  243. package/dist/components/Selector/Selector.stories.d.ts +7 -7
  244. package/dist/components/Selector/Selector.styles.d.ts +9 -9
  245. package/dist/components/Selector/index.d.ts +2 -2
  246. package/dist/components/Selector/types.d.ts +10 -10
  247. package/dist/components/Skeleton/Skeleton.d.ts +7 -7
  248. package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -6
  249. package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
  250. package/dist/components/Skeleton/index.d.ts +2 -2
  251. package/dist/components/SmartInput/SmartInput.d.ts +14 -14
  252. package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -18
  253. package/dist/components/SmartInput/constants.d.ts +16 -16
  254. package/dist/components/SmartInput/helpers.d.ts +2 -2
  255. package/dist/components/SmartInput/index.d.ts +2 -2
  256. package/dist/components/SmartInput/types.d.ts +6 -6
  257. package/dist/components/Status/Status.d.ts +16 -16
  258. package/dist/components/Status/Status.stories.d.ts +6 -6
  259. package/dist/components/Status/Status.styles.d.ts +3 -3
  260. package/dist/components/Status/constants.d.ts +2 -2
  261. package/dist/components/Status/index.d.ts +2 -2
  262. package/dist/components/Status/types.d.ts +3 -3
  263. package/dist/components/Switch/Switch.d.ts +20 -20
  264. package/dist/components/Switch/Switch.stories.d.ts +16 -16
  265. package/dist/components/Switch/Switch.styles.d.ts +3 -3
  266. package/dist/components/Switch/index.d.ts +3 -3
  267. package/dist/components/Switch/types.d.ts +4 -4
  268. package/dist/components/TextArea/TextArea.d.ts +29 -38
  269. package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
  270. package/dist/components/TextArea/TextArea.styles.d.ts +9 -3
  271. package/dist/components/TextArea/index.d.ts +3 -3
  272. package/dist/components/TextArea/types.d.ts +2 -2
  273. package/dist/components/TextButton/TextButton.d.ts +31 -31
  274. package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
  275. package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
  276. package/dist/components/TextButton/constants.d.ts +2 -2
  277. package/dist/components/TextButton/index.d.ts +3 -3
  278. package/dist/components/TextButton/types.d.ts +5 -5
  279. package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
  280. package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -12
  281. package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
  282. package/dist/components/TextWithInfo/index.d.ts +2 -2
  283. package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +27 -27
  284. package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -24
  285. package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
  286. package/dist/components/TextWithTooltip/index.d.ts +2 -2
  287. package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
  288. package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -17
  289. package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
  290. package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
  291. package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
  292. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
  293. package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
  294. package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
  295. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
  296. package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
  297. package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
  298. package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
  299. package/dist/components/ThemedPreloader/constants.d.ts +1 -1
  300. package/dist/components/ThemedPreloader/index.d.ts +4 -4
  301. package/dist/components/ThemedPreloader/types.d.ts +2 -2
  302. package/dist/components/Toaster/Toaster.d.ts +23 -23
  303. package/dist/components/Toaster/Toaster.stories.d.ts +5 -5
  304. package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
  305. package/dist/components/Toaster/constants.d.ts +1 -1
  306. package/dist/components/Toaster/index.d.ts +3 -3
  307. package/dist/components/Toaster/types.d.ts +1 -1
  308. package/dist/components/Tooltip/Tooltip.d.ts +11 -11
  309. package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -5
  310. package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
  311. package/dist/components/Tooltip/index.d.ts +3 -3
  312. package/dist/components/Tooltip/types.d.ts +1 -1
  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 +1248 -1093
  346. package/dist/true-react-common-ui-kit.js.map +1 -1
  347. package/dist/true-react-common-ui-kit.umd.cjs +1228 -1073
  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/ControlGroup/ControlGroup.stories.tsx +40 -0
  379. package/src/components/ControlGroup/ControlGroup.styles.ts +46 -0
  380. package/src/components/ControlGroup/ControlGroup.tsx +55 -0
  381. package/src/components/ControlGroup/index.ts +2 -0
  382. package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
  383. package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
  384. package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
  385. package/src/components/ControlWrapper/index.ts +2 -0
  386. package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
  387. package/src/components/CssBaseline/CssBaseline.tsx +13 -13
  388. package/src/components/CssBaseline/index.ts +2 -2
  389. package/src/components/DateInput/DateInput.stories.tsx +61 -61
  390. package/src/components/DateInput/DateInput.styles.ts +13 -18
  391. package/src/components/DateInput/DateInput.tsx +90 -90
  392. package/src/components/DateInput/constants.ts +2 -2
  393. package/src/components/DateInput/index.ts +3 -3
  394. package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
  395. package/src/components/DatePicker/DatePicker.styles.ts +38 -38
  396. package/src/components/DatePicker/DatePicker.tsx +314 -314
  397. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +54 -88
  398. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +81 -89
  399. package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
  400. package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
  401. package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
  402. package/src/components/DatePicker/components/index.ts +2 -2
  403. package/src/components/DatePicker/constants.ts +6 -6
  404. package/src/components/DatePicker/helpers.ts +23 -23
  405. package/src/components/DatePicker/index.ts +4 -4
  406. package/src/components/DatePicker/types.ts +48 -48
  407. package/src/components/Description/Description.stories.tsx +27 -27
  408. package/src/components/Description/Description.styles.ts +30 -30
  409. package/src/components/Description/Description.tsx +61 -61
  410. package/src/components/Description/constants.ts +1 -1
  411. package/src/components/Description/index.ts +2 -2
  412. package/src/components/FileInput/FileInput.stories.tsx +75 -75
  413. package/src/components/FileInput/FileInput.styles.ts +80 -80
  414. package/src/components/FileInput/FileInput.tsx +147 -147
  415. package/src/components/FileInput/helpers.ts +6 -6
  416. package/src/components/FileInput/index.ts +2 -2
  417. package/src/components/FileItem/FileItem.stories.tsx +59 -63
  418. package/src/components/FileItem/FileItem.styles.ts +122 -122
  419. package/src/components/FileItem/FileItem.tsx +157 -157
  420. package/src/components/FileItem/constants.ts +29 -29
  421. package/src/components/FileItem/helpers.ts +27 -27
  422. package/src/components/FileItem/index.ts +4 -4
  423. package/src/components/FileItem/types.ts +11 -11
  424. package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -299
  425. package/src/components/FiltersPane/FiltersPane.styles.ts +92 -92
  426. package/src/components/FiltersPane/FiltersPane.tsx +162 -162
  427. package/src/components/FiltersPane/components/Filter/Filter.tsx +114 -114
  428. package/src/components/FiltersPane/components/Filter/index.ts +1 -1
  429. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +63 -61
  430. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +147 -154
  431. package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
  432. package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
  433. package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
  434. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +143 -141
  435. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +361 -361
  436. package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
  437. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
  438. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
  439. package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
  440. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
  441. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +208 -210
  442. package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
  443. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
  444. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
  445. package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
  446. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +99 -99
  447. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +149 -149
  448. package/src/components/FiltersPane/components/FilterWrapper/helpers.ts +14 -14
  449. package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
  450. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +118 -123
  451. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +162 -165
  452. package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
  453. package/src/components/FiltersPane/components/index.ts +9 -9
  454. package/src/components/FiltersPane/constants.ts +137 -137
  455. package/src/components/FiltersPane/helpers.ts +26 -26
  456. package/src/components/FiltersPane/index.ts +5 -5
  457. package/src/components/FiltersPane/types.ts +157 -157
  458. package/src/components/Flag/Flag.stories.tsx +29 -29
  459. package/src/components/Flag/Flag.styles.ts +17 -17
  460. package/src/components/Flag/Flag.tsx +26 -26
  461. package/src/components/Flag/augment.d.ts +1 -1
  462. package/src/components/Flag/index.ts +2 -2
  463. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +300 -300
  464. package/src/components/FlexibleTable/FlexibleTable.styles.ts +111 -111
  465. package/src/components/FlexibleTable/FlexibleTable.tsx +308 -308
  466. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +43 -43
  467. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +113 -113
  468. package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
  469. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
  470. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +193 -193
  471. package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
  472. package/src/components/FlexibleTable/components/index.ts +2 -2
  473. package/src/components/FlexibleTable/constants.ts +8 -8
  474. package/src/components/FlexibleTable/helpers.ts +16 -16
  475. package/src/components/FlexibleTable/index.ts +4 -4
  476. package/src/components/FlexibleTable/types.ts +82 -82
  477. package/src/components/Icon/Icon.stories.tsx +86 -86
  478. package/src/components/Icon/Icon.styles.ts +10 -10
  479. package/src/components/Icon/Icon.tsx +26 -26
  480. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  481. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  482. package/src/components/Icon/complexIcons/fileExcel.svg +10 -10
  483. package/src/components/Icon/complexIcons/fileImage.svg +12 -12
  484. package/src/components/Icon/complexIcons/fileOther.svg +9 -9
  485. package/src/components/Icon/complexIcons/filePdf.svg +10 -10
  486. package/src/components/Icon/complexIcons/fileWord.svg +10 -10
  487. package/src/components/Icon/complexIcons/fileXml.svg +12 -12
  488. package/src/components/Icon/complexIcons/fileZip.svg +15 -15
  489. package/src/components/Icon/complexIcons/icons.ts +19 -19
  490. package/src/components/Icon/complexIcons/index.ts +1 -1
  491. package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
  492. package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
  493. package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
  494. package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
  495. package/src/components/Icon/components/index.ts +2 -2
  496. package/src/components/Icon/helpers.tsx +9 -9
  497. package/src/components/Icon/icons-list.ts +855 -855
  498. package/src/components/Icon/index.ts +5 -5
  499. package/src/components/Icon/snippet.tsx +6 -6
  500. package/src/components/Icon/types.ts +18 -18
  501. package/src/components/IconButton/IconButton.stories.tsx +32 -32
  502. package/src/components/IconButton/IconButton.styles.ts +84 -84
  503. package/src/components/IconButton/IconButton.tsx +74 -74
  504. package/src/components/IconButton/constants.ts +3 -3
  505. package/src/components/IconButton/index.ts +3 -3
  506. package/src/components/IconButton/types.ts +11 -11
  507. package/src/components/IncrementInput/IncrementInput.stories.tsx +29 -31
  508. package/src/components/IncrementInput/IncrementInput.styles.ts +78 -78
  509. package/src/components/IncrementInput/IncrementInput.tsx +105 -105
  510. package/src/components/IncrementInput/index.ts +2 -2
  511. package/src/components/Input/Input.stories.tsx +83 -91
  512. package/src/components/Input/Input.styles.ts +98 -308
  513. package/src/components/Input/Input.tsx +33 -296
  514. package/src/components/Input/InputBase.tsx +250 -0
  515. package/src/components/Input/index.ts +4 -3
  516. package/src/components/Input/types.ts +4 -33
  517. package/src/components/List/List.stories.tsx +90 -90
  518. package/src/components/List/List.styles.ts +25 -25
  519. package/src/components/List/List.tsx +68 -68
  520. package/src/components/List/components/ListItem/ListItem.styles.ts +52 -52
  521. package/src/components/List/components/ListItem/ListItem.tsx +68 -68
  522. package/src/components/List/components/ListItem/index.ts +2 -2
  523. package/src/components/List/components/index.ts +1 -1
  524. package/src/components/List/index.ts +3 -3
  525. package/src/components/Modal/Modal.stories.tsx +105 -105
  526. package/src/components/Modal/Modal.styles.ts +318 -318
  527. package/src/components/Modal/Modal.tsx +203 -203
  528. package/src/components/Modal/index.ts +3 -3
  529. package/src/components/Modal/types.ts +17 -17
  530. package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
  531. package/src/components/MoreMenu/MoreMenu.styles.ts +69 -69
  532. package/src/components/MoreMenu/MoreMenu.tsx +93 -93
  533. package/src/components/MoreMenu/index.ts +2 -2
  534. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
  535. package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
  536. package/src/components/MultiSelect/MultiSelect.tsx +106 -106
  537. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
  538. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
  539. package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
  540. package/src/components/MultiSelect/components/index.ts +1 -1
  541. package/src/components/MultiSelect/index.ts +4 -4
  542. package/src/components/MultiSelect/types.ts +1 -1
  543. package/src/components/MultiSelectList/MultiSelectList.styles.ts +138 -136
  544. package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
  545. package/src/components/MultiSelectList/constants.ts +21 -21
  546. package/src/components/MultiSelectList/helpers.ts +11 -11
  547. package/src/components/MultiSelectList/index.ts +3 -3
  548. package/src/components/MultiSelectList/types.ts +15 -15
  549. package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +74 -74
  550. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +39 -39
  551. package/src/components/NewMoreMenu/NewMoreMenu.tsx +79 -79
  552. package/src/components/NewMoreMenu/index.ts +2 -2
  553. package/src/components/Notification/Notification.stories.tsx +51 -55
  554. package/src/components/Notification/Notification.styles.ts +57 -57
  555. package/src/components/Notification/Notification.tsx +77 -77
  556. package/src/components/Notification/index.ts +3 -3
  557. package/src/components/Notification/types.ts +1 -1
  558. package/src/components/NumberInput/NumberInput.stories.tsx +33 -35
  559. package/src/components/NumberInput/NumberInput.tsx +134 -137
  560. package/src/components/NumberInput/helpers.ts +84 -84
  561. package/src/components/NumberInput/index.ts +1 -1
  562. package/src/components/PhoneInput/PhoneInput.stories.tsx +66 -70
  563. package/src/components/PhoneInput/PhoneInput.styles.ts +92 -89
  564. package/src/components/PhoneInput/PhoneInput.tsx +211 -214
  565. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
  566. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +105 -103
  567. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
  568. package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
  569. package/src/components/PhoneInput/components/index.ts +1 -1
  570. package/src/components/PhoneInput/constants.ts +3 -3
  571. package/src/components/PhoneInput/index.ts +4 -4
  572. package/src/components/PhoneInput/types.ts +20 -16
  573. package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
  574. package/src/components/RadioButton/RadioButton.styles.ts +37 -37
  575. package/src/components/RadioButton/RadioButton.tsx +57 -57
  576. package/src/components/RadioButton/index.ts +2 -2
  577. package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
  578. package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
  579. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  580. package/src/components/SearchInput/SearchInput.stories.tsx +24 -23
  581. package/src/components/SearchInput/SearchInput.styles.ts +44 -54
  582. package/src/components/SearchInput/SearchInput.tsx +49 -70
  583. package/src/components/SearchInput/index.ts +2 -2
  584. package/src/components/Select/CustomSelect.stories.tsx +250 -253
  585. package/src/components/Select/MultiSelect.stories.tsx +232 -240
  586. package/src/components/Select/Select.stories.tsx +228 -236
  587. package/src/components/Select/Select.styles.ts +133 -147
  588. package/src/components/Select/Select.tsx +650 -658
  589. package/src/components/Select/components/SelectList/SelectList.styles.ts +73 -73
  590. package/src/components/Select/components/SelectList/SelectList.tsx +152 -152
  591. package/src/components/Select/components/SelectList/index.ts +2 -2
  592. package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
  593. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +76 -76
  594. package/src/components/Select/components/SelectListItem/index.ts +1 -1
  595. package/src/components/Select/components/index.ts +2 -2
  596. package/src/components/Select/constants.ts +2 -2
  597. package/src/components/Select/helpers.ts +20 -20
  598. package/src/components/Select/index.ts +4 -4
  599. package/src/components/Select/types.ts +6 -1
  600. package/src/components/Selector/Selector.stories.tsx +62 -62
  601. package/src/components/Selector/Selector.styles.ts +165 -165
  602. package/src/components/Selector/Selector.tsx +115 -115
  603. package/src/components/Selector/index.ts +2 -2
  604. package/src/components/Selector/types.ts +12 -12
  605. package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
  606. package/src/components/Skeleton/Skeleton.styles.ts +46 -46
  607. package/src/components/Skeleton/Skeleton.tsx +12 -12
  608. package/src/components/Skeleton/index.ts +2 -2
  609. package/src/components/SmartInput/SmartInput.stories.tsx +51 -52
  610. package/src/components/SmartInput/SmartInput.tsx +116 -116
  611. package/src/components/SmartInput/constants.ts +91 -91
  612. package/src/components/SmartInput/helpers.ts +26 -26
  613. package/src/components/SmartInput/index.ts +2 -2
  614. package/src/components/SmartInput/types.ts +18 -18
  615. package/src/components/Status/Status.stories.tsx +69 -73
  616. package/src/components/Status/Status.styles.ts +143 -143
  617. package/src/components/Status/Status.tsx +49 -49
  618. package/src/components/Status/constants.ts +11 -11
  619. package/src/components/Status/index.ts +3 -3
  620. package/src/components/Status/types.ts +5 -5
  621. package/src/components/Switch/Switch.stories.tsx +40 -40
  622. package/src/components/Switch/Switch.styles.ts +75 -75
  623. package/src/components/Switch/Switch.tsx +75 -75
  624. package/src/components/Switch/index.ts +3 -3
  625. package/src/components/Switch/types.ts +4 -4
  626. package/src/components/TextArea/TextArea.stories.tsx +35 -37
  627. package/src/components/TextArea/TextArea.styles.ts +78 -177
  628. package/src/components/TextArea/TextArea.tsx +157 -183
  629. package/src/components/TextArea/index.ts +3 -3
  630. package/src/components/TextArea/types.ts +6 -6
  631. package/src/components/TextButton/TextButton.stories.tsx +43 -47
  632. package/src/components/TextButton/TextButton.styles.ts +130 -130
  633. package/src/components/TextButton/TextButton.tsx +110 -110
  634. package/src/components/TextButton/constants.ts +3 -3
  635. package/src/components/TextButton/index.ts +3 -3
  636. package/src/components/TextButton/types.ts +11 -11
  637. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
  638. package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
  639. package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
  640. package/src/components/TextWithInfo/index.ts +2 -2
  641. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  642. package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
  643. package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
  644. package/src/components/TextWithTooltip/index.ts +2 -2
  645. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
  646. package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
  647. package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
  648. package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
  649. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  650. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +55 -55
  651. package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
  652. package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
  653. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
  654. package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
  655. package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
  656. package/src/components/ThemedPreloader/components/index.ts +3 -3
  657. package/src/components/ThemedPreloader/constants.ts +1 -1
  658. package/src/components/ThemedPreloader/index.ts +4 -4
  659. package/src/components/ThemedPreloader/types.ts +3 -3
  660. package/src/components/Toaster/Toaster.stories.tsx +30 -30
  661. package/src/components/Toaster/Toaster.styles.ts +60 -60
  662. package/src/components/Toaster/Toaster.tsx +96 -96
  663. package/src/components/Toaster/constants.ts +1 -1
  664. package/src/components/Toaster/index.ts +3 -3
  665. package/src/components/Toaster/types.ts +1 -1
  666. package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
  667. package/src/components/Tooltip/Tooltip.styles.ts +49 -49
  668. package/src/components/Tooltip/Tooltip.tsx +35 -35
  669. package/src/components/Tooltip/index.ts +3 -3
  670. package/src/components/Tooltip/types.ts +1 -1
  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,482 @@
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", {
9617
+ var useStyles$J = createThemedStyles("ControlGroup", {
9636
9618
  root: {
9637
- width: "100%",
9638
- boxSizing: "border-box",
9639
- position: "relative"
9640
- },
9641
- inputWrapper: {
9642
9619
  display: "flex",
9643
- width: "100%",
9644
- height: dimensions.CONTROL_HEIGHT,
9645
- boxSizing: "border-box",
9646
- transition: animations.defaultTransition,
9647
- transitionProperty: "border-color",
9648
- backgroundColor: "white",
9649
- position: "relative"
9620
+ flexDirection: "column",
9621
+ width: "100%"
9650
9622
  },
9651
- inputContent: {
9652
- fontSize: 16,
9653
- fontFamily: "inherit",
9654
- padding: [
9655
- 0,
9656
- PADDING_X$1
9657
- ]
9623
+ error: {
9624
+ color: "red"
9658
9625
  },
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
- }
9626
+ info: {
9627
+ color: "gray"
9678
9628
  },
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"
9629
+ horizontal: {
9630
+ display: "flex",
9631
+ "& > *": {
9632
+ flexGrow: 1,
9633
+ "&:not(:first-child)": {
9634
+ marginLeft: -1
9635
+ }
9696
9636
  }
9697
9637
  },
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",
9638
+ vertical: {
9708
9639
  display: "flex",
9709
- alignItems: "center",
9710
- pointerEvents: "none"
9640
+ flexDirection: "column",
9641
+ "& > *:not(:first-child)": {
9642
+ marginTop: -1
9643
+ }
9711
9644
  },
9712
- fakeValue: {
9713
- visibility: "hidden"
9714
- },
9715
- units: {
9716
- paddingLeft: 4
9645
+ message: {
9646
+ fontSize: 12
9717
9647
  },
9718
- withFloatingLabel: {
9719
- paddingTop: 18
9648
+ children: {}
9649
+ });
9650
+ function _define_property$U(obj, key, value) {
9651
+ if (key in obj) {
9652
+ Object.defineProperty(obj, key, {
9653
+ value,
9654
+ enumerable: true,
9655
+ configurable: true,
9656
+ writable: true
9657
+ });
9658
+ } else {
9659
+ obj[key] = value;
9660
+ }
9661
+ return obj;
9662
+ }
9663
+ function _object_spread$S(target) {
9664
+ for (var i = 1; i < arguments.length; i++) {
9665
+ var source = arguments[i] != null ? arguments[i] : {};
9666
+ var ownKeys2 = Object.keys(source);
9667
+ if (typeof Object.getOwnPropertySymbols === "function") {
9668
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9669
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9670
+ }));
9671
+ }
9672
+ ownKeys2.forEach(function(key) {
9673
+ _define_property$U(target, key, source[key]);
9674
+ });
9675
+ }
9676
+ return target;
9677
+ }
9678
+ function ownKeys$L(object, enumerableOnly) {
9679
+ var keys2 = Object.keys(object);
9680
+ if (Object.getOwnPropertySymbols) {
9681
+ var symbols = Object.getOwnPropertySymbols(object);
9682
+ if (enumerableOnly) {
9683
+ symbols = symbols.filter(function(sym) {
9684
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9685
+ });
9686
+ }
9687
+ keys2.push.apply(keys2, symbols);
9688
+ }
9689
+ return keys2;
9690
+ }
9691
+ function _object_spread_props$L(target, source) {
9692
+ source = source != null ? source : {};
9693
+ if (Object.getOwnPropertyDescriptors) {
9694
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9695
+ } else {
9696
+ ownKeys$L(Object(source)).forEach(function(key) {
9697
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9698
+ });
9699
+ }
9700
+ return target;
9701
+ }
9702
+ var ControlGroup = /* @__PURE__ */ React.forwardRef(function(param, ref) {
9703
+ var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, direction = param.direction, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
9704
+ var classes = useStyles$J({
9705
+ theme: tweakStyles
9706
+ });
9707
+ var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
9708
+ var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
9709
+ var _obj2;
9710
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
9711
+ ref,
9712
+ className: classes.root,
9713
+ "data-invalid": shouldShowError ? true : void 0
9714
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
9715
+ children: [
9716
+ trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
9717
+ className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, direction === "horizontal"), _define_property$U(_obj2, classes.vertical, direction === "vertical"), _obj2)),
9718
+ children
9719
+ }),
9720
+ (shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
9721
+ className: classes.message,
9722
+ children: [
9723
+ shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9724
+ className: classes.error
9725
+ }, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
9726
+ children: errorMessage
9727
+ })),
9728
+ shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
9729
+ className: classes.info
9730
+ }, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
9731
+ children: infoMessage
9732
+ }))
9733
+ ]
9734
+ })
9735
+ ]
9736
+ }));
9737
+ });
9738
+ var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
9739
+ var useStyles$I = createThemedStyles("ControlWrapper", {
9740
+ root: {
9741
+ "--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
9742
+ // borders
9743
+ "--control-padding": "".concat(CONTROL$1.PADDING, "px"),
9744
+ "--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
9745
+ "--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
9746
+ "--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
9747
+ display: "flex",
9748
+ width: "100%",
9749
+ backgroundColor: "white",
9750
+ position: "relative",
9751
+ border: [
9752
+ "solid",
9753
+ 1,
9754
+ "gray"
9755
+ ],
9756
+ borderRadius: 8,
9757
+ boxSizing: "border-box",
9758
+ zIndex: 0
9720
9759
  },
9721
- floatingLabelWithoutPadding: {
9722
- paddingTop: 18,
9723
- paddingLeft: 0
9760
+ invalid: {
9761
+ zIndex: Z_INDEX$2.CONTROL_INVALID
9724
9762
  },
9725
- floating: {},
9726
- activeLabel: {
9727
- display: "none",
9728
- "&$floating": {
9729
- display: "block",
9730
- transform: "scale(0.75) translateY(-120%)"
9731
- }
9763
+ disabled: {},
9764
+ focused: {
9765
+ position: "relative",
9766
+ zIndex: Z_INDEX$2.CONTROL_FOCUS
9732
9767
  },
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
- }
9768
+ withValue: {},
9769
+ loading: {},
9770
+ minContent: {
9771
+ width: "min-content"
9744
9772
  },
9745
9773
  label: {
9746
9774
  position: "absolute",
9747
9775
  pointerEvents: "none",
9748
- left: PADDING_X$1,
9776
+ left: "var(--control-padding)",
9749
9777
  top: "50%",
9750
9778
  transformOrigin: "top left",
9751
9779
  transform: "translateY(-50%)",
9752
9780
  transition: animations.defaultTransition,
9753
9781
  transitionProperty: "transform, color",
9754
- fontSize: 16
9755
- },
9756
- floatingWithoutPadding: {
9757
- left: 0
9782
+ fontSize: 16,
9783
+ zIndex: 1
9758
9784
  },
9785
+ activeLabel: {},
9759
9786
  requiredLabel: {
9760
9787
  "&:after": {
9761
9788
  content: '""',
9789
+ display: "block",
9762
9790
  position: "absolute",
9791
+ top: 0,
9763
9792
  right: -8,
9764
- top: 4,
9765
- transform: "translate(0, -50%)",
9766
9793
  width: 6,
9767
9794
  height: 6,
9768
- borderRadius: "50%"
9795
+ borderRadius: "50%",
9796
+ backgroundColor: "orange"
9769
9797
  }
9770
9798
  },
9771
- activeIcon: {
9772
- cursor: "pointer"
9799
+ disabledLabel: {},
9800
+ wrapper: {
9801
+ display: "flex",
9802
+ flexGrow: 1,
9803
+ minWidth: 0,
9804
+ // Нужно для селекта
9805
+ textAlign: "left"
9773
9806
  },
9774
- "border-top": {
9775
- borderRadius: 0,
9776
- borderWidth: [
9777
- 1,
9778
- 0,
9779
- 0,
9780
- 0
9781
- ]
9807
+ controls: {
9808
+ display: "flex",
9809
+ marginLeft: "auto",
9810
+ flexShrink: 0
9782
9811
  },
9783
- "border-bottom": {
9784
- borderRadius: 0,
9785
- borderWidth: [
9786
- 0,
9787
- 0,
9788
- 1,
9789
- 0
9790
- ]
9812
+ icon: {
9813
+ display: "flex",
9814
+ alignItems: "center",
9815
+ justifyContent: "center",
9816
+ minWidth: "var(--icon-size)",
9817
+ width: "var(--icon-size)",
9818
+ height: "100%",
9819
+ flexShrink: 0,
9820
+ cursor: "default",
9821
+ "&:last-child": {
9822
+ paddingRight: 6
9823
+ }
9791
9824
  },
9792
- "border-left": {
9793
- borderRadius: 0,
9794
- borderWidth: [
9795
- 0,
9796
- 0,
9797
- 0,
9798
- 1
9799
- ]
9825
+ iconInner: {
9826
+ width: "var(--icon-inner-size)"
9800
9827
  },
9801
- "border-right": {
9802
- borderRadius: 0,
9803
- borderWidth: [
9804
- 0,
9805
- 1,
9806
- 0,
9807
- 0
9808
- ]
9828
+ customIcon: {
9829
+ width: "unset",
9830
+ "& $iconInner": {
9831
+ width: "unset"
9832
+ }
9833
+ },
9834
+ endIcon: {},
9835
+ activeIcon: {
9836
+ cursor: "pointer",
9837
+ outline: "none"
9809
9838
  },
9810
- top: {
9839
+ clearIcon: {
9840
+ "& $iconInner": {
9841
+ width: "var(--icon-inner-size)"
9842
+ }
9843
+ },
9844
+ loader: {
9845
+ "& $iconInner": {
9846
+ width: "var(--icon-inner-size)"
9847
+ }
9848
+ },
9849
+ /* groupPositions */
9850
+ "placement-top": {
9811
9851
  borderBottomLeftRadius: 0,
9812
9852
  borderBottomRightRadius: 0
9813
9853
  },
9814
- bottom: {
9854
+ "placement-bottom": {
9815
9855
  borderTopLeftRadius: 0,
9816
9856
  borderTopRightRadius: 0
9817
9857
  },
9818
- "top-left": {
9858
+ "placement-top-left": {
9819
9859
  borderTopRightRadius: 0,
9820
9860
  borderBottomLeftRadius: 0,
9821
9861
  borderBottomRightRadius: 0
9822
9862
  },
9823
- "top-right": {
9863
+ "placement-top-right": {
9824
9864
  borderTopLeftRadius: 0,
9825
9865
  borderBottomLeftRadius: 0,
9826
9866
  borderBottomRightRadius: 0
9827
9867
  },
9828
- "bottom-left": {
9868
+ "placement-bottom-left": {
9829
9869
  borderTopLeftRadius: 0,
9830
9870
  borderTopRightRadius: 0,
9831
9871
  borderBottomRightRadius: 0
9832
9872
  },
9833
- "bottom-right": {
9873
+ "placement-bottom-right": {
9834
9874
  borderTopLeftRadius: 0,
9835
9875
  borderTopRightRadius: 0,
9836
9876
  borderBottomLeftRadius: 0
9837
9877
  },
9838
- left: {
9878
+ "placement-left": {
9839
9879
  borderTopRightRadius: 0,
9840
9880
  borderBottomRightRadius: 0
9841
9881
  },
9842
- right: {
9882
+ "placement-right": {
9843
9883
  borderTopLeftRadius: 0,
9844
9884
  borderBottomLeftRadius: 0
9845
9885
  },
9846
- middle: {
9886
+ "placement-middle": {
9847
9887
  borderRadius: 0
9848
- },
9849
- controls: {
9850
- display: "flex",
9851
- gridArea: "1 / 3"
9852
- },
9853
- icon: {
9854
- display: "flex",
9855
- alignItems: "center",
9888
+ }
9889
+ });
9890
+ function _define_property$T(obj, key, value) {
9891
+ if (key in obj) {
9892
+ Object.defineProperty(obj, key, {
9893
+ value,
9894
+ enumerable: true,
9895
+ configurable: true,
9896
+ writable: true
9897
+ });
9898
+ } else {
9899
+ obj[key] = value;
9900
+ }
9901
+ return obj;
9902
+ }
9903
+ function _object_spread$R(target) {
9904
+ for (var i = 1; i < arguments.length; i++) {
9905
+ var source = arguments[i] != null ? arguments[i] : {};
9906
+ var ownKeys2 = Object.keys(source);
9907
+ if (typeof Object.getOwnPropertySymbols === "function") {
9908
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9909
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9910
+ }));
9911
+ }
9912
+ ownKeys2.forEach(function(key) {
9913
+ _define_property$T(target, key, source[key]);
9914
+ });
9915
+ }
9916
+ return target;
9917
+ }
9918
+ function ownKeys$K(object, enumerableOnly) {
9919
+ var keys2 = Object.keys(object);
9920
+ if (Object.getOwnPropertySymbols) {
9921
+ var symbols = Object.getOwnPropertySymbols(object);
9922
+ if (enumerableOnly) {
9923
+ symbols = symbols.filter(function(sym) {
9924
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9925
+ });
9926
+ }
9927
+ keys2.push.apply(keys2, symbols);
9928
+ }
9929
+ return keys2;
9930
+ }
9931
+ function _object_spread_props$K(target, source) {
9932
+ source = source != null ? source : {};
9933
+ if (Object.getOwnPropertyDescriptors) {
9934
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9935
+ } else {
9936
+ ownKeys$K(Object(source)).forEach(function(key) {
9937
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9938
+ });
9939
+ }
9940
+ return target;
9941
+ }
9942
+ var ControlWrapper = function(param) {
9943
+ 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;
9944
+ var classes = useStyles$I({
9945
+ theme: tweakStyles
9946
+ });
9947
+ var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
9948
+ var hasClearButton = !isDisabled && !isLoading && hasValue && trueReactPlatformHelpers.isNotEmpty(onClear);
9949
+ var hasControls = hasEndIcon || hasClearButton || isLoading;
9950
+ var tweakPreloaderStyles = useTweakStyles({
9951
+ tweakStyles,
9952
+ className: "tweakPreloader",
9953
+ currentComponentName: "ControlWrapper"
9954
+ });
9955
+ var _obj2, _obj1, _obj22;
9956
+ return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
9957
+ className: clsx(classes.root, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
9958
+ classes["placement-".concat(groupPlacement)]
9959
+ ], (_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))
9960
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
9961
+ children: [
9962
+ trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
9963
+ 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)),
9964
+ children: label
9965
+ }),
9966
+ /* @__PURE__ */ jsxs("div", {
9967
+ className: classes.wrapper,
9968
+ children: [
9969
+ children,
9970
+ hasControls && /* @__PURE__ */ jsxs("div", {
9971
+ className: classes.controls,
9972
+ children: [
9973
+ hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9974
+ className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
9975
+ }, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
9976
+ children: /* @__PURE__ */ jsx("div", {
9977
+ className: classes.iconInner,
9978
+ children: /* @__PURE__ */ jsx(Icon, {
9979
+ type: "close"
9980
+ })
9981
+ })
9982
+ })),
9983
+ hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9984
+ 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))
9985
+ }, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
9986
+ children: /* @__PURE__ */ jsx("div", {
9987
+ className: classes.iconInner,
9988
+ children: renderIcon(icon)
9989
+ })
9990
+ })),
9991
+ isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
9992
+ className: clsx(classes.icon, classes.loader)
9993
+ }, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
9994
+ children: /* @__PURE__ */ jsx("div", {
9995
+ className: classes.iconInner,
9996
+ children: /* @__PURE__ */ jsx(ThemedPreloader, {
9997
+ tweakStyles: tweakPreloaderStyles
9998
+ })
9999
+ })
10000
+ }))
10001
+ ]
10002
+ })
10003
+ ]
10004
+ })
10005
+ ]
10006
+ }));
10007
+ };
10008
+ var PADDING_WITH_UNITS = 8;
10009
+ var useStyles$H = createThemedStyles("Input", {
10010
+ inputContent: {
10011
+ height: "var(--control-height)",
9856
10012
  padding: [
9857
10013
  0,
9858
- 4
10014
+ "var(--control-padding)"
9859
10015
  ],
9860
- width: 20,
9861
- transition: animations.defaultTransition,
9862
- transitionProperty: "color",
9863
- boxSizing: "content-box",
9864
- "&:last-child": {
9865
- paddingRight: 8
10016
+ fontSize: 16,
10017
+ fontFamily: "inherit"
10018
+ },
10019
+ input: {
10020
+ extend: "inputContent",
10021
+ width: "100%",
10022
+ outline: "none",
10023
+ outlineStyle: "none",
10024
+ boxSizing: "border-box",
10025
+ border: "none",
10026
+ background: "none",
10027
+ color: "black",
10028
+ "&[readonly]": {
10029
+ cursor: "default"
10030
+ },
10031
+ "&::placeholder": {
10032
+ opacity: 1
9866
10033
  },
9867
- "& + $units": {
9868
- marginLeft: 4
10034
+ "&::-webkit-date-and-time-value": {
10035
+ textAlign: "left"
10036
+ },
10037
+ MozAppearance: "textfield",
10038
+ "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
10039
+ display: "none",
10040
+ WebkitAppearance: "none",
10041
+ margin: 0
9869
10042
  }
9870
10043
  },
9871
- clearIcon: {
9872
- extend: "icon"
9873
- },
9874
- inputIcon: {
9875
- extend: "icon"
9876
- },
9877
- withIcons: {
9878
- paddingRight: 4
10044
+ autoSizeWrapper: {
10045
+ position: "relative",
10046
+ display: "flex",
10047
+ minWidth: 0,
10048
+ zIndex: 0,
10049
+ flexGrow: 1
9879
10050
  },
9880
- withControls: {},
9881
- invalid: {},
9882
- disabled: {},
9883
- invalidLabel: {},
9884
- error: {
9885
- fontSize: 12
10051
+ autoSized: {
10052
+ position: "absolute",
10053
+ top: 0,
10054
+ left: 0,
10055
+ height: "100%"
9886
10056
  },
9887
- info: {
9888
- fontSize: 12,
9889
- paddingTop: 4,
9890
- paddingLeft: 13
10057
+ withUnits: {
10058
+ extend: "autoSized",
10059
+ paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
10060
+ "& + $fakeValue": {
10061
+ paddingRight: PADDING_WITH_UNITS
10062
+ }
9891
10063
  },
9892
- "error-top": {
9893
- position: "absolute",
9894
- top: -18,
9895
- left: -1,
9896
- padding: [
9897
- 4,
9898
- 8
9899
- ],
9900
- zIndex: 1
10064
+ withLabel: {},
10065
+ fakeValue: {
10066
+ extend: "inputContent",
10067
+ visibility: "hidden",
10068
+ maxWidth: "100%",
10069
+ overflow: "hidden",
10070
+ minWidth: 8
9901
10071
  },
9902
- "error-bottom": {
9903
- paddingTop: 4,
9904
- paddingLeft: 13
10072
+ units: {
10073
+ alignSelf: "center",
10074
+ paddingRight: "var(--control-padding)"
9905
10075
  },
9906
- loading: {},
9907
- withUnits: {}
10076
+ focusedInput: {},
10077
+ disabledInput: {},
10078
+ invalidInput: {}
9908
10079
  });
9909
10080
  function _array_like_to_array$j(arr, len) {
9910
10081
  if (len == null || len > arr.length)
@@ -9946,7 +10117,7 @@
9946
10117
  });
9947
10118
  };
9948
10119
  }
9949
- function _define_property$R(obj, key, value) {
10120
+ function _define_property$S(obj, key, value) {
9950
10121
  if (key in obj) {
9951
10122
  Object.defineProperty(obj, key, {
9952
10123
  value,
@@ -9990,7 +10161,7 @@
9990
10161
  function _non_iterable_rest$j() {
9991
10162
  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
10163
  }
9993
- function _object_spread$P(target) {
10164
+ function _object_spread$Q(target) {
9994
10165
  for (var i = 1; i < arguments.length; i++) {
9995
10166
  var source = arguments[i] != null ? arguments[i] : {};
9996
10167
  var ownKeys2 = Object.keys(source);
@@ -10000,12 +10171,12 @@
10000
10171
  }));
10001
10172
  }
10002
10173
  ownKeys2.forEach(function(key) {
10003
- _define_property$R(target, key, source[key]);
10174
+ _define_property$S(target, key, source[key]);
10004
10175
  });
10005
10176
  }
10006
10177
  return target;
10007
10178
  }
10008
- function ownKeys$I(object, enumerableOnly) {
10179
+ function ownKeys$J(object, enumerableOnly) {
10009
10180
  var keys2 = Object.keys(object);
10010
10181
  if (Object.getOwnPropertySymbols) {
10011
10182
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10018,21 +10189,21 @@
10018
10189
  }
10019
10190
  return keys2;
10020
10191
  }
10021
- function _object_spread_props$I(target, source) {
10192
+ function _object_spread_props$J(target, source) {
10022
10193
  source = source != null ? source : {};
10023
10194
  if (Object.getOwnPropertyDescriptors) {
10024
10195
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10025
10196
  } else {
10026
- ownKeys$I(Object(source)).forEach(function(key) {
10197
+ ownKeys$J(Object(source)).forEach(function(key) {
10027
10198
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10028
10199
  });
10029
10200
  }
10030
10201
  return target;
10031
10202
  }
10032
- function _object_without_properties$g(source, excluded) {
10203
+ function _object_without_properties$i(source, excluded) {
10033
10204
  if (source == null)
10034
10205
  return {};
10035
- var target = _object_without_properties_loose$g(source, excluded);
10206
+ var target = _object_without_properties_loose$i(source, excluded);
10036
10207
  var key, i;
10037
10208
  if (Object.getOwnPropertySymbols) {
10038
10209
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10047,7 +10218,7 @@
10047
10218
  }
10048
10219
  return target;
10049
10220
  }
10050
- function _object_without_properties_loose$g(source, excluded) {
10221
+ function _object_without_properties_loose$i(source, excluded) {
10051
10222
  if (source == null)
10052
10223
  return {};
10053
10224
  var target = {};
@@ -10179,38 +10350,32 @@
10179
10350
  };
10180
10351
  }
10181
10352
  }
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, [
10353
+ var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10354
+ 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
10355
  "value",
10185
- "label",
10186
10356
  "placeholder",
10357
+ "label",
10187
10358
  "type",
10188
10359
  "isDisabled",
10360
+ "autoComplete",
10361
+ "inputMode",
10189
10362
  "isReadonly",
10190
- "hasFloatingLabel",
10191
10363
  "isInvalid",
10192
10364
  "isActive",
10193
10365
  "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",
10366
+ "isAutoSized",
10367
+ "name",
10206
10368
  "tweakStyles",
10369
+ "maxLength",
10207
10370
  "shouldFocusOnMount",
10208
10371
  "units",
10209
10372
  "testId",
10373
+ "tabIndex",
10210
10374
  "onChange",
10375
+ "onPaste",
10211
10376
  "onFocus",
10212
10377
  "onBlur",
10213
- "onIconClick",
10378
+ "onKeyDown",
10214
10379
  "mask",
10215
10380
  "maskPlaceholder",
10216
10381
  "alwaysShowMask",
@@ -10220,13 +10385,27 @@
10220
10385
  var classes = useStyles$H({
10221
10386
  theme: tweakStyles
10222
10387
  });
10223
- var tweakPreloaderStyles = useTweakStyles({
10388
+ var tweakControlWrapperStyles = useTweakStyles({
10224
10389
  tweakStyles,
10225
- className: "tweakPreloader",
10390
+ className: "tweakControlWrapper",
10226
10391
  currentComponentName: "Input"
10227
10392
  });
10228
10393
  var _useState = _sliced_to_array$j(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
10394
+ var _useState1 = _sliced_to_array$j(React.useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
10229
10395
  var inputRef = React.useRef(null);
10396
+ var mergedRef = trueReactPlatformHelpers.mergeRefs([
10397
+ ref,
10398
+ inputRef
10399
+ ]);
10400
+ var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
10401
+ "email",
10402
+ "tel",
10403
+ "url"
10404
+ ].includes(type) ? type : void 0;
10405
+ var hasFocus = isFocused || isActive;
10406
+ var hasValue = trueReactPlatformHelpers.isNotEmpty(value) && value !== "";
10407
+ var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
10408
+ var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
10230
10409
  var handleChange = function(event) {
10231
10410
  onChange(event.currentTarget.value, event);
10232
10411
  };
@@ -10238,9 +10417,9 @@
10238
10417
  setFocused(false);
10239
10418
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
10240
10419
  };
10241
- var handleOnInputClear = function() {
10420
+ var handleInputClear = function() {
10242
10421
  var _ref = _async_to_generator$5(function(event) {
10243
- var _input_current, input;
10422
+ var _inputRef_current;
10244
10423
  return _ts_generator$5(this, function(_state) {
10245
10424
  switch (_state.label) {
10246
10425
  case 0:
@@ -10250,114 +10429,195 @@
10250
10429
  ];
10251
10430
  case 1:
10252
10431
  _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();
10432
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10255
10433
  return [
10256
10434
  2
10257
10435
  ];
10258
10436
  }
10259
10437
  });
10260
10438
  });
10261
- return function handleOnInputClear2(event) {
10439
+ return function handleInputClear2(event) {
10262
10440
  return _ref.apply(this, arguments);
10263
10441
  };
10264
10442
  }();
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;
10443
+ var unitsRef = React.useCallback(function(node) {
10444
+ setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
10445
+ }, [
10446
+ units
10447
+ ]);
10274
10448
  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,
10449
+ var props = _object_spread$Q({
10450
+ className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _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)),
10451
+ style: hasUnits && hasValue ? {
10452
+ "--units-width": "".concat(unitsWidth, "px")
10453
+ } : void 0,
10280
10454
  value,
10281
10455
  type,
10456
+ autoComplete,
10457
+ inputMode,
10282
10458
  disabled: isDisabled,
10283
10459
  placeholder: hasPlaceholder ? placeholder : void 0,
10284
- autoFocus: shouldFocusOnMount,
10460
+ name,
10461
+ maxLength,
10285
10462
  readOnly: isReadonly,
10286
- size: isAutoSizeable ? defaultSize : void 0
10463
+ tabIndex,
10464
+ onKeyDown,
10465
+ onPaste,
10466
+ onFocus: handleFocus,
10467
+ onBlur: handleBlur,
10468
+ onChange: handleChange
10469
+ }, trueReactPlatformHelpers.addDataTestId(testId, "input"));
10470
+ React.useEffect(function() {
10471
+ if (shouldFocusOnMount) {
10472
+ var _inputRef_current;
10473
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
10474
+ }
10475
+ }, []);
10476
+ var inputContent = /* @__PURE__ */ jsxs(Fragment, {
10477
+ children: [
10478
+ trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
10479
+ ref: mergedRef,
10480
+ mask,
10481
+ maskPlaceholder,
10482
+ alwaysShowMask,
10483
+ beforeMaskedStateChange
10484
+ }, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
10485
+ ref: mergedRef
10486
+ }, props)),
10487
+ (hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
10488
+ className: classes.fakeValue,
10489
+ children: value
10490
+ }),
10491
+ hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
10492
+ className: classes.units,
10493
+ ref: unitsRef,
10494
+ children: units
10495
+ })
10496
+ ]
10497
+ });
10498
+ return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
10499
+ label,
10500
+ isDisabled,
10501
+ isFocused: hasFocus,
10502
+ isInvalid,
10503
+ hasValue: hasValue || hasPlaceholder,
10504
+ isFullWidth: !isAutoSized,
10505
+ tweakStyles: tweakControlWrapperStyles,
10506
+ onClear: isClearable && hasValue ? handleInputClear : void 0
10507
+ }, controlProps), {
10508
+ children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
10509
+ className: classes.autoSizeWrapper,
10510
+ children: inputContent
10511
+ }) : inputContent
10512
+ }));
10513
+ });
10514
+ function _define_property$R(obj, key, value) {
10515
+ if (key in obj) {
10516
+ Object.defineProperty(obj, key, {
10517
+ value,
10518
+ enumerable: true,
10519
+ configurable: true,
10520
+ writable: true
10521
+ });
10522
+ } else {
10523
+ obj[key] = value;
10524
+ }
10525
+ return obj;
10526
+ }
10527
+ function _object_spread$P(target) {
10528
+ for (var i = 1; i < arguments.length; i++) {
10529
+ var source = arguments[i] != null ? arguments[i] : {};
10530
+ var ownKeys2 = Object.keys(source);
10531
+ if (typeof Object.getOwnPropertySymbols === "function") {
10532
+ ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10533
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
10534
+ }));
10535
+ }
10536
+ ownKeys2.forEach(function(key) {
10537
+ _define_property$R(target, key, source[key]);
10538
+ });
10539
+ }
10540
+ return target;
10541
+ }
10542
+ function ownKeys$I(object, enumerableOnly) {
10543
+ var keys2 = Object.keys(object);
10544
+ if (Object.getOwnPropertySymbols) {
10545
+ var symbols = Object.getOwnPropertySymbols(object);
10546
+ if (enumerableOnly) {
10547
+ symbols = symbols.filter(function(sym) {
10548
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10549
+ });
10550
+ }
10551
+ keys2.push.apply(keys2, symbols);
10552
+ }
10553
+ return keys2;
10554
+ }
10555
+ function _object_spread_props$I(target, source) {
10556
+ source = source != null ? source : {};
10557
+ if (Object.getOwnPropertyDescriptors) {
10558
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10559
+ } else {
10560
+ ownKeys$I(Object(source)).forEach(function(key) {
10561
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10562
+ });
10563
+ }
10564
+ return target;
10565
+ }
10566
+ function _object_without_properties$h(source, excluded) {
10567
+ if (source == null)
10568
+ return {};
10569
+ var target = _object_without_properties_loose$h(source, excluded);
10570
+ var key, i;
10571
+ if (Object.getOwnPropertySymbols) {
10572
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
10573
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
10574
+ key = sourceSymbolKeys[i];
10575
+ if (excluded.indexOf(key) >= 0)
10576
+ continue;
10577
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
10578
+ continue;
10579
+ target[key] = source[key];
10580
+ }
10581
+ }
10582
+ return target;
10583
+ }
10584
+ function _object_without_properties_loose$h(source, excluded) {
10585
+ if (source == null)
10586
+ return {};
10587
+ var target = {};
10588
+ var sourceKeys = Object.keys(source);
10589
+ var key, i;
10590
+ for (i = 0; i < sourceKeys.length; i++) {
10591
+ key = sourceKeys[i];
10592
+ if (excluded.indexOf(key) >= 0)
10593
+ continue;
10594
+ target[key] = source[key];
10595
+ }
10596
+ return target;
10597
+ }
10598
+ var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
10599
+ var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
10600
+ "infoMessage",
10601
+ "errorMessage",
10602
+ "isInvalid",
10603
+ "testId",
10604
+ "tweakStyles"
10605
+ ]);
10606
+ var tweakControlGroupStyles = useTweakStyles({
10607
+ tweakStyles,
10608
+ className: "tweakControlGroup"
10287
10609
  });
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
- ]
10610
+ return /* @__PURE__ */ jsx(ControlGroup, {
10611
+ errorMessage,
10612
+ infoMessage,
10613
+ testId,
10614
+ tweakStyles: tweakControlGroupStyles,
10615
+ children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
10616
+ ref,
10617
+ testId,
10618
+ tweakStyles,
10619
+ isInvalid
10620
+ }))
10361
10621
  });
10362
10622
  });
10363
10623
  var EMPTY_DATE_INPUT_VALUE = "__.__.____";
@@ -10422,10 +10682,10 @@
10422
10682
  }
10423
10683
  return target;
10424
10684
  }
10425
- function _object_without_properties$f(source, excluded) {
10685
+ function _object_without_properties$g(source, excluded) {
10426
10686
  if (source == null)
10427
10687
  return {};
10428
- var target = _object_without_properties_loose$f(source, excluded);
10688
+ var target = _object_without_properties_loose$g(source, excluded);
10429
10689
  var key, i;
10430
10690
  if (Object.getOwnPropertySymbols) {
10431
10691
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10440,7 +10700,7 @@
10440
10700
  }
10441
10701
  return target;
10442
10702
  }
10443
- function _object_without_properties_loose$f(source, excluded) {
10703
+ function _object_without_properties_loose$g(source, excluded) {
10444
10704
  if (source == null)
10445
10705
  return {};
10446
10706
  var target = {};
@@ -10455,7 +10715,7 @@
10455
10715
  return target;
10456
10716
  }
10457
10717
  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, [
10718
+ 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
10719
  "date",
10460
10720
  "startDate",
10461
10721
  "endDate",
@@ -10511,7 +10771,7 @@
10511
10771
  }));
10512
10772
  });
10513
10773
  const reactDatepicker = "";
10514
- var LEFT_PADDING = 44;
10774
+ var Z_INDEX$1 = dimensions.Z_INDEX;
10515
10775
  var useStyles$F = createThemedStyles("SearchInput", {
10516
10776
  root: {
10517
10777
  position: "relative"
@@ -10523,33 +10783,26 @@
10523
10783
  left: 12,
10524
10784
  height: "100%",
10525
10785
  width: 20,
10526
- zIndex: 2,
10527
- color: colors.GREY_ACTIVE
10528
- },
10529
- iconClickable: {
10530
- cursor: "pointer"
10786
+ color: colors.GREY_ACTIVE,
10787
+ zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
10531
10788
  }
10532
10789
  });
10533
10790
  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
10791
+ tweakControlWrapper: {
10792
+ root: {
10793
+ borderColor: "transparent",
10794
+ borderRadius: 18,
10795
+ paddingLeft: 0,
10796
+ transitionProperty: "background-color, border-color"
10797
+ },
10798
+ focused: {
10799
+ backgroundColor: colors.CLASSIC_WHITE,
10800
+ borderColor: colors.BORDER_MAIN
10801
+ }
10545
10802
  },
10546
- input: {
10803
+ inputContent: {
10547
10804
  fontSize: 14,
10548
- paddingLeft: 0
10549
- },
10550
- label: {
10551
- left: LEFT_PADDING,
10552
- fontSize: 14
10805
+ paddingLeft: 44
10553
10806
  }
10554
10807
  };
10555
10808
  function _define_property$P(obj, key, value) {
@@ -10604,10 +10857,10 @@
10604
10857
  }
10605
10858
  return target;
10606
10859
  }
10607
- function _object_without_properties$e(source, excluded) {
10860
+ function _object_without_properties$f(source, excluded) {
10608
10861
  if (source == null)
10609
10862
  return {};
10610
- var target = _object_without_properties_loose$e(source, excluded);
10863
+ var target = _object_without_properties_loose$f(source, excluded);
10611
10864
  var key, i;
10612
10865
  if (Object.getOwnPropertySymbols) {
10613
10866
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10622,7 +10875,7 @@
10622
10875
  }
10623
10876
  return target;
10624
10877
  }
10625
- function _object_without_properties_loose$e(source, excluded) {
10878
+ function _object_without_properties_loose$f(source, excluded) {
10626
10879
  if (source == null)
10627
10880
  return {};
10628
10881
  var target = {};
@@ -10637,12 +10890,13 @@
10637
10890
  return target;
10638
10891
  }
10639
10892
  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, [
10893
+ 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
10894
  "isClearable",
10642
10895
  "tweakStyles",
10896
+ "placeholder",
10897
+ "value",
10643
10898
  "testId",
10644
- "data",
10645
- "onSearchIconClick"
10899
+ "data"
10646
10900
  ]);
10647
10901
  var classes = useStyles$F({
10648
10902
  theme: tweakStyles
@@ -10655,23 +10909,20 @@
10655
10909
  });
10656
10910
  return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
10657
10911
  className: classes.root
10658
- }, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
10912
+ }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
10659
10913
  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)), {
10914
+ /* @__PURE__ */ jsx("div", {
10915
+ className: classes.icon,
10663
10916
  children: /* @__PURE__ */ jsx(Icon, {
10664
10917
  type: "search"
10665
10918
  })
10666
- })),
10919
+ }),
10667
10920
  /* @__PURE__ */ jsx(Input, _object_spread$N({
10668
- inputMode: "search",
10921
+ value,
10922
+ placeholder,
10669
10923
  isClearable,
10670
- isActive: props.value !== "" && props.value !== void 0,
10671
10924
  testId: trueReactPlatformHelpers.getTestId(testId, "input"),
10672
- tweakStyles: tweakInputStyles,
10673
- hasFloatingLabel: false,
10674
- label: props.placeholder
10925
+ tweakStyles: tweakInputStyles
10675
10926
  }, props))
10676
10927
  ]
10677
10928
  }));
@@ -10761,10 +11012,10 @@
10761
11012
  }
10762
11013
  return target;
10763
11014
  }
10764
- function _object_without_properties$d(source, excluded) {
11015
+ function _object_without_properties$e(source, excluded) {
10765
11016
  if (source == null)
10766
11017
  return {};
10767
- var target = _object_without_properties_loose$d(source, excluded);
11018
+ var target = _object_without_properties_loose$e(source, excluded);
10768
11019
  var key, i;
10769
11020
  if (Object.getOwnPropertySymbols) {
10770
11021
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -10779,7 +11030,7 @@
10779
11030
  }
10780
11031
  return target;
10781
11032
  }
10782
- function _object_without_properties_loose$d(source, excluded) {
11033
+ function _object_without_properties_loose$e(source, excluded) {
10783
11034
  if (source == null)
10784
11035
  return {};
10785
11036
  var target = {};
@@ -10882,7 +11133,7 @@
10882
11133
  _this_props.active;
10883
11134
  var elementType = _this_props.elementType, children = _this_props.children;
10884
11135
  _this_props.options;
10885
- var wrapperProps = _object_without_properties$d(_this_props, [
11136
+ var wrapperProps = _object_without_properties$e(_this_props, [
10886
11137
  "active",
10887
11138
  "elementType",
10888
11139
  "children",
@@ -11244,6 +11495,7 @@
11244
11495
  return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
11245
11496
  };
11246
11497
  };
11498
+ var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
11247
11499
  var useStyles$D = createThemedStyles("Select", {
11248
11500
  root: {
11249
11501
  width: "100%",
@@ -11263,7 +11515,8 @@
11263
11515
  },
11264
11516
  withoutPopper: {
11265
11517
  position: "absolute",
11266
- top: "calc(var(--dropdown-offset, 100%) + 6px)"
11518
+ top: "100%",
11519
+ paddingTop: 4
11267
11520
  },
11268
11521
  listWrapperInBody: {
11269
11522
  minWidth: "auto",
@@ -11273,16 +11526,17 @@
11273
11526
  arrow: {
11274
11527
  position: "absolute",
11275
11528
  right: 12,
11276
- top: 14,
11529
+ top: "50%",
11277
11530
  width: 20,
11278
11531
  height: 20,
11279
11532
  cursor: "pointer",
11280
- zIndex: 1,
11533
+ transform: "translateY(-50%)",
11281
11534
  transition: animations.defaultTransition,
11282
- transitionProperty: "transform"
11535
+ transitionProperty: "transform",
11536
+ zIndex: Z_INDEX.CONTROL_FOCUS + 1
11283
11537
  },
11284
11538
  activeArrow: {
11285
- transform: "rotate(180deg)"
11539
+ transform: "translateY(-50%) rotate(180deg)"
11286
11540
  },
11287
11541
  disabled: {
11288
11542
  "& $arrow": {
@@ -11295,21 +11549,27 @@
11295
11549
  }
11296
11550
  },
11297
11551
  icon: {
11298
- width: 16,
11299
- height: 16
11552
+ width: CONTROL.ICON_INNER_SIZE,
11553
+ height: CONTROL.ICON_INNER_SIZE
11554
+ },
11555
+ iconWrapper: {
11556
+ display: "flex",
11557
+ alignItems: "center"
11300
11558
  }
11301
11559
  });
11302
11560
  var baseInputStyles = {
11303
- input: {
11561
+ inputContent: {
11304
11562
  paddingRight: 32
11305
11563
  },
11306
- disabled: {
11307
- "& $input": {
11308
- cursor: "default"
11564
+ tweakControlWrapper: {
11565
+ controls: {
11566
+ paddingRight: 40
11567
+ },
11568
+ icon: {
11569
+ "&:last-child": {
11570
+ paddingRight: 0
11571
+ }
11309
11572
  }
11310
- },
11311
- controls: {
11312
- paddingRight: 32
11313
11573
  }
11314
11574
  };
11315
11575
  var readonlyInputBaseStyles = {
@@ -11317,16 +11577,8 @@
11317
11577
  cursor: "pointer"
11318
11578
  }
11319
11579
  };
11320
- var multiSelectInputBaseStyles = {
11321
- inputIcon: {
11322
- "&:not($loading)": {
11323
- width: "auto"
11324
- }
11325
- }
11326
- };
11327
11580
  var readonlyInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11328
- var multiSelectInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, multiSelectInputBaseStyles);
11329
- var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
11581
+ var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
11330
11582
  var getInputStyles = function(param) {
11331
11583
  var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
11332
11584
  if (hasReadonlyInput && isMultiSelect) {
@@ -11335,21 +11587,8 @@
11335
11587
  if (hasReadonlyInput && !isMultiSelect) {
11336
11588
  return readonlyInputStyles;
11337
11589
  }
11338
- if (!hasReadonlyInput && isMultiSelect) {
11339
- return multiSelectInputStyles;
11340
- }
11341
11590
  return baseInputStyles;
11342
11591
  };
11343
- var searchInputStyles$3 = {
11344
- tweakInput: {
11345
- inputWrapper: {
11346
- height: 48,
11347
- borderRadius: 0,
11348
- border: "none",
11349
- backgroundColor: "transparent"
11350
- }
11351
- }
11352
- };
11353
11592
  function _array_like_to_array$i(arr, len) {
11354
11593
  if (len == null || len > arr.length)
11355
11594
  len = arr.length;
@@ -11484,10 +11723,10 @@
11484
11723
  }
11485
11724
  return target;
11486
11725
  }
11487
- function _object_without_properties$c(source, excluded) {
11726
+ function _object_without_properties$d(source, excluded) {
11488
11727
  if (source == null)
11489
11728
  return {};
11490
- var target = _object_without_properties_loose$c(source, excluded);
11729
+ var target = _object_without_properties_loose$d(source, excluded);
11491
11730
  var key, i;
11492
11731
  if (Object.getOwnPropertySymbols) {
11493
11732
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -11502,7 +11741,7 @@
11502
11741
  }
11503
11742
  return target;
11504
11743
  }
11505
- function _object_without_properties_loose$c(source, excluded) {
11744
+ function _object_without_properties_loose$d(source, excluded) {
11506
11745
  if (source == null)
11507
11746
  return {};
11508
11747
  var target = {};
@@ -11639,7 +11878,7 @@
11639
11878
  }
11640
11879
  function Select(props) {
11641
11880
  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, [
11881
+ 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
11882
  "options",
11644
11883
  "isMultiSelect",
11645
11884
  "value",
@@ -11661,7 +11900,7 @@
11661
11900
  "dropdownIcon",
11662
11901
  "shouldScrollToList",
11663
11902
  "searchInput",
11664
- "iconType",
11903
+ "icon",
11665
11904
  "onChange",
11666
11905
  "onFocus",
11667
11906
  "onBlur",
@@ -11672,16 +11911,23 @@
11672
11911
  "convertValueToString",
11673
11912
  "convertValueToId",
11674
11913
  "convertValueToReactNode",
11675
- "optionsFilter"
11914
+ "optionsFilter",
11915
+ "infoMessage",
11916
+ "errorMessage"
11676
11917
  ]);
11677
11918
  var classes = useStyles$D({
11678
11919
  theme: tweakStyles
11679
11920
  });
11680
- var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$c(_ref, [
11921
+ var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
11681
11922
  "shouldRenderInList"
11682
11923
  ]);
11683
11924
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11684
11925
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11926
+ var tweakControlGroupStyles = useTweakStyles({
11927
+ tweakStyles,
11928
+ className: "tweakControlGroup",
11929
+ currentComponentName: "Select"
11930
+ });
11685
11931
  var tweakInputStyles = useTweakStyles({
11686
11932
  innerStyles: getInputStyles({
11687
11933
  hasReadonlyInput,
@@ -11692,7 +11938,6 @@
11692
11938
  currentComponentName: "Select"
11693
11939
  });
11694
11940
  var tweakSearchInputStyles = useTweakStyles({
11695
- innerStyles: searchInputStyles$3,
11696
11941
  tweakStyles,
11697
11942
  className: "tweakSearchInput",
11698
11943
  currentComponentName: "Select"
@@ -11774,7 +12019,7 @@
11774
12019
  ]);
11775
12020
  var getDropdownOffset = function() {
11776
12021
  var _input_current_parentElement2;
11777
- if (trueReactPlatformHelpers.isEmpty(input.current) || inputProps.errorPosition === "top") {
12022
+ if (trueReactPlatformHelpers.isEmpty(input.current)) {
11778
12023
  return 0;
11779
12024
  }
11780
12025
  var _input_current_parentElement_offsetHeight;
@@ -12086,7 +12331,8 @@
12086
12331
  onToggleCheckbox: handleToggleOptionCheckbox
12087
12332
  })
12088
12333
  }));
12089
- var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, {
12334
+ var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
12335
+ className: classes.iconWrapper,
12090
12336
  children: [
12091
12337
  shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
12092
12338
  className: classes.counter,
@@ -12096,59 +12342,62 @@
12096
12342
  ")"
12097
12343
  ]
12098
12344
  }),
12099
- trueReactPlatformHelpers.isNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
12345
+ trueReactPlatformHelpers.isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
12100
12346
  className: classes.icon,
12101
- children: renderIcon(iconType)
12347
+ children: renderIcon(icon)
12102
12348
  })
12103
12349
  ]
12104
12350
  }) : 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)
12351
+ return /* @__PURE__ */ jsx(ControlGroup, {
12352
+ errorMessage,
12353
+ infoMessage,
12354
+ tweakStyles: tweakControlGroupStyles,
12355
+ children: /* @__PURE__ */ jsxs("div", {
12356
+ className: classes.root,
12357
+ onKeyDown: handleKeyDown,
12358
+ ref: root2,
12359
+ children: [
12360
+ /* @__PURE__ */ jsxs("div", {
12361
+ className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12362
+ onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12363
+ ref: inputWrapper,
12364
+ children: [
12365
+ /* @__PURE__ */ jsx(InputBase, _object_spread$I({
12366
+ value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
12367
+ onChange: handleInputChange,
12368
+ isActive: isListOpen || isActive,
12369
+ isReadonly: hasReadonlyInput,
12370
+ onFocus: handleFocus,
12371
+ onBlur: handleBlur,
12372
+ isDisabled,
12373
+ ref: input,
12374
+ isLoading: areOptionsLoading,
12375
+ tweakStyles: tweakInputStyles,
12376
+ testId,
12377
+ icon: isMultiSelect ? multiSelectCounterWithIcon : icon
12378
+ }, inputProps)),
12379
+ /* @__PURE__ */ jsx("div", {
12380
+ onMouseDown: function(event) {
12381
+ event.preventDefault();
12382
+ },
12383
+ onClick: onArrowClick,
12384
+ className: clsx(classes.arrow, isOpen && classes.activeArrow),
12385
+ children: renderIcon(dropdownIcon)
12386
+ })
12387
+ ]
12388
+ }),
12389
+ shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
12390
+ container: shouldRenderInBody ? document.body : inputWrapper.current,
12391
+ children: /* @__PURE__ */ jsx(Fragment, {
12392
+ children: listEl
12136
12393
  })
12137
- ]
12138
- }),
12139
- shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
12140
- container: shouldRenderInBody ? document.body : inputWrapper.current,
12141
- children: /* @__PURE__ */ jsx(Fragment, {
12142
- children: listEl
12394
+ }) : /* @__PURE__ */ jsx(Fragment, {
12395
+ children: isOpen && listEl
12143
12396
  })
12144
- }) : /* @__PURE__ */ jsx(Fragment, {
12145
- children: isOpen && listEl
12146
- })
12147
- ]
12397
+ ]
12398
+ })
12148
12399
  });
12149
12400
  }
12150
- var SELECT_PADDING_LEFT = 12;
12151
- var SELECT_PADDING_RIGHT = 24;
12152
12401
  var useStyles$C = createThemedStyles("DatePickerHeader", {
12153
12402
  btn: {
12154
12403
  width: 36,
@@ -12160,26 +12409,6 @@
12160
12409
  cursor: "pointer",
12161
12410
  marginLeft: 8
12162
12411
  },
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
12412
  header: {
12184
12413
  margin: 6,
12185
12414
  display: "flex",
@@ -12197,22 +12426,16 @@
12197
12426
  minHeight: 35
12198
12427
  }
12199
12428
  },
12200
- arrow: {
12201
- right: 0,
12202
- top: 9,
12203
- width: 16,
12204
- height: 16
12205
- },
12206
12429
  tweakInput: {
12207
- inputWrapper: {
12208
- height: 35,
12209
- border: "none"
12430
+ tweakControlWrapper: {
12431
+ root: {
12432
+ "--control-height": "35px",
12433
+ border: "none"
12434
+ }
12210
12435
  },
12211
- input: {
12436
+ inputContent: {
12212
12437
  fontSize: 16,
12213
- fontWeight: "bold",
12214
- paddingRight: SELECT_PADDING_RIGHT - 8,
12215
- paddingLeft: SELECT_PADDING_LEFT
12438
+ fontWeight: "bold"
12216
12439
  }
12217
12440
  }
12218
12441
  };
@@ -12235,47 +12458,25 @@
12235
12458
  return /* @__PURE__ */ jsxs("div", {
12236
12459
  className: classes.header,
12237
12460
  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
- ]
12461
+ /* @__PURE__ */ jsx(Select, {
12462
+ value: months[dateFns.getMonth(date)],
12463
+ options: months,
12464
+ dropdownIcon: "chevron-down-small",
12465
+ isAutoSized: true,
12466
+ tweakStyles: tweakSelectStyles,
12467
+ onChange: function(value) {
12468
+ return changeMonth(months.indexOf(value));
12469
+ }
12258
12470
  }),
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
- ]
12471
+ /* @__PURE__ */ jsx(Select, {
12472
+ value: dateFns.getYear(date),
12473
+ options: years,
12474
+ dropdownIcon: "chevron-down-small",
12475
+ isAutoSized: true,
12476
+ tweakStyles: tweakSelectStyles,
12477
+ onChange: function(value) {
12478
+ return changeYear(value);
12479
+ }
12279
12480
  }),
12280
12481
  /* @__PURE__ */ jsxs("div", {
12281
12482
  className: classes.buttons,
@@ -12444,10 +12645,10 @@
12444
12645
  }
12445
12646
  return target;
12446
12647
  }
12447
- function _object_without_properties$b(source, excluded) {
12648
+ function _object_without_properties$c(source, excluded) {
12448
12649
  if (source == null)
12449
12650
  return {};
12450
- var target = _object_without_properties_loose$b(source, excluded);
12651
+ var target = _object_without_properties_loose$c(source, excluded);
12451
12652
  var key, i;
12452
12653
  if (Object.getOwnPropertySymbols) {
12453
12654
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -12462,7 +12663,7 @@
12462
12663
  }
12463
12664
  return target;
12464
12665
  }
12465
- function _object_without_properties_loose$b(source, excluded) {
12666
+ function _object_without_properties_loose$c(source, excluded) {
12466
12667
  if (source == null)
12467
12668
  return {};
12468
12669
  var target = {};
@@ -12493,7 +12694,7 @@
12493
12694
  return _array_like_to_array$h(o, minLen);
12494
12695
  }
12495
12696
  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, [
12697
+ 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
12698
  "data",
12498
12699
  "selectedDate",
12499
12700
  "minDate",
@@ -12569,7 +12770,7 @@
12569
12770
  isDisabled,
12570
12771
  isClearable,
12571
12772
  isActive: isOpen,
12572
- iconType: isClearable && hasDateInputValue ? void 0 : "calendar",
12773
+ icon: isClearable && hasDateInputValue ? void 0 : "calendar",
12573
12774
  tweakStyles: tweakDateInputStyles
12574
12775
  }), isRange ? {
12575
12776
  startDate: startDateValue,
@@ -13311,10 +13512,10 @@
13311
13512
  }
13312
13513
  return target;
13313
13514
  }
13314
- function _object_without_properties$a(source, excluded) {
13515
+ function _object_without_properties$b(source, excluded) {
13315
13516
  if (source == null)
13316
13517
  return {};
13317
- var target = _object_without_properties_loose$a(source, excluded);
13518
+ var target = _object_without_properties_loose$b(source, excluded);
13318
13519
  var key, i;
13319
13520
  if (Object.getOwnPropertySymbols) {
13320
13521
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -13329,7 +13530,7 @@
13329
13530
  }
13330
13531
  return target;
13331
13532
  }
13332
- function _object_without_properties_loose$a(source, excluded) {
13533
+ function _object_without_properties_loose$b(source, excluded) {
13333
13534
  if (source == null)
13334
13535
  return {};
13335
13536
  var target = {};
@@ -13344,7 +13545,7 @@
13344
13545
  return target;
13345
13546
  }
13346
13547
  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, [
13548
+ 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
13549
  "icon",
13349
13550
  "size",
13350
13551
  "view",
@@ -14268,10 +14469,10 @@
14268
14469
  }
14269
14470
  return target;
14270
14471
  }
14271
- function _object_without_properties$9(source, excluded) {
14472
+ function _object_without_properties$a(source, excluded) {
14272
14473
  if (source == null)
14273
14474
  return {};
14274
- var target = _object_without_properties_loose$9(source, excluded);
14475
+ var target = _object_without_properties_loose$a(source, excluded);
14275
14476
  var key, i;
14276
14477
  if (Object.getOwnPropertySymbols) {
14277
14478
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -14286,7 +14487,7 @@
14286
14487
  }
14287
14488
  return target;
14288
14489
  }
14289
- function _object_without_properties_loose$9(source, excluded) {
14490
+ function _object_without_properties_loose$a(source, excluded) {
14290
14491
  if (source == null)
14291
14492
  return {};
14292
14493
  var target = {};
@@ -14419,7 +14620,7 @@
14419
14620
  }
14420
14621
  }
14421
14622
  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, [
14623
+ 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
14624
  "value",
14424
14625
  "canBeFloat",
14425
14626
  "canBeNegative",
@@ -14900,11 +15101,13 @@
14900
15101
  input: {
14901
15102
  minWidth: 120
14902
15103
  },
14903
- icon: {
14904
- padding: 0,
14905
- width: 24,
14906
- "&:last-child": {
14907
- paddingRight: 0
15104
+ tweakControlWrapper: {
15105
+ icon: {
15106
+ padding: 0,
15107
+ width: 24,
15108
+ "&:last-child": {
15109
+ paddingRight: 0
15110
+ }
14908
15111
  }
14909
15112
  }
14910
15113
  };
@@ -15020,7 +15223,6 @@
15020
15223
  onChange: handleFromChange,
15021
15224
  value: value === null || value === void 0 ? void 0 : value[0],
15022
15225
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
15023
- border: "bottom",
15024
15226
  canBeFloat,
15025
15227
  isClearable: true,
15026
15228
  min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
@@ -15045,7 +15247,6 @@
15045
15247
  onChange: handleToChange,
15046
15248
  value: value === null || value === void 0 ? void 0 : value[1],
15047
15249
  label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
15048
- border: "bottom",
15049
15250
  canBeFloat,
15050
15251
  isClearable: true,
15051
15252
  min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
@@ -15220,10 +15421,12 @@
15220
15421
  });
15221
15422
  var searchInputStyles$2 = {
15222
15423
  tweakInput: {
15223
- inputWrapper: {
15224
- backgroundColor: "transparent",
15225
- border: "none",
15226
- height: 40
15424
+ tweakControlWrapper: {
15425
+ root: {
15426
+ "--control-height": "40px",
15427
+ backgroundColor: "transparent",
15428
+ border: "none"
15429
+ }
15227
15430
  }
15228
15431
  }
15229
15432
  };
@@ -16178,10 +16381,12 @@
16178
16381
  });
16179
16382
  var searchInputStyles$1 = {
16180
16383
  tweakInput: {
16181
- inputWrapper: {
16182
- backgroundColor: "transparent",
16183
- border: "none",
16184
- height: 40
16384
+ tweakControlWrapper: {
16385
+ root: {
16386
+ "--control-height": "40px",
16387
+ backgroundColor: "transparent",
16388
+ border: "none"
16389
+ }
16185
16390
  }
16186
16391
  }
16187
16392
  };
@@ -18203,7 +18408,6 @@
18203
18408
  locale: dateLocale,
18204
18409
  onChangeDate: handleChangeFrom,
18205
18410
  tweakStyles: tweakStartDatePickerStyles,
18206
- border: "bottom",
18207
18411
  testId: trueReactPlatformHelpers.getTestId(testId, "from"),
18208
18412
  isClearable
18209
18413
  }, startPickerProps))
@@ -18218,7 +18422,6 @@
18218
18422
  locale: dateLocale,
18219
18423
  onChangeDate: handleChangeTo,
18220
18424
  tweakStyles: tweakEndDatePickerStyles,
18221
- border: "bottom",
18222
18425
  testId: trueReactPlatformHelpers.getTestId(testId, "to"),
18223
18426
  isClearable
18224
18427
  }, endPickerProps))
@@ -18765,16 +18968,17 @@
18765
18968
  });
18766
18969
  var searchInputStyles = {
18767
18970
  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"
18971
+ tweakControlWrapper: {
18972
+ root: {
18973
+ "--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
18974
+ backgroundColor: "transparent",
18975
+ border: "none",
18976
+ minWidth: 140
18977
+ },
18978
+ focused: {
18979
+ backgroundColor: "transparent",
18980
+ border: "none"
18981
+ }
18778
18982
  }
18779
18983
  }
18780
18984
  };
@@ -18898,7 +19102,7 @@
18898
19102
  return _array_like_to_array$8(o, minLen);
18899
19103
  }
18900
19104
  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;
19105
+ 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
19106
  var classes = useStyles$o({
18903
19107
  theme: tweakStyles
18904
19108
  });
@@ -18964,7 +19168,6 @@
18964
19168
  },
18965
19169
  testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
18966
19170
  maxLength,
18967
- isAutoSizeable,
18968
19171
  isDisabled
18969
19172
  }),
18970
19173
  /* @__PURE__ */ jsxs("div", {
@@ -26048,10 +26251,10 @@
26048
26251
  }
26049
26252
  return target;
26050
26253
  }
26051
- function _object_without_properties$8(source, excluded) {
26254
+ function _object_without_properties$9(source, excluded) {
26052
26255
  if (source == null)
26053
26256
  return {};
26054
- var target = _object_without_properties_loose$8(source, excluded);
26257
+ var target = _object_without_properties_loose$9(source, excluded);
26055
26258
  var key, i;
26056
26259
  if (Object.getOwnPropertySymbols) {
26057
26260
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26066,7 +26269,7 @@
26066
26269
  }
26067
26270
  return target;
26068
26271
  }
26069
- function _object_without_properties_loose$8(source, excluded) {
26272
+ function _object_without_properties_loose$9(source, excluded) {
26070
26273
  if (source == null)
26071
26274
  return {};
26072
26275
  var target = {};
@@ -26081,7 +26284,7 @@
26081
26284
  return target;
26082
26285
  }
26083
26286
  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, [
26287
+ 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
26288
  "row",
26086
26289
  "columnName",
26087
26290
  "config",
@@ -26424,10 +26627,10 @@
26424
26627
  }
26425
26628
  return target;
26426
26629
  }
26427
- function _object_without_properties$7(source, excluded) {
26630
+ function _object_without_properties$8(source, excluded) {
26428
26631
  if (source == null)
26429
26632
  return {};
26430
- var target = _object_without_properties_loose$7(source, excluded);
26633
+ var target = _object_without_properties_loose$8(source, excluded);
26431
26634
  var key, i;
26432
26635
  if (Object.getOwnPropertySymbols) {
26433
26636
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26442,7 +26645,7 @@
26442
26645
  }
26443
26646
  return target;
26444
26647
  }
26445
- function _object_without_properties_loose$7(source, excluded) {
26648
+ function _object_without_properties_loose$8(source, excluded) {
26446
26649
  if (source == null)
26447
26650
  return {};
26448
26651
  var target = {};
@@ -26457,7 +26660,7 @@
26457
26660
  return target;
26458
26661
  }
26459
26662
  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, [
26663
+ 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
26664
  "content",
26462
26665
  "headerContent",
26463
26666
  "config",
@@ -26690,11 +26893,11 @@
26690
26893
  right: BUTTONS_GAP,
26691
26894
  top: BUTTONS_GAP,
26692
26895
  bottom: BUTTONS_GAP,
26693
- zIndex: 1
26896
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
26694
26897
  },
26695
26898
  button: {
26696
26899
  width: "100%",
26697
- height: (dimensions.CONTROL_HEIGHT - 5) / 2,
26900
+ height: (dimensions.CONTROL.HEIGHT - 5) / 2,
26698
26901
  border: "none",
26699
26902
  outline: "none",
26700
26903
  backgroundColor: colors.GREY_BACKGROUND,
@@ -26731,12 +26934,12 @@
26731
26934
  });
26732
26935
  var inputStyles$2 = {
26733
26936
  input: {
26734
- "&:not($withControls)": {
26937
+ paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26938
+ },
26939
+ tweakControlWrapper: {
26940
+ controls: {
26735
26941
  paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26736
26942
  }
26737
- },
26738
- controls: {
26739
- paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
26740
26943
  }
26741
26944
  };
26742
26945
  function _define_property$k(obj, key, value) {
@@ -26791,10 +26994,10 @@
26791
26994
  }
26792
26995
  return target;
26793
26996
  }
26794
- function _object_without_properties$6(source, excluded) {
26997
+ function _object_without_properties$7(source, excluded) {
26795
26998
  if (source == null)
26796
26999
  return {};
26797
- var target = _object_without_properties_loose$6(source, excluded);
27000
+ var target = _object_without_properties_loose$7(source, excluded);
26798
27001
  var key, i;
26799
27002
  if (Object.getOwnPropertySymbols) {
26800
27003
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -26809,7 +27012,7 @@
26809
27012
  }
26810
27013
  return target;
26811
27014
  }
26812
- function _object_without_properties_loose$6(source, excluded) {
27015
+ function _object_without_properties_loose$7(source, excluded) {
26813
27016
  if (source == null)
26814
27017
  return {};
26815
27018
  var target = {};
@@ -26824,7 +27027,7 @@
26824
27027
  return target;
26825
27028
  }
26826
27029
  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, [
27030
+ 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
27031
  "value",
26829
27032
  "onChange",
26830
27033
  "min",
@@ -27272,10 +27475,10 @@
27272
27475
  }
27273
27476
  return target;
27274
27477
  }
27275
- function _object_without_properties$5(source, excluded) {
27478
+ function _object_without_properties$6(source, excluded) {
27276
27479
  if (source == null)
27277
27480
  return {};
27278
- var target = _object_without_properties_loose$5(source, excluded);
27481
+ var target = _object_without_properties_loose$6(source, excluded);
27279
27482
  var key, i;
27280
27483
  if (Object.getOwnPropertySymbols) {
27281
27484
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -27290,7 +27493,7 @@
27290
27493
  }
27291
27494
  return target;
27292
27495
  }
27293
- function _object_without_properties_loose$5(source, excluded) {
27496
+ function _object_without_properties_loose$6(source, excluded) {
27294
27497
  if (source == null)
27295
27498
  return {};
27296
27499
  var target = {};
@@ -27321,7 +27524,7 @@
27321
27524
  return _array_like_to_array$6(o, minLen);
27322
27525
  }
27323
27526
  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, [
27527
+ 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
27528
  "data",
27326
27529
  "tweakStyles",
27327
27530
  "title",
@@ -28166,7 +28369,7 @@
28166
28369
  },
28167
28370
  searchContainer: {
28168
28371
  width: "100%",
28169
- height: dimensions.CONTROL_HEIGHT,
28372
+ height: dimensions.CONTROL.HEIGHT,
28170
28373
  display: "flex",
28171
28374
  alignItems: "center",
28172
28375
  boxSizing: "border-box",
@@ -28247,9 +28450,11 @@
28247
28450
  }
28248
28451
  });
28249
28452
  var inputStyles$1 = {
28250
- inputWrapper: {
28251
- border: "none",
28252
- height: "calc(var(--control-height) - 2px)"
28453
+ tweakControlWrapper: {
28454
+ root: {
28455
+ border: "none",
28456
+ height: "calc(var(--control-height) - 2px)"
28457
+ }
28253
28458
  },
28254
28459
  input: {
28255
28460
  fontSize: 14,
@@ -28463,14 +28668,15 @@
28463
28668
  root: {
28464
28669
  width: "100%",
28465
28670
  position: "relative",
28466
- boxSizing: "border-box"
28671
+ boxSizing: "border-box",
28672
+ zIndex: 0
28467
28673
  },
28468
28674
  countrySelectContainer: {
28469
28675
  position: "absolute",
28470
28676
  left: 1,
28471
28677
  top: 1,
28472
28678
  width: COUNTRY_SELECT_WIDTH,
28473
- height: dimensions.CONTROL_HEIGHT - 2,
28679
+ height: dimensions.CONTROL.HEIGHT - 2,
28474
28680
  display: "flex",
28475
28681
  alignItems: "center",
28476
28682
  justifyContent: "center",
@@ -28481,7 +28687,7 @@
28481
28687
  ],
28482
28688
  transition: "border-color 0.2s ease-in",
28483
28689
  cursor: "pointer",
28484
- zIndex: 2
28690
+ zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
28485
28691
  },
28486
28692
  disabledCountrySelect: {
28487
28693
  cursor: "default"
@@ -28513,17 +28719,19 @@
28513
28719
  flagListContainer: {
28514
28720
  position: "absolute",
28515
28721
  width: "100%",
28516
- top: dimensions.CONTROL_HEIGHT + 6,
28722
+ top: dimensions.CONTROL.HEIGHT + 6,
28517
28723
  left: -1,
28518
28724
  zIndex: 3
28519
28725
  }
28520
28726
  });
28521
28727
  var inputStyles = {
28522
- inputWrapper: {
28523
- paddingLeft: COUNTRY_SELECT_WIDTH
28524
- },
28525
- label: {
28526
- marginLeft: COUNTRY_SELECT_WIDTH
28728
+ tweakControlWrapper: {
28729
+ root: {
28730
+ paddingLeft: COUNTRY_SELECT_WIDTH
28731
+ },
28732
+ label: {
28733
+ marginLeft: COUNTRY_SELECT_WIDTH
28734
+ }
28527
28735
  }
28528
28736
  };
28529
28737
  function _array_like_to_array$2(arr, len) {
@@ -28620,10 +28828,10 @@
28620
28828
  }
28621
28829
  return target;
28622
28830
  }
28623
- function _object_without_properties$4(source, excluded) {
28831
+ function _object_without_properties$5(source, excluded) {
28624
28832
  if (source == null)
28625
28833
  return {};
28626
- var target = _object_without_properties_loose$4(source, excluded);
28834
+ var target = _object_without_properties_loose$5(source, excluded);
28627
28835
  var key, i;
28628
28836
  if (Object.getOwnPropertySymbols) {
28629
28837
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -28638,7 +28846,7 @@
28638
28846
  }
28639
28847
  return target;
28640
28848
  }
28641
- function _object_without_properties_loose$4(source, excluded) {
28849
+ function _object_without_properties_loose$5(source, excluded) {
28642
28850
  if (source == null)
28643
28851
  return {};
28644
28852
  var target = {};
@@ -28669,7 +28877,7 @@
28669
28877
  return _array_like_to_array$2(o, minLen);
28670
28878
  }
28671
28879
  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, [
28880
+ 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
28881
  "locale",
28674
28882
  "value",
28675
28883
  "onChange",
@@ -29498,10 +29706,10 @@
29498
29706
  }
29499
29707
  return target;
29500
29708
  }
29501
- function _object_without_properties$3(source, excluded) {
29709
+ function _object_without_properties$4(source, excluded) {
29502
29710
  if (source == null)
29503
29711
  return {};
29504
- var target = _object_without_properties_loose$3(source, excluded);
29712
+ var target = _object_without_properties_loose$4(source, excluded);
29505
29713
  var key, i;
29506
29714
  if (Object.getOwnPropertySymbols) {
29507
29715
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -29516,7 +29724,7 @@
29516
29724
  }
29517
29725
  return target;
29518
29726
  }
29519
- function _object_without_properties_loose$3(source, excluded) {
29727
+ function _object_without_properties_loose$4(source, excluded) {
29520
29728
  if (source == null)
29521
29729
  return {};
29522
29730
  var target = {};
@@ -29633,7 +29841,7 @@
29633
29841
  }
29634
29842
  }
29635
29843
  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, [
29844
+ 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
29845
  "value",
29638
29846
  "smartType",
29639
29847
  "regExp",
@@ -30138,49 +30346,28 @@
30138
30346
  }
30139
30347
  return target;
30140
30348
  }
30141
- var PADDING_X = 12;
30142
30349
  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
30350
  textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
30165
30351
  width: "100%",
30166
30352
  height: "100%",
30167
- outline: "none",
30168
- outlineStyle: "none",
30169
30353
  fontFamily: "inherit",
30170
30354
  fontSize: 16,
30171
30355
  padding: [
30172
30356
  14,
30173
- PADDING_X,
30174
- 8
30357
+ 0,
30358
+ 8,
30359
+ "var(--control-padding)"
30175
30360
  ],
30176
- scrollPadding: "14px 0 8px",
30361
+ scrollPadding: "14px 0 8px var(--control-padding)",
30362
+ scrollbarGutter: "stable",
30363
+ boxSizing: "border-box",
30364
+ outline: "none",
30365
+ outlineStyle: "none",
30177
30366
  transition: animations.defaultTransition,
30178
30367
  transitionProperty: "background-color",
30179
30368
  border: "none",
30180
30369
  resize: "none",
30181
- "&:disabled": {
30182
- extend: "disabled"
30183
- },
30370
+ background: "transparent",
30184
30371
  "&::placeholder": {
30185
30372
  opacity: 1
30186
30373
  },
@@ -30190,107 +30377,38 @@
30190
30377
  margin: 0
30191
30378
  }
30192
30379
  }),
30193
- autosize: {
30194
- display: "inline-grid",
30380
+ autoSized: {
30381
+ display: "grid",
30195
30382
  gridTemplateRows: "minmax(0, 100%)",
30196
30383
  "& > $textarea, &::after": {
30197
- gridArea: "1 / 1 / 2 / 2"
30384
+ gridArea: "1 / 2"
30198
30385
  },
30199
30386
  "&::after": {
30200
30387
  extend: "textarea",
30201
30388
  content: 'attr(data-value) " "',
30389
+ // Без пробела ломается!
30202
30390
  overflowWrap: "break-word",
30203
30391
  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"
30392
+ visibility: "hidden"
30271
30393
  }
30272
30394
  },
30273
30395
  symbolsCount: {
30274
- display: "block",
30275
30396
  textAlign: "right",
30276
30397
  marginTop: 4,
30277
30398
  fontSize: 12,
30278
30399
  marginLeft: "auto",
30279
- paddingLeft: 32,
30280
- whiteSpace: "nowrap"
30400
+ whiteSpace: "nowrap",
30401
+ pointerEvents: "none"
30281
30402
  },
30282
30403
  symbolsCountError: {
30283
30404
  color: "red"
30284
- },
30285
- footer: {
30286
- display: "flex"
30287
- },
30288
- info: {
30289
- fontSize: 12,
30290
- paddingTop: 4,
30291
- paddingLeft: 13
30292
30405
  }
30293
30406
  });
30407
+ var controlWrapperStyles = {
30408
+ label: {
30409
+ top: 16
30410
+ }
30411
+ };
30294
30412
  function _array_like_to_array(arr, len) {
30295
30413
  if (len == null || len > arr.length)
30296
30414
  len = arr.length;
@@ -30385,6 +30503,38 @@
30385
30503
  }
30386
30504
  return target;
30387
30505
  }
30506
+ function _object_without_properties$3(source, excluded) {
30507
+ if (source == null)
30508
+ return {};
30509
+ var target = _object_without_properties_loose$3(source, excluded);
30510
+ var key, i;
30511
+ if (Object.getOwnPropertySymbols) {
30512
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
30513
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
30514
+ key = sourceSymbolKeys[i];
30515
+ if (excluded.indexOf(key) >= 0)
30516
+ continue;
30517
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
30518
+ continue;
30519
+ target[key] = source[key];
30520
+ }
30521
+ }
30522
+ return target;
30523
+ }
30524
+ function _object_without_properties_loose$3(source, excluded) {
30525
+ if (source == null)
30526
+ return {};
30527
+ var target = {};
30528
+ var sourceKeys = Object.keys(source);
30529
+ var key, i;
30530
+ for (i = 0; i < sourceKeys.length; i++) {
30531
+ key = sourceKeys[i];
30532
+ if (excluded.indexOf(key) >= 0)
30533
+ continue;
30534
+ target[key] = source[key];
30535
+ }
30536
+ return target;
30537
+ }
30388
30538
  function _sliced_to_array(arr, i) {
30389
30539
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
30390
30540
  }
@@ -30402,93 +30552,107 @@
30402
30552
  return _array_like_to_array(o, minLen);
30403
30553
  }
30404
30554
  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;
30555
+ var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
30556
+ 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;
30557
+ _param.shouldFocusOnMount;
30558
+ 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, [
30559
+ "value",
30560
+ "label",
30561
+ "placeholder",
30562
+ "infoMessage",
30563
+ "errorMessage",
30564
+ "name",
30565
+ "shouldFocusOnMount",
30566
+ "hasCounter",
30567
+ "shouldTrimAfterMaxLength",
30568
+ "isAutoSized",
30569
+ "shouldAlwaysShowPlaceholder",
30570
+ "isDisabled",
30571
+ "isActive",
30572
+ "maxLength",
30573
+ "rows",
30574
+ "data",
30575
+ "testId",
30576
+ "tweakStyles",
30577
+ "onChange",
30578
+ "onPaste",
30579
+ "onFocus",
30580
+ "onBlur"
30581
+ ]);
30407
30582
  var classes = useStyles$4({
30408
30583
  theme: tweakStyles
30409
30584
  });
30585
+ var tweakControlGroupStyles = useTweakStyles({
30586
+ tweakStyles,
30587
+ className: "tweakControlGroup",
30588
+ currentComponentName: "TextArea"
30589
+ });
30590
+ var tweakControlWrapperStyles = useTweakStyles({
30591
+ innerStyles: controlWrapperStyles,
30592
+ tweakStyles,
30593
+ className: "tweakControlWrapper",
30594
+ currentComponentName: "TextArea"
30595
+ });
30410
30596
  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);
30597
+ var hasFocus = isFocused || isActive;
30598
+ var hasValue = value !== void 0 && value !== "";
30599
+ var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
30600
+ var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
30601
+ var handleChange = function(event) {
30602
+ onChange(event.currentTarget.value, event);
30415
30603
  };
30416
- var handleOnFocus = function(event) {
30604
+ var handleFocus = function(event) {
30417
30605
  setFocused(true);
30418
- if (onFocus !== void 0) {
30419
- onFocus(event);
30420
- }
30606
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
30421
30607
  };
30422
- var handleOnBlur = function(event) {
30608
+ var handleBlur = function(event) {
30423
30609
  setFocused(false);
30424
- if (onBlur !== void 0) {
30425
- onBlur(event);
30426
- }
30610
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
30427
30611
  };
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)), {
30612
+ return /* @__PURE__ */ jsxs(ControlGroup, {
30613
+ errorMessage,
30614
+ infoMessage,
30615
+ tweakStyles: tweakControlGroupStyles,
30451
30616
  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,
30617
+ /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
30618
+ label,
30619
+ tweakStyles: tweakControlWrapperStyles,
30620
+ isFocused: hasFocus,
30621
+ isDisabled,
30622
+ hasValue,
30623
+ isFullWidth: true,
30624
+ testId
30625
+ }, controlProps), {
30626
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({}, isAutoSized && {
30627
+ className: classes.autoSized,
30628
+ "data-value": value
30629
+ }), {
30630
+ children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
30631
+ ref,
30632
+ className: classes.textarea,
30633
+ value,
30634
+ disabled: isDisabled,
30635
+ placeholder: hasPlaceholder ? placeholder : void 0,
30636
+ maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
30637
+ name,
30638
+ rows,
30639
+ onPaste,
30640
+ onFocus: handleFocus,
30641
+ onBlur: handleBlur,
30642
+ onChange: handleChange
30643
+ }, trueReactPlatformHelpers.addDataAttributes(data, testId, "control")))
30644
+ }))
30645
+ })),
30646
+ hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
30647
+ className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
30467
30648
  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
- })
30649
+ value.length,
30650
+ " / ",
30651
+ maxLength
30484
30652
  ]
30485
- }),
30486
- hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
30487
- className: classes.error,
30488
- children: errorMessage
30489
30653
  })
30490
30654
  ]
30491
- }));
30655
+ });
30492
30656
  });
30493
30657
  var useStyles$3 = createThemedStyles("TextButton", {
30494
30658
  root: {
@@ -31197,11 +31361,6 @@
31197
31361
  }
31198
31362
  }));
31199
31363
  };
31200
- var withPopupStyles = {
31201
- popup: {
31202
- zIndex: 9999
31203
- }
31204
- };
31205
31364
  function _define_property(obj, key, value) {
31206
31365
  if (key in obj) {
31207
31366
  Object.defineProperty(obj, key, {
@@ -31287,7 +31446,7 @@
31287
31446
  return target;
31288
31447
  }
31289
31448
  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, [
31449
+ 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
31450
  "children",
31292
31451
  "eventType",
31293
31452
  "placement",
@@ -31295,29 +31454,22 @@
31295
31454
  "tooltipView",
31296
31455
  "tooltipType",
31297
31456
  "isDisabled",
31298
- "popupData",
31299
31457
  "tweakStyles"
31300
31458
  ]);
31301
31459
  var tweakWithPopupStyles = useTweakStyles({
31302
- innerStyles: withPopupStyles,
31303
31460
  tweakStyles,
31304
- className: "tweakWithPopup",
31305
- currentComponentName: "WithTooltip"
31461
+ className: "tweakWithPopup"
31306
31462
  });
31307
31463
  var tweakTooltipStyles = useTweakStyles({
31308
31464
  tweakStyles,
31309
- className: "tweakTooltip",
31310
- currentComponentName: "WithTooltip"
31465
+ className: "tweakTooltip"
31311
31466
  });
31312
31467
  return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
31313
31468
  trigger: children,
31314
31469
  placement,
31315
31470
  eventType,
31316
- popupData: _object_spread_props(_object_spread({}, popupData), {
31317
- tooltipView
31318
- }),
31319
- isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
31320
31471
  isTriggerWrapped: true,
31472
+ isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
31321
31473
  tweakStyles: tweakWithPopupStyles
31322
31474
  }, restProps), {
31323
31475
  children: /* @__PURE__ */ jsx(Tooltip, {
@@ -31335,6 +31487,8 @@
31335
31487
  exports2.Checkbox = Checkbox;
31336
31488
  exports2.CloseButton = CloseButton;
31337
31489
  exports2.Colors = Colors;
31490
+ exports2.ControlGroup = ControlGroup;
31491
+ exports2.ControlWrapper = ControlWrapper;
31338
31492
  exports2.CssBaseline = CssBaseline;
31339
31493
  exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
31340
31494
  exports2.DateInput = DateInput;
@@ -31360,6 +31514,7 @@
31360
31514
  exports2.IconButton = IconButton;
31361
31515
  exports2.IncrementInput = IncrementInput;
31362
31516
  exports2.Input = Input;
31517
+ exports2.InputBase = InputBase;
31363
31518
  exports2.List = List;
31364
31519
  exports2.ListItem = ListItem;
31365
31520
  exports2.Modal = Modal;