@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
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactIs","_globalObject","delay","exports","ms","Promise","resolve","globalObject","setTimeout","emptyHandler","CancelationError","_Error","_this","_len","arguments","length","args","Array","_key","call","apply","concat","code","_inheritsLoose2","default","_wrapNativeSuper2","Error","taskWithDelay","task","cancelationToken","reject","then","catch","isFunction","x","isFunctionalComponent","Component","Boolean","prototype","isReactComponent","isClassComponent","isIntrinsicElement","element","type","isRefableElement","isForwardRef","escapeRegExpSpecChars","s","replace","getRandomID","Math","random","toString","slice","isExternalLink","link","isBrowser","RegExp","location","host","test","isReactUINode","componentName","node","React","isValidElement","Object","hasOwnProperty","__KONTUR_REACT_UI__","KB","UNITS","calculateDecimals","decimals","formatBytes","bytes","calculatedDecimals","i","floor","log2","formattedBytes","parseFloat","pow","toFixed","isNonNullable","value","undefined","isNullable","isReactUIComponent","name","child","_child$type","mergeRefs","refs","forEach","ref","current","extractDataProps","props","dataProps","restWithoutDataProps","entries","map","_ref","startsWith","startsWithOneOf","searchKeys","inputString","keyIndex","findIndex","key","isInputLike","isKonturIcon","icon","clickOutside","event","document","createEvent","initEvent","body","dispatchEvent"],"sources":["utils.ts"],"sourcesContent":["import React from 'react';\nimport { isForwardRef } from 'react-is';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\n\nimport { CurrencyInputProps } from '../components/CurrencyInput';\nimport { PasswordInputProps } from '../components/PasswordInput';\nimport { InputProps } from '../components/Input';\nimport { AutocompleteProps } from '../components/Autocomplete';\nimport { FxInputProps } from '../components/FxInput';\n\n// NOTE: Copy-paste from @types/react\nexport type Defaultize<P, D> = P extends any\n ? string extends keyof P\n ? P\n : Pick<P, Exclude<keyof P, keyof D>> &\n Partial<Pick<P, Extract<keyof P, keyof D>>> &\n Partial<Pick<D, Exclude<keyof D, keyof P>>>\n : never;\n\nexport type DefaultizeProps<C, P> = C extends { defaultProps: infer D } ? Defaultize<P, D> : P;\n\nexport type AnyObject = Record<string, unknown>;\n\nexport type NoInfer<T> = T extends infer U ? U : never;\n\nexport const delay = (ms: number) => new Promise((resolve) => globalObject.setTimeout(resolve, ms));\n\nexport const emptyHandler = () => {\n /* noop */\n};\n\nexport class CancelationError extends Error {\n public code = 'CancelationError';\n}\n\nexport function taskWithDelay(task: () => void, ms: number) {\n let cancelationToken: () => void = () => null;\n\n new Promise((resolve, reject) => {\n cancelationToken = reject;\n globalObject.setTimeout(resolve, ms);\n })\n .then(task)\n .catch(() => null);\n\n return cancelationToken;\n}\n\nexport type FunctionWithParams<R = any> = (...args: any[]) => R;\nexport function isFunction<T>(x: T | FunctionWithParams): x is FunctionWithParams {\n return typeof x === 'function';\n}\n\nexport function isFunctionalComponent(Component: unknown): Component is React.ComponentType {\n return Boolean(typeof Component === 'function' && !(Component.prototype && Component.prototype.isReactComponent));\n}\n\nexport function isClassComponent(Component: unknown): Component is React.ComponentType {\n return Boolean(typeof Component === 'function' && Component.prototype && Component.prototype.isReactComponent);\n}\n\nexport function isIntrinsicElement(element: React.ReactElement): boolean {\n return typeof element.type === 'string';\n}\n\nexport function isRefableElement(element: React.ReactElement): boolean {\n return Boolean(isIntrinsicElement(element) || isClassComponent(element.type) || isForwardRef(element));\n}\n\nexport function escapeRegExpSpecChars(s: string): string {\n return s.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\n\nexport const getRandomID = (): string => Math.random().toString(16).slice(2);\n\nexport const isExternalLink = (link: string): boolean => {\n return isBrowser(globalObject) && new RegExp(`^(https?:)?//(?!${globalObject.location.host})\\\\S+`, 'gi').test(link);\n};\n\n/**\n * Check if the given ReactNode is an element of the specified ReactUI component\n */\nexport const isReactUINode = (componentName: string, node: React.ReactNode): boolean => {\n if (React.isValidElement(node)) {\n return (\n Object.prototype.hasOwnProperty.call(node.type, '__KONTUR_REACT_UI__') &&\n // @ts-expect-error: React doesn't know about existence of __KONTUR_REACT_UI__.\n node.type.__KONTUR_REACT_UI__ === componentName\n );\n }\n\n return false;\n};\n\nconst KB = 1024;\nconst UNITS = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\nconst calculateDecimals = (decimals: number) => {\n if (decimals < 0) {\n return 0;\n }\n\n return 0;\n};\n\nexport const formatBytes = (bytes: number, decimals = 2): string | null => {\n if (bytes === 0) {\n return '0 Bytes';\n }\n\n if (!bytes) {\n return null;\n }\n\n const calculatedDecimals = calculateDecimals(decimals);\n\n const i = Math.floor(Math.log2(bytes) / Math.log2(KB));\n const formattedBytes = parseFloat((bytes / Math.pow(KB, i)).toFixed(calculatedDecimals));\n\n return `${formattedBytes} ${UNITS[i]}`;\n};\n\n/**\n * Проверяет, не является ли переданный аргумент null или undefined и исключает типы null и undefined из типа аргумента\n *\n * @param value Значение, которое нужно проверить и исключить из него типы\n * @returns Возвращает true, если переданный аргумент не является null или undefined иначе false\n */\nexport const isNonNullable = <T>(value: T): value is NonNullable<T> => {\n return value !== null && value !== undefined;\n};\n\n/**\n * Checks if the value `null` or `undefined`.\n *\n * @param value Value to check for `null` and `undefined`.\n * @returns Returns `true` if `value` is `null` or `undefined`, else `false`.\n */\nexport const isNullable = (value: unknown): value is null | undefined => {\n return value === null || value === undefined;\n};\n\n/**\n * Creates a function that checks if the given `child`\n * is an instance of some component specified by `name`.\n *\n * @param name Component name for which function will be created.\n * @returns A function that checks if the given `child` is an instance of the component specified by `name`.\n */\nexport const isReactUIComponent = <P = any>(name: string) => {\n return (child: React.ReactNode): child is React.ReactElement<P> => {\n // @ts-expect-error: Property `type` doesn't exist on type `React.ReactNode`, but exists on type `React.ReactElement` meanwhile `React.ReactElement` is not compatible with `React` `children` type.\n return child?.type?.__KONTUR_REACT_UI__ === name;\n };\n};\n\n/**\n * Merges two or more refs into one.\n *\n * @param refs Array of refs.\n * @returns A single ref composing all the refs passed.\n *\n * @example\n * const SomeComponent = forwardRef((props, ref) => {\n * const localRef = useRef();\n *\n * return <div ref={mergeRefs([localRef, ref])} />;\n * });\n */\nexport function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>): React.RefCallback<T> {\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (isNonNullable(ref)) {\n return ((ref as React.MutableRefObject<T | null>).current = value);\n }\n });\n };\n}\n\n/**\n * Extracts all data attributes from props and returns them as well as props.\n *\n * @param props Props object to extract data attributes from.\n * @returns Separated data attributes and all other props.\n */\nexport const extractDataProps = <T extends Record<string, any>>(props: T) => {\n const dataProps: Record<string, any> = {};\n const restWithoutDataProps: Record<string, any> = {};\n\n Object.entries(props).map(([name, value]) => {\n if (name.startsWith('data-')) {\n return (dataProps[name] = value);\n }\n\n return (restWithoutDataProps[name] = value);\n });\n\n return { dataProps, restWithoutDataProps };\n};\n\n/**\n * Basically `.startsWith` for arrays.\n *\n * @param searchKeys Array of strings to test against `inputString`.\n * @param inputString String on which search will be performed.\n * @returns `true` if `inputString` starts with one of keys, else `false`.\n */\nexport const startsWithOneOf = (searchKeys: string[], inputString: string) => {\n const keyIndex = searchKeys.findIndex((key) => {\n return inputString.startsWith(key);\n });\n\n return keyIndex >= 0;\n};\n\nexport const isInputLike =\n isReactUIComponent<InputProps>('Input') ||\n isReactUIComponent<FxInputProps>('FxInput') ||\n isReactUIComponent<AutocompleteProps>('Autocomplete') ||\n isReactUIComponent<PasswordInputProps>('PasswordInput') ||\n isReactUIComponent<CurrencyInputProps>('CurrencyInput');\n\nexport const isKonturIcon = (icon: React.ReactElement) => {\n return Object.prototype.hasOwnProperty.call(icon?.type, '__KONTUR_ICON__');\n};\n\nexport function clickOutside() {\n const event = document.createEvent('HTMLEvents');\n event.initEvent('mousedown', true, true);\n\n document.body.dispatchEvent(event);\n}\n"],"mappings":"4jCAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;;;;;;;AAQA;;;;;;;;;;;;;;;AAeO,IAAMG,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,SAARA,KAAKA,CAAIE,EAAU,UAAK,IAAIC,OAAO,CAAC,UAACC,OAAO,UAAKC,0BAAY,CAACC,UAAU,CAACF,OAAO,EAAEF,EAAE,CAAC,GAAC;;AAE5F,IAAMK,YAAY,GAAAN,OAAA,CAAAM,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAAS;;EAChC,WACD,CAAC;;AAEWC,gBAAgB,GAAAP,OAAA,CAAAO,gBAAA,0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,CAACG,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC;;EAExCF,QAAQ,CAACG,IAAI,CAACC,aAAa,CAACL,KAAK,CAAC;AACpC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactIs","_globalObject","_delay","exports","delay","emptyHandler","CancelationError","_Error","_this","_len","arguments","length","args","Array","_key","call","apply","concat","code","_inheritsLoose2","default","_wrapNativeSuper2","Error","taskWithDelay","task","ms","cancelationToken","Promise","resolve","reject","globalObject","setTimeout","then","catch","isFunction","x","isFunctionalComponent","Component","Boolean","prototype","isReactComponent","isClassComponent","isIntrinsicElement","element","type","isRefableElement","isForwardRef","escapeRegExpSpecChars","s","replace","getRandomID","Math","random","toString","slice","isExternalLink","link","isBrowser","RegExp","location","host","test","isReactUINode","componentName","node","isValidElement","Object","hasOwnProperty","__KONTUR_REACT_UI__","KB","UNITS","calculateDecimals","decimals","formatBytes","bytes","calculatedDecimals","i","floor","log2","formattedBytes","parseFloat","pow","toFixed","isNonNullable","value","undefined","isNullable","isReactUIComponent","name","child","_child$type","mergeRefs","refs","forEach","ref","current","extractDataProps","props","dataProps","restWithoutDataProps","entries","map","_ref","startsWith","startsWithOneOf","searchKeys","inputString","keyIndex","findIndex","key","isButton","isInput","isFxInput","isAutocomplete","isPasswordInput","isCurrencyInput","isSelect","isDropdown","isDropdownMenu","isKonturIcon","icon","clickOutside","event","document","createEvent","initEvent","body","dispatchEvent"],"sources":["utils.ts"],"sourcesContent":["import type React from 'react';\nimport { isValidElement } from 'react';\nimport { isForwardRef } from 'react-is';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\n\nimport type { CurrencyInputProps } from '../components/CurrencyInput';\nimport type { PasswordInputProps } from '../components/PasswordInput';\nimport type { InputProps } from '../components/Input';\nimport type { AutocompleteProps } from '../components/Autocomplete';\nimport type { FxInputProps } from '../components/FxInput';\nimport type { SelectProps } from '../components/Select';\nimport type { DropdownProps } from '../components/Dropdown';\nimport type { DropdownMenuProps } from '../components/DropdownMenu';\nimport type { ButtonProps } from '../components/Button';\n\nexport { delay } from './delay';\n\n// NOTE: Copy-paste from @types/react\nexport type Defaultize<P, D> = P extends any\n ? string extends keyof P\n ? P\n : Pick<P, Exclude<keyof P, keyof D>> &\n Partial<Pick<P, Extract<keyof P, keyof D>>> &\n Partial<Pick<D, Exclude<keyof D, keyof P>>>\n : never;\n\nexport type DefaultizeProps<C, P> = C extends { defaultProps: infer D } ? Defaultize<P, D> : P;\n\nexport type AnyObject = Record<string, unknown>;\n\nexport type NoInfer<T> = T extends infer U ? U : never;\n\nexport const emptyHandler = () => {\n /* noop */\n};\n\nexport class CancelationError extends Error {\n public code = 'CancelationError';\n}\n\nexport function taskWithDelay(task: () => void, ms: number) {\n let cancelationToken: () => void = () => null;\n\n new Promise((resolve, reject) => {\n cancelationToken = reject;\n globalObject.setTimeout(resolve, ms);\n })\n .then(task)\n .catch(() => null);\n\n return cancelationToken;\n}\n\nexport type FunctionWithParams<R = any> = (...args: any[]) => R;\n\nexport function isFunction<T>(x: T | FunctionWithParams): x is FunctionWithParams {\n return typeof x === 'function';\n}\n\nexport function isFunctionalComponent(Component: unknown): Component is React.ComponentType {\n return Boolean(typeof Component === 'function' && !(Component.prototype && Component.prototype.isReactComponent));\n}\n\nexport function isClassComponent(Component: unknown): Component is React.ComponentType {\n return Boolean(typeof Component === 'function' && Component.prototype && Component.prototype.isReactComponent);\n}\n\nexport function isIntrinsicElement(element: React.ReactElement): boolean {\n return typeof element.type === 'string';\n}\n\nexport function isRefableElement(element: React.ReactElement): boolean {\n return Boolean(isIntrinsicElement(element) || isClassComponent(element.type) || isForwardRef(element));\n}\n\nexport function escapeRegExpSpecChars(s: string): string {\n return s.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\n\nexport const getRandomID = (): string => Math.random().toString(16).slice(2);\n\nexport const isExternalLink = (link: string): boolean => {\n return isBrowser(globalObject) && new RegExp(`^(https?:)?//(?!${globalObject.location.host})\\\\S+`, 'gi').test(link);\n};\n\n/**\n * Check if the given ReactNode is an element of the specified ReactUI component\n */\nexport const isReactUINode = (componentName: string, node: React.ReactNode): boolean => {\n if (isValidElement(node)) {\n return (\n Object.prototype.hasOwnProperty.call(node.type, '__KONTUR_REACT_UI__') &&\n // @ts-expect-error: React doesn't know about existence of __KONTUR_REACT_UI__.\n node.type.__KONTUR_REACT_UI__ === componentName\n );\n }\n\n return false;\n};\n\nconst KB = 1024;\nconst UNITS = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\nconst calculateDecimals = (decimals: number) => {\n if (decimals < 0) {\n return 0;\n }\n\n return 0;\n};\n\nexport const formatBytes = (bytes: number, decimals = 2): string | null => {\n if (bytes === 0) {\n return '0 Bytes';\n }\n\n if (!bytes) {\n return null;\n }\n\n const calculatedDecimals = calculateDecimals(decimals);\n\n const i = Math.floor(Math.log2(bytes) / Math.log2(KB));\n const formattedBytes = parseFloat((bytes / Math.pow(KB, i)).toFixed(calculatedDecimals));\n\n return `${formattedBytes} ${UNITS[i]}`;\n};\n\n/**\n * Проверяет, не является ли переданный аргумент null или undefined и исключает типы null и undefined из типа аргумента\n *\n * @param value Значение, которое нужно проверить и исключить из него типы\n * @returns Возвращает true, если переданный аргумент не является null или undefined иначе false\n */\nexport const isNonNullable = <T>(value: T): value is NonNullable<T> => {\n return value !== null && value !== undefined;\n};\n\n/**\n * Checks if the value `null` or `undefined`.\n *\n * @param value Value to check for `null` and `undefined`.\n * @returns Returns `true` if `value` is `null` or `undefined`, else `false`.\n */\nexport const isNullable = (value: unknown): value is null | undefined => {\n return value === null || value === undefined;\n};\n\n/**\n * Creates a function that checks if the given `child`\n * is an instance of some component specified by `name`.\n *\n * @param name Component name for which function will be created.\n * @returns A function that checks if the given `child` is an instance of the component specified by `name`.\n */\nexport const isReactUIComponent = <P = any>(name: string) => {\n return (child: React.ReactNode): child is React.ReactElement<P> => {\n // @ts-expect-error: Property `type` doesn't exist on type `React.ReactNode`, but exists on type `React.ReactElement` meanwhile `React.ReactElement` is not compatible with `React` `children` type.\n return child?.type?.__KONTUR_REACT_UI__ === name;\n };\n};\n\n/** @deprecated Переехал в `lib/mergeRefs.ts`. Со следующей мажорной версии от сюда будет удален*/\nexport function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>): React.RefCallback<T> {\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === 'function') {\n return ref(value);\n } else if (isNonNullable(ref)) {\n return ((ref as React.MutableRefObject<T | null>).current = value);\n }\n });\n };\n}\n\n/**\n * Extracts all data attributes from props and returns them as well as props.\n *\n * @param props Props object to extract data attributes from.\n * @returns Separated data attributes and all other props.\n */\nexport const extractDataProps = <T extends Record<string, any>>(props: T) => {\n const dataProps: Record<string, any> = {};\n const restWithoutDataProps: Record<string, any> = {};\n\n Object.entries(props).map(([name, value]) => {\n if (name.startsWith('data-')) {\n return (dataProps[name] = value);\n }\n\n return (restWithoutDataProps[name] = value);\n });\n\n return { dataProps, restWithoutDataProps };\n};\n\n/**\n * Basically `.startsWith` for arrays.\n *\n * @param searchKeys Array of strings to test against `inputString`.\n * @param inputString String on which search will be performed.\n * @returns `true` if `inputString` starts with one of keys, else `false`.\n */\nexport const startsWithOneOf = (searchKeys: string[], inputString: string) => {\n const keyIndex = searchKeys.findIndex((key) => {\n return inputString.startsWith(key);\n });\n\n return keyIndex >= 0;\n};\n\nexport const isButton = isReactUIComponent<ButtonProps>('Button');\nexport const isInput = isReactUIComponent<InputProps>('Input');\nexport const isFxInput = isReactUIComponent<FxInputProps>('FxInput');\nexport const isAutocomplete = isReactUIComponent<AutocompleteProps>('Autocomplete');\nexport const isPasswordInput = isReactUIComponent<PasswordInputProps>('PasswordInput');\nexport const isCurrencyInput = isReactUIComponent<CurrencyInputProps>('CurrencyInput');\nexport const isSelect = isReactUIComponent<SelectProps<unknown, unknown>>('Select');\nexport const isDropdown = isReactUIComponent<DropdownProps>('Dropdown');\nexport const isDropdownMenu = isReactUIComponent<DropdownMenuProps>('DropdownMenu');\n\nexport const isKonturIcon = (icon: React.ReactElement) => {\n return Object.prototype.hasOwnProperty.call(icon?.type, '__KONTUR_ICON__');\n};\n\nexport function clickOutside() {\n const event = document.createEvent('HTMLEvents');\n event.initEvent('mousedown', true, true);\n\n document.body.dispatchEvent(event);\n}\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;;;;;;;;;;;AAYA,IAAAG,MAAA,GAAAH,OAAA,YAAgCI,OAAA,CAAAC,KAAA,GAAAF,MAAA,CAAAE,KAAA;;AAEhC;;;;;;;;;;;;;;;AAeO,IAAMC,YAAY,GAAAF,OAAA,CAAAE,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAAS;;EAChC,WACD,CAAC;;AAEWC,gBAAgB,GAAAH,OAAA,CAAAG,gBAAA,0BAAAC,MAAA,YAAAD,iBAAA,OAAAE,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,MAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,MAAA,SAAAU,MAAA,CAAAL,IAAA,WAAAJ,KAAA;IACpBU,IAAI,GAAG,kBAAkB,QAAAV,KAAA,MAAAW,eAAA,CAAAC,OAAA,EAAAd,gBAAA,EAAAC,MAAA,SAAAD,gBAAA,qBAAAe,iBAAA,CAAAD,OAAA,EADIE,KAAK;;;AAIpC,SAASC,aAAaA,CAACC,IAAgB,EAAEC,EAAU,EAAE;EAC1D,IAAIC,gBAA4B,GAAG,SAAAA,iBAAA,UAAM,IAAI;;EAE7C,IAAIC,OAAO,CAAC,UAACC,OAAO,EAAEC,MAAM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, test } from 'creevey';
2
+
3
+ import { delay } from '../../../lib/delay';
4
+
5
+ const commonTests = () => {
6
+ test('focus and type text', async (context) => {
7
+ const screenshotElement = context.webdriver.findElement({
8
+ css: '#test-element',
9
+ });
10
+ const autocompleteElement = context.webdriver.findElement({
11
+ css: '[data-comp-name~="Autocomplete"]',
12
+ });
13
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElement).sendKeys('o').perform();
14
+ await delay(1000);
15
+ await context.matchImage(await screenshotElement.takeScreenshot());
16
+ });
17
+ };
18
+
19
+ const mobileHintsTests = () => {
20
+ test('noInputValue', async (context) => {
21
+ await context.webdriver
22
+ .actions({
23
+ bridge: true,
24
+ })
25
+ .click(context.webdriver.findElement({ css: 'input' }))
26
+ .perform();
27
+ await delay(200);
28
+ await context.matchImage(await context.webdriver.takeScreenshot(), 'noInputValue');
29
+ });
30
+
31
+ test('nothingWasFound', async (context) => {
32
+ await context.webdriver
33
+ .actions({
34
+ bridge: true,
35
+ })
36
+ .click(context.webdriver.findElement({ css: 'input' }))
37
+ .sendKeys('abc')
38
+ .perform();
39
+ await delay(200);
40
+ await context.matchImage(await context.webdriver.takeScreenshot(), 'nothingWasFound');
41
+ });
42
+
43
+ test('updateValue', async (context) => {
44
+ await context.webdriver
45
+ .actions({
46
+ bridge: true,
47
+ })
48
+ .click(context.webdriver.findElement({ css: 'input' }))
49
+ .sendKeys('one')
50
+ .perform();
51
+ await delay(200);
52
+ await context.webdriver
53
+ .actions({
54
+ bridge: true,
55
+ })
56
+ .click(context.webdriver.findElement({ css: '[data-comp-name~="MenuItem"]' }))
57
+ .click(context.webdriver.findElement({ css: 'input' }))
58
+ .perform();
59
+ await delay(200);
60
+ await context.matchImage(await context.webdriver.takeScreenshot(), 'updateValue');
61
+ });
62
+ };
63
+
64
+ const sizeTests = () => {
65
+ test('focus and type text small', async (context) => {
66
+ const screenshotElement = context.webdriver.findElement({
67
+ css: '#test-element',
68
+ });
69
+ const autocompleteElements = await context.webdriver.findElements({
70
+ css: '[data-comp-name~="Autocomplete"]',
71
+ });
72
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElements[0]).sendKeys('o').perform();
73
+ await delay(1000);
74
+ await context.matchImage(await screenshotElement.takeScreenshot());
75
+ });
76
+
77
+ test('focus and type text medium', async (context) => {
78
+ const screenshotElement = context.webdriver.findElement({
79
+ css: '#test-element',
80
+ });
81
+ const autocompleteElements = await context.webdriver.findElements({
82
+ css: '[data-comp-name~="Autocomplete"]',
83
+ });
84
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElements[1]).sendKeys('o').perform();
85
+ await delay(1000);
86
+ await context.matchImage(await screenshotElement.takeScreenshot());
87
+ });
88
+
89
+ test('focus and type text large', async (context) => {
90
+ const screenshotElement = context.webdriver.findElement({
91
+ css: '#test-element',
92
+ });
93
+ const autocompleteElements = await context.webdriver.findElements({
94
+ css: '[data-comp-name~="Autocomplete"]',
95
+ });
96
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElements[2]).sendKeys('o').perform();
97
+ await delay(1000);
98
+ await context.matchImage(await screenshotElement.takeScreenshot());
99
+ });
100
+ };
101
+
102
+ const menuPosTests = () => {
103
+ test('focus and type text menu top', async (context) => {
104
+ const screenshotElement = context.webdriver.findElement({ css: '#test-element' });
105
+ const autocompleteElements = await context.webdriver.findElements({ css: '[data-comp-name~="Autocomplete"]' });
106
+
107
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElements[0]).sendKeys('o').perform();
108
+ await delay(1000);
109
+
110
+ await context.matchImage(await screenshotElement.takeScreenshot());
111
+ });
112
+ test('focus and type text menu bottom', async (context) => {
113
+ const screenshotElement = context.webdriver.findElement({ css: '#test-element' });
114
+ const autocompleteElements = await context.webdriver.findElements({ css: '[data-comp-name~="Autocomplete"]' });
115
+
116
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElements[1]).sendKeys('o').perform();
117
+ await delay(1000);
118
+
119
+ await context.matchImage(await screenshotElement.takeScreenshot());
120
+ });
121
+ };
122
+
123
+ kind('Autocomplete', () => {
124
+ story('Simple', () => {
125
+ test('idle', async (context) => {
126
+ await context.matchImage(await context.takeScreenshot(), 'idle');
127
+ });
128
+
129
+ test('focused', async (context) => {
130
+ const autocompleteElement = context.webdriver.findElement({
131
+ css: '[data-comp-name~="Autocomplete"]',
132
+ });
133
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElement).perform();
134
+ await delay(1000);
135
+ await context.matchImage(await autocompleteElement.takeScreenshot());
136
+ });
137
+
138
+ commonTests();
139
+ });
140
+
141
+ story('WithRenderItem', () => {
142
+ commonTests();
143
+ });
144
+
145
+ story('WithBigRenderItemWidth', () => {
146
+ commonTests();
147
+ });
148
+
149
+ story('WithFixedMenuSize', () => {
150
+ commonTests();
151
+ });
152
+
153
+ story('WithPercentageWidth', () => {
154
+ commonTests();
155
+ });
156
+
157
+ story('WithFixedWidth', () => {
158
+ commonTests();
159
+ });
160
+
161
+ story('WithZeroWidth', () => {
162
+ commonTests();
163
+ });
164
+
165
+ story('MobileHints', () => {
166
+ mobileHintsTests();
167
+ });
168
+
169
+ story('MobileHintsEN', () => {
170
+ mobileHintsTests();
171
+ });
172
+
173
+ story('MobileWithTitle', () => {
174
+ test('opened', async (context) => {
175
+ await context.webdriver
176
+ .actions({
177
+ bridge: true,
178
+ })
179
+ .click(context.webdriver.findElement({ css: 'input' }))
180
+ .perform();
181
+ await delay(200);
182
+ await context.matchImage(await context.webdriver.takeScreenshot(), 'opened');
183
+ });
184
+ });
185
+
186
+ story('WithManualPosition', ({ setStoryParameters }) => {
187
+ setStoryParameters({
188
+ skip: {
189
+ 'no themes': { in: /^(?!\b(chrome2022|firefox2022)\b)/ },
190
+ flaky: {
191
+ in: ['firefox2022'],
192
+ tests: ['opened top with portal', 'opened bottom with portal'],
193
+ },
194
+ },
195
+ });
196
+
197
+ test('opened top with portal', async (context) => {
198
+ const screenshotElement = context.webdriver.findElement({
199
+ css: '#test-element',
200
+ });
201
+ const autocompleteElement = context.webdriver.findElement({
202
+ css: '[data-comp-name~="Autocomplete"]',
203
+ });
204
+ await context.webdriver.actions({ bridge: true }).click(autocompleteElement).sendKeys('o').perform();
205
+ await delay(1000);
206
+ await context.matchImage(await screenshotElement.takeScreenshot());
207
+ });
208
+
209
+ test('opened bottom with portal', async (context) => {
210
+ const screenshotElement = context.webdriver.findElement({
211
+ css: '#test-element',
212
+ });
213
+ const autocompleteElement = context.webdriver.findElement({
214
+ css: '[data-comp-name~="Autocomplete"]',
215
+ });
216
+ await context.webdriver
217
+ .actions({ bridge: true })
218
+ .click(context.webdriver.findElement({ css: '[data-tid~="pos"]' }))
219
+ .click(autocompleteElement)
220
+ .sendKeys('o')
221
+ .perform();
222
+ await delay(1000);
223
+ await context.matchImage(await screenshotElement.takeScreenshot());
224
+ });
225
+ });
226
+
227
+ story('Size', () => {
228
+ sizeTests();
229
+ });
230
+
231
+ story('WithDisabledPortal', () => {
232
+ commonTests();
233
+ menuPosTests();
234
+ });
235
+
236
+ story('MenuPos', () => {
237
+ menuPosTests();
238
+ });
239
+ });
@@ -6,7 +6,7 @@ var _excluded = ["children"],
6
6
  _excluded2 = ["corners", "active", "disabled", "borderless", "checked", "error", "warning", "loading", "narrow", "arrow", "icon", "rightIcon", "_noPadding", "_noRightPadding", "visuallyFocused", "align", "disableFocus", "width", "tabIndex", "component", "use", "size", "theme"];
7
7
  import React from 'react';
8
8
  import { globalObject } from '@skbkontur/global-object';
9
- import { isKonturIcon, isReactUIComponent } from "../../../lib/utils";
9
+ import { isKonturIcon } from "../../../lib/utils";
10
10
  import { isIE11, isEdge, isSafari } from "../../../lib/client";
11
11
  import { keyListener } from "../../../lib/events/keyListener";
12
12
  import { ThemeContext } from "../../../lib/theming/ThemeContext";
@@ -300,5 +300,4 @@ export var Button = rootNode(_class = (_Button = /*#__PURE__*/function (_React$C
300
300
  // input is focused. So we set type to 'button' by default.
301
301
  type: 'button',
302
302
  component: BUTTON_DEFAULT_COMPONENT
303
- }, _Button)) || _class;
304
- export var isButton = isReactUIComponent('Button');
303
+ }, _Button)) || _class;
@@ -1 +1 @@
1
- {"version":3,"names":["React","globalObject","isKonturIcon","isReactUIComponent","isIE11","isEdge","isSafari","keyListener","ThemeContext","CommonWrapper","cx","rootNode","ThemeFactory","createPropsGetter","Link","styles","activeStyles","globalClasses","ButtonIcon","getButtonIconSizes","useButtonArrow","getInnerLinkTheme","LoadingButtonIcon","BUTTON_DEFAULT_COMPONENT","ButtonDataTids","rootElement","root","spinner","SpanComponent","_ref","children","rest","_objectWithoutPropertiesLoose","_excluded","createElement","Button","_class","_Button","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","focusedByTab","node","renderMain","props","_cx","_cx4","_cx5","corners","active","disabled","borderless","checked","error","warning","loading","narrow","arrow","icon","rightIcon","_noPadding","_noRightPadding","visuallyFocused","align","disableFocus","width","tabIndex","_component","component","useProp","use","sizeProp","size","theme","_excluded2","_this$getProps","sizeClass","getSizeClassName","isFocused","isLink","_useButtonArrow","_extends","Boolean","rootClassNameWithArrow","arrowNode","isUseStateWithoutOutlineInDisabledState","includes","trueDisabled","rootClassName","noPadding","noRightPadding","disabledWithoutOutline","checkedDisabled","backlessDisabled","textDisabled","focus","checkedFocused","rootProps","className","style","textAlign","onFocus","handleFocus","onBlur","handleBlur","getTabIndex","wrapProps","wrap","getSizeWrapClassName","innerShadowNode","outlineNode","_cx2","outline","outlineWarning","outlineError","outlineLink","outlineLinkWarning","outlineLinkError","iconProps","hasChildren","leftIconNode","position","rightIconNode","hasBothIcons","_cx3","link","linkLineHeight","linkLineHeightSafariFallback","linkFocus","linkDisabled","Object","assign","wrapLink","undefined","hasLoadingNode","loadingNode","captionNode","caption","captionLink","captionDisabled","text","visibilityHidden","Provider","value","focused","renderIcon2022","Root","ref","e","requestAnimationFrame","isTabPressed","setState","_inheritsLoose","_proto","prototype","componentDidMount","autoFocus","getDerivedStateFromProps","_this$node","blur","_this$node2","render","_this2","Consumer","create","rootNodeRef","setRootNode","_ref2","_ref2$tabIndex","_icon$props$size","sizes","cloneElement","_cx6","_cx7","_cx8","sizeLarge","sizeLargeIE11","sizeLargeWithIcon","sizeLargeWithIconWithoutText","sizeMedium","sizeMediumIE11","sizeMediumWithIcon","sizeMediumWithIconWithoutText","sizeSmall","sizeSmallIE11","sizeSmallWithIcon","sizeSmallWithIconWithoutText","wrapLarge","wrapMedium","wrapSmall","Component","__KONTUR_REACT_UI__","displayName","__BUTTON__","type","isButton"],"sources":["Button.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { isKonturIcon, isReactUIComponent } from '../../lib/utils';\nimport { isIE11, isEdge, isSafari } from '../../lib/client';\nimport { keyListener } from '../../lib/events/keyListener';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { CommonWrapper, CommonProps, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { Link } from '../Link';\nimport { SizeProp } from '../../lib/types/props';\nimport { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\n\nimport { styles, activeStyles, globalClasses } from './Button.styles';\nimport { ButtonIcon, ButtonIconProps, getButtonIconSizes } from './ButtonIcon';\nimport { useButtonArrow } from './ButtonArrow';\nimport { getInnerLinkTheme } from './getInnerLinkTheme';\nimport { LoadingButtonIcon } from './LoadingButtonIcon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonUse = 'default' | 'primary' | 'success' | 'danger' | 'pay' | 'link' | 'text' | 'backless';\n\nexport interface ButtonInnerProps extends CommonProps {\n /** @ignore */\n _noPadding?: boolean;\n\n /** @ignore */\n _noRightPadding?: boolean;\n\n /** Применяет к кнопке стили псевдокласса `:active`. */\n active?: boolean;\n\n /** Задаёт выравнивание тексту в кнопке. */\n align?: React.CSSProperties['textAlign'];\n\n /** Превращает обычную кнопку в кнопку со стрелкой. */\n arrow?: boolean | 'left';\n\n /** Устанавливает фокус на контроле после окончания загрузки страницы.*/\n autoFocus?: boolean;\n\n /** Убирает обводку у кнопки. */\n borderless?: boolean;\n\n /** @ignore */\n checked?: boolean;\n\n /** @ignore */\n children?: React.ReactNode;\n\n /** @ignore */\n corners?: React.CSSProperties;\n\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** @ignore */\n disableFocus?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Добавляет иконку слева от текста кнопки. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа от текста кнопки. */\n rightIcon?: React.ReactElement;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Сужает кнопку. */\n narrow?: boolean;\n\n /** Задаёт размер кнопки. */\n size?: SizeProp;\n\n /** Задаёт HTML-атрибут `type`. */\n type?: ButtonType;\n\n /** Задаёт HTML-атрибут `title`. */\n title?: string;\n\n /** Задаёт стиль кнопки.\n * **Вариант `link` устарел.**\n * Если нужна кнопка, выглядящая как ссылка, используйте `Link component=button`.\n */\n use?: ButtonUse;\n\n /** @ignore */\n visuallyFocused?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n\n /** Задаёт ширину кнопки. */\n width?: number | string;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n}\n\nexport const BUTTON_DEFAULT_COMPONENT = 'button';\n\nexport type ButtonProps<C extends ButtonLinkAllowedValues = typeof BUTTON_DEFAULT_COMPONENT> =\n PolymorphicPropsWithoutRef<ButtonInnerProps, C>;\n\nexport interface ButtonState {\n focusedByTab: boolean;\n}\n\nexport const ButtonDataTids = {\n rootElement: 'Button__rootElement',\n root: 'Button__root',\n spinner: 'Button__spinner',\n} as const;\n\ntype DefaultProps = Required<Pick<ButtonProps<ButtonLinkAllowedValues>, 'use' | 'size' | 'type' | 'component'>>;\n\nconst SpanComponent: React.FunctionComponent<HTMLAttributes<HTMLSpanElement>> = ({ children, ...rest }) => {\n return <span {...rest}>{children}</span>;\n};\n\n@rootNode\nexport class Button<C extends ButtonLinkAllowedValues = typeof BUTTON_DEFAULT_COMPONENT> extends React.Component<\n ButtonProps<C>,\n ButtonState\n> {\n public static __KONTUR_REACT_UI__ = 'Button';\n public static displayName = 'Button';\n public static __BUTTON__ = true;\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n size: 'small',\n // By default the type attribute is 'submit'. IE8 will fire a click event\n // on this button if somewhere on the page user presses Enter while some\n // input is focused. So we set type to 'button' by default.\n type: 'button',\n component: BUTTON_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Button.defaultProps);\n\n public state = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private node: HTMLElement | null = null;\n private setRootNode!: TSetRootNode;\n\n public componentDidMount() {\n if (this.props.autoFocus) {\n keyListener.isTabPressed = true;\n this.focus();\n }\n // warning(\n // this.props.use !== 'link',\n // `[Button]: Use 'Link' has been deprecated. Please, use Link with 'component=button' prop instead.`,\n // );\n }\n\n public static getDerivedStateFromProps(props: ButtonProps) {\n if (props.loading || props.disabled) {\n return { focusedByTab: false };\n }\n return null;\n }\n\n /**\n * @public\n */\n public focus() {\n this.node?.focus();\n }\n\n /**\n * @public\n */\n public blur() {\n this.node?.blur();\n }\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.props}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex({\n disableFocus,\n disabled,\n tabIndex = 0,\n }: Pick<ButtonProps, 'disableFocus' | 'disabled' | 'tabIndex'>) {\n if (disableFocus || disabled) {\n return -1;\n }\n\n return tabIndex;\n }\n\n private renderMain = (props: CommonWrapperRestProps<ButtonProps>) => {\n const {\n corners,\n active,\n disabled,\n borderless,\n checked,\n error,\n warning,\n loading,\n narrow,\n arrow,\n icon,\n rightIcon,\n _noPadding,\n _noRightPadding,\n visuallyFocused,\n align,\n disableFocus,\n width,\n tabIndex,\n component: _component,\n use: useProp,\n size: sizeProp,\n theme,\n ...rest\n } = props;\n const { use, size, component, children } = this.getProps();\n\n const sizeClass = this.getSizeClassName();\n\n const isFocused = this.state.focusedByTab || visuallyFocused;\n const isLink = use === 'link';\n\n const [rootClassNameWithArrow, arrowNode] = useButtonArrow(\n { ...this.props, isFocused: Boolean(isFocused) },\n this.theme,\n );\n const isUseStateWithoutOutlineInDisabledState = !['default', 'backless'].includes(use);\n\n const trueDisabled = disabled || loading;\n const rootClassName = cx(\n styles.root(this.theme),\n styles[use](this.theme),\n sizeClass,\n narrow && styles.narrow(),\n _noPadding && styles.noPadding(),\n _noRightPadding && styles.noRightPadding(),\n rootClassNameWithArrow,\n ...(trueDisabled\n ? [\n styles.disabled(this.theme),\n isUseStateWithoutOutlineInDisabledState && styles.disabledWithoutOutline(this.theme),\n checked && styles.checkedDisabled(this.theme),\n borderless && styles.borderless(),\n use === 'backless' && styles.backlessDisabled(this.theme),\n use === 'text' && styles.textDisabled(),\n globalClasses.disabled,\n ]\n : [\n active && !checked && activeStyles[use](this.theme),\n isFocused && styles.focus(this.theme),\n checked && styles.checked(this.theme),\n checked && isFocused && styles.checkedFocused(this.theme),\n borderless && !checked && !isFocused && styles.borderless(),\n ]),\n );\n\n const rootProps = {\n ...rest,\n className: rootClassName,\n style: {\n textAlign: align,\n ...corners,\n },\n disabled: trueDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ disableFocus, disabled: trueDisabled, tabIndex }),\n };\n\n const wrapProps = {\n className: cx(globalClasses.root, {\n [styles.wrap(this.theme)]: true,\n [this.getSizeWrapClassName()]: true,\n }),\n style: {\n width,\n },\n };\n\n const innerShadowNode = null;\n\n let outlineNode = null;\n if ((!isFocused || isLink) && !trueDisabled) {\n outlineNode = (\n <div\n className={cx(styles.outline(), {\n [styles.outlineWarning(this.theme)]: warning,\n [styles.outlineError(this.theme)]: error,\n [styles.outlineLink()]: isLink,\n [styles.outlineLinkWarning(this.theme)]: isLink && warning,\n [styles.outlineLinkError(this.theme)]: isLink && error,\n })}\n />\n );\n }\n\n const iconProps: Omit<ButtonIconProps, 'position'> = {\n use,\n size: this.getProps().size,\n hasChildren: !!children,\n loading: loading || false,\n };\n const leftIconNode = icon && <ButtonIcon {...iconProps} position=\"left\" icon={icon} />;\n const rightIconNode = rightIcon && (\n <ButtonIcon {...iconProps} hasBothIcons={!!icon && !!rightIcon} position=\"right\" icon={rightIcon} />\n );\n\n // Force disable all props and features, that cannot be use with Link\n if (isLink) {\n rootProps.className = cx({\n [styles.root(this.theme)]: true,\n [sizeClass]: true,\n [styles.link(this.theme)]: true,\n [styles.linkLineHeight()]: !isSafari,\n [styles.linkLineHeightSafariFallback()]: isSafari,\n [styles.linkFocus(this.theme)]: isFocused,\n [styles.linkDisabled(this.theme)]: trueDisabled,\n });\n Object.assign(wrapProps, {\n className: cx(styles.wrap(this.theme), styles.wrapLink()),\n style: { width: wrapProps.style.width },\n });\n\n rootProps.style.textAlign = undefined;\n }\n\n const hasLoadingNode = loading && !icon && !rightIcon;\n const loadingNode = hasLoadingNode && <LoadingButtonIcon size={size} />;\n\n let captionNode = (\n <div\n className={cx(styles.caption(), globalClasses.caption, {\n [styles.captionLink()]: isLink,\n [styles.captionDisabled()]: !checked && disabled,\n })}\n >\n {loadingNode}\n {leftIconNode}\n <span\n className={cx(globalClasses.text, {\n [styles.visibilityHidden()]: hasLoadingNode,\n })}\n >\n {children}\n </span>\n {rightIconNode}\n </div>\n );\n if (isLink && !loading) {\n captionNode = (\n <ThemeContext.Provider value={getInnerLinkTheme(this.theme)}>\n {\n <Link<typeof SpanComponent>\n focused={isFocused}\n disabled={disabled}\n icon={this.renderIcon2022(icon)}\n rightIcon={this.renderIcon2022(rightIcon)}\n tabIndex={-1}\n component={SpanComponent}\n >\n {children}\n </Link>\n }\n </ThemeContext.Provider>\n );\n }\n\n const Root: React.ElementType = component;\n\n return (\n <span {...wrapProps} data-tid={ButtonDataTids.root}>\n <Root data-tid={ButtonDataTids.rootElement} ref={this._ref} {...rootProps}>\n {innerShadowNode}\n {outlineNode}\n {arrowNode}\n {captionNode}\n </Root>\n </span>\n );\n };\n\n private renderIcon2022(icon: React.ReactElement | undefined) {\n if (icon && isKonturIcon(icon)) {\n const sizes = getButtonIconSizes(this.theme);\n return React.cloneElement(icon, { size: icon.props.size ?? sizes[this.getProps().size] });\n }\n\n return icon;\n }\n\n private getSizeClassName() {\n switch (this.getProps().size) {\n case 'large':\n return cx(styles.sizeLarge(this.theme), {\n [styles.sizeLargeIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeLargeWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeLargeWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n case 'medium':\n return cx(styles.sizeMedium(this.theme), {\n [styles.sizeMediumIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeMediumWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeMediumWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n case 'small':\n default:\n return cx(styles.sizeSmall(this.theme), {\n [styles.sizeSmallIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeSmallWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeSmallWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n }\n }\n\n private getSizeWrapClassName() {\n switch (this.getProps().size) {\n case 'large':\n return styles.wrapLarge(this.theme);\n case 'medium':\n return styles.wrapMedium(this.theme);\n case 'small':\n default:\n return styles.wrapSmall(this.theme);\n }\n }\n\n private handleFocus = (e: React.FocusEvent) => {\n if (!this.props.disabled && !this.props.disableFocus) {\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 this.props.onFocus?.(e);\n }\n };\n\n private handleBlur = (e: React.FocusEvent) => {\n this.setState({ focusedByTab: false });\n if (!this.props.disabled && !this.props.disableFocus) {\n this.props.onBlur?.(e);\n }\n };\n\n private _ref = (node: HTMLElement | null) => {\n this.node = node;\n };\n}\n\nexport const isButton = isReactUIComponent<ButtonProps>('Button');\n"],"mappings":"2iBAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,YAAY,QAAQ,0BAA0B;;;AAGvD,SAASC,YAAY,EAAEC,kBAAkB,QAAQ,iBAAiB;AAClE,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,kBAAkB;AAC3D,SAASC,WAAW,QAAQ,8BAA8B;;AAE1D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,aAAa,QAA6C,8BAA8B;AACjG,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,QAAQ,QAAsB,oBAAoB;AAC3D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,IAAI,QAAQ,SAAS;;;;AAI9B,SAASC,MAAM,EAAEC,YAAY,EAAEC,aAAa,QAAQ,iBAAiB;AACrE,SAASC,UAAU,EAAmBC,kBAAkB,QAAQ,cAAc;AAC9E,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,iBAAiB,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFvD,OAAO,IAAMC,wBAAwB,GAAG,QAAQ;;;;;;;;;AA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E,IAAI,EAAE,OAAO,EACb;EACA;EACA;EACA0H,IAAI,EAAE,QAAQ,EACd9H,SAAS,EAAExD,wBAAwB,CACrC,CAAC,EAAAc,OAAA,MAAAD,MAAA,CA8UH,OAAO,IAAM0K,QAAQ,GAAG3M,kBAAkB,CAAc,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","globalObject","isKonturIcon","isIE11","isEdge","isSafari","keyListener","ThemeContext","CommonWrapper","cx","rootNode","ThemeFactory","createPropsGetter","Link","styles","activeStyles","globalClasses","ButtonIcon","getButtonIconSizes","useButtonArrow","getInnerLinkTheme","LoadingButtonIcon","BUTTON_DEFAULT_COMPONENT","ButtonDataTids","rootElement","root","spinner","SpanComponent","_ref","children","rest","_objectWithoutPropertiesLoose","_excluded","createElement","Button","_class","_Button","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","focusedByTab","node","renderMain","props","_cx","_cx4","_cx5","corners","active","disabled","borderless","checked","error","warning","loading","narrow","arrow","icon","rightIcon","_noPadding","_noRightPadding","visuallyFocused","align","disableFocus","width","tabIndex","_component","component","useProp","use","sizeProp","size","theme","_excluded2","_this$getProps","sizeClass","getSizeClassName","isFocused","isLink","_useButtonArrow","_extends","Boolean","rootClassNameWithArrow","arrowNode","isUseStateWithoutOutlineInDisabledState","includes","trueDisabled","rootClassName","noPadding","noRightPadding","disabledWithoutOutline","checkedDisabled","backlessDisabled","textDisabled","focus","checkedFocused","rootProps","className","style","textAlign","onFocus","handleFocus","onBlur","handleBlur","getTabIndex","wrapProps","wrap","getSizeWrapClassName","innerShadowNode","outlineNode","_cx2","outline","outlineWarning","outlineError","outlineLink","outlineLinkWarning","outlineLinkError","iconProps","hasChildren","leftIconNode","position","rightIconNode","hasBothIcons","_cx3","link","linkLineHeight","linkLineHeightSafariFallback","linkFocus","linkDisabled","Object","assign","wrapLink","undefined","hasLoadingNode","loadingNode","captionNode","caption","captionLink","captionDisabled","text","visibilityHidden","Provider","value","focused","renderIcon2022","Root","ref","e","requestAnimationFrame","isTabPressed","setState","_inheritsLoose","_proto","prototype","componentDidMount","autoFocus","getDerivedStateFromProps","_this$node","blur","_this$node2","render","_this2","Consumer","create","rootNodeRef","setRootNode","_ref2","_ref2$tabIndex","_icon$props$size","sizes","cloneElement","_cx6","_cx7","_cx8","sizeLarge","sizeLargeIE11","sizeLargeWithIcon","sizeLargeWithIconWithoutText","sizeMedium","sizeMediumIE11","sizeMediumWithIcon","sizeMediumWithIconWithoutText","sizeSmall","sizeSmallIE11","sizeSmallWithIcon","sizeSmallWithIconWithoutText","wrapLarge","wrapMedium","wrapSmall","Component","__KONTUR_REACT_UI__","displayName","__BUTTON__","type"],"sources":["Button.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ButtonLinkAllowedValues } from '../../lib/types/button-link';\nimport { isKonturIcon } from '../../lib/utils';\nimport { isIE11, isEdge, isSafari } from '../../lib/client';\nimport { keyListener } from '../../lib/events/keyListener';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { CommonWrapper, CommonProps, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { Link } from '../Link';\nimport { SizeProp } from '../../lib/types/props';\nimport { PolymorphicPropsWithoutRef } from '../../lib/types/polymorphic-component';\n\nimport { styles, activeStyles, globalClasses } from './Button.styles';\nimport { ButtonIcon, ButtonIconProps, getButtonIconSizes } from './ButtonIcon';\nimport { useButtonArrow } from './ButtonArrow';\nimport { getInnerLinkTheme } from './getInnerLinkTheme';\nimport { LoadingButtonIcon } from './LoadingButtonIcon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonUse = 'default' | 'primary' | 'success' | 'danger' | 'pay' | 'link' | 'text' | 'backless';\n\nexport interface ButtonInnerProps extends CommonProps {\n /** @ignore */\n _noPadding?: boolean;\n\n /** @ignore */\n _noRightPadding?: boolean;\n\n /** Применяет к кнопке стили псевдокласса `:active`. */\n active?: boolean;\n\n /** Задаёт выравнивание тексту в кнопке. */\n align?: React.CSSProperties['textAlign'];\n\n /** Превращает обычную кнопку в кнопку со стрелкой. */\n arrow?: boolean | 'left';\n\n /** Устанавливает фокус на контроле после окончания загрузки страницы.*/\n autoFocus?: boolean;\n\n /** Убирает обводку у кнопки. */\n borderless?: boolean;\n\n /** @ignore */\n checked?: boolean;\n\n /** @ignore */\n children?: React.ReactNode;\n\n /** @ignore */\n corners?: React.CSSProperties;\n\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** @ignore */\n disableFocus?: boolean;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Добавляет иконку слева от текста кнопки. */\n icon?: React.ReactElement;\n\n /** Добавляет иконку справа от текста кнопки. */\n rightIcon?: React.ReactElement;\n\n /** Переводит кнопку в состояние загрузки. */\n loading?: boolean;\n\n /** Сужает кнопку. */\n narrow?: boolean;\n\n /** Задаёт размер кнопки. */\n size?: SizeProp;\n\n /** Задаёт HTML-атрибут `type`. */\n type?: ButtonType;\n\n /** Задаёт HTML-атрибут `title`. */\n title?: string;\n\n /** Задаёт стиль кнопки.\n * **Вариант `link` устарел.**\n * Если нужна кнопка, выглядящая как ссылка, используйте `Link component=button`.\n */\n use?: ButtonUse;\n\n /** @ignore */\n visuallyFocused?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n\n /** Задаёт ширину кнопки. */\n width?: number | string;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n}\n\nexport const BUTTON_DEFAULT_COMPONENT = 'button';\n\nexport type ButtonProps<C extends ButtonLinkAllowedValues = typeof BUTTON_DEFAULT_COMPONENT> =\n PolymorphicPropsWithoutRef<ButtonInnerProps, C>;\n\nexport interface ButtonState {\n focusedByTab: boolean;\n}\n\nexport const ButtonDataTids = {\n rootElement: 'Button__rootElement',\n root: 'Button__root',\n spinner: 'Button__spinner',\n} as const;\n\ntype DefaultProps = Required<Pick<ButtonProps<ButtonLinkAllowedValues>, 'use' | 'size' | 'type' | 'component'>>;\n\nconst SpanComponent: React.FunctionComponent<HTMLAttributes<HTMLSpanElement>> = ({ children, ...rest }) => {\n return <span {...rest}>{children}</span>;\n};\n\n@rootNode\nexport class Button<C extends ButtonLinkAllowedValues = typeof BUTTON_DEFAULT_COMPONENT> extends React.Component<\n ButtonProps<C>,\n ButtonState\n> {\n public static __KONTUR_REACT_UI__ = 'Button';\n public static displayName = 'Button';\n public static __BUTTON__ = true;\n\n public static defaultProps: DefaultProps = {\n use: 'default',\n size: 'small',\n // By default the type attribute is 'submit'. IE8 will fire a click event\n // on this button if somewhere on the page user presses Enter while some\n // input is focused. So we set type to 'button' by default.\n type: 'button',\n component: BUTTON_DEFAULT_COMPONENT,\n };\n\n private getProps = createPropsGetter(Button.defaultProps);\n\n public state = {\n focusedByTab: false,\n };\n\n private theme!: Theme;\n private node: HTMLElement | null = null;\n private setRootNode!: TSetRootNode;\n\n public componentDidMount() {\n if (this.props.autoFocus) {\n keyListener.isTabPressed = true;\n this.focus();\n }\n // warning(\n // this.props.use !== 'link',\n // `[Button]: Use 'Link' has been deprecated. Please, use Link with 'component=button' prop instead.`,\n // );\n }\n\n public static getDerivedStateFromProps(props: ButtonProps) {\n if (props.loading || props.disabled) {\n return { focusedByTab: false };\n }\n return null;\n }\n\n /**\n * @public\n */\n public focus() {\n this.node?.focus();\n }\n\n /**\n * @public\n */\n public blur() {\n this.node?.blur();\n }\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.props}>\n {this.renderMain}\n </CommonWrapper>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private getTabIndex({\n disableFocus,\n disabled,\n tabIndex = 0,\n }: Pick<ButtonProps, 'disableFocus' | 'disabled' | 'tabIndex'>) {\n if (disableFocus || disabled) {\n return -1;\n }\n\n return tabIndex;\n }\n\n private renderMain = (props: CommonWrapperRestProps<ButtonProps>) => {\n const {\n corners,\n active,\n disabled,\n borderless,\n checked,\n error,\n warning,\n loading,\n narrow,\n arrow,\n icon,\n rightIcon,\n _noPadding,\n _noRightPadding,\n visuallyFocused,\n align,\n disableFocus,\n width,\n tabIndex,\n component: _component,\n use: useProp,\n size: sizeProp,\n theme,\n ...rest\n } = props;\n const { use, size, component, children } = this.getProps();\n\n const sizeClass = this.getSizeClassName();\n\n const isFocused = this.state.focusedByTab || visuallyFocused;\n const isLink = use === 'link';\n\n const [rootClassNameWithArrow, arrowNode] = useButtonArrow(\n { ...this.props, isFocused: Boolean(isFocused) },\n this.theme,\n );\n const isUseStateWithoutOutlineInDisabledState = !['default', 'backless'].includes(use);\n\n const trueDisabled = disabled || loading;\n const rootClassName = cx(\n styles.root(this.theme),\n styles[use](this.theme),\n sizeClass,\n narrow && styles.narrow(),\n _noPadding && styles.noPadding(),\n _noRightPadding && styles.noRightPadding(),\n rootClassNameWithArrow,\n ...(trueDisabled\n ? [\n styles.disabled(this.theme),\n isUseStateWithoutOutlineInDisabledState && styles.disabledWithoutOutline(this.theme),\n checked && styles.checkedDisabled(this.theme),\n borderless && styles.borderless(),\n use === 'backless' && styles.backlessDisabled(this.theme),\n use === 'text' && styles.textDisabled(),\n globalClasses.disabled,\n ]\n : [\n active && !checked && activeStyles[use](this.theme),\n isFocused && styles.focus(this.theme),\n checked && styles.checked(this.theme),\n checked && isFocused && styles.checkedFocused(this.theme),\n borderless && !checked && !isFocused && styles.borderless(),\n ]),\n );\n\n const rootProps = {\n ...rest,\n className: rootClassName,\n style: {\n textAlign: align,\n ...corners,\n },\n disabled: trueDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n tabIndex: this.getTabIndex({ disableFocus, disabled: trueDisabled, tabIndex }),\n };\n\n const wrapProps = {\n className: cx(globalClasses.root, {\n [styles.wrap(this.theme)]: true,\n [this.getSizeWrapClassName()]: true,\n }),\n style: {\n width,\n },\n };\n\n const innerShadowNode = null;\n\n let outlineNode = null;\n if ((!isFocused || isLink) && !trueDisabled) {\n outlineNode = (\n <div\n className={cx(styles.outline(), {\n [styles.outlineWarning(this.theme)]: warning,\n [styles.outlineError(this.theme)]: error,\n [styles.outlineLink()]: isLink,\n [styles.outlineLinkWarning(this.theme)]: isLink && warning,\n [styles.outlineLinkError(this.theme)]: isLink && error,\n })}\n />\n );\n }\n\n const iconProps: Omit<ButtonIconProps, 'position'> = {\n use,\n size: this.getProps().size,\n hasChildren: !!children,\n loading: loading || false,\n };\n const leftIconNode = icon && <ButtonIcon {...iconProps} position=\"left\" icon={icon} />;\n const rightIconNode = rightIcon && (\n <ButtonIcon {...iconProps} hasBothIcons={!!icon && !!rightIcon} position=\"right\" icon={rightIcon} />\n );\n\n // Force disable all props and features, that cannot be use with Link\n if (isLink) {\n rootProps.className = cx({\n [styles.root(this.theme)]: true,\n [sizeClass]: true,\n [styles.link(this.theme)]: true,\n [styles.linkLineHeight()]: !isSafari,\n [styles.linkLineHeightSafariFallback()]: isSafari,\n [styles.linkFocus(this.theme)]: isFocused,\n [styles.linkDisabled(this.theme)]: trueDisabled,\n });\n Object.assign(wrapProps, {\n className: cx(styles.wrap(this.theme), styles.wrapLink()),\n style: { width: wrapProps.style.width },\n });\n\n rootProps.style.textAlign = undefined;\n }\n\n const hasLoadingNode = loading && !icon && !rightIcon;\n const loadingNode = hasLoadingNode && <LoadingButtonIcon size={size} />;\n\n let captionNode = (\n <div\n className={cx(styles.caption(), globalClasses.caption, {\n [styles.captionLink()]: isLink,\n [styles.captionDisabled()]: !checked && disabled,\n })}\n >\n {loadingNode}\n {leftIconNode}\n <span\n className={cx(globalClasses.text, {\n [styles.visibilityHidden()]: hasLoadingNode,\n })}\n >\n {children}\n </span>\n {rightIconNode}\n </div>\n );\n if (isLink && !loading) {\n captionNode = (\n <ThemeContext.Provider value={getInnerLinkTheme(this.theme)}>\n {\n <Link<typeof SpanComponent>\n focused={isFocused}\n disabled={disabled}\n icon={this.renderIcon2022(icon)}\n rightIcon={this.renderIcon2022(rightIcon)}\n tabIndex={-1}\n component={SpanComponent}\n >\n {children}\n </Link>\n }\n </ThemeContext.Provider>\n );\n }\n\n const Root: React.ElementType = component;\n\n return (\n <span {...wrapProps} data-tid={ButtonDataTids.root}>\n <Root data-tid={ButtonDataTids.rootElement} ref={this._ref} {...rootProps}>\n {innerShadowNode}\n {outlineNode}\n {arrowNode}\n {captionNode}\n </Root>\n </span>\n );\n };\n\n private renderIcon2022(icon: React.ReactElement | undefined) {\n if (icon && isKonturIcon(icon)) {\n const sizes = getButtonIconSizes(this.theme);\n return React.cloneElement(icon, { size: icon.props.size ?? sizes[this.getProps().size] });\n }\n\n return icon;\n }\n\n private getSizeClassName() {\n switch (this.getProps().size) {\n case 'large':\n return cx(styles.sizeLarge(this.theme), {\n [styles.sizeLargeIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeLargeWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeLargeWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n case 'medium':\n return cx(styles.sizeMedium(this.theme), {\n [styles.sizeMediumIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeMediumWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeMediumWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n case 'small':\n default:\n return cx(styles.sizeSmall(this.theme), {\n [styles.sizeSmallIE11(this.theme)]: isIE11 || isEdge,\n [styles.sizeSmallWithIcon(this.theme)]: !!this.props.icon,\n [styles.sizeSmallWithIconWithoutText(this.theme)]: !!this.props.icon && !this.props.children,\n });\n }\n }\n\n private getSizeWrapClassName() {\n switch (this.getProps().size) {\n case 'large':\n return styles.wrapLarge(this.theme);\n case 'medium':\n return styles.wrapMedium(this.theme);\n case 'small':\n default:\n return styles.wrapSmall(this.theme);\n }\n }\n\n private handleFocus = (e: React.FocusEvent) => {\n if (!this.props.disabled && !this.props.disableFocus) {\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 this.props.onFocus?.(e);\n }\n };\n\n private handleBlur = (e: React.FocusEvent) => {\n this.setState({ focusedByTab: false });\n if (!this.props.disabled && !this.props.disableFocus) {\n this.props.onBlur?.(e);\n }\n };\n\n private _ref = (node: HTMLElement | null) => {\n this.node = node;\n };\n}\n"],"mappings":"2iBAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,YAAY,QAAQ,0BAA0B;;;AAGvD,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,kBAAkB;AAC3D,SAASC,WAAW,QAAQ,8BAA8B;;AAE1D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,aAAa,QAA6C,8BAA8B;AACjG,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,QAAQ,QAAsB,oBAAoB;AAC3D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,IAAI,QAAQ,SAAS;;;;AAI9B,SAASC,MAAM,EAAEC,YAAY,EAAEC,aAAa,QAAQ,iBAAiB;AACrE,SAASC,UAAU,EAAmBC,kBAAkB,QAAQ,cAAc;AAC9E,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,iBAAiB,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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tBuK,UAAU,GAAG,IAAI,EAAAvK,OAAA,CAEjBa,YAAY,GAAiB,EACzC+B,GAAG,EAAE,SAAS,EACdE,IAAI,EAAE,OAAO,EACb;EACA;EACA;EACA0H,IAAI,EAAE,QAAQ,EACd9H,SAAS,EAAExD,wBAAwB,CACrC,CAAC,EAAAc,OAAA,MAAAD,MAAA","ignoreList":[]}
@@ -106,5 +106,4 @@ export declare class Button<C extends ButtonLinkAllowedValues = typeof BUTTON_DE
106
106
  private handleBlur;
107
107
  private _ref;
108
108
  }
109
- export declare const isButton: (child: React.ReactNode) => child is React.ReactElement<ButtonProps<"button">, string | React.JSXElementConstructor<any>>;
110
109
  export {};