@skbkontur/react-ui 6.4.1-8cb58.0 → 6.4.2-static-css.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 (679) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +97 -0
  3. package/components/Autocomplete/Autocomplete.d.ts +0 -1
  4. package/components/Autocomplete/Autocomplete.js +13 -4
  5. package/components/Autocomplete/Autocomplete.js.map +1 -1
  6. package/components/Autocomplete/Autocomplete.styles.d.ts +4 -4
  7. package/components/Autocomplete/Autocomplete.styles.js +5 -16
  8. package/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  9. package/components/Button/Button.d.ts +15 -1
  10. package/components/Button/Button.js +162 -76
  11. package/components/Button/Button.js.map +1 -1
  12. package/components/Button/Button.styles.d.ts +107 -91
  13. package/components/Button/Button.styles.js +108 -255
  14. package/components/Button/Button.styles.js.map +1 -1
  15. package/components/Button/ButtonArrow.d.ts +2 -3
  16. package/components/Button/ButtonArrow.js +8 -10
  17. package/components/Button/ButtonArrow.js.map +1 -1
  18. package/components/Button/ButtonIcon.js +7 -17
  19. package/components/Button/ButtonIcon.js.map +1 -1
  20. package/components/Button/ButtonIcon.styles.d.ts +15 -15
  21. package/components/Button/ButtonIcon.styles.js +16 -51
  22. package/components/Button/ButtonIcon.styles.js.map +1 -1
  23. package/components/Calendar/Calendar.d.ts +0 -1
  24. package/components/Calendar/Calendar.js +3 -3
  25. package/components/Calendar/Calendar.js.map +1 -1
  26. package/components/Calendar/Calendar.styles.d.ts +5 -5
  27. package/components/Calendar/Calendar.styles.js +6 -20
  28. package/components/Calendar/Calendar.styles.js.map +1 -1
  29. package/components/Calendar/CalendarDay.js +11 -7
  30. package/components/Calendar/CalendarDay.js.map +1 -1
  31. package/components/Calendar/DayCellView.js +1 -3
  32. package/components/Calendar/DayCellView.js.map +1 -1
  33. package/components/Calendar/DayCellView.styles.d.ts +10 -8
  34. package/components/Calendar/DayCellView.styles.js +11 -29
  35. package/components/Calendar/DayCellView.styles.js.map +1 -1
  36. package/components/Calendar/Month.js +6 -10
  37. package/components/Calendar/Month.js.map +1 -1
  38. package/components/Calendar/MonthView.js +7 -7
  39. package/components/Calendar/MonthView.js.map +1 -1
  40. package/components/Calendar/MonthView.styles.d.ts +12 -12
  41. package/components/Calendar/MonthView.styles.js +13 -45
  42. package/components/Calendar/MonthView.styles.js.map +1 -1
  43. package/components/Center/Center.d.ts +0 -1
  44. package/components/Center/Center.js +1 -1
  45. package/components/Center/Center.js.map +1 -1
  46. package/components/Center/Center.styles.d.ts +7 -6
  47. package/components/Center/Center.styles.js +8 -25
  48. package/components/Center/Center.styles.js.map +1 -1
  49. package/components/Checkbox/Checkbox.d.ts +8 -1
  50. package/components/Checkbox/Checkbox.js +57 -26
  51. package/components/Checkbox/Checkbox.js.map +1 -1
  52. package/components/Checkbox/Checkbox.styles.d.ts +33 -30
  53. package/components/Checkbox/Checkbox.styles.js +35 -95
  54. package/components/Checkbox/Checkbox.styles.js.map +1 -1
  55. package/components/DateInput/DateFragmentsView.d.ts +0 -2
  56. package/components/DateInput/DateFragmentsView.js +10 -7
  57. package/components/DateInput/DateFragmentsView.js.map +1 -1
  58. package/components/DateInput/DateFragmentsView.styles.d.ts +8 -6
  59. package/components/DateInput/DateFragmentsView.styles.js +9 -26
  60. package/components/DateInput/DateFragmentsView.styles.js.map +1 -1
  61. package/components/DateInput/DateInput.d.ts +0 -2
  62. package/components/DateInput/DateInput.js +6 -8
  63. package/components/DateInput/DateInput.js.map +1 -1
  64. package/components/DateInput/DateInput.styles.d.ts +10 -11
  65. package/components/DateInput/DateInput.styles.js +11 -28
  66. package/components/DateInput/DateInput.styles.js.map +1 -1
  67. package/components/DatePicker/DatePicker.d.ts +0 -1
  68. package/components/DatePicker/DatePicker.js +2 -2
  69. package/components/DatePicker/DatePicker.js.map +1 -1
  70. package/components/DatePicker/DatePicker.styles.d.ts +4 -4
  71. package/components/DatePicker/DatePicker.styles.js +5 -16
  72. package/components/DatePicker/DatePicker.styles.js.map +1 -1
  73. package/components/DatePicker/MobilePicker.styles.d.ts +3 -2
  74. package/components/DatePicker/MobilePicker.styles.js +4 -13
  75. package/components/DatePicker/MobilePicker.styles.js.map +1 -1
  76. package/components/DatePicker/getMobilePickerTheme.js +27 -9
  77. package/components/DatePicker/getMobilePickerTheme.js.map +1 -1
  78. package/components/DateRangePicker/DateRangePicker.d.ts +4 -4
  79. package/components/DateRangePicker/DateRangePicker.js +26 -28
  80. package/components/DateRangePicker/DateRangePicker.js.map +1 -1
  81. package/components/DateRangePicker/DateRangePicker.styles.d.ts +20 -14
  82. package/components/DateRangePicker/DateRangePicker.styles.js +25 -49
  83. package/components/DateRangePicker/DateRangePicker.styles.js.map +1 -1
  84. package/components/DateRangePicker/DateRangePickerTheme.js +30 -10
  85. package/components/DateRangePicker/DateRangePickerTheme.js.map +1 -1
  86. package/components/Dropdown/getDropdownTheme.d.ts +11 -0
  87. package/components/Dropdown/getDropdownTheme.js +23 -4
  88. package/components/Dropdown/getDropdownTheme.js.map +1 -1
  89. package/components/DropdownMenu/getDropdownMenuTheme.js +9 -2
  90. package/components/DropdownMenu/getDropdownMenuTheme.js.map +1 -1
  91. package/components/FileUploader/FileUploader.d.ts +2 -1
  92. package/components/FileUploader/FileUploader.js +50 -45
  93. package/components/FileUploader/FileUploader.js.map +1 -1
  94. package/components/FileUploader/FileUploader.styles.d.ts +69 -68
  95. package/components/FileUploader/FileUploader.styles.js +71 -214
  96. package/components/FileUploader/FileUploader.styles.js.map +1 -1
  97. package/components/FileUploader/FileUploaderFile.js +28 -30
  98. package/components/FileUploader/FileUploaderFile.js.map +1 -1
  99. package/components/FileUploader/FileUploaderFile.styles.d.ts +57 -57
  100. package/components/FileUploader/FileUploaderFile.styles.js +58 -180
  101. package/components/FileUploader/FileUploaderFile.styles.js.map +1 -1
  102. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js +17 -19
  103. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
  104. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.d.ts +31 -31
  105. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js +32 -99
  106. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js.map +1 -1
  107. package/components/FileUploader/FileUploaderFileStatusIcon.js +2 -4
  108. package/components/FileUploader/FileUploaderFileStatusIcon.js.map +1 -1
  109. package/components/FileUploader/FileUploaderFileTypeIcon.js +47 -52
  110. package/components/FileUploader/FileUploaderFileTypeIcon.js.map +1 -1
  111. package/components/FileUploader/FileUploaderFileTypeIcon.styles.d.ts +14 -0
  112. package/components/FileUploader/FileUploaderFileTypeIcon.styles.js +16 -0
  113. package/components/FileUploader/FileUploaderFileTypeIcon.styles.js.map +1 -0
  114. package/components/FxInput/FxInput.d.ts +1 -1
  115. package/components/FxInput/FxInput.js +6 -2
  116. package/components/FxInput/FxInput.js.map +1 -1
  117. package/components/FxInput/FxInput.styles.d.ts +4 -0
  118. package/components/FxInput/FxInput.styles.js +6 -0
  119. package/components/FxInput/FxInput.styles.js.map +1 -0
  120. package/components/FxInput/FxInputRestoreBtn.js +23 -15
  121. package/components/FxInput/FxInputRestoreBtn.js.map +1 -1
  122. package/components/FxInput/FxInputRestoreBtn.styles.d.ts +6 -0
  123. package/components/FxInput/FxInputRestoreBtn.styles.js +8 -0
  124. package/components/FxInput/FxInputRestoreBtn.styles.js.map +1 -0
  125. package/components/GlobalLoader/GlobalLoaderView.js +30 -14
  126. package/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
  127. package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +22 -16
  128. package/components/GlobalLoader/GlobalLoaderView.styles.js +22 -67
  129. package/components/GlobalLoader/GlobalLoaderView.styles.js.map +1 -1
  130. package/components/Group/Group.d.ts +0 -1
  131. package/components/Group/Group.js +2 -3
  132. package/components/Group/Group.js.map +1 -1
  133. package/components/Group/Group.styles.d.ts +7 -7
  134. package/components/Group/Group.styles.js +8 -28
  135. package/components/Group/Group.styles.js.map +1 -1
  136. package/components/Hint/Hint.d.ts +10 -2
  137. package/components/Hint/Hint.js +47 -19
  138. package/components/Hint/Hint.js.map +1 -1
  139. package/components/Hint/Hint.styles.d.ts +4 -4
  140. package/components/Hint/Hint.styles.js +5 -16
  141. package/components/Hint/Hint.styles.js.map +1 -1
  142. package/components/Hint/HintDelayController.d.ts +11 -0
  143. package/components/Hint/HintDelayController.js +50 -0
  144. package/components/Hint/HintDelayController.js.map +1 -0
  145. package/components/Input/Input.d.ts +0 -1
  146. package/components/Input/Input.js +13 -13
  147. package/components/Input/Input.js.map +1 -1
  148. package/components/Input/Input.styles.d.ts +20 -20
  149. package/components/Input/Input.styles.js +21 -66
  150. package/components/Input/Input.styles.js.map +1 -1
  151. package/components/Input/InputLayout/InputLayout.styles.d.ts +26 -17
  152. package/components/Input/InputLayout/InputLayout.styles.js +27 -57
  153. package/components/Input/InputLayout/InputLayout.styles.js.map +1 -1
  154. package/components/Input/InputLayout/InputLayoutAsideCounter.js +8 -8
  155. package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
  156. package/components/Input/InputLayout/InputLayoutAsideIcon.js +19 -25
  157. package/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
  158. package/components/Input/InputLayout/InputLayoutAsideText.js +4 -4
  159. package/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
  160. package/components/Kebab/Kebab.d.ts +0 -1
  161. package/components/Kebab/Kebab.js +2 -2
  162. package/components/Kebab/Kebab.js.map +1 -1
  163. package/components/Kebab/Kebab.styles.d.ts +10 -10
  164. package/components/Kebab/Kebab.styles.js +11 -34
  165. package/components/Kebab/Kebab.styles.js.map +1 -1
  166. package/components/Link/Link.d.ts +0 -1
  167. package/components/Link/Link.js +23 -18
  168. package/components/Link/Link.js.map +1 -1
  169. package/components/Link/Link.styles.d.ts +23 -23
  170. package/components/Link/Link.styles.js +25 -81
  171. package/components/Link/Link.styles.js.map +1 -1
  172. package/components/Link/LinkIcon.js +4 -6
  173. package/components/Link/LinkIcon.js.map +1 -1
  174. package/components/Loader/Loader.d.ts +0 -2
  175. package/components/Loader/Loader.js +2 -3
  176. package/components/Loader/Loader.js.map +1 -1
  177. package/components/Loader/Loader.styles.d.ts +7 -7
  178. package/components/Loader/Loader.styles.js +8 -25
  179. package/components/Loader/Loader.styles.js.map +1 -1
  180. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +15 -21
  181. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
  182. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +3 -2
  183. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +5 -13
  184. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +1 -1
  185. package/components/MaskedInput/MaskedInput.styles.d.ts +3 -3
  186. package/components/MaskedInput/MaskedInput.styles.js +5 -14
  187. package/components/MaskedInput/MaskedInput.styles.js.map +1 -1
  188. package/components/MaskedInput/MaskedInputLegacy.js +4 -6
  189. package/components/MaskedInput/MaskedInputLegacy.js.map +1 -1
  190. package/components/MaskedInputV2/MaskedInputV2.js +4 -6
  191. package/components/MaskedInputV2/MaskedInputV2.js.map +1 -1
  192. package/components/MaskedInputV2/MaskedInputV2.styles.d.ts +3 -3
  193. package/components/MaskedInputV2/MaskedInputV2.styles.js +5 -14
  194. package/components/MaskedInputV2/MaskedInputV2.styles.js.map +1 -1
  195. package/components/MaskedInputV2/internal/MaskOverlay.js +8 -8
  196. package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -1
  197. package/components/MaskedInputV2/internal/MaskedCore.js +7 -5
  198. package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -1
  199. package/components/MaskedInputV2/internal/MaskedInternal.styles.d.ts +7 -7
  200. package/components/MaskedInputV2/internal/MaskedInternal.styles.js +9 -25
  201. package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +1 -1
  202. package/components/MenuFooter/MenuFooter.js +10 -12
  203. package/components/MenuFooter/MenuFooter.js.map +1 -1
  204. package/components/MenuFooter/MenuFooter.styles.d.ts +9 -9
  205. package/components/MenuFooter/MenuFooter.styles.js +10 -32
  206. package/components/MenuFooter/MenuFooter.styles.js.map +1 -1
  207. package/components/MenuHeader/MenuHeader.js +9 -11
  208. package/components/MenuHeader/MenuHeader.js.map +1 -1
  209. package/components/MenuHeader/MenuHeader.styles.d.ts +9 -9
  210. package/components/MenuHeader/MenuHeader.styles.js +10 -32
  211. package/components/MenuHeader/MenuHeader.styles.js.map +1 -1
  212. package/components/MenuItem/MenuItem.d.ts +0 -1
  213. package/components/MenuItem/MenuItem.js +21 -21
  214. package/components/MenuItem/MenuItem.js.map +1 -1
  215. package/components/MenuItem/MenuItem.mixins.d.ts +6 -0
  216. package/components/MenuItem/MenuItem.mixins.js +7 -1
  217. package/components/MenuItem/MenuItem.mixins.js.map +1 -1
  218. package/components/MenuItem/MenuItem.styles.d.ts +26 -26
  219. package/components/MenuItem/MenuItem.styles.js +28 -85
  220. package/components/MenuItem/MenuItem.styles.js.map +1 -1
  221. package/components/MenuSeparator/MenuSeparator.js +4 -6
  222. package/components/MenuSeparator/MenuSeparator.js.map +1 -1
  223. package/components/MenuSeparator/MenuSeparator.styles.d.ts +4 -4
  224. package/components/MenuSeparator/MenuSeparator.styles.js +5 -16
  225. package/components/MenuSeparator/MenuSeparator.styles.js.map +1 -1
  226. package/components/MiniModal/MiniModal.styles.d.ts +10 -10
  227. package/components/MiniModal/MiniModal.styles.js +11 -35
  228. package/components/MiniModal/MiniModal.styles.js.map +1 -1
  229. package/components/MiniModal/MiniModalBody.js +3 -3
  230. package/components/MiniModal/MiniModalBody.js.map +1 -1
  231. package/components/MiniModal/MiniModalFooter.js +4 -6
  232. package/components/MiniModal/MiniModalFooter.js.map +1 -1
  233. package/components/MiniModal/MiniModalHeader.js +4 -6
  234. package/components/MiniModal/MiniModalHeader.js.map +1 -1
  235. package/components/MiniModal/MiniModalIndent.js +2 -4
  236. package/components/MiniModal/MiniModalIndent.js.map +1 -1
  237. package/components/MiniModal/getMiniModalTheme.js +39 -13
  238. package/components/MiniModal/getMiniModalTheme.js.map +1 -1
  239. package/components/Modal/Modal.d.ts +0 -1
  240. package/components/Modal/Modal.js +8 -8
  241. package/components/Modal/Modal.js.map +1 -1
  242. package/components/Modal/Modal.styles.d.ts +50 -50
  243. package/components/Modal/Modal.styles.js +52 -161
  244. package/components/Modal/Modal.styles.js.map +1 -1
  245. package/components/Modal/ModalBody.d.ts +0 -1
  246. package/components/Modal/ModalBody.js +7 -7
  247. package/components/Modal/ModalBody.js.map +1 -1
  248. package/components/Modal/ModalClose.js +7 -9
  249. package/components/Modal/ModalClose.js.map +1 -1
  250. package/components/Modal/ModalFooter.js +3 -3
  251. package/components/Modal/ModalFooter.js.map +1 -1
  252. package/components/Modal/ModalHeader.js +3 -3
  253. package/components/Modal/ModalHeader.js.map +1 -1
  254. package/components/Modal/ModalSeparator.js +4 -6
  255. package/components/Modal/ModalSeparator.js.map +1 -1
  256. package/components/Paging/Paging.d.ts +0 -2
  257. package/components/Paging/Paging.js +32 -37
  258. package/components/Paging/Paging.js.map +1 -1
  259. package/components/Paging/Paging.styles.d.ts +31 -31
  260. package/components/Paging/Paging.styles.js +32 -97
  261. package/components/Paging/Paging.styles.js.map +1 -1
  262. package/components/PasswordInput/PasswordInput.d.ts +0 -2
  263. package/components/PasswordInput/PasswordInput.js +6 -11
  264. package/components/PasswordInput/PasswordInput.js.map +1 -1
  265. package/components/PasswordInput/PasswordInput.styles.d.ts +10 -10
  266. package/components/PasswordInput/PasswordInput.styles.js +11 -34
  267. package/components/PasswordInput/PasswordInput.styles.js.map +1 -1
  268. package/components/Radio/Radio.d.ts +8 -1
  269. package/components/Radio/Radio.js +59 -28
  270. package/components/Radio/Radio.js.map +1 -1
  271. package/components/Radio/Radio.styles.d.ts +33 -30
  272. package/components/Radio/Radio.styles.js +35 -95
  273. package/components/Radio/Radio.styles.js.map +1 -1
  274. package/components/RadioGroup/RadioGroup.d.ts +0 -1
  275. package/components/RadioGroup/RadioGroup.js +1 -2
  276. package/components/RadioGroup/RadioGroup.js.map +1 -1
  277. package/components/RadioGroup/RadioGroup.styles.d.ts +5 -5
  278. package/components/RadioGroup/RadioGroup.styles.js +6 -22
  279. package/components/RadioGroup/RadioGroup.styles.js.map +1 -1
  280. package/components/ScrollContainer/ScrollBar.d.ts +1 -3
  281. package/components/ScrollContainer/ScrollBar.js +9 -14
  282. package/components/ScrollContainer/ScrollBar.js.map +1 -1
  283. package/components/ScrollContainer/ScrollContainer.d.ts +0 -1
  284. package/components/ScrollContainer/ScrollContainer.js +1 -1
  285. package/components/ScrollContainer/ScrollContainer.js.map +1 -1
  286. package/components/ScrollContainer/ScrollContainer.styles.d.ts +13 -13
  287. package/components/ScrollContainer/ScrollContainer.styles.js +15 -43
  288. package/components/ScrollContainer/ScrollContainer.styles.js.map +1 -1
  289. package/components/Select/Select.d.ts +0 -1
  290. package/components/Select/Select.js +12 -12
  291. package/components/Select/Select.js.map +1 -1
  292. package/components/Select/Select.styles.d.ts +17 -17
  293. package/components/Select/Select.styles.js +18 -55
  294. package/components/Select/Select.styles.js.map +1 -1
  295. package/components/Select/selectTheme.js +31 -7
  296. package/components/Select/selectTheme.js.map +1 -1
  297. package/components/SidePage/SidePage.d.ts +0 -2
  298. package/components/SidePage/SidePage.js +8 -10
  299. package/components/SidePage/SidePage.js.map +1 -1
  300. package/components/SidePage/SidePage.styles.d.ts +49 -49
  301. package/components/SidePage/SidePage.styles.js +50 -156
  302. package/components/SidePage/SidePage.styles.js.map +1 -1
  303. package/components/SidePage/SidePageBody.d.ts +0 -1
  304. package/components/SidePage/SidePageBody.js +7 -8
  305. package/components/SidePage/SidePageBody.js.map +1 -1
  306. package/components/SidePage/SidePageCloseButton.js +6 -8
  307. package/components/SidePage/SidePageCloseButton.js.map +1 -1
  308. package/components/SidePage/SidePageContainer.d.ts +0 -2
  309. package/components/SidePage/SidePageContainer.js +11 -13
  310. package/components/SidePage/SidePageContainer.js.map +1 -1
  311. package/components/SidePage/SidePageFooter.d.ts +0 -2
  312. package/components/SidePage/SidePageFooter.js +11 -13
  313. package/components/SidePage/SidePageFooter.js.map +1 -1
  314. package/components/SidePage/SidePageHeader.d.ts +0 -1
  315. package/components/SidePage/SidePageHeader.js +10 -10
  316. package/components/SidePage/SidePageHeader.js.map +1 -1
  317. package/components/Spinner/Spinner.d.ts +0 -2
  318. package/components/Spinner/Spinner.js +7 -10
  319. package/components/Spinner/Spinner.js.map +1 -1
  320. package/components/Spinner/Spinner.styles.d.ts +12 -12
  321. package/components/Spinner/Spinner.styles.js +13 -41
  322. package/components/Spinner/Spinner.styles.js.map +1 -1
  323. package/components/Sticky/Sticky.d.ts +0 -1
  324. package/components/Sticky/Sticky.js +1 -1
  325. package/components/Sticky/Sticky.js.map +1 -1
  326. package/components/Sticky/Sticky.styles.d.ts +7 -6
  327. package/components/Sticky/Sticky.styles.js +8 -25
  328. package/components/Sticky/Sticky.styles.js.map +1 -1
  329. package/components/Switcher/Switcher.d.ts +0 -1
  330. package/components/Switcher/Switcher.js +6 -6
  331. package/components/Switcher/Switcher.js.map +1 -1
  332. package/components/Switcher/Switcher.styles.d.ts +11 -11
  333. package/components/Switcher/Switcher.styles.js +12 -37
  334. package/components/Switcher/Switcher.styles.js.map +1 -1
  335. package/components/Switcher/switcherTheme.js +12 -4
  336. package/components/Switcher/switcherTheme.js.map +1 -1
  337. package/components/Tabs/Indicator.d.ts +0 -1
  338. package/components/Tabs/Indicator.js +2 -2
  339. package/components/Tabs/Indicator.js.map +1 -1
  340. package/components/Tabs/Indicator.styles.d.ts +7 -7
  341. package/components/Tabs/Indicator.styles.js +8 -25
  342. package/components/Tabs/Indicator.styles.js.map +1 -1
  343. package/components/Tabs/Tab.d.ts +0 -2
  344. package/components/Tabs/Tab.js +19 -24
  345. package/components/Tabs/Tab.js.map +1 -1
  346. package/components/Tabs/Tab.styles.d.ts +27 -27
  347. package/components/Tabs/Tab.styles.js +30 -99
  348. package/components/Tabs/Tab.styles.js.map +1 -1
  349. package/components/Tabs/Tabs.d.ts +0 -2
  350. package/components/Tabs/Tabs.js +24 -29
  351. package/components/Tabs/Tabs.js.map +1 -1
  352. package/components/Tabs/Tabs.styles.d.ts +6 -6
  353. package/components/Tabs/Tabs.styles.js +8 -25
  354. package/components/Tabs/Tabs.styles.js.map +1 -1
  355. package/components/Textarea/Textarea.d.ts +0 -2
  356. package/components/Textarea/Textarea.js +17 -24
  357. package/components/Textarea/Textarea.js.map +1 -1
  358. package/components/Textarea/Textarea.styles.d.ts +26 -22
  359. package/components/Textarea/Textarea.styles.js +27 -71
  360. package/components/Textarea/Textarea.styles.js.map +1 -1
  361. package/components/Textarea/TextareaCounter.js +22 -14
  362. package/components/Textarea/TextareaCounter.js.map +1 -1
  363. package/components/TimePicker/TimePicker.styles.d.ts +11 -11
  364. package/components/TimePicker/TimePicker.styles.js +12 -37
  365. package/components/TimePicker/TimePicker.styles.js.map +1 -1
  366. package/components/TimePicker/TimePickerItems.js +6 -6
  367. package/components/TimePicker/TimePickerItems.js.map +1 -1
  368. package/components/TimePicker/TimePickerPopup.js +1 -1
  369. package/components/TimePicker/TimePickerPopup.js.map +1 -1
  370. package/components/Toast/Toast.d.ts +0 -1
  371. package/components/Toast/Toast.js +9 -6
  372. package/components/Toast/Toast.js.map +1 -1
  373. package/components/Toast/Toast.styles.d.ts +6 -5
  374. package/components/Toast/Toast.styles.js +7 -22
  375. package/components/Toast/Toast.styles.js.map +1 -1
  376. package/components/Toast/ToastView.d.ts +0 -1
  377. package/components/Toast/ToastView.js +9 -17
  378. package/components/Toast/ToastView.js.map +1 -1
  379. package/components/Toast/ToastView.styles.d.ts +19 -17
  380. package/components/Toast/ToastView.styles.js +20 -65
  381. package/components/Toast/ToastView.styles.js.map +1 -1
  382. package/components/Toggle/Toggle.d.ts +1 -1
  383. package/components/Toggle/Toggle.js +55 -39
  384. package/components/Toggle/Toggle.js.map +1 -1
  385. package/components/Toggle/Toggle.styles.d.ts +47 -46
  386. package/components/Toggle/Toggle.styles.js +48 -143
  387. package/components/Toggle/Toggle.styles.js.map +1 -1
  388. package/components/Token/Token.d.ts +0 -2
  389. package/components/Token/Token.js +5 -10
  390. package/components/Token/Token.js.map +1 -1
  391. package/components/Token/Token.styles.d.ts +20 -19
  392. package/components/Token/Token.styles.js +22 -62
  393. package/components/Token/Token.styles.js.map +1 -1
  394. package/components/Token/TokenView.js +8 -10
  395. package/components/Token/TokenView.js.map +1 -1
  396. package/components/TokenInput/TextWidthHelper.d.ts +0 -1
  397. package/components/TokenInput/TextWidthHelper.js +4 -4
  398. package/components/TokenInput/TextWidthHelper.js.map +1 -1
  399. package/components/TokenInput/TokenInput.d.ts +1 -2
  400. package/components/TokenInput/TokenInput.js +20 -22
  401. package/components/TokenInput/TokenInput.js.map +1 -1
  402. package/components/TokenInput/TokenInput.styles.d.ts +21 -20
  403. package/components/TokenInput/TokenInput.styles.js +22 -66
  404. package/components/TokenInput/TokenInput.styles.js.map +1 -1
  405. package/components/Tooltip/Tooltip.d.ts +0 -1
  406. package/components/Tooltip/Tooltip.js +12 -12
  407. package/components/Tooltip/Tooltip.js.map +1 -1
  408. package/components/Tooltip/Tooltip.styles.d.ts +11 -10
  409. package/components/Tooltip/Tooltip.styles.js +12 -34
  410. package/components/Tooltip/Tooltip.styles.js.map +1 -1
  411. package/index.d.ts +4 -0
  412. package/index.js +12 -0
  413. package/index.js.map +1 -1
  414. package/internal/ClearCrossIcon/ClearCrossIcon.js +7 -9
  415. package/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
  416. package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +11 -12
  417. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js +12 -35
  418. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -1
  419. package/internal/CloseButtonIcon/CloseButtonIcon.d.ts +21 -11
  420. package/internal/CloseButtonIcon/CloseButtonIcon.js +28 -13
  421. package/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
  422. package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +8 -8
  423. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js +9 -23
  424. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +1 -1
  425. package/internal/CommonWrapper/CommonWrapper.d.ts +5 -1
  426. package/internal/CommonWrapper/CommonWrapper.js +107 -6
  427. package/internal/CommonWrapper/CommonWrapper.js.map +1 -1
  428. package/internal/CustomComboBox/ComboBoxView.d.ts +1 -2
  429. package/internal/CustomComboBox/ComboBoxView.js +8 -7
  430. package/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  431. package/internal/CustomComboBox/CustomComboBox.styles.d.ts +5 -3
  432. package/internal/CustomComboBox/CustomComboBox.styles.js +6 -16
  433. package/internal/CustomComboBox/CustomComboBox.styles.js.map +1 -1
  434. package/internal/DateSelect/DateSelect.d.ts +0 -1
  435. package/internal/DateSelect/DateSelect.js +2 -2
  436. package/internal/DateSelect/DateSelect.js.map +1 -1
  437. package/internal/DateSelect/DateSelect.styles.d.ts +5 -5
  438. package/internal/DateSelect/DateSelect.styles.js +7 -19
  439. package/internal/DateSelect/DateSelect.styles.js.map +1 -1
  440. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +15 -1
  441. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +36 -15
  442. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
  443. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.d.ts +5 -0
  444. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.js +7 -0
  445. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.js.map +1 -0
  446. package/internal/InputLikeText/InputLikeText.d.ts +0 -1
  447. package/internal/InputLikeText/InputLikeText.js +21 -17
  448. package/internal/InputLikeText/InputLikeText.js.map +1 -1
  449. package/internal/InputLikeText/InputLikeText.styles.d.ts +7 -7
  450. package/internal/InputLikeText/InputLikeText.styles.js +8 -28
  451. package/internal/InputLikeText/InputLikeText.styles.js.map +1 -1
  452. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.d.ts +0 -1
  453. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js +14 -14
  454. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js.map +1 -1
  455. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.d.ts +3 -2
  456. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js +4 -13
  457. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js.map +1 -1
  458. package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +3 -2
  459. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js +4 -13
  460. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js.map +1 -1
  461. package/internal/Menu/Menu.d.ts +0 -1
  462. package/internal/Menu/Menu.js +9 -9
  463. package/internal/Menu/Menu.js.map +1 -1
  464. package/internal/Menu/Menu.styles.d.ts +15 -15
  465. package/internal/Menu/Menu.styles.js +16 -49
  466. package/internal/Menu/Menu.styles.js.map +1 -1
  467. package/internal/MenuMessage/MenuMessage.js +10 -10
  468. package/internal/MenuMessage/MenuMessage.js.map +1 -1
  469. package/internal/MenuMessage/MenuMessage.styles.d.ts +10 -10
  470. package/internal/MenuMessage/MenuMessage.styles.js +11 -39
  471. package/internal/MenuMessage/MenuMessage.styles.js.map +1 -1
  472. package/internal/MobilePopup/MobilePopup.d.ts +0 -1
  473. package/internal/MobilePopup/MobilePopup.js +23 -11
  474. package/internal/MobilePopup/MobilePopup.js.map +1 -1
  475. package/internal/MobilePopup/MobilePopup.styles.d.ts +16 -16
  476. package/internal/MobilePopup/MobilePopup.styles.js +17 -55
  477. package/internal/MobilePopup/MobilePopup.styles.js.map +1 -1
  478. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +0 -1
  479. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js +5 -5
  480. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
  481. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +6 -6
  482. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js +7 -23
  483. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +1 -1
  484. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +0 -1
  485. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js +10 -10
  486. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
  487. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +13 -13
  488. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js +14 -45
  489. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +1 -1
  490. package/internal/NativeDateInput/NativeDateInput.d.ts +0 -1
  491. package/internal/NativeDateInput/NativeDateInput.js +1 -1
  492. package/internal/NativeDateInput/NativeDateInput.js.map +1 -1
  493. package/internal/NativeDateInput/NativeDateInput.styles.d.ts +3 -2
  494. package/internal/NativeDateInput/NativeDateInput.styles.js +4 -13
  495. package/internal/NativeDateInput/NativeDateInput.styles.js.map +1 -1
  496. package/internal/NativeTimeInput/NativeTimeInput.js +1 -2
  497. package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -1
  498. package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +3 -2
  499. package/internal/NativeTimeInput/NativeTimeInput.styles.js +4 -13
  500. package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +1 -1
  501. package/internal/Popup/Popup.d.ts +0 -1
  502. package/internal/Popup/Popup.js +5 -5
  503. package/internal/Popup/Popup.js.map +1 -1
  504. package/internal/Popup/Popup.styles.d.ts +21 -21
  505. package/internal/Popup/Popup.styles.js +22 -67
  506. package/internal/Popup/Popup.styles.js.map +1 -1
  507. package/internal/Popup/PopupPin.d.ts +0 -1
  508. package/internal/Popup/PopupPin.js +1 -1
  509. package/internal/Popup/PopupPin.js.map +1 -1
  510. package/internal/Popup/PopupPin.styles.d.ts +9 -8
  511. package/internal/Popup/PopupPin.styles.js +10 -31
  512. package/internal/Popup/PopupPin.styles.js.map +1 -1
  513. package/internal/PopupMenu/PopupMenu.d.ts +0 -1
  514. package/internal/PopupMenu/PopupMenu.js +1 -1
  515. package/internal/PopupMenu/PopupMenu.js.map +1 -1
  516. package/internal/PopupMenu/PopupMenu.styles.d.ts +4 -3
  517. package/internal/PopupMenu/PopupMenu.styles.js +5 -16
  518. package/internal/PopupMenu/PopupMenu.styles.js.map +1 -1
  519. package/internal/RenderContainer/RenderInnerContainer.js +4 -2
  520. package/internal/RenderContainer/RenderInnerContainer.js.map +1 -1
  521. package/internal/ResizeDetector/ResizeDetector.d.ts +0 -1
  522. package/internal/ResizeDetector/ResizeDetector.js +1 -1
  523. package/internal/ResizeDetector/ResizeDetector.js.map +1 -1
  524. package/internal/ResizeDetector/ResizeDetector.styles.d.ts +7 -6
  525. package/internal/ResizeDetector/ResizeDetector.styles.js +8 -25
  526. package/internal/ResizeDetector/ResizeDetector.styles.js.map +1 -1
  527. package/internal/SpinnerIcon/SpinnerIcon.js +2 -2
  528. package/internal/SpinnerIcon/SpinnerIcon.js.map +1 -1
  529. package/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +6 -5
  530. package/internal/SpinnerIcon/SpinnerIcon.styles.js +7 -22
  531. package/internal/SpinnerIcon/SpinnerIcon.styles.js.map +1 -1
  532. package/internal/TextWidthHelper/TextWidthHelper.d.ts +0 -1
  533. package/internal/TextWidthHelper/TextWidthHelper.js +1 -1
  534. package/internal/TextWidthHelper/TextWidthHelper.js.map +1 -1
  535. package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +4 -3
  536. package/internal/TextWidthHelper/TextWidthHelper.styles.js +5 -16
  537. package/internal/TextWidthHelper/TextWidthHelper.styles.js.map +1 -1
  538. package/internal/TimeInput/TimeFragments.js +19 -15
  539. package/internal/TimeInput/TimeFragments.js.map +1 -1
  540. package/internal/TimeInput/TimeFragments.styles.d.ts +19 -31
  541. package/internal/TimeInput/TimeFragments.styles.js +20 -76
  542. package/internal/TimeInput/TimeFragments.styles.js.map +1 -1
  543. package/internal/TimeInput/TimeInput.js +4 -4
  544. package/internal/TimeInput/TimeInput.js.map +1 -1
  545. package/internal/TimeInput/TimeInput.styles.d.ts +6 -6
  546. package/internal/TimeInput/TimeInput.styles.js +7 -22
  547. package/internal/TimeInput/TimeInput.styles.js.map +1 -1
  548. package/internal/icons2022/BaseIcon.js +8 -1
  549. package/internal/icons2022/BaseIcon.js.map +1 -1
  550. package/internal/icons2022/BaseIcon.styles.d.ts +5 -2
  551. package/internal/icons2022/BaseIcon.styles.js +6 -14
  552. package/internal/icons2022/BaseIcon.styles.js.map +1 -1
  553. package/internal/icons2022/LoadingIcon.js +3 -5
  554. package/internal/icons2022/LoadingIcon.js.map +1 -1
  555. package/internal/themes/BasicTheme.d.ts +10 -0
  556. package/internal/themes/BasicTheme.js +17 -6
  557. package/internal/themes/BasicTheme.js.map +1 -1
  558. package/internal/themes/DarkTheme6_0.js +62 -342
  559. package/internal/themes/DarkTheme6_0.js.map +1 -1
  560. package/internal/themes/DarkTheme6_1.js +11 -3
  561. package/internal/themes/DarkTheme6_1.js.map +1 -1
  562. package/internal/themes/DarkTheme6_4.js +11 -1
  563. package/internal/themes/DarkTheme6_4.js.map +1 -1
  564. package/lib/Upgrades.d.ts +12 -2
  565. package/lib/Upgrades.js +12 -16
  566. package/lib/Upgrades.js.map +1 -1
  567. package/lib/classNames.generated.d.ts +1235 -0
  568. package/lib/classNames.generated.js +1233 -0
  569. package/lib/classNames.generated.js.map +1 -0
  570. package/lib/globalObject.js +4 -1
  571. package/lib/globalObject.js.map +1 -1
  572. package/lib/renderEnvironment/RenderEnvironmentContext.d.ts +38 -6
  573. package/lib/renderEnvironment/RenderEnvironmentContext.js +21 -19
  574. package/lib/renderEnvironment/RenderEnvironmentContext.js.map +1 -1
  575. package/lib/renderEnvironment/RenderEnvironmentDecorator.js +6 -3
  576. package/lib/renderEnvironment/RenderEnvironmentDecorator.js.map +1 -1
  577. package/lib/styles/baselineCompensation.d.ts +63 -0
  578. package/lib/styles/baselineCompensation.js +122 -0
  579. package/lib/styles/baselineCompensation.js.map +1 -0
  580. package/lib/theming/Emotion.d.ts +43 -9
  581. package/lib/theming/Emotion.js +70 -35
  582. package/lib/theming/Emotion.js.map +1 -1
  583. package/lib/theming/declaredTheme.d.ts +43 -0
  584. package/lib/theming/declaredTheme.js +56 -0
  585. package/lib/theming/declaredTheme.js.map +1 -0
  586. package/lib/theming/hashString.d.ts +19 -0
  587. package/lib/theming/hashString.js +52 -0
  588. package/lib/theming/hashString.js.map +1 -0
  589. package/lib/theming/staticStyles.d.ts +17 -0
  590. package/lib/theming/staticStyles.js +8 -0
  591. package/lib/theming/staticStyles.js.map +1 -0
  592. package/lib/theming/staticThemeDelta.d.ts +17 -0
  593. package/lib/theming/staticThemeDelta.js +37 -0
  594. package/lib/theming/staticThemeDelta.js.map +1 -0
  595. package/lib/theming/staticThemeVars.d.ts +21 -0
  596. package/lib/theming/staticThemeVars.js +35 -0
  597. package/lib/theming/staticThemeVars.js.map +1 -0
  598. package/lib/theming/themeCssVarsClass.d.ts +89 -0
  599. package/lib/theming/themeCssVarsClass.js +253 -0
  600. package/lib/theming/themeCssVarsClass.js.map +1 -0
  601. package/lib/theming/themeCssVarsDelta.d.ts +13 -0
  602. package/lib/theming/themeCssVarsDelta.js +67 -0
  603. package/lib/theming/themeCssVarsDelta.js.map +1 -0
  604. package/lib/theming/themeToCssVars.d.ts +47 -0
  605. package/lib/theming/themeToCssVars.js +861 -0
  606. package/lib/theming/themeToCssVars.js.map +1 -0
  607. package/package.json +47 -6
  608. package/react-ui-tailwind.css +544 -0
  609. package/react-ui-themes.css +8628 -0
  610. package/react-ui-token-map.json +9029 -0
  611. package/react-ui.css +7776 -0
  612. package/react-ui.layer.css +7778 -0
  613. package/themes/dark-6-0.css +1439 -0
  614. package/themes/dark-6-0.scoped.css +1439 -0
  615. package/themes/dark-6-1.css +1439 -0
  616. package/themes/dark-6-1.scoped.css +1439 -0
  617. package/themes/dark.css +1439 -0
  618. package/themes/dark.scoped.css +1439 -0
  619. package/themes/light-6-0.css +1437 -0
  620. package/themes/light-6-0.scoped.css +1437 -0
  621. package/themes/light-6-1.css +1437 -0
  622. package/themes/light-6-1.scoped.css +1437 -0
  623. package/themes/light.css +1437 -0
  624. package/themes/light.scoped.css +1437 -0
  625. package/components/Button/Button.mixins.d.ts +0 -4
  626. package/components/Button/Button.mixins.js +0 -21
  627. package/components/Button/Button.mixins.js.map +0 -1
  628. package/components/Checkbox/Checkbox.mixins.d.ts +0 -4
  629. package/components/Checkbox/Checkbox.mixins.js +0 -18
  630. package/components/Checkbox/Checkbox.mixins.js.map +0 -1
  631. package/components/FileUploader/FileUploader.mixins.d.ts +0 -1
  632. package/components/FileUploader/FileUploader.mixins.js +0 -4
  633. package/components/FileUploader/FileUploader.mixins.js.map +0 -1
  634. package/components/Link/Link.mixins.d.ts +0 -2
  635. package/components/Link/Link.mixins.js +0 -7
  636. package/components/Link/Link.mixins.js.map +0 -1
  637. package/components/MenuFooter/MenuFooter.mixins.d.ts +0 -2
  638. package/components/MenuFooter/MenuFooter.mixins.js +0 -8
  639. package/components/MenuFooter/MenuFooter.mixins.js.map +0 -1
  640. package/components/MenuHeader/MenuHeader.mixins.d.ts +0 -2
  641. package/components/MenuHeader/MenuHeader.mixins.js +0 -8
  642. package/components/MenuHeader/MenuHeader.mixins.js.map +0 -1
  643. package/components/Radio/Radio.mixins.d.ts +0 -7
  644. package/components/Radio/Radio.mixins.js +0 -30
  645. package/components/Radio/Radio.mixins.js.map +0 -1
  646. package/components/Tabs/helpers.d.ts +0 -6
  647. package/components/Tabs/helpers.js +0 -25
  648. package/components/Tabs/helpers.js.map +0 -1
  649. package/components/Textarea/Textarea.mixins.d.ts +0 -2
  650. package/components/Textarea/Textarea.mixins.js +0 -7
  651. package/components/Textarea/Textarea.mixins.js.map +0 -1
  652. package/components/Toggle/Toggle.mixins.d.ts +0 -8
  653. package/components/Toggle/Toggle.mixins.js +0 -32
  654. package/components/Toggle/Toggle.mixins.js.map +0 -1
  655. package/components/Token/Token.mixins.d.ts +0 -1
  656. package/components/Token/Token.mixins.js +0 -4
  657. package/components/Token/Token.mixins.js.map +0 -1
  658. package/components/TokenInput/TokenInput.mixins.d.ts +0 -2
  659. package/components/TokenInput/TokenInput.mixins.js +0 -7
  660. package/components/TokenInput/TokenInput.mixins.js.map +0 -1
  661. package/lib/chars.d.ts +0 -8
  662. package/lib/chars.js +0 -9
  663. package/lib/chars.js.map +0 -1
  664. package/lib/styles/Mixins.d.ts +0 -2
  665. package/lib/styles/Mixins.js +0 -7
  666. package/lib/styles/Mixins.js.map +0 -1
  667. package/lib/styles/UiFont.d.ts +0 -3
  668. package/lib/styles/UiFont.js +0 -18
  669. package/lib/styles/UiFont.js.map +0 -1
  670. package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +0 -1
  671. package/lib/styles/getLabGrotesqueBaselineCompensation.js +0 -10
  672. package/lib/styles/getLabGrotesqueBaselineCompensation.js.map +0 -1
  673. package/lib/theming/AnimationKeyframes.d.ts +0 -7
  674. package/lib/theming/AnimationKeyframes.js +0 -24
  675. package/lib/theming/AnimationKeyframes.js.map +0 -1
  676. package/lib/theming/useTheme.d.ts +0 -2
  677. package/lib/theming/useTheme.js +0 -6
  678. package/lib/theming/useTheme.js.map +0 -1
  679. package/typings/stylis-plugin-extra-scope.d.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploaderFile.js","sourceRoot":"","sources":["FileUploaderFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM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ACJ,CAAC,CACF,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { type CommonProps, CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { TextWidthHelper } from '../../internal/TextWidthHelper/TextWidthHelper.js';\nimport { getDOMRect } from '../../lib/dom/getDOMRect.js';\nimport { isKeyEnter } from '../../lib/events/keyboard/identifiers.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { LocaleContext } from '../../lib/locale/LocaleContext.js';\nimport { useEmotion, useGlobal, useStyles } from '../../lib/renderEnvironment/index.js';\nimport { truncate } from '../../lib/stringUtils.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { formatBytes } from '../../lib/utils.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { Hint } from '../Hint/index.js';\nimport { Tooltip } from '../Tooltip/index.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFile.styles.js';\nimport { FileUploaderFileStatusIcon } from './FileUploaderFileStatusIcon.js';\nimport { FileUploaderFileTypeIcon } from './FileUploaderFileTypeIcon.js';\nimport type { FileUploaderAttachedFile, FileUploaderIconType, FileUploaderView } from './fileUtils.js';\nimport { FileUploaderFileStatus, getFileUploaderTypeIcon } from './fileUtils.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\n\nexport interface FileUploaderFileProps extends CommonProps {\n /** Данные файла и статусы из контекста `FileUploader`. */\n file: FileUploaderAttachedFile;\n /** Включает отображение размера файла рядом с именем. */\n showSize?: boolean;\n /** Фон превью в плиточном виде (URL изображения). */\n previewImg?: string;\n /** Включает мультивыбор файлов. */\n multiple?: boolean;\n /** Блокирует строку файла. */\n disabled?: boolean;\n /** Переводит строку файла в состояние \"наведенное\". */\n hovered?: boolean;\n /** Переводит строку файла в состояние \"фокус\". */\n focused?: boolean;\n /** Размер контрола и вложенных элементов.\n * @default small */\n size: SizeProp;\n /** Внешний вид: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n /** Переводит строку файла в состояние ошибки. */\n error?: boolean;\n /** Переводит строку файла в состояние предупреждения. */\n warning?: boolean;\n /** Включает отображение текста валидации во всплывающей подсказке (и в плитке по умолчанию). */\n withValidationTooltip?: boolean;\n /** Расположение тултипа с текстом валидации. */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла. */\n withWarningIcon?: boolean;\n /** Удаляет файл по `id`. */\n onRemove(id: string): void;\n /**\n * Замена стандартной иконки типа файла.\n */\n fileTypeIcon?: React.ReactElement;\n /**\n * Включает отображение подсказки с полным именем при обрезке текста (через `Hint`).\n * @default true\n */\n showFilenameHint?: boolean;\n}\n\nconst splitFileNameAndExtension = (filename: string): { name: string; extension: string } => {\n const lastDotIndex = filename.lastIndexOf('.');\n if (lastDotIndex === -1) {\n return { name: filename, extension: '' };\n }\n const name = filename.substring(0, lastDotIndex);\n const extension = filename.substring(lastDotIndex + 1);\n return { name, extension };\n};\n\nconst getTruncatedName = (fileNameWidth: number, fileNameElementWidth: number, name: string, isTileView = false) => {\n if (!fileNameWidth && !fileNameElementWidth) {\n return null;\n }\n\n if (fileNameWidth <= fileNameElementWidth) {\n return name;\n }\n\n const charWidth = Math.ceil(fileNameWidth / name.length);\n const maxCharsCountInSpan = Math.ceil(fileNameElementWidth / charWidth);\n\n if (isTileView) {\n const splitFileName = splitFileNameAndExtension(name);\n return `${truncate(splitFileName.name, maxCharsCountInSpan)}.${splitFileName.extension}`;\n }\n\n return truncate(name, maxCharsCountInSpan);\n};\n\nconst calcTruncatedName = (\n textHelperRef: React.RefObject<TextWidthHelper | null>,\n fileNameElementRef: React.RefObject<HTMLSpanElement | null>,\n name: string,\n isTileView = false,\n) => {\n const fileNameWidth = textHelperRef.current?.getTextWidth() || 0;\n const fileNameElementWidth = isTileView\n ? // даем возможность занять 2 строки с погрешностью в 50%\n getDOMRect(fileNameElementRef.current).width * 1.5\n : getDOMRect(fileNameElementRef.current).width;\n\n return getTruncatedName(fileNameWidth, fileNameElementWidth, name, isTileView);\n};\n\nexport const FileUploaderFileDataTids = {\n file: 'FileUploader__file',\n fileTooltip: 'FileUploader__fileTooltip',\n fileName: 'FileUploader__fileName',\n fileSize: 'FileUploader__fileSize',\n fileIcon: 'FileUploader__fileIcon',\n fileTypeIcon: 'FileUploader__fileTypeIcon',\n} as const;\n\n/**\n * `FileUploaderFile` показывает одну строку файла внутри `FileUploader`: имя, тип, размер, статусы и удаление.\n */\nexport const FileUploaderFile = forwardRefAndName<HTMLDivElement, FileUploaderFileProps>(\n 'FileUploaderFile',\n (props, ref) => {\n const {\n file,\n showSize = false,\n previewImg,\n error,\n warning,\n multiple,\n disabled = false,\n hovered = false,\n focused = false,\n size,\n view = 'row',\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n onRemove,\n showFilenameHint: showFullFilename = true,\n fileTypeIcon,\n ...rest\n } = props;\n const { id, originalFile, status, validationResult } = file;\n const { name, size: fileSize } = originalFile;\n\n const [hoveredFile, setHoveredFile] = useState<boolean>(hovered || false);\n const [focusedByTab, setFocusedByTab] = useState(focused || false);\n const [truncatedFileName, setTruncatedFileName] = useState<Nullable<string>>(null);\n\n const textHelperRef = useRef<TextWidthHelper>(null);\n const fileNameElementRef = useRef<HTMLSpanElement>(null);\n\n const { langCode } = useContext(LocaleContext);\n const theme = useContext(ThemeContext);\n const globalObject = useGlobal();\n\n const { cx } = useEmotion();\n const keyListener = useKeyListener();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n\n const isLoading = status === FileUploaderFileStatus.Loading;\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n const validationTooltipPositionByView = validationTooltipPosition || (isTileView ? 'top center' : 'top left');\n\n const formattedSize = useMemo(() => formatBytes(fileSize, 1, langCode), [fileSize, langCode]);\n\n useEffect(() => {\n const truncatedName = calcTruncatedName(textHelperRef, fileNameElementRef, name, isTileView);\n\n setTruncatedFileName(truncatedName);\n });\n\n const handleRemove = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n onRemove(id);\n },\n [id, onRemove],\n );\n\n const { isValid, message } = validationResult;\n\n const isError = file.status === FileUploaderFileStatus.Error || error;\n const isWarning = file.status === FileUploaderFileStatus.Warning || warning;\n const isInvalid = isError || !isValid;\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.iconSmall(theme),\n medium: jsViewStyles.iconMedium(theme),\n large: jsViewStyles.iconLarge(theme),\n });\n\n const renderTooltipContent = useCallback((): ReactNode => {\n return !isValid && !error && message ? message : null;\n }, [isValid, error, message]);\n\n const sizeNameBlockClass = useFileUploaderSize(size, {\n small: jsStyles.contentSmall(theme),\n medium: jsStyles.contentMedium(theme),\n large: jsStyles.contentLarge(theme),\n });\n\n const sizeViewNameBlockClass = useFileUploaderSize(size, {\n small: jsViewStyles.contentSmall(theme),\n medium: jsViewStyles.contentMedium(theme),\n large: jsViewStyles.contentLarge(theme),\n });\n\n const validationTextClassName = cx({\n [jsStyles.validationTextWarning(theme)]: isWarning,\n [jsStyles.validationTextError(theme)]: isError,\n });\n\n const contentClassNames = cx(jsStyles.content(), jsViewStyles.content());\n const nameTextClassNames = cx(jsViewStyles.name(), isTileView && !disabled && validationTextClassName);\n\n const handleMouseEnter = useCallback(() => {\n setHoveredFile(true);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setHoveredFile(false);\n }, []);\n\n const handleFocus = useCallback(() => {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n setFocusedByTab(true);\n }\n });\n }, []);\n\n const handleBlur = useCallback(() => {\n setFocusedByTab(false);\n }, []);\n\n const handleIconKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (isKeyEnter(e)) {\n onRemove(id);\n }\n },\n [onRemove, id],\n );\n\n const iconClassNames = cx(jsStyles.icon(theme), {\n [sizeIconClass]: true,\n [jsTileStyles.iconAction(theme)]: isTileView,\n [jsTileStyles.iconActionShow()]: isTileView && !disabled && (hovered || hoveredFile || focused || focusedByTab),\n });\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsStyles.sizeSmall(theme),\n medium: jsStyles.sizeMedium(theme),\n large: jsStyles.sizeLarge(theme),\n });\n\n const sizeClassNames = cx(\n jsStyles.size(theme),\n sizeClassName,\n jsViewStyles.size(theme),\n isTileView && disabled && jsTileStyles.sizeDisabled(theme),\n );\n\n const sizeFileTypeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileTypeIconSmall(theme),\n medium: jsViewStyles.fileTypeIconMedium(theme),\n large: jsViewStyles.fileTypeIconLarge(theme),\n });\n\n const isTruncated = truncatedFileName !== name;\n\n const fileTypeIconClassName = cx(\n sizeFileTypeIconClass,\n disabled && jsStyles.disabledFileTypeIconSvg(theme),\n isTileView && {\n [jsTileStyles.fileTypeIcon(theme)]: true,\n [jsTileStyles.fileTypeIconPreview()]: !!previewImg,\n [jsTileStyles.disabledFileTypeIcon(theme)]: disabled,\n [jsTileStyles.warningFileTypeIcon(theme)]: isWarning,\n [jsTileStyles.errorFileTypeIcon(theme)]: isError,\n },\n multiple && jsStyles.fileTypeIconMultiple(),\n );\n\n const nameBlockClassNames = cx(\n sizeNameBlockClass,\n sizeViewNameBlockClass,\n jsStyles.nameBlock(),\n disabled && jsViewStyles.disabled(theme),\n jsViewStyles.nameBlock(),\n );\n\n const fileType: FileUploaderIconType = getFileUploaderTypeIcon(\n file.originalFile,\n isError,\n isWarning && !!withWarningIcon,\n );\n const icon =\n isTileView && isLoading ? (\n <LoadingIcon size={size} />\n ) : (\n (fileTypeIcon ?? <FileUploaderFileTypeIcon type={fileType} size={size} view={view} />)\n );\n\n const splitTruncatedFileName = truncatedFileName && splitFileNameAndExtension(truncatedFileName);\n\n return (\n <CommonWrapper {...rest}>\n <div\n data-tid={FileUploaderFileDataTids.file}\n className={jsStyles.root()}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n ref={ref}\n >\n <Tooltip\n data-tid={FileUploaderFileDataTids.fileTooltip}\n pos={validationTooltipPositionByView}\n render={() => (withValidationTooltip || isTileView ? renderTooltipContent() : null)}\n >\n <div className={contentClassNames}>\n {\n <div\n data-tid={FileUploaderFileDataTids.fileTypeIcon}\n className={fileTypeIconClassName}\n style={previewImg ? { backgroundImage: `url(${previewImg})` } : undefined}\n >\n {(!isTileView || !previewImg) && icon}\n </div>\n }\n <div className={nameBlockClassNames}>\n <TextWidthHelper ref={textHelperRef} text={name} />\n <Hint maxWidth={'100%'} text={showFullFilename && isTruncated ? name : null}>\n <span\n data-tid={FileUploaderFileDataTids.fileName}\n ref={fileNameElementRef}\n className={nameTextClassNames}\n >\n {splitTruncatedFileName && (\n <>\n {splitTruncatedFileName.name}\n {splitTruncatedFileName.extension && <span>.{splitTruncatedFileName.extension}</span>}\n </>\n )}\n </span>\n </Hint>\n {!(withValidationTooltip || isTileView) && (\n <span className={validationTextClassName}>{renderTooltipContent()}</span>\n )}\n </div>\n {showSize && formattedSize && (\n <span data-tid={FileUploaderFileDataTids.fileSize} className={sizeClassNames}>\n {formattedSize}\n </span>\n )}\n <div\n className={iconClassNames}\n data-tid={FileUploaderFileDataTids.fileIcon}\n tabIndex={0}\n onClick={handleRemove}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleIconKeyDown}\n >\n <FileUploaderFileStatusIcon\n isTileView={isTileView}\n status={status}\n disabled={disabled}\n hovered={hovered || hoveredFile}\n focusedByTab={focused || focusedByTab}\n isInvalid={isInvalid}\n hasValidation={isError || isWarning}\n size={size}\n />\n </div>\n </div>\n </Tooltip>\n </div>\n </CommonWrapper>\n );\n },\n);\n"]}
1
+ {"version":3,"file":"FileUploaderFile.js","sourceRoot":"","sources":["FileUploaderFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG7F,OAAO,EAAoB,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,gBAAgB,IAAI,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC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';\nimport type { ReactNode } from 'react';\n\nimport { type CommonProps, CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { TextWidthHelper } from '../../internal/TextWidthHelper/TextWidthHelper.js';\nimport { getDOMRect } from '../../lib/dom/getDOMRect.js';\nimport { isKeyEnter } from '../../lib/events/keyboard/identifiers.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { LocaleContext } from '../../lib/locale/LocaleContext.js';\nimport { useGlobal, useStyles } from '../../lib/renderEnvironment/index.js';\nimport { truncate } from '../../lib/stringUtils.js';\nimport { concatClassNames as cx } from '../../lib/theming/Emotion.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { formatBytes } from '../../lib/utils.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { Hint } from '../Hint/index.js';\nimport { Tooltip } from '../Tooltip/index.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFile.styles.js';\nimport { FileUploaderFileStatusIcon } from './FileUploaderFileStatusIcon.js';\nimport { FileUploaderFileTypeIcon } from './FileUploaderFileTypeIcon.js';\nimport type { FileUploaderAttachedFile, FileUploaderIconType, FileUploaderView } from './fileUtils.js';\nimport { FileUploaderFileStatus, getFileUploaderTypeIcon } from './fileUtils.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\n\nexport interface FileUploaderFileProps extends CommonProps {\n /** Данные файла и статусы из контекста `FileUploader`. */\n file: FileUploaderAttachedFile;\n /** Включает отображение размера файла рядом с именем. */\n showSize?: boolean;\n /** Фон превью в плиточном виде (URL изображения). */\n previewImg?: string;\n /** Включает мультивыбор файлов. */\n multiple?: boolean;\n /** Блокирует строку файла. */\n disabled?: boolean;\n /** Переводит строку файла в состояние \"наведенное\". */\n hovered?: boolean;\n /** Переводит строку файла в состояние \"фокус\". */\n focused?: boolean;\n /** Размер контрола и вложенных элементов.\n * @default small */\n size: SizeProp;\n /** Внешний вид: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n /** Переводит строку файла в состояние ошибки. */\n error?: boolean;\n /** Переводит строку файла в состояние предупреждения. */\n warning?: boolean;\n /** Включает отображение текста валидации во всплывающей подсказке (и в плитке по умолчанию). */\n withValidationTooltip?: boolean;\n /** Расположение тултипа с текстом валидации. */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла. */\n withWarningIcon?: boolean;\n /** Удаляет файл по `id`. */\n onRemove(id: string): void;\n /**\n * Замена стандартной иконки типа файла.\n */\n fileTypeIcon?: React.ReactElement;\n /**\n * Включает отображение подсказки с полным именем при обрезке текста (через `Hint`).\n * @default true\n */\n showFilenameHint?: boolean;\n}\n\nconst splitFileNameAndExtension = (filename: string): { name: string; extension: string } => {\n const lastDotIndex = filename.lastIndexOf('.');\n if (lastDotIndex === -1) {\n return { name: filename, extension: '' };\n }\n const name = filename.substring(0, lastDotIndex);\n const extension = filename.substring(lastDotIndex + 1);\n return { name, extension };\n};\n\nconst getTruncatedName = (fileNameWidth: number, fileNameElementWidth: number, name: string, isTileView = false) => {\n if (!fileNameWidth && !fileNameElementWidth) {\n return null;\n }\n\n if (fileNameWidth <= fileNameElementWidth) {\n return name;\n }\n\n const charWidth = Math.ceil(fileNameWidth / name.length);\n const maxCharsCountInSpan = Math.ceil(fileNameElementWidth / charWidth);\n\n if (isTileView) {\n const splitFileName = splitFileNameAndExtension(name);\n return `${truncate(splitFileName.name, maxCharsCountInSpan)}.${splitFileName.extension}`;\n }\n\n return truncate(name, maxCharsCountInSpan);\n};\n\nconst calcTruncatedName = (\n textHelperRef: React.RefObject<TextWidthHelper | null>,\n fileNameElementRef: React.RefObject<HTMLSpanElement | null>,\n name: string,\n isTileView = false,\n) => {\n const fileNameWidth = textHelperRef.current?.getTextWidth() || 0;\n const fileNameElementWidth = isTileView\n ? // даем возможность занять 2 строки с погрешностью в 50%\n getDOMRect(fileNameElementRef.current).width * 1.5\n : getDOMRect(fileNameElementRef.current).width;\n\n return getTruncatedName(fileNameWidth, fileNameElementWidth, name, isTileView);\n};\n\nexport const FileUploaderFileDataTids = {\n file: 'FileUploader__file',\n fileTooltip: 'FileUploader__fileTooltip',\n fileName: 'FileUploader__fileName',\n fileSize: 'FileUploader__fileSize',\n fileIcon: 'FileUploader__fileIcon',\n fileTypeIcon: 'FileUploader__fileTypeIcon',\n} as const;\n\n/**\n * `FileUploaderFile` показывает одну строку файла внутри `FileUploader`: имя, тип, размер, статусы и удаление.\n */\nexport const FileUploaderFile = forwardRefAndName<HTMLDivElement, FileUploaderFileProps>(\n 'FileUploaderFile',\n (props, ref) => {\n const {\n file,\n showSize = false,\n previewImg,\n error,\n warning,\n multiple,\n disabled = false,\n hovered = false,\n focused = false,\n size,\n view = 'row',\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n onRemove,\n showFilenameHint: showFullFilename = true,\n fileTypeIcon,\n ...rest\n } = props;\n const { id, originalFile, status, validationResult } = file;\n const { name, size: fileSize } = originalFile;\n\n const [hoveredFile, setHoveredFile] = useState<boolean>(hovered || false);\n const [focusedByTab, setFocusedByTab] = useState(focused || false);\n const [truncatedFileName, setTruncatedFileName] = useState<Nullable<string>>(null);\n\n const textHelperRef = useRef<TextWidthHelper>(null);\n const fileNameElementRef = useRef<HTMLSpanElement>(null);\n\n const { langCode } = useContext(LocaleContext);\n const globalObject = useGlobal();\n\n const keyListener = useKeyListener();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n\n const isLoading = status === FileUploaderFileStatus.Loading;\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n const validationTooltipPositionByView = validationTooltipPosition || (isTileView ? 'top center' : 'top left');\n\n const formattedSize = useMemo(() => formatBytes(fileSize, 1, langCode), [fileSize, langCode]);\n\n useEffect(() => {\n const truncatedName = calcTruncatedName(textHelperRef, fileNameElementRef, name, isTileView);\n\n setTruncatedFileName(truncatedName);\n });\n\n const handleRemove = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n onRemove(id);\n },\n [id, onRemove],\n );\n\n const { isValid, message } = validationResult;\n\n const isError = file.status === FileUploaderFileStatus.Error || error;\n const isWarning = file.status === FileUploaderFileStatus.Warning || warning;\n const isInvalid = isError || !isValid;\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.iconSmall(),\n medium: jsViewStyles.iconMedium(),\n large: jsViewStyles.iconLarge(),\n });\n\n const renderTooltipContent = useCallback((): ReactNode => {\n return !isValid && !error && message ? message : null;\n }, [isValid, error, message]);\n\n const sizeNameBlockClass = useFileUploaderSize(size, {\n small: jsStyles.contentSmall(),\n medium: jsStyles.contentMedium(),\n large: jsStyles.contentLarge(),\n });\n\n const sizeViewNameBlockClass = useFileUploaderSize(size, {\n small: jsViewStyles.contentSmall(),\n medium: jsViewStyles.contentMedium(),\n large: jsViewStyles.contentLarge(),\n });\n\n const validationTextClassName = cx({\n [jsStyles.validationTextWarning()]: isWarning,\n [jsStyles.validationTextError()]: isError,\n });\n\n const contentClassNames = cx(jsStyles.content(), jsViewStyles.content());\n const nameTextClassNames = cx(jsViewStyles.name(), isTileView && !disabled && validationTextClassName);\n\n const handleMouseEnter = useCallback(() => {\n setHoveredFile(true);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setHoveredFile(false);\n }, []);\n\n const handleFocus = useCallback(() => {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n setFocusedByTab(true);\n }\n });\n }, []);\n\n const handleBlur = useCallback(() => {\n setFocusedByTab(false);\n }, []);\n\n const handleIconKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (isKeyEnter(e)) {\n onRemove(id);\n }\n },\n [onRemove, id],\n );\n\n const iconClassNames = cx(jsStyles.icon(), {\n [sizeIconClass]: true,\n [jsTileStyles.iconAction()]: isTileView,\n [jsTileStyles.iconActionShow()]: isTileView && !disabled && (hovered || hoveredFile || focused || focusedByTab),\n });\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsStyles.sizeSmall(),\n medium: jsStyles.sizeMedium(),\n large: jsStyles.sizeLarge(),\n });\n\n const sizeClassNames = cx(\n jsStyles.size(),\n sizeClassName,\n jsViewStyles.size(),\n isTileView && (disabled || isLoading) && jsTileStyles.sizeDisabled(),\n );\n\n const sizeFileTypeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileTypeIconSmall(),\n medium: jsViewStyles.fileTypeIconMedium(),\n large: jsViewStyles.fileTypeIconLarge(),\n });\n\n const isTruncated = truncatedFileName !== name;\n\n const fileTypeIconClassName = cx(\n sizeFileTypeIconClass,\n disabled && jsStyles.disabledFileTypeIconSvg(),\n isTileView && {\n [jsTileStyles.fileTypeIcon()]: true,\n [jsTileStyles.fileTypeIconPreview()]: !!previewImg,\n [jsTileStyles.disabledFileTypeIcon()]: disabled,\n [jsTileStyles.warningFileTypeIcon()]: isWarning,\n [jsTileStyles.errorFileTypeIcon()]: isError,\n },\n multiple && jsStyles.fileTypeIconMultiple(),\n );\n\n const nameBlockClassNames = cx(\n sizeNameBlockClass,\n sizeViewNameBlockClass,\n jsStyles.nameBlock(),\n (disabled || isLoading) && jsViewStyles.disabled(),\n jsViewStyles.nameBlock(),\n );\n\n const fileType: FileUploaderIconType = getFileUploaderTypeIcon(\n file.originalFile,\n isError,\n isWarning && !!withWarningIcon,\n );\n const icon =\n isTileView && isLoading ? (\n <LoadingIcon size={size} />\n ) : (\n (fileTypeIcon ?? <FileUploaderFileTypeIcon type={fileType} size={size} view={view} />)\n );\n\n const splitTruncatedFileName = truncatedFileName && splitFileNameAndExtension(truncatedFileName);\n\n return (\n <CommonWrapper {...rest}>\n <div\n data-tid={FileUploaderFileDataTids.file}\n className={jsStyles.root()}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n ref={ref}\n >\n <Tooltip\n data-tid={FileUploaderFileDataTids.fileTooltip}\n pos={validationTooltipPositionByView}\n render={() => (withValidationTooltip || isTileView ? renderTooltipContent() : null)}\n >\n <div className={contentClassNames}>\n {\n <div\n data-tid={FileUploaderFileDataTids.fileTypeIcon}\n className={fileTypeIconClassName}\n style={previewImg ? { backgroundImage: `url(${previewImg})` } : undefined}\n >\n {(!isTileView || !previewImg) && icon}\n </div>\n }\n <div className={nameBlockClassNames}>\n <TextWidthHelper ref={textHelperRef} text={name} />\n <Hint maxWidth={'100%'} text={showFullFilename && isTruncated ? name : null}>\n <span\n data-tid={FileUploaderFileDataTids.fileName}\n ref={fileNameElementRef}\n className={nameTextClassNames}\n >\n {splitTruncatedFileName && (\n <>\n {splitTruncatedFileName.name}\n {splitTruncatedFileName.extension && <span>.{splitTruncatedFileName.extension}</span>}\n </>\n )}\n </span>\n </Hint>\n {!(withValidationTooltip || isTileView) && (\n <span className={validationTextClassName}>{renderTooltipContent()}</span>\n )}\n </div>\n {showSize && formattedSize && (\n <span data-tid={FileUploaderFileDataTids.fileSize} className={sizeClassNames}>\n {formattedSize}\n </span>\n )}\n <div\n className={iconClassNames}\n data-tid={FileUploaderFileDataTids.fileIcon}\n tabIndex={0}\n onClick={handleRemove}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleIconKeyDown}\n >\n <FileUploaderFileStatusIcon\n isTileView={isTileView}\n status={status}\n disabled={disabled}\n hovered={hovered || hoveredFile}\n focusedByTab={focused || focusedByTab}\n isInvalid={isInvalid}\n hasValidation={isError || isWarning}\n size={size}\n />\n </div>\n </div>\n </Tooltip>\n </div>\n </CommonWrapper>\n );\n },\n);\n"]}
@@ -1,60 +1,60 @@
1
- import type { Theme } from '../../lib/theming/Theme.js';
2
- export declare const getJsStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
3
- root(): string;
4
- content(): string;
5
- validationTextError(t: Theme): string;
6
- validationTextWarning(t: Theme): string;
7
- nameBlock(): string;
8
- size(t: Theme): string;
9
- sizeSmall(t: Theme): string;
10
- sizeMedium(t: Theme): string;
11
- sizeLarge(t: Theme): string;
12
- icon(t: Theme): string;
13
- disabledFileTypeIconSvg(t: Theme): string;
14
- fileTypeIconMultiple(): string;
15
- contentSmall(t: Theme): string;
16
- contentMedium(t: Theme): string;
17
- contentLarge(t: Theme): string;
1
+ /** Правила — в `FileUploaderFile.css`; здесь только имена классов. */
2
+ export declare const getJsRowStyles: (ignored?: unknown) => import("../../lib/theming/staticStyles.js").StaticStyles<{
3
+ content: string;
4
+ contentSmall: string;
5
+ contentMedium: string;
6
+ contentLarge: string;
7
+ iconSmall: string;
8
+ iconMedium: string;
9
+ iconLarge: string;
10
+ fileTypeIconSmall: string;
11
+ fileTypeIconMedium: string;
12
+ fileTypeIconLarge: string;
13
+ iconColor: string;
14
+ size: string;
15
+ name: string;
16
+ nameBlock: string;
17
+ disabled: string;
18
18
  }>;
19
- export declare const getJsRowStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
20
- content(): string;
21
- contentSmall(t: Theme): string;
22
- contentMedium(t: Theme): string;
23
- contentLarge(t: Theme): string;
24
- iconSmall(t: Theme): string;
25
- iconMedium(t: Theme): string;
26
- iconLarge(t: Theme): string;
27
- fileTypeIconSmall(t: Theme): string;
28
- fileTypeIconMedium(t: Theme): string;
29
- fileTypeIconLarge(t: Theme): string;
30
- iconColor(t: Theme): string;
31
- size(t: Theme): string;
32
- name(): string;
33
- nameBlock(): string;
34
- disabled(t: Theme): string;
19
+ export declare const getJsStyles: (ignored?: unknown) => import("../../lib/theming/staticStyles.js").StaticStyles<{
20
+ root: string;
21
+ content: string;
22
+ validationTextError: string;
23
+ validationTextWarning: string;
24
+ nameBlock: string;
25
+ size: string;
26
+ sizeSmall: string;
27
+ sizeMedium: string;
28
+ sizeLarge: string;
29
+ icon: string;
30
+ disabledFileTypeIconSvg: string;
31
+ fileTypeIconMultiple: string;
32
+ contentSmall: string;
33
+ contentMedium: string;
34
+ contentLarge: string;
35
35
  }>;
36
- export declare const getJsTileStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
37
- content(): string;
38
- iconAction(t: Theme): string;
39
- iconActionShow(): string;
40
- iconSmall(t: Theme): string;
41
- iconMedium(t: Theme): string;
42
- iconLarge(t: Theme): string;
43
- fileTypeIcon(t: Theme): string;
44
- fileTypeIconPreview(): string;
45
- fileTypeIconSmall(t: Theme): string;
46
- fileTypeIconMedium(t: Theme): string;
47
- fileTypeIconLarge(t: Theme): string;
48
- disabledFileTypeIcon(t: Theme): string;
49
- sizeDisabled(t: Theme): string;
50
- errorFileTypeIcon(t: Theme): string;
51
- warningFileTypeIcon(t: Theme): string;
52
- iconColor(t: Theme): string;
53
- size(t: Theme): string;
54
- name(): string;
55
- nameBlock(): string;
56
- contentSmall(t: Theme): string;
57
- contentMedium(t: Theme): string;
58
- contentLarge(t: Theme): string;
59
- disabled(t: Theme): string;
36
+ export declare const getJsTileStyles: (ignored?: unknown) => import("../../lib/theming/staticStyles.js").StaticStyles<{
37
+ content: string;
38
+ iconAction: string;
39
+ iconActionShow: string;
40
+ iconSmall: string;
41
+ iconMedium: string;
42
+ iconLarge: string;
43
+ fileTypeIcon: string;
44
+ fileTypeIconPreview: string;
45
+ fileTypeIconSmall: string;
46
+ fileTypeIconMedium: string;
47
+ fileTypeIconLarge: string;
48
+ disabledFileTypeIcon: string;
49
+ sizeDisabled: string;
50
+ errorFileTypeIcon: string;
51
+ warningFileTypeIcon: string;
52
+ iconColor: string;
53
+ size: string;
54
+ name: string;
55
+ nameBlock: string;
56
+ contentSmall: string;
57
+ contentMedium: string;
58
+ contentLarge: string;
59
+ disabled: string;
60
60
  }>;
@@ -1,184 +1,62 @@
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
- });
1
+ import { staticStyles } from '../../lib/theming/staticStyles.js';
2
+ /** Правила — в `FileUploaderFile.css`; здесь только имена классов. */
3
+ export var getJsRowStyles = staticStyles({
4
+ content: 'react-ui-FileUploaderFile-JsRow-content',
5
+ contentSmall: 'react-ui-FileUploaderFile-JsRow-contentSmall',
6
+ contentMedium: 'react-ui-FileUploaderFile-JsRow-contentMedium',
7
+ contentLarge: 'react-ui-FileUploaderFile-JsRow-contentLarge',
8
+ iconSmall: 'react-ui-FileUploaderFile-JsRow-iconSmall',
9
+ iconMedium: 'react-ui-FileUploaderFile-JsRow-iconMedium',
10
+ iconLarge: 'react-ui-FileUploaderFile-JsRow-iconLarge',
11
+ fileTypeIconSmall: 'react-ui-FileUploaderFile-JsRow-fileTypeIconSmall',
12
+ fileTypeIconMedium: 'react-ui-FileUploaderFile-JsRow-fileTypeIconMedium',
13
+ fileTypeIconLarge: 'react-ui-FileUploaderFile-JsRow-fileTypeIconLarge',
14
+ iconColor: 'react-ui-FileUploaderFile-JsRow-iconColor',
15
+ size: 'react-ui-FileUploaderFile-JsRow-size',
16
+ name: 'react-ui-FileUploaderFile-JsRow-name',
17
+ nameBlock: 'react-ui-FileUploaderFile-JsRow-nameBlock',
18
+ disabled: 'react-ui-FileUploaderFile-JsRow-disabled',
55
19
  });
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
- };
20
+ export var getJsStyles = staticStyles({
21
+ root: 'react-ui-FileUploaderFile-Js-root',
22
+ content: 'react-ui-FileUploaderFile-Js-content',
23
+ validationTextError: 'react-ui-FileUploaderFile-Js-validationTextError',
24
+ validationTextWarning: 'react-ui-FileUploaderFile-Js-validationTextWarning',
25
+ nameBlock: 'react-ui-FileUploaderFile-Js-nameBlock',
26
+ size: 'react-ui-FileUploaderFile-Js-size',
27
+ sizeSmall: 'react-ui-FileUploaderFile-Js-sizeSmall',
28
+ sizeMedium: 'react-ui-FileUploaderFile-Js-sizeMedium',
29
+ sizeLarge: 'react-ui-FileUploaderFile-Js-sizeLarge',
30
+ icon: 'react-ui-FileUploaderFile-Js-icon',
31
+ disabledFileTypeIconSvg: 'react-ui-FileUploaderFile-Js-disabledFileTypeIconSvg',
32
+ fileTypeIconMultiple: 'react-ui-FileUploaderFile-Js-fileTypeIconMultiple',
33
+ contentSmall: 'react-ui-FileUploaderFile-Js-contentSmall',
34
+ contentMedium: 'react-ui-FileUploaderFile-Js-contentMedium',
35
+ contentLarge: 'react-ui-FileUploaderFile-Js-contentLarge',
105
36
  });
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
- };
37
+ export var getJsTileStyles = staticStyles({
38
+ content: 'react-ui-FileUploaderFile-JsTile-content',
39
+ iconAction: 'react-ui-FileUploaderFile-JsTile-iconAction',
40
+ iconActionShow: 'react-ui-FileUploaderFile-JsTile-iconActionShow',
41
+ iconSmall: 'react-ui-FileUploaderFile-JsTile-iconSmall',
42
+ iconMedium: 'react-ui-FileUploaderFile-JsTile-iconMedium',
43
+ iconLarge: 'react-ui-FileUploaderFile-JsTile-iconLarge',
44
+ fileTypeIcon: 'react-ui-FileUploaderFile-JsTile-fileTypeIcon',
45
+ fileTypeIconPreview: 'react-ui-FileUploaderFile-JsTile-fileTypeIconPreview',
46
+ fileTypeIconSmall: 'react-ui-FileUploaderFile-JsTile-fileTypeIconSmall',
47
+ fileTypeIconMedium: 'react-ui-FileUploaderFile-JsTile-fileTypeIconMedium',
48
+ fileTypeIconLarge: 'react-ui-FileUploaderFile-JsTile-fileTypeIconLarge',
49
+ disabledFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-disabledFileTypeIcon',
50
+ sizeDisabled: 'react-ui-FileUploaderFile-JsTile-sizeDisabled',
51
+ errorFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-errorFileTypeIcon',
52
+ warningFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-warningFileTypeIcon',
53
+ iconColor: 'react-ui-FileUploaderFile-JsTile-iconColor',
54
+ size: 'react-ui-FileUploaderFile-JsTile-size',
55
+ name: 'react-ui-FileUploaderFile-JsTile-name',
56
+ nameBlock: 'react-ui-FileUploaderFile-JsTile-nameBlock',
57
+ contentSmall: 'react-ui-FileUploaderFile-JsTile-contentSmall',
58
+ contentMedium: 'react-ui-FileUploaderFile-JsTile-contentMedium',
59
+ contentLarge: 'react-ui-FileUploaderFile-JsTile-contentLarge',
60
+ disabled: 'react-ui-FileUploaderFile-JsTile-disabled',
182
61
  });
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
62
  //# sourceMappingURL=FileUploaderFile.styles.js.map
@@ -1 +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,CAAC;QAED,SAAS;YACP,OAAO,GAAG,oKAAA,iGAKT,KAAC;QACJ,CAAC;QAED,IAAI,YAAC,CAAQ;YACX,OAAO,GAAG,4HAAA,uBACO,EAAgC,gC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'@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"]}
1
+ {"version":3,"file":"FileUploaderFile.styles.js","sourceRoot":"","sources":["FileUploaderFile.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,sEAAsE;AACtE,MAAM,CAAC,IAAM,cAAc,GAAG,YAAY,CAAC;IACzC,OAAO,EAAE,yCAAyC;IAClD,YAAY,EAAE,8CAA8C;IAC5D,aAAa,EAAE,+CAA+C;IAC9D,YAAY,EAAE,8CAA8C;IAC5D,SAAS,EAAE,2CAA2C;IACtD,UAAU,EAAE,4CAA4C;IACxD,SAAS,EAAE,2CAA2C;IACtD,iBAAiB,EAAE,mDAAmD;IACtE,kBAAkB,EAAE,oDAAoD;IACxE,iBAAiB,EAAE,mDAAmD;IACtE,SAAS,EAAE,2CAA2C;IACtD,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,sCAAsC;IAC5C,SAAS,EAAE,2CAA2C;IACtD,QAAQ,EAAE,0CAA0C;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,WAAW,GAAG,YAAY,CAAC;IACtC,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,sCAAsC;IAC/C,mBAAmB,EAAE,kDAAkD;IACvE,qBAAqB,EAAE,oDAAoD;IAC3E,SAAS,EAAE,wCAAwC;IACnD,IAAI,EAAE,mCAAmC;IACzC,SAAS,EAAE,wCAAwC;IACnD,UAAU,EAAE,yCAAyC;IACrD,SAAS,EAAE,wCAAwC;IACnD,IAAI,EAAE,mCAAmC;IACzC,uBAAuB,EAAE,sDAAsD;IAC/E,oBAAoB,EAAE,mDAAmD;IACzE,YAAY,EAAE,2CAA2C;IACzD,aAAa,EAAE,4CAA4C;IAC3D,YAAY,EAAE,2CAA2C;CAC1D,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,eAAe,GAAG,YAAY,CAAC;IAC1C,OAAO,EAAE,0CAA0C;IACnD,UAAU,EAAE,6CAA6C;IACzD,cAAc,EAAE,iDAAiD;IACjE,SAAS,EAAE,4CAA4C;IACvD,UAAU,EAAE,6CAA6C;IACzD,SAAS,EAAE,4CAA4C;IACvD,YAAY,EAAE,+CAA+C;IAC7D,mBAAmB,EAAE,sDAAsD;IAC3E,iBAAiB,EAAE,oDAAoD;IACvE,kBAAkB,EAAE,qDAAqD;IACzE,iBAAiB,EAAE,oDAAoD;IACvE,oBAAoB,EAAE,uDAAuD;IAC7E,YAAY,EAAE,+CAA+C;IAC7D,iBAAiB,EAAE,oDAAoD;IACvE,mBAAmB,EAAE,sDAAsD;IAC3E,SAAS,EAAE,4CAA4C;IACvD,IAAI,EAAE,uCAAuC;IAC7C,IAAI,EAAE,uCAAuC;IAC7C,SAAS,EAAE,4CAA4C;IACvD,YAAY,EAAE,+CAA+C;IAC7D,aAAa,EAAE,gDAAgD;IAC/D,YAAY,EAAE,+CAA+C;IAC7D,QAAQ,EAAE,2CAA2C;CACtD,CAAC,CAAC","sourcesContent":["import { staticStyles } from '../../lib/theming/staticStyles.js';\n\n/** Правила — в `FileUploaderFile.css`; здесь только имена классов. */\nexport const getJsRowStyles = staticStyles({\n content: 'react-ui-FileUploaderFile-JsRow-content',\n contentSmall: 'react-ui-FileUploaderFile-JsRow-contentSmall',\n contentMedium: 'react-ui-FileUploaderFile-JsRow-contentMedium',\n contentLarge: 'react-ui-FileUploaderFile-JsRow-contentLarge',\n iconSmall: 'react-ui-FileUploaderFile-JsRow-iconSmall',\n iconMedium: 'react-ui-FileUploaderFile-JsRow-iconMedium',\n iconLarge: 'react-ui-FileUploaderFile-JsRow-iconLarge',\n fileTypeIconSmall: 'react-ui-FileUploaderFile-JsRow-fileTypeIconSmall',\n fileTypeIconMedium: 'react-ui-FileUploaderFile-JsRow-fileTypeIconMedium',\n fileTypeIconLarge: 'react-ui-FileUploaderFile-JsRow-fileTypeIconLarge',\n iconColor: 'react-ui-FileUploaderFile-JsRow-iconColor',\n size: 'react-ui-FileUploaderFile-JsRow-size',\n name: 'react-ui-FileUploaderFile-JsRow-name',\n nameBlock: 'react-ui-FileUploaderFile-JsRow-nameBlock',\n disabled: 'react-ui-FileUploaderFile-JsRow-disabled',\n});\n\nexport const getJsStyles = staticStyles({\n root: 'react-ui-FileUploaderFile-Js-root',\n content: 'react-ui-FileUploaderFile-Js-content',\n validationTextError: 'react-ui-FileUploaderFile-Js-validationTextError',\n validationTextWarning: 'react-ui-FileUploaderFile-Js-validationTextWarning',\n nameBlock: 'react-ui-FileUploaderFile-Js-nameBlock',\n size: 'react-ui-FileUploaderFile-Js-size',\n sizeSmall: 'react-ui-FileUploaderFile-Js-sizeSmall',\n sizeMedium: 'react-ui-FileUploaderFile-Js-sizeMedium',\n sizeLarge: 'react-ui-FileUploaderFile-Js-sizeLarge',\n icon: 'react-ui-FileUploaderFile-Js-icon',\n disabledFileTypeIconSvg: 'react-ui-FileUploaderFile-Js-disabledFileTypeIconSvg',\n fileTypeIconMultiple: 'react-ui-FileUploaderFile-Js-fileTypeIconMultiple',\n contentSmall: 'react-ui-FileUploaderFile-Js-contentSmall',\n contentMedium: 'react-ui-FileUploaderFile-Js-contentMedium',\n contentLarge: 'react-ui-FileUploaderFile-Js-contentLarge',\n});\n\nexport const getJsTileStyles = staticStyles({\n content: 'react-ui-FileUploaderFile-JsTile-content',\n iconAction: 'react-ui-FileUploaderFile-JsTile-iconAction',\n iconActionShow: 'react-ui-FileUploaderFile-JsTile-iconActionShow',\n iconSmall: 'react-ui-FileUploaderFile-JsTile-iconSmall',\n iconMedium: 'react-ui-FileUploaderFile-JsTile-iconMedium',\n iconLarge: 'react-ui-FileUploaderFile-JsTile-iconLarge',\n fileTypeIcon: 'react-ui-FileUploaderFile-JsTile-fileTypeIcon',\n fileTypeIconPreview: 'react-ui-FileUploaderFile-JsTile-fileTypeIconPreview',\n fileTypeIconSmall: 'react-ui-FileUploaderFile-JsTile-fileTypeIconSmall',\n fileTypeIconMedium: 'react-ui-FileUploaderFile-JsTile-fileTypeIconMedium',\n fileTypeIconLarge: 'react-ui-FileUploaderFile-JsTile-fileTypeIconLarge',\n disabledFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-disabledFileTypeIcon',\n sizeDisabled: 'react-ui-FileUploaderFile-JsTile-sizeDisabled',\n errorFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-errorFileTypeIcon',\n warningFileTypeIcon: 'react-ui-FileUploaderFile-JsTile-warningFileTypeIcon',\n iconColor: 'react-ui-FileUploaderFile-JsTile-iconColor',\n size: 'react-ui-FileUploaderFile-JsTile-size',\n name: 'react-ui-FileUploaderFile-JsTile-name',\n nameBlock: 'react-ui-FileUploaderFile-JsTile-nameBlock',\n contentSmall: 'react-ui-FileUploaderFile-JsTile-contentSmall',\n contentMedium: 'react-ui-FileUploaderFile-JsTile-contentMedium',\n contentLarge: 'react-ui-FileUploaderFile-JsTile-contentLarge',\n disabled: 'react-ui-FileUploaderFile-JsTile-disabled',\n});\n"]}