@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
@@ -0,0 +1,177 @@
1
+ import { story, kind, test } from 'creevey';
2
+ import { Key } from 'selenium-webdriver';
3
+
4
+ import { delay } from '../../../lib/delay';
5
+
6
+ kind('Textarea', () => {
7
+ story('DifferentStates', () => {
8
+ test('Plain', async (context) => {
9
+ await delay(1000);
10
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
11
+ });
12
+
13
+ test('Focus', async (context) => {
14
+ await context.webdriver
15
+ .actions({
16
+ bridge: true,
17
+ })
18
+ .click(context.webdriver.findElement({ css: '#TextareaPlain textarea' }))
19
+ .perform();
20
+ await delay(1000);
21
+ await context.matchImage(await context.takeScreenshot(), 'Focus');
22
+ });
23
+
24
+ test('FocusedByTab', async (context) => {
25
+ await context.webdriver
26
+ .actions({
27
+ bridge: true,
28
+ })
29
+ .move({ x: 0, y: 0 })
30
+ .click()
31
+ .sendKeys(Key.TAB)
32
+ .sendKeys(Key.TAB)
33
+ .perform();
34
+ await delay(1000);
35
+ await context.matchImage(await context.takeScreenshot(), 'Focused by tab');
36
+ });
37
+
38
+ test('Typed', async (context) => {
39
+ await context.webdriver
40
+ .actions({
41
+ bridge: true,
42
+ })
43
+ .click(context.webdriver.findElement({ css: '#TextareaPlain textarea' }))
44
+ .sendKeys('Test...')
45
+ .perform();
46
+ await delay(1000);
47
+ await context.matchImage(await context.takeScreenshot(), 'Typed');
48
+ });
49
+ });
50
+
51
+ story('AutoresizableTextareaStory', () => {
52
+ test('autoresize', async (context) => {
53
+ const textArea = () => context.webdriver.findElement({ css: '[data-tid~="TextArea"]' });
54
+ const before = await textArea().takeScreenshot();
55
+ await context.webdriver
56
+ .actions({
57
+ bridge: true,
58
+ })
59
+ .click(context.webdriver.findElement({ css: '[data-tid~="AddButton"]' }))
60
+ .pause(500)
61
+ .perform();
62
+ const addText = await textArea().takeScreenshot();
63
+ await context.webdriver
64
+ .actions({
65
+ bridge: true,
66
+ })
67
+ .click(context.webdriver.findElement({ css: '[data-tid~="CollapseButton"]' }))
68
+ .pause(500)
69
+ .perform();
70
+ const collapse = await textArea().takeScreenshot();
71
+ await context.matchImages({ before, addText, collapse });
72
+ });
73
+ });
74
+
75
+ story('SelectAllByProp', () => {
76
+ test('Plain', async (context) => {
77
+ await delay(1000);
78
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
79
+ });
80
+
81
+ test('Focused', async (context) => {
82
+ await context.webdriver
83
+ .actions({
84
+ bridge: true,
85
+ })
86
+ .click(context.webdriver.findElement({ css: 'label' }))
87
+ .pause(500)
88
+ .perform();
89
+ await delay(1000);
90
+ await context.matchImage(await context.takeScreenshot(), 'Focused');
91
+ });
92
+ });
93
+
94
+ story('SelectAllByButton', () => {
95
+ test('Plain', async (context) => {
96
+ await delay(1000);
97
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
98
+ });
99
+
100
+ test('Selected', async (context) => {
101
+ await context.webdriver
102
+ .actions({
103
+ bridge: true,
104
+ })
105
+ .click(context.webdriver.findElement({ css: '[data-tid="select-all"]' }))
106
+ .pause(500)
107
+ .perform();
108
+ await delay(1000);
109
+ await context.matchImage(await context.takeScreenshot(), 'Selected');
110
+ });
111
+ });
112
+
113
+ story('TextareaWithCounters', ({ setStoryParameters }) => {
114
+ setStoryParameters({
115
+ skip: {
116
+ 'flacky scrollbars height': {
117
+ in: ['firefox', 'firefox8px', 'firefoxFlat8px', 'firefoxDark'],
118
+ },
119
+ },
120
+ });
121
+
122
+ test('Plain', async (context) => {
123
+ await delay(1000);
124
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
125
+ });
126
+
127
+ test('Focus', async (context) => {
128
+ await context.webdriver
129
+ .actions({
130
+ bridge: true,
131
+ })
132
+ .click(context.webdriver.findElement({ css: '#CounterPlain textarea' }))
133
+ .perform();
134
+ await delay(1000);
135
+ await context.matchImage(await context.takeScreenshot(), 'Focus');
136
+ });
137
+
138
+ test('FocusAutoresize', async (context) => {
139
+ await context.webdriver
140
+ .actions({
141
+ bridge: true,
142
+ })
143
+ .click(context.webdriver.findElement({ css: '#CounterAutoresizeTextarea textarea' }))
144
+ .perform();
145
+ await delay(1000);
146
+ await context.matchImage(await context.takeScreenshot(), 'FocusAutoresize');
147
+ });
148
+
149
+ test('FocusWithHelpClosed', async (context) => {
150
+ await context.webdriver
151
+ .actions({
152
+ bridge: true,
153
+ })
154
+ .click(context.webdriver.findElement({ css: '#CounterWithHelp textarea' }))
155
+ .perform();
156
+ await delay(1000);
157
+ await context.matchImage(await context.takeScreenshot(), 'CounterWithHelp');
158
+ });
159
+
160
+ test('FocusWithHelpOpened', async (context) => {
161
+ await context.webdriver
162
+ .actions({
163
+ bridge: true,
164
+ })
165
+ .click(context.webdriver.findElement({ css: '#CounterWithHelp textarea' }))
166
+ .perform();
167
+ await context.webdriver
168
+ .actions({
169
+ bridge: true,
170
+ })
171
+ .click(context.webdriver.findElement({ css: `svg` }))
172
+ .perform();
173
+ await delay(1000);
174
+ await context.matchImage(await context.takeScreenshot(), 'CounterWithHelpOpened');
175
+ });
176
+ });
177
+ });
@@ -13,6 +13,7 @@ export interface ToastState {
13
13
  action: Nullable<Action>;
14
14
  id: number;
15
15
  showTime: Nullable<number>;
16
+ showCloseIcon?: boolean;
16
17
  }
17
18
  export interface ToastProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps {
18
19
  /** Задает функцию, которая вызывается при возникновении тоста. */
@@ -42,7 +43,9 @@ export declare class Toast extends React.Component<ToastProps, ToastState> {
42
43
  static displayName: string;
43
44
  private setRootNode;
44
45
  private theme;
45
- static push(notification: string, action?: Nullable<Action>, showTime?: number): void;
46
+ /** @deprecated use `push` method in ref or `SingleToast.push` */
47
+ static push(notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean): void;
48
+ /** @deprecated use `close` method in ref or `SingleToast.close` */
46
49
  static close(): void;
47
50
  _toast: Nullable<ToastView>;
48
51
  private _timeout;
@@ -61,8 +64,9 @@ export declare class Toast extends React.Component<ToastProps, ToastState> {
61
64
  * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`
62
65
  * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler
63
66
  * @param {number} showTime Время существования Toast в миллисекундах
67
+ * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.
64
68
  */
65
- push(notification: string, action?: Nullable<Action>, showTime?: number): void;
69
+ push(notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean): void;
66
70
  /**
67
71
  * @public
68
72
  */
@@ -37,6 +37,7 @@ var _ToastStatic = require("./ToastStatic");var _class, _Toast;
37
37
 
38
38
 
39
39
 
40
+
40
41
 
41
42
 
42
43
  var ToastDataTids = exports.ToastDataTids = {
@@ -75,6 +76,8 @@ Toast = exports.Toast = (0, _rootNode.rootNode)(_class = (_Toast = /*#__PURE__*/
75
76
 
76
77
 
77
78
 
79
+
80
+
78
81
  function Toast(props) {var _this;
79
82
  _this = _React$Component.call(this, props) || this;_this.rootRef = /*#__PURE__*/_react.default.createRef();
80
83
 
@@ -125,6 +128,8 @@ Toast = exports.Toast = (0, _rootNode.rootNode)(_class = (_Toast = /*#__PURE__*/
125
128
 
126
129
 
127
130
 
131
+
132
+
128
133
 
129
134
 
130
135
 
@@ -174,6 +179,7 @@ Toast = exports.Toast = (0, _rootNode.rootNode)(_class = (_Toast = /*#__PURE__*/
174
179
 
175
180
 
176
181
 
182
+
177
183
 
178
184
 
179
185
  setRootRef = function (element) {
@@ -199,7 +205,7 @@ Toast = exports.Toast = (0, _rootNode.rootNode)(_class = (_Toast = /*#__PURE__*/
199
205
 
200
206
  _refToast = function (element) {
201
207
  _this._toast = element;
202
- };_this.state = { notification: null, action: null, id: 0, showTime: null };return _this;}(0, _inheritsLoose2.default)(Toast, _React$Component);Toast.push = function push(notification, action, showTime) {_ToastStatic.ToastStatic.push(notification, action, showTime);};Toast.close = function close() {_ToastStatic.ToastStatic.close();};var _proto = Toast.prototype;_proto.componentWillUnmount = function componentWillUnmount() {this._clearTimer();};_proto.render = function render() {var _this2 = this;return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Consumer, null, function (theme) {_this2.theme = _this2.props.theme ? _ThemeFactory.ThemeFactory.create(_this2.props.theme, theme) : theme;return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Provider, { value: _this2.theme }, /*#__PURE__*/_react.default.createElement(_RenderContainer.RenderContainer, null, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, null, _this2._renderToast())));});} /**
208
+ };_this.state = { notification: null, action: null, id: 0, showTime: null, showCloseIcon: false };return _this;}(0, _inheritsLoose2.default)(Toast, _React$Component); /** @deprecated use `push` method in ref or `SingleToast.push` */Toast.push = function push(notification, action, showTime, showCloseIcon) {_ToastStatic.ToastStatic.push(notification, action, showTime, showCloseIcon);} /** @deprecated use `close` method in ref or `SingleToast.close` */;Toast.close = function close() {_ToastStatic.ToastStatic.close();};var _proto = Toast.prototype;_proto.componentWillUnmount = function componentWillUnmount() {this._clearTimer();};_proto.render = function render() {var _this2 = this;return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Consumer, null, function (theme) {_this2.theme = _this2.props.theme ? _ThemeFactory.ThemeFactory.create(_this2.props.theme, theme) : theme;return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Provider, { value: _this2.theme }, /*#__PURE__*/_react.default.createElement(_RenderContainer.RenderContainer, null, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, null, _this2._renderToast())));});} /**
203
209
  * Показывает тост с `notification` в качестве сообщения.
204
210
  * Тост автоматически скрывается через 3 или 7 секунд,
205
211
  * в зависимости от наличия у него кнопки `action`.
@@ -210,4 +216,5 @@ Toast = exports.Toast = (0, _rootNode.rootNode)(_class = (_Toast = /*#__PURE__*/
210
216
  * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`
211
217
  * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler
212
218
  * @param {number} showTime Время существования Toast в миллисекундах
213
- */;_proto.push = function push(notification, action, showTime) {if (this.state.notification) {this.close();}safelyCall(this.props.onPush, notification, action);this.setState(function (_ref) {var id = _ref.id;return { notification: notification, action: action, id: id + 1, showTime: showTime };}, this._setTimer);};_proto._renderToast = function _renderToast() {var _this$state = this.state,notification = _this$state.notification,action = _this$state.action,id = _this$state.id;if (!notification) {return null;}var toastProps = { onMouseEnter: this._clearTimer, onMouseLeave: this._setTimer, onClose: this.close, children: notification, 'aria-label': this.props['aria-label'], action: action };return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, { key: id, classNames: { enter: _Toast2.styles.enter(), enterActive: _Toast2.styles.enterActive(), exit: _Toast2.styles.exit(), exitActive: _Toast2.styles.exitActive() }, timeout: { enter: 200, exit: 150 }, enter: !_currentEnvironment.isTestEnv, exit: !_currentEnvironment.isTestEnv, nodeRef: this.rootRef }, /*#__PURE__*/_react.default.createElement(_CommonWrapper.CommonWrapper, (0, _extends2.default)({ rootNodeRef: this.setRootRef }, this.props), /*#__PURE__*/_react.default.createElement(_ToastView.ToastView, (0, _extends2.default)({ ref: this._refToast }, toastProps))));};return Toast;}(_react.default.Component), _Toast.__KONTUR_REACT_UI__ = 'Toast', _Toast.displayName = 'Toast', _Toast)) || _class;function safelyCall(fn) {if (fn) {for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {args[_key - 1] = arguments[_key];}fn.apply(void 0, args);}}
219
+ * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.
220
+ */;_proto.push = function push(notification, action, showTime, showCloseIcon) {if (this.state.notification) {this.close();}safelyCall(this.props.onPush, notification, action);this.setState(function (_ref) {var id = _ref.id;return { notification: notification, action: action, id: id + 1, showTime: showTime, showCloseIcon: showCloseIcon };}, this._setTimer);};_proto._renderToast = function _renderToast() {var _this$state = this.state,notification = _this$state.notification,action = _this$state.action,id = _this$state.id,showCloseIcon = _this$state.showCloseIcon;if (!notification) {return null;}var toastProps = { onMouseEnter: this._clearTimer, onMouseLeave: this._setTimer, onClose: this.close, children: notification, 'aria-label': this.props['aria-label'], action: action, showCloseIcon: showCloseIcon };return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, { key: id, classNames: { enter: _Toast2.styles.enter(), enterActive: _Toast2.styles.enterActive(), exit: _Toast2.styles.exit(), exitActive: _Toast2.styles.exitActive() }, timeout: { enter: 200, exit: 150 }, enter: !_currentEnvironment.isTestEnv, exit: !_currentEnvironment.isTestEnv, nodeRef: this.rootRef }, /*#__PURE__*/_react.default.createElement(_CommonWrapper.CommonWrapper, (0, _extends2.default)({ rootNodeRef: this.setRootRef }, this.props), /*#__PURE__*/_react.default.createElement(_ToastView.ToastView, (0, _extends2.default)({ ref: this._refToast }, toastProps))));};return Toast;}(_react.default.Component), _Toast.__KONTUR_REACT_UI__ = 'Toast', _Toast.displayName = 'Toast', _Toast)) || _class;function safelyCall(fn) {if (fn) {for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {args[_key - 1] = arguments[_key];}fn.apply(void 0, args);}}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactTransitionGroup","_globalObject","_ThemeFactory","_ThemeContext","_RenderContainer","_CommonWrapper","_currentEnvironment","_rootNode","_Toast2","_ToastView","_ToastStatic","_class","_Toast","ToastDataTids","exports","toastStatic","toastView","action","close","Toast","rootNode","_React$Component","props","_this","call","rootRef","React","createRef","safelyCall","onClose","state","notification","setState","setRootRef","element","setRootNode","current","_clearTimer","_timeout","globalObject","clearTimeout","_setTimer","_this$state$showTime","showTime","setTimeout","_refToast","_toast","id","_inheritsLoose2","default","push","ToastStatic","_proto","prototype","componentWillUnmount","render","_this2","createElement","ThemeContext","Consumer","theme","ThemeFactory","create","Provider","value","RenderContainer","TransitionGroup","_renderToast","onPush","_ref","_this$state","toastProps","onMouseEnter","onMouseLeave","children","CSSTransition","key","classNames","enter","styles","enterActive","exit","exitActive","timeout","isTestEnv","nodeRef","CommonWrapper","_extends2","rootNodeRef","ToastView","ref","Component","__KONTUR_REACT_UI__","displayName","fn","_len","arguments","length","args","Array","_key","apply"],"sources":["Toast.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport { globalObject, SafeTimer } from '@skbkontur/global-object';\n\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { RenderContainer } from '../../internal/RenderContainer';\nimport { Nullable } from '../../typings/utility-types';\nimport { CommonProps, CommonWrapper } from '../../internal/CommonWrapper';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\n\nimport { styles } from './Toast.styles';\nimport { ToastView, ToastViewProps } from './ToastView';\nimport { ToastStatic } from './ToastStatic';\n\nexport interface Action {\n label: string;\n handler: () => void;\n 'aria-label'?: string;\n}\n\nexport interface ToastState {\n notification: Nullable<string>;\n action: Nullable<Action>;\n id: number;\n showTime: Nullable<number>;\n}\n\nexport interface ToastProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps {\n /** Задает функцию, которая вызывается при возникновении тоста. */\n onPush?: (notification: string, action?: Action) => void;\n\n /** Задает функцию, которая вызывается при закрытии тоста. */\n onClose?: (notification: string, action?: Action) => void;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n}\n\nexport const ToastDataTids = {\n toastStatic: 'StaticToast',\n toastView: 'ToastView__root',\n action: 'ToastView__action',\n close: 'ToastView__close',\n} as const;\n\n/**\n * `Toast` — это короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его команды.\n * Результат может быть положительным, отрицательным или нейтральным.\n *\n * Доступен статический метод: `Toast.push(notification, action?, showTime?)`.\n * Однако, при его использовании не работает кастомизация, они не поддерживаются в `React@18`, а также могут быть проблемы с перекрытием уведомления другими элементами страницы.\n *\n * Для статических тостов рекомендуется использовать компонент SingleToast - в нём исправлены эти проблемы.\n */\n@rootNode\nexport class Toast extends React.Component<ToastProps, ToastState> {\n public static __KONTUR_REACT_UI__ = 'Toast';\n public static displayName = 'Toast';\n\n private setRootNode!: TSetRootNode;\n private theme!: Theme;\n\n public static push(notification: string, action?: Nullable<Action>, showTime?: number) {\n ToastStatic.push(notification, action, showTime);\n }\n\n public static close() {\n ToastStatic.close();\n }\n\n public _toast: Nullable<ToastView>;\n private _timeout: SafeTimer;\n private rootRef = React.createRef<HTMLElement>();\n\n constructor(props: ToastProps) {\n super(props);\n this.state = {\n notification: null,\n action: null,\n id: 0,\n showTime: null,\n };\n }\n\n public componentWillUnmount() {\n this._clearTimer();\n }\n\n public render() {\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 <ThemeContext.Provider value={this.theme}>\n <RenderContainer>\n <TransitionGroup>{this._renderToast()}</TransitionGroup>\n </RenderContainer>\n </ThemeContext.Provider>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n /**\n * Показывает тост с `notification` в качестве сообщения.\n * Тост автоматически скрывается через 3 или 7 секунд,\n * в зависимости от наличия у него кнопки `action`.\n * Время показа можно задать вручную, передав `showTime`.\n *\n * @public\n * @param {string} notification\n * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`\n * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler\n * @param {number} showTime Время существования Toast в миллисекундах\n */\n public push(notification: string, action?: Nullable<Action>, showTime?: number) {\n if (this.state.notification) {\n this.close();\n }\n\n safelyCall(this.props.onPush, notification, action);\n\n this.setState(({ id }) => ({ notification, action, id: id + 1, showTime }), this._setTimer);\n }\n\n /**\n * @public\n */\n public close = () => {\n safelyCall(this.props.onClose, this.state.notification, this.state.action);\n this.setState({ notification: null, action: null });\n };\n\n private _renderToast() {\n const { notification, action, id } = this.state;\n\n if (!notification) {\n return null;\n }\n\n const toastProps: ToastViewProps = {\n onMouseEnter: this._clearTimer,\n onMouseLeave: this._setTimer,\n onClose: this.close,\n children: notification,\n 'aria-label': this.props['aria-label'],\n action,\n };\n\n return (\n <CSSTransition\n key={id}\n classNames={{\n enter: styles.enter(),\n enterActive: styles.enterActive(),\n exit: styles.exit(),\n exitActive: styles.exitActive(),\n }}\n timeout={{\n enter: 200,\n exit: 150,\n }}\n enter={!isTestEnv}\n exit={!isTestEnv}\n nodeRef={this.rootRef}\n >\n <CommonWrapper rootNodeRef={this.setRootRef} {...this.props}>\n <ToastView ref={this._refToast} {...toastProps} />\n </CommonWrapper>\n </CSSTransition>\n );\n }\n\n private setRootRef = (element: Nullable<Element>) => {\n this.setRootNode(element);\n // @ts-expect-error: See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31065.\n this.rootRef.current = element;\n };\n\n private _clearTimer = () => {\n if (this._timeout) {\n globalObject.clearTimeout(this._timeout);\n this._timeout = null;\n }\n };\n\n private _setTimer = () => {\n this._clearTimer();\n\n let showTime = this.state.action ? 7000 : 3000;\n showTime = this.state.showTime ?? showTime;\n this._timeout = globalObject.setTimeout(this.close, showTime);\n };\n\n private _refToast = (element: ToastView) => {\n this._toast = element;\n };\n}\n\nfunction safelyCall(fn: Nullable<(a?: any) => any>, ...args: any[]) {\n if (fn) {\n fn(...args);\n }\n}\n"],"mappings":"mWAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;;AAEA,IAAAK,gBAAA,GAAAL,OAAA;;AAEA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;;AAEA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA,kBAA4C,IAAAY,MAAA,EAAAC,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BrC,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,WAAW,EAAE,aAAa;EAC1BC,SAAS,EAAE,iBAAiB;EAC5BC,MAAM,EAAE,mBAAmB;EAC3BC,KAAK,EAAE;AACT,CAAU;;AAEV;AACA;AACA;AACA;AACA;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yC,GAAG,EAAE,IAAI,CAAC7C,SAAU,IAAK0B,UAAU,CAAG,CACpC,CACF,CAAC,CAEpB,CAAC,QAAApD,KAAA,GAtHwBO,cAAK,CAACiE,SAAS,GAAA/E,MAAA,CAC1BgF,mBAAmB,GAAG,OAAO,EAAAhF,MAAA,CAC7BiF,WAAW,GAAG,OAAO,EAAAjF,MAAA,MAAAD,MAAA,CAgJrC,SAASiB,UAAUA,CAACkE,EAA8B,EAAkB,CAClE,IAAIA,EAAE,EAAE,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAD6CC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,KAAJF,IAAI,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA,GAEvDN,EAAE,CAAAO,KAAA,SAAIH,IAAI,CAAC,CACb,CACF","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactTransitionGroup","_globalObject","_ThemeFactory","_ThemeContext","_RenderContainer","_CommonWrapper","_currentEnvironment","_rootNode","_Toast2","_ToastView","_ToastStatic","_class","_Toast","ToastDataTids","exports","toastStatic","toastView","action","close","Toast","rootNode","_React$Component","props","_this","call","rootRef","React","createRef","safelyCall","onClose","state","notification","setState","setRootRef","element","setRootNode","current","_clearTimer","_timeout","globalObject","clearTimeout","_setTimer","_this$state$showTime","showTime","setTimeout","_refToast","_toast","id","showCloseIcon","_inheritsLoose2","default","push","ToastStatic","_proto","prototype","componentWillUnmount","render","_this2","createElement","ThemeContext","Consumer","theme","ThemeFactory","create","Provider","value","RenderContainer","TransitionGroup","_renderToast","onPush","_ref","_this$state","toastProps","onMouseEnter","onMouseLeave","children","CSSTransition","key","classNames","enter","styles","enterActive","exit","exitActive","timeout","isTestEnv","nodeRef","CommonWrapper","_extends2","rootNodeRef","ToastView","ref","Component","__KONTUR_REACT_UI__","displayName","fn","_len","arguments","length","args","Array","_key","apply"],"sources":["Toast.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport { globalObject, SafeTimer } from '@skbkontur/global-object';\n\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { RenderContainer } from '../../internal/RenderContainer';\nimport { Nullable } from '../../typings/utility-types';\nimport { CommonProps, CommonWrapper } from '../../internal/CommonWrapper';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\n\nimport { styles } from './Toast.styles';\nimport { ToastView, ToastViewProps } from './ToastView';\nimport { ToastStatic } from './ToastStatic';\n\nexport interface Action {\n label: string;\n handler: () => void;\n 'aria-label'?: string;\n}\n\nexport interface ToastState {\n notification: Nullable<string>;\n action: Nullable<Action>;\n id: number;\n showTime: Nullable<number>;\n showCloseIcon?: boolean;\n}\n\nexport interface ToastProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps {\n /** Задает функцию, которая вызывается при возникновении тоста. */\n onPush?: (notification: string, action?: Action) => void;\n\n /** Задает функцию, которая вызывается при закрытии тоста. */\n onClose?: (notification: string, action?: Action) => void;\n\n /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */\n theme?: ThemeIn;\n}\n\nexport const ToastDataTids = {\n toastStatic: 'StaticToast',\n toastView: 'ToastView__root',\n action: 'ToastView__action',\n close: 'ToastView__close',\n} as const;\n\n/**\n * `Toast` — это короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его команды.\n * Результат может быть положительным, отрицательным или нейтральным.\n *\n * Доступен статический метод: `Toast.push(notification, action?, showTime?)`.\n * Однако, при его использовании не работает кастомизация, они не поддерживаются в `React@18`, а также могут быть проблемы с перекрытием уведомления другими элементами страницы.\n *\n * Для статических тостов рекомендуется использовать компонент SingleToast - в нём исправлены эти проблемы.\n */\n@rootNode\nexport class Toast extends React.Component<ToastProps, ToastState> {\n public static __KONTUR_REACT_UI__ = 'Toast';\n public static displayName = 'Toast';\n\n private setRootNode!: TSetRootNode;\n private theme!: Theme;\n\n /** @deprecated use `push` method in ref or `SingleToast.push` */\n public static push(notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) {\n ToastStatic.push(notification, action, showTime, showCloseIcon);\n }\n\n /** @deprecated use `close` method in ref or `SingleToast.close` */\n public static close() {\n ToastStatic.close();\n }\n\n public _toast: Nullable<ToastView>;\n private _timeout: SafeTimer;\n private rootRef = React.createRef<HTMLElement>();\n\n constructor(props: ToastProps) {\n super(props);\n this.state = {\n notification: null,\n action: null,\n id: 0,\n showTime: null,\n showCloseIcon: false,\n };\n }\n\n public componentWillUnmount() {\n this._clearTimer();\n }\n\n public render() {\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 <ThemeContext.Provider value={this.theme}>\n <RenderContainer>\n <TransitionGroup>{this._renderToast()}</TransitionGroup>\n </RenderContainer>\n </ThemeContext.Provider>\n );\n }}\n </ThemeContext.Consumer>\n );\n }\n\n /**\n * Показывает тост с `notification` в качестве сообщения.\n * Тост автоматически скрывается через 3 или 7 секунд,\n * в зависимости от наличия у него кнопки `action`.\n * Время показа можно задать вручную, передав `showTime`.\n *\n * @public\n * @param {string} notification\n * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`\n * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler\n * @param {number} showTime Время существования Toast в миллисекундах\n * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.\n */\n public push(notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) {\n if (this.state.notification) {\n this.close();\n }\n\n safelyCall(this.props.onPush, notification, action);\n\n this.setState(({ id }) => ({ notification, action, id: id + 1, showTime, showCloseIcon }), this._setTimer);\n }\n\n /**\n * @public\n */\n public close = () => {\n safelyCall(this.props.onClose, this.state.notification, this.state.action);\n this.setState({ notification: null, action: null });\n };\n\n private _renderToast() {\n const { notification, action, id, showCloseIcon } = this.state;\n\n if (!notification) {\n return null;\n }\n\n const toastProps: ToastViewProps = {\n onMouseEnter: this._clearTimer,\n onMouseLeave: this._setTimer,\n onClose: this.close,\n children: notification,\n 'aria-label': this.props['aria-label'],\n action,\n showCloseIcon,\n };\n\n return (\n <CSSTransition\n key={id}\n classNames={{\n enter: styles.enter(),\n enterActive: styles.enterActive(),\n exit: styles.exit(),\n exitActive: styles.exitActive(),\n }}\n timeout={{\n enter: 200,\n exit: 150,\n }}\n enter={!isTestEnv}\n exit={!isTestEnv}\n nodeRef={this.rootRef}\n >\n <CommonWrapper rootNodeRef={this.setRootRef} {...this.props}>\n <ToastView ref={this._refToast} {...toastProps} />\n </CommonWrapper>\n </CSSTransition>\n );\n }\n\n private setRootRef = (element: Nullable<Element>) => {\n this.setRootNode(element);\n // @ts-expect-error: See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31065.\n this.rootRef.current = element;\n };\n\n private _clearTimer = () => {\n if (this._timeout) {\n globalObject.clearTimeout(this._timeout);\n this._timeout = null;\n }\n };\n\n private _setTimer = () => {\n this._clearTimer();\n\n let showTime = this.state.action ? 7000 : 3000;\n showTime = this.state.showTime ?? showTime;\n this._timeout = globalObject.setTimeout(this.close, showTime);\n };\n\n private _refToast = (element: ToastView) => {\n this._toast = element;\n };\n}\n\nfunction safelyCall(fn: Nullable<(a?: any) => any>, ...args: any[]) {\n if (fn) {\n fn(...args);\n }\n}\n"],"mappings":"mWAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;;AAEA,IAAAK,gBAAA,GAAAL,OAAA;;AAEA,IAAAM,cAAA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
  import { Nullable } from '../../typings/utility-types';
2
2
  import { Action } from './Toast';
3
3
  export declare class ToastStatic {
4
- static push: (notification: string, action?: Nullable<Action>, showTime?: number) => void;
5
- static _push: (notification: string, action?: Nullable<Action>, showTime?: number) => void;
4
+ static push: (notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) => void;
5
+ static _push: (notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) => void;
6
6
  static close: () => void;
7
7
  private static node;
8
8
  private static instance;
@@ -7,7 +7,12 @@ var _globalObject = require("@skbkontur/global-object");
7
7
  var _Toast = require("./Toast");var _ToastStatic;var
8
8
 
9
9
  ToastStatic = exports.ToastStatic = function ToastStatic() {};_ToastStatic = ToastStatic;ToastStatic.
10
- push = function (notification, action, showTime) {
10
+ push = function (
11
+ notification,
12
+ action,
13
+ showTime,
14
+ showCloseIcon)
15
+ {
11
16
  if (!_ToastStatic.node && _globalObject.globalObject.document) {
12
17
  _ToastStatic.node = _globalObject.globalObject.document.createElement('div');
13
18
  var body = _globalObject.globalObject.document.body;
@@ -19,16 +24,21 @@ push = function (notification, action, showTime) {
19
24
  _reactDom.default.render( /*#__PURE__*/
20
25
  _react.default.createElement(_Toast.Toast, { "data-tid": _Toast.ToastDataTids.toastStatic, ref: function ref(el) {return _ToastStatic.instance = el;} }),
21
26
  _ToastStatic.node,
22
- function () {return _ToastStatic._push(notification, action, showTime);}
27
+ function () {return _ToastStatic._push(notification, action, showTime, showCloseIcon);}
23
28
  );
24
29
  } else {
25
- _ToastStatic._push(notification, action, showTime);
30
+ _ToastStatic._push(notification, action, showTime, showCloseIcon);
26
31
  }
27
32
  };ToastStatic.
28
33
 
29
- _push = function (notification, action, showTime) {
34
+ _push = function (
35
+ notification,
36
+ action,
37
+ showTime,
38
+ showCloseIcon)
39
+ {
30
40
  if (_ToastStatic.instance) {
31
- _ToastStatic.instance.push(notification, action, showTime);
41
+ _ToastStatic.instance.push(notification, action, showTime, showCloseIcon);
32
42
  }
33
43
  };ToastStatic.
34
44
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_globalObject","_Toast","_ToastStatic","ToastStatic","exports","push","notification","action","showTime","node","globalObject","document","createElement","body","Error","appendChild","ReactDOM","render","default","Toast","ToastDataTids","toastStatic","ref","el","instance","_push","close"],"sources":["ToastStatic.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { Nullable } from '../../typings/utility-types';\n\nimport { Toast, Action, ToastDataTids } from './Toast';\n\nexport class ToastStatic {\n public static push = (notification: string, action?: Nullable<Action>, showTime?: number) => {\n if (!ToastStatic.node && globalObject.document) {\n ToastStatic.node = globalObject.document.createElement('div');\n const { body } = globalObject.document;\n if (!body) {\n throw Error('There is no \"body\" element in \"document\"');\n }\n body.appendChild(ToastStatic.node);\n\n ReactDOM.render(\n <Toast data-tid={ToastDataTids.toastStatic} ref={(el) => (ToastStatic.instance = el)} />,\n ToastStatic.node,\n () => ToastStatic._push(notification, action, showTime),\n );\n } else {\n ToastStatic._push(notification, action, showTime);\n }\n };\n\n public static _push = (notification: string, action?: Nullable<Action>, showTime?: number) => {\n if (ToastStatic.instance) {\n ToastStatic.instance.push(notification, action, showTime);\n }\n };\n\n public static close = () => {\n if (ToastStatic.instance) {\n ToastStatic.instance.close();\n }\n };\n\n private static node: HTMLDivElement;\n private static instance: Nullable<Toast> = null;\n}\n"],"mappings":"iKAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;;;AAIA,IAAAG,MAAA,GAAAH,OAAA,YAAuD,IAAAI,YAAA;;AAE1CC,WAAW,GAAAC,OAAA,CAAAD,WAAA,YAAAA,YAAA,KAAAD,YAAA,GAAXC,WAAW,CAAXA,WAAW;AACRE,IAAI,GAAG,UAACC,YAAoB,EAAEC,MAAy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iCPqB,QAAQ,GAAoB,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_globalObject","_Toast","_ToastStatic","ToastStatic","exports","push","notification","action","showTime","showCloseIcon","node","globalObject","document","createElement","body","Error","appendChild","ReactDOM","render","default","Toast","ToastDataTids","toastStatic","ref","el","instance","_push","close"],"sources":["ToastStatic.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { Nullable } from '../../typings/utility-types';\n\nimport { Toast, Action, ToastDataTids } from './Toast';\n\nexport class ToastStatic {\n public static push = (\n notification: string,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n ) => {\n if (!ToastStatic.node && globalObject.document) {\n ToastStatic.node = globalObject.document.createElement('div');\n const { body } = globalObject.document;\n if (!body) {\n throw Error('There is no \"body\" element in \"document\"');\n }\n body.appendChild(ToastStatic.node);\n\n ReactDOM.render(\n <Toast data-tid={ToastDataTids.toastStatic} ref={(el) => (ToastStatic.instance = el)} />,\n ToastStatic.node,\n () => ToastStatic._push(notification, action, showTime, showCloseIcon),\n );\n } else {\n ToastStatic._push(notification, action, showTime, showCloseIcon);\n }\n };\n\n public static _push = (\n notification: string,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n ) => {\n if (ToastStatic.instance) {\n ToastStatic.instance.push(notification, action, showTime, showCloseIcon);\n }\n };\n\n public static close = () => {\n if (ToastStatic.instance) {\n ToastStatic.instance.close();\n }\n };\n\n private static node: HTMLDivElement;\n private static instance: Nullable<Toast> = null;\n}\n"],"mappings":"iKAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;;;AAIA,IAAAG,MAAA,GAAAH,OAAA,YAAuD,IAAAI,YAAA;;AAE1CC,WAAW,GAAAC,OAAA,CAAAD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,WAAW;;AAoCRwB,KAAK,GAAG,YAAM;EAC1B,IAAIxB,YAAW,CAACsB,QAAQ,EAAE;IACxBtB,YAAW,CAACsB,QAAQ,CAACE,KAAK,CAAC,CAAC;EAC9B;AACF,CAAC,CAxCUxB,WAAW;;;AA2CPsB,QAAQ,GAAoB,IAAI","ignoreList":[]}
@@ -7,6 +7,7 @@ export interface ToastViewProps extends Pick<AriaAttributes, 'aria-label'>, Comm
7
7
  children?: string;
8
8
  /** Добавляет возможность действия и кнопку закрытия у тоста. */
9
9
  action?: Nullable<Action>;
10
+ showCloseIcon?: boolean;
10
11
  onClose?: () => void;
11
12
  onMouseEnter?: () => void;
12
13
  onMouseLeave?: () => void;
@@ -26,6 +26,7 @@ var _locale = require("./locale");var _dec, _class, _ToastView;var
26
26
 
27
27
 
28
28
 
29
+
29
30
  ToastView = exports.ToastView = (_dec = (0, _decorators.locale)('Toast', _locale.ToastLocaleHelper), (0, _rootNode.rootNode)(_class = _dec(_class = (_ToastView = /*#__PURE__*/function (_React$Component) {function ToastView() {var _this;for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;_this.
30
31
 
31
32
 
@@ -58,7 +59,7 @@ ToastView = exports.ToastView = (_dec = (0, _decorators.locale)('Toast', _locale
58
59
 
59
60
 
60
61
  renderMain = function () {
61
- var _this$props = _this.props,action = _this$props.action,onClose = _this$props.onClose,onMouseEnter = _this$props.onMouseEnter,onMouseLeave = _this$props.onMouseLeave;
62
+ var _this$props = _this.props,action = _this$props.action,showCloseIcon = _this$props.showCloseIcon,onClose = _this$props.onClose,onMouseEnter = _this$props.onMouseEnter,onMouseLeave = _this$props.onMouseLeave;
62
63
 
63
64
  var link = action ? /*#__PURE__*/
64
65
  _react.default.createElement("button", {
@@ -71,7 +72,8 @@ ToastView = exports.ToastView = (_dec = (0, _decorators.locale)('Toast', _locale
71
72
  ) :
72
73
  null;
73
74
 
74
- var close = action ? /*#__PURE__*/
75
+ var close =
76
+ action || showCloseIcon ? /*#__PURE__*/
75
77
  _react.default.createElement("span", { className: _ToastView2.styles.closeWrapper(_this.theme) }, /*#__PURE__*/
76
78
  _react.default.createElement(_CloseButtonIcon.CloseButtonIcon, {
77
79
  "aria-label": _this.locale.closeButtonAriaLabel,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_decorators","_ZIndex","_ThemeContext","_CommonWrapper","_rootNode","_CloseButtonIcon","_ToastView2","_Toast","_locale","_dec","_class","_ToastView","ToastView","exports","locale","ToastLocaleHelper","rootNode","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","renderMain","_this$props","props","action","onClose","onMouseEnter","onMouseLeave","link","default","createElement","ToastDataTids","className","styles","theme","onClick","handler","label","close","closeWrapper","CloseButtonIcon","closeButtonAriaLabel","size","parseInt","toastCloseSize","side","color","toastCloseColor","colorHover","toastCloseHoverColor","tabbable","CommonWrapper","ZIndex","priority","wrapper","toastView","root","ref","setRootNode","children","_inheritsLoose2","_proto","prototype","render","_this2","ThemeContext","Consumer","React","Component","propTypes","shape","string","isRequired","func"],"sources":["ToastView.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport { func, shape, string } from 'prop-types';\n\nimport { locale } from '../../lib/locale/decorators';\nimport { Nullable } from '../../typings/utility-types';\nimport { ZIndex } from '../../internal/ZIndex';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { Theme } from '../../lib/theming/Theme';\nimport { CommonProps, CommonWrapper } from '../../internal/CommonWrapper';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { CloseButtonIcon } from '../../internal/CloseButtonIcon/CloseButtonIcon';\n\nimport { styles } from './ToastView.styles';\nimport { Action, ToastDataTids } from './Toast';\nimport { ToastLocale, ToastLocaleHelper } from './locale';\n\nexport interface ToastViewProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps {\n /** Задает контент тоста. */\n children?: string;\n /** Добавляет возможность действия и кнопку закрытия у тоста. */\n action?: Nullable<Action>;\n onClose?: () => void;\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n}\n\n@rootNode\n@locale('Toast', ToastLocaleHelper)\nexport class ToastView extends React.Component<ToastViewProps> {\n public static propTypes = {\n /**\n * Adds action handling and close icon for toast\n */\n action: shape({\n label: string.isRequired,\n handler: func.isRequired,\n }),\n /**\n * Toast content\n */\n children: string.isRequired,\n onClose: func,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private readonly locale!: ToastLocale;\n\n public render() {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = theme;\n return this.renderMain();\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private renderMain = () => {\n const { action, onClose, onMouseEnter, onMouseLeave } = this.props;\n\n const link = action ? (\n <button\n aria-label={action['aria-label']}\n data-tid={ToastDataTids.action}\n className={styles.link(this.theme)}\n onClick={action.handler}\n >\n {action.label}\n </button>\n ) : null;\n\n const close = action ? (\n <span className={styles.closeWrapper(this.theme)}>\n <CloseButtonIcon\n aria-label={this.locale.closeButtonAriaLabel}\n data-tid={ToastDataTids.close}\n onClick={onClose}\n size={parseInt(this.theme.toastCloseSize)}\n side={40}\n color={this.theme.toastCloseColor}\n colorHover={this.theme.toastCloseHoverColor}\n tabbable={false}\n />\n </span>\n ) : null;\n\n return (\n <CommonWrapper {...this.props}>\n <ZIndex priority=\"Toast\" className={styles.wrapper(this.theme)}>\n <div\n data-tid={ToastDataTids.toastView}\n className={styles.root(this.theme)}\n ref={this.setRootNode}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <span>{this.props.children}</span>\n {link}\n {close}\n </div>\n </ZIndex>\n </CommonWrapper>\n );\n };\n}\n"],"mappings":"6PAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;;AAEA,IAAAE,WAAA,GAAAF,OAAA;;AAEA,IA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AK+C,WAAY;UACtBhC,YAAY,EAAEA,YAAa;UAC3BC,YAAY,EAAEA,YAAa;;QAE3BtC,MAAA,CAAAwC,OAAA,CAAAC,aAAA,eAAOnB,KAAA,CAAKY,KAAK,CAACoC,QAAe,CAAC;QACjC/B,IAAI;QACJU;QACE;QACC;QACK,CAAC;;IAEpB,CAAC,QAAA3B,KAAA,MAAAiD,eAAA,CAAA/B,OAAA,EAAAxB,SAAA,EAAAK,gBAAA,MAAAmD,MAAA,GAAAxD,SAAA,CAAAyD,SAAA,CAAAD,MAAA,CAzDME,MAAM,GAAb,SAAAA,OAAA,EAAgB,KAAAC,MAAA,QACd,oBACE3E,MAAA,CAAAwC,OAAA,CAAAC,aAAA,CAACnC,aAAA,CAAAsE,YAAY,CAACC,QAAQ,QACnB,UAAChC,KAAK,EAAK,CACV8B,MAAI,CAAC9B,KAAK,GAAGA,KAAK,CAClB,OAAO8B,MAAI,CAAC3C,UAAU,CAAC,CAAC,CAC1B,CACqB,CAAC,CAE5B,CAAC,QAAAhB,SAAA,GA7B4B8D,cAAK,CAACC,SAAS,GAAAhE,UAAA,CAC9BiE,SAAS,GAAG,EACxB;AACJ;AACA,KACI7C,MAAM,EAAE,IAAA8C,gBAAK,EAAC,EACZjC,KAAK,EAAEkC,iBAAM,CAACC,UAAU,EACxBpC,OAAO,EAAEqC,eAAI,CAACD,UAAU,CAC1B,CAAC,CAAC,EACF;AACJ;AACA,KACIb,QAAQ,EAAEY,iBAAM,CAACC,UAAU,EAC3B/C,OAAO,EAAEgD,eAAI,CACf,CAAC,EAAArE,UAAA,MAAAD,MAAA,KAAAA,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_decorators","_ZIndex","_ThemeContext","_CommonWrapper","_rootNode","_CloseButtonIcon","_ToastView2","_Toast","_locale","_dec","_class","_ToastView","ToastView","exports","locale","ToastLocaleHelper","rootNode","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","renderMain","_this$props","props","action","showCloseIcon","onClose","onMouseEnter","onMouseLeave","link","default","createElement","ToastDataTids","className","styles","theme","onClick","handler","label","close","closeWrapper","CloseButtonIcon","closeButtonAriaLabel","size","parseInt","toastCloseSize","side","color","toastCloseColor","colorHover","toastCloseHoverColor","tabbable","CommonWrapper","ZIndex","priority","wrapper","toastView","root","ref","setRootNode","children","_inheritsLoose2","_proto","prototype","render","_this2","ThemeContext","Consumer","React","Component","propTypes","shape","string","isRequired","func"],"sources":["ToastView.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport { func, shape, string } from 'prop-types';\n\nimport { locale } from '../../lib/locale/decorators';\nimport { Nullable } from '../../typings/utility-types';\nimport { ZIndex } from '../../internal/ZIndex';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { Theme } from '../../lib/theming/Theme';\nimport { CommonProps, CommonWrapper } from '../../internal/CommonWrapper';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { CloseButtonIcon } from '../../internal/CloseButtonIcon/CloseButtonIcon';\n\nimport { styles } from './ToastView.styles';\nimport { Action, ToastDataTids } from './Toast';\nimport { ToastLocale, ToastLocaleHelper } from './locale';\n\nexport interface ToastViewProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps {\n /** Задает контент тоста. */\n children?: string;\n /** Добавляет возможность действия и кнопку закрытия у тоста. */\n action?: Nullable<Action>;\n showCloseIcon?: boolean;\n onClose?: () => void;\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n}\n\n@rootNode\n@locale('Toast', ToastLocaleHelper)\nexport class ToastView extends React.Component<ToastViewProps> {\n public static propTypes = {\n /**\n * Adds action handling and close icon for toast\n */\n action: shape({\n label: string.isRequired,\n handler: func.isRequired,\n }),\n /**\n * Toast content\n */\n children: string.isRequired,\n onClose: func,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private readonly locale!: ToastLocale;\n\n public render() {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = theme;\n return this.renderMain();\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private renderMain = () => {\n const { action, showCloseIcon, onClose, onMouseEnter, onMouseLeave } = this.props;\n\n const link = action ? (\n <button\n aria-label={action['aria-label']}\n data-tid={ToastDataTids.action}\n className={styles.link(this.theme)}\n onClick={action.handler}\n >\n {action.label}\n </button>\n ) : null;\n\n const close =\n action || showCloseIcon ? (\n <span className={styles.closeWrapper(this.theme)}>\n <CloseButtonIcon\n aria-label={this.locale.closeButtonAriaLabel}\n data-tid={ToastDataTids.close}\n onClick={onClose}\n size={parseInt(this.theme.toastCloseSize)}\n side={40}\n color={this.theme.toastCloseColor}\n colorHover={this.theme.toastCloseHoverColor}\n tabbable={false}\n />\n </span>\n ) : null;\n\n return (\n <CommonWrapper {...this.props}>\n <ZIndex priority=\"Toast\" className={styles.wrapper(this.theme)}>\n <div\n data-tid={ToastDataTids.toastView}\n className={styles.root(this.theme)}\n ref={this.setRootNode}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <span>{this.props.children}</span>\n {link}\n {close}\n </div>\n </ZIndex>\n </CommonWrapper>\n );\n };\n}\n"],"mappings":"6PAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;;AAEA,IAAAE,WAAA,GAAAF,OAAA;;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;;AAEA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;;AAEA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA,aAA0D,IAAAW,IAAA,EAAAC,MAAA,EAAAC,UAAA;;;;;;;;;;;;;;;AAe7CC,SAAS,GAAAC,OAAA,CAAAD,SAAA,IAAAH,IAAA,GADrB,IAAAK,kBAAM,EA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AA,CA1DME,MAAM,GAAb,SAAAA,OAAA,EAAgB,KAAAC,MAAA,QACd,oBACE5E,MAAA,CAAAyC,OAAA,CAAAC,aAAA,CAACpC,aAAA,CAAAuE,YAAY,CAACC,QAAQ,QACnB,UAAChC,KAAK,EAAK,CACV8B,MAAI,CAAC9B,KAAK,GAAGA,KAAK,CAClB,OAAO8B,MAAI,CAAC5C,UAAU,CAAC,CAAC,CAC1B,CACqB,CAAC,CAE5B,CAAC,QAAAhB,SAAA,GA7B4B+D,cAAK,CAACC,SAAS,GAAAjE,UAAA,CAC9BkE,SAAS,GAAG,EACxB;AACJ;AACA,KACI9C,MAAM,EAAE,IAAA+C,gBAAK,EAAC,EACZjC,KAAK,EAAEkC,iBAAM,CAACC,UAAU,EACxBpC,OAAO,EAAEqC,eAAI,CAACD,UAAU,CAC1B,CAAC,CAAC,EACF;AACJ;AACA,KACIb,QAAQ,EAAEY,iBAAM,CAACC,UAAU,EAC3B/C,OAAO,EAAEgD,eAAI,CACf,CAAC,EAAAtE,UAAA,MAAAD,MAAA,KAAAA,MAAA","ignoreList":[]}
@@ -40,9 +40,9 @@ var styles = exports.styles = (0, _Emotion.memoizeStyle)({
40
40
 
41
41
  closeWrapper: function closeWrapper(t) {
42
42
  var _getVerticalPaddings2 = getVerticalPaddings(t),paddingTop = _getVerticalPaddings2[0],paddingBottom = _getVerticalPaddings2[1];
43
- return (0, _Emotion.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteralLoose2.default)(["\n display: flex;\n margin: -", " -", " -", " -", ";\n "])),
43
+ return (0, _Emotion.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteralLoose2.default)(["\n display: flex;\n margin: -", " -", " -", " 0;\n "])),
44
44
 
45
- paddingTop, t.toastPaddingX, paddingBottom, t.toastClosePadding);
45
+ paddingTop, t.toastPaddingX, paddingBottom);
46
46
 
47
47
  },
48
48
 
@@ -50,7 +50,7 @@ var styles = exports.styles = (0, _Emotion.memoizeStyle)({
50
50
  var _getVerticalPaddings3 = getVerticalPaddings(t),paddingTop = _getVerticalPaddings3[0],paddingBottom = _getVerticalPaddings3[1];
51
51
  var padding = paddingTop + " " + t.toastLinkPadding;
52
52
 
53
- return (0, _Emotion.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteralLoose2.default)(["\n border: none;\n font: inherit;\n color: ", ";\n cursor: pointer;\n display: inline-block;\n font-weight: 600;\n background-color: transparent;\n\n margin: -", " ", " -", " ", ";\n\n padding: ", ";\n transition: background ", " ", ";\n &:hover {\n background: ", ";\n text-decoration: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])),
53
+ return (0, _Emotion.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteralLoose2.default)(["\n border: none;\n font: inherit;\n color: ", ";\n cursor: pointer;\n display: inline-block;\n font-weight: 600;\n background-color: transparent;\n\n margin: -", " 0 -", " ", ";\n\n padding: ", ";\n transition: background ", " ", ";\n &:hover {\n background: ", ";\n text-decoration: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])),
54
54
 
55
55
 
56
56
  t.toastLinkColor,
@@ -59,7 +59,7 @@ var styles = exports.styles = (0, _Emotion.memoizeStyle)({
59
59
 
60
60
 
61
61
 
62
- paddingTop, t.toastPaddingX, paddingBottom, t.toastPaddingX,
62
+ paddingTop, paddingBottom, t.toastPaddingX,
63
63
 
64
64
  padding,
65
65
  t.transitionDuration, t.transitionTimingFunction,
@@ -1 +1 @@
1
- {"version":3,"names":["_Emotion","require","_templateObject","_templateObject2","_templateObject3","_templateObject4","getVerticalPaddings","theme","toastPaddingY","paddingY","parseInt","styles","exports","memoizeStyle","root","t","_getVerticalPaddings","paddingTop","paddingBottom","css","_taggedTemplateLiteralLoose2","default","toastBg","toastBorderRadius","toastBorder","toastColor","toastFontSize","toastLineHeight","toastPaddingX","toastTop","wrapper","closeWrapper","_getVerticalPaddings2","toastClosePadding","link","_getVerticalPaddings3","padding","toastLinkPadding","toastLinkColor","transitionDuration","transitionTimingFunction","toastLinkBgHover","toastLinkTextDecorationHover","toastLinkBgActive"],"sources":["ToastView.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport { Theme } from '../../lib/theming/Theme';\n\nconst getVerticalPaddings = (theme: Theme) => {\n const { toastPaddingY } = theme;\n const paddingY = parseInt(toastPaddingY);\n\n return [`${paddingY}px`, `${paddingY}px`];\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n return css`\n background: ${t.toastBg};\n border-radius: ${t.toastBorderRadius};\n border: ${t.toastBorder};\n color: ${t.toastColor};\n display: inline-flex;\n font-size: ${t.toastFontSize};\n line-height: ${t.toastLineHeight};\n opacity: 1;\n padding: ${paddingTop} ${t.toastPaddingX} ${paddingBottom};\n position: relative;\n top: ${t.toastTop};\n `;\n },\n\n wrapper(t: Theme) {\n return css`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 0;\n text-align: center;\n border-radius: ${t.toastBorderRadius};\n `;\n },\n\n closeWrapper(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n return css`\n display: flex;\n margin: -${paddingTop} -${t.toastPaddingX} -${paddingBottom} -${t.toastClosePadding};\n `;\n },\n\n link(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n const padding = `${paddingTop} ${t.toastLinkPadding}`;\n\n return css`\n border: none;\n font: inherit;\n color: ${t.toastLinkColor};\n cursor: pointer;\n display: inline-block;\n font-weight: 600;\n background-color: transparent;\n\n margin: -${paddingTop} ${t.toastPaddingX} -${paddingBottom} ${t.toastPaddingX};\n\n padding: ${padding};\n transition: background ${t.transitionDuration} ${t.transitionTimingFunction};\n &:hover {\n background: ${t.toastLinkBgHover};\n text-decoration: ${t.toastLinkTextDecorationHover};\n }\n\n &:active {\n background: ${t.toastLinkBgActive};\n }\n `;\n },\n});\n"],"mappings":"oRAAA,IAAAA,QAAA,GAAAC,OAAA,8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C,OAAA;;IAEGJ,UAAU,EAAKF,CAAC,CAACa,aAAa,EAAKV,aAAa,EAAKH,CAAC,CAACkB,iBAAiB;;EAEvF,CAAC;;EAEDC,IAAI,WAAAA,KAACnB,CAAQ,EAAE;IACb,IAAAoB,qBAAA,GAAoC7B,mBAAmB,CAACS,CAAC,CAAC,CAAnDE,UAAU,GAAAkB,qBAAA,IAAEjB,aAAa,GAAAiB,qBAAA;IAChC,IAAMC,OAAO,GAAMnB,UAAU,SAAIF,CAAC,CAACsB,gBAAkB;;IAErD,WAAOlB,YAAG,EAAAd,gBAAA,KAAAA,gBAAA,OAAAe,4BAAA,CAAAC,OAAA;;;IAGCN,CAAC,CAACuB,cAAc;;;;;;IAMdrB,UAAU,EAAIF,CAAC,CAACa,aAAa,EAAKV,aAAa,EAAIH,CAAC,CAACa,aAAa;;IAElEQ,OAAO;IACOrB,CAAC,CAACwB,kBAAkB,EAAIxB,CAAC,CAACyB,wBAAwB;;IAE3DzB,CAAC,CAAC0B,gBAAgB;IACb1B,CAAC,CAAC2B,4BAA4B;;;;IAInC3B,CAAC,CAAC4B,iBAAiB;;;EAGvC;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_Emotion","require","_templateObject","_templateObject2","_templateObject3","_templateObject4","getVerticalPaddings","theme","toastPaddingY","paddingY","parseInt","styles","exports","memoizeStyle","root","t","_getVerticalPaddings","paddingTop","paddingBottom","css","_taggedTemplateLiteralLoose2","default","toastBg","toastBorderRadius","toastBorder","toastColor","toastFontSize","toastLineHeight","toastPaddingX","toastTop","wrapper","closeWrapper","_getVerticalPaddings2","link","_getVerticalPaddings3","padding","toastLinkPadding","toastLinkColor","transitionDuration","transitionTimingFunction","toastLinkBgHover","toastLinkTextDecorationHover","toastLinkBgActive"],"sources":["ToastView.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport { Theme } from '../../lib/theming/Theme';\n\nconst getVerticalPaddings = (theme: Theme) => {\n const { toastPaddingY } = theme;\n const paddingY = parseInt(toastPaddingY);\n\n return [`${paddingY}px`, `${paddingY}px`];\n};\n\nexport const styles = memoizeStyle({\n root(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n return css`\n background: ${t.toastBg};\n border-radius: ${t.toastBorderRadius};\n border: ${t.toastBorder};\n color: ${t.toastColor};\n display: inline-flex;\n font-size: ${t.toastFontSize};\n line-height: ${t.toastLineHeight};\n opacity: 1;\n padding: ${paddingTop} ${t.toastPaddingX} ${paddingBottom};\n position: relative;\n top: ${t.toastTop};\n `;\n },\n\n wrapper(t: Theme) {\n return css`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 0;\n text-align: center;\n border-radius: ${t.toastBorderRadius};\n `;\n },\n\n closeWrapper(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n return css`\n display: flex;\n margin: -${paddingTop} -${t.toastPaddingX} -${paddingBottom} 0;\n `;\n },\n\n link(t: Theme) {\n const [paddingTop, paddingBottom] = getVerticalPaddings(t);\n const padding = `${paddingTop} ${t.toastLinkPadding}`;\n\n return css`\n border: none;\n font: inherit;\n color: ${t.toastLinkColor};\n cursor: pointer;\n display: inline-block;\n font-weight: 600;\n background-color: transparent;\n\n margin: -${paddingTop} 0 -${paddingBottom} ${t.toastPaddingX};\n\n padding: ${padding};\n transition: background ${t.transitionDuration} ${t.transitionTimingFunction};\n &:hover {\n background: ${t.toastLinkBgHover};\n text-decoration: ${t.toastLinkTextDecorationHover};\n }\n\n &:active {\n background: ${t.toastLinkBgActive};\n }\n `;\n },\n});\n"],"mappings":"oRAAA,IAAAA,QAAA,GAAAC,OAAA,8BAA8D,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA;;;AAG9D,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,KAAY,EAAK;EAC5C,IAAQC,aAAa,GAAKD,KAAK,CAAvBC,aAAa;EACrB,IAAMC,QAAQ,GAA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,IAAEhB,aAAa,GAAAgB,qBAAA;IAChC,IAAMC,OAAO,GAAMlB,UAAU,SAAIF,CAAC,CAACqB,gBAAkB;;IAErD,WAAOjB,YAAG,EAAAd,gBAAA,KAAAA,gBAAA,OAAAe,4BAAA,CAAAC,OAAA;;;IAGCN,CAAC,CAACsB,cAAc;;;;;;IAMdpB,UAAU,EAAOC,aAAa,EAAIH,CAAC,CAACa,aAAa;;IAEjDO,OAAO;IACOpB,CAAC,CAACuB,kBAAkB,EAAIvB,CAAC,CAACwB,wBAAwB;;IAE3DxB,CAAC,CAACyB,gBAAgB;IACbzB,CAAC,CAAC0B,4BAA4B;;;;IAInC1B,CAAC,CAAC2B,iBAAiB;;;EAGvC;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,77 @@
1
+ import { story, kind, test } from 'creevey';
2
+
3
+ import { delay } from '../../../lib/delay';
4
+
5
+ const kindTests = () => {
6
+ test('toastShown', async (context) => {
7
+ const showToast = context.webdriver.findElement({ css: '[data-tid~="show-toast"]' });
8
+ await context.webdriver.actions({ bridge: true }).click(showToast).move({ x: 0, y: 0 }).click().perform();
9
+ await delay(1000);
10
+ await context.matchImage(await context.takeScreenshot());
11
+ });
12
+ };
13
+
14
+ kind('Toast', () => {
15
+ story('SimpleNotification', () => {
16
+ kindTests();
17
+ });
18
+
19
+ story('TestNotifier', () => {
20
+ kindTests();
21
+ });
22
+
23
+ story('ComplexNotification', () => {
24
+ kindTests();
25
+ });
26
+
27
+ story('complex', () => {
28
+ kindTests();
29
+ });
30
+
31
+ story('StaticMethod', () => {
32
+ kindTests();
33
+ });
34
+
35
+ story('button', () => {
36
+ kindTests();
37
+ });
38
+
39
+ story('data-tid', () => {
40
+ kindTests();
41
+ });
42
+
43
+ story('onClick', () => {
44
+ kindTests();
45
+ });
46
+
47
+ story('Toast', () => {
48
+ kindTests();
49
+ });
50
+
51
+ story('push', () => {
52
+ kindTests();
53
+ });
54
+
55
+ story('ToastWithCross', () => {
56
+ test('idle', async (context) => {
57
+ const showStaticToastButton = context.webdriver.findElement({ css: '[data-tid="show-static-toast"]' });
58
+ const showInstanceToastButton = context.webdriver.findElement({ css: '[data-tid="show-instance-toast"]' });
59
+
60
+ await context.webdriver.actions({ bridge: true }).click(showStaticToastButton).perform();
61
+ await delay(1000);
62
+ const staticToast = await context.takeScreenshot();
63
+
64
+ const closeFirstToast = context.webdriver.findElement({ css: '[data-tid="ToastView__close"]' });
65
+ await context.webdriver
66
+ .actions({ bridge: true })
67
+ .click(closeFirstToast)
68
+ .pause(100)
69
+ .click(showInstanceToastButton)
70
+ .perform();
71
+ await delay(1000);
72
+ const instanceToast = await context.takeScreenshot();
73
+
74
+ await context.matchImages({ staticToast, instanceToast });
75
+ });
76
+ });
77
+ });