@skbkontur/react-ui 6.4.2-static-css.0 → 6.4.3-5e1c3.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 (691) hide show
  1. package/README.md +0 -97
  2. package/components/Autocomplete/Autocomplete.d.ts +1 -0
  3. package/components/Autocomplete/Autocomplete.js +4 -13
  4. package/components/Autocomplete/Autocomplete.js.map +1 -1
  5. package/components/Autocomplete/Autocomplete.styles.d.ts +4 -4
  6. package/components/Autocomplete/Autocomplete.styles.js +16 -5
  7. package/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  8. package/components/Button/Button.d.ts +1 -15
  9. package/components/Button/Button.js +76 -162
  10. package/components/Button/Button.js.map +1 -1
  11. package/components/Button/Button.mixins.d.ts +4 -0
  12. package/components/Button/Button.mixins.js +21 -0
  13. package/components/Button/Button.mixins.js.map +1 -0
  14. package/components/Button/Button.styles.d.ts +91 -107
  15. package/components/Button/Button.styles.js +255 -108
  16. package/components/Button/Button.styles.js.map +1 -1
  17. package/components/Button/ButtonArrow.d.ts +3 -2
  18. package/components/Button/ButtonArrow.js +10 -8
  19. package/components/Button/ButtonArrow.js.map +1 -1
  20. package/components/Button/ButtonIcon.js +17 -7
  21. package/components/Button/ButtonIcon.js.map +1 -1
  22. package/components/Button/ButtonIcon.styles.d.ts +15 -15
  23. package/components/Button/ButtonIcon.styles.js +51 -16
  24. package/components/Button/ButtonIcon.styles.js.map +1 -1
  25. package/components/Calendar/Calendar.d.ts +1 -0
  26. package/components/Calendar/Calendar.js +3 -3
  27. package/components/Calendar/Calendar.js.map +1 -1
  28. package/components/Calendar/Calendar.styles.d.ts +5 -5
  29. package/components/Calendar/Calendar.styles.js +20 -6
  30. package/components/Calendar/Calendar.styles.js.map +1 -1
  31. package/components/Calendar/CalendarDay.js +7 -11
  32. package/components/Calendar/CalendarDay.js.map +1 -1
  33. package/components/Calendar/DayCellView.js +3 -1
  34. package/components/Calendar/DayCellView.js.map +1 -1
  35. package/components/Calendar/DayCellView.styles.d.ts +8 -10
  36. package/components/Calendar/DayCellView.styles.js +29 -11
  37. package/components/Calendar/DayCellView.styles.js.map +1 -1
  38. package/components/Calendar/Month.js +10 -6
  39. package/components/Calendar/Month.js.map +1 -1
  40. package/components/Calendar/MonthView.js +7 -7
  41. package/components/Calendar/MonthView.js.map +1 -1
  42. package/components/Calendar/MonthView.styles.d.ts +12 -12
  43. package/components/Calendar/MonthView.styles.js +45 -13
  44. package/components/Calendar/MonthView.styles.js.map +1 -1
  45. package/components/Center/Center.d.ts +1 -0
  46. package/components/Center/Center.js +1 -1
  47. package/components/Center/Center.js.map +1 -1
  48. package/components/Center/Center.styles.d.ts +6 -7
  49. package/components/Center/Center.styles.js +25 -8
  50. package/components/Center/Center.styles.js.map +1 -1
  51. package/components/Checkbox/Checkbox.d.ts +1 -8
  52. package/components/Checkbox/Checkbox.js +26 -57
  53. package/components/Checkbox/Checkbox.js.map +1 -1
  54. package/components/Checkbox/Checkbox.mixins.d.ts +4 -0
  55. package/components/Checkbox/Checkbox.mixins.js +18 -0
  56. package/components/Checkbox/Checkbox.mixins.js.map +1 -0
  57. package/components/Checkbox/Checkbox.styles.d.ts +30 -33
  58. package/components/Checkbox/Checkbox.styles.js +95 -35
  59. package/components/Checkbox/Checkbox.styles.js.map +1 -1
  60. package/components/DateInput/DateFragmentsView.d.ts +2 -0
  61. package/components/DateInput/DateFragmentsView.js +7 -10
  62. package/components/DateInput/DateFragmentsView.js.map +1 -1
  63. package/components/DateInput/DateFragmentsView.styles.d.ts +6 -8
  64. package/components/DateInput/DateFragmentsView.styles.js +26 -9
  65. package/components/DateInput/DateFragmentsView.styles.js.map +1 -1
  66. package/components/DateInput/DateInput.d.ts +2 -0
  67. package/components/DateInput/DateInput.js +8 -6
  68. package/components/DateInput/DateInput.js.map +1 -1
  69. package/components/DateInput/DateInput.styles.d.ts +11 -10
  70. package/components/DateInput/DateInput.styles.js +28 -11
  71. package/components/DateInput/DateInput.styles.js.map +1 -1
  72. package/components/DatePicker/DatePicker.d.ts +1 -0
  73. package/components/DatePicker/DatePicker.js +2 -2
  74. package/components/DatePicker/DatePicker.js.map +1 -1
  75. package/components/DatePicker/DatePicker.styles.d.ts +4 -4
  76. package/components/DatePicker/DatePicker.styles.js +16 -5
  77. package/components/DatePicker/DatePicker.styles.js.map +1 -1
  78. package/components/DatePicker/MobilePicker.styles.d.ts +2 -3
  79. package/components/DatePicker/MobilePicker.styles.js +13 -4
  80. package/components/DatePicker/MobilePicker.styles.js.map +1 -1
  81. package/components/DatePicker/getMobilePickerTheme.js +9 -27
  82. package/components/DatePicker/getMobilePickerTheme.js.map +1 -1
  83. package/components/DateRangePicker/DateRangePicker.d.ts +4 -4
  84. package/components/DateRangePicker/DateRangePicker.js +28 -26
  85. package/components/DateRangePicker/DateRangePicker.js.map +1 -1
  86. package/components/DateRangePicker/DateRangePicker.styles.d.ts +14 -20
  87. package/components/DateRangePicker/DateRangePicker.styles.js +49 -25
  88. package/components/DateRangePicker/DateRangePicker.styles.js.map +1 -1
  89. package/components/DateRangePicker/DateRangePickerTheme.js +10 -30
  90. package/components/DateRangePicker/DateRangePickerTheme.js.map +1 -1
  91. package/components/Dropdown/getDropdownTheme.d.ts +0 -11
  92. package/components/Dropdown/getDropdownTheme.js +4 -23
  93. package/components/Dropdown/getDropdownTheme.js.map +1 -1
  94. package/components/DropdownMenu/getDropdownMenuTheme.js +2 -9
  95. package/components/DropdownMenu/getDropdownMenuTheme.js.map +1 -1
  96. package/components/FileUploader/FileUploader.d.ts +1 -2
  97. package/components/FileUploader/FileUploader.js +45 -50
  98. package/components/FileUploader/FileUploader.js.map +1 -1
  99. package/components/FileUploader/FileUploader.mixins.d.ts +1 -0
  100. package/components/FileUploader/FileUploader.mixins.js +4 -0
  101. package/components/FileUploader/FileUploader.mixins.js.map +1 -0
  102. package/components/FileUploader/FileUploader.styles.d.ts +68 -69
  103. package/components/FileUploader/FileUploader.styles.js +214 -71
  104. package/components/FileUploader/FileUploader.styles.js.map +1 -1
  105. package/components/FileUploader/FileUploaderFile.js +30 -28
  106. package/components/FileUploader/FileUploaderFile.js.map +1 -1
  107. package/components/FileUploader/FileUploaderFile.styles.d.ts +57 -57
  108. package/components/FileUploader/FileUploaderFile.styles.js +180 -58
  109. package/components/FileUploader/FileUploaderFile.styles.js.map +1 -1
  110. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js +19 -17
  111. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
  112. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.d.ts +31 -31
  113. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js +99 -32
  114. package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js.map +1 -1
  115. package/components/FileUploader/FileUploaderFileStatusIcon.js +4 -2
  116. package/components/FileUploader/FileUploaderFileStatusIcon.js.map +1 -1
  117. package/components/FileUploader/FileUploaderFileTypeIcon.js +52 -47
  118. package/components/FileUploader/FileUploaderFileTypeIcon.js.map +1 -1
  119. package/components/FxInput/FxInput.d.ts +1 -1
  120. package/components/FxInput/FxInput.js +3 -7
  121. package/components/FxInput/FxInput.js.map +1 -1
  122. package/components/FxInput/FxInputRestoreBtn.js +15 -23
  123. package/components/FxInput/FxInputRestoreBtn.js.map +1 -1
  124. package/components/GlobalLoader/GlobalLoaderView.js +14 -30
  125. package/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
  126. package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +16 -22
  127. package/components/GlobalLoader/GlobalLoaderView.styles.js +67 -22
  128. package/components/GlobalLoader/GlobalLoaderView.styles.js.map +1 -1
  129. package/components/Group/Group.d.ts +1 -0
  130. package/components/Group/Group.js +3 -2
  131. package/components/Group/Group.js.map +1 -1
  132. package/components/Group/Group.styles.d.ts +7 -7
  133. package/components/Group/Group.styles.js +28 -8
  134. package/components/Group/Group.styles.js.map +1 -1
  135. package/components/Hint/Hint.d.ts +1 -0
  136. package/components/Hint/Hint.js +3 -3
  137. package/components/Hint/Hint.js.map +1 -1
  138. package/components/Hint/Hint.styles.d.ts +4 -4
  139. package/components/Hint/Hint.styles.js +16 -5
  140. package/components/Hint/Hint.styles.js.map +1 -1
  141. package/components/Input/Input.d.ts +1 -0
  142. package/components/Input/Input.js +13 -13
  143. package/components/Input/Input.js.map +1 -1
  144. package/components/Input/Input.styles.d.ts +20 -20
  145. package/components/Input/Input.styles.js +66 -21
  146. package/components/Input/Input.styles.js.map +1 -1
  147. package/components/Input/InputLayout/InputLayout.styles.d.ts +17 -26
  148. package/components/Input/InputLayout/InputLayout.styles.js +57 -27
  149. package/components/Input/InputLayout/InputLayout.styles.js.map +1 -1
  150. package/components/Input/InputLayout/InputLayoutAsideCounter.js +8 -8
  151. package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
  152. package/components/Input/InputLayout/InputLayoutAsideIcon.js +25 -19
  153. package/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
  154. package/components/Input/InputLayout/InputLayoutAsideText.js +4 -4
  155. package/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
  156. package/components/Kebab/Kebab.d.ts +1 -0
  157. package/components/Kebab/Kebab.js +2 -2
  158. package/components/Kebab/Kebab.js.map +1 -1
  159. package/components/Kebab/Kebab.styles.d.ts +10 -10
  160. package/components/Kebab/Kebab.styles.js +34 -11
  161. package/components/Kebab/Kebab.styles.js.map +1 -1
  162. package/components/Link/Link.d.ts +1 -0
  163. package/components/Link/Link.js +18 -23
  164. package/components/Link/Link.js.map +1 -1
  165. package/components/Link/Link.mixins.d.ts +2 -0
  166. package/components/Link/Link.mixins.js +7 -0
  167. package/components/Link/Link.mixins.js.map +1 -0
  168. package/components/Link/Link.styles.d.ts +23 -23
  169. package/components/Link/Link.styles.js +81 -25
  170. package/components/Link/Link.styles.js.map +1 -1
  171. package/components/Link/LinkIcon.js +6 -4
  172. package/components/Link/LinkIcon.js.map +1 -1
  173. package/components/Loader/Loader.d.ts +2 -0
  174. package/components/Loader/Loader.js +3 -2
  175. package/components/Loader/Loader.js.map +1 -1
  176. package/components/Loader/Loader.styles.d.ts +7 -7
  177. package/components/Loader/Loader.styles.js +25 -8
  178. package/components/Loader/Loader.styles.js.map +1 -1
  179. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +21 -15
  180. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
  181. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +2 -3
  182. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +13 -5
  183. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +1 -1
  184. package/components/MaskedInput/MaskedInput.styles.d.ts +3 -3
  185. package/components/MaskedInput/MaskedInput.styles.js +14 -5
  186. package/components/MaskedInput/MaskedInput.styles.js.map +1 -1
  187. package/components/MaskedInput/MaskedInputLegacy.js +6 -4
  188. package/components/MaskedInput/MaskedInputLegacy.js.map +1 -1
  189. package/components/MaskedInputV2/MaskedInputV2.js +6 -4
  190. package/components/MaskedInputV2/MaskedInputV2.js.map +1 -1
  191. package/components/MaskedInputV2/MaskedInputV2.styles.d.ts +3 -3
  192. package/components/MaskedInputV2/MaskedInputV2.styles.js +14 -5
  193. package/components/MaskedInputV2/MaskedInputV2.styles.js.map +1 -1
  194. package/components/MaskedInputV2/internal/MaskOverlay.js +8 -8
  195. package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -1
  196. package/components/MaskedInputV2/internal/MaskedCore.js +5 -7
  197. package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -1
  198. package/components/MaskedInputV2/internal/MaskedInternal.styles.d.ts +7 -7
  199. package/components/MaskedInputV2/internal/MaskedInternal.styles.js +25 -9
  200. package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +1 -1
  201. package/components/MenuFooter/MenuFooter.js +12 -10
  202. package/components/MenuFooter/MenuFooter.js.map +1 -1
  203. package/components/MenuFooter/MenuFooter.mixins.d.ts +2 -0
  204. package/components/MenuFooter/MenuFooter.mixins.js +8 -0
  205. package/components/MenuFooter/MenuFooter.mixins.js.map +1 -0
  206. package/components/MenuFooter/MenuFooter.styles.d.ts +9 -9
  207. package/components/MenuFooter/MenuFooter.styles.js +32 -10
  208. package/components/MenuFooter/MenuFooter.styles.js.map +1 -1
  209. package/components/MenuHeader/MenuHeader.js +11 -9
  210. package/components/MenuHeader/MenuHeader.js.map +1 -1
  211. package/components/MenuHeader/MenuHeader.mixins.d.ts +2 -0
  212. package/components/MenuHeader/MenuHeader.mixins.js +8 -0
  213. package/components/MenuHeader/MenuHeader.mixins.js.map +1 -0
  214. package/components/MenuHeader/MenuHeader.styles.d.ts +9 -9
  215. package/components/MenuHeader/MenuHeader.styles.js +32 -10
  216. package/components/MenuHeader/MenuHeader.styles.js.map +1 -1
  217. package/components/MenuItem/MenuItem.d.ts +1 -0
  218. package/components/MenuItem/MenuItem.js +30 -24
  219. package/components/MenuItem/MenuItem.js.map +1 -1
  220. package/components/MenuItem/MenuItem.mixins.d.ts +0 -6
  221. package/components/MenuItem/MenuItem.mixins.js +1 -7
  222. package/components/MenuItem/MenuItem.mixins.js.map +1 -1
  223. package/components/MenuItem/MenuItem.styles.d.ts +26 -26
  224. package/components/MenuItem/MenuItem.styles.js +85 -28
  225. package/components/MenuItem/MenuItem.styles.js.map +1 -1
  226. package/components/MenuSeparator/MenuSeparator.js +6 -4
  227. package/components/MenuSeparator/MenuSeparator.js.map +1 -1
  228. package/components/MenuSeparator/MenuSeparator.styles.d.ts +4 -4
  229. package/components/MenuSeparator/MenuSeparator.styles.js +16 -5
  230. package/components/MenuSeparator/MenuSeparator.styles.js.map +1 -1
  231. package/components/MiniModal/MiniModal.styles.d.ts +10 -10
  232. package/components/MiniModal/MiniModal.styles.js +35 -11
  233. package/components/MiniModal/MiniModal.styles.js.map +1 -1
  234. package/components/MiniModal/MiniModalBody.js +3 -3
  235. package/components/MiniModal/MiniModalBody.js.map +1 -1
  236. package/components/MiniModal/MiniModalFooter.js +6 -4
  237. package/components/MiniModal/MiniModalFooter.js.map +1 -1
  238. package/components/MiniModal/MiniModalHeader.js +6 -4
  239. package/components/MiniModal/MiniModalHeader.js.map +1 -1
  240. package/components/MiniModal/MiniModalIndent.js +4 -2
  241. package/components/MiniModal/MiniModalIndent.js.map +1 -1
  242. package/components/MiniModal/getMiniModalTheme.js +13 -39
  243. package/components/MiniModal/getMiniModalTheme.js.map +1 -1
  244. package/components/Modal/Modal.d.ts +1 -0
  245. package/components/Modal/Modal.js +8 -8
  246. package/components/Modal/Modal.js.map +1 -1
  247. package/components/Modal/Modal.styles.d.ts +50 -50
  248. package/components/Modal/Modal.styles.js +161 -52
  249. package/components/Modal/Modal.styles.js.map +1 -1
  250. package/components/Modal/ModalBody.d.ts +1 -0
  251. package/components/Modal/ModalBody.js +7 -7
  252. package/components/Modal/ModalBody.js.map +1 -1
  253. package/components/Modal/ModalClose.js +9 -7
  254. package/components/Modal/ModalClose.js.map +1 -1
  255. package/components/Modal/ModalFooter.js +3 -3
  256. package/components/Modal/ModalFooter.js.map +1 -1
  257. package/components/Modal/ModalHeader.js +3 -3
  258. package/components/Modal/ModalHeader.js.map +1 -1
  259. package/components/Modal/ModalSeparator.js +6 -4
  260. package/components/Modal/ModalSeparator.js.map +1 -1
  261. package/components/Paging/Paging.d.ts +2 -0
  262. package/components/Paging/Paging.js +37 -32
  263. package/components/Paging/Paging.js.map +1 -1
  264. package/components/Paging/Paging.styles.d.ts +31 -31
  265. package/components/Paging/Paging.styles.js +97 -32
  266. package/components/Paging/Paging.styles.js.map +1 -1
  267. package/components/PasswordInput/PasswordInput.d.ts +2 -0
  268. package/components/PasswordInput/PasswordInput.js +11 -6
  269. package/components/PasswordInput/PasswordInput.js.map +1 -1
  270. package/components/PasswordInput/PasswordInput.styles.d.ts +10 -10
  271. package/components/PasswordInput/PasswordInput.styles.js +34 -11
  272. package/components/PasswordInput/PasswordInput.styles.js.map +1 -1
  273. package/components/Radio/Radio.d.ts +1 -8
  274. package/components/Radio/Radio.js +28 -59
  275. package/components/Radio/Radio.js.map +1 -1
  276. package/components/Radio/Radio.mixins.d.ts +7 -0
  277. package/components/Radio/Radio.mixins.js +30 -0
  278. package/components/Radio/Radio.mixins.js.map +1 -0
  279. package/components/Radio/Radio.styles.d.ts +30 -33
  280. package/components/Radio/Radio.styles.js +95 -35
  281. package/components/Radio/Radio.styles.js.map +1 -1
  282. package/components/RadioGroup/RadioGroup.d.ts +1 -0
  283. package/components/RadioGroup/RadioGroup.js +2 -1
  284. package/components/RadioGroup/RadioGroup.js.map +1 -1
  285. package/components/RadioGroup/RadioGroup.styles.d.ts +5 -5
  286. package/components/RadioGroup/RadioGroup.styles.js +22 -6
  287. package/components/RadioGroup/RadioGroup.styles.js.map +1 -1
  288. package/components/ScrollContainer/ScrollBar.d.ts +3 -1
  289. package/components/ScrollContainer/ScrollBar.js +14 -9
  290. package/components/ScrollContainer/ScrollBar.js.map +1 -1
  291. package/components/ScrollContainer/ScrollContainer.d.ts +1 -0
  292. package/components/ScrollContainer/ScrollContainer.js +1 -1
  293. package/components/ScrollContainer/ScrollContainer.js.map +1 -1
  294. package/components/ScrollContainer/ScrollContainer.styles.d.ts +13 -13
  295. package/components/ScrollContainer/ScrollContainer.styles.js +43 -15
  296. package/components/ScrollContainer/ScrollContainer.styles.js.map +1 -1
  297. package/components/Select/Select.d.ts +1 -0
  298. package/components/Select/Select.js +12 -12
  299. package/components/Select/Select.js.map +1 -1
  300. package/components/Select/Select.styles.d.ts +17 -17
  301. package/components/Select/Select.styles.js +55 -18
  302. package/components/Select/Select.styles.js.map +1 -1
  303. package/components/Select/selectTheme.js +7 -31
  304. package/components/Select/selectTheme.js.map +1 -1
  305. package/components/SidePage/SidePage.d.ts +6 -0
  306. package/components/SidePage/SidePage.js +27 -9
  307. package/components/SidePage/SidePage.js.map +1 -1
  308. package/components/SidePage/SidePage.styles.d.ts +49 -49
  309. package/components/SidePage/SidePage.styles.js +156 -50
  310. package/components/SidePage/SidePage.styles.js.map +1 -1
  311. package/components/SidePage/SidePageBody.d.ts +1 -0
  312. package/components/SidePage/SidePageBody.js +8 -7
  313. package/components/SidePage/SidePageBody.js.map +1 -1
  314. package/components/SidePage/SidePageCloseButton.js +8 -6
  315. package/components/SidePage/SidePageCloseButton.js.map +1 -1
  316. package/components/SidePage/SidePageContainer.d.ts +2 -0
  317. package/components/SidePage/SidePageContainer.js +13 -11
  318. package/components/SidePage/SidePageContainer.js.map +1 -1
  319. package/components/SidePage/SidePageContext.d.ts +2 -0
  320. package/components/SidePage/SidePageContext.js.map +1 -1
  321. package/components/SidePage/SidePageFooter.d.ts +2 -0
  322. package/components/SidePage/SidePageFooter.js +17 -12
  323. package/components/SidePage/SidePageFooter.js.map +1 -1
  324. package/components/SidePage/SidePageHeader.d.ts +2 -0
  325. package/components/SidePage/SidePageHeader.js +20 -11
  326. package/components/SidePage/SidePageHeader.js.map +1 -1
  327. package/components/Spinner/Spinner.d.ts +2 -0
  328. package/components/Spinner/Spinner.js +10 -7
  329. package/components/Spinner/Spinner.js.map +1 -1
  330. package/components/Spinner/Spinner.styles.d.ts +12 -12
  331. package/components/Spinner/Spinner.styles.js +41 -13
  332. package/components/Spinner/Spinner.styles.js.map +1 -1
  333. package/components/Sticky/Sticky.d.ts +1 -0
  334. package/components/Sticky/Sticky.js +1 -1
  335. package/components/Sticky/Sticky.js.map +1 -1
  336. package/components/Sticky/Sticky.styles.d.ts +6 -7
  337. package/components/Sticky/Sticky.styles.js +25 -8
  338. package/components/Sticky/Sticky.styles.js.map +1 -1
  339. package/components/Switcher/Switcher.d.ts +1 -0
  340. package/components/Switcher/Switcher.js +6 -6
  341. package/components/Switcher/Switcher.js.map +1 -1
  342. package/components/Switcher/Switcher.styles.d.ts +11 -11
  343. package/components/Switcher/Switcher.styles.js +37 -12
  344. package/components/Switcher/Switcher.styles.js.map +1 -1
  345. package/components/Switcher/switcherTheme.js +4 -12
  346. package/components/Switcher/switcherTheme.js.map +1 -1
  347. package/components/Tabs/Indicator.d.ts +1 -0
  348. package/components/Tabs/Indicator.js +2 -2
  349. package/components/Tabs/Indicator.js.map +1 -1
  350. package/components/Tabs/Indicator.styles.d.ts +7 -7
  351. package/components/Tabs/Indicator.styles.js +25 -8
  352. package/components/Tabs/Indicator.styles.js.map +1 -1
  353. package/components/Tabs/Tab.d.ts +18 -4
  354. package/components/Tabs/Tab.js +24 -19
  355. package/components/Tabs/Tab.js.map +1 -1
  356. package/components/Tabs/Tab.styles.d.ts +27 -27
  357. package/components/Tabs/Tab.styles.js +99 -30
  358. package/components/Tabs/Tab.styles.js.map +1 -1
  359. package/components/Tabs/Tabs.d.ts +2 -0
  360. package/components/Tabs/Tabs.js +29 -24
  361. package/components/Tabs/Tabs.js.map +1 -1
  362. package/components/Tabs/Tabs.styles.d.ts +6 -6
  363. package/components/Tabs/Tabs.styles.js +25 -8
  364. package/components/Tabs/Tabs.styles.js.map +1 -1
  365. package/components/Tabs/helpers.d.ts +6 -0
  366. package/components/Tabs/helpers.js +25 -0
  367. package/components/Tabs/helpers.js.map +1 -0
  368. package/components/Textarea/Textarea.d.ts +2 -0
  369. package/components/Textarea/Textarea.js +24 -17
  370. package/components/Textarea/Textarea.js.map +1 -1
  371. package/components/Textarea/Textarea.mixins.d.ts +2 -0
  372. package/components/Textarea/Textarea.mixins.js +7 -0
  373. package/components/Textarea/Textarea.mixins.js.map +1 -0
  374. package/components/Textarea/Textarea.styles.d.ts +22 -26
  375. package/components/Textarea/Textarea.styles.js +71 -27
  376. package/components/Textarea/Textarea.styles.js.map +1 -1
  377. package/components/Textarea/TextareaCounter.js +14 -22
  378. package/components/Textarea/TextareaCounter.js.map +1 -1
  379. package/components/TimePicker/TimePicker.styles.d.ts +11 -11
  380. package/components/TimePicker/TimePicker.styles.js +37 -12
  381. package/components/TimePicker/TimePicker.styles.js.map +1 -1
  382. package/components/TimePicker/TimePickerItems.js +6 -6
  383. package/components/TimePicker/TimePickerItems.js.map +1 -1
  384. package/components/TimePicker/TimePickerPopup.js +1 -1
  385. package/components/TimePicker/TimePickerPopup.js.map +1 -1
  386. package/components/Toast/Toast.d.ts +1 -0
  387. package/components/Toast/Toast.js +1 -1
  388. package/components/Toast/Toast.js.map +1 -1
  389. package/components/Toast/Toast.styles.d.ts +5 -6
  390. package/components/Toast/Toast.styles.js +22 -7
  391. package/components/Toast/Toast.styles.js.map +1 -1
  392. package/components/Toast/ToastView.d.ts +1 -0
  393. package/components/Toast/ToastView.js +17 -9
  394. package/components/Toast/ToastView.js.map +1 -1
  395. package/components/Toast/ToastView.styles.d.ts +17 -19
  396. package/components/Toast/ToastView.styles.js +65 -20
  397. package/components/Toast/ToastView.styles.js.map +1 -1
  398. package/components/Toggle/Toggle.d.ts +1 -1
  399. package/components/Toggle/Toggle.js +39 -55
  400. package/components/Toggle/Toggle.js.map +1 -1
  401. package/components/Toggle/Toggle.mixins.d.ts +8 -0
  402. package/components/Toggle/Toggle.mixins.js +32 -0
  403. package/components/Toggle/Toggle.mixins.js.map +1 -0
  404. package/components/Toggle/Toggle.styles.d.ts +46 -47
  405. package/components/Toggle/Toggle.styles.js +143 -48
  406. package/components/Toggle/Toggle.styles.js.map +1 -1
  407. package/components/Token/Token.d.ts +2 -0
  408. package/components/Token/Token.js +10 -5
  409. package/components/Token/Token.js.map +1 -1
  410. package/components/Token/Token.mixins.d.ts +1 -0
  411. package/components/Token/Token.mixins.js +4 -0
  412. package/components/Token/Token.mixins.js.map +1 -0
  413. package/components/Token/Token.styles.d.ts +19 -20
  414. package/components/Token/Token.styles.js +62 -22
  415. package/components/Token/Token.styles.js.map +1 -1
  416. package/components/Token/TokenView.js +10 -8
  417. package/components/Token/TokenView.js.map +1 -1
  418. package/components/TokenInput/TextWidthHelper.d.ts +1 -0
  419. package/components/TokenInput/TextWidthHelper.js +4 -4
  420. package/components/TokenInput/TextWidthHelper.js.map +1 -1
  421. package/components/TokenInput/TokenInput.d.ts +2 -1
  422. package/components/TokenInput/TokenInput.js +22 -20
  423. package/components/TokenInput/TokenInput.js.map +1 -1
  424. package/components/TokenInput/TokenInput.mixins.d.ts +2 -0
  425. package/components/TokenInput/TokenInput.mixins.js +7 -0
  426. package/components/TokenInput/TokenInput.mixins.js.map +1 -0
  427. package/components/TokenInput/TokenInput.styles.d.ts +20 -21
  428. package/components/TokenInput/TokenInput.styles.js +66 -22
  429. package/components/TokenInput/TokenInput.styles.js.map +1 -1
  430. package/components/Tooltip/Tooltip.d.ts +1 -0
  431. package/components/Tooltip/Tooltip.js +12 -12
  432. package/components/Tooltip/Tooltip.js.map +1 -1
  433. package/components/Tooltip/Tooltip.styles.d.ts +10 -11
  434. package/components/Tooltip/Tooltip.styles.js +34 -12
  435. package/components/Tooltip/Tooltip.styles.js.map +1 -1
  436. package/index.d.ts +0 -4
  437. package/index.js +0 -12
  438. package/index.js.map +1 -1
  439. package/internal/ClearCrossIcon/ClearCrossIcon.js +9 -7
  440. package/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
  441. package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +12 -11
  442. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js +35 -12
  443. package/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -1
  444. package/internal/CloseButtonIcon/CloseButtonIcon.d.ts +11 -21
  445. package/internal/CloseButtonIcon/CloseButtonIcon.js +13 -28
  446. package/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
  447. package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +8 -8
  448. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js +23 -9
  449. package/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +1 -1
  450. package/internal/CommonWrapper/CommonWrapper.d.ts +1 -5
  451. package/internal/CommonWrapper/CommonWrapper.js +6 -107
  452. package/internal/CommonWrapper/CommonWrapper.js.map +1 -1
  453. package/internal/CustomComboBox/ComboBoxView.d.ts +2 -1
  454. package/internal/CustomComboBox/ComboBoxView.js +7 -8
  455. package/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  456. package/internal/CustomComboBox/CustomComboBox.styles.d.ts +3 -5
  457. package/internal/CustomComboBox/CustomComboBox.styles.js +16 -6
  458. package/internal/CustomComboBox/CustomComboBox.styles.js.map +1 -1
  459. package/internal/DateSelect/DateSelect.d.ts +1 -0
  460. package/internal/DateSelect/DateSelect.js +2 -2
  461. package/internal/DateSelect/DateSelect.js.map +1 -1
  462. package/internal/DateSelect/DateSelect.styles.d.ts +5 -5
  463. package/internal/DateSelect/DateSelect.styles.js +19 -7
  464. package/internal/DateSelect/DateSelect.styles.js.map +1 -1
  465. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +1 -15
  466. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +15 -36
  467. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
  468. package/internal/InputLikeText/InputLikeText.d.ts +1 -0
  469. package/internal/InputLikeText/InputLikeText.js +17 -21
  470. package/internal/InputLikeText/InputLikeText.js.map +1 -1
  471. package/internal/InputLikeText/InputLikeText.styles.d.ts +7 -7
  472. package/internal/InputLikeText/InputLikeText.styles.js +28 -8
  473. package/internal/InputLikeText/InputLikeText.styles.js.map +1 -1
  474. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.d.ts +1 -0
  475. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js +14 -14
  476. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js.map +1 -1
  477. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.d.ts +2 -3
  478. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js +13 -4
  479. package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js.map +1 -1
  480. package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +2 -3
  481. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js +13 -4
  482. package/internal/MaskCharLowLine/MaskCharLowLine.styles.js.map +1 -1
  483. package/internal/Menu/Menu.d.ts +1 -0
  484. package/internal/Menu/Menu.js +9 -9
  485. package/internal/Menu/Menu.js.map +1 -1
  486. package/internal/Menu/Menu.styles.d.ts +15 -15
  487. package/internal/Menu/Menu.styles.js +49 -16
  488. package/internal/Menu/Menu.styles.js.map +1 -1
  489. package/internal/MenuMessage/MenuMessage.js +10 -10
  490. package/internal/MenuMessage/MenuMessage.js.map +1 -1
  491. package/internal/MenuMessage/MenuMessage.styles.d.ts +10 -10
  492. package/internal/MenuMessage/MenuMessage.styles.js +39 -11
  493. package/internal/MenuMessage/MenuMessage.styles.js.map +1 -1
  494. package/internal/MobilePopup/MobilePopup.d.ts +1 -0
  495. package/internal/MobilePopup/MobilePopup.js +11 -23
  496. package/internal/MobilePopup/MobilePopup.js.map +1 -1
  497. package/internal/MobilePopup/MobilePopup.styles.d.ts +16 -16
  498. package/internal/MobilePopup/MobilePopup.styles.js +55 -17
  499. package/internal/MobilePopup/MobilePopup.styles.js.map +1 -1
  500. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +1 -0
  501. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js +5 -5
  502. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
  503. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +6 -6
  504. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js +23 -7
  505. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +1 -1
  506. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +1 -0
  507. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js +10 -10
  508. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
  509. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +13 -13
  510. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js +45 -14
  511. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +1 -1
  512. package/internal/NativeDateInput/NativeDateInput.d.ts +1 -0
  513. package/internal/NativeDateInput/NativeDateInput.js +1 -1
  514. package/internal/NativeDateInput/NativeDateInput.js.map +1 -1
  515. package/internal/NativeDateInput/NativeDateInput.styles.d.ts +2 -3
  516. package/internal/NativeDateInput/NativeDateInput.styles.js +13 -4
  517. package/internal/NativeDateInput/NativeDateInput.styles.js.map +1 -1
  518. package/internal/NativeTimeInput/NativeTimeInput.js +2 -1
  519. package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -1
  520. package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +2 -3
  521. package/internal/NativeTimeInput/NativeTimeInput.styles.js +13 -4
  522. package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +1 -1
  523. package/internal/Popup/Popup.d.ts +1 -0
  524. package/internal/Popup/Popup.js +5 -5
  525. package/internal/Popup/Popup.js.map +1 -1
  526. package/internal/Popup/Popup.styles.d.ts +21 -21
  527. package/internal/Popup/Popup.styles.js +67 -22
  528. package/internal/Popup/Popup.styles.js.map +1 -1
  529. package/internal/Popup/PopupPin.d.ts +1 -0
  530. package/internal/Popup/PopupPin.js +1 -1
  531. package/internal/Popup/PopupPin.js.map +1 -1
  532. package/internal/Popup/PopupPin.styles.d.ts +8 -9
  533. package/internal/Popup/PopupPin.styles.js +31 -10
  534. package/internal/Popup/PopupPin.styles.js.map +1 -1
  535. package/internal/PopupMenu/PopupMenu.d.ts +1 -0
  536. package/internal/PopupMenu/PopupMenu.js +1 -1
  537. package/internal/PopupMenu/PopupMenu.js.map +1 -1
  538. package/internal/PopupMenu/PopupMenu.styles.d.ts +3 -4
  539. package/internal/PopupMenu/PopupMenu.styles.js +16 -5
  540. package/internal/PopupMenu/PopupMenu.styles.js.map +1 -1
  541. package/internal/RenderContainer/RenderInnerContainer.js +2 -4
  542. package/internal/RenderContainer/RenderInnerContainer.js.map +1 -1
  543. package/internal/ResizeDetector/ResizeDetector.d.ts +1 -0
  544. package/internal/ResizeDetector/ResizeDetector.js +1 -1
  545. package/internal/ResizeDetector/ResizeDetector.js.map +1 -1
  546. package/internal/ResizeDetector/ResizeDetector.styles.d.ts +6 -7
  547. package/internal/ResizeDetector/ResizeDetector.styles.js +25 -8
  548. package/internal/ResizeDetector/ResizeDetector.styles.js.map +1 -1
  549. package/internal/SpinnerIcon/SpinnerIcon.js +2 -2
  550. package/internal/SpinnerIcon/SpinnerIcon.js.map +1 -1
  551. package/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +5 -6
  552. package/internal/SpinnerIcon/SpinnerIcon.styles.js +22 -7
  553. package/internal/SpinnerIcon/SpinnerIcon.styles.js.map +1 -1
  554. package/internal/TextWidthHelper/TextWidthHelper.d.ts +1 -0
  555. package/internal/TextWidthHelper/TextWidthHelper.js +1 -1
  556. package/internal/TextWidthHelper/TextWidthHelper.js.map +1 -1
  557. package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +3 -4
  558. package/internal/TextWidthHelper/TextWidthHelper.styles.js +16 -5
  559. package/internal/TextWidthHelper/TextWidthHelper.styles.js.map +1 -1
  560. package/internal/TimeInput/TimeFragments.js +15 -19
  561. package/internal/TimeInput/TimeFragments.js.map +1 -1
  562. package/internal/TimeInput/TimeFragments.styles.d.ts +31 -19
  563. package/internal/TimeInput/TimeFragments.styles.js +76 -20
  564. package/internal/TimeInput/TimeFragments.styles.js.map +1 -1
  565. package/internal/TimeInput/TimeInput.js +4 -4
  566. package/internal/TimeInput/TimeInput.js.map +1 -1
  567. package/internal/TimeInput/TimeInput.styles.d.ts +6 -6
  568. package/internal/TimeInput/TimeInput.styles.js +22 -7
  569. package/internal/TimeInput/TimeInput.styles.js.map +1 -1
  570. package/internal/icons2022/BaseIcon.js +1 -8
  571. package/internal/icons2022/BaseIcon.js.map +1 -1
  572. package/internal/icons2022/BaseIcon.styles.d.ts +2 -5
  573. package/internal/icons2022/BaseIcon.styles.js +14 -6
  574. package/internal/icons2022/BaseIcon.styles.js.map +1 -1
  575. package/internal/icons2022/LoadingIcon.js +5 -3
  576. package/internal/icons2022/LoadingIcon.js.map +1 -1
  577. package/internal/themes/BasicTheme.d.ts +40 -10
  578. package/internal/themes/BasicTheme.js +78 -17
  579. package/internal/themes/BasicTheme.js.map +1 -1
  580. package/internal/themes/DarkTheme6_0.js +361 -62
  581. package/internal/themes/DarkTheme6_0.js.map +1 -1
  582. package/internal/themes/DarkTheme6_1.js +3 -11
  583. package/internal/themes/DarkTheme6_1.js.map +1 -1
  584. package/internal/themes/DarkTheme6_4.js +1 -11
  585. package/internal/themes/DarkTheme6_4.js.map +1 -1
  586. package/internal/themes/DarkTheme6_5.d.ts +1 -0
  587. package/internal/themes/DarkTheme6_5.js +87 -0
  588. package/internal/themes/DarkTheme6_5.js.map +1 -0
  589. package/internal/themes/LightTheme6_5.d.ts +1 -0
  590. package/internal/themes/LightTheme6_5.js +87 -0
  591. package/internal/themes/LightTheme6_5.js.map +1 -0
  592. package/lib/Upgrades.d.ts +2 -12
  593. package/lib/Upgrades.js +16 -12
  594. package/lib/Upgrades.js.map +1 -1
  595. package/lib/chars.d.ts +8 -0
  596. package/lib/chars.js +9 -0
  597. package/lib/chars.js.map +1 -0
  598. package/lib/globalObject.js +1 -4
  599. package/lib/globalObject.js.map +1 -1
  600. package/lib/renderEnvironment/RenderEnvironmentContext.d.ts +6 -38
  601. package/lib/renderEnvironment/RenderEnvironmentContext.js +19 -21
  602. package/lib/renderEnvironment/RenderEnvironmentContext.js.map +1 -1
  603. package/lib/renderEnvironment/RenderEnvironmentDecorator.js +3 -6
  604. package/lib/renderEnvironment/RenderEnvironmentDecorator.js.map +1 -1
  605. package/lib/styles/Mixins.d.ts +2 -0
  606. package/lib/styles/Mixins.js +7 -0
  607. package/lib/styles/Mixins.js.map +1 -0
  608. package/lib/styles/UiFont.d.ts +3 -0
  609. package/lib/styles/UiFont.js +18 -0
  610. package/lib/styles/UiFont.js.map +1 -0
  611. package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +1 -0
  612. package/lib/styles/getLabGrotesqueBaselineCompensation.js +10 -0
  613. package/lib/styles/getLabGrotesqueBaselineCompensation.js.map +1 -0
  614. package/lib/theming/AnimationKeyframes.d.ts +7 -0
  615. package/lib/theming/AnimationKeyframes.js +24 -0
  616. package/lib/theming/AnimationKeyframes.js.map +1 -0
  617. package/lib/theming/Emotion.d.ts +9 -43
  618. package/lib/theming/Emotion.js +35 -70
  619. package/lib/theming/Emotion.js.map +1 -1
  620. package/lib/theming/ThemeVersions.d.ts +1 -1
  621. package/lib/theming/ThemeVersions.js.map +1 -1
  622. package/lib/theming/themes/DarkTheme.d.ts +1 -0
  623. package/lib/theming/themes/DarkTheme.js +3 -1
  624. package/lib/theming/themes/DarkTheme.js.map +1 -1
  625. package/lib/theming/themes/LightTheme.d.ts +1 -0
  626. package/lib/theming/themes/LightTheme.js +3 -1
  627. package/lib/theming/themes/LightTheme.js.map +1 -1
  628. package/lib/theming/useTheme.d.ts +2 -0
  629. package/lib/theming/useTheme.js +6 -0
  630. package/lib/theming/useTheme.js.map +1 -0
  631. package/package.json +5 -46
  632. package/typings/stylis-plugin-extra-scope.d.ts +3 -0
  633. package/components/FileUploader/FileUploaderFileTypeIcon.styles.d.ts +0 -14
  634. package/components/FileUploader/FileUploaderFileTypeIcon.styles.js +0 -16
  635. package/components/FileUploader/FileUploaderFileTypeIcon.styles.js.map +0 -1
  636. package/components/FxInput/FxInput.styles.d.ts +0 -4
  637. package/components/FxInput/FxInput.styles.js +0 -6
  638. package/components/FxInput/FxInput.styles.js.map +0 -1
  639. package/components/FxInput/FxInputRestoreBtn.styles.d.ts +0 -6
  640. package/components/FxInput/FxInputRestoreBtn.styles.js +0 -8
  641. package/components/FxInput/FxInputRestoreBtn.styles.js.map +0 -1
  642. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.d.ts +0 -5
  643. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.js +0 -7
  644. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.styles.js.map +0 -1
  645. package/lib/classNames.generated.d.ts +0 -1235
  646. package/lib/classNames.generated.js +0 -1233
  647. package/lib/classNames.generated.js.map +0 -1
  648. package/lib/styles/baselineCompensation.d.ts +0 -63
  649. package/lib/styles/baselineCompensation.js +0 -122
  650. package/lib/styles/baselineCompensation.js.map +0 -1
  651. package/lib/theming/declaredTheme.d.ts +0 -43
  652. package/lib/theming/declaredTheme.js +0 -56
  653. package/lib/theming/declaredTheme.js.map +0 -1
  654. package/lib/theming/hashString.d.ts +0 -19
  655. package/lib/theming/hashString.js +0 -52
  656. package/lib/theming/hashString.js.map +0 -1
  657. package/lib/theming/staticStyles.d.ts +0 -17
  658. package/lib/theming/staticStyles.js +0 -8
  659. package/lib/theming/staticStyles.js.map +0 -1
  660. package/lib/theming/staticThemeDelta.d.ts +0 -17
  661. package/lib/theming/staticThemeDelta.js +0 -37
  662. package/lib/theming/staticThemeDelta.js.map +0 -1
  663. package/lib/theming/staticThemeVars.d.ts +0 -21
  664. package/lib/theming/staticThemeVars.js +0 -35
  665. package/lib/theming/staticThemeVars.js.map +0 -1
  666. package/lib/theming/themeCssVarsClass.d.ts +0 -89
  667. package/lib/theming/themeCssVarsClass.js +0 -253
  668. package/lib/theming/themeCssVarsClass.js.map +0 -1
  669. package/lib/theming/themeCssVarsDelta.d.ts +0 -13
  670. package/lib/theming/themeCssVarsDelta.js +0 -67
  671. package/lib/theming/themeCssVarsDelta.js.map +0 -1
  672. package/lib/theming/themeToCssVars.d.ts +0 -47
  673. package/lib/theming/themeToCssVars.js +0 -861
  674. package/lib/theming/themeToCssVars.js.map +0 -1
  675. package/react-ui-tailwind.css +0 -544
  676. package/react-ui-themes.css +0 -8628
  677. package/react-ui-token-map.json +0 -9029
  678. package/react-ui.css +0 -7776
  679. package/react-ui.layer.css +0 -7778
  680. package/themes/dark-6-0.css +0 -1439
  681. package/themes/dark-6-0.scoped.css +0 -1439
  682. package/themes/dark-6-1.css +0 -1439
  683. package/themes/dark-6-1.scoped.css +0 -1439
  684. package/themes/dark.css +0 -1439
  685. package/themes/dark.scoped.css +0 -1439
  686. package/themes/light-6-0.css +0 -1437
  687. package/themes/light-6-0.scoped.css +0 -1437
  688. package/themes/light-6-1.css +0 -1437
  689. package/themes/light-6-1.scoped.css +0 -1437
  690. package/themes/light.css +0 -1437
  691. package/themes/light.scoped.css +0 -1437
@@ -1,23 +1,68 @@
1
- import { staticStyles } from '../../lib/theming/staticStyles.js';
2
- /** Правила — в `Input.css`; здесь только имена классов. */
3
- export var getStyles = staticStyles({
4
- wrapper: 'react-ui-Input-wrapper',
5
- root: 'react-ui-Input-root',
6
- hovering: 'react-ui-Input-hovering',
7
- borderless: 'react-ui-Input-borderless',
8
- focus: 'react-ui-Input-focus',
9
- placeholder: 'react-ui-Input-placeholder',
10
- placeholderFocus: 'react-ui-Input-placeholderFocus',
11
- placeholderDisabled: 'react-ui-Input-placeholderDisabled',
12
- input: 'react-ui-Input-input',
13
- inputFocus: 'react-ui-Input-inputFocus',
14
- inputDisabled: 'react-ui-Input-inputDisabled',
15
- warning: 'react-ui-Input-warning',
16
- error: 'react-ui-Input-error',
17
- disabled: 'react-ui-Input-disabled',
18
- sizeSmall: 'react-ui-Input-sizeSmall',
19
- sizeMedium: 'react-ui-Input-sizeMedium',
20
- sizeLarge: 'react-ui-Input-sizeLarge',
21
- hideBlinkingCursor: 'react-ui-Input-hideBlinkingCursor',
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 { shift } from '../../lib/styles/DimensionFunctions.js';
6
+ import { resetText } from '../../lib/styles/Mixins.js';
7
+ import { memoizeGetStyles } from '../../lib/theming/Emotion.js';
8
+ export var getStyles = memoizeGetStyles(function (_a) {
9
+ var css = _a.css;
10
+ return ({
11
+ wrapper: function () {
12
+ return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n margin: 0;\n min-width: 0;\n overflow: hidden;\n position: relative;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n\n &::before {\n content: '\\A0';\n display: inline-block;\n width: 0;\n }\n "], ["\n align-items: center;\n display: flex;\n margin: 0;\n min-width: 0;\n overflow: hidden;\n position: relative;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n\n &::before {\n content: '\\\\A0';\n display: inline-block;\n width: 0;\n }\n "])));
13
+ },
14
+ root: function (t) {
15
+ return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n align-items: center;\n background-clip: ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-top-color: ", ";\n transition: border-color ", " ", ";\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n cursor: text;\n display: inline-flex;\n outline: none;\n position: relative;\n width: ", ";\n\n & * {\n box-sizing: border-box;\n }\n "], ["\n ", ";\n\n align-items: center;\n background-clip: ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-top-color: ", ";\n transition: border-color ", " ", ";\n box-shadow: ", ";\n box-sizing: border-box;\n color: ", ";\n cursor: text;\n display: inline-flex;\n outline: none;\n position: relative;\n width: ", ";\n\n & * {\n box-sizing: border-box;\n }\n "])), resetText(), t.inputBackgroundClip, t.inputBg, t.inputBorderWidth, t.inputBorderColor, t.inputBorderTopColor, t.transitionDuration, t.transitionTimingFunction, t.inputShadow, t.inputColor, t.inputWidth);
16
+ },
17
+ hovering: function (t) {
18
+ return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:hover {\n border-color: ", ";\n }\n "], ["\n &:hover {\n border-color: ", ";\n }\n "])), t.inputBorderColorHover);
19
+ },
20
+ borderless: function () {
21
+ return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n box-shadow: none;\n border-color: transparent;\n background-clip: padding-box;\n "], ["\n box-shadow: none;\n border-color: transparent;\n background-clip: padding-box;\n "])));
22
+ },
23
+ focus: function (t) {
24
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n box-shadow: ", ";\n outline: none;\n z-index: 2;\n "], ["\n background-color: ", ";\n border-color: ", ";\n box-shadow: ", ";\n outline: none;\n z-index: 2;\n "])), t.inputFocusedBg, t.inputBorderColorFocus, t.inputFocusShadow);
25
+ },
26
+ placeholder: function (t) {
27
+ return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n -ms-user-select: none;\n color: ", ";\n cursor: text;\n font-size: inherit;\n height: 100%;\n left: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 0;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n "], ["\n -ms-user-select: none;\n color: ", ";\n cursor: text;\n font-size: inherit;\n height: 100%;\n left: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 0;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n "])), t.inputPlaceholderColor);
28
+ },
29
+ placeholderFocus: function (t) {
30
+ return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputPlaceholderColorLight);
31
+ },
32
+ placeholderDisabled: function (t) {
33
+ return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputPlaceholderColorDisabled);
34
+ },
35
+ input: function (t) {
36
+ return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n -webkit-appearance: none;\n background: transparent;\n border: 0 none;\n color: ", ";\n font: inherit;\n line-height: inherit;\n margin: 0;\n outline: none;\n padding: 0;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n color-scheme: ", ";\n\n &:-moz-placeholder {\n opacity: 1;\n }\n &::-moz-placeholder {\n opacity: 1;\n }\n &::-ms-clear {\n display: none;\n }\n &:-moz-placeholder {\n color: ", ";\n }\n &::-moz-placeholder {\n color: ", ";\n }\n &::placeholder {\n color: ", ";\n }\n "], ["\n -webkit-appearance: none;\n background: transparent;\n border: 0 none;\n color: ", ";\n font: inherit;\n line-height: inherit;\n margin: 0;\n outline: none;\n padding: 0;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n color-scheme: ", ";\n\n &:-moz-placeholder {\n opacity: 1;\n }\n &::-moz-placeholder {\n opacity: 1;\n }\n &::-ms-clear {\n display: none;\n }\n &:-moz-placeholder {\n color: ", ";\n }\n &::-moz-placeholder {\n color: ", ";\n }\n &::placeholder {\n color: ", ";\n }\n "])), t.inputTextColor, t.inputColorScheme, t.inputPlaceholderColor, t.inputPlaceholderColor, t.inputPlaceholderColor);
37
+ },
38
+ inputFocus: function (t) {
39
+ return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n &:-moz-placeholder {\n color: ", ";\n }\n &::-moz-placeholder {\n color: ", ";\n }\n &::placeholder {\n color: ", ";\n }\n "], ["\n &:-moz-placeholder {\n color: ", ";\n }\n &::-moz-placeholder {\n color: ", ";\n }\n &::placeholder {\n color: ", ";\n }\n "])), t.inputPlaceholderColorLight, t.inputPlaceholderColorLight, t.inputPlaceholderColorLight);
40
+ },
41
+ inputDisabled: function (t) {
42
+ return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n color: ", ";\n /* fix text color in safari https://bugs.webkit.org/show_bug.cgi?id=115510 */\n -webkit-text-fill-color: ", ";\n\n &:-moz-placeholder {\n -webkit-text-fill-color: ", ";\n }\n &::-moz-placeholder {\n -webkit-text-fill-color: ", ";\n }\n &::placeholder {\n -webkit-text-fill-color: ", ";\n }\n "], ["\n color: ", ";\n /* fix text color in safari https://bugs.webkit.org/show_bug.cgi?id=115510 */\n -webkit-text-fill-color: ", ";\n\n &:-moz-placeholder {\n -webkit-text-fill-color: ", ";\n }\n &::-moz-placeholder {\n -webkit-text-fill-color: ", ";\n }\n &::placeholder {\n -webkit-text-fill-color: ", ";\n }\n "])), t.inputTextColorDisabled, t.inputTextColorDisabled, t.inputPlaceholderColorDisabled, t.inputPlaceholderColorDisabled, t.inputPlaceholderColorDisabled);
43
+ },
44
+ warning: function (t) {
45
+ return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-color: ", ";\n box-shadow: 0 0 0 ", " ", ";\n z-index: 2;\n "], ["\n border-color: ", ";\n box-shadow: 0 0 0 ", " ", ";\n z-index: 2;\n "])), t.inputBorderColorWarning, t.inputOutlineWidth, t.inputBorderColorWarning);
46
+ },
47
+ error: function (t) {
48
+ return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n border-color: ", ";\n box-shadow: 0 0 0 ", " ", ";\n z-index: 2;\n "], ["\n border-color: ", ";\n box-shadow: 0 0 0 ", " ", ";\n z-index: 2;\n "])), t.inputBorderColorError, t.inputOutlineWidth, t.inputBorderColorError);
49
+ },
50
+ disabled: function (t) {
51
+ return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n box-shadow: none;\n cursor: default;\n\n & * {\n cursor: default;\n }\n "], ["\n background-color: ", ";\n border-color: ", ";\n box-shadow: none;\n cursor: default;\n\n & * {\n cursor: default;\n }\n "])), t.inputDisabledBg, t.inputDisabledBorderColor);
52
+ },
53
+ sizeSmall: function (t) {
54
+ return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n height: ", ";\n border-radius: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n height: ", ";\n border-radius: ", ";\n "])), t.inputFontSizeSmall, t.inputLineHeightSmall, t.inputPaddingYSmall, t.inputPaddingYSmall, t.inputPaddingXSmall, t.inputPaddingXSmall, t.inputHeightSmall, t.inputBorderRadiusSmall);
55
+ },
56
+ sizeMedium: function (t) {
57
+ return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n height: ", ";\n border-radius: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n height: ", ";\n border-radius: ", ";\n "])), t.inputFontSizeMedium, t.inputLineHeightMedium, t.inputPaddingYMedium, t.inputPaddingYMedium, t.inputPaddingXMedium, t.inputPaddingXMedium, t.inputHeightMedium, t.inputBorderRadiusMedium);
58
+ },
59
+ sizeLarge: function (t) {
60
+ return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n border-radius: ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n border-radius: ", ";\n "])), t.inputFontSizeLarge, t.inputLineHeightLarge, t.inputHeightLarge, shift(t.inputPaddingYLarge, '0'), shift(t.inputPaddingYLarge, '0'), t.inputPaddingXLarge, t.inputPaddingXLarge, t.inputBorderRadiusLarge);
61
+ },
62
+ hideBlinkingCursor: function () {
63
+ return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n caret-color: transparent;\n "], ["\n caret-color: transparent;\n "])));
64
+ },
65
+ });
22
66
  });
67
+ 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;
23
68
  //# sourceMappingURL=Input.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.styles.js","sourceRoot":"","sources":["Input.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,2DAA2D;AAC3D,MAAM,CAAC,IAAM,SAAS,GAAG,YAAY,CAAC;IACpC,OAAO,EAAE,wBAAwB;IACjC,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,yBAAyB;IACnC,UAAU,EAAE,2BAA2B;IACvC,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,4BAA4B;IACzC,gBAAgB,EAAE,iCAAiC;IACnD,mBAAmB,EAAE,oCAAoC;IACzD,KAAK,EAAE,sBAAsB;IAC7B,UAAU,EAAE,2BAA2B;IACvC,aAAa,EAAE,8BAA8B;IAC7C,OAAO,EAAE,wBAAwB;IACjC,KAAK,EAAE,sBAAsB;IAC7B,QAAQ,EAAE,yBAAyB;IACnC,SAAS,EAAE,0BAA0B;IACrC,UAAU,EAAE,2BAA2B;IACvC,SAAS,EAAE,0BAA0B;IACrC,kBAAkB,EAAE,mCAAmC;CACxD,CAAC,CAAC","sourcesContent":["import { staticStyles } from '../../lib/theming/staticStyles.js';\n\n/** Правила — в `Input.css`; здесь только имена классов. */\nexport const getStyles = staticStyles({\n wrapper: 'react-ui-Input-wrapper',\n root: 'react-ui-Input-root',\n hovering: 'react-ui-Input-hovering',\n borderless: 'react-ui-Input-borderless',\n focus: 'react-ui-Input-focus',\n placeholder: 'react-ui-Input-placeholder',\n placeholderFocus: 'react-ui-Input-placeholderFocus',\n placeholderDisabled: 'react-ui-Input-placeholderDisabled',\n input: 'react-ui-Input-input',\n inputFocus: 'react-ui-Input-inputFocus',\n inputDisabled: 'react-ui-Input-inputDisabled',\n warning: 'react-ui-Input-warning',\n error: 'react-ui-Input-error',\n disabled: 'react-ui-Input-disabled',\n sizeSmall: 'react-ui-Input-sizeSmall',\n sizeMedium: 'react-ui-Input-sizeMedium',\n sizeLarge: 'react-ui-Input-sizeLarge',\n hideBlinkingCursor: 'react-ui-Input-hideBlinkingCursor',\n});\n"]}
1
+ {"version":3,"file":"Input.styles.js","sourceRoot":"","sources":["Input.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAA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AG,8RAAA,qBACK,EAAoB,wBAClB,EAAsB,mBAC3B,EAAkB,wBACb,EAAgC,2BAC7B,EAAgC,yBAClC,EAAoB,0BACnB,EAAoB,0BACpB,EAAwB,SAC1C,KARc,CAAC,CAAC,kBAAkB,EAClB,CAAC,CAAC,oBAAoB,EAC3B,CAAC,CAAC,gBAAgB,EACb,KAAK,CAAC,CAAC,CAAC,kBAAkB,EAAE,GAAG,CAAC,EAC7B,KAAK,CAAC,CAAC,CAAC,kBAAkB,EAAE,GAAG,CAAC,EAClC,CAAC,CAAC,kBAAkB,EACnB,CAAC,CAAC,kBAAkB,EACpB,CAAC,CAAC,sBAAsB,EACzC;QACJ,CAAC;QAED,kBAAkB;YAChB,OAAO,GAAG,8GAAA,yCAET,KAAC;QACJ,CAAC;KACF,CAAC;AApP8D,CAoP9D,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { shift } from '../../lib/styles/DimensionFunctions.js';\nimport { resetText } from '../../lib/styles/Mixins.js';\nimport { memoizeGetStyles } from '../../lib/theming/Emotion.js';\nimport type { Theme } from '../../lib/theming/Theme.js';\n\nexport const getStyles = memoizeGetStyles(({ css }: Emotion) => ({\n wrapper() {\n return css`\n align-items: center;\n display: flex;\n margin: 0;\n min-width: 0;\n overflow: hidden;\n position: relative;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n\n &::before {\n content: '\\\\A0';\n display: inline-block;\n width: 0;\n }\n `;\n },\n\n root(t: Theme) {\n return css`\n ${resetText()};\n\n align-items: center;\n background-clip: ${t.inputBackgroundClip};\n background-color: ${t.inputBg};\n border: ${t.inputBorderWidth} solid ${t.inputBorderColor};\n border-top-color: ${t.inputBorderTopColor};\n transition: border-color ${t.transitionDuration} ${t.transitionTimingFunction};\n box-shadow: ${t.inputShadow};\n box-sizing: border-box;\n color: ${t.inputColor};\n cursor: text;\n display: inline-flex;\n outline: none;\n position: relative;\n width: ${t.inputWidth};\n\n & * {\n box-sizing: border-box;\n }\n `;\n },\n\n hovering(t: Theme) {\n return css`\n &:hover {\n border-color: ${t.inputBorderColorHover};\n }\n `;\n },\n\n borderless() {\n return css`\n box-shadow: none;\n border-color: transparent;\n background-clip: padding-box;\n `;\n },\n\n focus(t: Theme) {\n return css`\n background-color: ${t.inputFocusedBg};\n border-color: ${t.inputBorderColorFocus};\n box-shadow: ${t.inputFocusShadow};\n outline: none;\n z-index: 2;\n `;\n },\n\n placeholder(t: Theme) {\n return css`\n -ms-user-select: none;\n color: ${t.inputPlaceholderColor};\n cursor: text;\n font-size: inherit;\n height: 100%;\n left: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 0;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n `;\n },\n\n placeholderFocus(t: Theme) {\n return css`\n color: ${t.inputPlaceholderColorLight};\n `;\n },\n\n placeholderDisabled(t: Theme) {\n return css`\n color: ${t.inputPlaceholderColorDisabled};\n `;\n },\n\n input(t: Theme) {\n return css`\n -webkit-appearance: none;\n background: transparent;\n border: 0 none;\n color: ${t.inputTextColor};\n font: inherit;\n line-height: inherit;\n margin: 0;\n outline: none;\n padding: 0;\n text-overflow: clip;\n white-space: nowrap;\n width: 100%;\n color-scheme: ${t.inputColorScheme};\n\n &:-moz-placeholder {\n opacity: 1;\n }\n &::-moz-placeholder {\n opacity: 1;\n }\n &::-ms-clear {\n display: none;\n }\n &:-moz-placeholder {\n color: ${t.inputPlaceholderColor};\n }\n &::-moz-placeholder {\n color: ${t.inputPlaceholderColor};\n }\n &::placeholder {\n color: ${t.inputPlaceholderColor};\n }\n `;\n },\n\n inputFocus(t: Theme) {\n return css`\n &:-moz-placeholder {\n color: ${t.inputPlaceholderColorLight};\n }\n &::-moz-placeholder {\n color: ${t.inputPlaceholderColorLight};\n }\n &::placeholder {\n color: ${t.inputPlaceholderColorLight};\n }\n `;\n },\n\n inputDisabled(t: Theme) {\n return css`\n color: ${t.inputTextColorDisabled};\n /* fix text color in safari https://bugs.webkit.org/show_bug.cgi?id=115510 */\n -webkit-text-fill-color: ${t.inputTextColorDisabled};\n\n &:-moz-placeholder {\n -webkit-text-fill-color: ${t.inputPlaceholderColorDisabled};\n }\n &::-moz-placeholder {\n -webkit-text-fill-color: ${t.inputPlaceholderColorDisabled};\n }\n &::placeholder {\n -webkit-text-fill-color: ${t.inputPlaceholderColorDisabled};\n }\n `;\n },\n\n warning(t: Theme) {\n return css`\n border-color: ${t.inputBorderColorWarning};\n box-shadow: 0 0 0 ${t.inputOutlineWidth} ${t.inputBorderColorWarning};\n z-index: 2;\n `;\n },\n\n error(t: Theme) {\n return css`\n border-color: ${t.inputBorderColorError};\n box-shadow: 0 0 0 ${t.inputOutlineWidth} ${t.inputBorderColorError};\n z-index: 2;\n `;\n },\n\n disabled(t: Theme) {\n return css`\n background-color: ${t.inputDisabledBg};\n border-color: ${t.inputDisabledBorderColor};\n box-shadow: none;\n cursor: default;\n\n & * {\n cursor: default;\n }\n `;\n },\n\n sizeSmall(t: Theme) {\n return css`\n font-size: ${t.inputFontSizeSmall};\n line-height: ${t.inputLineHeightSmall};\n padding-top: ${t.inputPaddingYSmall};\n padding-bottom: ${t.inputPaddingYSmall};\n padding-left: ${t.inputPaddingXSmall};\n padding-right: ${t.inputPaddingXSmall};\n height: ${t.inputHeightSmall};\n border-radius: ${t.inputBorderRadiusSmall};\n `;\n },\n\n sizeMedium(t: Theme) {\n return css`\n font-size: ${t.inputFontSizeMedium};\n line-height: ${t.inputLineHeightMedium};\n padding-top: ${t.inputPaddingYMedium};\n padding-bottom: ${t.inputPaddingYMedium};\n padding-left: ${t.inputPaddingXMedium};\n padding-right: ${t.inputPaddingXMedium};\n height: ${t.inputHeightMedium};\n border-radius: ${t.inputBorderRadiusMedium};\n `;\n },\n\n sizeLarge(t: Theme) {\n return css`\n font-size: ${t.inputFontSizeLarge};\n line-height: ${t.inputLineHeightLarge};\n height: ${t.inputHeightLarge};\n padding-top: ${shift(t.inputPaddingYLarge, '0')};\n padding-bottom: ${shift(t.inputPaddingYLarge, '0')};\n padding-left: ${t.inputPaddingXLarge};\n padding-right: ${t.inputPaddingXLarge};\n border-radius: ${t.inputBorderRadiusLarge};\n `;\n },\n\n hideBlinkingCursor() {\n return css`\n caret-color: transparent;\n `;\n },\n}));\n"]}
@@ -1,27 +1,18 @@
1
- /** Правила — в `InputLayout.css`; здесь только имена классов. */
2
- export declare const getStylesLayout: (ignored?: unknown) => import("../../../lib/theming/staticStyles.js").StaticStyles<{
3
- root: string;
4
- input: string;
5
- aside: string;
6
- icon: string;
7
- iconSizeSmall: string;
8
- iconSizeMedium: string;
9
- iconSizeLarge: string;
10
- iconGapLeftSmall: string;
11
- iconGapLeftMedium: string;
12
- iconGapLeftLarge: string;
13
- iconGapRightSmall: string;
14
- iconGapRightMedium: string;
15
- iconGapRightLarge: string;
16
- iconFocus: string;
17
- iconDisabled: string;
18
- text: string;
19
- text6_4: string;
20
- textDisabled: string;
21
- counter: string;
22
- counterSmall: string;
23
- counterMedium: string;
24
- counterLarge: string;
25
- counterError: string;
26
- counterHelp: string;
1
+ import type { Theme } from '../../../lib/theming/Theme.js';
2
+ export declare const getStylesLayout: import("../../../lib/theming/Emotion.js").StylesGetter<{
3
+ root(t: Theme): string;
4
+ input(): string;
5
+ aside(): string;
6
+ icon(t: Theme): string;
7
+ iconFocus(t: Theme): string;
8
+ iconDisabled(t: Theme): string;
9
+ text(t: Theme): string;
10
+ text6_4(t: Theme): string;
11
+ textDisabled(t: Theme): string;
12
+ counter(t: Theme): string;
13
+ counterSmall(t: Theme): string;
14
+ counterMedium(t: Theme): string;
15
+ counterLarge(t: Theme): string;
16
+ counterError(t: Theme): string;
17
+ counterHelp(t: Theme): string;
27
18
  }>;
@@ -1,29 +1,59 @@
1
- import { staticStyles } from '../../../lib/theming/staticStyles.js';
2
- /** Правила — в `InputLayout.css`; здесь только имена классов. */
3
- export var getStylesLayout = staticStyles({
4
- root: 'react-ui-InputLayout-StylesLayout-root',
5
- input: 'react-ui-InputLayout-StylesLayout-input',
6
- aside: 'react-ui-InputLayout-StylesLayout-aside',
7
- icon: 'react-ui-InputLayout-StylesLayout-icon',
8
- iconSizeSmall: 'react-ui-InputLayout-StylesLayout-iconSizeSmall',
9
- iconSizeMedium: 'react-ui-InputLayout-StylesLayout-iconSizeMedium',
10
- iconSizeLarge: 'react-ui-InputLayout-StylesLayout-iconSizeLarge',
11
- iconGapLeftSmall: 'react-ui-InputLayout-StylesLayout-iconGapLeftSmall',
12
- iconGapLeftMedium: 'react-ui-InputLayout-StylesLayout-iconGapLeftMedium',
13
- iconGapLeftLarge: 'react-ui-InputLayout-StylesLayout-iconGapLeftLarge',
14
- iconGapRightSmall: 'react-ui-InputLayout-StylesLayout-iconGapRightSmall',
15
- iconGapRightMedium: 'react-ui-InputLayout-StylesLayout-iconGapRightMedium',
16
- iconGapRightLarge: 'react-ui-InputLayout-StylesLayout-iconGapRightLarge',
17
- iconFocus: 'react-ui-InputLayout-StylesLayout-iconFocus',
18
- iconDisabled: 'react-ui-InputLayout-StylesLayout-iconDisabled',
19
- text: 'react-ui-InputLayout-StylesLayout-text',
20
- text6_4: 'react-ui-InputLayout-StylesLayout-text6_4',
21
- textDisabled: 'react-ui-InputLayout-StylesLayout-textDisabled',
22
- counter: 'react-ui-InputLayout-StylesLayout-counter',
23
- counterSmall: 'react-ui-InputLayout-StylesLayout-counterSmall',
24
- counterMedium: 'react-ui-InputLayout-StylesLayout-counterMedium',
25
- counterLarge: 'react-ui-InputLayout-StylesLayout-counterLarge',
26
- counterError: 'react-ui-InputLayout-StylesLayout-counterError',
27
- counterHelp: 'react-ui-InputLayout-StylesLayout-counterHelp',
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 { ZERO_WIDTH_SPACE_CSS } from '../../../lib/chars.js';
6
+ import { memoizeGetStyles } from '../../../lib/theming/Emotion.js';
7
+ import { getStyles } from '../Input.styles.js';
8
+ export var getStylesLayout = memoizeGetStyles(function (emotion) {
9
+ var styles = getStyles(emotion);
10
+ return {
11
+ root: function (t) {
12
+ return styles.root(t);
13
+ },
14
+ input: function () {
15
+ return emotion.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 0;\n overflow: hidden;\n position: relative;\n width: 100%;\n display: flex;\n "], ["\n min-width: 0;\n overflow: hidden;\n position: relative;\n width: 100%;\n display: flex;\n "])));
16
+ },
17
+ aside: function () {
18
+ return emotion.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::before {\n content: '", "';\n }\n "], ["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::before {\n content: '", "';\n }\n "])), ZERO_WIDTH_SPACE_CSS);
19
+ },
20
+ icon: function (t) {
21
+ return emotion.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputIconColor);
22
+ },
23
+ iconFocus: function (t) {
24
+ return emotion.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputFocusedIconColor);
25
+ },
26
+ iconDisabled: function (t) {
27
+ return emotion.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n cursor: default;\n color: ", ";\n "], ["\n cursor: default;\n color: ", ";\n "])), t.inputIconColorDisabled);
28
+ },
29
+ text: function (t) {
30
+ return emotion.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputPlaceholderColor);
31
+ },
32
+ text6_4: function (t) {
33
+ return emotion.css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputAffixColor);
34
+ },
35
+ textDisabled: function (t) {
36
+ return emotion.css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputPlaceholderColorDisabled);
37
+ },
38
+ counter: function (t) {
39
+ return emotion.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-variant-numeric: tabular-nums;\n color: ", ";\n "], ["\n font-variant-numeric: tabular-nums;\n color: ", ";\n "])), t.inputCounterColor);
40
+ },
41
+ counterSmall: function (t) {
42
+ return emotion.css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n margin-left: ", ";\n "], ["\n margin-left: ", ";\n "])), t.inputCounterMarginLeftSmall);
43
+ },
44
+ counterMedium: function (t) {
45
+ return emotion.css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin-left: ", ";\n "], ["\n margin-left: ", ";\n "])), t.inputCounterMarginLeftMedium);
46
+ },
47
+ counterLarge: function (t) {
48
+ return emotion.css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin-left: ", ";\n "], ["\n margin-left: ", ";\n "])), t.inputCounterMarginLeftLarge);
49
+ },
50
+ counterError: function (t) {
51
+ return emotion.css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.inputCounterColorError);
52
+ },
53
+ counterHelp: function (t) {
54
+ return emotion.css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n margin-left: ", ";\n "], ["\n margin-left: ", ";\n "])), t.inputCounterHelpMarginLeft);
55
+ },
56
+ };
28
57
  });
58
+ 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;
29
59
  //# sourceMappingURL=InputLayout.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputLayout.styles.js","sourceRoot":"","sources":["InputLayout.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,iEAAiE;AACjE,MAAM,CAAC,IAAM,eAAe,GAAG,YAAY,CAAC;IAC1C,IAAI,EAAE,wCAAwC;IAC9C,KAAK,EAAE,yCAAyC;IAChD,KAAK,EAAE,yCAAyC;IAChD,IAAI,EAAE,wCAAwC;IAC9C,aAAa,EAAE,iDAAiD;IAChE,cAAc,EAAE,kDAAkD;IAClE,aAAa,EAAE,iDAAiD;IAChE,gBAAgB,EAAE,oDAAoD;IACtE,iBAAiB,EAAE,qDAAqD;IACxE,gBAAgB,EAAE,oDAAoD;IACtE,iBAAiB,EAAE,qDAAqD;IACxE,kBAAkB,EAAE,sDAAsD;IAC1E,iBAAiB,EAAE,qDAAqD;IACxE,SAAS,EAAE,6CAA6C;IACxD,YAAY,EAAE,gDAAgD;IAC9D,IAAI,EAAE,wCAAwC;IAC9C,OAAO,EAAE,2CAA2C;IACpD,YAAY,EAAE,gDAAgD;IAC9D,OAAO,EAAE,2CAA2C;IACpD,YAAY,EAAE,gDAAgD;IAC9D,aAAa,EAAE,iDAAiD;IAChE,YAAY,EAAE,gDAAgD;IAC9D,YAAY,EAAE,gDAAgD;IAC9D,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC","sourcesContent":["import { staticStyles } from '../../../lib/theming/staticStyles.js';\n\n/** Правила — в `InputLayout.css`; здесь только имена классов. */\nexport const getStylesLayout = staticStyles({\n root: 'react-ui-InputLayout-StylesLayout-root',\n input: 'react-ui-InputLayout-StylesLayout-input',\n aside: 'react-ui-InputLayout-StylesLayout-aside',\n icon: 'react-ui-InputLayout-StylesLayout-icon',\n iconSizeSmall: 'react-ui-InputLayout-StylesLayout-iconSizeSmall',\n iconSizeMedium: 'react-ui-InputLayout-StylesLayout-iconSizeMedium',\n iconSizeLarge: 'react-ui-InputLayout-StylesLayout-iconSizeLarge',\n iconGapLeftSmall: 'react-ui-InputLayout-StylesLayout-iconGapLeftSmall',\n iconGapLeftMedium: 'react-ui-InputLayout-StylesLayout-iconGapLeftMedium',\n iconGapLeftLarge: 'react-ui-InputLayout-StylesLayout-iconGapLeftLarge',\n iconGapRightSmall: 'react-ui-InputLayout-StylesLayout-iconGapRightSmall',\n iconGapRightMedium: 'react-ui-InputLayout-StylesLayout-iconGapRightMedium',\n iconGapRightLarge: 'react-ui-InputLayout-StylesLayout-iconGapRightLarge',\n iconFocus: 'react-ui-InputLayout-StylesLayout-iconFocus',\n iconDisabled: 'react-ui-InputLayout-StylesLayout-iconDisabled',\n text: 'react-ui-InputLayout-StylesLayout-text',\n text6_4: 'react-ui-InputLayout-StylesLayout-text6_4',\n textDisabled: 'react-ui-InputLayout-StylesLayout-textDisabled',\n counter: 'react-ui-InputLayout-StylesLayout-counter',\n counterSmall: 'react-ui-InputLayout-StylesLayout-counterSmall',\n counterMedium: 'react-ui-InputLayout-StylesLayout-counterMedium',\n counterLarge: 'react-ui-InputLayout-StylesLayout-counterLarge',\n counterError: 'react-ui-InputLayout-StylesLayout-counterError',\n counterHelp: 'react-ui-InputLayout-StylesLayout-counterHelp',\n});\n"]}
1
+ {"version":3,"file":"InputLayout.styles.js","sourceRoot":"","sources":["InputLayout.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,IAAM,eAAe,GAAG,gBAAgB,CAAC,UAAC,OAAgB;IAC/D,IAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAElC,OAAO;QACL,IAAI,YAAC,CAAQ;YACX,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC;QACD,KAAK;YACH,OAAO,OAAO,CAAC,GAAG,0MAAA,uIAMjB,KAAC;QACJ,CAAC;QACD,KAAK;YACH,OAAO,OAAO,CAAC,GAAG,iOAAA,qIAMF,EAAoB,uBAEnC,KAFe,oBAAoB,EAElC;QACJ,CAAC;QACD,IAAI,YAAC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;QACD,YAAY,YAAC,CAAQ;YACnB,OAAO,OAAO,CAAC,GAAG,qGAAA,mBACP,EAAwB,WAClC,KADU,CAAC,CAAC,sBAAsB,EACjC;QACJ,CAAC;QACD,WAAW,YAAC,CAAQ;YAClB,OAAO,OAAO,CAAC,GAAG,2GAAA,yBACD,EAA4B,WAC5C,KADgB,CAAC,CAAC,0BAA0B,EAC3C;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { ZERO_WIDTH_SPACE_CSS } from '../../../lib/chars.js';\nimport { memoizeGetStyles } from '../../../lib/theming/Emotion.js';\nimport type { Theme } from '../../../lib/theming/Theme.js';\nimport { getStyles } from '../Input.styles.js';\n\nexport const getStylesLayout = memoizeGetStyles((emotion: Emotion) => {\n const styles = getStyles(emotion);\n\n return {\n root(t: Theme) {\n return styles.root(t);\n },\n input() {\n return emotion.css`\n min-width: 0;\n overflow: hidden;\n position: relative;\n width: 100%;\n display: flex;\n `;\n },\n aside() {\n return emotion.css`\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::before {\n content: '${ZERO_WIDTH_SPACE_CSS}';\n }\n `;\n },\n icon(t: Theme) {\n return emotion.css`\n color: ${t.inputIconColor};\n `;\n },\n iconFocus(t: Theme) {\n return emotion.css`\n color: ${t.inputFocusedIconColor};\n `;\n },\n iconDisabled(t: Theme) {\n return emotion.css`\n cursor: default;\n color: ${t.inputIconColorDisabled};\n `;\n },\n text(t: Theme) {\n return emotion.css`\n color: ${t.inputPlaceholderColor};\n `;\n },\n\n text6_4(t: Theme) {\n return emotion.css`\n color: ${t.inputAffixColor};\n `;\n },\n\n textDisabled(t: Theme) {\n return emotion.css`\n color: ${t.inputPlaceholderColorDisabled};\n `;\n },\n counter(t: Theme) {\n return emotion.css`\n font-variant-numeric: tabular-nums;\n color: ${t.inputCounterColor};\n `;\n },\n counterSmall(t: Theme) {\n return emotion.css`\n margin-left: ${t.inputCounterMarginLeftSmall};\n `;\n },\n counterMedium(t: Theme) {\n return emotion.css`\n margin-left: ${t.inputCounterMarginLeftMedium};\n `;\n },\n counterLarge(t: Theme) {\n return emotion.css`\n margin-left: ${t.inputCounterMarginLeftLarge};\n `;\n },\n counterError(t: Theme) {\n return emotion.css`\n color: ${t.inputCounterColorError};\n `;\n },\n counterHelp(t: Theme) {\n return emotion.css`\n margin-left: ${t.inputCounterHelpMarginLeft};\n `;\n },\n };\n});\n"]}
@@ -15,8 +15,7 @@ import { Tooltip } from '../../../components/Tooltip/Tooltip.js';
15
15
  import { QuestionCircleIcon16Light } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Light.js';
16
16
  import { QuestionCircleIcon20Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon20Regular.js';
17
17
  import { QuestionCircleIcon24Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon24Regular.js';
18
- import { useStyles } from '../../../lib/renderEnvironment/index.js';
19
- import { concatClassNames as cx } from '../../../lib/theming/Emotion.js';
18
+ import { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';
20
19
  import { ThemeContext } from '../../../lib/theming/ThemeContext.js';
21
20
  import { isFunction } from '../../../lib/utils.js';
22
21
  import { InputDataTids } from '../Input.js';
@@ -26,6 +25,7 @@ export var InputLayoutAsideCounter = function (_a) {
26
25
  var _b;
27
26
  var length = _a.length, inputValue = _a.inputValue, help = _a.help, onCloseHelp = _a.onCloseHelp, size = _a.size;
28
27
  var theme = React.useContext(ThemeContext);
28
+ var cx = useEmotion().cx;
29
29
  var stylesLayout = useStyles(getStylesLayout);
30
30
  var renderTooltipContent = useCallback(function () {
31
31
  if (typeof help === 'function') {
@@ -55,21 +55,21 @@ export var InputLayoutAsideCounter = function (_a) {
55
55
  var getCounterSizeClassName = function () {
56
56
  switch (size) {
57
57
  case 'large':
58
- return stylesLayout.counterLarge();
58
+ return stylesLayout.counterLarge(theme);
59
59
  case 'medium':
60
- return stylesLayout.counterMedium();
60
+ return stylesLayout.counterMedium(theme);
61
61
  case 'small':
62
62
  default:
63
- return stylesLayout.counterSmall();
63
+ return stylesLayout.counterSmall(theme);
64
64
  }
65
65
  };
66
66
  var inputValueLength = inputValue ? inputValue.length : 0;
67
67
  var counterValue = length - inputValueLength;
68
68
  var isNegativeValue = counterValue < 0;
69
- return (React.createElement("span", { "data-tid": InputDataTids.counter, className: cx(asideClassName, getCounterSizeClassName(), stylesLayout.counter(), (_b = {},
70
- _b[stylesLayout.counterError()] = isNegativeValue,
69
+ return (React.createElement("span", { "data-tid": InputDataTids.counter, className: cx(asideClassName, getCounterSizeClassName(), stylesLayout.counter(theme), (_b = {},
70
+ _b[stylesLayout.counterError(theme)] = isNegativeValue,
71
71
  _b)) },
72
72
  isNegativeValue ? "".concat(MINUS_SIGN).concat(-counterValue) : counterValue,
73
- help && React.createElement("span", { className: stylesLayout.counterHelp() }, counterHelp)));
73
+ help && React.createElement("span", { className: stylesLayout.counterHelp(theme) }, counterHelp)));
74
74
  };
75
75
  //# sourceMappingURL=InputLayoutAsideCounter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputLayoutAsideCounter.js","sourceRoot":"","sources":["InputLayoutAsideCounter.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6EAA6E,CAAC;AACxH,OAAO,EAAE,2BAA2B,EAAE,MAAM,+EAA+E,CAAC;AAC5H,OAAO,EAAE,2BAA2B,EAAE,MAAM,+EAA+E,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,gBAAgB,IAAI,EAAE,EAAE,MAAM,iCAAiC,CA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CAAC","sourcesContent":["import type { SyntheticEvent } from 'react';\nimport React, { useCallback } from 'react';\n\nimport { MINUS_SIGN } from '../../../components/CurrencyInput/constants.js';\nimport { Tooltip } from '../../../components/Tooltip/Tooltip.js';\nimport { QuestionCircleIcon16Light } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Light.js';\nimport { QuestionCircleIcon20Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon20Regular.js';\nimport { QuestionCircleIcon24Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon24Regular.js';\nimport { useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { concatClassNames as cx } from '../../../lib/theming/Emotion.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { isFunction } from '../../../lib/utils.js';\nimport { InputDataTids, type InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\n\nexport interface InputLayoutAsideCounterProps {\n length: number;\n inputValue: InputProps['value'];\n help: InputProps['counterHelp'];\n onCloseHelp?: () => void;\n size?: SizeProp;\n}\n\nconst handleHelpMouseDown = (e: SyntheticEvent) => e.preventDefault();\n\nexport const InputLayoutAsideCounter: React.FunctionComponent<InputLayoutAsideCounterProps> = ({\n length,\n inputValue,\n help,\n onCloseHelp,\n size,\n}) => {\n const theme = React.useContext(ThemeContext);\n const stylesLayout = useStyles(getStylesLayout);\n\n const renderTooltipContent = useCallback(() => {\n if (typeof help === 'function') {\n return help();\n }\n return help;\n }, [help]);\n\n const getHelpIcon = () => {\n switch (size) {\n case 'large':\n return <QuestionCircleIcon24Regular {...helpIconProps} />;\n case 'medium':\n return <QuestionCircleIcon20Regular {...helpIconProps} />;\n case 'small':\n default:\n return <QuestionCircleIcon16Light {...helpIconProps} />;\n }\n };\n const helpIconProps = {\n onMouseDown: handleHelpMouseDown,\n color: theme.inputCounterHelpIconColor,\n 'data-tid': InputDataTids.counterHelpIcon,\n style: { cursor: 'pointer' },\n };\n const counterHelp = isFunction(help) ? (\n help()\n ) : (\n <Tooltip\n pos={'right bottom'}\n trigger={'click'}\n render={renderTooltipContent}\n onCloseClick={onCloseHelp}\n size={size}\n >\n {getHelpIcon()}\n </Tooltip>\n );\n\n const asideClassName = stylesLayout.aside();\n const getCounterSizeClassName = () => {\n switch (size) {\n case 'large':\n return stylesLayout.counterLarge();\n case 'medium':\n return stylesLayout.counterMedium();\n case 'small':\n default:\n return stylesLayout.counterSmall();\n }\n };\n\n const inputValueLength = inputValue ? inputValue.length : 0;\n const counterValue = length - inputValueLength;\n const isNegativeValue = counterValue < 0;\n\n return (\n <span\n data-tid={InputDataTids.counter}\n className={cx(asideClassName, getCounterSizeClassName(), stylesLayout.counter(), {\n [stylesLayout.counterError()]: isNegativeValue,\n })}\n >\n {isNegativeValue ? `${MINUS_SIGN}${-counterValue}` : counterValue}\n {help && <span className={stylesLayout.counterHelp()}>{counterHelp}</span>}\n </span>\n );\n};\n"]}
1
+ {"version":3,"file":"InputLayoutAsideCounter.js","sourceRoot":"","sources":["InputLayoutAsideCounter.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6EAA6E,CAAC;AACxH,OAAO,EAAE,2BAA2B,EAAE,MAAM,+EAA+E,CAAC;AAC5H,OAAO,EAAE,2BAA2B,EAAE,MAAM,+EAA+E,CAAC;AAC5H,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAmB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Content":["import type { SyntheticEvent } from 'react';\nimport React, { useCallback } from 'react';\n\nimport { MINUS_SIGN } from '../../../components/CurrencyInput/constants.js';\nimport { Tooltip } from '../../../components/Tooltip/Tooltip.js';\nimport { QuestionCircleIcon16Light } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Light.js';\nimport { QuestionCircleIcon20Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon20Regular.js';\nimport { QuestionCircleIcon24Regular } from '../../../internal/icons2022/QuestionCircleIcon/QuestionCircleIcon24Regular.js';\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { isFunction } from '../../../lib/utils.js';\nimport { InputDataTids, type InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\n\nexport interface InputLayoutAsideCounterProps {\n length: number;\n inputValue: InputProps['value'];\n help: InputProps['counterHelp'];\n onCloseHelp?: () => void;\n size?: SizeProp;\n}\n\nconst handleHelpMouseDown = (e: SyntheticEvent) => e.preventDefault();\n\nexport const InputLayoutAsideCounter: React.FunctionComponent<InputLayoutAsideCounterProps> = ({\n length,\n inputValue,\n help,\n onCloseHelp,\n size,\n}) => {\n const theme = React.useContext(ThemeContext);\n const { cx } = useEmotion();\n const stylesLayout = useStyles(getStylesLayout);\n\n const renderTooltipContent = useCallback(() => {\n if (typeof help === 'function') {\n return help();\n }\n return help;\n }, [help]);\n\n const getHelpIcon = () => {\n switch (size) {\n case 'large':\n return <QuestionCircleIcon24Regular {...helpIconProps} />;\n case 'medium':\n return <QuestionCircleIcon20Regular {...helpIconProps} />;\n case 'small':\n default:\n return <QuestionCircleIcon16Light {...helpIconProps} />;\n }\n };\n const helpIconProps = {\n onMouseDown: handleHelpMouseDown,\n color: theme.inputCounterHelpIconColor,\n 'data-tid': InputDataTids.counterHelpIcon,\n style: { cursor: 'pointer' },\n };\n const counterHelp = isFunction(help) ? (\n help()\n ) : (\n <Tooltip\n pos={'right bottom'}\n trigger={'click'}\n render={renderTooltipContent}\n onCloseClick={onCloseHelp}\n size={size}\n >\n {getHelpIcon()}\n </Tooltip>\n );\n\n const asideClassName = stylesLayout.aside();\n const getCounterSizeClassName = () => {\n switch (size) {\n case 'large':\n return stylesLayout.counterLarge(theme);\n case 'medium':\n return stylesLayout.counterMedium(theme);\n case 'small':\n default:\n return stylesLayout.counterSmall(theme);\n }\n };\n\n const inputValueLength = inputValue ? inputValue.length : 0;\n const counterValue = length - inputValueLength;\n const isNegativeValue = counterValue < 0;\n\n return (\n <span\n data-tid={InputDataTids.counter}\n className={cx(asideClassName, getCounterSizeClassName(), stylesLayout.counter(theme), {\n [stylesLayout.counterError(theme)]: isNegativeValue,\n })}\n >\n {isNegativeValue ? `${MINUS_SIGN}${-counterValue}` : counterValue}\n {help && <span className={stylesLayout.counterHelp(theme)}>{counterHelp}</span>}\n </span>\n );\n};\n"]}
@@ -1,37 +1,43 @@
1
1
  import React from 'react';
2
- import { ALIASES_TO_SIZES } from '../../../internal/icons2022/iconConstants.js';
3
2
  import { isElement } from '../../../lib/react-is.js';
4
- import { useStyles } from '../../../lib/renderEnvironment/index.js';
5
- import { concatClassNames as cx } from '../../../lib/theming/Emotion.js';
3
+ import { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';
4
+ import { ThemeContext } from '../../../lib/theming/ThemeContext.js';
6
5
  import { isKonturIcon } from '../../../lib/utils.js';
7
6
  import { getStylesLayout } from './InputLayout.styles.js';
8
7
  import { InputLayoutContext } from './InputLayoutContext.js';
9
- /** Классы размера иконки и отступа от поля — по размеру контрола и стороне. */
10
- var SIZE_CLASS = {
11
- small: 'iconSizeSmall',
12
- medium: 'iconSizeMedium',
13
- large: 'iconSizeLarge',
14
- };
15
- var GAP_CLASS = {
16
- left: { small: 'iconGapLeftSmall', medium: 'iconGapLeftMedium', large: 'iconGapLeftLarge' },
17
- right: { small: 'iconGapRightSmall', medium: 'iconGapRightMedium', large: 'iconGapRightLarge' },
18
- };
19
8
  export var InputLayoutAsideIcon = function (_a) {
20
9
  var _b;
21
10
  var _c = _a.icon, icon = _c === void 0 ? null : _c, side = _a.side;
11
+ var theme = React.useContext(ThemeContext);
12
+ var cx = useEmotion().cx;
22
13
  var stylesLayout = useStyles(getStylesLayout);
23
14
  var _d = React.useContext(InputLayoutContext), focused = _d.focused, disabled = _d.disabled, size = _d.size;
15
+ var sizes = {
16
+ small: parseInt(theme.inputIconSizeSmall),
17
+ medium: parseInt(theme.inputIconSizeMedium),
18
+ large: parseInt(theme.inputIconSizeLarge),
19
+ };
20
+ var gaps = {
21
+ small: parseInt(theme.inputIconGapSmall),
22
+ medium: parseInt(theme.inputIconGapMedium),
23
+ large: parseInt(theme.inputIconGapLarge),
24
+ };
24
25
  var _icon = icon instanceof Function ? icon() : icon;
25
26
  if (isElement(icon) && isKonturIcon(icon)) {
26
27
  var iconProps = icon.props;
27
- // Число по алиасу, а не значение темы: иконке нужен именно размер в
28
- // пикселях — по нему она выбирает отрисовку, а иконки из общего пакета
29
- // алиас в атрибут `width` кладут как есть и остаются вовсе без размера.
30
- // Точный размер поверх этого задаёт класс со ссылкой на переменную темы.
31
28
  _icon = React.cloneElement(icon, {
32
- size: (_b = iconProps.size) !== null && _b !== void 0 ? _b : ALIASES_TO_SIZES[size],
29
+ size: (_b = iconProps.size) !== null && _b !== void 0 ? _b : sizes[size],
33
30
  });
34
31
  }
35
- return _icon ? (React.createElement("span", { className: cx(stylesLayout.aside(), stylesLayout.icon(), stylesLayout[SIZE_CLASS[size]](), stylesLayout[GAP_CLASS[side][size]](), focused && stylesLayout.iconFocus(), disabled && stylesLayout.iconDisabled()) }, _icon)) : null;
32
+ var style = {};
33
+ if (side) {
34
+ if (side === 'right') {
35
+ style.marginLeft = gaps[size];
36
+ }
37
+ else {
38
+ style.marginRight = gaps[size];
39
+ }
40
+ }
41
+ return _icon ? (React.createElement("span", { style: style, className: cx(stylesLayout.aside(), stylesLayout.icon(theme), focused && stylesLayout.iconFocus(theme), disabled && stylesLayout.iconDisabled(theme)) }, _icon)) : null;
36
42
  };
37
43
  //# sourceMappingURL=InputLayoutAsideIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputLayoutAsideIcon.js","sourceRoot":"","sources":["InputLayoutAsideIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,gBAAgB,IAAI,EAAE,EAAE,MAAM,iCAAiC,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,+EAA+E;AAC/E,IAAM,UAAU,GAA2E;IACzF,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,eAAe;CACvB,CAAC;AAEF,IAAM,SAAS,GAAyF;IACtG,IAAI,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,kBAAkB,EAAE;IAC3F,KAAK,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAoB,EAAE,KAAK,EAAE,mBAAmB,EAAE;CAChG,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAuD,UAAC,EAAqB;;QAAnB,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EAAE,IAAI,UAAA;IAC1G,IAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IAC1C,IAAA,KAA8B,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAhE,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAyC,CAAC;IAEzE,IAAI,KAAK,GAAG,IAAI,YAAY,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,IAAM,SAAS,GAAG,IAAI,CAAC,KAAkB,CAAC;QAC1C,oEAAoE;QACpE,uEAAuE;QACvE,wEAAwE;QACxE,yEAAyE;QACzE,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,MAAA,SAAS,CAAC,IAAI,mCAAI,gBAAgB,CAAC,IAAI,CAAC;SAClC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,8BACE,SAAS,EAAE,EAAE,CACX,YAAY,CAAC,KAAK,EAAE,EACpB,YAAY,CAAC,IAAI,EAAE,EACnB,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAChC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EACrC,OAAO,IAAI,YAAY,CAAC,SAAS,EAAE,EACnC,QAAQ,IAAI,YAAY,CAAC,YAAY,EAAE,CACxC,IAEA,KAAK,CACD,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport type { IconProps } from '../../../internal/icons2022/BaseIcon.js';\nimport { ALIASES_TO_SIZES } from '../../../internal/icons2022/iconConstants.js';\nimport { isElement } from '../../../lib/react-is.js';\nimport { useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { concatClassNames as cx } from '../../../lib/theming/Emotion.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { isKonturIcon } from '../../../lib/utils.js';\nimport type { InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\nimport { InputLayoutContext } from './InputLayoutContext.js';\n\nexport interface InputLayoutAsideIconProps {\n icon: InputProps['leftIcon'] | InputProps['rightIcon'];\n side: 'left' | 'right';\n}\n\n/** Классы размера иконки и отступа от поля — по размеру контрола и стороне. */\nconst SIZE_CLASS: Record<SizeProp, 'iconSizeSmall' | 'iconSizeMedium' | 'iconSizeLarge'> = {\n small: 'iconSizeSmall',\n medium: 'iconSizeMedium',\n large: 'iconSizeLarge',\n};\n\nconst GAP_CLASS: Record<'left' | 'right', Record<SizeProp, keyof ReturnType<typeof getStylesLayout>>> = {\n left: { small: 'iconGapLeftSmall', medium: 'iconGapLeftMedium', large: 'iconGapLeftLarge' },\n right: { small: 'iconGapRightSmall', medium: 'iconGapRightMedium', large: 'iconGapRightLarge' },\n};\n\nexport const InputLayoutAsideIcon: React.FunctionComponent<InputLayoutAsideIconProps> = ({ icon = null, side }) => {\n const stylesLayout = useStyles(getStylesLayout);\n const { focused, disabled, size } = React.useContext(InputLayoutContext);\n\n let _icon = icon instanceof Function ? icon() : icon;\n if (isElement(icon) && isKonturIcon(icon)) {\n const iconProps = icon.props as IconProps;\n // Число по алиасу, а не значение темы: иконке нужен именно размер в\n // пикселях — по нему она выбирает отрисовку, а иконки из общего пакета\n // алиас в атрибут `width` кладут как есть и остаются вовсе без размера.\n // Точный размер поверх этого задаёт класс со ссылкой на переменную темы.\n _icon = React.cloneElement(icon, {\n size: iconProps.size ?? ALIASES_TO_SIZES[size],\n } as IconProps);\n }\n\n return _icon ? (\n <span\n className={cx(\n stylesLayout.aside(),\n stylesLayout.icon(),\n stylesLayout[SIZE_CLASS[size]](),\n stylesLayout[GAP_CLASS[side][size]](),\n focused && stylesLayout.iconFocus(),\n disabled && stylesLayout.iconDisabled(),\n )}\n >\n {_icon}\n </span>\n ) : null;\n};\n"]}
1
+ {"version":3,"file":"InputLayoutAsideIcon.js","sourceRoot":"","sources":["InputLayoutAsideIcon.t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GAAG,IAAI,YAAY,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,IAAM,SAAS,GAAG,IAAI,CAAC,KAAkB,CAAC;QAC1C,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE;YAC/B,IAAI,EAAE,MAAA,SAAS,CAAC,IAAI,mCAAI,KAAK,CAAC,IAAI,CAAC;SACvB,CAAC,CAAC;IAClB,CAAC;IAED,IAAM,KAAK,GAAwB,EAAE,CAAC;IACtC,IAAI,IAAI,EAAE,CAAC;QACT,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,8BACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,EAAE,CACX,YAAY,CAAC,KAAK,EAAE,EACpB,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EACxB,OAAO,IAAI,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,EACxC,QAAQ,IAAI,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAC7C,IAEA,KAAK,CACD,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport type { IconProps } from '../../../internal/icons2022/BaseIcon.js';\nimport { isElement } from '../../../lib/react-is.js';\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { isKonturIcon } from '../../../lib/utils.js';\nimport type { InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\nimport { InputLayoutContext } from './InputLayoutContext.js';\n\nexport interface InputLayoutAsideIconProps {\n icon: InputProps['leftIcon'] | InputProps['rightIcon'];\n side: 'left' | 'right';\n}\n\nexport const InputLayoutAsideIcon: React.FunctionComponent<InputLayoutAsideIconProps> = ({ icon = null, side }) => {\n const theme = React.useContext(ThemeContext);\n const { cx } = useEmotion();\n const stylesLayout = useStyles(getStylesLayout);\n const { focused, disabled, size } = React.useContext(InputLayoutContext);\n\n const sizes: Record<SizeProp, number> = {\n small: parseInt(theme.inputIconSizeSmall),\n medium: parseInt(theme.inputIconSizeMedium),\n large: parseInt(theme.inputIconSizeLarge),\n };\n const gaps: Record<SizeProp, number> = {\n small: parseInt(theme.inputIconGapSmall),\n medium: parseInt(theme.inputIconGapMedium),\n large: parseInt(theme.inputIconGapLarge),\n };\n\n let _icon = icon instanceof Function ? icon() : icon;\n if (isElement(icon) && isKonturIcon(icon)) {\n const iconProps = icon.props as IconProps;\n _icon = React.cloneElement(icon, {\n size: iconProps.size ?? sizes[size],\n } as IconProps);\n }\n\n const style: React.CSSProperties = {};\n if (side) {\n if (side === 'right') {\n style.marginLeft = gaps[size];\n } else {\n style.marginRight = gaps[size];\n }\n }\n\n return _icon ? (\n <span\n style={style}\n className={cx(\n stylesLayout.aside(),\n stylesLayout.icon(theme),\n focused && stylesLayout.iconFocus(theme),\n disabled && stylesLayout.iconDisabled(theme),\n )}\n >\n {_icon}\n </span>\n ) : null;\n};\n"]}
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
- import { useStyles } from '../../../lib/renderEnvironment/index.js';
3
- import { concatClassNames as cx } from '../../../lib/theming/Emotion.js';
2
+ import { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';
4
3
  import { ThemeContext } from '../../../lib/theming/ThemeContext.js';
5
4
  import { isThemeGTE } from '../../../lib/theming/ThemeHelpers.js';
6
5
  import { getStylesLayout } from './InputLayout.styles.js';
7
6
  import { InputLayoutContext } from './InputLayoutContext.js';
8
7
  export var InputLayoutAsideText = function (_a) {
9
8
  var _b = _a.text, text = _b === void 0 ? null : _b;
9
+ var theme = React.useContext(ThemeContext);
10
+ var cx = useEmotion().cx;
10
11
  var stylesLayout = useStyles(getStylesLayout);
11
12
  var disabled = React.useContext(InputLayoutContext).disabled;
12
- var theme = React.useContext(ThemeContext);
13
13
  var themeGTE6_4 = isThemeGTE(theme, '6.4');
14
14
  var asideClassName = stylesLayout.aside();
15
- return text ? (React.createElement("span", { className: cx(asideClassName, stylesLayout.text(), themeGTE6_4 && stylesLayout.text6_4(), disabled && stylesLayout.textDisabled()) }, text)) : null;
15
+ return text ? (React.createElement("span", { className: cx(asideClassName, stylesLayout.text(theme), themeGTE6_4 && stylesLayout.text6_4(theme), disabled && stylesLayout.textDisabled(theme)) }, text)) : null;
16
16
  };
17
17
  //# sourceMappingURL=InputLayoutAsideText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputLayoutAsideText.js","sourceRoot":"","sources":["InputLayoutAsideText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,gBAAgB,IAAI,EAAE,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAM7D,MAAM,CAAC,IAAM,oBAAoB,GAAuD,UAAC,EAAe;QAAb,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA;IACpG,IAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IACxC,IAAA,QAAQ,GAAK,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,SAAzC,CAA0C;IAC1D,IAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC7C,IAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,IAAM,cAAc,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC;IAE5C,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,8BACE,SAAS,EAAE,EAAE,CACX,cAAc,EACd,YAAY,CAAC,IAAI,EAAE,EACnB,WAAW,IAAI,YAAY,CAAC,OAAO,EAAE,EACrC,QAAQ,IAAI,YAAY,CAAC,YAAY,EAAE,CACxC,IAEA,IAAI,CACA,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { concatClassNames as cx } from '../../../lib/theming/Emotion.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport { isThemeGTE } from '../../../lib/theming/ThemeHelpers.js';\nimport type { InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\nimport { InputLayoutContext } from './InputLayoutContext.js';\n\nexport interface InputLayoutAsideTextProps {\n text: InputProps['prefix'] | InputProps['suffix'];\n}\n\nexport const InputLayoutAsideText: React.FunctionComponent<InputLayoutAsideTextProps> = ({ text = null }) => {\n const stylesLayout = useStyles(getStylesLayout);\n const { disabled } = React.useContext(InputLayoutContext);\n const theme = React.useContext(ThemeContext);\n const themeGTE6_4 = isThemeGTE(theme, '6.4');\n const asideClassName = stylesLayout.aside();\n\n return text ? (\n <span\n className={cx(\n asideClassName,\n stylesLayout.text(),\n themeGTE6_4 && stylesLayout.text6_4(),\n disabled && stylesLayout.textDisabled(),\n )}\n >\n {text}\n </span>\n ) : null;\n};\n"]}
1
+ {"version":3,"file":"InputLayoutAsideText.js","sourceRoot":"","sources":["InputLayoutAsideText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAM7D,MAAM,CAAC,IAAM,oBAAoB,GAAuD,UAAC,EAAe;QAAb,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA;IACpG,IAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACrC,IAAA,EAAE,GAAK,UAAU,EAAE,GAAjB,CAAkB;IAC5B,IAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IACxC,IAAA,QAAQ,GAAK,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,SAAzC,CAA0C;IAC1D,IAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,IAAM,cAAc,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC;IAE5C,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,8BACE,SAAS,EAAE,EAAE,CACX,cAAc,EACd,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EACxB,WAAW,IAAI,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,EAC1C,QAAQ,IAAI,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAC7C,IAEA,IAAI,CACA,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport { isThemeGTE } from '../../../lib/theming/ThemeHelpers.js';\nimport type { InputProps } from '../Input.js';\nimport { getStylesLayout } from './InputLayout.styles.js';\nimport { InputLayoutContext } from './InputLayoutContext.js';\n\nexport interface InputLayoutAsideTextProps {\n text: InputProps['prefix'] | InputProps['suffix'];\n}\n\nexport const InputLayoutAsideText: React.FunctionComponent<InputLayoutAsideTextProps> = ({ text = null }) => {\n const theme = React.useContext(ThemeContext);\n const { cx } = useEmotion();\n const stylesLayout = useStyles(getStylesLayout);\n const { disabled } = React.useContext(InputLayoutContext);\n const themeGTE6_4 = isThemeGTE(theme, '6.4');\n const asideClassName = stylesLayout.aside();\n\n return text ? (\n <span\n className={cx(\n asideClassName,\n stylesLayout.text(theme),\n themeGTE6_4 && stylesLayout.text6_4(theme),\n disabled && stylesLayout.textDisabled(theme),\n )}\n >\n {text}\n </span>\n ) : null;\n};\n"]}
@@ -42,6 +42,7 @@ export declare class Kebab extends React.Component<KebabProps, KebabState> {
42
42
  private getProps;
43
43
  state: KebabState;
44
44
  private globalObject;
45
+ private emotion;
45
46
  private cx;
46
47
  private styles;
47
48
  private theme;
@@ -79,7 +79,7 @@ var Kebab = /** @class */ (function (_super) {
79
79
  captionProps.toggleMenu();
80
80
  }
81
81
  };
82
- return (React.createElement("span", { role: "button", "data-tid": KebabDataTids.caption, tabIndex: disabled ? -1 : 0, onClick: handleCaptionClick, onKeyDown: handleCaptionKeyDown, onFocus: _this.handleFocus, onBlur: _this.handleBlur, className: _this.cx(_this.styles.kebab(), size === 'small' && _this.styles.kebabSmall(), size === 'medium' && _this.styles.kebabMedium(), size === 'large' && _this.styles.kebabLarge(), captionProps.opened && _this.styles.opened(), disabled && _this.styles.disabled(), _this.state.focusedByTab && _this.styles.focused()), "aria-describedby": _this.props['aria-describedby'] }, _this.renderIcon()));
82
+ return (React.createElement("span", { role: "button", "data-tid": KebabDataTids.caption, tabIndex: disabled ? -1 : 0, onClick: handleCaptionClick, onKeyDown: handleCaptionKeyDown, onFocus: _this.handleFocus, onBlur: _this.handleBlur, className: _this.cx(_this.styles.kebab(_this.theme), size === 'small' && _this.styles.kebabSmall(_this.theme), size === 'medium' && _this.styles.kebabMedium(_this.theme), size === 'large' && _this.styles.kebabLarge(_this.theme), captionProps.opened && _this.styles.opened(_this.theme), disabled && _this.styles.disabled(), _this.state.focusedByTab && _this.styles.focused(_this.theme)), "aria-describedby": _this.props['aria-describedby'] }, _this.renderIcon()));
83
83
  };
84
84
  _this.handleCaptionKeyDown = function (e, openMenu) {
85
85
  if (someKeys(isKeyEnter, isKeySpace, isKeyArrowVertical)(e)) {
@@ -122,7 +122,7 @@ var Kebab = /** @class */ (function (_super) {
122
122
  };
123
123
  Kebab.prototype.render = function () {
124
124
  var _this = this;
125
- this.styles = getStyles();
125
+ this.styles = getStyles(this.emotion);
126
126
  return (React.createElement(ThemeContext.Consumer, null, function (theme) {
127
127
  _this.theme = theme;
128
128
  return (React.createElement(ThemeContext.Provider, { value: ThemeFactory.create({