@skbkontur/react-ui 5.1.7 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
  3. package/cjs/components/CurrencyLabel/CurrencyLabel.js +19 -15
  4. package/cjs/components/CurrencyLabel/CurrencyLabel.js.map +1 -1
  5. package/cjs/components/DateInput/DateInput.d.ts +1 -0
  6. package/cjs/components/DateInput/DateInput.js +25 -5
  7. package/cjs/components/DateInput/DateInput.js.map +1 -1
  8. package/cjs/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
  9. package/cjs/components/DateInput/helpers/InternalDateMediator.js +10 -1
  10. package/cjs/components/DateInput/helpers/InternalDateMediator.js.map +1 -1
  11. package/cjs/components/Dropdown/Dropdown.d.ts +2 -4
  12. package/cjs/components/FxInput/FxInput.d.ts +1 -1
  13. package/cjs/components/FxInput/FxInput.js.map +1 -1
  14. package/cjs/components/MenuFooter/MenuFooter.d.ts +1 -6
  15. package/cjs/components/MenuFooter/MenuFooter.js +47 -40
  16. package/cjs/components/MenuFooter/MenuFooter.js.map +1 -1
  17. package/cjs/components/MenuHeader/MenuHeader.d.ts +1 -6
  18. package/cjs/components/MenuHeader/MenuHeader.js +49 -41
  19. package/cjs/components/MenuHeader/MenuHeader.js.map +1 -1
  20. package/cjs/components/MenuItem/MenuItem.js +3 -0
  21. package/cjs/components/MenuItem/MenuItem.js.map +1 -1
  22. package/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
  23. package/cjs/components/MenuItem/MenuItem.styles.js +18 -13
  24. package/cjs/components/MenuItem/MenuItem.styles.js.map +1 -1
  25. package/cjs/components/MenuSeparator/MenuSeparator.d.ts +1 -6
  26. package/cjs/components/MenuSeparator/MenuSeparator.js +24 -22
  27. package/cjs/components/MenuSeparator/MenuSeparator.js.map +1 -1
  28. package/cjs/components/MiniModal/MiniModal.js +3 -3
  29. package/cjs/components/MiniModal/MiniModal.js.map +1 -1
  30. package/cjs/components/Modal/Modal.d.ts +20 -4
  31. package/cjs/components/Modal/Modal.js +79 -5
  32. package/cjs/components/Modal/Modal.js.map +1 -1
  33. package/cjs/components/Modal/Modal.styles.d.ts +19 -0
  34. package/cjs/components/Modal/Modal.styles.js +172 -42
  35. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  36. package/cjs/components/Modal/ModalBody.js +8 -1
  37. package/cjs/components/Modal/ModalBody.js.map +1 -1
  38. package/cjs/components/Modal/ModalContext.d.ts +1 -0
  39. package/cjs/components/Modal/ModalContext.js +1 -0
  40. package/cjs/components/Modal/ModalContext.js.map +1 -1
  41. package/cjs/components/Modal/ModalFooter.js +17 -2
  42. package/cjs/components/Modal/ModalFooter.js.map +1 -1
  43. package/cjs/components/Modal/ModalHeader.js +21 -1
  44. package/cjs/components/Modal/ModalHeader.js.map +1 -1
  45. package/cjs/components/RadioGroup/RadioGroup.d.ts +1 -0
  46. package/cjs/components/RadioGroup/RadioGroup.js +18 -1
  47. package/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
  48. package/cjs/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
  49. package/cjs/components/RadioGroup/RadioGroup.styles.js +10 -4
  50. package/cjs/components/RadioGroup/RadioGroup.styles.js.map +1 -1
  51. package/cjs/components/SidePage/SidePage.d.ts +3 -1
  52. package/cjs/components/SidePage/SidePage.js +11 -5
  53. package/cjs/components/SidePage/SidePage.js.map +1 -1
  54. package/cjs/components/SidePage/SidePage.styles.d.ts +0 -1
  55. package/cjs/components/SidePage/SidePage.styles.js +51 -57
  56. package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
  57. package/cjs/components/Sticky/Sticky.js +1 -1
  58. package/cjs/components/Sticky/Sticky.js.map +1 -1
  59. package/cjs/components/Toast/Toast.d.ts +5 -5
  60. package/cjs/components/Toast/Toast.js +2 -2
  61. package/cjs/components/Toast/Toast.js.map +1 -1
  62. package/cjs/components/Toast/ToastStatic.d.ts +3 -2
  63. package/cjs/components/Toast/ToastStatic.js.map +1 -1
  64. package/cjs/components/Toast/ToastView.d.ts +1 -1
  65. package/cjs/components/Toast/ToastView.js.map +1 -1
  66. package/cjs/internal/Popup/Popup.d.ts +1 -0
  67. package/cjs/internal/Popup/Popup.js +11 -1
  68. package/cjs/internal/Popup/Popup.js.map +1 -1
  69. package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  70. package/cjs/internal/themes/BasicTheme.d.ts +4 -0
  71. package/cjs/internal/themes/BasicTheme.js +8 -2
  72. package/cjs/internal/themes/BasicTheme.js.map +1 -1
  73. package/cjs/internal/themes/DarkTheme5_2.d.ts +1 -0
  74. package/cjs/internal/themes/DarkTheme5_2.js +29 -0
  75. package/cjs/internal/themes/DarkTheme5_2.js.map +1 -0
  76. package/cjs/internal/themes/LightTheme5_2.d.ts +1 -0
  77. package/cjs/internal/themes/LightTheme5_2.js +27 -0
  78. package/cjs/internal/themes/LightTheme5_2.js.map +1 -0
  79. package/cjs/lib/ModalStack.d.ts +7 -1
  80. package/cjs/lib/ModalStack.js.map +1 -1
  81. package/cjs/lib/date/InternalDateGetter.d.ts +1 -1
  82. package/cjs/lib/date/InternalDateGetter.js +8 -1
  83. package/cjs/lib/date/InternalDateGetter.js.map +1 -1
  84. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
  85. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
  86. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +7 -1
  87. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  88. package/cjs/lib/theming/ThemeVersions.d.ts +1 -1
  89. package/cjs/lib/theming/ThemeVersions.js.map +1 -1
  90. package/cjs/lib/theming/themes/DarkTheme.d.ts +1 -0
  91. package/cjs/lib/theming/themes/DarkTheme.js +4 -2
  92. package/cjs/lib/theming/themes/DarkTheme.js.map +1 -1
  93. package/cjs/lib/theming/themes/LightTheme.d.ts +1 -0
  94. package/cjs/lib/theming/themes/LightTheme.js +4 -2
  95. package/cjs/lib/theming/themes/LightTheme.js.map +1 -1
  96. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js +8 -6
  97. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js.map +1 -1
  98. package/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
  99. package/components/DateInput/DateInput/DateInput.js +13 -7
  100. package/components/DateInput/DateInput/DateInput.js.map +1 -1
  101. package/components/DateInput/DateInput.d.ts +1 -0
  102. package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js +2 -2
  103. package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js.map +1 -1
  104. package/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
  105. package/components/Dropdown/Dropdown.d.ts +2 -4
  106. package/components/FxInput/FxInput/FxInput.js.map +1 -1
  107. package/components/FxInput/FxInput.d.ts +1 -1
  108. package/components/MenuFooter/MenuFooter/MenuFooter.js +7 -4
  109. package/components/MenuFooter/MenuFooter/MenuFooter.js.map +1 -1
  110. package/components/MenuFooter/MenuFooter.d.ts +1 -6
  111. package/components/MenuHeader/MenuHeader/MenuHeader.js +7 -4
  112. package/components/MenuHeader/MenuHeader/MenuHeader.js.map +1 -1
  113. package/components/MenuHeader/MenuHeader.d.ts +1 -6
  114. package/components/MenuItem/MenuItem/MenuItem.js +3 -1
  115. package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
  116. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js +16 -13
  117. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js.map +1 -1
  118. package/components/MenuItem/MenuItem.styles.d.ts +1 -0
  119. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js +4 -4
  120. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js.map +1 -1
  121. package/components/MenuSeparator/MenuSeparator.d.ts +1 -6
  122. package/components/MiniModal/MiniModal/MiniModal.js +3 -1
  123. package/components/MiniModal/MiniModal/MiniModal.js.map +1 -1
  124. package/components/Modal/Modal/Modal.js +51 -11
  125. package/components/Modal/Modal/Modal.js.map +1 -1
  126. package/components/Modal/Modal.d.ts +20 -4
  127. package/components/Modal/Modal.styles/Modal.styles.js +98 -41
  128. package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
  129. package/components/Modal/Modal.styles.d.ts +19 -0
  130. package/components/Modal/ModalBody/ModalBody.js +5 -1
  131. package/components/Modal/ModalBody/ModalBody.js.map +1 -1
  132. package/components/Modal/ModalContext/ModalContext.js.map +1 -1
  133. package/components/Modal/ModalContext.d.ts +1 -0
  134. package/components/Modal/ModalFooter/ModalFooter.js +14 -2
  135. package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  136. package/components/Modal/ModalHeader/ModalHeader.js +12 -2
  137. package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
  138. package/components/RadioGroup/RadioGroup/RadioGroup.js +23 -17
  139. package/components/RadioGroup/RadioGroup/RadioGroup.js.map +1 -1
  140. package/components/RadioGroup/RadioGroup.d.ts +1 -0
  141. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js +7 -4
  142. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js.map +1 -1
  143. package/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
  144. package/components/SidePage/SidePage/SidePage.js +15 -8
  145. package/components/SidePage/SidePage/SidePage.js.map +1 -1
  146. package/components/SidePage/SidePage.d.ts +3 -1
  147. package/components/SidePage/SidePage.styles/SidePage.styles.js +51 -54
  148. package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
  149. package/components/SidePage/SidePage.styles.d.ts +0 -1
  150. package/components/Sticky/Sticky/Sticky.js +1 -1
  151. package/components/Sticky/Sticky/Sticky.js.map +1 -1
  152. package/components/Toast/Toast/Toast.js +2 -2
  153. package/components/Toast/Toast/Toast.js.map +1 -1
  154. package/components/Toast/Toast.d.ts +5 -5
  155. package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
  156. package/components/Toast/ToastStatic.d.ts +3 -2
  157. package/components/Toast/ToastView/ToastView.js.map +1 -1
  158. package/components/Toast/ToastView.d.ts +1 -1
  159. package/internal/Popup/Popup/Popup.js +12 -1
  160. package/internal/Popup/Popup/Popup.js.map +1 -1
  161. package/internal/Popup/Popup.d.ts +1 -0
  162. package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  163. package/internal/themes/BasicTheme/BasicTheme.js +8 -0
  164. package/internal/themes/BasicTheme/BasicTheme.js.map +1 -1
  165. package/internal/themes/BasicTheme.d.ts +4 -0
  166. package/internal/themes/DarkTheme5_2/DarkTheme5_2.js +27 -0
  167. package/internal/themes/DarkTheme5_2/DarkTheme5_2.js.map +1 -0
  168. package/internal/themes/DarkTheme5_2/package.json +6 -0
  169. package/internal/themes/DarkTheme5_2.d.ts +1 -0
  170. package/internal/themes/LightTheme5_2/LightTheme5_2.js +27 -0
  171. package/internal/themes/LightTheme5_2/LightTheme5_2.js.map +1 -0
  172. package/internal/themes/LightTheme5_2/package.json +6 -0
  173. package/internal/themes/LightTheme5_2.d.ts +1 -0
  174. package/lib/ModalStack/ModalStack.js.map +1 -1
  175. package/lib/ModalStack.d.ts +7 -1
  176. package/lib/date/InternalDateGetter/InternalDateGetter.js +4 -1
  177. package/lib/date/InternalDateGetter/InternalDateGetter.js.map +1 -1
  178. package/lib/date/InternalDateGetter.d.ts +1 -1
  179. package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
  180. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js +4 -1
  181. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  182. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
  183. package/lib/theming/ThemeVersions/ThemeVersions.js.map +1 -1
  184. package/lib/theming/ThemeVersions.d.ts +1 -1
  185. package/lib/theming/themes/DarkTheme/DarkTheme.js +3 -1
  186. package/lib/theming/themes/DarkTheme/DarkTheme.js.map +1 -1
  187. package/lib/theming/themes/DarkTheme.d.ts +1 -0
  188. package/lib/theming/themes/LightTheme/LightTheme.js +3 -1
  189. package/lib/theming/themes/LightTheme/LightTheme.js.map +1 -1
  190. package/lib/theming/themes/LightTheme.d.ts +1 -0
  191. package/package.json +9 -9
  192. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
  193. package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
  194. package/cjs/components/Button/__creevey__/Button.creevey.mts +0 -251
  195. package/cjs/components/Button/__docs__/Button.mdx +0 -27
  196. package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +0 -113
  197. package/cjs/components/Calendar/__docs__/Calendar.mdx +0 -27
  198. package/cjs/components/Calendar/__docs__/CalendarDay.mdx +0 -23
  199. package/cjs/components/Center/__docs__/Center.mdx +0 -23
  200. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
  201. package/cjs/components/Checkbox/__docs__/Checkbox.mdx +0 -27
  202. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -545
  203. package/cjs/components/ComboBox/__docs__/ComboBox.mdx +0 -27
  204. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
  205. package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
  206. package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
  207. package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
  208. package/cjs/components/DateInput/__docs__/DateInput.mdx +0 -23
  209. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
  210. package/cjs/components/DatePicker/__docs__/DatePicker.mdx +0 -27
  211. package/cjs/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
  212. package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
  213. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
  214. package/cjs/components/Dropdown/__docs__/Dropdown.mdx +0 -27
  215. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
  216. package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
  217. package/cjs/components/FileUploader/__docs__/FileUploader.mdx +0 -27
  218. package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
  219. package/cjs/components/FxInput/__docs__/FxInput.mdx +0 -27
  220. package/cjs/components/Gapped/__docs__/Gapped.mdx +0 -23
  221. package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
  222. package/cjs/components/Group/__creevey__/Group.creevey.mts +0 -19
  223. package/cjs/components/Group/__docs__/Group.mdx +0 -23
  224. package/cjs/components/Hint/__creevey__/Hint.creevey.mts +0 -68
  225. package/cjs/components/Hint/__docs__/Hint.mdx +0 -28
  226. package/cjs/components/Input/__creevey__/Input.creevey.mts +0 -239
  227. package/cjs/components/Input/__docs__/Input.mdx +0 -27
  228. package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
  229. package/cjs/components/Kebab/__docs__/Kebab.mdx +0 -27
  230. package/cjs/components/Link/__creevey__/Link.creevey.mts +0 -162
  231. package/cjs/components/Link/__docs__/Link.mdx +0 -27
  232. package/cjs/components/Loader/__creevey__/Loader.creevey.mts +0 -35
  233. package/cjs/components/Loader/__docs__/Loader.mdx +0 -23
  234. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -221
  235. package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
  236. package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
  237. package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
  238. package/cjs/components/MenuItem/__docs__/MenuItem.mdx +0 -23
  239. package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
  240. package/cjs/components/MiniModal/__docs__/MiniModal.mdx +0 -27
  241. package/cjs/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
  242. package/cjs/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
  243. package/cjs/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
  244. package/cjs/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
  245. package/cjs/components/Modal/__creevey__/Modal.creevey.mts +0 -295
  246. package/cjs/components/Modal/__docs__/Modal.mdx +0 -27
  247. package/cjs/components/Modal/__docs__/ModalBody.mdx +0 -15
  248. package/cjs/components/Modal/__docs__/ModalFooter.mdx +0 -15
  249. package/cjs/components/Modal/__docs__/ModalHeader.mdx +0 -15
  250. package/cjs/components/Modal/__docs__/ModalSeparator.mdx +0 -15
  251. package/cjs/components/Paging/__creevey__/Paging.creevey.mts +0 -97
  252. package/cjs/components/Paging/__docs__/Paging.mdx +0 -27
  253. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
  254. package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
  255. package/cjs/components/Radio/__creevey__/Radio.creevey.mts +0 -28
  256. package/cjs/components/Radio/__docs__/Radio.mdx +0 -27
  257. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
  258. package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
  259. package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
  260. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
  261. package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
  262. package/cjs/components/Select/__creevey__/Select.creevey.mts +0 -293
  263. package/cjs/components/Select/__docs__/Select.mdx +0 -27
  264. package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
  265. package/cjs/components/SidePage/__docs__/SidePage.mdx +0 -27
  266. package/cjs/components/SidePage/__docs__/SidePageBody.mdx +0 -16
  267. package/cjs/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
  268. package/cjs/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
  269. package/cjs/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
  270. package/cjs/components/SingleToast/__docs__/SingleToast.mdx +0 -27
  271. package/cjs/components/Spinner/__docs__/Spinner.mdx +0 -27
  272. package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
  273. package/cjs/components/Sticky/__docs__/Sticky.mdx +0 -23
  274. package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
  275. package/cjs/components/Switcher/__docs__/Switcher.mdx +0 -27
  276. package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
  277. package/cjs/components/Tabs/__docs__/Tab.mdx +0 -27
  278. package/cjs/components/Tabs/__docs__/Tabs.mdx +0 -27
  279. package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
  280. package/cjs/components/Textarea/__docs__/Textarea.mdx +0 -27
  281. package/cjs/components/Toast/__creevey__/Toast.creevey.mts +0 -77
  282. package/cjs/components/Toast/__docs__/Toast.mdx +0 -27
  283. package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +0 -93
  284. package/cjs/components/Toggle/__docs__/Toggle.mdx +0 -27
  285. package/cjs/components/Token/__docs__/Token.mdx +0 -27
  286. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
  287. package/cjs/components/TokenInput/__docs__/TokenInput.mdx +0 -27
  288. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
  289. package/cjs/components/Tooltip/__docs__/Tooltip.mdx +0 -27
  290. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
  291. package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
  292. package/cjs/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
  293. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
  294. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
  295. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
  296. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
  297. package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
  298. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
  299. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js +0 -89
  300. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
  301. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
  302. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
  303. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
  304. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
  305. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
  306. package/components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts +0 -1
  307. package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
  308. package/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
  309. package/components/Button/__creevey__/Button.creevey.d.mts +0 -1
  310. package/components/Button/__creevey__/Button.creevey.mts +0 -251
  311. package/components/Button/__docs__/Button.mdx +0 -27
  312. package/components/Calendar/__creevey__/Calendar.creevey.d.mts +0 -1
  313. package/components/Calendar/__creevey__/Calendar.creevey.mts +0 -113
  314. package/components/Calendar/__docs__/Calendar.mdx +0 -27
  315. package/components/Calendar/__docs__/CalendarDay.mdx +0 -23
  316. package/components/Center/__docs__/Center.mdx +0 -23
  317. package/components/Checkbox/__creevey__/Checkbox.creevey.d.mts +0 -1
  318. package/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
  319. package/components/Checkbox/__docs__/Checkbox.mdx +0 -27
  320. package/components/ComboBox/__creevey__/ComboBox.creevey.d.mts +0 -1
  321. package/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -545
  322. package/components/ComboBox/__docs__/ComboBox.mdx +0 -27
  323. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts +0 -1
  324. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
  325. package/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
  326. package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
  327. package/components/DateInput/__creevey__/DateInput.creevey.d.mts +0 -1
  328. package/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
  329. package/components/DateInput/__docs__/DateInput.mdx +0 -23
  330. package/components/DatePicker/__creevey__/DatePicker.creevey.d.mts +0 -1
  331. package/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
  332. package/components/DatePicker/__docs__/DatePicker.mdx +0 -27
  333. package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.d.mts +0 -1
  334. package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
  335. package/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
  336. package/components/Dropdown/__creevey__/Dropdown.creevey.d.mts +0 -1
  337. package/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
  338. package/components/Dropdown/__docs__/Dropdown.mdx +0 -27
  339. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts +0 -1
  340. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
  341. package/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
  342. package/components/FileUploader/__docs__/FileUploader.mdx +0 -27
  343. package/components/FxInput/__creevey__/FxInput.creevey.d.mts +0 -1
  344. package/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
  345. package/components/FxInput/__docs__/FxInput.mdx +0 -27
  346. package/components/Gapped/__docs__/Gapped.mdx +0 -23
  347. package/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
  348. package/components/Group/__creevey__/Group.creevey.d.mts +0 -1
  349. package/components/Group/__creevey__/Group.creevey.mts +0 -19
  350. package/components/Group/__docs__/Group.mdx +0 -23
  351. package/components/Hint/__creevey__/Hint.creevey.d.mts +0 -1
  352. package/components/Hint/__creevey__/Hint.creevey.mts +0 -68
  353. package/components/Hint/__docs__/Hint.mdx +0 -28
  354. package/components/Input/__creevey__/Input.creevey.d.mts +0 -1
  355. package/components/Input/__creevey__/Input.creevey.mts +0 -239
  356. package/components/Input/__docs__/Input.mdx +0 -27
  357. package/components/Kebab/__creevey__/Kebab.creevey.d.mts +0 -1
  358. package/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
  359. package/components/Kebab/__docs__/Kebab.mdx +0 -27
  360. package/components/Link/__creevey__/Link.creevey.d.mts +0 -1
  361. package/components/Link/__creevey__/Link.creevey.mts +0 -162
  362. package/components/Link/__docs__/Link.mdx +0 -27
  363. package/components/Loader/__creevey__/Loader.creevey.d.mts +0 -1
  364. package/components/Loader/__creevey__/Loader.creevey.mts +0 -35
  365. package/components/Loader/__docs__/Loader.mdx +0 -23
  366. package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts +0 -1
  367. package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -221
  368. package/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
  369. package/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
  370. package/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
  371. package/components/MenuItem/__docs__/MenuItem.mdx +0 -23
  372. package/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
  373. package/components/MiniModal/__docs__/MiniModal.mdx +0 -27
  374. package/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
  375. package/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
  376. package/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
  377. package/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
  378. package/components/Modal/__creevey__/Modal.creevey.d.mts +0 -1
  379. package/components/Modal/__creevey__/Modal.creevey.mts +0 -295
  380. package/components/Modal/__docs__/Modal.mdx +0 -27
  381. package/components/Modal/__docs__/ModalBody.mdx +0 -15
  382. package/components/Modal/__docs__/ModalFooter.mdx +0 -15
  383. package/components/Modal/__docs__/ModalHeader.mdx +0 -15
  384. package/components/Modal/__docs__/ModalSeparator.mdx +0 -15
  385. package/components/Paging/__creevey__/Paging.creevey.d.mts +0 -1
  386. package/components/Paging/__creevey__/Paging.creevey.mts +0 -97
  387. package/components/Paging/__docs__/Paging.mdx +0 -27
  388. package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts +0 -1
  389. package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
  390. package/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
  391. package/components/Radio/__creevey__/Radio.creevey.d.mts +0 -1
  392. package/components/Radio/__creevey__/Radio.creevey.mts +0 -28
  393. package/components/Radio/__docs__/Radio.mdx +0 -27
  394. package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts +0 -1
  395. package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
  396. package/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
  397. package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
  398. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts +0 -1
  399. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
  400. package/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
  401. package/components/Select/__creevey__/Select.creevey.d.mts +0 -1
  402. package/components/Select/__creevey__/Select.creevey.mts +0 -293
  403. package/components/Select/__docs__/Select.mdx +0 -27
  404. package/components/SidePage/__creevey__/SidePage.creevey.d.mts +0 -1
  405. package/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
  406. package/components/SidePage/__docs__/SidePage.mdx +0 -27
  407. package/components/SidePage/__docs__/SidePageBody.mdx +0 -16
  408. package/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
  409. package/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
  410. package/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
  411. package/components/SingleToast/__docs__/SingleToast.mdx +0 -27
  412. package/components/Spinner/__docs__/Spinner.mdx +0 -27
  413. package/components/Sticky/__creevey__/Sticky.creevey.d.mts +0 -1
  414. package/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
  415. package/components/Sticky/__docs__/Sticky.mdx +0 -23
  416. package/components/Switcher/__creevey__/Switcher.creevey.d.mts +0 -1
  417. package/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
  418. package/components/Switcher/__docs__/Switcher.mdx +0 -27
  419. package/components/Tabs/__creevey__/Tabs.creevey.d.mts +0 -1
  420. package/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
  421. package/components/Tabs/__docs__/Tab.mdx +0 -27
  422. package/components/Tabs/__docs__/Tabs.mdx +0 -27
  423. package/components/Textarea/__creevey__/Textarea.creevey.d.mts +0 -1
  424. package/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
  425. package/components/Textarea/__docs__/Textarea.mdx +0 -27
  426. package/components/Toast/__creevey__/Toast.creevey.d.mts +0 -1
  427. package/components/Toast/__creevey__/Toast.creevey.mts +0 -77
  428. package/components/Toast/__docs__/Toast.mdx +0 -27
  429. package/components/Toggle/__creevey__/Toggle.creevey.d.mts +0 -1
  430. package/components/Toggle/__creevey__/Toggle.creevey.mts +0 -93
  431. package/components/Toggle/__docs__/Toggle.mdx +0 -27
  432. package/components/Token/__docs__/Token.mdx +0 -27
  433. package/components/TokenInput/__creevey__/TokenInput.creevey.d.mts +0 -1
  434. package/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
  435. package/components/TokenInput/__docs__/TokenInput.mdx +0 -27
  436. package/components/Tooltip/__creevey__/Tooltip.creevey.d.mts +0 -1
  437. package/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
  438. package/components/Tooltip/__docs__/Tooltip.mdx +0 -27
  439. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts +0 -1
  440. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
  441. package/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
  442. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.d.mts +0 -1
  443. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
  444. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts +0 -1
  445. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
  446. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts +0 -1
  447. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
  448. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts +0 -1
  449. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
  450. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts +0 -1
  451. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
  452. package/internal/Menu/__creevey__/Menu.creevey.d.mts +0 -1
  453. package/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
  454. package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js +0 -106
  455. package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
  456. package/internal/PerformanceMetrics/PerformanceMetrics/package.json +0 -6
  457. package/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
  458. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts +0 -1
  459. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
  460. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.d.mts +0 -1
  461. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
  462. package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
  463. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts +0 -1
  464. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
  465. package/internal/ZIndex/__creevey__/ZIndex.creevey.d.mts +0 -1
  466. package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
@@ -1,165 +1,162 @@
1
1
  import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/esm/taggedTemplateLiteralLoose";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51;
3
3
  import { css, memoizeStyle } from "../../../lib/theming/Emotion";
4
4
  import { resetButton } from "../../../lib/styles/Mixins";
5
5
  export var styles = memoizeStyle({
6
6
  root: function root() {
7
7
  return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n height: 100%;\n position: fixed;\n top: 0;\n "])));
8
8
  },
9
- mobileRoot: function mobileRoot() {
10
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n "])));
11
- },
12
9
  overlay: function overlay() {
13
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n "])));
10
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n "])));
14
11
  },
15
12
  body: function body(t) {
16
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n flex: 1 0 auto;\n z-index: 0;\n color: ", ";\n "])), t.modalBodyTextColor);
13
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n flex: 1 0 auto;\n z-index: 0;\n color: ", ";\n "])), t.modalBodyTextColor);
17
14
  },
18
15
  mobileBody: function mobileBody() {
19
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n line-height: 22px;\n "])));
16
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n line-height: 22px;\n "])));
20
17
  },
21
18
  container: function container(t) {
22
- return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", ";\n "])), t.sidePagePaddingLeft, t.sidePagePaddingRight);
19
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", ";\n "])), t.sidePagePaddingLeft, t.sidePagePaddingRight);
23
20
  },
24
21
  mobileContainer: function mobileContainer(t) {
25
- return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n "])), t.mobileSidePagePaddingLeft, t.mobileSidePagePaddingRight, t.mobileSidePagePaddingBottom);
22
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n "])), t.mobileSidePagePaddingLeft, t.mobileSidePagePaddingRight, t.mobileSidePagePaddingBottom);
26
23
  },
27
24
  containerWithoutHeader: function containerWithoutHeader(t) {
28
- return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n "])), t.sidePagePaddingTop);
25
+ return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n "])), t.sidePagePaddingTop);
29
26
  },
30
27
  mobileContainerWithoutHeader: function mobileContainerWithoutHeader(t) {
31
- return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n "])), t.mobileSidePagePaddingTop);
28
+ return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n "])), t.mobileSidePagePaddingTop);
32
29
  },
33
30
  containerWithoutFooter: function containerWithoutFooter(t) {
34
- return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n padding-bottom: ", ";\n "])), t.sidePagePaddingBottom);
31
+ return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n padding-bottom: ", ";\n "])), t.sidePagePaddingBottom);
35
32
  },
36
33
  containerWithPanel: function containerWithPanel(t) {
37
- return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n padding-bottom: ", ";\n "])), t.sidePagePaddingBottom);
34
+ return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n padding-bottom: ", ";\n "])), t.sidePagePaddingBottom);
38
35
  },
39
36
  focusLock: function focusLock() {
40
- return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n height: 100%;\n "])));
37
+ return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n height: 100%;\n "])));
41
38
  },
42
39
  wrapper: function wrapper(t) {
43
- return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n background: ", ";\n float: right;\n height: 100%;\n width: 100%;\n overflow-y: auto;\n position: relative;\n white-space: normal;\n align-items: stretch;\n display: flex;\n flex-direction: column;\n "])), t.sidePageBgDefault);
40
+ return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n background: ", ";\n float: right;\n height: 100%;\n width: 100%;\n overflow-y: auto;\n position: relative;\n white-space: normal;\n align-items: stretch;\n display: flex;\n flex-direction: column;\n "])), t.sidePageBgDefault);
44
41
  },
45
42
  wrapperLeft: function wrapperLeft() {
46
- return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n float: left;\n "])));
43
+ return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n float: left;\n "])));
47
44
  },
48
45
  wrapperMarginLeft: function wrapperMarginLeft() {
49
- return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n margin-left: 20px;\n "])));
46
+ return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n margin-left: 20px;\n "])));
50
47
  },
51
48
  wrapperMarginRight: function wrapperMarginRight() {
52
- return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n margin-right: 20px;\n "])));
49
+ return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n margin-right: 20px;\n "])));
53
50
  },
54
51
  headerWrapper: function headerWrapper() {
55
- return css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n "])));
52
+ return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n "])));
56
53
  },
57
54
  header: function header(t) {
58
- return css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0 ", ";\n width: 100%;\n position: relative;\n color: ", ";\n font-weight: ", ";\n "])), t.sidePageHeaderFontSize, t.sidePageHeaderLineHeight, t.sidePageHeaderPaddingTop, t.sidePageHeaderPaddingBottom, t.sidePageHeaderTextColor, t.sidePageHeaderFontWeight);
55
+ return css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0 ", ";\n width: 100%;\n position: relative;\n color: ", ";\n font-weight: ", ";\n "])), t.sidePageHeaderFontSize, t.sidePageHeaderLineHeight, t.sidePageHeaderPaddingTop, t.sidePageHeaderPaddingBottom, t.sidePageHeaderTextColor, t.sidePageHeaderFontWeight);
59
56
  },
60
57
  mobileHeader: function mobileHeader(t) {
61
- return css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0 ", ";\n "])), t.mobileSidePageHeaderFontSize, t.mobileSidePageHeaderLineHeight, t.mobileSidePageHeaderPaddingTop, t.mobileSidePageHeaderPaddingBottom);
58
+ return css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0 ", ";\n "])), t.mobileSidePageHeaderFontSize, t.mobileSidePageHeaderLineHeight, t.mobileSidePageHeaderPaddingTop, t.mobileSidePageHeaderPaddingBottom);
62
59
  },
63
60
  headerFixed: function headerFixed(t) {
64
- return css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n background: ", ";\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0;\n\n &:after {\n bottom: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ", ";\n }\n "])), t.sidePageBgDefault, t.sidePageHeaderFixedFontSize, t.sidePageHeaderFixedLineHeight, t.sidePageHeaderFixedPaddingY, t.sidePageFixedHeaderShadow);
61
+ return css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n background: ", ";\n font-size: ", ";\n line-height: ", ";\n padding: ", " 0;\n\n &:after {\n bottom: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ", ";\n }\n "])), t.sidePageBgDefault, t.sidePageHeaderFixedFontSize, t.sidePageHeaderFixedLineHeight, t.sidePageHeaderFixedPaddingY, t.sidePageFixedHeaderShadow);
65
62
  },
66
63
  title: function title(t) {
67
64
  var paddingRight = parseInt(t.sidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);
68
- return css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", "px;\n "])), t.sidePagePaddingLeft, paddingRight);
65
+ return css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", "px;\n "])), t.sidePagePaddingLeft, paddingRight);
69
66
  },
70
67
  title5_1: function title5_1(t) {
71
68
  var paddingRight = parseInt(t.sidePageCloseButtonClickAreaLeft) + parseInt(t.sidePageCloseIconSize) + parseInt(t.sidePageCloseButtonClickAreaRight);
72
- return css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n padding-right: ", "px;\n "])), paddingRight);
69
+ return css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n padding-right: ", "px;\n "])), paddingRight);
73
70
  },
74
71
  mobileTitle: function mobileTitle(t) {
75
72
  var paddingRight = parseInt(t.mobileSidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);
76
- return css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", "px;\n "])), t.mobileSidePagePaddingLeft, paddingRight);
73
+ return css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n padding-right: ", "px;\n "])), t.mobileSidePagePaddingLeft, paddingRight);
77
74
  },
78
75
  titleFixed: function titleFixed() {
79
- return css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "])));
76
+ return css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "])));
80
77
  },
81
78
  background: function background() {
82
- return css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n height: 100%;\n position: absolute;\n width: 100%;\n "])));
79
+ return css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n height: 100%;\n position: absolute;\n width: 100%;\n "])));
83
80
  },
84
81
  backgroundGray: function backgroundGray(t) {
85
- return css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n "])), t.sidePageBackingBg, t.sidePageBackingBgOpacity);
82
+ return css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n "])), t.sidePageBackingBg, t.sidePageBackingBgOpacity);
86
83
  },
87
84
  shadow: function shadow(t) {
88
- return css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n box-shadow: ", ";\n "])), t.sidePageContainerShadow);
85
+ return css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n box-shadow: ", ";\n "])), t.sidePageContainerShadow);
89
86
  },
90
87
  close: function close(t) {
91
- return css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n ", ";\n cursor: pointer;\n color: ", ";\n padding: ", ";\n margin: -", ";\n font-size: 0;\n\n &:focus,\n &:hover {\n color: ", ";\n }\n\n & > svg {\n width: ", ";\n height: ", ";\n box-sizing: content-box;\n }\n "])), resetButton(), t.sidePageCloseButtonColor, t.sidePageCloseButtonClickArea, t.sidePageCloseButtonClickArea, t.sidePageCloseButtonHoverColor, t.sidePageCloseIconSize, t.sidePageCloseIconSize);
88
+ return css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n ", ";\n cursor: pointer;\n color: ", ";\n padding: ", ";\n margin: -", ";\n font-size: 0;\n\n &:focus,\n &:hover {\n color: ", ";\n }\n\n & > svg {\n width: ", ";\n height: ", ";\n box-sizing: content-box;\n }\n "])), resetButton(), t.sidePageCloseButtonColor, t.sidePageCloseButtonClickArea, t.sidePageCloseButtonClickArea, t.sidePageCloseButtonHoverColor, t.sidePageCloseIconSize, t.sidePageCloseIconSize);
92
89
  },
93
90
  close5_1: function close5_1(t) {
94
- return css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n margin-top: -", ";\n padding-right: ", ";\n margin-right: -", ";\n padding-bottom: ", ";\n margin-bottom: -", ";\n padding-left: ", ";\n margin-left: -", ";\n "])), t.sidePageCloseButtonClickAreaTop, t.sidePageCloseButtonClickAreaTop, t.sidePageCloseButtonClickAreaRight, t.sidePageCloseButtonClickAreaRight, t.sidePageCloseButtonClickAreaBottom, t.sidePageCloseButtonClickAreaBottom, t.sidePageCloseButtonClickAreaLeft, t.sidePageCloseButtonClickAreaLeft);
91
+ return css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n margin-top: -", ";\n padding-right: ", ";\n margin-right: -", ";\n padding-bottom: ", ";\n margin-bottom: -", ";\n padding-left: ", ";\n margin-left: -", ";\n "])), t.sidePageCloseButtonClickAreaTop, t.sidePageCloseButtonClickAreaTop, t.sidePageCloseButtonClickAreaRight, t.sidePageCloseButtonClickAreaRight, t.sidePageCloseButtonClickAreaBottom, t.sidePageCloseButtonClickAreaBottom, t.sidePageCloseButtonClickAreaLeft, t.sidePageCloseButtonClickAreaLeft);
95
92
  },
96
93
  closeSticky: function closeSticky(t) {
97
- return css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n margin-top: -", ";\n padding-bottom: ", ";\n margin-bottom: -", ";\n "])), t.sidePageCloseButtonFixedClickAreaTop, t.sidePageCloseButtonFixedClickAreaTop, t.sidePageCloseButtonFixedClickAreaBottom, t.sidePageCloseButtonFixedClickAreaBottom);
94
+ return css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n margin-top: -", ";\n padding-bottom: ", ";\n margin-bottom: -", ";\n "])), t.sidePageCloseButtonFixedClickAreaTop, t.sidePageCloseButtonFixedClickAreaTop, t.sidePageCloseButtonFixedClickAreaBottom, t.sidePageCloseButtonFixedClickAreaBottom);
98
95
  },
99
96
  closeMobile: function closeMobile(t) {
100
- return css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n margin: -", ";\n font-size: 0;\n "])), t.mobileSidePageCloseButtonClickArea, t.mobileSidePageCloseButtonClickArea);
97
+ return css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n margin: -", ";\n font-size: 0;\n "])), t.mobileSidePageCloseButtonClickArea, t.mobileSidePageCloseButtonClickArea);
101
98
  },
102
99
  closeFocus: function closeFocus(t) {
103
- return css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n outline: 2px solid ", ";\n "])), t.borderColorFocus);
100
+ return css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n outline: 2px solid ", ";\n "])), t.borderColorFocus);
104
101
  },
105
102
  closeFocus5_1: function closeFocus5_1(t) {
106
- return css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 4px;\n "])), t.borderColorFocus);
103
+ return css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 4px;\n "])), t.borderColorFocus);
107
104
  },
108
105
  wrapperClose: function wrapperClose(t) {
109
- return css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n height: 100%;\n line-height: ", ";\n padding: ", " 0 ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n "])), t.sidePageHeaderLineHeight, t.sidePageHeaderPaddingTop, t.sidePageHeaderPaddingBottom, t.sidePageCloseButtonPadding, t.sidePageCloseButtonWrapperOffsetTop);
106
+ return css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n height: 100%;\n line-height: ", ";\n padding: ", " 0 ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n "])), t.sidePageHeaderLineHeight, t.sidePageHeaderPaddingTop, t.sidePageHeaderPaddingBottom, t.sidePageCloseButtonPadding, t.sidePageCloseButtonWrapperOffsetTop);
110
107
  },
111
108
  wrapperClose5_1: function wrapperClose5_1(t) {
112
- return css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n right: ", ";\n "])), t.sidePageCloseButtonClickAreaRight);
109
+ return css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n right: ", ";\n "])), t.sidePageCloseButtonClickAreaRight);
113
110
  },
114
111
  mobileWrapperClose: function mobileWrapperClose(t) {
115
- return css(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n line-height: ", ";\n padding: ", " 0 ", ";\n right: ", ";\n "])), t.mobileSidePageHeaderLineHeight, t.mobileSidePageHeaderPaddingTop, t.mobileSidePageHeaderPaddingBottom, t.mobileSidePageCloseButtonRightPadding);
112
+ return css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n line-height: ", ";\n padding: ", " 0 ", ";\n right: ", ";\n "])), t.mobileSidePageHeaderLineHeight, t.mobileSidePageHeaderPaddingTop, t.mobileSidePageHeaderPaddingBottom, t.mobileSidePageCloseButtonRightPadding);
116
113
  },
117
114
  mobileWrapperClose5_1: function mobileWrapperClose5_1(t) {
118
- return css(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n right: ", ";\n "])), t.mobileSidePageCloseButtonPadding);
115
+ return css(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n right: ", ";\n "])), t.mobileSidePageCloseButtonPadding);
119
116
  },
120
117
  panel: function panel(t) {
121
- return css(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n background: ", ";\n padding: ", " ", " ", "\n ", ";\n "])), t.sidePageFooterPanelBg, t.sidePageFooterPanelPaddingTop, t.sidePagePaddingRight, t.sidePageFooterPanelPaddingBottom, t.sidePagePaddingLeft);
118
+ return css(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n background: ", ";\n padding: ", " ", " ", "\n ", ";\n "])), t.sidePageFooterPanelBg, t.sidePageFooterPanelPaddingTop, t.sidePagePaddingRight, t.sidePageFooterPanelPaddingBottom, t.sidePagePaddingLeft);
122
119
  },
123
120
  wrapperCloseFixed: function wrapperCloseFixed(t) {
124
- return css(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n line-height: ", ";\n padding: ", " 0;\n "])), t.sidePageHeaderFixedLineHeight, t.sidePageHeaderFixedPaddingY);
121
+ return css(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n line-height: ", ";\n padding: ", " 0;\n "])), t.sidePageHeaderFixedLineHeight, t.sidePageHeaderFixedPaddingY);
125
122
  },
126
123
  wrapperCloseFixed5_1: function wrapperCloseFixed5_1(t) {
127
- return css(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n top: ", ";\n "])), t.sidePageCloseButtonWrapperFixedOffsetTop);
124
+ return css(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n top: ", ";\n "])), t.sidePageCloseButtonWrapperFixedOffsetTop);
128
125
  },
129
126
  footerWrapper: function footerWrapper() {
130
- return css(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n "])));
127
+ return css(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n "])));
131
128
  },
132
129
  footer: function footer(t) {
133
- return css(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n position: fixed;\n z-index: 10;\n color: ", ";\n "])), t.sidePageFooterTextColor);
130
+ return css(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n bottom: 0;\n position: fixed;\n z-index: 10;\n color: ", ";\n "])), t.sidePageFooterTextColor);
134
131
  },
135
132
  positionStatic: function positionStatic() {
136
- return css(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n position: static;\n "])));
133
+ return css(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n position: static;\n "])));
137
134
  },
138
135
  footerContent: function footerContent(t) {
139
- return css(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), t.sidePageFooterPaddingTop, t.sidePagePaddingRight, t.sidePageFooterPaddingBottom, t.sidePagePaddingLeft);
136
+ return css(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), t.sidePageFooterPaddingTop, t.sidePagePaddingRight, t.sidePageFooterPaddingBottom, t.sidePagePaddingLeft);
140
137
  },
141
138
  mobileFooterContent: function mobileFooterContent(t) {
142
- return css(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n padding: ", ";\n "])), t.mobileSidePageFooterPadding);
139
+ return css(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n padding: ", ";\n "])), t.mobileSidePageFooterPadding);
143
140
  },
144
141
  footerFixed: function footerFixed(t) {
145
- return css(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n background: ", ";\n\n &:before {\n top: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ", ";\n }\n "])), t.sidePageBgDefault, t.sidePageFixedFooterShadow);
142
+ return css(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n background: ", ";\n\n &:before {\n top: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ", ";\n }\n "])), t.sidePageBgDefault, t.sidePageFixedFooterShadow);
146
143
  },
147
144
  panelFixed: function panelFixed(t) {
148
- return css(_templateObject47 || (_templateObject47 = _taggedTemplateLiteralLoose(["\n &:before {\n box-shadow: ", ";\n }\n "])), t.sidePageFixedPanelShadow);
145
+ return css(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n &:before {\n box-shadow: ", ";\n }\n "])), t.sidePageFixedPanelShadow);
149
146
  },
150
147
  transitionLeft: function transitionLeft() {
151
- return css(_templateObject48 || (_templateObject48 = _taggedTemplateLiteralLoose(["\n transform: translateX(100px);\n "])));
148
+ return css(_templateObject47 || (_templateObject47 = _taggedTemplateLiteralLoose(["\n transform: translateX(100px);\n "])));
152
149
  },
153
150
  transitionRight: function transitionRight() {
154
- return css(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n transform: translateX(-100px);\n "])));
151
+ return css(_templateObject48 || (_templateObject48 = _taggedTemplateLiteralLoose(["\n transform: translateX(-100px);\n "])));
155
152
  },
156
153
  transitionActive: function transitionActive() {
157
- return css(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n transition:\n transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);\n opacity: 1 !important;\n transform: translate(0, 0) !important;\n "])));
154
+ return css(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n transition:\n transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);\n opacity: 1 !important;\n transform: translate(0, 0) !important;\n "])));
158
155
  },
159
156
  transitionLeave: function transitionLeave() {
160
- return css(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n opacity: 1;\n "])));
157
+ return css(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n opacity: 1;\n "])));
161
158
  },
162
159
  transitionLeaveActive: function transitionLeaveActive() {
163
- return css(_templateObject52 || (_templateObject52 = _taggedTemplateLiteralLoose(["\n opacity: 0.01 !important;\n transition: opacity 0.15s ease-out;\n "])));
160
+ return css(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n opacity: 0.01 !important;\n transition: opacity 0.15s ease-out;\n "])));
164
161
  }
165
162
  });
@@ -1 +1 @@
1
- {"version":3,"names":["css","memoizeStyle","resetButton","styles","root","_templateObject","_taggedTemplateLiteralLoose","mobileRoot","_templateObject2","overlay","_templateObject3","body","t","_templateObject4","modalBodyTextColor","mobileBody","_templateObject5","container","_templateObject6","sidePagePaddingLeft","sidePagePaddingRight","mobileContainer","_templateObject7","mobileSidePagePaddingLeft","mobileSidePagePaddingRight","mobileSidePagePaddingBottom","containerWithoutHeader","_templateObject8","sidePagePaddingTop","mobileContainerWithoutHeader","_templateObject9","mobileSidePagePaddingTop","containerWithoutFooter","_templateObject10","sidePagePaddingBottom","containerWithPanel","_templateObject11","focusLock","_templateObject12","wrapper","_templateObject13","sidePageBgDefault","wrapperLeft","_templateObject14","wrapperMarginLeft","_templateObject15","wrapperMarginRight","_templateObject16","headerWrapper","_templateObject17","header","_templateObject18","sidePageHeaderFontSize","sidePageHeaderLineHeight","sidePageHeaderPaddingTop","sidePageHeaderPaddingBottom","sidePageHeaderTextColor","sidePageHeaderFontWeight","mobileHeader","_templateObject19","mobileSidePageHeaderFontSize","mobileSidePageHeaderLineHeight","mobileSidePageHeaderPaddingTop","mobileSidePageHeaderPaddingBottom","headerFixed","_templateObject20","sidePageHeaderFixedFontSize","sidePageHeaderFixedLineHeight","sidePageHeaderFixedPaddingY","sidePageFixedHeaderShadow","title","paddingRight","parseInt","sidePageCloseButtonPadding","sidePageCloseIconSize","_templateObject21","title5_1","sidePageCloseButtonClickAreaLeft","sidePageCloseButtonClickAreaRight","_templateObject22","mobileTitle","mobileSidePageCloseButtonPadding","_templateObject23","titleFixed","_templateObject24","background","_templateObject25","backgroundGray","_templateObject26","sidePageBackingBg","sidePageBackingBgOpacity","shadow","_templateObject27","sidePageContainerShadow","close","_templateObject28","sidePageCloseButtonColor","sidePageCloseButtonClickArea","sidePageCloseButtonHoverColor","close5_1","_templateObject29","sidePageCloseButtonClickAreaTop","sidePageCloseButtonClickAreaBottom","closeSticky","_templateObject30","sidePageCloseButtonFixedClickAreaTop","sidePageCloseButtonFixedClickAreaBottom","closeMobile","_templateObject31","mobileSidePageCloseButtonClickArea","closeFocus","_templateObject32","borderColorFocus","closeFocus5_1","_templateObject33","wrapperClose","_templateObject34","sidePageCloseButtonWrapperOffsetTop","wrapperClose5_1","_templateObject35","mobileWrapperClose","_templateObject36","mobileSidePageCloseButtonRightPadding","mobileWrapperClose5_1","_templateObject37","panel","_templateObject38","sidePageFooterPanelBg","sidePageFooterPanelPaddingTop","sidePageFooterPanelPaddingBottom","wrapperCloseFixed","_templateObject39","wrapperCloseFixed5_1","_templateObject40","sidePageCloseButtonWrapperFixedOffsetTop","footerWrapper","_templateObject41","footer","_templateObject42","sidePageFooterTextColor","positionStatic","_templateObject43","footerContent","_templateObject44","sidePageFooterPaddingTop","sidePageFooterPaddingBottom","mobileFooterContent","_templateObject45","mobileSidePageFooterPadding","footerFixed","_templateObject46","sidePageFixedFooterShadow","panelFixed","_templateObject47","sidePageFixedPanelShadow","transitionLeft","_templateObject48","transitionRight","_templateObject49","transitionActive","_templateObject50","transitionLeave","_templateObject51","transitionLeaveActive","_templateObject52"],"sources":["SidePage.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport type { Theme } from '../../lib/theming/Theme';\nimport { resetButton } from '../../lib/styles/Mixins';\n\nexport const styles = memoizeStyle({\n root() {\n return css`\n height: 100%;\n position: fixed;\n top: 0;\n `;\n },\n\n mobileRoot() {\n return css`\n width: 100%;\n `;\n },\n\n overlay() {\n return css`\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n `;\n },\n\n body(t: Theme) {\n return css`\n flex: 1 0 auto;\n z-index: 0;\n color: ${t.modalBodyTextColor};\n `;\n },\n\n mobileBody() {\n return css`\n font-size: 16px;\n line-height: 22px;\n `;\n },\n\n container(t: Theme) {\n return css`\n padding-left: ${t.sidePagePaddingLeft};\n padding-right: ${t.sidePagePaddingRight};\n `;\n },\n\n mobileContainer(t: Theme) {\n return css`\n padding-left: ${t.mobileSidePagePaddingLeft};\n padding-right: ${t.mobileSidePagePaddingRight};\n padding-bottom: ${t.mobileSidePagePaddingBottom};\n `;\n },\n\n containerWithoutHeader(t: Theme) {\n return css`\n padding-top: ${t.sidePagePaddingTop};\n `;\n },\n\n mobileContainerWithoutHeader(t: Theme) {\n return css`\n padding-top: ${t.mobileSidePagePaddingTop};\n `;\n },\n\n containerWithoutFooter(t: Theme) {\n return css`\n padding-bottom: ${t.sidePagePaddingBottom};\n `;\n },\n\n containerWithPanel(t: Theme) {\n return css`\n padding-bottom: ${t.sidePagePaddingBottom};\n `;\n },\n\n focusLock() {\n return css`\n height: 100%;\n `;\n },\n\n wrapper(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n float: right;\n height: 100%;\n width: 100%;\n overflow-y: auto;\n position: relative;\n white-space: normal;\n align-items: stretch;\n display: flex;\n flex-direction: column;\n `;\n },\n\n wrapperLeft() {\n return css`\n float: left;\n `;\n },\n\n wrapperMarginLeft() {\n return css`\n margin-left: 20px;\n `;\n },\n\n wrapperMarginRight() {\n return css`\n margin-right: 20px;\n `;\n },\n\n headerWrapper() {\n return css`\n flex: 0 0 auto;\n `;\n },\n\n header(t: Theme) {\n return css`\n font-size: ${t.sidePageHeaderFontSize};\n line-height: ${t.sidePageHeaderLineHeight};\n padding: ${t.sidePageHeaderPaddingTop} 0 ${t.sidePageHeaderPaddingBottom};\n width: 100%;\n position: relative;\n color: ${t.sidePageHeaderTextColor};\n font-weight: ${t.sidePageHeaderFontWeight};\n `;\n },\n\n mobileHeader(t: Theme) {\n return css`\n font-size: ${t.mobileSidePageHeaderFontSize};\n line-height: ${t.mobileSidePageHeaderLineHeight};\n padding: ${t.mobileSidePageHeaderPaddingTop} 0 ${t.mobileSidePageHeaderPaddingBottom};\n `;\n },\n\n headerFixed(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n font-size: ${t.sidePageHeaderFixedFontSize};\n line-height: ${t.sidePageHeaderFixedLineHeight};\n padding: ${t.sidePageHeaderFixedPaddingY} 0;\n\n &:after {\n bottom: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ${t.sidePageFixedHeaderShadow};\n }\n `;\n },\n\n title(t: Theme) {\n const paddingRight = parseInt(t.sidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);\n return css`\n padding-left: ${t.sidePagePaddingLeft};\n padding-right: ${paddingRight}px;\n `;\n },\n\n title5_1(t: Theme) {\n const paddingRight =\n parseInt(t.sidePageCloseButtonClickAreaLeft) +\n parseInt(t.sidePageCloseIconSize) +\n parseInt(t.sidePageCloseButtonClickAreaRight);\n return css`\n padding-right: ${paddingRight}px;\n `;\n },\n\n mobileTitle(t: Theme) {\n const paddingRight = parseInt(t.mobileSidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);\n return css`\n padding-left: ${t.mobileSidePagePaddingLeft};\n padding-right: ${paddingRight}px;\n `;\n },\n\n titleFixed() {\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `;\n },\n\n background() {\n return css`\n height: 100%;\n position: absolute;\n width: 100%;\n `;\n },\n\n backgroundGray(t: Theme) {\n return css`\n background: ${t.sidePageBackingBg};\n opacity: ${t.sidePageBackingBgOpacity};\n `;\n },\n\n shadow(t: Theme) {\n return css`\n box-shadow: ${t.sidePageContainerShadow};\n `;\n },\n\n close(t: Theme) {\n return css`\n ${resetButton()};\n cursor: pointer;\n color: ${t.sidePageCloseButtonColor};\n padding: ${t.sidePageCloseButtonClickArea};\n margin: -${t.sidePageCloseButtonClickArea};\n font-size: 0;\n\n &:focus,\n &:hover {\n color: ${t.sidePageCloseButtonHoverColor};\n }\n\n & > svg {\n width: ${t.sidePageCloseIconSize};\n height: ${t.sidePageCloseIconSize};\n box-sizing: content-box;\n }\n `;\n },\n\n close5_1(t: Theme) {\n return css`\n padding-top: ${t.sidePageCloseButtonClickAreaTop};\n margin-top: -${t.sidePageCloseButtonClickAreaTop};\n padding-right: ${t.sidePageCloseButtonClickAreaRight};\n margin-right: -${t.sidePageCloseButtonClickAreaRight};\n padding-bottom: ${t.sidePageCloseButtonClickAreaBottom};\n margin-bottom: -${t.sidePageCloseButtonClickAreaBottom};\n padding-left: ${t.sidePageCloseButtonClickAreaLeft};\n margin-left: -${t.sidePageCloseButtonClickAreaLeft};\n `;\n },\n\n closeSticky(t: Theme) {\n return css`\n padding-top: ${t.sidePageCloseButtonFixedClickAreaTop};\n margin-top: -${t.sidePageCloseButtonFixedClickAreaTop};\n padding-bottom: ${t.sidePageCloseButtonFixedClickAreaBottom};\n margin-bottom: -${t.sidePageCloseButtonFixedClickAreaBottom};\n `;\n },\n\n closeMobile(t: Theme) {\n return css`\n padding: ${t.mobileSidePageCloseButtonClickArea};\n margin: -${t.mobileSidePageCloseButtonClickArea};\n font-size: 0;\n `;\n },\n\n closeFocus(t: Theme) {\n return css`\n outline: 2px solid ${t.borderColorFocus};\n `;\n },\n\n closeFocus5_1(t: Theme) {\n return css`\n box-shadow: inset 0 0 0 2px ${t.borderColorFocus};\n border-radius: 4px;\n `;\n },\n\n wrapperClose(t: Theme) {\n return css`\n box-sizing: border-box;\n height: 100%;\n line-height: ${t.sidePageHeaderLineHeight};\n padding: ${t.sidePageHeaderPaddingTop} 0 ${t.sidePageHeaderPaddingBottom};\n position: absolute;\n right: ${t.sidePageCloseButtonPadding};\n top: ${t.sidePageCloseButtonWrapperOffsetTop};\n `;\n },\n\n wrapperClose5_1(t: Theme) {\n return css`\n right: ${t.sidePageCloseButtonClickAreaRight};\n `;\n },\n\n mobileWrapperClose(t: Theme) {\n return css`\n line-height: ${t.mobileSidePageHeaderLineHeight};\n padding: ${t.mobileSidePageHeaderPaddingTop} 0 ${t.mobileSidePageHeaderPaddingBottom};\n right: ${t.mobileSidePageCloseButtonRightPadding};\n `;\n },\n\n mobileWrapperClose5_1(t: Theme) {\n return css`\n right: ${t.mobileSidePageCloseButtonPadding};\n `;\n },\n\n panel(t: Theme) {\n return css`\n background: ${t.sidePageFooterPanelBg};\n padding: ${t.sidePageFooterPanelPaddingTop} ${t.sidePagePaddingRight} ${t.sidePageFooterPanelPaddingBottom}\n ${t.sidePagePaddingLeft};\n `;\n },\n\n wrapperCloseFixed(t: Theme) {\n return css`\n line-height: ${t.sidePageHeaderFixedLineHeight};\n padding: ${t.sidePageHeaderFixedPaddingY} 0;\n `;\n },\n\n wrapperCloseFixed5_1(t: Theme) {\n return css`\n top: ${t.sidePageCloseButtonWrapperFixedOffsetTop};\n `;\n },\n\n footerWrapper() {\n return css`\n flex: 0 0 auto;\n `;\n },\n\n footer(t: Theme) {\n return css`\n bottom: 0;\n position: fixed;\n z-index: 10;\n color: ${t.sidePageFooterTextColor};\n `;\n },\n\n positionStatic() {\n return css`\n position: static;\n `;\n },\n\n footerContent(t: Theme) {\n return css`\n padding: ${t.sidePageFooterPaddingTop} ${t.sidePagePaddingRight} ${t.sidePageFooterPaddingBottom}\n ${t.sidePagePaddingLeft};\n `;\n },\n\n mobileFooterContent(t: Theme) {\n return css`\n display: flex;\n flex-flow: column nowrap;\n padding: ${t.mobileSidePageFooterPadding};\n `;\n },\n\n footerFixed(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n\n &:before {\n top: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ${t.sidePageFixedFooterShadow};\n }\n `;\n },\n\n panelFixed(t: Theme) {\n return css`\n &:before {\n box-shadow: ${t.sidePageFixedPanelShadow};\n }\n `;\n },\n\n transitionLeft() {\n return css`\n transform: translateX(100px);\n `;\n },\n\n transitionRight() {\n return css`\n transform: translateX(-100px);\n `;\n },\n\n transitionActive() {\n return css`\n transition:\n transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);\n opacity: 1 !important;\n transform: translate(0, 0) !important;\n `;\n },\n\n transitionLeave() {\n return css`\n opacity: 1;\n `;\n },\n\n transitionLeaveActive() {\n return css`\n opacity: 0.01 !important;\n transition: opacity 0.15s ease-out;\n `;\n },\n});\n"],"mappings":"qjCAAA,SAASA,GAAG,EAAEC,YAAY,QAAQ,2BAA2B;;AAE7D,SAASC,WAAW,QAAQ,yBAAyB;;AAErD,OAAO,IAAMC,MAAM,GAAGF,YAAY,CAAC;EACjCG,IAAI,WAAAA,KAAA,EAAG;IACL,OAAOJ,GAAG,CAAAK,eAAA,KAAAA,eAAA,GAAAC,2BAAA;;;;;EAKZ,CAAC;;EAEDC,UAAU,WAAAA,WAAA,EAAG;IACX,OAAOP,GAAG,CAAAQ,gBAAA,KAAAA,gBAAA,GAAAF,2BAAA;;;EAGZ,CAAC;;EAEDG,OAAO,WAAAA,QAAA,EAAG;IACR,OAAOT,GAAG,CAAAU,gBAAA,KAAAA,gBAAA,GAAAJ,2BAAA;;;;;;;EAOZ,CAAC;;EAEDK,IAAI,WAAAA,KAACC,CAAQ,EAAE;IACb,OAAOZ,GAAG,CAAAa,gBAAA,KAAAA,gBAAA,GAAAP,2BAAA;;;IAGCM,CAAC,CAACE,kBAAkB;;EAEjC,CAAC;;EAEDC,UAAU,WAAAA,WAAA,EAAG;IACX,OAAOf,GAAG,CAAAgB,gBAAA,KAAAA,gBAAA,GAAAV,2BAAA;;;;EAIZ,CAAC;;EAEDW,SAAS,WAAAA,UAACL,CAAQ,EAAE;IAClB,OAAOZ,GAAG,CAAAkB,gBAAA,KAAAA,g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ignoreList":[]}
1
+ {"version":3,"names":["css","memoizeStyle","resetButton","styles","root","_templateObject","_taggedTemplateLiteralLoose","overlay","_templateObject2","body","t","_templateObject3","modalBodyTextColor","mobileBody","_templateObject4","container","_templateObject5","sidePagePaddingLeft","sidePagePaddingRight","mobileContainer","_templateObject6","mobileSidePagePaddingLeft","mobileSidePagePaddingRight","mobileSidePagePaddingBottom","containerWithoutHeader","_templateObject7","sidePagePaddingTop","mobileContainerWithoutHeader","_templateObject8","mobileSidePagePaddingTop","containerWithoutFooter","_templateObject9","sidePagePaddingBottom","containerWithPanel","_templateObject10","focusLock","_templateObject11","wrapper","_templateObject12","sidePageBgDefault","wrapperLeft","_templateObject13","wrapperMarginLeft","_templateObject14","wrapperMarginRight","_templateObject15","headerWrapper","_templateObject16","header","_templateObject17","sidePageHeaderFontSize","sidePageHeaderLineHeight","sidePageHeaderPaddingTop","sidePageHeaderPaddingBottom","sidePageHeaderTextColor","sidePageHeaderFontWeight","mobileHeader","_templateObject18","mobileSidePageHeaderFontSize","mobileSidePageHeaderLineHeight","mobileSidePageHeaderPaddingTop","mobileSidePageHeaderPaddingBottom","headerFixed","_templateObject19","sidePageHeaderFixedFontSize","sidePageHeaderFixedLineHeight","sidePageHeaderFixedPaddingY","sidePageFixedHeaderShadow","title","paddingRight","parseInt","sidePageCloseButtonPadding","sidePageCloseIconSize","_templateObject20","title5_1","sidePageCloseButtonClickAreaLeft","sidePageCloseButtonClickAreaRight","_templateObject21","mobileTitle","mobileSidePageCloseButtonPadding","_templateObject22","titleFixed","_templateObject23","background","_templateObject24","backgroundGray","_templateObject25","sidePageBackingBg","sidePageBackingBgOpacity","shadow","_templateObject26","sidePageContainerShadow","close","_templateObject27","sidePageCloseButtonColor","sidePageCloseButtonClickArea","sidePageCloseButtonHoverColor","close5_1","_templateObject28","sidePageCloseButtonClickAreaTop","sidePageCloseButtonClickAreaBottom","closeSticky","_templateObject29","sidePageCloseButtonFixedClickAreaTop","sidePageCloseButtonFixedClickAreaBottom","closeMobile","_templateObject30","mobileSidePageCloseButtonClickArea","closeFocus","_templateObject31","borderColorFocus","closeFocus5_1","_templateObject32","wrapperClose","_templateObject33","sidePageCloseButtonWrapperOffsetTop","wrapperClose5_1","_templateObject34","mobileWrapperClose","_templateObject35","mobileSidePageCloseButtonRightPadding","mobileWrapperClose5_1","_templateObject36","panel","_templateObject37","sidePageFooterPanelBg","sidePageFooterPanelPaddingTop","sidePageFooterPanelPaddingBottom","wrapperCloseFixed","_templateObject38","wrapperCloseFixed5_1","_templateObject39","sidePageCloseButtonWrapperFixedOffsetTop","footerWrapper","_templateObject40","footer","_templateObject41","sidePageFooterTextColor","positionStatic","_templateObject42","footerContent","_templateObject43","sidePageFooterPaddingTop","sidePageFooterPaddingBottom","mobileFooterContent","_templateObject44","mobileSidePageFooterPadding","footerFixed","_templateObject45","sidePageFixedFooterShadow","panelFixed","_templateObject46","sidePageFixedPanelShadow","transitionLeft","_templateObject47","transitionRight","_templateObject48","transitionActive","_templateObject49","transitionLeave","_templateObject50","transitionLeaveActive","_templateObject51"],"sources":["SidePage.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport type { Theme } from '../../lib/theming/Theme';\nimport { resetButton } from '../../lib/styles/Mixins';\n\nexport const styles = memoizeStyle({\n root() {\n return css`\n height: 100%;\n position: fixed;\n top: 0;\n `;\n },\n\n overlay() {\n return css`\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n `;\n },\n\n body(t: Theme) {\n return css`\n flex: 1 0 auto;\n z-index: 0;\n color: ${t.modalBodyTextColor};\n `;\n },\n\n mobileBody() {\n return css`\n font-size: 16px;\n line-height: 22px;\n `;\n },\n\n container(t: Theme) {\n return css`\n padding-left: ${t.sidePagePaddingLeft};\n padding-right: ${t.sidePagePaddingRight};\n `;\n },\n\n mobileContainer(t: Theme) {\n return css`\n padding-left: ${t.mobileSidePagePaddingLeft};\n padding-right: ${t.mobileSidePagePaddingRight};\n padding-bottom: ${t.mobileSidePagePaddingBottom};\n `;\n },\n\n containerWithoutHeader(t: Theme) {\n return css`\n padding-top: ${t.sidePagePaddingTop};\n `;\n },\n\n mobileContainerWithoutHeader(t: Theme) {\n return css`\n padding-top: ${t.mobileSidePagePaddingTop};\n `;\n },\n\n containerWithoutFooter(t: Theme) {\n return css`\n padding-bottom: ${t.sidePagePaddingBottom};\n `;\n },\n\n containerWithPanel(t: Theme) {\n return css`\n padding-bottom: ${t.sidePagePaddingBottom};\n `;\n },\n\n focusLock() {\n return css`\n height: 100%;\n `;\n },\n\n wrapper(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n float: right;\n height: 100%;\n width: 100%;\n overflow-y: auto;\n position: relative;\n white-space: normal;\n align-items: stretch;\n display: flex;\n flex-direction: column;\n `;\n },\n\n wrapperLeft() {\n return css`\n float: left;\n `;\n },\n\n wrapperMarginLeft() {\n return css`\n margin-left: 20px;\n `;\n },\n\n wrapperMarginRight() {\n return css`\n margin-right: 20px;\n `;\n },\n\n headerWrapper() {\n return css`\n flex: 0 0 auto;\n `;\n },\n\n header(t: Theme) {\n return css`\n font-size: ${t.sidePageHeaderFontSize};\n line-height: ${t.sidePageHeaderLineHeight};\n padding: ${t.sidePageHeaderPaddingTop} 0 ${t.sidePageHeaderPaddingBottom};\n width: 100%;\n position: relative;\n color: ${t.sidePageHeaderTextColor};\n font-weight: ${t.sidePageHeaderFontWeight};\n `;\n },\n\n mobileHeader(t: Theme) {\n return css`\n font-size: ${t.mobileSidePageHeaderFontSize};\n line-height: ${t.mobileSidePageHeaderLineHeight};\n padding: ${t.mobileSidePageHeaderPaddingTop} 0 ${t.mobileSidePageHeaderPaddingBottom};\n `;\n },\n\n headerFixed(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n font-size: ${t.sidePageHeaderFixedFontSize};\n line-height: ${t.sidePageHeaderFixedLineHeight};\n padding: ${t.sidePageHeaderFixedPaddingY} 0;\n\n &:after {\n bottom: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ${t.sidePageFixedHeaderShadow};\n }\n `;\n },\n\n title(t: Theme) {\n const paddingRight = parseInt(t.sidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);\n return css`\n padding-left: ${t.sidePagePaddingLeft};\n padding-right: ${paddingRight}px;\n `;\n },\n\n title5_1(t: Theme) {\n const paddingRight =\n parseInt(t.sidePageCloseButtonClickAreaLeft) +\n parseInt(t.sidePageCloseIconSize) +\n parseInt(t.sidePageCloseButtonClickAreaRight);\n return css`\n padding-right: ${paddingRight}px;\n `;\n },\n\n mobileTitle(t: Theme) {\n const paddingRight = parseInt(t.mobileSidePageCloseButtonPadding) * 2 + parseInt(t.sidePageCloseIconSize);\n return css`\n padding-left: ${t.mobileSidePagePaddingLeft};\n padding-right: ${paddingRight}px;\n `;\n },\n\n titleFixed() {\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `;\n },\n\n background() {\n return css`\n height: 100%;\n position: absolute;\n width: 100%;\n `;\n },\n\n backgroundGray(t: Theme) {\n return css`\n background: ${t.sidePageBackingBg};\n opacity: ${t.sidePageBackingBgOpacity};\n `;\n },\n\n shadow(t: Theme) {\n return css`\n box-shadow: ${t.sidePageContainerShadow};\n `;\n },\n\n close(t: Theme) {\n return css`\n ${resetButton()};\n cursor: pointer;\n color: ${t.sidePageCloseButtonColor};\n padding: ${t.sidePageCloseButtonClickArea};\n margin: -${t.sidePageCloseButtonClickArea};\n font-size: 0;\n\n &:focus,\n &:hover {\n color: ${t.sidePageCloseButtonHoverColor};\n }\n\n & > svg {\n width: ${t.sidePageCloseIconSize};\n height: ${t.sidePageCloseIconSize};\n box-sizing: content-box;\n }\n `;\n },\n\n close5_1(t: Theme) {\n return css`\n padding-top: ${t.sidePageCloseButtonClickAreaTop};\n margin-top: -${t.sidePageCloseButtonClickAreaTop};\n padding-right: ${t.sidePageCloseButtonClickAreaRight};\n margin-right: -${t.sidePageCloseButtonClickAreaRight};\n padding-bottom: ${t.sidePageCloseButtonClickAreaBottom};\n margin-bottom: -${t.sidePageCloseButtonClickAreaBottom};\n padding-left: ${t.sidePageCloseButtonClickAreaLeft};\n margin-left: -${t.sidePageCloseButtonClickAreaLeft};\n `;\n },\n\n closeSticky(t: Theme) {\n return css`\n padding-top: ${t.sidePageCloseButtonFixedClickAreaTop};\n margin-top: -${t.sidePageCloseButtonFixedClickAreaTop};\n padding-bottom: ${t.sidePageCloseButtonFixedClickAreaBottom};\n margin-bottom: -${t.sidePageCloseButtonFixedClickAreaBottom};\n `;\n },\n\n closeMobile(t: Theme) {\n return css`\n padding: ${t.mobileSidePageCloseButtonClickArea};\n margin: -${t.mobileSidePageCloseButtonClickArea};\n font-size: 0;\n `;\n },\n\n closeFocus(t: Theme) {\n return css`\n outline: 2px solid ${t.borderColorFocus};\n `;\n },\n\n closeFocus5_1(t: Theme) {\n return css`\n box-shadow: inset 0 0 0 2px ${t.borderColorFocus};\n border-radius: 4px;\n `;\n },\n\n wrapperClose(t: Theme) {\n return css`\n box-sizing: border-box;\n height: 100%;\n line-height: ${t.sidePageHeaderLineHeight};\n padding: ${t.sidePageHeaderPaddingTop} 0 ${t.sidePageHeaderPaddingBottom};\n position: absolute;\n right: ${t.sidePageCloseButtonPadding};\n top: ${t.sidePageCloseButtonWrapperOffsetTop};\n `;\n },\n\n wrapperClose5_1(t: Theme) {\n return css`\n right: ${t.sidePageCloseButtonClickAreaRight};\n `;\n },\n\n mobileWrapperClose(t: Theme) {\n return css`\n line-height: ${t.mobileSidePageHeaderLineHeight};\n padding: ${t.mobileSidePageHeaderPaddingTop} 0 ${t.mobileSidePageHeaderPaddingBottom};\n right: ${t.mobileSidePageCloseButtonRightPadding};\n `;\n },\n\n mobileWrapperClose5_1(t: Theme) {\n return css`\n right: ${t.mobileSidePageCloseButtonPadding};\n `;\n },\n\n panel(t: Theme) {\n return css`\n background: ${t.sidePageFooterPanelBg};\n padding: ${t.sidePageFooterPanelPaddingTop} ${t.sidePagePaddingRight} ${t.sidePageFooterPanelPaddingBottom}\n ${t.sidePagePaddingLeft};\n `;\n },\n\n wrapperCloseFixed(t: Theme) {\n return css`\n line-height: ${t.sidePageHeaderFixedLineHeight};\n padding: ${t.sidePageHeaderFixedPaddingY} 0;\n `;\n },\n\n wrapperCloseFixed5_1(t: Theme) {\n return css`\n top: ${t.sidePageCloseButtonWrapperFixedOffsetTop};\n `;\n },\n\n footerWrapper() {\n return css`\n flex: 0 0 auto;\n `;\n },\n\n footer(t: Theme) {\n return css`\n bottom: 0;\n position: fixed;\n z-index: 10;\n color: ${t.sidePageFooterTextColor};\n `;\n },\n\n positionStatic() {\n return css`\n position: static;\n `;\n },\n\n footerContent(t: Theme) {\n return css`\n padding: ${t.sidePageFooterPaddingTop} ${t.sidePagePaddingRight} ${t.sidePageFooterPaddingBottom}\n ${t.sidePagePaddingLeft};\n `;\n },\n\n mobileFooterContent(t: Theme) {\n return css`\n display: flex;\n flex-flow: column nowrap;\n padding: ${t.mobileSidePageFooterPadding};\n `;\n },\n\n footerFixed(t: Theme) {\n return css`\n background: ${t.sidePageBgDefault};\n\n &:before {\n top: 0px;\n content: '';\n position: absolute;\n height: 1px;\n width: 100%;\n left: 0;\n z-index: -1;\n box-shadow: ${t.sidePageFixedFooterShadow};\n }\n `;\n },\n\n panelFixed(t: Theme) {\n return css`\n &:before {\n box-shadow: ${t.sidePageFixedPanelShadow};\n }\n `;\n },\n\n transitionLeft() {\n return css`\n transform: translateX(100px);\n `;\n },\n\n transitionRight() {\n return css`\n transform: translateX(-100px);\n `;\n },\n\n transitionActive() {\n return css`\n transition:\n transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);\n opacity: 1 !important;\n transform: translate(0, 0) !important;\n `;\n },\n\n transitionLeave() {\n return css`\n opacity: 1;\n `;\n },\n\n transitionLeaveActive() {\n return css`\n opacity: 0.01 !important;\n transition: opacity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J,iBAAA,KAAAA,iBAAA,GAAAjJ,2BAAA;;IAEQI,CAAC,CAAC8I,wBAAwB;;;EAG9C,CAAC;;EAEDC,cAAc,WAAAA,eAAA,EAAG;IACf,OAAOzJ,GAAG,CAAA0J,iBAAA,KAAAA,iBAAA,GAAApJ,2BAAA;;;EAGZ,CAAC;;EAEDqJ,eAAe,WAAAA,gBAAA,EAAG;IAChB,OAAO3J,GAAG,CAAA4J,iBAAA,KAAAA,iBAAA,GAAAtJ,2BAAA;;;EAGZ,CAAC;;EAEDuJ,gBAAgB,WAAAA,iBAAA,EAAG;IACjB,OAAO7J,GAAG,CAAA8J,iBAAA,KAAAA,iBAAA,GAAAxJ,2BAAA;;;;;;;EAOZ,CAAC;;EAEDyJ,eAAe,WAAAA,gBAAA,EAAG;IAChB,OAAO/J,GAAG,CAAAgK,iBAAA,KAAAA,iBAAA,GAAA1J,2BAAA;;;EAGZ,CAAC;;EAED2J,qBAAqB,WAAAA,sBAAA,EAAG;IACtB,OAAOjK,GAAG,CAAAkK,iBAAA,KAAAA,iBAAA,GAAA5J,2BAAA;;;;EAIZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,7 +1,6 @@
1
1
  import type { Theme } from '../../lib/theming/Theme';
2
2
  export declare const styles: {
3
3
  root(): string;
4
- mobileRoot(): string;
5
4
  overlay(): string;
6
5
  body(t: Theme): string;
7
6
  mobileBody(): string;
@@ -78,7 +78,7 @@ export var Sticky = rootNode(_class = (_Sticky = /*#__PURE__*/function (_React$C
78
78
  _this$state$height = _this$state.height,
79
79
  prevHeight = _this$state$height === void 0 ? height : _this$state$height;
80
80
  var offset = _this.getProps().offset;
81
- var fixed = side === 'top' ? top < offset : Math.floor(bottom) > windowHeight - offset;
81
+ var fixed = side === 'top' ? Math.ceil(top) < offset : Math.floor(bottom) > windowHeight - offset;
82
82
  _this.setState({
83
83
  fixed: fixed,
84
84
  left: left
@@ -1 +1 @@
1
- {"version":3,"names":["React","PropTypes","shallowEqual","globalObject","LayoutEvents","isFunction","ZIndex","CommonWrapper","cx","rootNode","getDOMRect","createPropsGetter","getFullReactUIFlagsContext","ReactUIFeatureFlagsContext","styles","MAX_REFLOW_RETRIES","StickyDataTids","root","Sticky","_class","_Sticky","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","fixed","deltaHeight","stopped","relativeTop","layoutSubscription","remove","reflowCounter","refWrapper","ref","wrapper","refInner","inner","reflow","_globalObject$documen","document","documentElement","Error","windowHeight","innerHeight","clientHeight","_getDOMRect","top","bottom","left","width","_getDOMRect2","height","_this$props","props","getStop","side","_this$state","prevFixed","_this$state$height","prevHeight","offset","Math","floor","setState","stop","stopRect","outerHeight","_inheritsLoose","_proto","prototype","componentDidMount","addListener","componentWillUnmount","componentDidUpdate","prevProps","prevState","featureFlags","stickyReduceLayoutEvents","emit","render","_this2","createElement","Consumer","flags","renderMain","_cx","children","_this$state2","innerStyle","_extends","rootNodeRef","setRootNode","className","priority","applyZIndex","style","wrapperRef","container","Component","__KONTUR_REACT_UI__","displayName","propTypes","oneOfType","node","func","number","oneOf","isRequired"],"sources":["Sticky.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport shallowEqual from 'shallowequal';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport * as LayoutEvents from '../../lib/LayoutEvents';\nimport type { Nullable } from '../../typings/utility-types';\nimport { isFunction } from '../../lib/utils';\nimport { ZIndex } from '../../internal/ZIndex';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport { getDOMRect } from '../../lib/dom/getDOMRect';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport type { ReactUIFeatureFlags } from '../../lib/featureFlagsContext';\nimport { getFullReactUIFlagsContext, ReactUIFeatureFlagsContext } from '../../lib/featureFlagsContext';\n\nimport { styles } from './Sticky.styles';\n\nconst MAX_REFLOW_RETRIES = 5;\n\nexport interface StickyProps extends Omit<CommonProps, 'children'> {\n /** Задает сторону залипания. */\n side: 'top' | 'bottom';\n\n /** Задает отступ от края экрана в пикселях, на который сдвигается элемент в залипшем состоянии.\n * @default 0 */\n offset?: number;\n\n /** Задает функцию, которая возвращает DOM-элемент, который нельзя пересекать. */\n getStop?: () => Nullable<HTMLElement>;\n\n /** @ignore */\n children?: React.ReactNode | ((fixed: boolean) => React.ReactNode);\n}\n\nexport interface StickyState {\n fixed: boolean;\n deltaHeight: number;\n height?: number;\n width?: number;\n left?: number;\n stopped: boolean;\n relativeTop: number;\n}\n\nexport const StickyDataTids = {\n root: 'Sticky__root',\n} as const;\n\ntype DefaultProps = Required<Pick<StickyProps, 'offset'>>;\n\n/**\n * `Sticky` позволяет закреплять элемент интерфейса в определенной позиции на экране при прокрутке страницы.\n * Это полезно для создания \"прилипающих\" элементов, которые остаются видимыми при прокрутке содержимого.\n */\n@rootNode\nexport class Sticky extends React.Component<StickyProps, StickyState> {\n public static __KONTUR_REACT_UI__ = 'Sticky';\n public static displayName = 'Sticky';\n\n public static propTypes = {\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n\n /**\n * Функция, которая возвращает DOM-элемент, который нельзя пересекать.\n */\n getStop: PropTypes.func,\n\n /**\n * Отступ от границы в пикселях\n */\n offset: PropTypes.number,\n\n side: PropTypes.oneOf(['top', 'bottom']).isRequired,\n };\n\n public static defaultProps: DefaultProps = { offset: 0 };\n\n private getProps = createPropsGetter(Sticky.defaultProps);\n\n public state: StickyState = {\n fixed: false,\n deltaHeight: 0,\n stopped: false,\n relativeTop: 0,\n };\n\n private wrapper: Nullable<HTMLElement>;\n private inner: Nullable<HTMLElement>;\n private layoutSubscription: { remove: Nullable<() => void> } = { remove: null };\n private reflowCounter = 0;\n private setRootNode!: TSetRootNode;\n public featureFlags!: ReactUIFeatureFlags;\n\n public componentDidMount() {\n this.reflow();\n\n this.layoutSubscription = LayoutEvents.addListener(this.reflow);\n }\n\n public componentWillUnmount() {\n if (this.layoutSubscription.remove) {\n this.layoutSubscription.remove();\n }\n }\n\n public componentDidUpdate(prevProps: StickyProps, prevState: StickyState) {\n if (!shallowEqual(prevProps, this.props) || !shallowEqual(prevState, this.state)) {\n if (this.reflowCounter < MAX_REFLOW_RETRIES) {\n this.featureFlags.stickyReduceLayoutEvents ? this.reflow() : LayoutEvents.emit();\n this.reflowCounter += 1;\n return;\n }\n }\n this.reflowCounter = 0;\n }\n\n public render() {\n return (\n <ReactUIFeatureFlagsContext.Consumer>\n {(flags) => {\n this.featureFlags = getFullReactUIFlagsContext(flags);\n return this.renderMain();\n }}\n </ReactUIFeatureFlagsContext.Consumer>\n );\n }\n\n private renderMain() {\n let { children } = this.props;\n const { side } = this.props;\n const offset = this.getProps().offset;\n const { fixed, stopped, relativeTop, deltaHeight, width, height, left } = this.state;\n const innerStyle: React.CSSProperties = {};\n\n if (fixed) {\n if (stopped) {\n innerStyle.top = relativeTop;\n innerStyle[side === 'top' ? 'marginTop' : 'marginBottom'] = deltaHeight;\n } else {\n innerStyle.width = width;\n innerStyle[side] = offset;\n innerStyle.left = left;\n }\n }\n\n if (isFunction(children)) {\n children = children(fixed);\n }\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <div data-tid={StickyDataTids.root} ref={this.refWrapper} className={styles.wrapper()}>\n <ZIndex\n priority=\"Sticky\"\n applyZIndex={fixed}\n className={cx(styles.inner(), {\n [styles.fixed()]: fixed && !stopped,\n [styles.stopped()]: stopped,\n })}\n style={innerStyle}\n wrapperRef={this.refInner}\n >\n <div className={styles.container()}>{children}</div>\n </ZIndex>\n {fixed && !stopped ? <div style={{ width, height }} /> : null}\n </div>\n </CommonWrapper>\n );\n }\n\n private refWrapper = (ref: Nullable<HTMLElement>) => (this.wrapper = ref);\n\n private refInner = (ref: Nullable<HTMLElement>) => (this.inner = ref);\n\n /**\n * Пересчитать габариты и позицию залипшего элемента\n *\n * @public\n */\n public reflow = () => {\n if (!globalObject.document?.documentElement) {\n throw Error('There is no \"documentElement\" in document');\n }\n\n const windowHeight = globalObject.innerHeight || globalObject.document.documentElement.clientHeight;\n if (!this.wrapper || !this.inner) {\n return;\n }\n const { top, bottom, left, width } = getDOMRect(this.wrapper);\n const { height } = getDOMRect(this.inner);\n const { getStop, side } = this.props;\n const { fixed: prevFixed, height: prevHeight = height } = this.state;\n const offset = this.getProps().offset;\n const fixed = side === 'top' ? top < offset : Math.floor(bottom) > windowHeight - offset;\n\n this.setState({ fixed, left });\n\n if (fixed && !prevFixed) {\n this.setState({ width, height });\n }\n\n if (fixed) {\n this.setState({ width });\n const stop = getStop && getStop();\n if (stop) {\n const deltaHeight = prevHeight - height;\n const stopRect = getDOMRect(stop);\n const outerHeight = height + offset;\n let stopped = false;\n let relativeTop = 0;\n\n if (side === 'top') {\n stopped = stopRect.top - outerHeight < 0;\n relativeTop = stopRect.top - prevHeight - top;\n } else {\n stopped = stopRect.bottom + outerHeight > windowHeight;\n relativeTop = stopRect.bottom - top;\n }\n\n this.setState({ relativeTop, deltaHeight, stopped });\n }\n }\n };\n}\n"],"mappings":"oJAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,YAAY,MAAM,cAAc;AACvC,SAASC,YAAY,QAAQ,0BAA0B;;AAEvD,OAAO,KAAKC,YAAY,MAAM,wBAAwB;;AAEtD,SAASC,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,MAAM,QAAQ,uBAAuB;;AAE9C,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,EAAE,QAAQ,2BAA2B;;AAE9C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,iBAAiB,QAAQ,6BAA6B;;AAE/D,SAASC,0BAA0B,EAAEC,0BAA0B,QAAQ,+BAA+B;;AAEtG,SAASC,MAA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,CAACkH,MAAM,EAExBlD,IAAI,EAAEhE,SAAS,CAACmH,KAAK,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAACC,UAAU,CACrD,CAAC,EAAAjG,OAAA,CAEaa,YAAY,GAAiB,EAAEqC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAAlD,OAAA,MAAAD,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["React","PropTypes","shallowEqual","globalObject","LayoutEvents","isFunction","ZIndex","CommonWrapper","cx","rootNode","getDOMRect","createPropsGetter","getFullReactUIFlagsContext","ReactUIFeatureFlagsContext","styles","MAX_REFLOW_RETRIES","StickyDataTids","root","Sticky","_class","_Sticky","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","defaultProps","state","fixed","deltaHeight","stopped","relativeTop","layoutSubscription","remove","reflowCounter","refWrapper","ref","wrapper","refInner","inner","reflow","_globalObject$documen","document","documentElement","Error","windowHeight","innerHeight","clientHeight","_getDOMRect","top","bottom","left","width","_getDOMRect2","height","_this$props","props","getStop","side","_this$state","prevFixed","_this$state$height","prevHeight","offset","Math","ceil","floor","setState","stop","stopRect","outerHeight","_inheritsLoose","_proto","prototype","componentDidMount","addListener","componentWillUnmount","componentDidUpdate","prevProps","prevState","featureFlags","stickyReduceLayoutEvents","emit","render","_this2","createElement","Consumer","flags","renderMain","_cx","children","_this$state2","innerStyle","_extends","rootNodeRef","setRootNode","className","priority","applyZIndex","style","wrapperRef","container","Component","__KONTUR_REACT_UI__","displayName","propTypes","oneOfType","node","func","number","oneOf","isRequired"],"sources":["Sticky.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport shallowEqual from 'shallowequal';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport * as LayoutEvents from '../../lib/LayoutEvents';\nimport type { Nullable } from '../../typings/utility-types';\nimport { isFunction } from '../../lib/utils';\nimport { ZIndex } from '../../internal/ZIndex';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport { getDOMRect } from '../../lib/dom/getDOMRect';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport type { ReactUIFeatureFlags } from '../../lib/featureFlagsContext';\nimport { getFullReactUIFlagsContext, ReactUIFeatureFlagsContext } from '../../lib/featureFlagsContext';\n\nimport { styles } from './Sticky.styles';\n\nconst MAX_REFLOW_RETRIES = 5;\n\nexport interface StickyProps extends Omit<CommonProps, 'children'> {\n /** Задает сторону залипания. */\n side: 'top' | 'bottom';\n\n /** Задает отступ от края экрана в пикселях, на который сдвигается элемент в залипшем состоянии.\n * @default 0 */\n offset?: number;\n\n /** Задает функцию, которая возвращает DOM-элемент, который нельзя пересекать. */\n getStop?: () => Nullable<HTMLElement>;\n\n /** @ignore */\n children?: React.ReactNode | ((fixed: boolean) => React.ReactNode);\n}\n\nexport interface StickyState {\n fixed: boolean;\n deltaHeight: number;\n height?: number;\n width?: number;\n left?: number;\n stopped: boolean;\n relativeTop: number;\n}\n\nexport const StickyDataTids = {\n root: 'Sticky__root',\n} as const;\n\ntype DefaultProps = Required<Pick<StickyProps, 'offset'>>;\n\n/**\n * `Sticky` позволяет закреплять элемент интерфейса в определенной позиции на экране при прокрутке страницы.\n * Это полезно для создания \"прилипающих\" элементов, которые остаются видимыми при прокрутке содержимого.\n */\n@rootNode\nexport class Sticky extends React.Component<StickyProps, StickyState> {\n public static __KONTUR_REACT_UI__ = 'Sticky';\n public static displayName = 'Sticky';\n\n public static propTypes = {\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n\n /**\n * Функция, которая возвращает DOM-элемент, который нельзя пересекать.\n */\n getStop: PropTypes.func,\n\n /**\n * Отступ от границы в пикселях\n */\n offset: PropTypes.number,\n\n side: PropTypes.oneOf(['top', 'bottom']).isRequired,\n };\n\n public static defaultProps: DefaultProps = { offset: 0 };\n\n private getProps = createPropsGetter(Sticky.defaultProps);\n\n public state: StickyState = {\n fixed: false,\n deltaHeight: 0,\n stopped: false,\n relativeTop: 0,\n };\n\n private wrapper: Nullable<HTMLElement>;\n private inner: Nullable<HTMLElement>;\n private layoutSubscription: { remove: Nullable<() => void> } = { remove: null };\n private reflowCounter = 0;\n private setRootNode!: TSetRootNode;\n public featureFlags!: ReactUIFeatureFlags;\n\n public componentDidMount() {\n this.reflow();\n\n this.layoutSubscription = LayoutEvents.addListener(this.reflow);\n }\n\n public componentWillUnmount() {\n if (this.layoutSubscription.remove) {\n this.layoutSubscription.remove();\n }\n }\n\n public componentDidUpdate(prevProps: StickyProps, prevState: StickyState) {\n if (!shallowEqual(prevProps, this.props) || !shallowEqual(prevState, this.state)) {\n if (this.reflowCounter < MAX_REFLOW_RETRIES) {\n this.featureFlags.stickyReduceLayoutEvents ? this.reflow() : LayoutEvents.emit();\n this.reflowCounter += 1;\n return;\n }\n }\n this.reflowCounter = 0;\n }\n\n public render() {\n return (\n <ReactUIFeatureFlagsContext.Consumer>\n {(flags) => {\n this.featureFlags = getFullReactUIFlagsContext(flags);\n return this.renderMain();\n }}\n </ReactUIFeatureFlagsContext.Consumer>\n );\n }\n\n private renderMain() {\n let { children } = this.props;\n const { side } = this.props;\n const offset = this.getProps().offset;\n const { fixed, stopped, relativeTop, deltaHeight, width, height, left } = this.state;\n const innerStyle: React.CSSProperties = {};\n\n if (fixed) {\n if (stopped) {\n innerStyle.top = relativeTop;\n innerStyle[side === 'top' ? 'marginTop' : 'marginBottom'] = deltaHeight;\n } else {\n innerStyle.width = width;\n innerStyle[side] = offset;\n innerStyle.left = left;\n }\n }\n\n if (isFunction(children)) {\n children = children(fixed);\n }\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <div data-tid={StickyDataTids.root} ref={this.refWrapper} className={styles.wrapper()}>\n <ZIndex\n priority=\"Sticky\"\n applyZIndex={fixed}\n className={cx(styles.inner(), {\n [styles.fixed()]: fixed && !stopped,\n [styles.stopped()]: stopped,\n })}\n style={innerStyle}\n wrapperRef={this.refInner}\n >\n <div className={styles.container()}>{children}</div>\n </ZIndex>\n {fixed && !stopped ? <div style={{ width, height }} /> : null}\n </div>\n </CommonWrapper>\n );\n }\n\n private refWrapper = (ref: Nullable<HTMLElement>) => (this.wrapper = ref);\n\n private refInner = (ref: Nullable<HTMLElement>) => (this.inner = ref);\n\n /**\n * Пересчитать габариты и позицию залипшего элемента\n *\n * @public\n */\n public reflow = () => {\n if (!globalObject.document?.documentElement) {\n throw Error('There is no \"documentElement\" in document');\n }\n\n const windowHeight = globalObject.innerHeight || globalObject.document.documentElement.clientHeight;\n if (!this.wrapper || !this.inner) {\n return;\n }\n const { top, bottom, left, width } = getDOMRect(this.wrapper);\n const { height } = getDOMRect(this.inner);\n const { getStop, side } = this.props;\n const { fixed: prevFixed, height: prevHeight = height } = this.state;\n const offset = this.getProps().offset;\n const fixed = side === 'top' ? Math.ceil(top) < offset : Math.floor(bottom) > windowHeight - offset;\n\n this.setState({ fixed, left });\n\n if (fixed && !prevFixed) {\n this.setState({ width, height });\n }\n\n if (fixed) {\n this.setState({ width });\n const stop = getStop && getStop();\n if (stop) {\n const deltaHeight = prevHeight - height;\n const stopRect = getDOMRect(stop);\n const outerHeight = height + offset;\n let stopped = false;\n let relativeTop = 0;\n\n if (side === 'top') {\n stopped = stopRect.top - outerHeight < 0;\n relativeTop = stopRect.top - prevHeight - top;\n } else {\n stopped = stopRect.bottom + outerHeight > windowHeight;\n relativeTop = stopRect.bottom - top;\n }\n\n this.setState({ relativeTop, deltaHeight, stopped });\n }\n }\n };\n}\n"],"mappings":"oJAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,YAAY,MAAM,cAAc;AACvC,SAASC,YAAY,QAAQ,0BAA0B;;AAEvD,OAAO,KAAKC,YAAY,MAAM,wBAAwB;;AAEtD,SAASC,UAAU,QAAQ,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AC3B0F,mBAAmB,GAAG,QAAQ,EAAA1F,OAAA,CAC9B2F,WAAW,GAAG,QAAQ,EAAA3F,OAAA,CAEtB4F,SAAS,GAAG,EACxBf,QAAQ,EAAEhG,SAAS,CAACgH,SAAS,CAAC,CAAChH,SAAS,CAACiH,IAAI,EAAEjH,SAAS,CAACkH,IAAI,CAAC,CAAC,EAE/D;AACJ;AACA,KACInD,OAAO,EAAE/D,SAAS,CAACkH,IAAI,EAEvB;AACJ;AACA,KACI7C,MAAM,EAAErE,SAAS,CAACmH,MAAM,EAExBnD,IAAI,EAAEhE,SAAS,CAACoH,KAAK,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAACC,UAAU,CACrD,CAAC,EAAAlG,OAAA,CAEaa,YAAY,GAAiB,EAAEqC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAAlD,OAAA,MAAAD,MAAA","ignoreList":[]}
@@ -95,8 +95,8 @@ export var Toast = rootNode(_class = (_Toast = /*#__PURE__*/function (_React$Com
95
95
  * Время показа можно задать вручную, передав `showTime`.
96
96
  *
97
97
  * @public
98
- * @param {string} notification
99
- * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`
98
+ * @param {React.ReactNode} notification
99
+ * @param {Action} action `action` опциональный параметр формата `{ label: React.ReactNode, handler: function }`
100
100
  * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler
101
101
  * @param {number} showTime Время существования Toast в миллисекундах
102
102
  * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.
@@ -1 +1 @@
1
- {"version":3,"names":["React","CSSTransition","TransitionGroup","globalObject","ThemeFactory","ThemeContext","RenderContainer","CommonWrapper","isTestEnv","rootNode","styles","ToastView","ToastStatic","ToastDataTids","toastStatic","toastView","action","close","Toast","_class","_Toast","_React$Component","props","_this","call","rootRef","createRef","safelyCall","onClose","state","notification","setState","setRootRef","element","setRootNode","current","_clearTimer","_timeout","clearTimeout","_setTimer","_this$state$showTime","showTime","setTimeout","_refToast","_toast","id","showCloseIcon","_inheritsLoose","_proto","prototype","componentWillUnmount","render","_this2","createElement","Consumer","theme","create","Provider","value","_renderToast","push","onPush","_ref","_this$state","toastProps","onMouseEnter","onMouseLeave","children","key","classNames","enter","enterActive","exit","exitActive","timeout","nodeRef","_extends","rootNodeRef","ref","Component","__KONTUR_REACT_UI__","displayName","fn","_len","arguments","length","args","Array","_key","apply"],"sources":["Toast.tsx"],"sourcesContent":["import type { AriaAttributes } from 'react';\nimport React from 'react';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport type { SafeTimer } from '@skbkontur/global-object';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport type { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { RenderContainer } from '../../internal/RenderContainer';\nimport type { Nullable } from '../../typings/utility-types';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\n\nimport { styles } from './Toast.styles';\nimport type { ToastViewProps } from './ToastView';\nimport { ToastView } 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 type ToastPush = (\n notification: string,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n) => void;\n\nexport type ToastClose = () => void;\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: ToastPush = (\n notification: string,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n ) => {\n ToastStatic.push(notification, action, showTime, showCloseIcon);\n };\n\n /** @deprecated use `close` method in ref or `SingleToast.close` */\n public static close: ToastClose = () => {\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":";AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;;AAEvE,SAASC,YAAY,QAAQ,0BAA0B;;AAEvD,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,YAAY,QAAQ,gCAAgC;;AAE7D,SAASC,eAAe,QAAQ,gCAAgC;;;AAGhE,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,SAAS,QAAQ,8BAA8B;;AAExD,SAASC,QAAQ,QAAQ,oBAAoB;;AAE7C,SAASC,MAAM,QAAQ,gBAAgB;;AAEvC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,WAAW,QAAQ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoC3C,OAAO,IAAMC,aAAa,GAAG;EAC3BC,WAAW,EAAE,aAAa;EAC1BC,SAAS,EAAE,iBAAiB;EAC5BC,MAAM,EAAE,mBAAmB;EAC3BC,KAAK,EAAE;AACT,CAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACaC,KAAK,GADjBT,QAAQ,CAAAU,MAAA,IAAAC,MAAA,0BAAAC,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BP,SAAAH,MAAYI,KAAiB,EAAE,KAAAC,KAAA;IAC7BA,KAAA,GAAAF,gBAAA,CAAAG,IAAA,OAAMF,KAAK,CAAC,SAACC,KAAA,CAHPE,OAAO,gBAAGzB,KAAK,CAAC0B,SAAS,CAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;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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","CSSTransition","TransitionGroup","globalObject","ThemeFactory","ThemeContext","RenderContainer","CommonWrapper","isTestEnv","rootNode","styles","ToastView","ToastStatic","ToastDataTids","toastStatic","toastView","action","close","Toast","_class","_Toast","_React$Component","props","_this","call","rootRef","createRef","safelyCall","onClose","state","notification","setState","setRootRef","element","setRootNode","current","_clearTimer","_timeout","clearTimeout","_setTimer","_this$state$showTime","showTime","setTimeout","_refToast","_toast","id","showCloseIcon","_inheritsLoose","_proto","prototype","componentWillUnmount","render","_this2","createElement","Consumer","theme","create","Provider","value","_renderToast","push","onPush","_ref","_this$state","toastProps","onMouseEnter","onMouseLeave","children","key","classNames","enter","enterActive","exit","exitActive","timeout","nodeRef","_extends","rootNodeRef","ref","Component","__KONTUR_REACT_UI__","displayName","fn","_len","arguments","length","args","Array","_key","apply"],"sources":["Toast.tsx"],"sourcesContent":["import type { AriaAttributes } from 'react';\nimport React from 'react';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport type { SafeTimer } from '@skbkontur/global-object';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ThemeFactory } from '../../lib/theming/ThemeFactory';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport type { Theme, ThemeIn } from '../../lib/theming/Theme';\nimport { RenderContainer } from '../../internal/RenderContainer';\nimport type { Nullable } from '../../typings/utility-types';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\n\nimport { styles } from './Toast.styles';\nimport type { ToastViewProps } from './ToastView';\nimport { ToastView } 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<React.ReactNode>;\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 type ToastPush = (\n notification: React.ReactNode,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n) => void;\n\nexport type ToastClose = () => void;\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: ToastPush = (\n notification: React.ReactNode,\n action?: Nullable<Action>,\n showTime?: number,\n showCloseIcon?: boolean,\n ) => {\n ToastStatic.push(notification, action, showTime, showCloseIcon);\n };\n\n /** @deprecated use `close` method in ref or `SingleToast.close` */\n public static close: ToastClose = () => {\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 {React.ReactNode} notification\n * @param {Action} action `action` опциональный параметр формата `{ label: React.ReactNode, handler: function }`\n * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler\n * @param {number} showTime Время существования Toast в миллисекундах\n * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.\n */\n public push(notification: React.ReactNode, 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":";AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;;AAEvE,SAASC,YAAY,QAAQ,0BAA0B;;AAEvD,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,YAAY,QAAQ,gCAAgC;;AAE7D,SAASC,eAAe,QAAQ,gCAAgC;;;AAGhE,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,SAAS,QAAQ,8BAA8B;;AAExD,SAASC,QAAQ,QAAQ,oBAAoB;;AAE7C,SAASC,MAAM,QAAQ,gBAAgB;;AAEvC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,WAAW,QAAQ,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoC3C,OAAO,IAAMC,aAAa,GAAG;EAC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Ac,UAC9B9B,YAA6B,EAC7Bd,MAAyB,EACzByB,QAAiB,EACjBK,aAAuB,EACpB,CACHlC,WAAW,CAACgD,IAAI,CAAC9B,YAAY,EAAEd,MAAM,EAAEyB,QAAQ,EAAEK,aAAa,CAAC,CACjE,CAAC,EAAA1B,MAAA,CAGaH,KAAK,GAAe,YAAM,CACtCL,WAAW,CAACK,KAAK,CAAC,CAAC,CACrB,CAAC,EAAAG,MAAA,MAAAD,MAAA,CAwIH,SAASQ,UAAUA,CAACuD,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":[]}
@@ -10,7 +10,7 @@ export interface Action {
10
10
  'aria-label'?: string;
11
11
  }
12
12
  export interface ToastState {
13
- notification: Nullable<string>;
13
+ notification: Nullable<React.ReactNode>;
14
14
  action: Nullable<Action>;
15
15
  id: number;
16
16
  showTime: Nullable<number>;
@@ -24,7 +24,7 @@ export interface ToastProps extends Pick<AriaAttributes, 'aria-label'>, CommonPr
24
24
  /** Задает объект с переменными темы. Он будет объединён с темой из контекста. */
25
25
  theme?: ThemeIn;
26
26
  }
27
- export type ToastPush = (notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) => void;
27
+ export type ToastPush = (notification: React.ReactNode, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean) => void;
28
28
  export type ToastClose = () => void;
29
29
  export declare const ToastDataTids: {
30
30
  readonly toastStatic: "StaticToast";
@@ -63,13 +63,13 @@ export declare class Toast extends React.Component<ToastProps, ToastState> {
63
63
  * Время показа можно задать вручную, передав `showTime`.
64
64
  *
65
65
  * @public
66
- * @param {string} notification
67
- * @param {Action} action `action` опциональный параметр формата `{ label: string, handler: function }`
66
+ * @param {React.ReactNode} notification
67
+ * @param {Action} action `action` опциональный параметр формата `{ label: React.ReactNode, handler: function }`
68
68
  * добавляет кнопку в виде ссылки при клике на которую вызывается переданный handler
69
69
  * @param {number} showTime Время существования Toast в миллисекундах
70
70
  * @param {boolean} showCloseIcon Добавляет крестик для закрытия тоста. При указывании action в onPush крестик отображается всегда.
71
71
  */
72
- push(notification: string, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean): void;
72
+ push(notification: React.ReactNode, action?: Nullable<Action>, showTime?: number, showCloseIcon?: boolean): void;
73
73
  /**
74
74
  * @public
75
75
  */