@skbkontur/react-ui 0.0.0-30619a873c → 0.0.0-32550fb571

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 (935) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
  3. package/cjs/components/Button/Button.d.ts +0 -1
  4. package/cjs/components/Button/Button.js +2 -2
  5. package/cjs/components/Button/Button.js.map +1 -1
  6. package/cjs/components/Button/__creevey__/Button.creevey.mts +251 -0
  7. package/cjs/components/Calendar/DayCellView.styles.js +1 -17
  8. package/cjs/components/Calendar/DayCellView.styles.js.map +1 -1
  9. package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
  10. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
  11. package/cjs/components/ComboBox/ComboBox.d.ts +12 -3
  12. package/cjs/components/ComboBox/ComboBox.js +18 -2
  13. package/cjs/components/ComboBox/ComboBox.js.map +1 -1
  14. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
  15. package/cjs/components/CurrencyInput/CurrencyInput.d.ts +1 -1
  16. package/cjs/components/CurrencyInput/CurrencyInput.js.map +1 -1
  17. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
  18. package/cjs/components/DateInput/DateInput.d.ts +2 -2
  19. package/cjs/components/DateInput/DateInput.js +7 -1
  20. package/cjs/components/DateInput/DateInput.js.map +1 -1
  21. package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
  22. package/cjs/components/DatePicker/DatePicker.d.ts +10 -1
  23. package/cjs/components/DatePicker/DatePicker.js +37 -4
  24. package/cjs/components/DatePicker/DatePicker.js.map +1 -1
  25. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
  26. package/cjs/components/Dropdown/Dropdown.d.ts +4 -2
  27. package/cjs/components/Dropdown/Dropdown.js +12 -8
  28. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  29. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
  30. package/cjs/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  31. package/cjs/components/DropdownMenu/DropdownMenu.js +5 -1
  32. package/cjs/components/DropdownMenu/DropdownMenu.js.map +1 -1
  33. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
  34. package/cjs/components/FxInput/FxInput.d.ts +2 -0
  35. package/cjs/components/FxInput/FxInput.js +7 -1
  36. package/cjs/components/FxInput/FxInput.js.map +1 -1
  37. package/cjs/components/FxInput/FxInputRestoreBtn.d.ts +2 -0
  38. package/cjs/components/FxInput/FxInputRestoreBtn.js +5 -1
  39. package/cjs/components/FxInput/FxInputRestoreBtn.js.map +1 -1
  40. package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
  41. package/cjs/components/GlobalLoader/GlobalLoader.d.ts +1 -0
  42. package/cjs/components/GlobalLoader/GlobalLoader.js +6 -2
  43. package/cjs/components/GlobalLoader/GlobalLoader.js.map +1 -1
  44. package/cjs/components/Group/Group.js +24 -7
  45. package/cjs/components/Group/Group.js.map +1 -1
  46. package/cjs/components/Group/__creevey__/Group.creevey.mts +19 -0
  47. package/cjs/components/Hint/__creevey__/Hint.creevey.mts +68 -0
  48. package/cjs/components/Input/Input.d.ts +23 -2
  49. package/cjs/components/Input/Input.js +135 -19
  50. package/cjs/components/Input/Input.js.map +1 -1
  51. package/cjs/components/Input/__creevey__/Input.creevey.mts +239 -0
  52. package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
  53. package/cjs/components/Link/Link.js +26 -9
  54. package/cjs/components/Link/Link.js.map +1 -1
  55. package/cjs/components/Link/Link.styles.d.ts +4 -4
  56. package/cjs/components/Link/Link.styles.js +4 -5
  57. package/cjs/components/Link/Link.styles.js.map +1 -1
  58. package/cjs/components/Link/__creevey__/Link.creevey.mts +162 -0
  59. package/cjs/components/Loader/__creevey__/Loader.creevey.mts +35 -0
  60. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +78 -70
  61. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
  62. package/cjs/components/MaskedInput/MaskedInput.d.ts +1 -1
  63. package/cjs/components/MaskedInput/MaskedInput.js +3 -0
  64. package/cjs/components/MaskedInput/MaskedInput.js.map +1 -1
  65. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
  66. package/cjs/components/MenuItem/MenuItem.js +23 -23
  67. package/cjs/components/MenuItem/MenuItem.js.map +1 -1
  68. package/cjs/components/MiniModal/__docs__/MiniModalBody.mdx +3 -1
  69. package/cjs/components/MiniModal/__docs__/MiniModalFooter.mdx +3 -1
  70. package/cjs/components/MiniModal/__docs__/MiniModalHeader.mdx +4 -1
  71. package/cjs/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  72. package/cjs/components/Modal/Modal.js +7 -10
  73. package/cjs/components/Modal/Modal.js.map +1 -1
  74. package/cjs/components/Modal/Modal.styles.d.ts +4 -1
  75. package/cjs/components/Modal/Modal.styles.js +68 -31
  76. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  77. package/cjs/components/Modal/ModalClose.js +7 -2
  78. package/cjs/components/Modal/ModalClose.js.map +1 -1
  79. package/cjs/components/Modal/ModalContext.d.ts +3 -3
  80. package/cjs/components/Modal/ModalContext.js.map +1 -1
  81. package/cjs/components/Modal/ModalFooter.js +2 -2
  82. package/cjs/components/Modal/ModalFooter.js.map +1 -1
  83. package/cjs/components/Modal/ModalHeader.js +1 -1
  84. package/cjs/components/Modal/ModalHeader.js.map +1 -1
  85. package/cjs/components/Modal/__creevey__/Modal.creevey.mts +295 -0
  86. package/cjs/components/Paging/__creevey__/Paging.creevey.mts +97 -0
  87. package/cjs/components/PasswordInput/PasswordInput.d.ts +7 -3
  88. package/cjs/components/PasswordInput/PasswordInput.js +35 -9
  89. package/cjs/components/PasswordInput/PasswordInput.js.map +1 -1
  90. package/cjs/components/PasswordInput/PasswordInput.styles.js +2 -1
  91. package/cjs/components/PasswordInput/PasswordInput.styles.js.map +1 -1
  92. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +46 -0
  93. package/cjs/components/Radio/__creevey__/Radio.creevey.mts +28 -0
  94. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
  95. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
  96. package/cjs/components/Select/Select.d.ts +3 -6
  97. package/cjs/components/Select/Select.js +11 -10
  98. package/cjs/components/Select/Select.js.map +1 -1
  99. package/cjs/components/Select/__creevey__/Select.creevey.mts +293 -0
  100. package/cjs/components/Select/tids.d.ts +5 -0
  101. package/cjs/components/Select/tids.js +5 -0
  102. package/cjs/components/Select/tids.js.map +1 -0
  103. package/cjs/components/SidePage/SidePage.d.ts +1 -0
  104. package/cjs/components/SidePage/SidePage.js +12 -1
  105. package/cjs/components/SidePage/SidePage.js.map +1 -1
  106. package/cjs/components/SidePage/SidePage.styles.d.ts +8 -1
  107. package/cjs/components/SidePage/SidePage.styles.js +83 -26
  108. package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
  109. package/cjs/components/SidePage/SidePageCloseButton.d.ts +6 -1
  110. package/cjs/components/SidePage/SidePageCloseButton.js +14 -2
  111. package/cjs/components/SidePage/SidePageCloseButton.js.map +1 -1
  112. package/cjs/components/SidePage/SidePageHeader.d.ts +0 -1
  113. package/cjs/components/SidePage/SidePageHeader.js +11 -7
  114. package/cjs/components/SidePage/SidePageHeader.js.map +1 -1
  115. package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +421 -0
  116. package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
  117. package/cjs/components/Switcher/Switcher.js +2 -2
  118. package/cjs/components/Switcher/Switcher.js.map +1 -1
  119. package/cjs/components/Switcher/Switcher.styles.d.ts +1 -0
  120. package/cjs/components/Switcher/Switcher.styles.js +20 -1
  121. package/cjs/components/Switcher/Switcher.styles.js.map +1 -1
  122. package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
  123. package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
  124. package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
  125. package/cjs/components/Toast/Toast.d.ts +6 -2
  126. package/cjs/components/Toast/Toast.js +9 -2
  127. package/cjs/components/Toast/Toast.js.map +1 -1
  128. package/cjs/components/Toast/ToastStatic.d.ts +2 -2
  129. package/cjs/components/Toast/ToastStatic.js +15 -5
  130. package/cjs/components/Toast/ToastStatic.js.map +1 -1
  131. package/cjs/components/Toast/ToastView.d.ts +1 -0
  132. package/cjs/components/Toast/ToastView.js +4 -2
  133. package/cjs/components/Toast/ToastView.js.map +1 -1
  134. package/cjs/components/Toast/ToastView.styles.js +4 -4
  135. package/cjs/components/Toast/ToastView.styles.js.map +1 -1
  136. package/cjs/components/Toast/__creevey__/Toast.creevey.mts +77 -0
  137. package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
  138. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
  139. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
  140. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
  141. package/cjs/index.d.ts +0 -3
  142. package/cjs/index.js +0 -3
  143. package/cjs/index.js.map +1 -1
  144. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.d.ts +9 -0
  145. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js +72 -0
  146. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -0
  147. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -0
  148. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.js +51 -0
  149. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -0
  150. package/cjs/internal/ClearCrossIcon/CrossIcon.d.ts +3 -0
  151. package/cjs/internal/ClearCrossIcon/CrossIcon.js +15 -0
  152. package/cjs/internal/ClearCrossIcon/CrossIcon.js.map +1 -0
  153. package/cjs/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +44 -0
  154. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
  155. package/cjs/internal/CustomComboBox/ComboBoxView.d.ts +6 -2
  156. package/cjs/internal/CustomComboBox/ComboBoxView.js +13 -3
  157. package/cjs/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  158. package/cjs/internal/CustomComboBox/CustomComboBox.d.ts +7 -5
  159. package/cjs/internal/CustomComboBox/CustomComboBox.js +20 -9
  160. package/cjs/internal/CustomComboBox/CustomComboBox.js.map +1 -1
  161. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.d.ts +4 -0
  162. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js +13 -1
  163. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js.map +1 -1
  164. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
  165. package/cjs/internal/CustomComboBox/tids.d.ts +3 -0
  166. package/cjs/internal/CustomComboBox/tids.js +3 -0
  167. package/cjs/internal/CustomComboBox/tids.js.map +1 -0
  168. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
  169. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
  170. package/cjs/internal/InputLikeText/InputLikeText.d.ts +7 -2
  171. package/cjs/internal/InputLikeText/InputLikeText.js +90 -43
  172. package/cjs/internal/InputLikeText/InputLikeText.js.map +1 -1
  173. package/cjs/internal/Menu/Menu.d.ts +2 -1
  174. package/cjs/internal/Menu/Menu.js +4 -2
  175. package/cjs/internal/Menu/Menu.js.map +1 -1
  176. package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
  177. package/cjs/internal/Popup/Popup.js +4 -6
  178. package/cjs/internal/Popup/Popup.js.map +1 -1
  179. package/cjs/internal/PopupMenu/PopupMenu.d.ts +5 -5
  180. package/cjs/internal/PopupMenu/PopupMenu.js +15 -11
  181. package/cjs/internal/PopupMenu/PopupMenu.js.map +1 -1
  182. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
  183. package/cjs/internal/PopupMenu/tids.d.ts +4 -0
  184. package/cjs/internal/PopupMenu/tids.js +4 -0
  185. package/cjs/internal/PopupMenu/tids.js.map +1 -0
  186. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +36 -0
  187. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +4 -0
  188. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
  189. package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  190. package/cjs/internal/ThemeShowcase/VariablesCollector.js +2 -0
  191. package/cjs/internal/ThemeShowcase/VariablesCollector.js.map +1 -1
  192. package/cjs/internal/ZIndex/ZIndex.d.ts +1 -1
  193. package/cjs/internal/ZIndex/ZIndex.js +18 -6
  194. package/cjs/internal/ZIndex/ZIndex.js.map +1 -1
  195. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
  196. package/cjs/internal/themes/BasicLightTheme.d.ts +5 -1209
  197. package/cjs/internal/themes/BasicLightTheme.js +2 -2530
  198. package/cjs/internal/themes/BasicLightTheme.js.map +1 -1
  199. package/cjs/internal/themes/BasicTheme.d.ts +1231 -0
  200. package/cjs/internal/themes/BasicTheme.js +2587 -0
  201. package/cjs/internal/themes/BasicTheme.js.map +1 -0
  202. package/cjs/internal/themes/DarkTheme5_0.d.ts +1 -0
  203. package/cjs/internal/themes/DarkTheme5_0.js +562 -0
  204. package/cjs/internal/themes/DarkTheme5_0.js.map +1 -0
  205. package/cjs/internal/themes/DarkTheme5_1.d.ts +1 -0
  206. package/cjs/internal/themes/DarkTheme5_1.js +41 -0
  207. package/cjs/internal/themes/DarkTheme5_1.js.map +1 -0
  208. package/cjs/internal/themes/LightTheme5_0.d.ts +1 -0
  209. package/cjs/internal/themes/LightTheme5_0.js +9 -0
  210. package/cjs/internal/themes/LightTheme5_0.js.map +1 -0
  211. package/cjs/internal/themes/LightTheme5_1.d.ts +1 -0
  212. package/cjs/internal/themes/LightTheme5_1.js +41 -0
  213. package/cjs/internal/themes/LightTheme5_1.js.map +1 -0
  214. package/cjs/lib/ModalStack.d.ts +1 -0
  215. package/cjs/lib/ModalStack.js +6 -4
  216. package/cjs/lib/ModalStack.js.map +1 -1
  217. package/cjs/lib/delay.d.ts +1 -0
  218. package/cjs/lib/delay.js +3 -0
  219. package/cjs/lib/delay.js.map +1 -0
  220. package/cjs/lib/mergeRefs.d.ts +23 -0
  221. package/cjs/lib/mergeRefs.js +76 -0
  222. package/cjs/lib/mergeRefs.js.map +1 -0
  223. package/cjs/lib/theming/Theme.d.ts +4 -3
  224. package/cjs/lib/theming/Theme.js +1 -1
  225. package/cjs/lib/theming/Theme.js.map +1 -1
  226. package/cjs/lib/theming/ThemeContext.d.ts +1 -1
  227. package/cjs/lib/theming/ThemeContext.js +2 -2
  228. package/cjs/lib/theming/ThemeContext.js.map +1 -1
  229. package/cjs/lib/theming/ThemeFactory.d.ts +9 -0
  230. package/cjs/lib/theming/ThemeFactory.js +28 -9
  231. package/cjs/lib/theming/ThemeFactory.js.map +1 -1
  232. package/cjs/lib/theming/ThemeHelpers.d.ts +55 -8
  233. package/cjs/lib/theming/ThemeHelpers.js +94 -22
  234. package/cjs/lib/theming/ThemeHelpers.js.map +1 -1
  235. package/cjs/lib/theming/ThemeVersions.d.ts +25 -0
  236. package/cjs/lib/theming/ThemeVersions.js +58 -0
  237. package/cjs/lib/theming/ThemeVersions.js.map +1 -0
  238. package/cjs/lib/theming/themes/DarkTheme.d.ts +3 -1
  239. package/cjs/lib/theming/themes/DarkTheme.js +6 -4
  240. package/cjs/lib/theming/themes/DarkTheme.js.map +1 -1
  241. package/cjs/lib/theming/themes/LightTheme.d.ts +3 -1
  242. package/cjs/lib/theming/themes/LightTheme.js +6 -4
  243. package/cjs/lib/theming/themes/LightTheme.js.map +1 -1
  244. package/cjs/lib/theming/themes/LightThemeMobile.d.ts +1 -1
  245. package/cjs/lib/theming/useTheme.d.ts +1 -1
  246. package/cjs/lib/typeGuards.d.ts +1 -0
  247. package/cjs/lib/typeGuards.js +6 -0
  248. package/cjs/lib/typeGuards.js.map +1 -0
  249. package/cjs/lib/utils.d.ts +21 -17
  250. package/cjs/lib/utils.js +20 -23
  251. package/cjs/lib/utils.js.map +1 -1
  252. package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
  253. package/components/Button/Button/Button.js +2 -3
  254. package/components/Button/Button/Button.js.map +1 -1
  255. package/components/Button/Button.d.ts +0 -1
  256. package/components/Button/__creevey__/Button.creevey.mts +251 -0
  257. package/components/Calendar/DayCellView.styles/DayCellView.styles.js +1 -1
  258. package/components/Calendar/DayCellView.styles/DayCellView.styles.js.map +1 -1
  259. package/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
  260. package/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
  261. package/components/ComboBox/ComboBox/ComboBox.js +4 -3
  262. package/components/ComboBox/ComboBox/ComboBox.js.map +1 -1
  263. package/components/ComboBox/ComboBox.d.ts +12 -3
  264. package/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
  265. package/components/CurrencyInput/CurrencyInput/CurrencyInput.js.map +1 -1
  266. package/components/CurrencyInput/CurrencyInput.d.ts +1 -1
  267. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
  268. package/components/DateInput/DateInput/DateInput.js +4 -1
  269. package/components/DateInput/DateInput/DateInput.js.map +1 -1
  270. package/components/DateInput/DateInput.d.ts +2 -2
  271. package/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
  272. package/components/DatePicker/DatePicker/DatePicker.js +29 -5
  273. package/components/DatePicker/DatePicker/DatePicker.js.map +1 -1
  274. package/components/DatePicker/DatePicker.d.ts +10 -1
  275. package/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
  276. package/components/Dropdown/Dropdown/Dropdown.js +12 -11
  277. package/components/Dropdown/Dropdown/Dropdown.js.map +1 -1
  278. package/components/Dropdown/Dropdown.d.ts +4 -2
  279. package/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
  280. package/components/DropdownMenu/DropdownMenu/DropdownMenu.js +1 -0
  281. package/components/DropdownMenu/DropdownMenu/DropdownMenu.js.map +1 -1
  282. package/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  283. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
  284. package/components/FxInput/FxInput/FxInput.js +3 -2
  285. package/components/FxInput/FxInput/FxInput.js.map +1 -1
  286. package/components/FxInput/FxInput.d.ts +2 -0
  287. package/components/FxInput/FxInputRestoreBtn/FxInputRestoreBtn.js +1 -1
  288. package/components/FxInput/FxInputRestoreBtn/FxInputRestoreBtn.js.map +1 -1
  289. package/components/FxInput/FxInputRestoreBtn.d.ts +2 -0
  290. package/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
  291. package/components/GlobalLoader/GlobalLoader/GlobalLoader.js +13 -5
  292. package/components/GlobalLoader/GlobalLoader/GlobalLoader.js.map +1 -1
  293. package/components/GlobalLoader/GlobalLoader.d.ts +1 -0
  294. package/components/Group/Group/Group.js +4 -10
  295. package/components/Group/Group/Group.js.map +1 -1
  296. package/components/Group/__creevey__/Group.creevey.mts +19 -0
  297. package/components/Hint/__creevey__/Hint.creevey.mts +68 -0
  298. package/components/Input/Input/Input.js +124 -15
  299. package/components/Input/Input/Input.js.map +1 -1
  300. package/components/Input/Input.d.ts +23 -2
  301. package/components/Input/__creevey__/Input.creevey.mts +239 -0
  302. package/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
  303. package/components/Link/Link/Link.js +25 -1
  304. package/components/Link/Link/Link.js.map +1 -1
  305. package/components/Link/Link.styles/Link.styles.js +4 -4
  306. package/components/Link/Link.styles/Link.styles.js.map +1 -1
  307. package/components/Link/Link.styles.d.ts +4 -4
  308. package/components/Link/__creevey__/Link.creevey.mts +162 -0
  309. package/components/Loader/__creevey__/Loader.creevey.mts +35 -0
  310. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js +54 -55
  311. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js.map +1 -1
  312. package/components/MaskedInput/MaskedInput/MaskedInput.js.map +1 -1
  313. package/components/MaskedInput/MaskedInput.d.ts +1 -1
  314. package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
  315. package/components/MenuItem/MenuItem/MenuItem.js +41 -35
  316. package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
  317. package/components/MiniModal/__docs__/MiniModalBody.mdx +3 -1
  318. package/components/MiniModal/__docs__/MiniModalFooter.mdx +3 -1
  319. package/components/MiniModal/__docs__/MiniModalHeader.mdx +4 -1
  320. package/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  321. package/components/Modal/Modal/Modal.js +4 -16
  322. package/components/Modal/Modal/Modal.js.map +1 -1
  323. package/components/Modal/Modal.styles/Modal.styles.js +40 -31
  324. package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
  325. package/components/Modal/Modal.styles.d.ts +4 -1
  326. package/components/Modal/ModalClose/ModalClose.js +3 -1
  327. package/components/Modal/ModalClose/ModalClose.js.map +1 -1
  328. package/components/Modal/ModalContext/ModalContext.js.map +1 -1
  329. package/components/Modal/ModalContext.d.ts +3 -3
  330. package/components/Modal/ModalFooter/ModalFooter.js +2 -2
  331. package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  332. package/components/Modal/ModalHeader/ModalHeader.js +1 -1
  333. package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
  334. package/components/Modal/__creevey__/Modal.creevey.mts +295 -0
  335. package/components/Paging/__creevey__/Paging.creevey.mts +97 -0
  336. package/components/PasswordInput/PasswordInput/PasswordInput.js +30 -10
  337. package/components/PasswordInput/PasswordInput/PasswordInput.js.map +1 -1
  338. package/components/PasswordInput/PasswordInput.d.ts +7 -3
  339. package/components/PasswordInput/PasswordInput.styles/PasswordInput.styles.js +1 -1
  340. package/components/PasswordInput/PasswordInput.styles/PasswordInput.styles.js.map +1 -1
  341. package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +46 -0
  342. package/components/Radio/__creevey__/Radio.creevey.mts +28 -0
  343. package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
  344. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
  345. package/components/Select/Select/Select.js +3 -5
  346. package/components/Select/Select/Select.js.map +1 -1
  347. package/components/Select/Select.d.ts +3 -6
  348. package/components/Select/__creevey__/Select.creevey.mts +293 -0
  349. package/components/Select/tids/package.json +6 -0
  350. package/components/Select/tids/tids.js +5 -0
  351. package/components/Select/tids/tids.js.map +1 -0
  352. package/components/Select/tids.d.ts +5 -0
  353. package/components/SidePage/SidePage/SidePage.js +20 -8
  354. package/components/SidePage/SidePage/SidePage.js.map +1 -1
  355. package/components/SidePage/SidePage.d.ts +1 -0
  356. package/components/SidePage/SidePage.styles/SidePage.styles.js +48 -26
  357. package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
  358. package/components/SidePage/SidePage.styles.d.ts +8 -1
  359. package/components/SidePage/SidePageCloseButton/SidePageCloseButton.js +6 -2
  360. package/components/SidePage/SidePageCloseButton/SidePageCloseButton.js.map +1 -1
  361. package/components/SidePage/SidePageCloseButton.d.ts +6 -1
  362. package/components/SidePage/SidePageHeader/SidePageHeader.js +13 -5
  363. package/components/SidePage/SidePageHeader/SidePageHeader.js.map +1 -1
  364. package/components/SidePage/SidePageHeader.d.ts +0 -1
  365. package/components/SidePage/__creevey__/SidePage.creevey.mts +421 -0
  366. package/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
  367. package/components/Switcher/Switcher/Switcher.js +10 -6
  368. package/components/Switcher/Switcher/Switcher.js.map +1 -1
  369. package/components/Switcher/Switcher.styles/Switcher.styles.js +4 -1
  370. package/components/Switcher/Switcher.styles/Switcher.styles.js.map +1 -1
  371. package/components/Switcher/Switcher.styles.d.ts +1 -0
  372. package/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
  373. package/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
  374. package/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
  375. package/components/Toast/Toast/Toast.js +14 -9
  376. package/components/Toast/Toast/Toast.js.map +1 -1
  377. package/components/Toast/Toast.d.ts +6 -2
  378. package/components/Toast/ToastStatic/ToastStatic.js +5 -5
  379. package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
  380. package/components/Toast/ToastStatic.d.ts +2 -2
  381. package/components/Toast/ToastView/ToastView.js +2 -1
  382. package/components/Toast/ToastView/ToastView.js.map +1 -1
  383. package/components/Toast/ToastView.d.ts +1 -0
  384. package/components/Toast/ToastView.styles/ToastView.styles.js +2 -2
  385. package/components/Toast/ToastView.styles/ToastView.styles.js.map +1 -1
  386. package/components/Toast/__creevey__/Toast.creevey.mts +77 -0
  387. package/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
  388. package/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
  389. package/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
  390. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
  391. package/index.d.ts +0 -3
  392. package/index.js +0 -3
  393. package/index.js.map +1 -1
  394. package/internal/ClearCrossIcon/ClearCrossIcon/ClearCrossIcon.js +63 -0
  395. package/internal/ClearCrossIcon/ClearCrossIcon/ClearCrossIcon.js.map +1 -0
  396. package/internal/ClearCrossIcon/ClearCrossIcon/package.json +6 -0
  397. package/internal/ClearCrossIcon/ClearCrossIcon.d.ts +9 -0
  398. package/internal/ClearCrossIcon/ClearCrossIcon.styles/ClearCrossIcon.styles.js +21 -0
  399. package/internal/ClearCrossIcon/ClearCrossIcon.styles/ClearCrossIcon.styles.js.map +1 -0
  400. package/internal/ClearCrossIcon/ClearCrossIcon.styles/package.json +6 -0
  401. package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -0
  402. package/internal/ClearCrossIcon/CrossIcon/CrossIcon.js +22 -0
  403. package/internal/ClearCrossIcon/CrossIcon/CrossIcon.js.map +1 -0
  404. package/internal/ClearCrossIcon/CrossIcon/package.json +6 -0
  405. package/internal/ClearCrossIcon/CrossIcon.d.ts +3 -0
  406. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +44 -0
  407. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
  408. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js +12 -5
  409. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js.map +1 -1
  410. package/internal/CustomComboBox/ComboBoxView.d.ts +6 -2
  411. package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js +17 -5
  412. package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js.map +1 -1
  413. package/internal/CustomComboBox/CustomComboBox.d.ts +7 -5
  414. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js +15 -1
  415. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js.map +1 -1
  416. package/internal/CustomComboBox/CustomComboBoxReducer.d.ts +4 -0
  417. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
  418. package/internal/CustomComboBox/tids/package.json +6 -0
  419. package/internal/CustomComboBox/tids/tids.js +3 -0
  420. package/internal/CustomComboBox/tids/tids.js.map +1 -0
  421. package/internal/CustomComboBox/tids.d.ts +3 -0
  422. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
  423. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
  424. package/internal/InputLikeText/InputLikeText/InputLikeText.js +65 -9
  425. package/internal/InputLikeText/InputLikeText/InputLikeText.js.map +1 -1
  426. package/internal/InputLikeText/InputLikeText.d.ts +7 -2
  427. package/internal/Menu/Menu/Menu.js +6 -3
  428. package/internal/Menu/Menu/Menu.js.map +1 -1
  429. package/internal/Menu/Menu.d.ts +2 -1
  430. package/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
  431. package/internal/Popup/Popup/Popup.js +15 -20
  432. package/internal/Popup/Popup/Popup.js.map +1 -1
  433. package/internal/PopupMenu/PopupMenu/PopupMenu.js +4 -5
  434. package/internal/PopupMenu/PopupMenu/PopupMenu.js.map +1 -1
  435. package/internal/PopupMenu/PopupMenu.d.ts +5 -5
  436. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
  437. package/internal/PopupMenu/tids/package.json +6 -0
  438. package/internal/PopupMenu/tids/tids.js +4 -0
  439. package/internal/PopupMenu/tids/tids.js.map +1 -0
  440. package/internal/PopupMenu/tids.d.ts +4 -0
  441. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +36 -0
  442. package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +4 -0
  443. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
  444. package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js +2 -0
  445. package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js.map +1 -1
  446. package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  447. package/internal/ZIndex/ZIndex/ZIndex.js +12 -14
  448. package/internal/ZIndex/ZIndex/ZIndex.js.map +1 -1
  449. package/internal/ZIndex/ZIndex.d.ts +1 -1
  450. package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
  451. package/internal/themes/BasicLightTheme/BasicLightTheme.js +5 -3351
  452. package/internal/themes/BasicLightTheme/BasicLightTheme.js.map +1 -1
  453. package/internal/themes/BasicLightTheme.d.ts +5 -1209
  454. package/internal/themes/BasicTheme/BasicTheme.js +3432 -0
  455. package/internal/themes/BasicTheme/BasicTheme.js.map +1 -0
  456. package/internal/themes/BasicTheme/package.json +6 -0
  457. package/internal/themes/BasicTheme.d.ts +1231 -0
  458. package/internal/themes/DarkTheme5_0/DarkTheme5_0.js +409 -0
  459. package/internal/themes/DarkTheme5_0/DarkTheme5_0.js.map +1 -0
  460. package/internal/themes/DarkTheme5_0/package.json +6 -0
  461. package/internal/themes/DarkTheme5_0.d.ts +1 -0
  462. package/internal/themes/DarkTheme5_1/DarkTheme5_1.js +52 -0
  463. package/internal/themes/DarkTheme5_1/DarkTheme5_1.js.map +1 -0
  464. package/internal/themes/DarkTheme5_1/package.json +6 -0
  465. package/internal/themes/DarkTheme5_1.d.ts +1 -0
  466. package/internal/themes/LightTheme5_0/LightTheme5_0.js +14 -0
  467. package/internal/themes/LightTheme5_0/LightTheme5_0.js.map +1 -0
  468. package/internal/themes/LightTheme5_0/package.json +6 -0
  469. package/internal/themes/LightTheme5_0.d.ts +1 -0
  470. package/internal/themes/LightTheme5_1/LightTheme5_1.js +52 -0
  471. package/internal/themes/LightTheme5_1/LightTheme5_1.js.map +1 -0
  472. package/internal/themes/LightTheme5_1/package.json +6 -0
  473. package/internal/themes/LightTheme5_1.d.ts +1 -0
  474. package/lib/ModalStack/ModalStack.js +8 -8
  475. package/lib/ModalStack/ModalStack.js.map +1 -1
  476. package/lib/ModalStack.d.ts +1 -0
  477. package/lib/delay/delay.js +6 -0
  478. package/lib/delay/delay.js.map +1 -0
  479. package/lib/delay/package.json +6 -0
  480. package/lib/delay.d.ts +1 -0
  481. package/lib/mergeRefs/mergeRefs.js +68 -0
  482. package/lib/mergeRefs/mergeRefs.js.map +1 -0
  483. package/lib/mergeRefs/package.json +6 -0
  484. package/lib/mergeRefs.d.ts +23 -0
  485. package/lib/theming/Theme/Theme.js +2 -1
  486. package/lib/theming/Theme/Theme.js.map +1 -1
  487. package/lib/theming/Theme.d.ts +4 -3
  488. package/lib/theming/ThemeContext/ThemeContext.js +2 -2
  489. package/lib/theming/ThemeContext/ThemeContext.js.map +1 -1
  490. package/lib/theming/ThemeContext.d.ts +1 -1
  491. package/lib/theming/ThemeFactory/ThemeFactory.js +21 -7
  492. package/lib/theming/ThemeFactory/ThemeFactory.js.map +1 -1
  493. package/lib/theming/ThemeFactory.d.ts +9 -0
  494. package/lib/theming/ThemeHelpers/ThemeHelpers.js +85 -18
  495. package/lib/theming/ThemeHelpers/ThemeHelpers.js.map +1 -1
  496. package/lib/theming/ThemeHelpers.d.ts +55 -8
  497. package/lib/theming/ThemeVersions/ThemeVersions.js +50 -0
  498. package/lib/theming/ThemeVersions/ThemeVersions.js.map +1 -0
  499. package/lib/theming/ThemeVersions/package.json +6 -0
  500. package/lib/theming/ThemeVersions.d.ts +25 -0
  501. package/lib/theming/themes/DarkTheme/DarkTheme.js +5 -4
  502. package/lib/theming/themes/DarkTheme/DarkTheme.js.map +1 -1
  503. package/lib/theming/themes/DarkTheme.d.ts +3 -1
  504. package/lib/theming/themes/LightTheme/LightTheme.js +5 -4
  505. package/lib/theming/themes/LightTheme/LightTheme.js.map +1 -1
  506. package/lib/theming/themes/LightTheme.d.ts +3 -1
  507. package/lib/theming/themes/LightThemeMobile.d.ts +1 -1
  508. package/lib/theming/useTheme.d.ts +1 -1
  509. package/lib/typeGuards/package.json +6 -0
  510. package/lib/typeGuards/typeGuards.js +5 -0
  511. package/lib/typeGuards/typeGuards.js.map +1 -0
  512. package/lib/typeGuards.d.ts +1 -0
  513. package/lib/utils/utils.js +13 -21
  514. package/lib/utils/utils.js.map +1 -1
  515. package/lib/utils.d.ts +21 -17
  516. package/package.json +7 -6
  517. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js +0 -239
  518. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js.map +0 -1
  519. package/cjs/components/Button/__creevey__/Button.creevey.js +0 -250
  520. package/cjs/components/Button/__creevey__/Button.creevey.js.map +0 -1
  521. package/cjs/components/Calendar/__creevey__/Calendar.creevey.js +0 -74
  522. package/cjs/components/Calendar/__creevey__/Calendar.creevey.js.map +0 -1
  523. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js +0 -242
  524. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js.map +0 -1
  525. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js +0 -540
  526. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js.map +0 -1
  527. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js +0 -81
  528. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js.map +0 -1
  529. package/cjs/components/DateInput/__creevey__/DateInput.creevey.js +0 -155
  530. package/cjs/components/DateInput/__creevey__/DateInput.creevey.js.map +0 -1
  531. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js +0 -209
  532. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js.map +0 -1
  533. package/cjs/components/DateRangePicker/DateRangePicker.d.ts +0 -27
  534. package/cjs/components/DateRangePicker/DateRangePicker.js +0 -481
  535. package/cjs/components/DateRangePicker/DateRangePicker.js.map +0 -1
  536. package/cjs/components/DateRangePicker/DateRangePicker.md +0 -298
  537. package/cjs/components/DateRangePicker/DateRangePicker.styles.d.ts +0 -9
  538. package/cjs/components/DateRangePicker/DateRangePicker.styles.js +0 -42
  539. package/cjs/components/DateRangePicker/DateRangePicker.styles.js.map +0 -1
  540. package/cjs/components/DateRangePicker/DateRangePickerContext.d.ts +0 -28
  541. package/cjs/components/DateRangePicker/DateRangePickerContext.js +0 -33
  542. package/cjs/components/DateRangePicker/DateRangePickerContext.js.map +0 -1
  543. package/cjs/components/DateRangePicker/DateRangePickerField.d.ts +0 -7
  544. package/cjs/components/DateRangePicker/DateRangePickerField.js +0 -98
  545. package/cjs/components/DateRangePicker/DateRangePickerField.js.map +0 -1
  546. package/cjs/components/DateRangePicker/DateRangePickerSeparator.d.ts +0 -2
  547. package/cjs/components/DateRangePicker/DateRangePickerSeparator.js +0 -3
  548. package/cjs/components/DateRangePicker/DateRangePickerSeparator.js.map +0 -1
  549. package/cjs/components/DateRangePicker/DateRangePickerTheme.d.ts +0 -3
  550. package/cjs/components/DateRangePicker/DateRangePickerTheme.js +0 -30
  551. package/cjs/components/DateRangePicker/DateRangePickerTheme.js.map +0 -1
  552. package/cjs/components/DateRangePicker/MobileDateRangePicker.d.ts +0 -7
  553. package/cjs/components/DateRangePicker/MobileDateRangePicker.js +0 -59
  554. package/cjs/components/DateRangePicker/MobileDateRangePicker.js.map +0 -1
  555. package/cjs/components/DateRangePicker/MobileDateRangePicker.styles.d.ts +0 -4
  556. package/cjs/components/DateRangePicker/MobileDateRangePicker.styles.js +0 -19
  557. package/cjs/components/DateRangePicker/MobileDateRangePicker.styles.js.map +0 -1
  558. package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -109
  559. package/cjs/components/DateRangePicker/index.d.ts +0 -1
  560. package/cjs/components/DateRangePicker/index.js +0 -1
  561. package/cjs/components/DateRangePicker/index.js.map +0 -1
  562. package/cjs/components/DateRangePicker/locale/index.d.ts +0 -4
  563. package/cjs/components/DateRangePicker/locale/index.js +0 -12
  564. package/cjs/components/DateRangePicker/locale/index.js.map +0 -1
  565. package/cjs/components/DateRangePicker/locale/locales/en.d.ts +0 -2
  566. package/cjs/components/DateRangePicker/locale/locales/en.js +0 -7
  567. package/cjs/components/DateRangePicker/locale/locales/en.js.map +0 -1
  568. package/cjs/components/DateRangePicker/locale/locales/ru.d.ts +0 -2
  569. package/cjs/components/DateRangePicker/locale/locales/ru.js +0 -7
  570. package/cjs/components/DateRangePicker/locale/locales/ru.js.map +0 -1
  571. package/cjs/components/DateRangePicker/locale/types.d.ts +0 -5
  572. package/cjs/components/DateRangePicker/locale/types.js +0 -1
  573. package/cjs/components/DateRangePicker/locale/types.js.map +0 -1
  574. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js +0 -184
  575. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js.map +0 -1
  576. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js +0 -262
  577. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js.map +0 -1
  578. package/cjs/components/FxInput/__creevey__/FxInput.creevey.js +0 -21
  579. package/cjs/components/FxInput/__creevey__/FxInput.creevey.js.map +0 -1
  580. package/cjs/components/Group/__creevey__/Group.creevey.js +0 -19
  581. package/cjs/components/Group/__creevey__/Group.creevey.js.map +0 -1
  582. package/cjs/components/Hint/__creevey__/Hint.creevey.js +0 -68
  583. package/cjs/components/Hint/__creevey__/Hint.creevey.js.map +0 -1
  584. package/cjs/components/Input/__creevey__/Input.creevey.js +0 -239
  585. package/cjs/components/Input/__creevey__/Input.creevey.js.map +0 -1
  586. package/cjs/components/Kebab/__creevey__/Kebab.creevey.js +0 -146
  587. package/cjs/components/Kebab/__creevey__/Kebab.creevey.js.map +0 -1
  588. package/cjs/components/Link/__creevey__/Link.creevey.js +0 -161
  589. package/cjs/components/Link/__creevey__/Link.creevey.js.map +0 -1
  590. package/cjs/components/Loader/__creevey__/Loader.creevey.js +0 -34
  591. package/cjs/components/Loader/__creevey__/Loader.creevey.js.map +0 -1
  592. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js +0 -219
  593. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js.map +0 -1
  594. package/cjs/components/Modal/__creevey__/Modal.creevey.js +0 -258
  595. package/cjs/components/Modal/__creevey__/Modal.creevey.js.map +0 -1
  596. package/cjs/components/Paging/__creevey__/Paging.creevey.js +0 -97
  597. package/cjs/components/Paging/__creevey__/Paging.creevey.js.map +0 -1
  598. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js +0 -38
  599. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js.map +0 -1
  600. package/cjs/components/Radio/__creevey__/Radio.creevey.js +0 -27
  601. package/cjs/components/Radio/__creevey__/Radio.creevey.js.map +0 -1
  602. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js +0 -85
  603. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js.map +0 -1
  604. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js +0 -247
  605. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js.map +0 -1
  606. package/cjs/components/Select/__creevey__/Select.creevey.js +0 -284
  607. package/cjs/components/Select/__creevey__/Select.creevey.js.map +0 -1
  608. package/cjs/components/SidePage/__creevey__/SidePage.creevey.js +0 -313
  609. package/cjs/components/SidePage/__creevey__/SidePage.creevey.js.map +0 -1
  610. package/cjs/components/Sticky/__creevey__/Sticky.creevey.js +0 -98
  611. package/cjs/components/Sticky/__creevey__/Sticky.creevey.js.map +0 -1
  612. package/cjs/components/Switcher/__creevey__/Switcher.creevey.js +0 -24
  613. package/cjs/components/Switcher/__creevey__/Switcher.creevey.js.map +0 -1
  614. package/cjs/components/Tabs/__creevey__/Tabs.creevey.js +0 -238
  615. package/cjs/components/Tabs/__creevey__/Tabs.creevey.js.map +0 -1
  616. package/cjs/components/Textarea/__creevey__/Textarea.creevey.js +0 -176
  617. package/cjs/components/Textarea/__creevey__/Textarea.creevey.js.map +0 -1
  618. package/cjs/components/Toast/__creevey__/Toast.creevey.js +0 -54
  619. package/cjs/components/Toast/__creevey__/Toast.creevey.js.map +0 -1
  620. package/cjs/components/Toggle/__creevey__/Toggle.creevey.js +0 -87
  621. package/cjs/components/Toggle/__creevey__/Toggle.creevey.js.map +0 -1
  622. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js +0 -413
  623. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js.map +0 -1
  624. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js +0 -534
  625. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js.map +0 -1
  626. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js +0 -130
  627. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js.map +0 -1
  628. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js +0 -47
  629. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js.map +0 -1
  630. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js +0 -30
  631. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js.map +0 -1
  632. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js +0 -25
  633. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js.map +0 -1
  634. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js +0 -83
  635. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js.map +0 -1
  636. package/cjs/internal/Menu/__creevey__/Menu.creevey.js +0 -90
  637. package/cjs/internal/Menu/__creevey__/Menu.creevey.js.map +0 -1
  638. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js +0 -37
  639. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js.map +0 -1
  640. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js +0 -68
  641. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js.map +0 -1
  642. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js +0 -228
  643. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js.map +0 -1
  644. package/cjs/internal/themes/BasicDarkTheme.d.ts +0 -293
  645. package/cjs/internal/themes/BasicDarkTheme.js +0 -607
  646. package/cjs/internal/themes/BasicDarkTheme.js.map +0 -1
  647. package/cjs/lib/theming/themes/DarkTheme2022_0.d.ts +0 -1
  648. package/cjs/lib/theming/themes/DarkTheme2022_0.js +0 -5
  649. package/cjs/lib/theming/themes/DarkTheme2022_0.js.map +0 -1
  650. package/cjs/lib/theming/themes/LightTheme2022_0.d.ts +0 -1
  651. package/cjs/lib/theming/themes/LightTheme2022_0.js +0 -5
  652. package/cjs/lib/theming/themes/LightTheme2022_0.js.map +0 -1
  653. package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js +0 -506
  654. package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js.map +0 -1
  655. package/components/Autocomplete/__creevey__/Autocomplete.creevey/package.json +0 -6
  656. package/components/Button/__creevey__/Button.creevey/Button.creevey.js +0 -396
  657. package/components/Button/__creevey__/Button.creevey/Button.creevey.js.map +0 -1
  658. package/components/Button/__creevey__/Button.creevey/package.json +0 -6
  659. package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js +0 -138
  660. package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js.map +0 -1
  661. package/components/Calendar/__creevey__/Calendar.creevey/package.json +0 -6
  662. package/components/Calendar/__creevey__/Calendar.creevey.d.ts +0 -1
  663. package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js +0 -487
  664. package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js.map +0 -1
  665. package/components/Checkbox/__creevey__/Checkbox.creevey/package.json +0 -6
  666. package/components/Checkbox/__creevey__/Checkbox.creevey.d.ts +0 -1
  667. package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js +0 -1043
  668. package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js.map +0 -1
  669. package/components/ComboBox/__creevey__/ComboBox.creevey/package.json +0 -6
  670. package/components/ComboBox/__creevey__/ComboBox.creevey.d.ts +0 -1
  671. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js +0 -114
  672. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js.map +0 -1
  673. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/package.json +0 -6
  674. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts +0 -1
  675. package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js +0 -367
  676. package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js.map +0 -1
  677. package/components/DateInput/__creevey__/DateInput.creevey/package.json +0 -6
  678. package/components/DateInput/__creevey__/DateInput.creevey.d.ts +0 -1
  679. package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js +0 -395
  680. package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js.map +0 -1
  681. package/components/DatePicker/__creevey__/DatePicker.creevey/package.json +0 -6
  682. package/components/DatePicker/__creevey__/DatePicker.creevey.d.ts +0 -1
  683. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js +0 -365
  684. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js.map +0 -1
  685. package/components/DateRangePicker/DateRangePicker/package.json +0 -6
  686. package/components/DateRangePicker/DateRangePicker.d.ts +0 -27
  687. package/components/DateRangePicker/DateRangePicker.md +0 -298
  688. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js +0 -23
  689. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js.map +0 -1
  690. package/components/DateRangePicker/DateRangePicker.styles/package.json +0 -6
  691. package/components/DateRangePicker/DateRangePicker.styles.d.ts +0 -9
  692. package/components/DateRangePicker/DateRangePickerContext/DateRangePickerContext.js +0 -3
  693. package/components/DateRangePicker/DateRangePickerContext/DateRangePickerContext.js.map +0 -1
  694. package/components/DateRangePicker/DateRangePickerContext/package.json +0 -6
  695. package/components/DateRangePicker/DateRangePickerContext.d.ts +0 -28
  696. package/components/DateRangePicker/DateRangePickerField/DateRangePickerField.js +0 -86
  697. package/components/DateRangePicker/DateRangePickerField/DateRangePickerField.js.map +0 -1
  698. package/components/DateRangePicker/DateRangePickerField/package.json +0 -6
  699. package/components/DateRangePicker/DateRangePickerField.d.ts +0 -7
  700. package/components/DateRangePicker/DateRangePickerSeparator/DateRangePickerSeparator.js +0 -4
  701. package/components/DateRangePicker/DateRangePickerSeparator/DateRangePickerSeparator.js.map +0 -1
  702. package/components/DateRangePicker/DateRangePickerSeparator/package.json +0 -6
  703. package/components/DateRangePicker/DateRangePickerSeparator.d.ts +0 -2
  704. package/components/DateRangePicker/DateRangePickerTheme/DateRangePickerTheme.js +0 -21
  705. package/components/DateRangePicker/DateRangePickerTheme/DateRangePickerTheme.js.map +0 -1
  706. package/components/DateRangePicker/DateRangePickerTheme/package.json +0 -6
  707. package/components/DateRangePicker/DateRangePickerTheme.d.ts +0 -3
  708. package/components/DateRangePicker/MobileDateRangePicker/MobileDateRangePicker.js +0 -48
  709. package/components/DateRangePicker/MobileDateRangePicker/MobileDateRangePicker.js.map +0 -1
  710. package/components/DateRangePicker/MobileDateRangePicker/package.json +0 -6
  711. package/components/DateRangePicker/MobileDateRangePicker.d.ts +0 -7
  712. package/components/DateRangePicker/MobileDateRangePicker.styles/MobileDateRangePicker.styles.js +0 -11
  713. package/components/DateRangePicker/MobileDateRangePicker.styles/MobileDateRangePicker.styles.js.map +0 -1
  714. package/components/DateRangePicker/MobileDateRangePicker.styles/package.json +0 -6
  715. package/components/DateRangePicker/MobileDateRangePicker.styles.d.ts +0 -4
  716. package/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -109
  717. package/components/DateRangePicker/index/index.js +0 -1
  718. package/components/DateRangePicker/index/index.js.map +0 -1
  719. package/components/DateRangePicker/index/package.json +0 -6
  720. package/components/DateRangePicker/index.d.ts +0 -1
  721. package/components/DateRangePicker/locale/index/index.js +0 -8
  722. package/components/DateRangePicker/locale/index/index.js.map +0 -1
  723. package/components/DateRangePicker/locale/index/package.json +0 -6
  724. package/components/DateRangePicker/locale/index.d.ts +0 -4
  725. package/components/DateRangePicker/locale/locales/en/en.js +0 -6
  726. package/components/DateRangePicker/locale/locales/en/en.js.map +0 -1
  727. package/components/DateRangePicker/locale/locales/en/package.json +0 -6
  728. package/components/DateRangePicker/locale/locales/en.d.ts +0 -2
  729. package/components/DateRangePicker/locale/locales/ru/package.json +0 -6
  730. package/components/DateRangePicker/locale/locales/ru/ru.js +0 -6
  731. package/components/DateRangePicker/locale/locales/ru/ru.js.map +0 -1
  732. package/components/DateRangePicker/locale/locales/ru.d.ts +0 -2
  733. package/components/DateRangePicker/locale/package.json +0 -6
  734. package/components/DateRangePicker/locale/types/package.json +0 -6
  735. package/components/DateRangePicker/locale/types/types.js +0 -1
  736. package/components/DateRangePicker/locale/types/types.js.map +0 -1
  737. package/components/DateRangePicker/locale/types.d.ts +0 -5
  738. package/components/DateRangePicker/package.json +0 -6
  739. package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js +0 -417
  740. package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js.map +0 -1
  741. package/components/Dropdown/__creevey__/Dropdown.creevey/package.json +0 -6
  742. package/components/Dropdown/__creevey__/Dropdown.creevey.d.ts +0 -1
  743. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js +0 -534
  744. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js.map +0 -1
  745. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/package.json +0 -6
  746. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts +0 -1
  747. package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js +0 -62
  748. package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js.map +0 -1
  749. package/components/FxInput/__creevey__/FxInput.creevey/package.json +0 -6
  750. package/components/FxInput/__creevey__/FxInput.creevey.d.ts +0 -1
  751. package/components/Group/__creevey__/Group.creevey/Group.creevey.js +0 -48
  752. package/components/Group/__creevey__/Group.creevey/Group.creevey.js.map +0 -1
  753. package/components/Group/__creevey__/Group.creevey/package.json +0 -6
  754. package/components/Group/__creevey__/Group.creevey.d.ts +0 -1
  755. package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js +0 -127
  756. package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js.map +0 -1
  757. package/components/Hint/__creevey__/Hint.creevey/package.json +0 -6
  758. package/components/Hint/__creevey__/Hint.creevey.d.ts +0 -1
  759. package/components/Input/__creevey__/Input.creevey/Input.creevey.js +0 -517
  760. package/components/Input/__creevey__/Input.creevey/Input.creevey.js.map +0 -1
  761. package/components/Input/__creevey__/Input.creevey/package.json +0 -6
  762. package/components/Input/__creevey__/Input.creevey.d.ts +0 -1
  763. package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js +0 -278
  764. package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js.map +0 -1
  765. package/components/Kebab/__creevey__/Kebab.creevey/package.json +0 -6
  766. package/components/Kebab/__creevey__/Kebab.creevey.d.ts +0 -1
  767. package/components/Link/__creevey__/Link.creevey/Link.creevey.js +0 -238
  768. package/components/Link/__creevey__/Link.creevey/Link.creevey.js.map +0 -1
  769. package/components/Link/__creevey__/Link.creevey/package.json +0 -6
  770. package/components/Link/__creevey__/Link.creevey.d.ts +0 -1
  771. package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js +0 -129
  772. package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js.map +0 -1
  773. package/components/Loader/__creevey__/Loader.creevey/package.json +0 -6
  774. package/components/Loader/__creevey__/Loader.creevey.d.ts +0 -1
  775. package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js +0 -405
  776. package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js.map +0 -1
  777. package/components/MaskedInput/__creevey__/MaskedInput.creevey/package.json +0 -6
  778. package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts +0 -1
  779. package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js +0 -565
  780. package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js.map +0 -1
  781. package/components/Modal/__creevey__/Modal.creevey/package.json +0 -6
  782. package/components/Modal/__creevey__/Modal.creevey.d.ts +0 -1
  783. package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js +0 -190
  784. package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js.map +0 -1
  785. package/components/Paging/__creevey__/Paging.creevey/package.json +0 -6
  786. package/components/Paging/__creevey__/Paging.creevey.d.ts +0 -1
  787. package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js +0 -83
  788. package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js.map +0 -1
  789. package/components/PasswordInput/__creevey__/PasswordInput.creevey/package.json +0 -6
  790. package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts +0 -1
  791. package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js +0 -56
  792. package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js.map +0 -1
  793. package/components/Radio/__creevey__/Radio.creevey/package.json +0 -6
  794. package/components/Radio/__creevey__/Radio.creevey.d.ts +0 -1
  795. package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js +0 -167
  796. package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js.map +0 -1
  797. package/components/RadioGroup/__creevey__/RadioGroup.creevey/package.json +0 -6
  798. package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts +0 -1
  799. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js +0 -488
  800. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js.map +0 -1
  801. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/package.json +0 -6
  802. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts +0 -1
  803. package/components/Select/__creevey__/Select.creevey/Select.creevey.js +0 -541
  804. package/components/Select/__creevey__/Select.creevey/Select.creevey.js.map +0 -1
  805. package/components/Select/__creevey__/Select.creevey/package.json +0 -6
  806. package/components/Select/__creevey__/Select.creevey.d.ts +0 -1
  807. package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js +0 -697
  808. package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js.map +0 -1
  809. package/components/SidePage/__creevey__/SidePage.creevey/package.json +0 -6
  810. package/components/SidePage/__creevey__/SidePage.creevey.d.ts +0 -1
  811. package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js +0 -215
  812. package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js.map +0 -1
  813. package/components/Sticky/__creevey__/Sticky.creevey/package.json +0 -6
  814. package/components/Sticky/__creevey__/Sticky.creevey.d.ts +0 -1
  815. package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js +0 -58
  816. package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js.map +0 -1
  817. package/components/Switcher/__creevey__/Switcher.creevey/package.json +0 -6
  818. package/components/Switcher/__creevey__/Switcher.creevey.d.ts +0 -1
  819. package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js +0 -391
  820. package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js.map +0 -1
  821. package/components/Tabs/__creevey__/Tabs.creevey/package.json +0 -6
  822. package/components/Tabs/__creevey__/Tabs.creevey.d.ts +0 -1
  823. package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js +0 -404
  824. package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js.map +0 -1
  825. package/components/Textarea/__creevey__/Textarea.creevey/package.json +0 -6
  826. package/components/Textarea/__creevey__/Textarea.creevey.d.ts +0 -1
  827. package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js +0 -70
  828. package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js.map +0 -1
  829. package/components/Toast/__creevey__/Toast.creevey/package.json +0 -6
  830. package/components/Toast/__creevey__/Toast.creevey.d.ts +0 -1
  831. package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js +0 -195
  832. package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js.map +0 -1
  833. package/components/Toggle/__creevey__/Toggle.creevey/package.json +0 -6
  834. package/components/Toggle/__creevey__/Toggle.creevey.d.ts +0 -1
  835. package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js +0 -635
  836. package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js.map +0 -1
  837. package/components/TokenInput/__creevey__/TokenInput.creevey/package.json +0 -6
  838. package/components/TokenInput/__creevey__/TokenInput.creevey.d.ts +0 -1
  839. package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js +0 -1171
  840. package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js.map +0 -1
  841. package/components/Tooltip/__creevey__/Tooltip.creevey/package.json +0 -6
  842. package/components/Tooltip/__creevey__/Tooltip.creevey.d.ts +0 -1
  843. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js +0 -277
  844. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js.map +0 -1
  845. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/package.json +0 -6
  846. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts +0 -1
  847. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js +0 -78
  848. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js.map +0 -1
  849. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/package.json +0 -6
  850. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts +0 -1
  851. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js +0 -58
  852. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js.map +0 -1
  853. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/package.json +0 -6
  854. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts +0 -1
  855. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js +0 -41
  856. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js.map +0 -1
  857. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/package.json +0 -6
  858. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts +0 -1
  859. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js +0 -199
  860. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js.map +0 -1
  861. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/package.json +0 -6
  862. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts +0 -1
  863. package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js +0 -196
  864. package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js.map +0 -1
  865. package/internal/Menu/__creevey__/Menu.creevey/package.json +0 -6
  866. package/internal/Menu/__creevey__/Menu.creevey.d.ts +0 -1
  867. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js +0 -69
  868. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js.map +0 -1
  869. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/package.json +0 -6
  870. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts +0 -1
  871. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js +0 -145
  872. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js.map +0 -1
  873. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/package.json +0 -6
  874. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts +0 -1
  875. package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js +0 -550
  876. package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js.map +0 -1
  877. package/internal/ZIndex/__creevey__/ZIndex.creevey/package.json +0 -6
  878. package/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts +0 -1
  879. package/internal/themes/BasicDarkTheme/BasicDarkTheme.js +0 -646
  880. package/internal/themes/BasicDarkTheme/BasicDarkTheme.js.map +0 -1
  881. package/internal/themes/BasicDarkTheme/package.json +0 -6
  882. package/internal/themes/BasicDarkTheme.d.ts +0 -293
  883. package/lib/theming/themes/DarkTheme2022_0/DarkTheme2022_0.js +0 -3
  884. package/lib/theming/themes/DarkTheme2022_0/DarkTheme2022_0.js.map +0 -1
  885. package/lib/theming/themes/DarkTheme2022_0/package.json +0 -6
  886. package/lib/theming/themes/DarkTheme2022_0.d.ts +0 -1
  887. package/lib/theming/themes/LightTheme2022_0/LightTheme2022_0.js +0 -3
  888. package/lib/theming/themes/LightTheme2022_0/LightTheme2022_0.js.map +0 -1
  889. package/lib/theming/themes/LightTheme2022_0/package.json +0 -6
  890. package/lib/theming/themes/LightTheme2022_0.d.ts +0 -1
  891. /package/{cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts → components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts} +0 -0
  892. /package/{cjs/components/Button/__creevey__/Button.creevey.d.ts → components/Button/__creevey__/Button.creevey.d.mts} +0 -0
  893. /package/{cjs/components/Calendar/__creevey__/Calendar.creevey.d.ts → components/Calendar/__creevey__/Calendar.creevey.d.mts} +0 -0
  894. /package/{cjs/components/Checkbox/__creevey__/Checkbox.creevey.d.ts → components/Checkbox/__creevey__/Checkbox.creevey.d.mts} +0 -0
  895. /package/{cjs/components/ComboBox/__creevey__/ComboBox.creevey.d.ts → components/ComboBox/__creevey__/ComboBox.creevey.d.mts} +0 -0
  896. /package/{cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts → components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts} +0 -0
  897. /package/{cjs/components/DateInput/__creevey__/DateInput.creevey.d.ts → components/DateInput/__creevey__/DateInput.creevey.d.mts} +0 -0
  898. /package/{cjs/components/DatePicker/__creevey__/DatePicker.creevey.d.ts → components/DatePicker/__creevey__/DatePicker.creevey.d.mts} +0 -0
  899. /package/{cjs/components/Dropdown/__creevey__/Dropdown.creevey.d.ts → components/Dropdown/__creevey__/Dropdown.creevey.d.mts} +0 -0
  900. /package/{cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts → components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts} +0 -0
  901. /package/{cjs/components/FxInput/__creevey__/FxInput.creevey.d.ts → components/FxInput/__creevey__/FxInput.creevey.d.mts} +0 -0
  902. /package/{cjs/components/Group/__creevey__/Group.creevey.d.ts → components/Group/__creevey__/Group.creevey.d.mts} +0 -0
  903. /package/{cjs/components/Hint/__creevey__/Hint.creevey.d.ts → components/Hint/__creevey__/Hint.creevey.d.mts} +0 -0
  904. /package/{cjs/components/Input/__creevey__/Input.creevey.d.ts → components/Input/__creevey__/Input.creevey.d.mts} +0 -0
  905. /package/{cjs/components/Kebab/__creevey__/Kebab.creevey.d.ts → components/Kebab/__creevey__/Kebab.creevey.d.mts} +0 -0
  906. /package/{cjs/components/Link/__creevey__/Link.creevey.d.ts → components/Link/__creevey__/Link.creevey.d.mts} +0 -0
  907. /package/{cjs/components/Loader/__creevey__/Loader.creevey.d.ts → components/Loader/__creevey__/Loader.creevey.d.mts} +0 -0
  908. /package/{cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts → components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts} +0 -0
  909. /package/{cjs/components/Modal/__creevey__/Modal.creevey.d.ts → components/Modal/__creevey__/Modal.creevey.d.mts} +0 -0
  910. /package/{cjs/components/Paging/__creevey__/Paging.creevey.d.ts → components/Paging/__creevey__/Paging.creevey.d.mts} +0 -0
  911. /package/{cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts → components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts} +0 -0
  912. /package/{cjs/components/Radio/__creevey__/Radio.creevey.d.ts → components/Radio/__creevey__/Radio.creevey.d.mts} +0 -0
  913. /package/{cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts → components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts} +0 -0
  914. /package/{cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts → components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts} +0 -0
  915. /package/{cjs/components/Select/__creevey__/Select.creevey.d.ts → components/Select/__creevey__/Select.creevey.d.mts} +0 -0
  916. /package/{cjs/components/SidePage/__creevey__/SidePage.creevey.d.ts → components/SidePage/__creevey__/SidePage.creevey.d.mts} +0 -0
  917. /package/{cjs/components/Sticky/__creevey__/Sticky.creevey.d.ts → components/Sticky/__creevey__/Sticky.creevey.d.mts} +0 -0
  918. /package/{cjs/components/Switcher/__creevey__/Switcher.creevey.d.ts → components/Switcher/__creevey__/Switcher.creevey.d.mts} +0 -0
  919. /package/{cjs/components/Tabs/__creevey__/Tabs.creevey.d.ts → components/Tabs/__creevey__/Tabs.creevey.d.mts} +0 -0
  920. /package/{cjs/components/Textarea/__creevey__/Textarea.creevey.d.ts → components/Textarea/__creevey__/Textarea.creevey.d.mts} +0 -0
  921. /package/{cjs/components/Toast/__creevey__/Toast.creevey.d.ts → components/Toast/__creevey__/Toast.creevey.d.mts} +0 -0
  922. /package/{cjs/components/Toggle/__creevey__/Toggle.creevey.d.ts → components/Toggle/__creevey__/Toggle.creevey.d.mts} +0 -0
  923. /package/{cjs/components/TokenInput/__creevey__/TokenInput.creevey.d.ts → components/TokenInput/__creevey__/TokenInput.creevey.d.mts} +0 -0
  924. /package/{cjs/components/Tooltip/__creevey__/Tooltip.creevey.d.ts → components/Tooltip/__creevey__/Tooltip.creevey.d.mts} +0 -0
  925. /package/{cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts → components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts} +0 -0
  926. /package/{cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts → internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.d.mts} +0 -0
  927. /package/{cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts → internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts} +0 -0
  928. /package/{cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts → internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts} +0 -0
  929. /package/{cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts → internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts} +0 -0
  930. /package/{cjs/internal/Menu/__creevey__/Menu.creevey.d.ts → internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts} +0 -0
  931. /package/{cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts → internal/Menu/__creevey__/Menu.creevey.d.mts} +0 -0
  932. /package/{cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts → internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts} +0 -0
  933. /package/{cjs/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts → internal/ThemePlayground/__creevey__/Theme5_0.creevey.d.mts} +0 -0
  934. /package/{components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts → internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts} +0 -0
  935. /package/{components/Button/__creevey__/Button.creevey.d.ts → internal/ZIndex/__creevey__/ZIndex.creevey.d.mts} +0 -0
@@ -5,6 +5,7 @@ import { SizeProp } from '../../lib/types/props';
5
5
  import { InputElementProps } from './Input.typings';
6
6
  export declare const inputTypes: readonly ["password", "text", "number", "tel", "search", "time", "date", "url", "email"];
7
7
  export type InputAlign = 'left' | 'center' | 'right';
8
+ export type ShowClearIcon = 'auto' | 'always' | 'never';
8
9
  export type InputType = (typeof inputTypes)[number];
9
10
  export type InputIconType = React.ReactNode | (() => React.ReactNode);
10
11
  export declare const selectionAllowedTypes: InputType[];
@@ -12,7 +13,20 @@ export declare const selectionErrorMessage: (type: InputType, allowedTypes?: Inp
12
13
  export declare const maskForbiddenTypes: InputType[];
13
14
  export declare const maskAllowedTypes: InputType[];
14
15
  export declare const maskErrorMessage: (type: InputType, allowedTypes?: InputType[]) => string;
16
+ export declare const calculateClearCrossShowedState: ({ showClearIcon, notEmptyValue, focused, hovered, }: {
17
+ showClearIcon: ShowClearIcon;
18
+ notEmptyValue: boolean;
19
+ focused?: boolean | undefined;
20
+ hovered?: boolean | undefined;
21
+ }) => boolean;
15
22
  export interface InputProps extends CommonProps, Pick<HTMLAttributes<unknown>, 'role'>, Pick<AriaAttributes, 'aria-describedby' | 'aria-controls' | 'aria-label'>, Override<React.InputHTMLAttributes<HTMLInputElement>, {
23
+ /** Показывать иконку очистки значения в непустом поле:
24
+ * - `always` — всегда показывать иконку
25
+ * - `auto` — показывать иконку при hover/focus
26
+ * - `never` — не показывать иконку
27
+ * При одновременной настройке `showClearIcon` и `rightIcon` показывается иконка очистки.
28
+ * @default never */
29
+ showClearIcon?: ShowClearIcon;
16
30
  /** Задает иконку слева.
17
31
  * При использовании `ReactNode` применяются дефолтные стили для иконки.
18
32
  * При использовании `() => ReactNode` применяются только стили для позиционирования. */
@@ -78,12 +92,15 @@ export interface InputProps extends CommonProps, Pick<HTMLAttributes<unknown>, '
78
92
  export interface InputState {
79
93
  blinking: boolean;
80
94
  focused: boolean;
95
+ hovered: boolean;
81
96
  needsPolyfillPlaceholder: boolean;
97
+ clearCrossShowed: boolean;
82
98
  }
83
99
  export declare const InputDataTids: {
84
100
  readonly root: "Input__root";
101
+ readonly clearCross: "Input__clearCross";
85
102
  };
86
- type DefaultProps = Required<Pick<InputProps, 'size' | 'type'>>;
103
+ type DefaultProps = Required<Pick<InputProps, 'size' | 'type' | 'showClearIcon'>>;
87
104
  /**
88
105
  * Поле ввода `Input` дает возможность указать значение с помощью клавиатуры.
89
106
  *
@@ -102,12 +119,13 @@ export declare class Input extends React.Component<InputProps, InputState> {
102
119
  static displayName: string;
103
120
  static defaultProps: DefaultProps;
104
121
  private getProps;
105
- state: InputState;
106
122
  private selectAllId;
107
123
  private theme;
108
124
  private blinkTimeout;
109
125
  input: HTMLInputElement | null;
110
126
  private setRootNode;
127
+ private getClearCrossShowed;
128
+ state: InputState;
111
129
  private outputMaskError;
112
130
  componentDidMount(): void;
113
131
  componentDidUpdate(prevProps: Readonly<InputProps>): void;
@@ -152,7 +170,10 @@ export declare class Input extends React.Component<InputProps, InputState> {
152
170
  private renderMaskedInput;
153
171
  private getSizeClassName;
154
172
  private refInput;
173
+ private handleClearInput;
155
174
  private handleChange;
175
+ private handleMouseEnter;
176
+ private handleMouseLeave;
156
177
  private handleFocus;
157
178
  private handleKeyDown;
158
179
  private handleKeyPress;
@@ -0,0 +1,239 @@
1
+ import { story, kind, test } from 'creevey';
2
+
3
+ import { delay } from '../../../lib/delay';
4
+
5
+ const differentStatesTest = () => {
6
+ test('Plain', async (context) => {
7
+ const element = await context.webdriver.findElement({ css: '#input' });
8
+ await context.matchImage(await element.takeScreenshot(), 'Plain');
9
+ });
10
+
11
+ test('Focused', async (context) => {
12
+ const element = await context.webdriver.findElement({ css: '#input' });
13
+ await context.webdriver
14
+ .actions({
15
+ bridge: true,
16
+ })
17
+ .click(context.webdriver.findElement({ css: '#input input' }))
18
+ .pause(500)
19
+ .perform();
20
+ await context.matchImage(await element.takeScreenshot(), 'Focused');
21
+ });
22
+
23
+ test('With typed text', async (context) => {
24
+ const element = await context.webdriver.findElement({ css: '#input' });
25
+ await context.webdriver
26
+ .actions({
27
+ bridge: true,
28
+ })
29
+ .click(context.webdriver.findElement({ css: '#input input' }))
30
+ .sendKeys('Test...')
31
+ .pause(500)
32
+ .perform();
33
+ await context.matchImage(await element.takeScreenshot(), 'With typed text');
34
+ });
35
+
36
+ test('With long typed text', async (context) => {
37
+ const element = await context.webdriver.findElement({ css: '#input' });
38
+ await context.webdriver
39
+ .actions({
40
+ bridge: true,
41
+ })
42
+ .click(context.webdriver.findElement({ css: '#input input' }))
43
+ .sendKeys('Test...')
44
+ .sendKeys('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
45
+ .pause(500)
46
+ .perform();
47
+ await context.matchImage(await element.takeScreenshot(), 'With long typed text');
48
+ });
49
+ };
50
+
51
+ const testMaskedInput = () => {
52
+ test('idle, focus, edit, blur', async (context) => {
53
+ const click = (css: string) => {
54
+ return context.webdriver
55
+ .actions({
56
+ bridge: true,
57
+ })
58
+ .click(context.webdriver.findElement({ css }));
59
+ };
60
+ const idle = await context.takeScreenshot();
61
+ await click('input').pause(500).perform();
62
+ const focused = await context.takeScreenshot();
63
+ await click('input').sendKeys('953').perform();
64
+ const edited = await context.takeScreenshot();
65
+ await click('body').perform();
66
+ const blured = await context.takeScreenshot();
67
+ await context.matchImages({ idle, focused, edited, blured });
68
+ });
69
+ };
70
+
71
+ kind('Input', () => {
72
+ story('Default', ({ setStoryParameters }) => {
73
+ setStoryParameters({
74
+ skip: { "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ } },
75
+ });
76
+ differentStatesTest();
77
+ });
78
+
79
+ story('WithMask', ({ setStoryParameters }) => {
80
+ setStoryParameters({
81
+ skip: { "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ } },
82
+ });
83
+ testMaskedInput();
84
+ });
85
+
86
+ story('WithMaskAndCustomUnmaskedValue', ({ setStoryParameters }) => {
87
+ setStoryParameters({
88
+ skip: {
89
+ "themes don't affect logic": { in: /^(?!\bchrome2022\b)/ },
90
+ },
91
+ });
92
+
93
+ testMaskedInput();
94
+ });
95
+
96
+ story('SelectAllByProp', ({ setStoryParameters }) => {
97
+ setStoryParameters({
98
+ skip: { "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ } },
99
+ });
100
+ test('Plain', async (context) => {
101
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
102
+ });
103
+
104
+ test('Focused', async (context) => {
105
+ await context.webdriver
106
+ .actions({
107
+ bridge: true,
108
+ })
109
+ .click(context.webdriver.findElement({ css: 'label' }))
110
+ .perform();
111
+ await context.matchImage(await context.takeScreenshot(), 'Focused');
112
+ });
113
+ });
114
+
115
+ story('SelectAllByButton', ({ setStoryParameters }) => {
116
+ setStoryParameters({
117
+ skip: { "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ } },
118
+ });
119
+ test('Plain', async (context) => {
120
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
121
+ });
122
+
123
+ test('Selected', async (context) => {
124
+ await context.webdriver
125
+ .actions({
126
+ bridge: true,
127
+ })
128
+ .click(context.webdriver.findElement({ css: '[data-tid~="select-all"]' }))
129
+ .perform();
130
+ await context.matchImage(await context.takeScreenshot(), 'Selected');
131
+ });
132
+ });
133
+
134
+ story('MaxLength', ({ setStoryParameters }) => {
135
+ setStoryParameters({
136
+ skip: {
137
+ "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ },
138
+ flaky: {
139
+ in: ['chrome2022'],
140
+ tests: ['With long typed text'],
141
+ },
142
+ },
143
+ });
144
+ differentStatesTest();
145
+ });
146
+
147
+ story('UncontrolledInputWithPlaceholder', ({ setStoryParameters }) => {
148
+ setStoryParameters({
149
+ skip: { "themes don't affect logic": { in: /^(?!\b(chrome2022|firefox2022)\b)/ } },
150
+ });
151
+ test('PlainAndTyped', async (context) => {
152
+ const plain = await context.takeScreenshot();
153
+ await context.webdriver
154
+ .actions({
155
+ bridge: true,
156
+ })
157
+ .click(context.webdriver.findElement({ css: 'input' }))
158
+ .sendKeys('text')
159
+ .perform();
160
+ const typed = await context.takeScreenshot();
161
+ await context.matchImages({ plain, typed });
162
+ });
163
+ });
164
+
165
+ story('WithMaskAndSelectAllProp', ({ setStoryParameters }) => {
166
+ setStoryParameters({ skip: { "themes don't affect logic": { in: /^(?!\bchrome2022\b)/ } } });
167
+
168
+ test('PlainAndSelected', async (context) => {
169
+ const plain = await context.takeScreenshot();
170
+ await context.webdriver
171
+ .actions({
172
+ bridge: true,
173
+ })
174
+ .click(context.webdriver.findElement({ css: 'input' }))
175
+ .pause(500)
176
+ .perform();
177
+ const selectAllHalfFilledInput = await context.takeScreenshot();
178
+ await context.webdriver
179
+ .actions({
180
+ bridge: true,
181
+ })
182
+ .click(context.webdriver.findElement({ css: 'input' }))
183
+ .sendKeys('1111')
184
+ .click(context.webdriver.findElement({ css: 'body' }))
185
+ .click(context.webdriver.findElement({ css: 'input' }))
186
+ .pause(500)
187
+ .perform();
188
+ const selectAllFilledInput = await context.takeScreenshot();
189
+ await context.matchImages({ plain, selectAllHalfFilledInput, selectAllFilledInput });
190
+ });
191
+ });
192
+
193
+ story('SearchTypeApi', ({ setStoryParameters }) => {
194
+ setStoryParameters({
195
+ skip: {
196
+ 'tests only stable in chrome': { in: /^(?!\bchrome2022\b|\bchrome2022Dark\b)/ },
197
+ },
198
+ });
199
+
200
+ test('Focused', async (context) => {
201
+ await context.webdriver
202
+ .actions({
203
+ bridge: true,
204
+ })
205
+ .click(context.webdriver.findElement({ css: 'label' }))
206
+ .perform();
207
+ await delay(1000);
208
+ await context.matchImage(await context.takeScreenshot(), 'Focused');
209
+ });
210
+ });
211
+
212
+ story('InputTypeApi', ({ setStoryParameters }) => {
213
+ setStoryParameters({
214
+ skip: {
215
+ "themes don't affect logic": { in: /^(?!\b(chrome|firefox)(2022).*\b)/ },
216
+ },
217
+ });
218
+
219
+ test('Focused', async (context) => {
220
+ await context.webdriver
221
+ .actions({
222
+ bridge: true,
223
+ })
224
+ .click(context.webdriver.findElement({ css: 'label' }))
225
+ .perform();
226
+ await context.matchImage(await context.takeScreenshot(), 'Focused');
227
+ });
228
+ });
229
+ story('Type', ({ setStoryParameters }) => {
230
+ setStoryParameters({
231
+ skip: { 'no themes': { in: /^(?!\b(chrome2022)\b)/ } },
232
+ });
233
+ });
234
+ story('TypeApi', ({ setStoryParameters }) => {
235
+ setStoryParameters({
236
+ skip: { 'no themes': { in: /^(?!\b(chrome2022)\b)/ } },
237
+ });
238
+ });
239
+ });
@@ -0,0 +1,147 @@
1
+ import { story, kind, test } from 'creevey';
2
+ import { Key } from 'selenium-webdriver';
3
+
4
+ import { PopupMenuDataTids } from '../../../internal/PopupMenu/tids';
5
+ import { delay } from '../../../lib/delay';
6
+ const textAlignmentTests = () => {
7
+ test('opened', async (context) => {
8
+ await context.webdriver
9
+ .actions({
10
+ bridge: true,
11
+ })
12
+ .click(context.webdriver.findElement({ css: `[data-tid~="${PopupMenuDataTids.caption}"]` }))
13
+ .perform();
14
+ await delay(1000);
15
+ await context.matchImage(await context.takeScreenshot(), 'opened');
16
+ });
17
+ };
18
+
19
+ const kebabTests = () => {
20
+ test('plain', async (context) => {
21
+ await context.matchImage(await context.takeScreenshot(), 'plain');
22
+ });
23
+
24
+ test('hovered', async (context) => {
25
+ await context.webdriver
26
+ .actions({
27
+ bridge: true,
28
+ })
29
+ .move({
30
+ origin: context.webdriver.findElement({ css: '[data-comp-name~="Kebab"]' }),
31
+ })
32
+ .perform();
33
+ await context.matchImage(await context.takeScreenshot(), 'hovered');
34
+ });
35
+
36
+ test('clicked', async (context) => {
37
+ await context.webdriver
38
+ .actions({
39
+ bridge: true,
40
+ })
41
+ .click(context.webdriver.findElement({ css: '[data-comp-name~="Kebab"]' }))
42
+ .perform();
43
+ await context.matchImage(await context.takeScreenshot(), 'clicked');
44
+ });
45
+
46
+ test('clickedOnButton2ndTime', async (context) => {
47
+ await context.webdriver
48
+ .actions({
49
+ bridge: true,
50
+ })
51
+ .click(context.webdriver.findElement({ css: '[data-comp-name~="Kebab"]' }))
52
+ .click(context.webdriver.findElement({ css: '[data-comp-name~="Kebab"]' }))
53
+ .perform();
54
+ await context.matchImage(await context.takeScreenshot(), 'clickedOnButton2ndTime');
55
+ });
56
+
57
+ test('tabPress', async (context) => {
58
+ await context.webdriver
59
+ .actions({
60
+ bridge: true,
61
+ })
62
+ .sendKeys(Key.TAB)
63
+ .perform();
64
+ await context.matchImage(await context.takeScreenshot(), 'tabPress');
65
+ });
66
+
67
+ test('enterPress', async (context) => {
68
+ await context.webdriver
69
+ .actions({
70
+ bridge: true,
71
+ })
72
+ .sendKeys(Key.TAB)
73
+ .sendKeys(Key.ENTER)
74
+ .perform();
75
+ await context.matchImage(await context.takeScreenshot(), 'enterPress');
76
+ });
77
+ };
78
+
79
+ kind('Kebab', () => {
80
+ story('Small', ({ setStoryParameters }) => {
81
+ setStoryParameters({
82
+ skip: {
83
+ 'hover does not work in chrome': {
84
+ in: ['chrome2022', 'chrome2022Dark'],
85
+ tests: ['hovered', 'clickedOnButton2ndTime'],
86
+ },
87
+ },
88
+ });
89
+
90
+ kebabTests();
91
+ });
92
+
93
+ story('Medium', ({ setStoryParameters }) => {
94
+ setStoryParameters({
95
+ skip: {
96
+ 'hover does not work in chrome': {
97
+ in: ['chrome2022', 'chrome2022Dark'],
98
+ tests: ['hovered', 'clickedOnButton2ndTime'],
99
+ },
100
+ },
101
+ });
102
+
103
+ kebabTests();
104
+ });
105
+
106
+ story('Large', ({ setStoryParameters }) => {
107
+ setStoryParameters({
108
+ skip: {
109
+ 'hover does not work in chrome': {
110
+ in: ['chrome2022', 'chrome2022Dark'],
111
+ tests: ['hovered', 'clickedOnButton2ndTime'],
112
+ },
113
+ },
114
+ });
115
+
116
+ kebabTests();
117
+ });
118
+
119
+ story('MobileExampleWithHorizontalPadding', ({ setStoryParameters }) => {
120
+ setStoryParameters({ captureElement: null });
121
+
122
+ test('opened', async (context) => {
123
+ await context.webdriver
124
+ .actions({ bridge: true })
125
+ .click(context.webdriver.findElement({ css: '[data-comp-name~="Kebab"]' }))
126
+ .perform();
127
+ await delay(200);
128
+ await context.webdriver
129
+ .actions({ bridge: true })
130
+ .move({ origin: context.webdriver.findElement({ css: '[data-comp-name~="MenuItem"]' }) })
131
+ .perform();
132
+ await delay(1000);
133
+ await context.matchImage(await context.takeScreenshot(), 'opened');
134
+ });
135
+ });
136
+ story('WithItemsAndIcons', ({ setStoryParameters }) => {
137
+ setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\bchrome2022\b)/ } } });
138
+
139
+ textAlignmentTests();
140
+ });
141
+
142
+ story('WithItemsAndIconsWithoutTextAlignment', ({ setStoryParameters }) => {
143
+ setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\bchrome2022\b)/ } } });
144
+
145
+ textAlignmentTests();
146
+ });
147
+ });
@@ -91,8 +91,32 @@ export var Link = rootNode(_class = (_Link = /*#__PURE__*/function (_React$Compo
91
91
  position: "right"
92
92
  });
93
93
  var nonInteractive = disabled || loading;
94
+ var getUseStyles = function getUseStyles() {
95
+ switch (use) {
96
+ case 'default':
97
+ return styles["default"](_this.theme);
98
+ case 'danger':
99
+ return styles.danger(_this.theme);
100
+ case 'success':
101
+ return styles.success(_this.theme);
102
+ case 'grayed':
103
+ return styles.grayed(_this.theme);
104
+ }
105
+ };
106
+ var getUseLineFocusStyles = function getUseLineFocusStyles() {
107
+ switch (use) {
108
+ case 'default':
109
+ return styles.lineFocus(_this.theme);
110
+ case 'danger':
111
+ return styles.lineFocusDanger(_this.theme);
112
+ case 'success':
113
+ return styles.lineFocusSuccess(_this.theme);
114
+ case 'grayed':
115
+ return styles.lineFocusGrayed(_this.theme);
116
+ }
117
+ };
94
118
  var rootProps = _extends({}, rest, {
95
- className: cx((_cx = {}, _cx[styles.root(_this.theme)] = true, _cx[resetButton()] = Root === 'button', _cx[styles.focus(_this.theme)] = isFocused, _cx[styles.disabled(_this.theme)] = disabled || loading, _cx[styles.useDefault(_this.theme)] = use === 'default', _cx[styles.useSuccess(_this.theme)] = use === 'success', _cx[styles.useDanger(_this.theme)] = use === 'danger', _cx[styles.useGrayed(_this.theme)] = use === 'grayed', _cx[styles.useGrayedFocus(_this.theme)] = use === 'grayed' && focused, _cx[styles.button(_this.theme)] = !!_button, _cx[styles.buttonOpened(_this.theme)] = !!_buttonOpened, _cx[styles.warning(_this.theme)] = warning, _cx[styles.error(_this.theme)] = error, _cx[styles.lineFocus(_this.theme)] = isFocused && use === 'default', _cx[styles.lineFocusSuccess(_this.theme)] = isFocused && use === 'success', _cx[styles.lineFocusDanger(_this.theme)] = isFocused && use === 'danger', _cx[styles.lineFocusGrayed(_this.theme)] = isFocused && use === 'grayed', _cx)),
119
+ className: cx((_cx = {}, _cx[styles.root(_this.theme)] = true, _cx[resetButton()] = Root === 'button', _cx[styles.focus(_this.theme)] = isFocused, _cx[styles.disabled(_this.theme)] = disabled || loading, _cx[getUseStyles()] = true, _cx[styles.useGrayedFocus(_this.theme)] = use === 'grayed' && focused, _cx[styles.button(_this.theme)] = !!_button, _cx[styles.buttonOpened(_this.theme)] = !!_buttonOpened, _cx[styles.warning(_this.theme)] = warning, _cx[styles.error(_this.theme)] = error, _cx[getUseLineFocusStyles()] = isFocused, _cx)),
96
120
  onClick: _this.handleClick,
97
121
  onFocus: _this.handleFocus,
98
122
  onBlur: _this.handleBlur,
@@ -1 +1 @@
1
- {"version":3,"names":["React","globalObject","resetButton","keyListener","ThemeContext","isExternalLink","CommonWrapper","cx","rootNode","createPropsGetter","ThemeFactory","getVisualStateDataAttributes","styles","LinkIcon","LINK_DEFAULT_COMPONENT","LinkDataTids","root","Link","_class","_Link","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","focusedByTab","getTabIndex","_ref","nonInteractive","_ref$tabIndex","tabIndex","getRel","isAnchorProps","props","_this$props","rel","href","undefined","renderMain","_cx","disabled","icon","rightIcon","use","loading","_button","_buttonOpened","Root","component","_props$focused","focused","error","warning","theme","rest","_objectWithoutPropertiesLoose","_excluded","arrow","createElement","className","isFocused","leftIconElement","position","rightIconElement","hasBothIcons","rootProps","_extends","focus","useDefault","useSuccess","useDanger","useGrayed","useGrayedFocus","button","buttonOpened","lineFocus","lineFocusSuccess","lineFocusDanger","lineFocusGrayed","onClick","handleClick","onFocus","handleFocus","onBlur","handleBlur","children","requestAnimationFrame","isTabPressed","setState","event","_this$props2","_inheritsLoose","_proto","prototype","render","_this2","Consumer","create","rootNodeRef","setRootNode","Component","__KONTUR_REACT_UI__","displayName"],"sources":["Link.tsx"],"sourcesContent":["import React from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { resetButton } from '../../lib/styles/Mixins';\nimport { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\nimport { keyListener } from '../../lib/events/keyListener';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { isExternalLink } from '../../lib/utils';\nimport { CommonProps, CommonWrapper, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { createPropsGetter, DefaultizedProps } from '../../lib/createPropsGetter';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\n\nimport { styles } from './Link.styles';\nimport { LinkIcon } from './LinkIcon';\n\nexport interface LinkInnerProps extends CommonProps {\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Добавляет иконку слева. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа. */\n rightIcon?: React.ReactElement;\n\n /** Задает тему ссылки. */\n use?: 'default' | 'success' | 'danger' | 'grayed';\n\n /** @ignore */\n _button?: boolean;\n\n /** @ignore */\n _buttonOpened?: boolean;\n\n /** Задает HTML-атрибут `tabindex`. */\n tabIndex?: number;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n\n /** Задает состояние фокуса.\n * @ignore */\n focused?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n}\n\nconst LINK_DEFAULT_COMPONENT = 'a';\n\nexport type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<\n LinkInnerProps,\n C\n>;\nexport interface LinkState {\n focusedByTab: boolean;\n}\n\nexport const LinkDataTids = {\n root: 'Link__root',\n} as const;\n\ntype DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;\ntype DefaultizedLinkProps = DefaultizedProps<LinkProps<ButtonLinkAllowedValues>, DefaultProps>;\n\n/**\n * Элемент ссылки из HTML.\n */\n@rootNode\nexport class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<\n LinkProps<C>,\n LinkState\n> {\n public static __KONTUR_REACT_UI__ = 'Link';\n public static displayName = 'Link';\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n component: LINK_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Link.defaultProps);\n\n public state: LinkState = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n\n public render(): JSX.Element {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = this.props.theme ? ThemeFactory.create(this.props.theme as Theme, theme) : theme;\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex = ({\n nonInteractive,\n tabIndex = 0,\n }: {\n nonInteractive: boolean | undefined;\n tabIndex: number | undefined;\n }) => {\n return nonInteractive ? -1 : tabIndex;\n };\n\n private getRel = () => {\n if (isAnchorProps(this.props)) {\n const { rel, href } = this.props;\n if (!rel && href) {\n return `noopener${isExternalLink(href) ? ' noreferrer' : ''}`;\n }\n return rel;\n }\n\n return undefined;\n };\n\n private renderMain = (props: CommonWrapperRestProps<DefaultizedLinkProps>) => {\n const {\n disabled,\n icon,\n rightIcon,\n use,\n loading,\n _button,\n _buttonOpened,\n component: Root,\n focused = false,\n error,\n warning,\n tabIndex,\n theme,\n ...rest\n } = props;\n\n let arrow = null;\n if (_button) {\n arrow = <span className={styles.arrow()} />;\n }\n\n const isFocused = !disabled && (this.state.focusedByTab || focused);\n\n const leftIconElement = icon && <LinkIcon icon={icon} loading={loading} position=\"left\" />;\n const rightIconElement = rightIcon && (\n <LinkIcon hasBothIcons={!!icon && !!rightIcon} icon={rightIcon} loading={loading} position=\"right\" />\n );\n const nonInteractive = disabled || loading;\n\n const rootProps = {\n ...rest,\n className: cx({\n [styles.root(this.theme)]: true,\n [resetButton()]: Root === 'button',\n [styles.focus(this.theme)]: isFocused,\n [styles.disabled(this.theme)]: disabled || loading,\n [styles.useDefault(this.theme)]: use === 'default',\n [styles.useSuccess(this.theme)]: use === 'success',\n [styles.useDanger(this.theme)]: use === 'danger',\n [styles.useGrayed(this.theme)]: use === 'grayed',\n [styles.useGrayedFocus(this.theme)]: use === 'grayed' && focused,\n [styles.button(this.theme)]: !!_button,\n [styles.buttonOpened(this.theme)]: !!_buttonOpened,\n [styles.warning(this.theme)]: warning,\n [styles.error(this.theme)]: error,\n [styles.lineFocus(this.theme)]: isFocused && use === 'default',\n [styles.lineFocusSuccess(this.theme)]: isFocused && use === 'success',\n [styles.lineFocusDanger(this.theme)]: isFocused && use === 'danger',\n [styles.lineFocusGrayed(this.theme)]: isFocused && use === 'grayed',\n }),\n onClick: this.handleClick,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ nonInteractive, tabIndex }),\n rel: this.getRel(),\n };\n\n return (\n <Root data-tid={LinkDataTids.root} {...rootProps} {...getVisualStateDataAttributes({ disabled })}>\n {leftIconElement}\n {this.props.children}\n {rightIconElement}\n {arrow}\n </Root>\n );\n };\n\n private handleFocus = () => {\n if (!this.props.disabled) {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n this.setState({ focusedByTab: true });\n }\n });\n }\n };\n\n private handleBlur = () => {\n this.setState({ focusedByTab: false });\n };\n\n private handleClick = (event: React.MouseEvent) => {\n const { onClick, disabled, loading } = this.props;\n\n if (onClick && !disabled && !loading) {\n onClick(event);\n }\n };\n}\n\nconst isAnchorProps = (props: LinkProps<any>): props is LinkProps<'a'> => {\n return props.component === 'a';\n};\n"],"mappings":"uZAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,0BAA0B;;;AAGvD,SAASC,WAAW,QAAQ,yBAAyB;;AAErD,SAASC,WAAW,QAAQ,8BAA8B;;AAE1D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,iBAAiB;AAChD,SAAsBC,aAAa,QAAgC,8BAA8B;AACjG,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,QAAQ,QAAsB,oBAAoB;AAC3D,SAASC,iBAAiB,QAA0B,6BAA6B;AACjF,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,4BAA4B,QAAQ,iEAAiE;;AAE9G,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,QAAQ,QAAQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCrC,IAAMC,sBAAsB,GAAG,GAAG;;;;;;;;;;AAUlC,OAAO,IAAMC,YAAY,GAAG;EAC1BC,IAAI,EAAE;AACR,CAAU;;;;;AAKV;AACA;AACA;AACA;AACaC,IAAI,GADhBT,QAAQ,CAAAU,MAAA,IAAAC,KAAA,0BAAAC,gBAAA,YAAAH,KAAA,OAAAI,KAAA,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,KAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,I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AKJ,MAAI,CAACzE,QAAQ,CAAC,CAAC,GAC9DyE,MAAI,CAACzD,UACO,CAAC,CAEpB,CACqB,CAAC,CAE5B,CAAC,QAAA9B,IAAA,GAlC0FjB,KAAK,CAAC6G,SAAS,GAAA1F,KAAA,CAI5F2F,mBAAmB,GAAG,MAAM,EAAA3F,KAAA,CAC5B4F,WAAW,GAAG,MAAM,EAAA5F,KAAA,CAEpBa,YAAY,GAAiB,EACzCoB,GAAG,EAAE,SAAS,EACdK,SAAS,EAAE3C,sBAAsB,CACnC,CAAC,EAAAK,KAAA,MAAAD,MAAA;;;AA8IH,IAAMuB,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAqB,EAA8B;EACxE,OAAOA,KAAK,CAACe,SAAS,KAAK,GAAG;AAChC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","globalObject","resetButton","keyListener","ThemeContext","isExternalLink","CommonWrapper","cx","rootNode","createPropsGetter","ThemeFactory","getVisualStateDataAttributes","styles","LinkIcon","LINK_DEFAULT_COMPONENT","LinkDataTids","root","Link","_class","_Link","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","focusedByTab","getTabIndex","_ref","nonInteractive","_ref$tabIndex","tabIndex","getRel","isAnchorProps","props","_this$props","rel","href","undefined","renderMain","_cx","disabled","icon","rightIcon","use","loading","_button","_buttonOpened","Root","component","_props$focused","focused","error","warning","theme","rest","_objectWithoutPropertiesLoose","_excluded","arrow","createElement","className","isFocused","leftIconElement","position","rightIconElement","hasBothIcons","getUseStyles","danger","success","grayed","getUseLineFocusStyles","lineFocus","lineFocusDanger","lineFocusSuccess","lineFocusGrayed","rootProps","_extends","focus","useGrayedFocus","button","buttonOpened","onClick","handleClick","onFocus","handleFocus","onBlur","handleBlur","children","requestAnimationFrame","isTabPressed","setState","event","_this$props2","_inheritsLoose","_proto","prototype","render","_this2","Consumer","create","rootNodeRef","setRootNode","Component","__KONTUR_REACT_UI__","displayName"],"sources":["Link.tsx"],"sourcesContent":["import React from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { resetButton } from '../../lib/styles/Mixins';\nimport { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\nimport { keyListener } from '../../lib/events/keyListener';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { isExternalLink } from '../../lib/utils';\nimport { CommonProps, CommonWrapper, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { createPropsGetter, DefaultizedProps } from '../../lib/createPropsGetter';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\n\nimport { styles } from './Link.styles';\nimport { LinkIcon } from './LinkIcon';\n\nexport interface LinkInnerProps extends CommonProps {\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Добавляет иконку слева. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа. */\n rightIcon?: React.ReactElement;\n\n /** Задает тему ссылки. */\n use?: 'default' | 'success' | 'danger' | 'grayed';\n\n /** @ignore */\n _button?: boolean;\n\n /** @ignore */\n _buttonOpened?: boolean;\n\n /** Задает HTML-атрибут `tabindex`. */\n tabIndex?: number;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n\n /** Задает состояние фокуса.\n * @ignore */\n focused?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n}\n\nconst LINK_DEFAULT_COMPONENT = 'a';\n\nexport type LinkProps<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> = PolymorphicPropsWithoutRef<\n LinkInnerProps,\n C\n>;\nexport interface LinkState {\n focusedByTab: boolean;\n}\n\nexport const LinkDataTids = {\n root: 'Link__root',\n} as const;\n\ntype DefaultProps = Required<Pick<LinkProps<ButtonLinkAllowedValues>, 'use' | 'component'>>;\ntype DefaultizedLinkProps = DefaultizedProps<LinkProps<ButtonLinkAllowedValues>, DefaultProps>;\n\n/**\n * Элемент ссылки из HTML.\n */\n@rootNode\nexport class Link<C extends ButtonLinkAllowedValues = typeof LINK_DEFAULT_COMPONENT> extends React.Component<\n LinkProps<C>,\n LinkState\n> {\n public static __KONTUR_REACT_UI__ = 'Link';\n public static displayName = 'Link';\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n component: LINK_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Link.defaultProps);\n\n public state: LinkState = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n\n public render(): JSX.Element {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = this.props.theme ? ThemeFactory.create(this.props.theme as Theme, theme) : theme;\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex = ({\n nonInteractive,\n tabIndex = 0,\n }: {\n nonInteractive: boolean | undefined;\n tabIndex: number | undefined;\n }) => {\n return nonInteractive ? -1 : tabIndex;\n };\n\n private getRel = () => {\n if (isAnchorProps(this.props)) {\n const { rel, href } = this.props;\n if (!rel && href) {\n return `noopener${isExternalLink(href) ? ' noreferrer' : ''}`;\n }\n return rel;\n }\n\n return undefined;\n };\n\n private renderMain = (props: CommonWrapperRestProps<DefaultizedLinkProps>) => {\n const {\n disabled,\n icon,\n rightIcon,\n use,\n loading,\n _button,\n _buttonOpened,\n component: Root,\n focused = false,\n error,\n warning,\n tabIndex,\n theme,\n ...rest\n } = props;\n\n let arrow = null;\n if (_button) {\n arrow = <span className={styles.arrow()} />;\n }\n\n const isFocused = !disabled && (this.state.focusedByTab || focused);\n\n const leftIconElement = icon && <LinkIcon icon={icon} loading={loading} position=\"left\" />;\n const rightIconElement = rightIcon && (\n <LinkIcon hasBothIcons={!!icon && !!rightIcon} icon={rightIcon} loading={loading} position=\"right\" />\n );\n const nonInteractive = disabled || loading;\n const getUseStyles = () => {\n switch (use) {\n case 'default':\n return styles.default(this.theme);\n case 'danger':\n return styles.danger(this.theme);\n case 'success':\n return styles.success(this.theme);\n case 'grayed':\n return styles.grayed(this.theme);\n }\n };\n const getUseLineFocusStyles = () => {\n switch (use) {\n case 'default':\n return styles.lineFocus(this.theme);\n case 'danger':\n return styles.lineFocusDanger(this.theme);\n case 'success':\n return styles.lineFocusSuccess(this.theme);\n case 'grayed':\n return styles.lineFocusGrayed(this.theme);\n }\n };\n const rootProps = {\n ...rest,\n className: cx({\n [styles.root(this.theme)]: true,\n [resetButton()]: Root === 'button',\n [styles.focus(this.theme)]: isFocused,\n [styles.disabled(this.theme)]: disabled || loading,\n [getUseStyles()]: true,\n [styles.useGrayedFocus(this.theme)]: use === 'grayed' && focused,\n [styles.button(this.theme)]: !!_button,\n [styles.buttonOpened(this.theme)]: !!_buttonOpened,\n [styles.warning(this.theme)]: warning,\n [styles.error(this.theme)]: error,\n [getUseLineFocusStyles()]: isFocused,\n }),\n onClick: this.handleClick,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ nonInteractive, tabIndex }),\n rel: this.getRel(),\n };\n\n return (\n <Root data-tid={LinkDataTids.root} {...rootProps} {...getVisualStateDataAttributes({ disabled })}>\n {leftIconElement}\n {this.props.children}\n {rightIconElement}\n {arrow}\n </Root>\n );\n };\n\n private handleFocus = () => {\n if (!this.props.disabled) {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n this.setState({ focusedByTab: true });\n }\n });\n }\n };\n\n private handleBlur = () => {\n this.setState({ focusedByTab: false });\n };\n\n private handleClick = (event: React.MouseEvent) => {\n const { onClick, disabled, loading } = this.props;\n\n if (onClick && !disabled && !loading) {\n onClick(event);\n }\n };\n}\n\nconst isAnchorProps = (props: LinkProps<any>): props is LinkProps<'a'> => {\n return props.component === 'a';\n};\n"],"mappings":"uZAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,0BAA0B;;;AAGvD,SAASC,WAAW,QAAQ,yBAAyB;;AAErD,SAASC,WAAW,QAAQ,8BAA8B;;AAE1D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,iBAAiB;AAChD,SAAsBC,aAAa,QAAgC,8BAA8B;AACjG,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,QAAQ,QAAsB,oBAAoB;AAC3D,SAASC,iBAAiB,QAA0B,6BAA6B;AACjF,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,4BAA4B,QAAQ,iEAAiE;;AAE9G,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,QAAQ,QAAQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCrC,IAAMC,sBAAsB,GAAG,GAAG;;;;;;;;;;AAUlC,OAAO,IAAMC,YAAY,GAAG;EAC1BC,IAAI,EAAE;AACR,CAAU;;;;;AAKV;AACA;AACA;AACA;AACaC,IAAI,GADhBT,QAAQ,CAAAU,MAAA,IAAAC,KAAA,0BAAAC,gBAAA,YAAAH,KAAA,OAAAI,KAAA,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,KAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA,GAAAN,KAAA,GAAAD,gBAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,g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AAEH,MAAI,CAACI,WAAY,IAAKJ,MAAI,CAAC1E,QAAQ,CAAC,CAAC,GAC9D0E,MAAI,CAAC1D,UACO,CAAC,CAEpB,CACqB,CAAC,CAE5B,CAAC,QAAA9B,IAAA,GAlC0FjB,KAAK,CAAC8G,SAAS,GAAA3F,KAAA,CAI5F4F,mBAAmB,GAAG,MAAM,EAAA5F,KAAA,CAC5B6F,WAAW,GAAG,MAAM,EAAA7F,KAAA,CAEpBa,YAAY,GAAiB,EACzCoB,GAAG,EAAE,SAAS,EACdK,SAAS,EAAE3C,sBAAsB,CACnC,CAAC,EAAAK,KAAA,MAAAD,MAAA;;;AA+JH,IAAMuB,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAqB,EAA8B;EACxE,OAAOA,KAAK,CAACe,SAAS,KAAK,GAAG;AAChC,CAAC","ignoreList":[]}
@@ -32,16 +32,16 @@ export var styles = memoizeStyle({
32
32
  arrow: function arrow() {
33
33
  return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n border: 4px solid transparent;\n border-bottom-width: 0;\n border-top-color: #a0a0a0;\n display: inline-block;\n margin-bottom: 3px;\n margin-left: 3px;\n vertical-align: middle;\n "])));
34
34
  },
35
- useDefault: function useDefault(t) {
35
+ "default": function _default(t) {
36
36
  return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), linkUseColorsMixin(t.linkColor, t.linkHoverColor, t.linkActiveColor));
37
37
  },
38
- useSuccess: function useSuccess(t) {
38
+ success: function success(t) {
39
39
  return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), linkUseColorsMixin(t.linkSuccessColor, t.linkSuccessHoverColor, t.linkSuccessActiveColor));
40
40
  },
41
- useDanger: function useDanger(t) {
41
+ danger: function danger(t) {
42
42
  return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), linkUseColorsMixin(t.linkDangerColor, t.linkDangerHoverColor, t.linkDangerActiveColor));
43
43
  },
44
- useGrayed: function useGrayed(t) {
44
+ grayed: function grayed(t) {
45
45
  return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n ", ";\n "])), linkUseColorsMixin(t.linkGrayedColor, t.linkGrayedHoverColor, t.linkGrayedActiveColor));
46
46
  },
47
47
  useGrayedFocus: function useGrayedFocus(t) {
@@ -1 +1 @@
1
- {"version":3,"names":["css","keyframes","memoizeStyle","linkDisabledMixin","linkUseColorsMixin","line","_templateObject","_taggedTemplateLiteralLoose","oldLineText","t","delay","parseFloat","linkTextUnderlineOpacity","_templateObject2","styles","root","_templateObject3","linkTextDecoration","linkTextDecorationStyle","linkTextUnderlineOffset","linkTextDecorationThickness","transitionDuration","transitionTimingFunction","linkTextDecorationColor","linkHoverTextDecorationStyle","lineFocus","_templateObject4","linkHoverColor","lineFocusSuccess","_templateObject5","linkSuccessHoverColor","lineFocusDanger","_templateObject6","linkDangerHoverColor","lineFocusGrayed","_templateObject7","linkGrayedHoverColor","button","_templateObject8","linkButtonLineHeight","linkButtonPaddingX","buttonOpened","_templateObject9","btnDefaultActiveBg","arrow","_templateObject10","useDefault","_templateObject11","linkColor","linkActiveColor","useSuccess","_templateObject12","linkSuccessColor","linkSuccessActiveColor","useDanger","_templateObject13","linkDangerColor","linkDangerActiveColor","useGrayed","_templateObject14","linkGrayedColor","linkGrayedActiveColor","useGrayedFocus","_templateObject15","linkDisabledColor","focus","_templateObject16","linkHoverTextDecoration","linkFocusOutline","disabled","_templateObject17","icon","_templateObject18","iconLeft","_templateObject19","linkIconMarginRight","iconRight","_templateObject20","linkIconMarginLeft","warning","_templateObject21","btnWarningSecondary","error","_templateObject22","btnErrorSecondary"],"sources":["Link.styles.ts"],"sourcesContent":["import { css, keyframes, memoizeStyle } from '../../lib/theming/Emotion';\nimport { Theme } from '../../lib/theming/Theme';\n\nimport { linkDisabledMixin, linkUseColorsMixin } from './Link.mixins';\n\nconst line = keyframes`\n 0% {\n text-decoration-color: inherit;\n }\n 100% {\n text-decoration-color: transparent;\n }\n`;\n\nconst oldLineText = function (t: Theme) {\n const delay = parseFloat(t.linkTextUnderlineOpacity) - 1;\n return css`\n animation: ${line} 1s linear !important; // override creevey\n animation-play-state: paused !important;\n animation-delay: ${delay}s !important;\n animation-fill-mode: forwards !important;\n `;\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n return css`\n cursor: pointer;\n position: relative;\n\n border-radius: 1px;\n text-decoration: ${t.linkTextDecoration};\n text-decoration-style: ${t.linkTextDecorationStyle};\n text-underline-offset: ${t.linkTextUnderlineOffset};\n text-decoration-thickness: ${t.linkTextDecorationThickness};\n transition: text-decoration-color ${t.transitionDuration} ${t.transitionTimingFunction};\n @supports (text-decoration-color: ${t.linkTextDecorationColor}) {\n text-decoration-color: ${t.linkTextDecorationColor};\n &:hover {\n text-decoration-color: currentColor;\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n }\n }\n @supports not (text-decoration-color: ${t.linkTextDecorationColor}) {\n ${oldLineText(t)};\n &:hover {\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n animation: none !important;\n }\n }\n `;\n },\n\n lineFocus(t: Theme) {\n return css`\n color: ${t.linkHoverColor};\n `;\n },\n\n lineFocusSuccess(t: Theme) {\n return css`\n color: ${t.linkSuccessHoverColor} !important;\n `;\n },\n\n lineFocusDanger(t: Theme) {\n return css`\n color: ${t.linkDangerHoverColor} !important;\n `;\n },\n\n lineFocusGrayed(t: Theme) {\n return css`\n color: ${t.linkGrayedHoverColor} !important;\n `;\n },\n\n button(t: Theme) {\n return css`\n display: inline-block;\n line-height: ${t.linkButtonLineHeight};\n padding-left: ${t.linkButtonPaddingX};\n padding-right: ${t.linkButtonPaddingX};\n `;\n },\n\n buttonOpened(t: Theme) {\n return css`\n background: ${t.btnDefaultActiveBg};\n `;\n },\n\n arrow() {\n return css`\n border: 4px solid transparent;\n border-bottom-width: 0;\n border-top-color: #a0a0a0;\n display: inline-block;\n margin-bottom: 3px;\n margin-left: 3px;\n vertical-align: middle;\n `;\n },\n\n useDefault(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkColor, t.linkHoverColor, t.linkActiveColor)};\n `;\n },\n\n useSuccess(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkSuccessColor, t.linkSuccessHoverColor, t.linkSuccessActiveColor)};\n `;\n },\n\n useDanger(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkDangerColor, t.linkDangerHoverColor, t.linkDangerActiveColor)};\n `;\n },\n\n useGrayed(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkGrayedColor, t.linkGrayedHoverColor, t.linkGrayedActiveColor)};\n `;\n },\n\n useGrayedFocus(t: Theme) {\n return css`\n color: ${t.linkDisabledColor};\n `;\n },\n\n focus(t: Theme) {\n return css`\n text-decoration: ${t.linkHoverTextDecoration};\n outline: ${t.linkFocusOutline};\n `;\n },\n\n disabled(t: Theme) {\n return css`\n ${linkDisabledMixin()};\n\n color: ${t.linkDisabledColor} !important; // override root color\n\n &:hover {\n color: ${t.linkDisabledColor};\n }\n `;\n },\n\n icon() {\n return css`\n display: inline-block;\n `;\n },\n\n iconLeft(t: Theme) {\n return css`\n margin-right: ${t.linkIconMarginRight};\n `;\n },\n\n iconRight(t: Theme) {\n return css`\n margin-left: ${t.linkIconMarginLeft};\n `;\n },\n\n warning(t: Theme) {\n return css`\n background-color: ${t.btnWarningSecondary};\n box-shadow: 0 0 0 2px ${t.btnWarningSecondary};\n `;\n },\n\n error(t: Theme) {\n return css`\n background-color: ${t.btnErrorSecondary};\n box-shadow: 0 0 0 2px ${t.btnErrorSecondary};\n `;\n },\n});\n"],"mappings":"2fAAA,SAASA,GAAG,EAAEC,SAAS,EAAEC,YAAY,QAAQ,2BAA2B;;;AAGxE,SAASC,iBAAiB,EAAEC,kBAAkB,QAAQ,eAAe;;AAErE,IAAMC,IAAI,GAAGJ,SAAS,CAAAK,eAAA,KAAAA,eAAA,GAAAC,2BAAA,oHAO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C,CAACqE,kBAAkB;;EAEvC,CAAC;;EAEDC,OAAO,WAAAA,QAACtE,CAAQ,EAAE;IAChB,OAAOT,GAAG,CAAAgF,iBAAA,KAAAA,iBAAA,GAAAzE,2BAAA;IACYE,CAAC,CAACwE,mBAAmB;IACjBxE,CAAC,CAACwE,mBAAmB;;EAEjD,CAAC;;EAEDC,KAAK,WAAAA,MAACzE,CAAQ,EAAE;IACd,OAAOT,GAAG,CAAAmF,iBAAA,KAAAA,iBAAA,GAAA5E,2BAAA;IACYE,CAAC,CAAC2E,iBAAiB;IACf3E,CAAC,CAAC2E,iBAAiB;;EAE/C;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["css","keyframes","memoizeStyle","linkDisabledMixin","linkUseColorsMixin","line","_templateObject","_taggedTemplateLiteralLoose","oldLineText","t","delay","parseFloat","linkTextUnderlineOpacity","_templateObject2","styles","root","_templateObject3","linkTextDecoration","linkTextDecorationStyle","linkTextUnderlineOffset","linkTextDecorationThickness","transitionDuration","transitionTimingFunction","linkTextDecorationColor","linkHoverTextDecorationStyle","lineFocus","_templateObject4","linkHoverColor","lineFocusSuccess","_templateObject5","linkSuccessHoverColor","lineFocusDanger","_templateObject6","linkDangerHoverColor","lineFocusGrayed","_templateObject7","linkGrayedHoverColor","button","_templateObject8","linkButtonLineHeight","linkButtonPaddingX","buttonOpened","_templateObject9","btnDefaultActiveBg","arrow","_templateObject10","_default","_templateObject11","linkColor","linkActiveColor","success","_templateObject12","linkSuccessColor","linkSuccessActiveColor","danger","_templateObject13","linkDangerColor","linkDangerActiveColor","grayed","_templateObject14","linkGrayedColor","linkGrayedActiveColor","useGrayedFocus","_templateObject15","linkDisabledColor","focus","_templateObject16","linkHoverTextDecoration","linkFocusOutline","disabled","_templateObject17","icon","_templateObject18","iconLeft","_templateObject19","linkIconMarginRight","iconRight","_templateObject20","linkIconMarginLeft","warning","_templateObject21","btnWarningSecondary","error","_templateObject22","btnErrorSecondary"],"sources":["Link.styles.ts"],"sourcesContent":["import { css, keyframes, memoizeStyle } from '../../lib/theming/Emotion';\nimport { Theme } from '../../lib/theming/Theme';\n\nimport { linkDisabledMixin, linkUseColorsMixin } from './Link.mixins';\n\nconst line = keyframes`\n 0% {\n text-decoration-color: inherit;\n }\n 100% {\n text-decoration-color: transparent;\n }\n`;\n\nconst oldLineText = function (t: Theme) {\n const delay = parseFloat(t.linkTextUnderlineOpacity) - 1;\n return css`\n animation: ${line} 1s linear !important; // override creevey\n animation-play-state: paused !important;\n animation-delay: ${delay}s !important;\n animation-fill-mode: forwards !important;\n `;\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n return css`\n cursor: pointer;\n position: relative;\n\n border-radius: 1px;\n text-decoration: ${t.linkTextDecoration};\n text-decoration-style: ${t.linkTextDecorationStyle};\n text-underline-offset: ${t.linkTextUnderlineOffset};\n text-decoration-thickness: ${t.linkTextDecorationThickness};\n transition: text-decoration-color ${t.transitionDuration} ${t.transitionTimingFunction};\n @supports (text-decoration-color: ${t.linkTextDecorationColor}) {\n text-decoration-color: ${t.linkTextDecorationColor};\n &:hover {\n text-decoration-color: currentColor;\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n }\n }\n @supports not (text-decoration-color: ${t.linkTextDecorationColor}) {\n ${oldLineText(t)};\n &:hover {\n text-decoration-style: ${t.linkHoverTextDecorationStyle};\n animation: none !important;\n }\n }\n `;\n },\n lineFocus(t: Theme) {\n return css`\n color: ${t.linkHoverColor};\n `;\n },\n\n lineFocusSuccess(t: Theme) {\n return css`\n color: ${t.linkSuccessHoverColor} !important;\n `;\n },\n\n lineFocusDanger(t: Theme) {\n return css`\n color: ${t.linkDangerHoverColor} !important;\n `;\n },\n\n lineFocusGrayed(t: Theme) {\n return css`\n color: ${t.linkGrayedHoverColor} !important;\n `;\n },\n\n button(t: Theme) {\n return css`\n display: inline-block;\n line-height: ${t.linkButtonLineHeight};\n padding-left: ${t.linkButtonPaddingX};\n padding-right: ${t.linkButtonPaddingX};\n `;\n },\n\n buttonOpened(t: Theme) {\n return css`\n background: ${t.btnDefaultActiveBg};\n `;\n },\n\n arrow() {\n return css`\n border: 4px solid transparent;\n border-bottom-width: 0;\n border-top-color: #a0a0a0;\n display: inline-block;\n margin-bottom: 3px;\n margin-left: 3px;\n vertical-align: middle;\n `;\n },\n\n default(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkColor, t.linkHoverColor, t.linkActiveColor)};\n `;\n },\n\n success(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkSuccessColor, t.linkSuccessHoverColor, t.linkSuccessActiveColor)};\n `;\n },\n\n danger(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkDangerColor, t.linkDangerHoverColor, t.linkDangerActiveColor)};\n `;\n },\n\n grayed(t: Theme) {\n return css`\n ${linkUseColorsMixin(t.linkGrayedColor, t.linkGrayedHoverColor, t.linkGrayedActiveColor)};\n `;\n },\n\n useGrayedFocus(t: Theme) {\n return css`\n color: ${t.linkDisabledColor};\n `;\n },\n\n focus(t: Theme) {\n return css`\n text-decoration: ${t.linkHoverTextDecoration};\n outline: ${t.linkFocusOutline};\n `;\n },\n\n disabled(t: Theme) {\n return css`\n ${linkDisabledMixin()};\n\n color: ${t.linkDisabledColor} !important; // override root color\n\n &:hover {\n color: ${t.linkDisabledColor};\n }\n `;\n },\n\n icon() {\n return css`\n display: inline-block;\n `;\n },\n\n iconLeft(t: Theme) {\n return css`\n margin-right: ${t.linkIconMarginRight};\n `;\n },\n\n iconRight(t: Theme) {\n return css`\n margin-left: ${t.linkIconMarginLeft};\n `;\n },\n\n warning(t: Theme) {\n return css`\n background-color: ${t.btnWarningSecondary};\n box-shadow: 0 0 0 2px ${t.btnWarningSecondary};\n `;\n },\n\n error(t: Theme) {\n return css`\n background-color: ${t.btnErrorSecondary};\n box-shadow: 0 0 0 2px ${t.btnErrorSecondary};\n `;\n },\n});\n"],"mappings":"2fAAA,SAASA,GAAG,EAAEC,SAAS,EAAEC,YAAY,QAAQ,2BAA2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