@skbkontur/react-ui 6.4.3-6344a.0 → 6.4.4-3a8c8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (669) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/Autocomplete/Autocomplete.js +1 -1
  3. package/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/components/Autocomplete/{Autocomplete.css.d.ts → Autocomplete.styles.d.ts} +1 -1
  5. package/components/Autocomplete/Autocomplete.styles.js +18 -0
  6. package/components/Autocomplete/Autocomplete.styles.js.map +1 -0
  7. package/components/Button/Button.js +2 -3
  8. package/components/Button/Button.js.map +1 -1
  9. package/components/Button/Button.mixins.js +6 -11
  10. package/components/Button/Button.mixins.js.map +1 -1
  11. package/components/Button/{Button.css.d.ts → Button.styles.d.ts} +2 -2
  12. package/components/Button/Button.styles.js +260 -0
  13. package/components/Button/Button.styles.js.map +1 -0
  14. package/components/Button/ButtonArrow.d.ts +1 -1
  15. package/components/Button/ButtonArrow.js +1 -1
  16. package/components/Button/ButtonArrow.js.map +1 -1
  17. package/components/Button/ButtonIcon.js +1 -1
  18. package/components/Button/ButtonIcon.js.map +1 -1
  19. package/components/Button/{ButtonIcon.css.d.ts → ButtonIcon.styles.d.ts} +1 -1
  20. package/components/Button/ButtonIcon.styles.js +53 -0
  21. package/components/Button/ButtonIcon.styles.js.map +1 -0
  22. package/components/Button/LoadingButtonIcon.js +1 -1
  23. package/components/Button/LoadingButtonIcon.js.map +1 -1
  24. package/components/Calendar/Calendar.js +1 -1
  25. package/components/Calendar/Calendar.js.map +1 -1
  26. package/components/Calendar/{Calendar.css.d.ts → Calendar.styles.d.ts} +1 -1
  27. package/components/Calendar/Calendar.styles.js +22 -0
  28. package/components/Calendar/Calendar.styles.js.map +1 -0
  29. package/components/Calendar/CalendarDay.js +1 -1
  30. package/components/Calendar/CalendarDay.js.map +1 -1
  31. package/components/Calendar/DayCellView.js +1 -1
  32. package/components/Calendar/DayCellView.js.map +1 -1
  33. package/components/Calendar/{DayCellView.css.d.ts → DayCellView.styles.d.ts} +1 -1
  34. package/components/Calendar/DayCellView.styles.js +31 -0
  35. package/components/Calendar/DayCellView.styles.js.map +1 -0
  36. package/components/Calendar/Month.js +2 -2
  37. package/components/Calendar/Month.js.map +1 -1
  38. package/components/Calendar/MonthView.js +1 -1
  39. package/components/Calendar/MonthView.js.map +1 -1
  40. package/components/Calendar/{MonthView.css.d.ts → MonthView.styles.d.ts} +1 -1
  41. package/components/Calendar/MonthView.styles.js +47 -0
  42. package/components/Calendar/MonthView.styles.js.map +1 -0
  43. package/components/Center/Center.js +1 -1
  44. package/components/Center/Center.js.map +1 -1
  45. package/components/Center/{Center.css.d.ts → Center.styles.d.ts} +1 -1
  46. package/components/Center/Center.styles.js +27 -0
  47. package/components/Center/Center.styles.js.map +1 -0
  48. package/components/Checkbox/Checkbox.js +1 -1
  49. package/components/Checkbox/Checkbox.js.map +1 -1
  50. package/components/Checkbox/Checkbox.mixins.js +6 -3
  51. package/components/Checkbox/Checkbox.mixins.js.map +1 -1
  52. package/components/Checkbox/{Checkbox.css.d.ts → Checkbox.styles.d.ts} +1 -2
  53. package/components/Checkbox/Checkbox.styles.js +100 -0
  54. package/components/Checkbox/Checkbox.styles.js.map +1 -0
  55. package/components/DateInput/DateFragmentsView.js +1 -1
  56. package/components/DateInput/DateFragmentsView.js.map +1 -1
  57. package/components/DateInput/{DateFragmentsView.css.d.ts → DateFragmentsView.styles.d.ts} +1 -1
  58. package/components/DateInput/DateFragmentsView.styles.js +28 -0
  59. package/components/DateInput/DateFragmentsView.styles.js.map +1 -0
  60. package/components/DateInput/DateInput.js +1 -1
  61. package/components/DateInput/DateInput.js.map +1 -1
  62. package/components/DateInput/{DateInput.css.d.ts → DateInput.styles.d.ts} +3 -2
  63. package/components/DateInput/DateInput.styles.js +29 -0
  64. package/components/DateInput/DateInput.styles.js.map +1 -0
  65. package/components/DatePicker/DatePicker.js +1 -1
  66. package/components/DatePicker/DatePicker.js.map +1 -1
  67. package/components/DatePicker/{DatePicker.css.d.ts → DatePicker.styles.d.ts} +1 -1
  68. package/components/DatePicker/DatePicker.styles.js +18 -0
  69. package/components/DatePicker/DatePicker.styles.js.map +1 -0
  70. package/components/DatePicker/MobilePicker.js +1 -1
  71. package/components/DatePicker/MobilePicker.js.map +1 -1
  72. package/components/DatePicker/MobilePicker.styles.d.ts +3 -0
  73. package/components/DatePicker/MobilePicker.styles.js +15 -0
  74. package/components/DatePicker/MobilePicker.styles.js.map +1 -0
  75. package/components/DateRangePicker/DateRangePicker.d.ts +4 -4
  76. package/components/DateRangePicker/DateRangePicker.js +27 -32
  77. package/components/DateRangePicker/DateRangePicker.js.map +1 -1
  78. package/components/DateRangePicker/{DateRangePicker.css.d.ts → DateRangePicker.styles.d.ts} +3 -7
  79. package/components/DateRangePicker/DateRangePicker.styles.js +57 -0
  80. package/components/DateRangePicker/DateRangePicker.styles.js.map +1 -0
  81. package/components/FileUploader/FileUploader.js +1 -1
  82. package/components/FileUploader/FileUploader.js.map +1 -1
  83. package/components/FileUploader/{FileUploader.css.d.ts → FileUploader.styles.d.ts} +3 -3
  84. package/components/FileUploader/FileUploader.styles.js +221 -0
  85. package/components/FileUploader/FileUploader.styles.js.map +1 -0
  86. package/components/FileUploader/FileUploaderFile.js +1 -1
  87. package/components/FileUploader/FileUploaderFile.js.map +1 -1
  88. package/components/FileUploader/{FileUploaderFile.css.d.ts → FileUploaderFile.styles.d.ts} +3 -3
  89. package/components/FileUploader/FileUploaderFile.styles.js +184 -0
  90. package/components/FileUploader/FileUploaderFile.styles.js.map +1 -0
  91. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js +1 -1
  92. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
  93. package/components/FileUploader/FileUploaderFileList/{FileUploaderFileList.css.d.ts → FileUploaderFileList.styles.d.ts} +3 -3
  94. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js +103 -0
  95. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js.map +1 -0
  96. package/components/FileUploader/FileUploaderFileStatusIcon.js +1 -1
  97. package/components/FileUploader/FileUploaderFileStatusIcon.js.map +1 -1
  98. package/components/GlobalLoader/GlobalLoaderView.js +7 -13
  99. package/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
  100. package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +17 -0
  101. package/components/GlobalLoader/GlobalLoaderView.styles.js +70 -0
  102. package/components/GlobalLoader/GlobalLoaderView.styles.js.map +1 -0
  103. package/components/Group/Group.js +1 -1
  104. package/components/Group/Group.js.map +1 -1
  105. package/components/Group/{Group.css.d.ts → Group.styles.d.ts} +1 -1
  106. package/components/Group/Group.styles.js +30 -0
  107. package/components/Group/Group.styles.js.map +1 -0
  108. package/components/Hint/Hint.js +1 -1
  109. package/components/Hint/Hint.js.map +1 -1
  110. package/components/Hint/{Hint.css.d.ts → Hint.styles.d.ts} +1 -1
  111. package/components/Hint/Hint.styles.js +18 -0
  112. package/components/Hint/Hint.styles.js.map +1 -0
  113. package/components/Input/Input.js +1 -1
  114. package/components/Input/Input.js.map +1 -1
  115. package/components/Input/{Input.css.d.ts → Input.styles.d.ts} +1 -1
  116. package/components/Input/Input.styles.js +68 -0
  117. package/components/Input/Input.styles.js.map +1 -0
  118. package/components/Input/InputLayout/InputLayout.js +1 -1
  119. package/components/Input/InputLayout/InputLayout.js.map +1 -1
  120. package/components/Input/InputLayout/{InputLayout.css.d.ts → InputLayout.styles.d.ts} +1 -1
  121. package/components/Input/InputLayout/InputLayout.styles.js +59 -0
  122. package/components/Input/InputLayout/InputLayout.styles.js.map +1 -0
  123. package/components/Input/InputLayout/InputLayoutAside.js +1 -1
  124. package/components/Input/InputLayout/InputLayoutAside.js.map +1 -1
  125. package/components/Input/InputLayout/InputLayoutAsideCounter.js +1 -1
  126. package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
  127. package/components/Input/InputLayout/InputLayoutAsideIcon.js +1 -1
  128. package/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
  129. package/components/Input/InputLayout/InputLayoutAsideText.js +1 -1
  130. package/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
  131. package/components/Kebab/Kebab.js +1 -1
  132. package/components/Kebab/Kebab.js.map +1 -1
  133. package/components/Kebab/{Kebab.css.d.ts → Kebab.styles.d.ts} +1 -1
  134. package/components/Kebab/Kebab.styles.js +36 -0
  135. package/components/Kebab/Kebab.styles.js.map +1 -0
  136. package/components/Link/Link.js +2 -3
  137. package/components/Link/Link.js.map +1 -1
  138. package/components/Link/{Link.css.d.ts → Link.styles.d.ts} +1 -1
  139. package/components/Link/Link.styles.js +82 -0
  140. package/components/Link/Link.styles.js.map +1 -0
  141. package/components/Link/LinkIcon.js +1 -1
  142. package/components/Link/LinkIcon.js.map +1 -1
  143. package/components/Loader/Loader.js +1 -1
  144. package/components/Loader/Loader.js.map +1 -1
  145. package/components/Loader/{Loader.css.d.ts → Loader.styles.d.ts} +1 -1
  146. package/components/Loader/Loader.styles.js +27 -0
  147. package/components/Loader/Loader.styles.js.map +1 -0
  148. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +1 -1
  149. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
  150. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +6 -0
  151. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +18 -0
  152. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +1 -0
  153. package/components/MaskedInput/{MaskedInput.css.d.ts → MaskedInput.styles.d.ts} +1 -1
  154. package/components/MaskedInput/MaskedInput.styles.js +19 -0
  155. package/components/MaskedInput/MaskedInput.styles.js.map +1 -0
  156. package/components/MaskedInput/MaskedInputLegacy.js +1 -1
  157. package/components/MaskedInput/MaskedInputLegacy.js.map +1 -1
  158. package/components/MaskedInputV2/MaskedInputV2.js +1 -1
  159. package/components/MaskedInputV2/MaskedInputV2.js.map +1 -1
  160. package/components/MaskedInputV2/{MaskedInputV2.css.d.ts → MaskedInputV2.styles.d.ts} +1 -1
  161. package/components/MaskedInputV2/MaskedInputV2.styles.js +19 -0
  162. package/components/MaskedInputV2/MaskedInputV2.styles.js.map +1 -0
  163. package/components/MaskedInputV2/internal/MaskOverlay.js +1 -1
  164. package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -1
  165. package/components/MaskedInputV2/internal/MaskedCore.js +1 -1
  166. package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -1
  167. package/components/MaskedInputV2/internal/{MaskedInternal.css.d.ts → MaskedInternal.styles.d.ts} +1 -1
  168. package/components/MaskedInputV2/internal/MaskedInternal.styles.js +34 -0
  169. package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +1 -0
  170. package/components/MenuFooter/MenuFooter.js +1 -1
  171. package/components/MenuFooter/MenuFooter.js.map +1 -1
  172. package/components/MenuFooter/{MenuFooter.css.d.ts → MenuFooter.styles.d.ts} +1 -1
  173. package/components/MenuFooter/MenuFooter.styles.js +34 -0
  174. package/components/MenuFooter/MenuFooter.styles.js.map +1 -0
  175. package/components/MenuHeader/MenuHeader.js +1 -1
  176. package/components/MenuHeader/MenuHeader.js.map +1 -1
  177. package/components/MenuHeader/{MenuHeader.css.d.ts → MenuHeader.styles.d.ts} +1 -1
  178. package/components/MenuHeader/MenuHeader.styles.js +34 -0
  179. package/components/MenuHeader/MenuHeader.styles.js.map +1 -0
  180. package/components/MenuItem/MenuItem.js +1 -1
  181. package/components/MenuItem/MenuItem.js.map +1 -1
  182. package/components/MenuItem/MenuItem.mixins.js +1 -1
  183. package/components/MenuItem/MenuItem.mixins.js.map +1 -1
  184. package/components/MenuItem/{MenuItem.css.d.ts → MenuItem.styles.d.ts} +3 -1
  185. package/components/MenuItem/MenuItem.styles.js +88 -0
  186. package/components/MenuItem/MenuItem.styles.js.map +1 -0
  187. package/components/MenuSeparator/MenuSeparator.js +1 -1
  188. package/components/MenuSeparator/MenuSeparator.js.map +1 -1
  189. package/components/MenuSeparator/{MenuSeparator.css.d.ts → MenuSeparator.styles.d.ts} +1 -1
  190. package/components/MenuSeparator/MenuSeparator.styles.js +18 -0
  191. package/components/MenuSeparator/MenuSeparator.styles.js.map +1 -0
  192. package/components/MiniModal/{MiniModal.css.d.ts → MiniModal.styles.d.ts} +1 -1
  193. package/components/MiniModal/MiniModal.styles.js +37 -0
  194. package/components/MiniModal/MiniModal.styles.js.map +1 -0
  195. package/components/MiniModal/MiniModalBody.js +1 -1
  196. package/components/MiniModal/MiniModalBody.js.map +1 -1
  197. package/components/MiniModal/MiniModalFooter.js +1 -1
  198. package/components/MiniModal/MiniModalFooter.js.map +1 -1
  199. package/components/MiniModal/MiniModalHeader.js +1 -1
  200. package/components/MiniModal/MiniModalHeader.js.map +1 -1
  201. package/components/MiniModal/MiniModalIndent.js +1 -1
  202. package/components/MiniModal/MiniModalIndent.js.map +1 -1
  203. package/components/Modal/Modal.js +1 -1
  204. package/components/Modal/Modal.js.map +1 -1
  205. package/components/Modal/{Modal.css.d.ts → Modal.styles.d.ts} +1 -1
  206. package/components/Modal/Modal.styles.js +167 -0
  207. package/components/Modal/Modal.styles.js.map +1 -0
  208. package/components/Modal/ModalBody.js +1 -1
  209. package/components/Modal/ModalBody.js.map +1 -1
  210. package/components/Modal/ModalClose.js +1 -1
  211. package/components/Modal/ModalClose.js.map +1 -1
  212. package/components/Modal/ModalFooter.js +1 -1
  213. package/components/Modal/ModalFooter.js.map +1 -1
  214. package/components/Modal/ModalHeader.js +1 -1
  215. package/components/Modal/ModalHeader.js.map +1 -1
  216. package/components/Modal/ModalSeparator.js +1 -1
  217. package/components/Modal/ModalSeparator.js.map +1 -1
  218. package/components/Paging/Paging.js +1 -1
  219. package/components/Paging/Paging.js.map +1 -1
  220. package/components/Paging/{Paging.css.d.ts → Paging.styles.d.ts} +1 -1
  221. package/components/Paging/Paging.styles.js +99 -0
  222. package/components/Paging/Paging.styles.js.map +1 -0
  223. package/components/PasswordInput/PasswordInput.js +1 -1
  224. package/components/PasswordInput/PasswordInput.js.map +1 -1
  225. package/components/PasswordInput/{PasswordInput.css.d.ts → PasswordInput.styles.d.ts} +1 -1
  226. package/components/PasswordInput/PasswordInput.styles.js +36 -0
  227. package/components/PasswordInput/PasswordInput.styles.js.map +1 -0
  228. package/components/Radio/Radio.js +1 -1
  229. package/components/Radio/Radio.js.map +1 -1
  230. package/components/Radio/Radio.mixins.js +7 -4
  231. package/components/Radio/Radio.mixins.js.map +1 -1
  232. package/components/Radio/{Radio.css.d.ts → Radio.styles.d.ts} +1 -2
  233. package/components/Radio/Radio.styles.js +100 -0
  234. package/components/Radio/Radio.styles.js.map +1 -0
  235. package/components/RadioGroup/RadioGroup.js +1 -1
  236. package/components/RadioGroup/RadioGroup.js.map +1 -1
  237. package/components/RadioGroup/{RadioGroup.css.d.ts → RadioGroup.styles.d.ts} +1 -1
  238. package/components/RadioGroup/RadioGroup.styles.js +24 -0
  239. package/components/RadioGroup/RadioGroup.styles.js.map +1 -0
  240. package/components/ScrollContainer/ScrollBar.js +1 -1
  241. package/components/ScrollContainer/ScrollBar.js.map +1 -1
  242. package/components/ScrollContainer/ScrollContainer.js +1 -1
  243. package/components/ScrollContainer/ScrollContainer.js.map +1 -1
  244. package/components/ScrollContainer/{ScrollContainer.css.d.ts → ScrollContainer.styles.d.ts} +1 -1
  245. package/components/ScrollContainer/ScrollContainer.styles.js +52 -0
  246. package/components/ScrollContainer/ScrollContainer.styles.js.map +1 -0
  247. package/components/Select/Select.js +2 -2
  248. package/components/Select/Select.js.map +1 -1
  249. package/components/Select/{Select.css.d.ts → Select.styles.d.ts} +1 -1
  250. package/components/Select/Select.styles.js +57 -0
  251. package/components/Select/Select.styles.js.map +1 -0
  252. package/components/SidePage/SidePage.js +1 -1
  253. package/components/SidePage/SidePage.js.map +1 -1
  254. package/components/SidePage/{SidePage.css.d.ts → SidePage.styles.d.ts} +1 -1
  255. package/components/SidePage/SidePage.styles.js +158 -0
  256. package/components/SidePage/SidePage.styles.js.map +1 -0
  257. package/components/SidePage/SidePageBody.js +1 -1
  258. package/components/SidePage/SidePageBody.js.map +1 -1
  259. package/components/SidePage/SidePageCloseButton.js +1 -1
  260. package/components/SidePage/SidePageCloseButton.js.map +1 -1
  261. package/components/SidePage/SidePageContainer.js +1 -1
  262. package/components/SidePage/SidePageContainer.js.map +1 -1
  263. package/components/SidePage/SidePageFooter.js +1 -1
  264. package/components/SidePage/SidePageFooter.js.map +1 -1
  265. package/components/SidePage/SidePageHeader.js +1 -1
  266. package/components/SidePage/SidePageHeader.js.map +1 -1
  267. package/components/Spinner/Spinner.js +1 -1
  268. package/components/Spinner/Spinner.js.map +1 -1
  269. package/components/Spinner/{Spinner.css.d.ts → Spinner.styles.d.ts} +1 -1
  270. package/components/Spinner/Spinner.styles.js +43 -0
  271. package/components/Spinner/Spinner.styles.js.map +1 -0
  272. package/components/Sticky/Sticky.js +1 -1
  273. package/components/Sticky/Sticky.js.map +1 -1
  274. package/components/Sticky/{Sticky.css.d.ts → Sticky.styles.d.ts} +1 -1
  275. package/components/Sticky/Sticky.styles.js +27 -0
  276. package/components/Sticky/Sticky.styles.js.map +1 -0
  277. package/components/Switcher/Switcher.js +1 -1
  278. package/components/Switcher/Switcher.js.map +1 -1
  279. package/components/Switcher/{Switcher.css.d.ts → Switcher.styles.d.ts} +1 -1
  280. package/components/Switcher/Switcher.styles.js +39 -0
  281. package/components/Switcher/Switcher.styles.js.map +1 -0
  282. package/components/Tabs/Indicator.js +1 -1
  283. package/components/Tabs/Indicator.js.map +1 -1
  284. package/components/Tabs/{Indicator.css.d.ts → Indicator.styles.d.ts} +1 -1
  285. package/components/Tabs/Indicator.styles.js +27 -0
  286. package/components/Tabs/Indicator.styles.js.map +1 -0
  287. package/components/Tabs/Tab.js +1 -1
  288. package/components/Tabs/Tab.js.map +1 -1
  289. package/components/Tabs/{Tab.css.d.ts → Tab.styles.d.ts} +3 -3
  290. package/components/Tabs/Tab.styles.js +105 -0
  291. package/components/Tabs/Tab.styles.js.map +1 -0
  292. package/components/Tabs/Tabs.js +1 -1
  293. package/components/Tabs/Tabs.js.map +1 -1
  294. package/components/Tabs/{Tabs.css.d.ts → Tabs.styles.d.ts} +1 -1
  295. package/components/Tabs/Tabs.styles.js +26 -0
  296. package/components/Tabs/Tabs.styles.js.map +1 -0
  297. package/components/Textarea/Textarea.js +1 -1
  298. package/components/Textarea/Textarea.js.map +1 -1
  299. package/components/Textarea/{Textarea.css.d.ts → Textarea.styles.d.ts} +1 -1
  300. package/components/Textarea/Textarea.styles.js +73 -0
  301. package/components/Textarea/Textarea.styles.js.map +1 -0
  302. package/components/Textarea/TextareaCounter.js +1 -1
  303. package/components/Textarea/TextareaCounter.js.map +1 -1
  304. package/components/TimePicker/TimePicker.js +1 -1
  305. package/components/TimePicker/TimePicker.js.map +1 -1
  306. package/components/TimePicker/{TimePicker.css.d.ts → TimePicker.styles.d.ts} +1 -1
  307. package/components/TimePicker/TimePicker.styles.js +39 -0
  308. package/components/TimePicker/TimePicker.styles.js.map +1 -0
  309. package/components/TimePicker/TimePickerItems.js +1 -1
  310. package/components/TimePicker/TimePickerItems.js.map +1 -1
  311. package/components/TimePicker/TimePickerPopup.js +1 -1
  312. package/components/TimePicker/TimePickerPopup.js.map +1 -1
  313. package/components/Toast/Toast.js +1 -1
  314. package/components/Toast/Toast.js.map +1 -1
  315. package/components/Toast/{Toast.css.d.ts → Toast.styles.d.ts} +1 -1
  316. package/components/Toast/Toast.styles.js +24 -0
  317. package/components/Toast/Toast.styles.js.map +1 -0
  318. package/components/Toast/ToastView.js +1 -1
  319. package/components/Toast/ToastView.js.map +1 -1
  320. package/components/Toast/{ToastView.css.d.ts → ToastView.styles.d.ts} +1 -1
  321. package/components/Toast/ToastView.styles.js +67 -0
  322. package/components/Toast/ToastView.styles.js.map +1 -0
  323. package/components/Toggle/Toggle.js +1 -1
  324. package/components/Toggle/Toggle.js.map +1 -1
  325. package/components/Toggle/Toggle.mixins.js +7 -4
  326. package/components/Toggle/Toggle.mixins.js.map +1 -1
  327. package/components/Toggle/{Toggle.css.d.ts → Toggle.styles.d.ts} +1 -2
  328. package/components/Toggle/Toggle.styles.js +147 -0
  329. package/components/Toggle/Toggle.styles.js.map +1 -0
  330. package/components/Token/Token.js +1 -1
  331. package/components/Token/Token.js.map +1 -1
  332. package/components/Token/{Token.css.d.ts → Token.styles.d.ts} +1 -1
  333. package/components/Token/Token.styles.js +67 -0
  334. package/components/Token/Token.styles.js.map +1 -0
  335. package/components/Token/TokenView.js +1 -1
  336. package/components/Token/TokenView.js.map +1 -1
  337. package/components/TokenInput/TextWidthHelper.js +1 -1
  338. package/components/TokenInput/TextWidthHelper.js.map +1 -1
  339. package/components/TokenInput/TokenInput.js +1 -1
  340. package/components/TokenInput/TokenInput.js.map +1 -1
  341. package/components/TokenInput/{TokenInput.css.d.ts → TokenInput.styles.d.ts} +1 -1
  342. package/components/TokenInput/TokenInput.styles.js +68 -0
  343. package/components/TokenInput/TokenInput.styles.js.map +1 -0
  344. package/components/Tooltip/Tooltip.js +1 -1
  345. package/components/Tooltip/Tooltip.js.map +1 -1
  346. package/components/Tooltip/{Tooltip.css.d.ts → Tooltip.styles.d.ts} +1 -1
  347. package/components/Tooltip/Tooltip.styles.js +36 -0
  348. package/components/Tooltip/Tooltip.styles.js.map +1 -0
  349. package/internal/ClearCrossIcon/ClearCrossIcon.js +1 -1
  350. package/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
  351. package/internal/ClearCrossIcon/{ClearCrossIcon.css.d.ts → ClearCrossIcon.styles.d.ts} +3 -2
  352. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js +36 -0
  353. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -0
  354. package/internal/CloseButtonIcon/CloseButtonIcon.js +8 -13
  355. package/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
  356. package/internal/CloseButtonIcon/{CloseButtonIcon.css.d.ts → CloseButtonIcon.styles.d.ts} +3 -4
  357. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js +24 -0
  358. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +1 -0
  359. package/internal/CommonWrapper/CommonWrapper.d.ts +1 -6
  360. package/internal/CommonWrapper/CommonWrapper.js +4 -18
  361. package/internal/CommonWrapper/CommonWrapper.js.map +1 -1
  362. package/internal/CustomComboBox/ComboBoxView.js +2 -2
  363. package/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  364. package/internal/CustomComboBox/CustomComboBox.styles.d.ts +4 -0
  365. package/internal/CustomComboBox/CustomComboBox.styles.js +18 -0
  366. package/internal/CustomComboBox/CustomComboBox.styles.js.map +1 -0
  367. package/internal/DateSelect/DateSelect.js +1 -1
  368. package/internal/DateSelect/DateSelect.js.map +1 -1
  369. package/internal/DateSelect/{DateSelect.css.d.ts → DateSelect.styles.d.ts} +1 -1
  370. package/internal/DateSelect/DateSelect.styles.js +24 -0
  371. package/internal/DateSelect/DateSelect.styles.js.map +1 -0
  372. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +1 -1
  373. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +11 -7
  374. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
  375. package/internal/InputLikeText/InputLikeText.js +2 -2
  376. package/internal/InputLikeText/InputLikeText.js.map +1 -1
  377. package/internal/InputLikeText/{InputLikeText.css.d.ts → InputLikeText.styles.d.ts} +1 -1
  378. package/internal/InputLikeText/InputLikeText.styles.js +30 -0
  379. package/internal/InputLikeText/InputLikeText.styles.js.map +1 -0
  380. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js +4 -4
  381. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js.map +1 -1
  382. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.d.ts +3 -0
  383. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js +15 -0
  384. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js.map +1 -0
  385. package/internal/MaskCharLowLine/MaskCharLowLine.js +1 -1
  386. package/internal/MaskCharLowLine/MaskCharLowLine.js.map +1 -1
  387. package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +3 -0
  388. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js +15 -0
  389. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js.map +1 -0
  390. package/internal/Menu/Menu.js +1 -1
  391. package/internal/Menu/Menu.js.map +1 -1
  392. package/internal/Menu/{Menu.css.d.ts → Menu.styles.d.ts} +1 -1
  393. package/internal/Menu/Menu.styles.js +51 -0
  394. package/internal/Menu/Menu.styles.js.map +1 -0
  395. package/internal/MenuMessage/MenuMessage.js +1 -1
  396. package/internal/MenuMessage/MenuMessage.js.map +1 -1
  397. package/internal/MenuMessage/{MenuMessage.css.d.ts → MenuMessage.styles.d.ts} +1 -1
  398. package/internal/MenuMessage/MenuMessage.styles.js +41 -0
  399. package/internal/MenuMessage/MenuMessage.styles.js.map +1 -0
  400. package/internal/MobilePopup/MobilePopup.js +1 -1
  401. package/internal/MobilePopup/MobilePopup.js.map +1 -1
  402. package/internal/MobilePopup/{MobilePopup.css.d.ts → MobilePopup.styles.d.ts} +1 -1
  403. package/internal/MobilePopup/MobilePopup.styles.js +57 -0
  404. package/internal/MobilePopup/MobilePopup.styles.js.map +1 -0
  405. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js +1 -1
  406. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
  407. package/internal/MobilePopup/MobilePopupFooter/{MobilePopupFooter.css.d.ts → MobilePopupFooter.styles.d.ts} +1 -1
  408. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js +25 -0
  409. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +1 -0
  410. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js +1 -1
  411. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
  412. package/internal/MobilePopup/MobilePopupHeader/{MobilePopupHeader.css.d.ts → MobilePopupHeader.styles.d.ts} +1 -1
  413. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js +47 -0
  414. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +1 -0
  415. package/internal/NativeDateInput/NativeDateInput.js +1 -1
  416. package/internal/NativeDateInput/NativeDateInput.js.map +1 -1
  417. package/internal/NativeDateInput/NativeDateInput.styles.d.ts +3 -0
  418. package/internal/NativeDateInput/NativeDateInput.styles.js +15 -0
  419. package/internal/NativeDateInput/NativeDateInput.styles.js.map +1 -0
  420. package/internal/NativeTimeInput/NativeTimeInput.js +1 -1
  421. package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -1
  422. package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +3 -0
  423. package/internal/NativeTimeInput/NativeTimeInput.styles.js +15 -0
  424. package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +1 -0
  425. package/internal/Popup/Popup.js +1 -1
  426. package/internal/Popup/Popup.js.map +1 -1
  427. package/internal/Popup/{Popup.css.d.ts → Popup.styles.d.ts} +1 -1
  428. package/internal/Popup/Popup.styles.js +69 -0
  429. package/internal/Popup/Popup.styles.js.map +1 -0
  430. package/internal/Popup/PopupPin.js +1 -1
  431. package/internal/Popup/PopupPin.js.map +1 -1
  432. package/internal/Popup/{PopupPin.css.d.ts → PopupPin.styles.d.ts} +1 -1
  433. package/internal/Popup/PopupPin.styles.js +33 -0
  434. package/internal/Popup/PopupPin.styles.js.map +1 -0
  435. package/internal/PopupMenu/PopupMenu.js +1 -1
  436. package/internal/PopupMenu/PopupMenu.js.map +1 -1
  437. package/internal/PopupMenu/PopupMenu.styles.d.ts +4 -0
  438. package/internal/PopupMenu/PopupMenu.styles.js +18 -0
  439. package/internal/PopupMenu/PopupMenu.styles.js.map +1 -0
  440. package/internal/RenderContainer/RenderContainer.d.ts +0 -1
  441. package/internal/RenderContainer/RenderContainer.js +1 -26
  442. package/internal/RenderContainer/RenderContainer.js.map +1 -1
  443. package/internal/ResizeDetector/ResizeDetector.js +1 -1
  444. package/internal/ResizeDetector/ResizeDetector.js.map +1 -1
  445. package/internal/ResizeDetector/{ResizeDetector.css.d.ts → ResizeDetector.styles.d.ts} +1 -1
  446. package/internal/ResizeDetector/ResizeDetector.styles.js +27 -0
  447. package/internal/ResizeDetector/ResizeDetector.styles.js.map +1 -0
  448. package/internal/SpinnerIcon/SpinnerIcon.js +1 -1
  449. package/internal/SpinnerIcon/SpinnerIcon.js.map +1 -1
  450. package/internal/SpinnerIcon/{SpinnerIcon.css.d.ts → SpinnerIcon.styles.d.ts} +1 -1
  451. package/internal/SpinnerIcon/SpinnerIcon.styles.js +24 -0
  452. package/internal/SpinnerIcon/SpinnerIcon.styles.js.map +1 -0
  453. package/internal/TextWidthHelper/TextWidthHelper.js +1 -1
  454. package/internal/TextWidthHelper/TextWidthHelper.js.map +1 -1
  455. package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +4 -0
  456. package/internal/TextWidthHelper/TextWidthHelper.styles.js +18 -0
  457. package/internal/TextWidthHelper/TextWidthHelper.styles.js.map +1 -0
  458. package/internal/TimeInput/TimeFragments.js +1 -1
  459. package/internal/TimeInput/TimeFragments.js.map +1 -1
  460. package/internal/TimeInput/{TimeFragments.css.d.ts → TimeFragments.styles.d.ts} +1 -1
  461. package/internal/TimeInput/TimeFragments.styles.js +78 -0
  462. package/internal/TimeInput/TimeFragments.styles.js.map +1 -0
  463. package/internal/TimeInput/TimeInput.js +1 -1
  464. package/internal/TimeInput/TimeInput.js.map +1 -1
  465. package/internal/TimeInput/{TimeInput.css.d.ts → TimeInput.styles.d.ts} +1 -1
  466. package/internal/TimeInput/TimeInput.styles.js +24 -0
  467. package/internal/TimeInput/TimeInput.styles.js.map +1 -0
  468. package/internal/icons2022/BaseIcon.js +1 -1
  469. package/internal/icons2022/BaseIcon.js.map +1 -1
  470. package/internal/icons2022/BaseIcon.styles.d.ts +3 -0
  471. package/internal/icons2022/BaseIcon.styles.js +16 -0
  472. package/internal/icons2022/BaseIcon.styles.js.map +1 -0
  473. package/internal/icons2022/LoadingIcon.js +1 -1
  474. package/internal/icons2022/LoadingIcon.js.map +1 -1
  475. package/lib/dom/tabbableHelpers.js +22 -1
  476. package/lib/dom/tabbableHelpers.js.map +1 -1
  477. package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +0 -6
  478. package/lib/styles/getLabGrotesqueBaselineCompensation.js +0 -26
  479. package/lib/styles/getLabGrotesqueBaselineCompensation.js.map +1 -1
  480. package/lib/theming/AnimationKeyframes.d.ts +1 -1
  481. package/lib/theming/AnimationKeyframes.js +1 -1
  482. package/lib/theming/AnimationKeyframes.js.map +1 -1
  483. package/lib/theming/Emotion.d.ts +2 -6
  484. package/lib/theming/Emotion.js +11 -34
  485. package/lib/theming/Emotion.js.map +1 -1
  486. package/package.json +5 -15
  487. package/components/Autocomplete/Autocomplete.css.js +0 -3
  488. package/components/Autocomplete/Autocomplete.css.js.map +0 -1
  489. package/components/Button/Button.css.js +0 -5
  490. package/components/Button/Button.css.js.map +0 -1
  491. package/components/Button/ButtonIcon.css.js +0 -3
  492. package/components/Button/ButtonIcon.css.js.map +0 -1
  493. package/components/Calendar/Calendar.css.js +0 -3
  494. package/components/Calendar/Calendar.css.js.map +0 -1
  495. package/components/Calendar/DayCellView.css.js +0 -3
  496. package/components/Calendar/DayCellView.css.js.map +0 -1
  497. package/components/Calendar/MonthView.css.js +0 -3
  498. package/components/Calendar/MonthView.css.js.map +0 -1
  499. package/components/Center/Center.css.js +0 -3
  500. package/components/Center/Center.css.js.map +0 -1
  501. package/components/Checkbox/Checkbox.css.js +0 -5
  502. package/components/Checkbox/Checkbox.css.js.map +0 -1
  503. package/components/DateInput/DateFragmentsView.css.js +0 -3
  504. package/components/DateInput/DateFragmentsView.css.js.map +0 -1
  505. package/components/DateInput/DateInput.css.js +0 -3
  506. package/components/DateInput/DateInput.css.js.map +0 -1
  507. package/components/DatePicker/DatePicker.css.js +0 -3
  508. package/components/DatePicker/DatePicker.css.js.map +0 -1
  509. package/components/DatePicker/MobilePicker.css.d.ts +0 -3
  510. package/components/DatePicker/MobilePicker.css.js +0 -3
  511. package/components/DatePicker/MobilePicker.css.js.map +0 -1
  512. package/components/DateRangePicker/DateRangePicker.css.js +0 -3
  513. package/components/DateRangePicker/DateRangePicker.css.js.map +0 -1
  514. package/components/FileUploader/FileUploader.css.js +0 -6
  515. package/components/FileUploader/FileUploader.css.js.map +0 -1
  516. package/components/FileUploader/FileUploaderFile.css.js +0 -5
  517. package/components/FileUploader/FileUploaderFile.css.js.map +0 -1
  518. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js +0 -5
  519. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js.map +0 -1
  520. package/components/GlobalLoader/GlobalLoaderView.css.d.ts +0 -21
  521. package/components/GlobalLoader/GlobalLoaderView.css.js +0 -4
  522. package/components/GlobalLoader/GlobalLoaderView.css.js.map +0 -1
  523. package/components/Group/Group.css.js +0 -3
  524. package/components/Group/Group.css.js.map +0 -1
  525. package/components/Hint/Hint.css.js +0 -3
  526. package/components/Hint/Hint.css.js.map +0 -1
  527. package/components/Input/Input.css.js +0 -3
  528. package/components/Input/Input.css.js.map +0 -1
  529. package/components/Input/InputLayout/InputLayout.css.js +0 -4
  530. package/components/Input/InputLayout/InputLayout.css.js.map +0 -1
  531. package/components/Kebab/Kebab.css.js +0 -3
  532. package/components/Kebab/Kebab.css.js.map +0 -1
  533. package/components/Link/Link.css.js +0 -3
  534. package/components/Link/Link.css.js.map +0 -1
  535. package/components/Loader/Loader.css.js +0 -3
  536. package/components/Loader/Loader.css.js.map +0 -1
  537. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.d.ts +0 -6
  538. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js +0 -4
  539. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js.map +0 -1
  540. package/components/MaskedInput/MaskedInput.css.js +0 -4
  541. package/components/MaskedInput/MaskedInput.css.js.map +0 -1
  542. package/components/MaskedInputV2/MaskedInputV2.css.js +0 -4
  543. package/components/MaskedInputV2/MaskedInputV2.css.js.map +0 -1
  544. package/components/MaskedInputV2/internal/MaskedInternal.css.js +0 -4
  545. package/components/MaskedInputV2/internal/MaskedInternal.css.js.map +0 -1
  546. package/components/MenuFooter/MenuFooter.css.js +0 -3
  547. package/components/MenuFooter/MenuFooter.css.js.map +0 -1
  548. package/components/MenuHeader/MenuHeader.css.js +0 -3
  549. package/components/MenuHeader/MenuHeader.css.js.map +0 -1
  550. package/components/MenuItem/MenuItem.css.js +0 -3
  551. package/components/MenuItem/MenuItem.css.js.map +0 -1
  552. package/components/MenuSeparator/MenuSeparator.css.js +0 -3
  553. package/components/MenuSeparator/MenuSeparator.css.js.map +0 -1
  554. package/components/MiniModal/MiniModal.css.js +0 -4
  555. package/components/MiniModal/MiniModal.css.js.map +0 -1
  556. package/components/Modal/Modal.css.js +0 -4
  557. package/components/Modal/Modal.css.js.map +0 -1
  558. package/components/Paging/Paging.css.js +0 -3
  559. package/components/Paging/Paging.css.js.map +0 -1
  560. package/components/PasswordInput/PasswordInput.css.js +0 -3
  561. package/components/PasswordInput/PasswordInput.css.js.map +0 -1
  562. package/components/Radio/Radio.css.js +0 -5
  563. package/components/Radio/Radio.css.js.map +0 -1
  564. package/components/RadioGroup/RadioGroup.css.js +0 -3
  565. package/components/RadioGroup/RadioGroup.css.js.map +0 -1
  566. package/components/ScrollContainer/ScrollContainer.css.js +0 -4
  567. package/components/ScrollContainer/ScrollContainer.css.js.map +0 -1
  568. package/components/Select/Select.css.js +0 -3
  569. package/components/Select/Select.css.js.map +0 -1
  570. package/components/SidePage/SidePage.css.js +0 -3
  571. package/components/SidePage/SidePage.css.js.map +0 -1
  572. package/components/Spinner/Spinner.css.js +0 -3
  573. package/components/Spinner/Spinner.css.js.map +0 -1
  574. package/components/Sticky/Sticky.css.js +0 -3
  575. package/components/Sticky/Sticky.css.js.map +0 -1
  576. package/components/Switcher/Switcher.css.js +0 -3
  577. package/components/Switcher/Switcher.css.js.map +0 -1
  578. package/components/Tabs/Indicator.css.js +0 -3
  579. package/components/Tabs/Indicator.css.js.map +0 -1
  580. package/components/Tabs/Tab.css.js +0 -6
  581. package/components/Tabs/Tab.css.js.map +0 -1
  582. package/components/Tabs/Tabs.css.js +0 -3
  583. package/components/Tabs/Tabs.css.js.map +0 -1
  584. package/components/Textarea/Textarea.css.js +0 -3
  585. package/components/Textarea/Textarea.css.js.map +0 -1
  586. package/components/TimePicker/TimePicker.css.js +0 -3
  587. package/components/TimePicker/TimePicker.css.js.map +0 -1
  588. package/components/Toast/Toast.css.js +0 -3
  589. package/components/Toast/Toast.css.js.map +0 -1
  590. package/components/Toast/ToastView.css.js +0 -3
  591. package/components/Toast/ToastView.css.js.map +0 -1
  592. package/components/Toggle/Toggle.css.js +0 -5
  593. package/components/Toggle/Toggle.css.js.map +0 -1
  594. package/components/Token/Token.css.js +0 -4
  595. package/components/Token/Token.css.js.map +0 -1
  596. package/components/TokenInput/TokenInput.css.js +0 -4
  597. package/components/TokenInput/TokenInput.css.js.map +0 -1
  598. package/components/Tooltip/Tooltip.css.js +0 -3
  599. package/components/Tooltip/Tooltip.css.js.map +0 -1
  600. package/internal/ClearCrossIcon/ClearCrossIcon.css.js +0 -3
  601. package/internal/ClearCrossIcon/ClearCrossIcon.css.js.map +0 -1
  602. package/internal/CloseButtonIcon/CloseButtonIcon.css.js +0 -3
  603. package/internal/CloseButtonIcon/CloseButtonIcon.css.js.map +0 -1
  604. package/internal/CustomComboBox/CustomComboBox.css.d.ts +0 -4
  605. package/internal/CustomComboBox/CustomComboBox.css.js +0 -3
  606. package/internal/CustomComboBox/CustomComboBox.css.js.map +0 -1
  607. package/internal/DateSelect/DateSelect.css.js +0 -4
  608. package/internal/DateSelect/DateSelect.css.js.map +0 -1
  609. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.d.ts +0 -3
  610. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js +0 -3
  611. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js.map +0 -1
  612. package/internal/InputLikeText/InputLikeText.css.js +0 -3
  613. package/internal/InputLikeText/InputLikeText.css.js.map +0 -1
  614. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.d.ts +0 -5
  615. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js +0 -4
  616. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js.map +0 -1
  617. package/internal/MaskCharLowLine/MaskCharLowLine.css.d.ts +0 -3
  618. package/internal/MaskCharLowLine/MaskCharLowLine.css.js +0 -3
  619. package/internal/MaskCharLowLine/MaskCharLowLine.css.js.map +0 -1
  620. package/internal/Menu/Menu.css.js +0 -3
  621. package/internal/Menu/Menu.css.js.map +0 -1
  622. package/internal/MenuMessage/MenuMessage.css.js +0 -3
  623. package/internal/MenuMessage/MenuMessage.css.js.map +0 -1
  624. package/internal/MobilePopup/MobilePopup.css.js +0 -3
  625. package/internal/MobilePopup/MobilePopup.css.js.map +0 -1
  626. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js +0 -3
  627. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js.map +0 -1
  628. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js +0 -3
  629. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js.map +0 -1
  630. package/internal/NativeDateInput/NativeDateInput.css.d.ts +0 -3
  631. package/internal/NativeDateInput/NativeDateInput.css.js +0 -3
  632. package/internal/NativeDateInput/NativeDateInput.css.js.map +0 -1
  633. package/internal/NativeTimeInput/NativeTimeInput.css.d.ts +0 -3
  634. package/internal/NativeTimeInput/NativeTimeInput.css.js +0 -3
  635. package/internal/NativeTimeInput/NativeTimeInput.css.js.map +0 -1
  636. package/internal/Popup/Popup.css.js +0 -3
  637. package/internal/Popup/Popup.css.js.map +0 -1
  638. package/internal/Popup/PopupPin.css.js +0 -3
  639. package/internal/Popup/PopupPin.css.js.map +0 -1
  640. package/internal/PopupMenu/PopupMenu.css.d.ts +0 -4
  641. package/internal/PopupMenu/PopupMenu.css.js +0 -3
  642. package/internal/PopupMenu/PopupMenu.css.js.map +0 -1
  643. package/internal/ResizeDetector/ResizeDetector.css.js +0 -3
  644. package/internal/ResizeDetector/ResizeDetector.css.js.map +0 -1
  645. package/internal/SpinnerIcon/SpinnerIcon.css.js +0 -3
  646. package/internal/SpinnerIcon/SpinnerIcon.css.js.map +0 -1
  647. package/internal/TextWidthHelper/TextWidthHelper.css.d.ts +0 -4
  648. package/internal/TextWidthHelper/TextWidthHelper.css.js +0 -3
  649. package/internal/TextWidthHelper/TextWidthHelper.css.js.map +0 -1
  650. package/internal/TimeInput/TimeFragments.css.js +0 -3
  651. package/internal/TimeInput/TimeFragments.css.js.map +0 -1
  652. package/internal/TimeInput/TimeInput.css.js +0 -3
  653. package/internal/TimeInput/TimeInput.css.js.map +0 -1
  654. package/internal/icons2022/BaseIcon.css.d.ts +0 -3
  655. package/internal/icons2022/BaseIcon.css.js +0 -3
  656. package/internal/icons2022/BaseIcon.css.js.map +0 -1
  657. package/lib/styles/LabGrotesqueBaseline.css.d.ts +0 -1
  658. package/lib/styles/LabGrotesqueBaseline.css.js +0 -0
  659. package/lib/styles/LabGrotesqueBaseline.css.js.map +0 -1
  660. package/lib/theming/StaticStyles.d.ts +0 -30
  661. package/lib/theming/StaticStyles.js +0 -410
  662. package/lib/theming/StaticStyles.js.map +0 -1
  663. package/lib/theming/bindStaticStyles.d.ts +0 -4
  664. package/lib/theming/bindStaticStyles.js +0 -18
  665. package/lib/theming/bindStaticStyles.js.map +0 -1
  666. package/lib/theming/themeVars.d.ts +0 -26
  667. package/lib/theming/themeVars.js +0 -72
  668. package/lib/theming/themeVars.js.map +0 -1
  669. package/react-ui.css +0 -6926
@@ -0,0 +1,184 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { memoizeGetStyles } from '../../lib/theming/Emotion.js';
6
+ export var getJsStyles = memoizeGetStyles(function (_a) {
7
+ var css = _a.css;
8
+ return ({
9
+ root: function () {
10
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: inherit;\n "], ["\n width: 100%;\n height: inherit;\n "])));
11
+ },
12
+ content: function () {
13
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n align-items: baseline;\n "], ["\n display: flex;\n width: 100%;\n align-items: baseline;\n "])));
14
+ },
15
+ validationTextError: function (t) {
16
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.fileUploaderErrorTextColor);
17
+ },
18
+ validationTextWarning: function (t) {
19
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.fileUploaderWarningTextColor);
20
+ },
21
+ nameBlock: function () {
22
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n flex: 1 1 100%;\n width: 100%;\n "], ["\n display: flex;\n flex-wrap: wrap;\n flex: 1 1 100%;\n width: 100%;\n "])));
23
+ },
24
+ size: function (t) {
25
+ return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-left: ", ";\n flex: 1 0 auto;\n "], ["\n margin-left: ", ";\n flex: 1 0 auto;\n "])), t.fileUploaderFileSizeMarginLeft);
26
+ },
27
+ sizeSmall: function (t) {
28
+ return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFileSizeWidthSmall, t.fileUploaderFileSizeMarginSmall, t.fileUploaderFontSizeSmall, t.fileUploaderLineHeightSmall);
29
+ },
30
+ sizeMedium: function (t) {
31
+ return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFileSizeWidthMedium, t.fileUploaderFileSizeMarginMedium, t.fileUploaderFontSizeMedium, t.fileUploaderLineHeightMedium);
32
+ },
33
+ sizeLarge: function (t) {
34
+ return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "], ["\n width: ", ";\n margin-right: ", ";\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFileSizeWidthLarge, t.fileUploaderFileSizeMarginLarge, t.fileUploaderFontSizeLarge, t.fileUploaderLineHeightLarge);
35
+ },
36
+ icon: function (t) {
37
+ return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: absolute;\n top: ", ";\n right: ", ";\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n justify-content: center;\n width: ", ";\n border-radius: ", ";\n cursor: pointer;\n text-align: center;\n outline: none;\n &:hover {\n background: ", ";\n }\n &:active {\n background: ", ";\n }\n "], ["\n position: absolute;\n top: ", ";\n right: ", ";\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n justify-content: center;\n width: ", ";\n border-radius: ", ";\n cursor: pointer;\n text-align: center;\n outline: none;\n &:hover {\n background: ", ";\n }\n &:active {\n background: ", ";\n }\n "])), t.fileUploaderIconGapSmall, t.fileUploaderIconGapSmall, t.fileUploaderTileIconSizeSmall, t.fileUploaderBorderRadius, t.fileUploaderHoveredBg, t.fileUploaderActiveBg);
38
+ },
39
+ disabledFileTypeIconSvg: function (t) {
40
+ return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n svg {\n fill: ", " !important;\n }\n "], ["\n svg {\n fill: ", " !important;\n }\n "])), t.fileUploaderDisabledFileTypeIcon);
41
+ },
42
+ fileTypeIconMultiple: function () {
43
+ return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin-left: 0;\n "], ["\n margin-left: 0;\n "])));
44
+ },
45
+ contentSmall: function (t) {
46
+ return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFontSizeSmall, t.fileUploaderLineHeightSmall);
47
+ },
48
+ contentMedium: function (t) {
49
+ return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFontSizeMedium, t.fileUploaderLineHeightMedium);
50
+ },
51
+ contentLarge: function (t) {
52
+ return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n "])), t.fileUploaderFontSizeLarge, t.fileUploaderLineHeightLarge);
53
+ },
54
+ });
55
+ });
56
+ export var getJsRowStyles = memoizeGetStyles(function (_a) {
57
+ var css = _a.css;
58
+ return {
59
+ content: function () {
60
+ return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n flex-direction: row;\n "], ["\n flex-direction: row;\n "])));
61
+ },
62
+ contentSmall: function (t) {
63
+ return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderFileIconSizeSmall);
64
+ },
65
+ contentMedium: function (t) {
66
+ return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderFileIconSizeMedium);
67
+ },
68
+ contentLarge: function (t) {
69
+ return css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderFileIconSizeMedium);
70
+ },
71
+ iconSmall: function (t) {
72
+ return css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n "], ["\n height: ", ";\n width: ", ";\n "])), t.fileUploaderFileIconSizeSmall, t.fileUploaderFileIconSizeSmall);
73
+ },
74
+ iconMedium: function (t) {
75
+ return css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n "], ["\n height: ", ";\n width: ", ";\n "])), t.fileUploaderFileIconSizeMedium, t.fileUploaderFileIconSizeMedium);
76
+ },
77
+ iconLarge: function (t) {
78
+ return css(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n "], ["\n height: ", ";\n width: ", ";\n "])), t.fileUploaderFileIconSizeLarge, t.fileUploaderFileIconSizeLarge);
79
+ },
80
+ fileTypeIconSmall: function (t) {
81
+ return css(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderIconGapSmall);
82
+ },
83
+ fileTypeIconMedium: function (t) {
84
+ return css(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderIconGapMedium);
85
+ },
86
+ fileTypeIconLarge: function (t) {
87
+ return css(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), t.fileUploaderIconGapLarge);
88
+ },
89
+ iconColor: function (t) {
90
+ return css(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n color: ", ";\n &:hover {\n color: ", ";\n }\n "], ["\n color: ", ";\n &:hover {\n color: ", ";\n }\n "])), t.fileUploaderIconColor, t.fileUploaderIconHoverColor);
91
+ },
92
+ size: function (t) {
93
+ return css(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n margin-left: ", ";\n color: ", ";\n "], ["\n margin-left: ", ";\n color: ", ";\n "])), t.fileUploaderIconGapSmall, t.fileUploaderDisabledColor);
94
+ },
95
+ name: function () {
96
+ return css(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n flex: 1 1 100%;\n overflow: hidden;\n "], ["\n flex: 1 1 100%;\n overflow: hidden;\n "])));
97
+ },
98
+ nameBlock: function () {
99
+ return css(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n flex: 1 1 100%;\n "], ["\n flex: 1 1 100%;\n "])));
100
+ },
101
+ disabled: function (t) {
102
+ return css(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n cursor: default;\n color: ", ";\n "], ["\n cursor: default;\n color: ", ";\n "])), t.fileUploaderDisabledTextColor);
103
+ },
104
+ };
105
+ });
106
+ export var getJsTileStyles = memoizeGetStyles(function (_a) {
107
+ var css = _a.css;
108
+ return {
109
+ content: function () {
110
+ return css(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n flex-direction: column;\n align-items: center;\n height: inherit;\n "], ["\n flex-direction: column;\n align-items: center;\n height: inherit;\n "])));
111
+ },
112
+ iconAction: function (t) {
113
+ return css(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n border-radius: ", ";\n opacity: 0;\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "], ["\n border-radius: ", ";\n opacity: 0;\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])), t.fileUploaderBorderRadius, t.fileUploaderTileIconColorBg, t.fileUploaderTileIconHoverColorBg, t.fileUploaderTileIconActiveColorBg);
114
+ },
115
+ iconActionShow: function () {
116
+ return css(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n opacity: 1;\n "], ["\n opacity: 1;\n "])));
117
+ },
118
+ iconSmall: function (t) {
119
+ return css(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "])), t.fileUploaderTileIconSizeSmall, t.fileUploaderTileIconSizeSmall, t.fileUploaderTileIconActionPaddingSmall, t.fileUploaderTileIconActionPositionSmall, t.fileUploaderTileIconActionPositionSmall);
120
+ },
121
+ iconMedium: function (t) {
122
+ return css(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "])), t.fileUploaderTileIconSizeMedium, t.fileUploaderTileIconSizeMedium, t.fileUploaderTileIconActionPaddingMedium, t.fileUploaderTileIconActionPositionMedium, t.fileUploaderTileIconActionPositionMedium);
123
+ },
124
+ iconLarge: function (t) {
125
+ return css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "], ["\n width: ", ";\n height: ", ";\n padding: ", ";\n top: ", ";\n right: ", ";\n "])), t.fileUploaderTileIconSizeLarge, t.fileUploaderTileIconSizeLarge, t.fileUploaderTileIconActionPaddingLarge, t.fileUploaderTileIconActionPositionLarge, t.fileUploaderTileIconActionPositionLarge);
126
+ },
127
+ fileTypeIcon: function (t) {
128
+ return css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n width: 100%;\n border: 1px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n "], ["\n width: 100%;\n border: 1px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n "])), t.fileUploaderDisabledBorderColor, t.fileUploaderBorderRadius);
129
+ },
130
+ fileTypeIconPreview: function () {
131
+ return css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n background-position: top;\n background-size: cover;\n background-repeat: no-repeat;\n "], ["\n background-position: top;\n background-size: cover;\n background-repeat: no-repeat;\n "])));
132
+ },
133
+ fileTypeIconSmall: function (t) {
134
+ return css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n margin-bottom: ", ";\n height: ", ";\n "], ["\n margin-bottom: ", ";\n height: ", ";\n "])), t.fileUploaderIconGapSmall, t.fileUploaderTileTypeIconHeightSmall);
135
+ },
136
+ fileTypeIconMedium: function (t) {
137
+ return css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n margin-bottom: ", ";\n height: ", ";\n "], ["\n margin-bottom: ", ";\n height: ", ";\n "])), t.fileUploaderIconGapMedium, t.fileUploaderTileTypeIconHeightMedium);
138
+ },
139
+ fileTypeIconLarge: function (t) {
140
+ return css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n margin-bottom: ", ";\n height: ", ";\n "], ["\n margin-bottom: ", ";\n height: ", ";\n "])), t.fileUploaderIconGapLarge, t.fileUploaderTileTypeIconHeightLarge);
141
+ },
142
+ disabledFileTypeIcon: function (t) {
143
+ return css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n box-shadow: none;\n background: ", ";\n "], ["\n box-shadow: none;\n background: ", ";\n "])), t.fileUploaderDisabledBg);
144
+ },
145
+ sizeDisabled: function (t) {
146
+ return css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.fileUploaderDisabledIconColor);
147
+ },
148
+ errorFileTypeIcon: function (t) {
149
+ return css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n background: ", ";\n border: 1px solid ", ";\n "], ["\n background: ", ";\n border: 1px solid ", ";\n "])), t.fileUploaderErrorBgColor, t.fileUploaderErrorBgColor);
150
+ },
151
+ warningFileTypeIcon: function (t) {
152
+ return css(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n background: ", ";\n border: 1px solid ", ";\n "], ["\n background: ", ";\n border: 1px solid ", ";\n "])), t.fileUploaderWarningBgColor, t.fileUploaderWarningBgColor);
153
+ },
154
+ iconColor: function (t) {
155
+ return css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n color: ", ";\n &:hover {\n color: ", ";\n }\n "], ["\n color: ", ";\n &:hover {\n color: ", ";\n }\n "])), t.fileUploaderTileIconColor, t.fileUploaderTileIconHoverColor);
156
+ },
157
+ size: function (t) {
158
+ return css(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n width: 100%;\n margin: ", " 0 0;\n overflow: hidden;\n text-align: center;\n color: ", ";\n "], ["\n width: 100%;\n margin: ", " 0 0;\n overflow: hidden;\n text-align: center;\n color: ", ";\n "])), t.fileUploaderIconGapSmall, t.clearCrossIconColor);
159
+ },
160
+ name: function () {
161
+ return css(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n flex: 1 1 100%;\n word-break: break-all;\n height: 100%;\n\n span {\n word-break: break-word;\n }\n "], ["\n flex: 1 1 100%;\n word-break: break-all;\n height: 100%;\n\n span {\n word-break: break-word;\n }\n "])));
162
+ },
163
+ nameBlock: function () {
164
+ return css(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n flex: 0;\n text-align: center;\n "], ["\n flex: 0;\n text-align: center;\n "])));
165
+ },
166
+ contentSmall: function (t) {
167
+ var maxHeight = parseInt(t.fileUploaderLineHeightSmall) * 2;
168
+ return css(templateObject_50 || (templateObject_50 = __makeTemplateObject(["\n max-height: ", "px;\n "], ["\n max-height: ", "px;\n "])), maxHeight);
169
+ },
170
+ contentMedium: function (t) {
171
+ var maxHeight = parseInt(t.fileUploaderLineHeightMedium) * 2;
172
+ return css(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n max-height: ", "px;\n "], ["\n max-height: ", "px;\n "])), maxHeight);
173
+ },
174
+ contentLarge: function (t) {
175
+ var maxHeight = parseInt(t.fileUploaderLineHeightLarge) * 2;
176
+ return css(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n max-height: ", "px;\n "], ["\n max-height: ", "px;\n "])), maxHeight);
177
+ },
178
+ disabled: function (t) {
179
+ return css(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n cursor: default;\n color: ", ";\n "], ["\n cursor: default;\n color: ", ";\n "])), t.fileUploaderDisabledIconColor);
180
+ },
181
+ };
182
+ });
183
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53;
184
+ //# sourceMappingURL=FileUploaderFile.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUploaderFile.styles.js","sourceRoot":"","sources":["FileUploaderFile.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,MAAM,CAAC,IAAM,WAAW,GAAG,gBAAgB,CAAC,UAAC,EAAgB;QAAd,GAAG,SAAA;IAAgB,OAAA,CAAC;QACjE,IAAI;YACF,OAAO,GAAG,uHAAA,oDAGT,KAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,GAAG,mJAAA,gFAIT,KAAC;QACJ,CAAC;QAED,mBAAmB,YAAC,CAAQ;YAC1B,OAAO,GAAG,+FAAA,iBACC,EAA4B,SACtC,KADU,CAAC,CAAC,0BAA0B,EACrC;QACJ,CAAC;QAED,qBAAqB,YAAC,CAAQ;YAC5B,OAAO,GAAG,+FAAA,iBACC,EAA8B,SACxC,KADU,CAAC,CAAC,4BAA4B,EACvC;QACJ,CAA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+HAAA,6CAEC,EAA+B,WACzC,KADU,CAAC,CAAC,6BAA6B,EACxC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { memoizeGetStyles } from '../../lib/theming/Emotion.js';\nimport type { Theme } from '../../lib/theming/Theme.js';\n\nexport const getJsStyles = memoizeGetStyles(({ css }: Emotion) => ({\n root() {\n return css`\n width: 100%;\n height: inherit;\n `;\n },\n\n content() {\n return css`\n display: flex;\n width: 100%;\n align-items: baseline;\n `;\n },\n\n validationTextError(t: Theme) {\n return css`\n color: ${t.fileUploaderErrorTextColor};\n `;\n },\n\n validationTextWarning(t: Theme) {\n return css`\n color: ${t.fileUploaderWarningTextColor};\n `;\n },\n\n nameBlock() {\n return css`\n display: flex;\n flex-wrap: wrap;\n flex: 1 1 100%;\n width: 100%;\n `;\n },\n\n size(t: Theme) {\n return css`\n margin-left: ${t.fileUploaderFileSizeMarginLeft};\n flex: 1 0 auto;\n `;\n },\n\n sizeSmall(t: Theme) {\n return css`\n width: ${t.fileUploaderFileSizeWidthSmall};\n margin-right: ${t.fileUploaderFileSizeMarginSmall};\n font-size: ${t.fileUploaderFontSizeSmall};\n line-height: ${t.fileUploaderLineHeightSmall};\n `;\n },\n\n sizeMedium(t: Theme) {\n return css`\n width: ${t.fileUploaderFileSizeWidthMedium};\n margin-right: ${t.fileUploaderFileSizeMarginMedium};\n font-size: ${t.fileUploaderFontSizeMedium};\n line-height: ${t.fileUploaderLineHeightMedium};\n `;\n },\n\n sizeLarge(t: Theme) {\n return css`\n width: ${t.fileUploaderFileSizeWidthLarge};\n margin-right: ${t.fileUploaderFileSizeMarginLarge};\n font-size: ${t.fileUploaderFontSizeLarge};\n line-height: ${t.fileUploaderLineHeightLarge};\n `;\n },\n\n icon(t: Theme) {\n return css`\n position: absolute;\n top: ${t.fileUploaderIconGapSmall};\n right: ${t.fileUploaderIconGapSmall};\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n justify-content: center;\n width: ${t.fileUploaderTileIconSizeSmall};\n border-radius: ${t.fileUploaderBorderRadius};\n cursor: pointer;\n text-align: center;\n outline: none;\n &:hover {\n background: ${t.fileUploaderHoveredBg};\n }\n &:active {\n background: ${t.fileUploaderActiveBg};\n }\n `;\n },\n\n disabledFileTypeIconSvg(t: Theme) {\n return css`\n svg {\n fill: ${t.fileUploaderDisabledFileTypeIcon} !important;\n }\n `;\n },\n\n fileTypeIconMultiple() {\n return css`\n margin-left: 0;\n `;\n },\n\n contentSmall(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeSmall};\n line-height: ${t.fileUploaderLineHeightSmall};\n `;\n },\n\n contentMedium(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeMedium};\n line-height: ${t.fileUploaderLineHeightMedium};\n `;\n },\n\n contentLarge(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeLarge};\n line-height: ${t.fileUploaderLineHeightLarge};\n `;\n },\n}));\n\nexport const getJsRowStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n content() {\n return css`\n flex-direction: row;\n `;\n },\n\n contentSmall(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderFileIconSizeSmall};\n `;\n },\n\n contentMedium(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderFileIconSizeMedium};\n `;\n },\n\n contentLarge(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderFileIconSizeMedium};\n `;\n },\n\n iconSmall(t: Theme) {\n return css`\n height: ${t.fileUploaderFileIconSizeSmall};\n width: ${t.fileUploaderFileIconSizeSmall};\n `;\n },\n\n iconMedium(t: Theme) {\n return css`\n height: ${t.fileUploaderFileIconSizeMedium};\n width: ${t.fileUploaderFileIconSizeMedium};\n `;\n },\n\n iconLarge(t: Theme) {\n return css`\n height: ${t.fileUploaderFileIconSizeLarge};\n width: ${t.fileUploaderFileIconSizeLarge};\n `;\n },\n\n fileTypeIconSmall(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderIconGapSmall};\n `;\n },\n\n fileTypeIconMedium(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderIconGapMedium};\n `;\n },\n\n fileTypeIconLarge(t: Theme) {\n return css`\n margin-right: ${t.fileUploaderIconGapLarge};\n `;\n },\n\n iconColor(t: Theme) {\n return css`\n color: ${t.fileUploaderIconColor};\n &:hover {\n color: ${t.fileUploaderIconHoverColor};\n }\n `;\n },\n\n size(t: Theme) {\n return css`\n margin-left: ${t.fileUploaderIconGapSmall};\n color: ${t.fileUploaderDisabledColor};\n `;\n },\n\n name() {\n return css`\n flex: 1 1 100%;\n overflow: hidden;\n `;\n },\n\n nameBlock() {\n return css`\n flex: 1 1 100%;\n `;\n },\n\n disabled(t: Theme) {\n return css`\n cursor: default;\n color: ${t.fileUploaderDisabledTextColor};\n `;\n },\n };\n});\n\nexport const getJsTileStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n content() {\n return css`\n flex-direction: column;\n align-items: center;\n height: inherit;\n `;\n },\n\n iconAction(t: Theme) {\n return css`\n border-radius: ${t.fileUploaderBorderRadius};\n opacity: 0;\n background: ${t.fileUploaderTileIconColorBg};\n\n &:hover {\n background: ${t.fileUploaderTileIconHoverColorBg};\n }\n\n &:active {\n background: ${t.fileUploaderTileIconActiveColorBg};\n }\n `;\n },\n\n iconActionShow() {\n return css`\n opacity: 1;\n `;\n },\n\n iconSmall(t: Theme) {\n return css`\n width: ${t.fileUploaderTileIconSizeSmall};\n height: ${t.fileUploaderTileIconSizeSmall};\n padding: ${t.fileUploaderTileIconActionPaddingSmall};\n top: ${t.fileUploaderTileIconActionPositionSmall};\n right: ${t.fileUploaderTileIconActionPositionSmall};\n `;\n },\n\n iconMedium(t: Theme) {\n return css`\n width: ${t.fileUploaderTileIconSizeMedium};\n height: ${t.fileUploaderTileIconSizeMedium};\n padding: ${t.fileUploaderTileIconActionPaddingMedium};\n top: ${t.fileUploaderTileIconActionPositionMedium};\n right: ${t.fileUploaderTileIconActionPositionMedium};\n `;\n },\n\n iconLarge(t: Theme) {\n return css`\n width: ${t.fileUploaderTileIconSizeLarge};\n height: ${t.fileUploaderTileIconSizeLarge};\n padding: ${t.fileUploaderTileIconActionPaddingLarge};\n top: ${t.fileUploaderTileIconActionPositionLarge};\n right: ${t.fileUploaderTileIconActionPositionLarge};\n `;\n },\n\n fileTypeIcon(t: Theme) {\n return css`\n width: 100%;\n border: 1px solid ${t.fileUploaderDisabledBorderColor};\n border-radius: ${t.fileUploaderBorderRadius};\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n `;\n },\n\n fileTypeIconPreview() {\n return css`\n background-position: top;\n background-size: cover;\n background-repeat: no-repeat;\n `;\n },\n\n fileTypeIconSmall(t: Theme) {\n return css`\n margin-bottom: ${t.fileUploaderIconGapSmall};\n height: ${t.fileUploaderTileTypeIconHeightSmall};\n `;\n },\n\n fileTypeIconMedium(t: Theme) {\n return css`\n margin-bottom: ${t.fileUploaderIconGapMedium};\n height: ${t.fileUploaderTileTypeIconHeightMedium};\n `;\n },\n\n fileTypeIconLarge(t: Theme) {\n return css`\n margin-bottom: ${t.fileUploaderIconGapLarge};\n height: ${t.fileUploaderTileTypeIconHeightLarge};\n `;\n },\n\n disabledFileTypeIcon(t: Theme) {\n return css`\n box-shadow: none;\n background: ${t.fileUploaderDisabledBg};\n `;\n },\n\n sizeDisabled(t: Theme) {\n return css`\n color: ${t.fileUploaderDisabledIconColor};\n `;\n },\n\n errorFileTypeIcon(t: Theme) {\n return css`\n background: ${t.fileUploaderErrorBgColor};\n border: 1px solid ${t.fileUploaderErrorBgColor};\n `;\n },\n\n warningFileTypeIcon(t: Theme) {\n return css`\n background: ${t.fileUploaderWarningBgColor};\n border: 1px solid ${t.fileUploaderWarningBgColor};\n `;\n },\n\n iconColor(t: Theme) {\n return css`\n color: ${t.fileUploaderTileIconColor};\n &:hover {\n color: ${t.fileUploaderTileIconHoverColor};\n }\n `;\n },\n\n size(t: Theme) {\n return css`\n width: 100%;\n margin: ${t.fileUploaderIconGapSmall} 0 0;\n overflow: hidden;\n text-align: center;\n color: ${t.clearCrossIconColor};\n `;\n },\n\n name() {\n return css`\n flex: 1 1 100%;\n word-break: break-all;\n height: 100%;\n\n span {\n word-break: break-word;\n }\n `;\n },\n\n nameBlock() {\n return css`\n flex: 0;\n text-align: center;\n `;\n },\n\n contentSmall(t: Theme) {\n const maxHeight = parseInt(t.fileUploaderLineHeightSmall) * 2;\n return css`\n max-height: ${maxHeight}px;\n `;\n },\n\n contentMedium(t: Theme) {\n const maxHeight = parseInt(t.fileUploaderLineHeightMedium) * 2;\n return css`\n max-height: ${maxHeight}px;\n `;\n },\n\n contentLarge(t: Theme) {\n const maxHeight = parseInt(t.fileUploaderLineHeightLarge) * 2;\n return css`\n max-height: ${maxHeight}px;\n `;\n },\n\n disabled(t: Theme) {\n return css`\n cursor: default;\n color: ${t.fileUploaderDisabledIconColor};\n `;\n },\n };\n});\n"]}
@@ -27,7 +27,7 @@ import { FileUploaderControlContext } from '../FileUploaderControlContext.js';
27
27
  import { FileUploaderFileStatus } from '../fileUtils.js';
28
28
  import { useControlLocale } from '../hooks/useControlLocale.js';
29
29
  import { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';
30
- import { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.css.js';
30
+ import { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.styles.js';
31
31
  export var FileUploaderFileDataTids = {
32
32
  fileList: 'FileUploader__fileList',
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploaderFileList.js","sourceRoot":"","sources":["FileUploaderFileList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,2BA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AC;YAEF,IAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;YAE1C,OAAO,CACL,6BACE,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,SAAS,EAAE,qBAAqB,EAChC,YAAY,EAAE,cAAM,OAAA,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,EAAzB,CAAyB,EAC7C,YAAY,EAAE,cAAM,OAAA,gBAAgB,EAAE,EAAlB,CAAkB,EACtC,OAAO,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,EAAxB,CAAwB,EACvC,MAAM,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAArB,CAAqB;gBAEnC,6BAAK,SAAS,EAAE,YAAY,CAAC,IAAI,EAAE,IAAG,WAAW,CAAO,CACpD,CACP,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,mBAAmB,GAAG,sBAAsB,CAAC;AAClE,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC","sourcesContent":["import React, { useContext, useRef, useState } from 'react';\n\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../../internal/Popup/index.js';\nimport { LocaleContext } from '../../../lib/locale/index.js';\nimport { pluralize } from '../../../lib/pluralize.js';\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { FileUploaderControlContext } from '../FileUploaderControlContext.js';\nimport type { FileUploaderFileProps } from '../FileUploaderFile.js';\nimport { FileUploaderFileStatus, type FileUploaderValidationSummary, type FileUploaderView } from '../fileUtils.js';\nimport { useControlLocale } from '../hooks/useControlLocale.js';\nimport { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.css.js';\n\ninterface FileUploaderFileListProps {\n renderFile: (props: FileUploaderFileProps) => React.ReactNode;\n size: SizeProp;\n view?: FileUploaderView;\n validationSummary?: FileUploaderValidationSummary;\n validationSummaryStart?: number;\n onRemove(fileId: string): void;\n withValidationTooltip?: boolean;\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n withWarningIcon?: boolean;\n disabled?: boolean;\n}\n\nexport const FileUploaderFileDataTids = {\n fileList: 'FileUploader__fileList',\n} as const;\n\nexport const FileUploaderFileList = (props: FileUploaderFileListProps): React.ReactElement => {\n const {\n renderFile,\n size,\n view = 'row',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n disabled = false,\n onRemove,\n } = props;\n const { files } = useContext(FileUploaderControlContext);\n const { cx } = useEmotion();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n const theme = useContext(ThemeContext);\n const locale = useControlLocale();\n const { langCode } = useContext(LocaleContext);\n\n const [focusedByTab, setFocusedByTab] = useState<string | null>(null);\n const [hovered, setHovered] = useState<string | null>(null);\n const mouseIsOverRef = useRef(false);\n\n const handleMouseEnter = (index: string | null) => {\n setHovered(index);\n mouseIsOverRef.current = true;\n };\n\n const handleMouseLeave = () => {\n setHovered(null);\n mouseIsOverRef.current = false;\n };\n\n const handleRemoveItem = (index: string) => {\n onRemove(index);\n if (hovered === index && mouseIsOverRef.current) {\n const currentIndex = files.findIndex((file) => file.id === index);\n if (currentIndex !== -1 && files[currentIndex + 1]) {\n setHovered(files[currentIndex + 1].id);\n } else {\n setHovered(null);\n }\n }\n };\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const fileWrapperClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileWrapperSmall(theme),\n medium: jsViewStyles.fileWrapperMedium(theme),\n large: jsViewStyles.fileWrapperLarge(theme),\n });\n\n const summaryClass = useFileUploaderSize(size, {\n small: jsStyles.summarySmall(theme),\n medium: jsStyles.summaryMedium(theme),\n large: jsStyles.summaryLarge(theme),\n });\n\n const renderSummary = () => {\n if (validationSummary === 'disabled') {\n return null;\n }\n\n const warningLength = files.filter((file) => file.status === FileUploaderFileStatus.Warning).length;\n const errorLength = files.filter((file) => file.status === FileUploaderFileStatus.Error).length;\n\n if (validationSummary === 'auto' && files.length < validationSummaryStart) {\n return null;\n }\n\n if (!(warningLength + errorLength)) {\n return null;\n }\n\n return (\n <div className={cx(jsStyles.summary(theme), summaryClass)}>\n {errorLength > 0 && (\n <span className={jsStyles.summaryErrorText(theme)}>\n {errorLength}&nbsp;{pluralize(langCode, errorLength, ...locale.errors)}\n </span>\n )}\n {warningLength > 0 && (\n <span className={jsStyles.summaryWarningText(theme)}>\n {warningLength}&nbsp;{pluralize(langCode, warningLength, ...locale.warnings)}\n </span>\n )}\n </div>\n );\n };\n\n return (\n <div data-tid={FileUploaderFileDataTids.fileList} className={jsViewStyles.fileListWrapper(theme)}>\n {renderSummary()}\n {files.map((file, idx) => {\n const hasFocus = focusedByTab === file.id;\n const hasHover = hovered === file.id;\n const hasError = file.status === FileUploaderFileStatus.Error;\n const hasWarning = file.status === FileUploaderFileStatus.Warning;\n\n const fileWrapperClassNames = cx(jsStyles.fileWrapper(theme), fileWrapperClass, {\n [jsStyles.fileWrapperFocus(theme)]: hasFocus,\n [jsStyles.fileWrapperHover(theme)]: hasHover,\n ...(hasError && {\n [jsStyles.errorFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.errorFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasError && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Error,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Error,\n }),\n ...(hasWarning && {\n [jsStyles.warningFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.warningFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasWarning && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Warning,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Warning,\n }),\n });\n\n const fileProps: FileUploaderFileProps = {\n file,\n multiple: true,\n size,\n view,\n disabled,\n hovered: hasHover,\n focused: hasFocus,\n onRemove: handleRemoveItem,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <div\n key={file.id}\n className={fileWrapperClassNames}\n onMouseEnter={() => handleMouseEnter(file.id)}\n onMouseLeave={() => handleMouseLeave()}\n onFocus={() => setFocusedByTab(file.id)}\n onBlur={() => setFocusedByTab(null)}\n >\n <div className={jsViewStyles.file()}>{fileElement}</div>\n </div>\n );\n })}\n </div>\n );\n};\n\nFileUploaderFileList.__KONTUR_REACT_UI__ = 'FileUploaderFileList';\nFileUploaderFileList.displayName = 'FileUploaderFileList';\n"]}
1
+ {"version":3,"file":"FileUploaderFileList.js","sourceRoot":"","sources":["FileUploaderFileList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAA6D,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,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,EAAxB,CAAwB,EACvC,MAAM,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAArB,CAAqB;gBAEnC,6BAAK,SAAS,EAAE,YAAY,CAAC,IAAI,EAAE,IAAG,WAAW,CAAO,CACpD,CACP,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,mBAAmB,GAAG,sBAAsB,CAAC;AAClE,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC","sourcesContent":["import React, { useContext, useRef, useState } from 'react';\n\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../../internal/Popup/index.js';\nimport { LocaleContext } from '../../../lib/locale/index.js';\nimport { pluralize } from '../../../lib/pluralize.js';\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { FileUploaderControlContext } from '../FileUploaderControlContext.js';\nimport type { FileUploaderFileProps } from '../FileUploaderFile.js';\nimport { FileUploaderFileStatus, type FileUploaderValidationSummary, type FileUploaderView } from '../fileUtils.js';\nimport { useControlLocale } from '../hooks/useControlLocale.js';\nimport { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.styles.js';\n\ninterface FileUploaderFileListProps {\n renderFile: (props: FileUploaderFileProps) => React.ReactNode;\n size: SizeProp;\n view?: FileUploaderView;\n validationSummary?: FileUploaderValidationSummary;\n validationSummaryStart?: number;\n onRemove(fileId: string): void;\n withValidationTooltip?: boolean;\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n withWarningIcon?: boolean;\n disabled?: boolean;\n}\n\nexport const FileUploaderFileDataTids = {\n fileList: 'FileUploader__fileList',\n} as const;\n\nexport const FileUploaderFileList = (props: FileUploaderFileListProps): React.ReactElement => {\n const {\n renderFile,\n size,\n view = 'row',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n disabled = false,\n onRemove,\n } = props;\n const { files } = useContext(FileUploaderControlContext);\n const { cx } = useEmotion();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n const theme = useContext(ThemeContext);\n const locale = useControlLocale();\n const { langCode } = useContext(LocaleContext);\n\n const [focusedByTab, setFocusedByTab] = useState<string | null>(null);\n const [hovered, setHovered] = useState<string | null>(null);\n const mouseIsOverRef = useRef(false);\n\n const handleMouseEnter = (index: string | null) => {\n setHovered(index);\n mouseIsOverRef.current = true;\n };\n\n const handleMouseLeave = () => {\n setHovered(null);\n mouseIsOverRef.current = false;\n };\n\n const handleRemoveItem = (index: string) => {\n onRemove(index);\n if (hovered === index && mouseIsOverRef.current) {\n const currentIndex = files.findIndex((file) => file.id === index);\n if (currentIndex !== -1 && files[currentIndex + 1]) {\n setHovered(files[currentIndex + 1].id);\n } else {\n setHovered(null);\n }\n }\n };\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const fileWrapperClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileWrapperSmall(theme),\n medium: jsViewStyles.fileWrapperMedium(theme),\n large: jsViewStyles.fileWrapperLarge(theme),\n });\n\n const summaryClass = useFileUploaderSize(size, {\n small: jsStyles.summarySmall(theme),\n medium: jsStyles.summaryMedium(theme),\n large: jsStyles.summaryLarge(theme),\n });\n\n const renderSummary = () => {\n if (validationSummary === 'disabled') {\n return null;\n }\n\n const warningLength = files.filter((file) => file.status === FileUploaderFileStatus.Warning).length;\n const errorLength = files.filter((file) => file.status === FileUploaderFileStatus.Error).length;\n\n if (validationSummary === 'auto' && files.length < validationSummaryStart) {\n return null;\n }\n\n if (!(warningLength + errorLength)) {\n return null;\n }\n\n return (\n <div className={cx(jsStyles.summary(theme), summaryClass)}>\n {errorLength > 0 && (\n <span className={jsStyles.summaryErrorText(theme)}>\n {errorLength}&nbsp;{pluralize(langCode, errorLength, ...locale.errors)}\n </span>\n )}\n {warningLength > 0 && (\n <span className={jsStyles.summaryWarningText(theme)}>\n {warningLength}&nbsp;{pluralize(langCode, warningLength, ...locale.warnings)}\n </span>\n )}\n </div>\n );\n };\n\n return (\n <div data-tid={FileUploaderFileDataTids.fileList} className={jsViewStyles.fileListWrapper(theme)}>\n {renderSummary()}\n {files.map((file, idx) => {\n const hasFocus = focusedByTab === file.id;\n const hasHover = hovered === file.id;\n const hasError = file.status === FileUploaderFileStatus.Error;\n const hasWarning = file.status === FileUploaderFileStatus.Warning;\n\n const fileWrapperClassNames = cx(jsStyles.fileWrapper(theme), fileWrapperClass, {\n [jsStyles.fileWrapperFocus(theme)]: hasFocus,\n [jsStyles.fileWrapperHover(theme)]: hasHover,\n ...(hasError && {\n [jsStyles.errorFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.errorFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasError && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Error,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Error,\n }),\n ...(hasWarning && {\n [jsStyles.warningFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.warningFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasWarning && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Warning,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Warning,\n }),\n });\n\n const fileProps: FileUploaderFileProps = {\n file,\n multiple: true,\n size,\n view,\n disabled,\n hovered: hasHover,\n focused: hasFocus,\n onRemove: handleRemoveItem,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <div\n key={file.id}\n className={fileWrapperClassNames}\n onMouseEnter={() => handleMouseEnter(file.id)}\n onMouseLeave={() => handleMouseLeave()}\n onFocus={() => setFocusedByTab(file.id)}\n onBlur={() => setFocusedByTab(null)}\n >\n <div className={jsViewStyles.file()}>{fileElement}</div>\n </div>\n );\n })}\n </div>\n );\n};\n\nFileUploaderFileList.__KONTUR_REACT_UI__ = 'FileUploaderFileList';\nFileUploaderFileList.displayName = 'FileUploaderFileList';\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { Theme } from '../../../lib/theming/Theme.js';
2
- export declare const getJsStyles: import("../../../lib/theming/StaticStyles.js").StylesGetter<{
2
+ export declare const getJsStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
3
3
  fileWrapper(t: Theme): string;
4
4
  fileWrapperFocus(t: Theme): string;
5
5
  fileWrapperHover(t: Theme): string;
@@ -14,7 +14,7 @@ export declare const getJsStyles: import("../../../lib/theming/StaticStyles.js")
14
14
  summaryMedium(t: Theme): string;
15
15
  summaryLarge(t: Theme): string;
16
16
  }>;
17
- export declare const getJsRowStyles: import("../../../lib/theming/StaticStyles.js").StylesGetter<{
17
+ export declare const getJsRowStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
18
18
  file(): string;
19
19
  fileListWrapper(t: Theme): string;
20
20
  fileWrapperSmall(t: Theme): string;
@@ -23,7 +23,7 @@ export declare const getJsRowStyles: import("../../../lib/theming/StaticStyles.j
23
23
  errorFileFocus(t: Theme): string;
24
24
  warningFileFocus(t: Theme): string;
25
25
  }>;
26
- export declare const getJsTileStyles: import("../../../lib/theming/StaticStyles.js").StylesGetter<{
26
+ export declare const getJsTileStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
27
27
  file(): string;
28
28
  fileListWrapper(): string;
29
29
  fileWrapperSmall(t: Theme): string;
@@ -0,0 +1,103 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { memoizeGetStyles } from '../../../lib/theming/Emotion.js';
6
+ export var getJsStyles = memoizeGetStyles(function (_a) {
7
+ var css = _a.css;
8
+ return {
9
+ fileWrapper: function (t) {
10
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n "], ["\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n "])), t.fileUploaderBorderRadius, t.fileUploaderBorderWidth, t.fileUploaderBorderRadius, t.fileUploaderBorderWidth);
11
+ },
12
+ fileWrapperFocus: function (t) {
13
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", " solid ", ";\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorFocus, t.fileUploaderBorderColorFocus);
14
+ },
15
+ fileWrapperHover: function (t) {
16
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n "], ["\n background: ", ";\n border-color: ", ";\n "])), t.fileUploaderHoveredBg, t.fileUploaderHoveredBorderColor);
17
+ },
18
+ warningFile: function (t) {
19
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "])), t.fileUploaderWarningBgColor, t.fileUploaderValidationTextColor, t.fileUploaderWarningBgHoverColor, t.fileUploaderBorderRadius, t.fileUploaderWarningBgColor);
20
+ },
21
+ errorFile: function (t) {
22
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "])), t.fileUploaderErrorBgColor, t.fileUploaderValidationTextColor, t.fileUploaderErrorBgHoverColor, t.fileUploaderBorderRadius, t.fileUploaderErrorBgColor);
23
+ },
24
+ removeBorderTopRadius: function () {
25
+ return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n "], ["\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n "])));
26
+ },
27
+ removeBorderBottomRadius: function () {
28
+ return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n "], ["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n "])));
29
+ },
30
+ summary: function (t) {
31
+ return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n border-bottom: 1px solid ", ";\n margin-bottom: ", ";\n order: -1;\n width: 100%;\n box-sizing: border-box;\n "], ["\n display: flex;\n border-bottom: 1px solid ", ";\n margin-bottom: ", ";\n order: -1;\n width: 100%;\n box-sizing: border-box;\n "])), t.tabColorHover, t.fileUploaderListGap);
32
+ },
33
+ summaryErrorText: function (t) {
34
+ return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), t.fileUploaderErrorTextColor, t.fileUploaderListSummaryTextGap);
35
+ },
36
+ summaryWarningText: function (t) {
37
+ return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.fileUploaderWarningTextColor);
38
+ },
39
+ summarySmall: function (t) {
40
+ return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeSmall, t.fileUploaderLineHeightSmall, t.fileUploaderPaddingYSmall, t.fileUploaderPaddingXSmall);
41
+ },
42
+ summaryMedium: function (t) {
43
+ return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeMedium, t.fileUploaderLineHeightMedium, t.fileUploaderPaddingYMedium, t.fileUploaderPaddingXMedium);
44
+ },
45
+ summaryLarge: function (t) {
46
+ return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeLarge, t.fileUploaderLineHeightLarge, t.fileUploaderPaddingYLarge, t.fileUploaderPaddingXLarge);
47
+ },
48
+ };
49
+ });
50
+ export var getJsRowStyles = memoizeGetStyles(function (_a) {
51
+ var css = _a.css;
52
+ return {
53
+ file: function () {
54
+ return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
55
+ },
56
+ fileListWrapper: function (t) {
57
+ return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n width: 100%;\n margin-top: ", ";\n "], ["\n display: block;\n width: 100%;\n margin-top: ", ";\n "])), t.fileUploaderListGap);
58
+ },
59
+ fileWrapperSmall: function (t) {
60
+ return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYSmall, t.fileUploaderPaddingXSmall);
61
+ },
62
+ fileWrapperMedium: function (t) {
63
+ return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYMedium, t.fileUploaderPaddingXMedium);
64
+ },
65
+ fileWrapperLarge: function (t) {
66
+ return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYLarge, t.fileUploaderPaddingXLarge);
67
+ },
68
+ errorFileFocus: function (t) {
69
+ return css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderErrorBgHoverColor, t.fileUploaderBorderWidth, t.fileUploaderBorderColorError, t.fileUploaderBorderRadius, t.fileUploaderBorderColorError);
70
+ },
71
+ warningFileFocus: function (t) {
72
+ return css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderWarningBgHoverColor, t.fileUploaderBorderWidth, t.fileUploaderBorderColorWarning, t.fileUploaderBorderRadius, t.fileUploaderBorderColorWarning);
73
+ },
74
+ };
75
+ });
76
+ export var getJsTileStyles = memoizeGetStyles(function (_a) {
77
+ var css = _a.css;
78
+ return {
79
+ file: function () {
80
+ return css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n "], ["\n width: 100%;\n height: 100%;\n "])));
81
+ },
82
+ fileListWrapper: function () {
83
+ return css(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: contents;\n "], ["\n display: contents;\n "])));
84
+ },
85
+ fileWrapperSmall: function (t) {
86
+ return css(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n "])), t.fileUploaderTileFilePaddingSmall, t.fileUploaderTileWidthSmall);
87
+ },
88
+ fileWrapperMedium: function (t) {
89
+ return css(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n height: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n height: ", ";\n "])), t.fileUploaderTileFilePaddingMedium, t.fileUploaderTileWidthMedium, t.fileUploaderTileHeightMedium);
90
+ },
91
+ fileWrapperLarge: function (t) {
92
+ return css(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n height: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n height: ", ";\n "])), t.fileUploaderTileFilePaddingLarge, t.fileUploaderTileWidthLarge, t.fileUploaderTileHeightLarge);
93
+ },
94
+ errorFileFocus: function (t) {
95
+ return css(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorError, t.fileUploaderBorderRadius, t.fileUploaderBorderColorError);
96
+ },
97
+ warningFileFocus: function (t) {
98
+ return css(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorWarning, t.fileUploaderBorderRadius, t.fileUploaderBorderColorWarning);
99
+ },
100
+ };
101
+ });
102
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
103
+ //# sourceMappingURL=FileUploaderFileList.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUploaderFileList.styles.js","sourceRoot":"","sources":["FileUploaderFileList.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,MAAM,CAAC,IAAM,WAAW,GAAG,gBAAgB,CAAC,UAAC,EAAgB;QAAd,GAAG,SAAA;IAChD,OAAO;QACL,WAAW,YAAC,CAAQ;YAClB,OAAO,GAAG,2sBAAA,mMAOS,EAA0B,qBACjC,EAAyB,sPAShB,EAA0B,uBACjC,EAAyB,2JAMtC,KAjBkB,CAAC,CAAC,wBAAwB,EACjC,CAAC,CAAC,uBAAuB,EAShB,CAAC,CAAC,wBAAwB,EACjC,CAAC,CAAC,uBAAuB,EAMrC;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,oJAAA,oBACE,EAAyB,SAAU,EAA8B,mCACnD,EAA8B,W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AAO,GAAG,6HAAA,qBACG,EAAkC,oBACpC,EAA4B,WACtC,KAFY,CAAC,CAAC,gCAAgC,EACpC,CAAC,CAAC,0BAA0B,EACrC;QACJ,CAAC;QAED,iBAAiB,YAAC,CAAQ;YACxB,OAAO,GAAG,oJAAA,qBACG,EAAmC,oBACrC,EAA6B,qBAC5B,EAA8B,WACzC,KAHY,CAAC,CAAC,iCAAiC,EACrC,CAAC,CAAC,2BAA2B,EAC5B,CAAC,CAAC,4BAA4B,EACxC;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,oJAAA,qBACG,EAAkC,oBACpC,EAA4B,qBAC3B,EAA6B,WACxC,KAHY,CAAC,CAAC,gCAAgC,EACpC,CAAC,CAAC,0BAA0B,EAC3B,CAAC,CAAC,2BAA2B,EACvC;QACJ,CAAC;QAED,cAAc,YAAC,CAAQ;YACrB,OAAO,GAAG,+LAAA,oBACE,EAAyB,SAAU,EAA8B,4BAC1D,EAA0B,8CACnB,EAA8B,WACvD,KAHW,CAAC,CAAC,uBAAuB,EAAU,CAAC,CAAC,4BAA4B,EAC1D,CAAC,CAAC,wBAAwB,EACnB,CAAC,CAAC,4BAA4B,EACtD;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,+LAAA,oBACE,EAAyB,SAAU,EAAgC,4BAC5D,EAA0B,8CACnB,EAAgC,WACzD,KAHW,CAAC,CAAC,uBAAuB,EAAU,CAAC,CAAC,8BAA8B,EAC5D,CAAC,CAAC,wBAAwB,EACnB,CAAC,CAAC,8BAA8B,EACxD;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { memoizeGetStyles } from '../../../lib/theming/Emotion.js';\nimport type { Theme } from '../../../lib/theming/Theme.js';\n\nexport const getJsStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n fileWrapper(t: Theme) {\n return css`\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ${t.fileUploaderBorderRadius};\n border: ${t.fileUploaderBorderWidth} solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ${t.fileUploaderBorderRadius};\n border: ${t.fileUploaderBorderWidth} solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n `;\n },\n\n fileWrapperFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorFocus};\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorFocus};\n `;\n },\n\n fileWrapperHover(t: Theme) {\n return css`\n background: ${t.fileUploaderHoveredBg};\n border-color: ${t.fileUploaderHoveredBorderColor};\n `;\n },\n\n warningFile(t: Theme) {\n return css`\n background: ${t.fileUploaderWarningBgColor};\n color: ${t.fileUploaderValidationTextColor};\n &:hover {\n background: ${t.fileUploaderWarningBgHoverColor};\n border-radius: ${t.fileUploaderBorderRadius};\n }\n &::before {\n background: ${t.fileUploaderWarningBgColor};\n }\n `;\n },\n\n errorFile(t: Theme) {\n return css`\n background: ${t.fileUploaderErrorBgColor};\n color: ${t.fileUploaderValidationTextColor};\n &:hover {\n background: ${t.fileUploaderErrorBgHoverColor};\n border-radius: ${t.fileUploaderBorderRadius};\n }\n &::before {\n background: ${t.fileUploaderErrorBgColor};\n }\n `;\n },\n\n removeBorderTopRadius() {\n return css`\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n `;\n },\n\n removeBorderBottomRadius() {\n return css`\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n `;\n },\n\n summary(t: Theme) {\n return css`\n display: flex;\n border-bottom: 1px solid ${t.tabColorHover};\n margin-bottom: ${t.fileUploaderListGap};\n order: -1;\n width: 100%;\n box-sizing: border-box;\n `;\n },\n\n summaryErrorText(t: Theme) {\n return css`\n color: ${t.fileUploaderErrorTextColor};\n margin-right: ${t.fileUploaderListSummaryTextGap};\n `;\n },\n\n summaryWarningText(t: Theme) {\n return css`\n color: ${t.fileUploaderWarningTextColor};\n `;\n },\n\n summarySmall(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeSmall};\n line-height: ${t.fileUploaderLineHeightSmall};\n padding: ${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall};\n `;\n },\n\n summaryMedium(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeMedium};\n line-height: ${t.fileUploaderLineHeightMedium};\n padding: ${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium};\n `;\n },\n\n summaryLarge(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeLarge};\n line-height: ${t.fileUploaderLineHeightLarge};\n padding: ${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge};\n `;\n },\n };\n});\n\nexport const getJsRowStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n file() {\n return css`\n width: 100%;\n `;\n },\n\n fileListWrapper(t: Theme) {\n return css`\n display: block;\n width: 100%;\n margin-top: ${t.fileUploaderListGap};\n `;\n },\n\n fileWrapperSmall(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall};\n `;\n },\n\n fileWrapperMedium(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium};\n `;\n },\n\n fileWrapperLarge(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge};\n `;\n },\n\n errorFileFocus(t: Theme) {\n return css`\n background: ${t.fileUploaderErrorBgHoverColor};\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorError};\n `;\n },\n\n warningFileFocus(t: Theme) {\n return css`\n background: ${t.fileUploaderWarningBgHoverColor};\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorWarning};\n `;\n },\n };\n});\n\nexport const getJsTileStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n file() {\n return css`\n width: 100%;\n height: 100%;\n `;\n },\n\n fileListWrapper() {\n return css`\n display: contents;\n `;\n },\n\n fileWrapperSmall(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingSmall};\n width: ${t.fileUploaderTileWidthSmall};\n `;\n },\n\n fileWrapperMedium(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingMedium};\n width: ${t.fileUploaderTileWidthMedium};\n height: ${t.fileUploaderTileHeightMedium};\n `;\n },\n\n fileWrapperLarge(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingLarge};\n width: ${t.fileUploaderTileWidthLarge};\n height: ${t.fileUploaderTileHeightLarge};\n `;\n },\n\n errorFileFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorError};\n `;\n },\n\n warningFileFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorWarning};\n `;\n },\n };\n});\n"]}
@@ -3,7 +3,7 @@ import { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';
3
3
  import { useStyles } from '../../lib/renderEnvironment/index.js';
4
4
  import { ThemeContext } from '../../lib/theming/ThemeContext.js';
5
5
  import { useResponsiveLayout } from '../ResponsiveLayout/index.js';
6
- import { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.css.js';
6
+ import { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.styles.js';
7
7
  import { FileUploaderFileStatus } from './fileUtils.js';
8
8
  import { DeleteIcon } from './icons/DeleteIcon.js';
9
9
  export var FileUploaderFileStatusIcon = function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploaderFileStatusIcon.js","sourceRoot":"","sources":["FileUploaderFileStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAanD,MAAM,CAAC,IAAM,0BAA0B,GAA6D,UAAC,EASpG;QARC,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,aAAa,mBAAA;IAEL,IAAA,QAAQ,GAAK,mBAAmB,EAAE,SAA1B,CAA2B;IAC3C,IAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACvC,IAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IAChD,IAAM,WAAW,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC;IAE9C,IAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjG,IAAM,UAAU,GAAG,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,CAAC;IAEzE,IAAI,MAAM,KAAK,sBAAsB,CAAC,OAAO,EAAE,CAAC;QAC9C,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;IAC1E,CAAC;IACD,IAAI,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/B,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,2FAA2F;IAC3F,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import React, { useContext } from 'react';\n\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport { useStyles } from '../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { useResponsiveLayout } from '../ResponsiveLayout/index.js';\nimport { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.css.js';\nimport { FileUploaderFileStatus } from './fileUtils.js';\nimport { DeleteIcon } from './icons/DeleteIcon.js';\n\ninterface FileUploaderFileStatusIconProps {\n hovered: boolean;\n isTileView?: boolean;\n disabled?: boolean;\n focusedByTab: boolean;\n isInvalid: boolean;\n status: FileUploaderFileStatus;\n size: SizeProp;\n hasValidation?: boolean;\n}\n\nexport const FileUploaderFileStatusIcon: React.FunctionComponent<FileUploaderFileStatusIconProps> = ({\n hovered,\n isTileView,\n disabled,\n focusedByTab,\n isInvalid,\n status,\n size,\n hasValidation,\n}) => {\n const { isMobile } = useResponsiveLayout();\n const theme = useContext(ThemeContext);\n const jsTileStyles = useStyles(getJsTileStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n\n const iconClassNames = isTileView ? jsTileStyles.iconColor(theme) : jsRowStyles.iconColor(theme);\n const iconDelete = <DeleteIcon size={size} className={iconClassNames} />;\n\n if (status === FileUploaderFileStatus.Loading) {\n return hovered || isTileView ? iconDelete : <LoadingIcon size={size} />;\n }\n if (disabled || (!isMobile && !hovered && !focusedByTab)) {\n return null;\n }\n if (isInvalid || hasValidation) {\n return iconDelete;\n }\n // TODO - IF-2270 - добавить логику для действий по наведению и клику, пока только удаление\n return iconDelete;\n};\n"]}
1
+ {"version":3,"file":"FileUploaderFileStatusIcon.js","sourceRoot":"","sources":["FileUploaderFileStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAanD,MAAM,CAAC,IAAM,0BAA0B,GAA6D,UAAC,EASpG;QARC,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,aAAa,mBAAA;IAEL,IAAA,QAAQ,GAAK,mBAAmB,EAAE,SAA1B,CAA2B;IAC3C,IAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IACvC,IAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IAChD,IAAM,WAAW,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC;IAE9C,IAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjG,IAAM,UAAU,GAAG,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,CAAC;IAEzE,IAAI,MAAM,KAAK,sBAAsB,CAAC,OAAO,EAAE,CAAC;QAC9C,OAAO,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;IAC1E,CAAC;IACD,IAAI,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/B,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,2FAA2F;IAC3F,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import React, { useContext } from 'react';\n\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport { useStyles } from '../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { useResponsiveLayout } from '../ResponsiveLayout/index.js';\nimport { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.styles.js';\nimport { FileUploaderFileStatus } from './fileUtils.js';\nimport { DeleteIcon } from './icons/DeleteIcon.js';\n\ninterface FileUploaderFileStatusIconProps {\n hovered: boolean;\n isTileView?: boolean;\n disabled?: boolean;\n focusedByTab: boolean;\n isInvalid: boolean;\n status: FileUploaderFileStatus;\n size: SizeProp;\n hasValidation?: boolean;\n}\n\nexport const FileUploaderFileStatusIcon: React.FunctionComponent<FileUploaderFileStatusIconProps> = ({\n hovered,\n isTileView,\n disabled,\n focusedByTab,\n isInvalid,\n status,\n size,\n hasValidation,\n}) => {\n const { isMobile } = useResponsiveLayout();\n const theme = useContext(ThemeContext);\n const jsTileStyles = useStyles(getJsTileStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n\n const iconClassNames = isTileView ? jsTileStyles.iconColor(theme) : jsRowStyles.iconColor(theme);\n const iconDelete = <DeleteIcon size={size} className={iconClassNames} />;\n\n if (status === FileUploaderFileStatus.Loading) {\n return hovered || isTileView ? iconDelete : <LoadingIcon size={size} />;\n }\n if (disabled || (!isMobile && !hovered && !focusedByTab)) {\n return null;\n }\n if (isInvalid || hasValidation) {\n return iconDelete;\n }\n // TODO - IF-2270 - добавить логику для действий по наведению и клику, пока только удаление\n return iconDelete;\n};\n"]}
@@ -25,7 +25,7 @@ import { CommonWrapper } from '../../internal/CommonWrapper/index.js';
25
25
  import { ZIndex } from '../../internal/ZIndex/index.js';
26
26
  import { useEmotion, useStyles } from '../../lib/renderEnvironment/index.js';
27
27
  import { ThemeContext } from '../../lib/theming/ThemeContext.js';
28
- import { getAnimations, getStyles } from './GlobalLoaderView.css.js';
28
+ import { getAnimations, getStyles } from './GlobalLoaderView.styles.js';
29
29
  import { useGlobalLoaderPosition, useGlobalLoaderWidth } from './useParams.js';
30
30
  export var GlobalLoaderView = forwardRef(function (_a, externalRef) {
31
31
  var expectedResponseTime = _a.expectedResponseTime, delayBeforeHide = _a.delayBeforeHide, status = _a.status, disableAnimations = _a.disableAnimations, rest = __rest(_a, ["expectedResponseTime", "delayBeforeHide", "status", "disableAnimations"]);
@@ -40,16 +40,16 @@ export var GlobalLoaderView = forwardRef(function (_a, externalRef) {
40
40
  if (!disableAnimations) {
41
41
  switch (status) {
42
42
  case 'success':
43
- return animations.successAnimation(theme);
43
+ return animations.successAnimation(delayBeforeHide, width, left);
44
44
  case 'accept':
45
45
  if (startWidth < fullWidth * 0.8) {
46
- return animations.acceptAnimation(theme);
46
+ return animations.acceptAnimation(theme, startWidth, expectedResponseTime, width, left);
47
47
  }
48
- return animations.slowAcceptAnimation(theme);
48
+ return animations.slowAcceptAnimation(theme, startWidth, width, left);
49
49
  case 'error':
50
50
  return animations.errorAnimation(theme);
51
51
  case 'standard':
52
- return animations.standardAnimation(theme);
52
+ return animations.standardAnimation(theme, expectedResponseTime);
53
53
  }
54
54
  }
55
55
  if (disableAnimations) {
@@ -57,7 +57,7 @@ export var GlobalLoaderView = forwardRef(function (_a, externalRef) {
57
57
  case 'success':
58
58
  return styles.successWithoutAnimation();
59
59
  case 'accept':
60
- return animations.acceptWithoutAnimation(theme);
60
+ return animations.acceptWithoutAnimation(startWidth);
61
61
  case 'error':
62
62
  return styles.errorWithoutAnimation();
63
63
  case 'standard':
@@ -67,12 +67,6 @@ export var GlobalLoaderView = forwardRef(function (_a, externalRef) {
67
67
  };
68
68
  return (React.createElement(CommonWrapper, __assign({}, rest, { "data-status": status, ref: externalRef }),
69
69
  React.createElement(ZIndex, { priority: "GlobalLoader", className: styles.outer(theme) },
70
- React.createElement("div", { ref: ref, className: cx(styles.inner(theme), getAnimationClass(status)), style: {
71
- '--react-ui-global-loader-delay-before-hide': "".concat(delayBeforeHide, "ms"),
72
- '--react-ui-global-loader-expected-time': "".concat(expectedResponseTime, "ms"),
73
- '--react-ui-global-loader-width': "".concat(width, "px"),
74
- '--react-ui-global-loader-start-width': "".concat(startWidth, "px"),
75
- '--react-ui-global-loader-left': "".concat(left, "px"),
76
- } }))));
70
+ React.createElement("div", { ref: ref, className: cx(styles.inner(theme), getAnimationClass(status)) }))));
77
71
  });
78
72
  //# sourceMappingURL=GlobalLoaderView.js.map