@salutejs/plasma-new-hope 0.159.1-canary.1412.11144674561.0 → 0.160.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/cjs/components/Drawer/Drawer.css +3 -4
  2. package/cjs/components/Drawer/Drawer.styles.js +0 -3
  3. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  4. package/cjs/components/Modal/Modal.css +3 -4
  5. package/cjs/components/Notification/NotificationsProvider.css +3 -4
  6. package/cjs/components/Popup/Popup.css +3 -0
  7. package/cjs/components/Popup/Popup.js +41 -30
  8. package/cjs/components/Popup/Popup.js.map +1 -1
  9. package/cjs/components/Popup/Popup.styles.js +27 -55
  10. package/cjs/components/Popup/Popup.styles.js.map +1 -1
  11. package/cjs/components/Popup/Popup.styles_141jyqa.css +3 -0
  12. package/cjs/components/Popup/PopupContext.js +10 -32
  13. package/cjs/components/Popup/PopupContext.js.map +1 -1
  14. package/cjs/components/Popup/PopupRoot.js +1 -1
  15. package/cjs/components/Popup/PopupRoot.js.map +1 -1
  16. package/cjs/components/Popup/hooks/usePopup.js +3 -6
  17. package/cjs/components/Popup/hooks/usePopup.js.map +1 -1
  18. package/cjs/components/Steps/Steps.css +18 -0
  19. package/cjs/components/Steps/Steps.js +117 -0
  20. package/cjs/components/Steps/Steps.js.map +1 -0
  21. package/cjs/components/Steps/Steps.styles.js +9 -0
  22. package/cjs/components/Steps/Steps.styles.js.map +1 -0
  23. package/cjs/components/Steps/Steps.styles_1xmqxqu.css +1 -0
  24. package/cjs/components/Steps/Steps.tokens.js +82 -0
  25. package/cjs/components/Steps/Steps.tokens.js.map +1 -0
  26. package/cjs/components/Steps/ui/StepItem/StepItem.css +16 -0
  27. package/cjs/components/Steps/ui/StepItem/StepItem.js +116 -0
  28. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  29. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +93 -0
  30. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  31. package/cjs/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  32. package/cjs/components/Steps/utils/getItemStatus.js +27 -0
  33. package/cjs/components/Steps/utils/getItemStatus.js.map +1 -0
  34. package/cjs/components/Steps/variations/_size/base.js +9 -0
  35. package/cjs/components/Steps/variations/_size/base.js.map +1 -0
  36. package/cjs/components/Steps/variations/_size/base_x642ct.css +1 -0
  37. package/cjs/components/Steps/variations/_view/base.js +9 -0
  38. package/cjs/components/Steps/variations/_view/base.js.map +1 -0
  39. package/cjs/components/Steps/variations/_view/base_x642ct.css +1 -0
  40. package/cjs/index.css +15 -4
  41. package/cjs/index.js +5 -0
  42. package/cjs/index.js.map +1 -1
  43. package/emotion/cjs/components/Popup/Popup.js +41 -29
  44. package/emotion/cjs/components/Popup/Popup.styles.js +17 -35
  45. package/emotion/cjs/components/Popup/PopupContext.js +10 -31
  46. package/emotion/cjs/components/Popup/PopupRoot.js +3 -1
  47. package/emotion/cjs/components/Popup/hooks/usePopup.js +3 -6
  48. package/emotion/cjs/components/Steps/Steps.js +129 -0
  49. package/emotion/cjs/components/Steps/Steps.styles.js +9 -0
  50. package/emotion/cjs/components/Steps/Steps.template-doc.mdx +84 -0
  51. package/emotion/cjs/components/Steps/Steps.tokens.js +80 -0
  52. package/emotion/cjs/components/Steps/Steps.types.js +5 -0
  53. package/emotion/cjs/components/Steps/index.js +25 -0
  54. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +126 -0
  55. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +61 -0
  56. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  57. package/emotion/cjs/components/Steps/ui/StepItem/index.js +12 -0
  58. package/emotion/cjs/components/Steps/ui/index.js +16 -0
  59. package/emotion/cjs/components/Steps/utils/getItemStatus.js +26 -0
  60. package/emotion/cjs/components/Steps/variations/_size/base.js +8 -0
  61. package/emotion/cjs/components/Steps/variations/_size/tokens.json +1 -0
  62. package/emotion/cjs/components/Steps/variations/_view/base.js +8 -0
  63. package/emotion/cjs/components/Steps/variations/_view/tokens.json +1 -0
  64. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  65. package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  66. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  67. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.js +11 -0
  68. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +195 -0
  69. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  70. package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  71. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +25 -0
  72. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.js +11 -0
  73. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +195 -0
  74. package/emotion/cjs/index.js +11 -0
  75. package/emotion/es/components/Popup/Popup.js +43 -31
  76. package/emotion/es/components/Popup/Popup.styles.js +16 -34
  77. package/emotion/es/components/Popup/PopupContext.js +11 -32
  78. package/emotion/es/components/Popup/PopupRoot.js +3 -1
  79. package/emotion/es/components/Popup/hooks/usePopup.js +3 -6
  80. package/emotion/es/components/Steps/Steps.js +120 -0
  81. package/emotion/es/components/Steps/Steps.styles.js +3 -0
  82. package/emotion/es/components/Steps/Steps.template-doc.mdx +84 -0
  83. package/emotion/es/components/Steps/Steps.tokens.js +74 -0
  84. package/emotion/es/components/Steps/Steps.types.js +1 -0
  85. package/emotion/es/components/Steps/index.js +2 -0
  86. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +118 -0
  87. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +54 -0
  88. package/emotion/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  89. package/emotion/es/components/Steps/ui/StepItem/index.js +1 -0
  90. package/emotion/es/components/Steps/ui/index.js +1 -0
  91. package/emotion/es/components/Steps/utils/getItemStatus.js +20 -0
  92. package/emotion/es/components/Steps/variations/_size/base.js +2 -0
  93. package/emotion/es/components/Steps/variations/_size/tokens.json +1 -0
  94. package/emotion/es/components/Steps/variations/_view/base.js +2 -0
  95. package/emotion/es/components/Steps/variations/_view/tokens.json +1 -0
  96. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  97. package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  98. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  99. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.js +6 -0
  100. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +195 -0
  101. package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  102. package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  103. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +19 -0
  104. package/emotion/es/examples/plasma_web/components/Steps/Steps.js +6 -0
  105. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +195 -0
  106. package/emotion/es/index.js +1 -0
  107. package/es/components/Drawer/Drawer.css +3 -4
  108. package/es/components/Drawer/Drawer.styles.js +0 -3
  109. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  110. package/es/components/Modal/Modal.css +3 -4
  111. package/es/components/Notification/NotificationsProvider.css +3 -4
  112. package/es/components/Popup/Popup.css +3 -0
  113. package/es/components/Popup/Popup.js +43 -32
  114. package/es/components/Popup/Popup.js.map +1 -1
  115. package/es/components/Popup/Popup.styles.js +28 -54
  116. package/es/components/Popup/Popup.styles.js.map +1 -1
  117. package/es/components/Popup/Popup.styles_141jyqa.css +3 -0
  118. package/es/components/Popup/PopupContext.js +11 -33
  119. package/es/components/Popup/PopupContext.js.map +1 -1
  120. package/es/components/Popup/PopupRoot.js +1 -1
  121. package/es/components/Popup/PopupRoot.js.map +1 -1
  122. package/es/components/Popup/hooks/usePopup.js +3 -6
  123. package/es/components/Popup/hooks/usePopup.js.map +1 -1
  124. package/es/components/Steps/Steps.css +18 -0
  125. package/es/components/Steps/Steps.js +112 -0
  126. package/es/components/Steps/Steps.js.map +1 -0
  127. package/es/components/Steps/Steps.styles.js +5 -0
  128. package/es/components/Steps/Steps.styles.js.map +1 -0
  129. package/es/components/Steps/Steps.styles_1xmqxqu.css +1 -0
  130. package/es/components/Steps/Steps.tokens.js +77 -0
  131. package/es/components/Steps/Steps.tokens.js.map +1 -0
  132. package/es/components/Steps/ui/StepItem/StepItem.css +16 -0
  133. package/es/components/Steps/ui/StepItem/StepItem.js +112 -0
  134. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  135. package/es/components/Steps/ui/StepItem/StepItem.styles.js +81 -0
  136. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  137. package/es/components/Steps/ui/StepItem/StepItem.styles_sp9rcd.css +9 -0
  138. package/es/components/Steps/utils/getItemStatus.js +23 -0
  139. package/es/components/Steps/utils/getItemStatus.js.map +1 -0
  140. package/es/components/Steps/variations/_size/base.js +5 -0
  141. package/es/components/Steps/variations/_size/base.js.map +1 -0
  142. package/es/components/Steps/variations/_size/base_x642ct.css +1 -0
  143. package/es/components/Steps/variations/_view/base.js +5 -0
  144. package/es/components/Steps/variations/_view/base.js.map +1 -0
  145. package/es/components/Steps/variations/_view/base_x642ct.css +1 -0
  146. package/es/index.css +15 -4
  147. package/es/index.js +2 -0
  148. package/es/index.js.map +1 -1
  149. package/package.json +3 -2
  150. package/styled-components/cjs/components/Popup/Popup.js +41 -29
  151. package/styled-components/cjs/components/Popup/Popup.styles.js +14 -23
  152. package/styled-components/cjs/components/Popup/PopupContext.js +10 -31
  153. package/styled-components/cjs/components/Popup/PopupRoot.js +3 -1
  154. package/styled-components/cjs/components/Popup/hooks/usePopup.js +3 -6
  155. package/styled-components/cjs/components/Steps/Steps.js +129 -0
  156. package/styled-components/cjs/components/Steps/Steps.styles.js +9 -0
  157. package/styled-components/cjs/components/Steps/Steps.template-doc.mdx +84 -0
  158. package/styled-components/cjs/components/Steps/Steps.tokens.js +80 -0
  159. package/styled-components/cjs/components/Steps/Steps.types.js +5 -0
  160. package/styled-components/cjs/components/Steps/index.js +25 -0
  161. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +126 -0
  162. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +52 -0
  163. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  164. package/styled-components/cjs/components/Steps/ui/StepItem/index.js +12 -0
  165. package/styled-components/cjs/components/Steps/ui/index.js +16 -0
  166. package/styled-components/cjs/components/Steps/utils/getItemStatus.js +26 -0
  167. package/styled-components/cjs/components/Steps/variations/_size/base.js +8 -0
  168. package/styled-components/cjs/components/Steps/variations/_size/tokens.json +1 -0
  169. package/styled-components/cjs/components/Steps/variations/_view/base.js +8 -0
  170. package/styled-components/cjs/components/Steps/variations/_view/tokens.json +1 -0
  171. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  172. package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  173. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  174. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.js +11 -0
  175. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +195 -0
  176. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  177. package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  178. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +25 -0
  179. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.js +11 -0
  180. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +195 -0
  181. package/styled-components/cjs/index.js +11 -0
  182. package/styled-components/es/components/Popup/Popup.js +43 -31
  183. package/styled-components/es/components/Popup/Popup.styles.js +13 -22
  184. package/styled-components/es/components/Popup/PopupContext.js +11 -32
  185. package/styled-components/es/components/Popup/PopupRoot.js +3 -1
  186. package/styled-components/es/components/Popup/hooks/usePopup.js +3 -6
  187. package/styled-components/es/components/Steps/Steps.js +120 -0
  188. package/styled-components/es/components/Steps/Steps.styles.js +3 -0
  189. package/styled-components/es/components/Steps/Steps.template-doc.mdx +84 -0
  190. package/styled-components/es/components/Steps/Steps.tokens.js +74 -0
  191. package/styled-components/es/components/Steps/Steps.types.js +1 -0
  192. package/styled-components/es/components/Steps/index.js +2 -0
  193. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +118 -0
  194. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +45 -0
  195. package/styled-components/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  196. package/styled-components/es/components/Steps/ui/StepItem/index.js +1 -0
  197. package/styled-components/es/components/Steps/ui/index.js +1 -0
  198. package/styled-components/es/components/Steps/utils/getItemStatus.js +20 -0
  199. package/styled-components/es/components/Steps/variations/_size/base.js +2 -0
  200. package/styled-components/es/components/Steps/variations/_size/tokens.json +1 -0
  201. package/styled-components/es/components/Steps/variations/_view/base.js +2 -0
  202. package/styled-components/es/components/Steps/variations/_view/tokens.json +1 -0
  203. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  204. package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  205. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  206. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.js +6 -0
  207. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +195 -0
  208. package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  209. package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  210. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +19 -0
  211. package/styled-components/es/examples/plasma_web/components/Steps/Steps.js +6 -0
  212. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +195 -0
  213. package/styled-components/es/index.js +1 -0
  214. package/types/components/Popup/Popup.d.ts +1 -1
  215. package/types/components/Popup/Popup.d.ts.map +1 -1
  216. package/types/components/Popup/Popup.styles.d.ts +1 -4
  217. package/types/components/Popup/Popup.styles.d.ts.map +1 -1
  218. package/types/components/Popup/Popup.types.d.ts +0 -3
  219. package/types/components/Popup/Popup.types.d.ts.map +1 -1
  220. package/types/components/Popup/PopupContext.d.ts.map +1 -1
  221. package/types/components/Popup/hooks/usePopup.d.ts +1 -2
  222. package/types/components/Popup/hooks/usePopup.d.ts.map +1 -1
  223. package/types/components/Steps/Steps.d.ts +21 -0
  224. package/types/components/Steps/Steps.d.ts.map +1 -0
  225. package/types/components/Steps/Steps.styles.d.ts +2 -0
  226. package/types/components/Steps/Steps.styles.d.ts.map +1 -0
  227. package/types/components/Steps/Steps.tokens.d.ts +75 -0
  228. package/types/components/Steps/Steps.tokens.d.ts.map +1 -0
  229. package/types/components/Steps/Steps.types.d.ts +63 -0
  230. package/types/components/Steps/Steps.types.d.ts.map +1 -0
  231. package/types/components/Steps/index.d.ts +4 -0
  232. package/types/components/Steps/index.d.ts.map +1 -0
  233. package/types/components/Steps/ui/StepItem/StepItem.d.ts +17 -0
  234. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -0
  235. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +32 -0
  236. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -0
  237. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts +36 -0
  238. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts.map +1 -0
  239. package/types/components/Steps/ui/StepItem/index.d.ts +3 -0
  240. package/types/components/Steps/ui/StepItem/index.d.ts.map +1 -0
  241. package/types/components/Steps/ui/index.d.ts +2 -0
  242. package/types/components/Steps/ui/index.d.ts.map +1 -0
  243. package/types/components/Steps/utils/getItemStatus.d.ts +9 -0
  244. package/types/components/Steps/utils/getItemStatus.d.ts.map +1 -0
  245. package/types/components/Steps/variations/_size/base.d.ts +2 -0
  246. package/types/components/Steps/variations/_size/base.d.ts.map +1 -0
  247. package/types/components/Steps/variations/_view/base.d.ts +2 -0
  248. package/types/components/Steps/variations/_view/base.d.ts.map +1 -0
  249. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts +18 -0
  250. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -0
  251. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts +35 -0
  252. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts.map +1 -0
  253. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts +18 -0
  254. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -0
  255. package/types/examples/plasma_web/components/Steps/Steps.d.ts +35 -0
  256. package/types/examples/plasma_web/components/Steps/Steps.d.ts.map +1 -0
  257. package/types/index.d.ts +1 -0
  258. package/types/index.d.ts.map +1 -1
  259. package/cjs/components/Popup/Popup.styles_1uw5px0.css +0 -4
  260. package/cjs/components/Popup/PopupContext.css +0 -4
  261. package/es/components/Popup/Popup.styles_1uw5px0.css +0 -4
  262. package/es/components/Popup/PopupContext.css +0 -4
@@ -2,27 +2,9 @@ import _styled from "@emotion/styled/base";
2
2
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
3
  import { DEFAULT_Z_INDEX } from './utils';
4
4
  export var StyledPortal = /*#__PURE__*/_styled("div", {
5
- target: "eaqy7mk3",
6
- label: "plasma-new-hope__StyledPortal"
7
- })("position:fixed;top:0;left:0;right:0;bottom:0;z-index:", DEFAULT_Z_INDEX, ";width:", function (_ref) {
8
- var hasContent = _ref.hasContent;
9
- return hasContent ? 'auto' : '0';
10
- }, ";pointer-events:", function (_ref2) {
11
- var hasContent = _ref2.hasContent;
12
- return hasContent ? 'auto' : 'none';
13
- }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUG9wdXAvUG9wdXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUsrRCIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BvcHVwL1BvcHVwLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHR5cGUgeyBQb3B1cFJvb3RDb250YWluZXJQcm9wcyB9IGZyb20gJy4vUG9wdXAudHlwZXMnO1xuaW1wb3J0IHsgREVGQVVMVF9aX0lOREVYIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQb3J0YWwgPSBzdHlsZWQuZGl2PHsgaGFzQ29udGVudDogYm9vbGVhbiB9PmBcbiAgICBwb3NpdGlvbjogZml4ZWQ7XG4gICAgdG9wOiAwO1xuICAgIGxlZnQ6IDA7XG4gICAgcmlnaHQ6IDA7XG4gICAgYm90dG9tOiAwO1xuICAgIHotaW5kZXg6ICR7REVGQVVMVF9aX0lOREVYfTtcblxuICAgIHdpZHRoOiAkeyh7IGhhc0NvbnRlbnQgfSkgPT4gKGhhc0NvbnRlbnQgPyAnYXV0bycgOiAnMCcpfTtcbiAgICBwb2ludGVyLWV2ZW50czogJHsoeyBoYXNDb250ZW50IH0pID0+IChoYXNDb250ZW50ID8gJ2F1dG8nIDogJ25vbmUnKX07XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkUG9ydGFsQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgICB3aWR0aDogMDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFZpZXcgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBtYXgtd2lkdGg6IDEwMCU7XG4gICAgcG9pbnRlci1ldmVudHM6IGFsbDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFJvb3RDb250YWluZXIgPSBzdHlsZWQuZGl2PFBvcHVwUm9vdENvbnRhaW5lclByb3BzPmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgei1pbmRleDogJHsoeyB6SW5kZXggfSkgPT4gekluZGV4IHx8IERFRkFVTFRfWl9JTkRFWH07XG4gICAgbGVmdDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5sZWZ0IHx8ICcnfTtcbiAgICByaWdodDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5yaWdodCB8fCAnJ307XG4gICAgdG9wOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRvcCB8fCAnJ307XG4gICAgYm90dG9tOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLmJvdHRvbSB8fCAnJ307XG4gICAgdHJhbnNmb3JtOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRyYW5zZm9ybSB8fCAnJ307XG5gO1xuIl19 */"));
14
- export var StyledPortalContainer = /*#__PURE__*/_styled("div", {
15
5
  target: "eaqy7mk2",
16
- label: "plasma-new-hope__StyledPortalContainer"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "k2uqvh",
19
- styles: "width:0"
20
- } : {
21
- name: "k2uqvh",
22
- styles: "width:0",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUG9wdXAvUG9wdXAuc3R5bGVzLnRz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mVyID0gc3R5bGVkLmRpdjxQb3B1cFJvb3RDb250YWluZXJQcm9wcz5gXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHotaW5kZXg6ICR7KHsgekluZGV4IH0pID0+IHpJbmRleCB8fCBERUZBVUxUX1pfSU5ERVh9O1xuICAgIGxlZnQ6ICR7KHsgcG9zaXRpb24gfSkgPT4gcG9zaXRpb24ubGVmdCB8fCAnJ307XG4gICAgcmlnaHQ6ICR7KHsgcG9zaXRpb24gfSkgPT4gcG9zaXRpb24ucmlnaHQgfHwgJyd9O1xuICAgIHRvcDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi50b3AgfHwgJyd9O1xuICAgIGJvdHRvbTogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5ib3R0b20gfHwgJyd9O1xuICAgIHRyYW5zZm9ybTogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi50cmFuc2Zvcm0gfHwgJyd9O1xuYDtcbiJdfQ== */",
24
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
- });
6
+ label: "plasma-new-hope__StyledPortal"
7
+ })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUG9wdXAvUG9wdXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtzQyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BvcHVwL1BvcHVwLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHR5cGUgeyBQb3B1cFJvb3RDb250YWluZXJQcm9wcyB9IGZyb20gJy4vUG9wdXAudHlwZXMnO1xuaW1wb3J0IHsgREVGQVVMVF9aX0lOREVYIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQb3J0YWwgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFZpZXcgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBtYXgtd2lkdGg6IDEwMCU7XG4gICAgcG9pbnRlci1ldmVudHM6IGFsbDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFJvb3RDb250YWluZXIgPSBzdHlsZWQuZGl2PFBvcHVwUm9vdENvbnRhaW5lclByb3BzPmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgei1pbmRleDogJHsoeyB6SW5kZXggfSkgPT4gekluZGV4IHx8IERFRkFVTFRfWl9JTkRFWH07XG4gICAgbGVmdDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5sZWZ0IHx8ICcnfTtcbiAgICByaWdodDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5yaWdodCB8fCAnJ307XG4gICAgdG9wOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRvcCB8fCAnJ307XG4gICAgYm90dG9tOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLmJvdHRvbSB8fCAnJ307XG4gICAgdHJhbnNmb3JtOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRyYW5zZm9ybSB8fCAnJ307XG5gO1xuIl19 */");
26
8
  export var PopupView = /*#__PURE__*/_styled("div", {
27
9
  target: "eaqy7mk1",
28
10
  label: "plasma-new-hope__PopupView"
@@ -32,28 +14,28 @@ export var PopupView = /*#__PURE__*/_styled("div", {
32
14
  } : {
33
15
  name: "1m82nn4",
34
16
  styles: "position:relative;max-width:100%;pointer-events:all",
35
- map: "/*# sourceMappingURL=data:application/json;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YWluZXJQcm9wcyB9IGZyb20gJy4vUG9wdXAudHlwZXMnO1xuaW1wb3J0IHsgREVGQVVMVF9aX0lOREVYIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQb3J0YWwgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFZpZXcgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBtYXgtd2lkdGg6IDEwMCU7XG4gICAgcG9pbnRlci1ldmVudHM6IGFsbDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFJvb3RDb250YWluZXIgPSBzdHlsZWQuZGl2PFBvcHVwUm9vdENvbnRhaW5lclByb3BzPmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgei1pbmRleDogJHsoeyB6SW5kZXggfSkgPT4gekluZGV4IHx8IERFRkFVTFRfWl9JTkRFWH07XG4gICAgbGVmdDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5sZWZ0IHx8ICcnfTtcbiAgICByaWdodDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5yaWdodCB8fCAnJ307XG4gICAgdG9wOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRvcCB8fCAnJ307XG4gICAgYm90dG9tOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLmJvdHRvbSB8fCAnJ307XG4gICAgdHJhbnNmb3JtOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRyYW5zZm9ybSB8fCAnJ307XG5gO1xuIl19 */",
36
18
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
37
19
  });
38
20
  export var PopupRootContainer = /*#__PURE__*/_styled("div", {
39
21
  target: "eaqy7mk0",
40
22
  label: "plasma-new-hope__PopupRootContainer"
41
- })("position:absolute;z-index:", function (_ref3) {
42
- var zIndex = _ref3.zIndex;
23
+ })("position:absolute;z-index:", function (_ref) {
24
+ var zIndex = _ref.zIndex;
43
25
  return zIndex || DEFAULT_Z_INDEX;
44
- }, ";left:", function (_ref4) {
45
- var position = _ref4.position;
26
+ }, ";left:", function (_ref2) {
27
+ var position = _ref2.position;
46
28
  return position.left || '';
47
- }, ";right:", function (_ref5) {
48
- var position = _ref5.position;
29
+ }, ";right:", function (_ref3) {
30
+ var position = _ref3.position;
49
31
  return position.right || '';
50
- }, ";top:", function (_ref6) {
51
- var position = _ref6.position;
32
+ }, ";top:", function (_ref4) {
33
+ var position = _ref4.position;
52
34
  return position.top || '';
53
- }, ";bottom:", function (_ref7) {
54
- var position = _ref7.position;
35
+ }, ";bottom:", function (_ref5) {
36
+ var position = _ref5.position;
55
37
  return position.bottom || '';
56
- }, ";transform:", function (_ref8) {
57
- var position = _ref8.position;
38
+ }, ";transform:", function (_ref6) {
39
+ var position = _ref6.position;
58
40
  return position.transform || '';
59
- }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUG9wdXAvUG9wdXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCcUUiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Qb3B1cC9Qb3B1cC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB0eXBlIHsgUG9wdXBSb290Q29udGFpbmVyUHJvcHMgfSBmcm9tICcuL1BvcHVwLnR5cGVzJztcbmltcG9ydCB7IERFRkFVTFRfWl9JTkRFWCB9IGZyb20gJy4vdXRpbHMnO1xuXG5leHBvcnQgY29uc3Qg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AgIGJvdHRvbTogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5ib3R0b20gfHwgJyd9O1xuICAgIHRyYW5zZm9ybTogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi50cmFuc2Zvcm0gfHwgJyd9O1xuYDtcbiJdfQ== */"));
41
+ }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUG9wdXAvUG9wdXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFxRSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BvcHVwL1BvcHVwLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHR5cGUgeyBQb3B1cFJvb3RDb250YWluZXJQcm9wcyB9IGZyb20gJy4vUG9wdXAudHlwZXMnO1xuaW1wb3J0IHsgREVGQVVMVF9aX0lOREVYIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQb3J0YWwgPSBzdHlsZWQuZGl2YGA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFZpZXcgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBtYXgtd2lkdGg6IDEwMCU7XG4gICAgcG9pbnRlci1ldmVudHM6IGFsbDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQb3B1cFJvb3RDb250YWluZXIgPSBzdHlsZWQuZGl2PFBvcHVwUm9vdENvbnRhaW5lclByb3BzPmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgei1pbmRleDogJHsoeyB6SW5kZXggfSkgPT4gekluZGV4IHx8IERFRkFVTFRfWl9JTkRFWH07XG4gICAgbGVmdDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5sZWZ0IHx8ICcnfTtcbiAgICByaWdodDogJHsoeyBwb3NpdGlvbiB9KSA9PiBwb3NpdGlvbi5yaWdodCB8fCAnJ307XG4gICAgdG9wOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRvcCB8fCAnJ307XG4gICAgYm90dG9tOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLmJvdHRvbSB8fCAnJ307XG4gICAgdHJhbnNmb3JtOiAkeyh7IHBvc2l0aW9uIH0pID0+IHBvc2l0aW9uLnRyYW5zZm9ybSB8fCAnJ307XG5gO1xuIl19 */"));
@@ -8,21 +8,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { createContext, useState, useContext, useRef } from 'react';
11
+ import React, { createContext, useEffect, useState, useContext, useRef } from 'react';
12
12
  import { hasModals } from '../Modal/ModalContext';
13
- import { canUseDOM, safeUseId } from '../../utils';
14
- import { Portal } from '../Portal';
15
- import { StyledPortal } from './Popup.styles';
16
13
  export var POPUP_PORTAL_ID = 'plasma-popup-root';
17
14
  var items = [];
18
15
  var PopupContext = /*#__PURE__*/createContext({
19
16
  items: items,
20
- rootId: POPUP_PORTAL_ID,
21
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
22
17
  register: function register(_info) {
23
18
  throw new Error('Function not implemented. Add PopupProvider');
24
19
  },
25
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
20
  unregister: function unregister(_id) {
27
21
  throw new Error('Function not implemented. Add PopupProvider');
28
22
  }
@@ -32,46 +26,29 @@ export var usePopupContext = function usePopupContext() {
32
26
  };
33
27
  export var PopupProvider = function PopupProvider(_ref) {
34
28
  var children = _ref.children;
35
- var globalItemsCount = useRef(0);
36
- var prevBodyOverflowY = useRef(canUseDOM ? document.body.style.overflowY : '');
37
- // eslint-disable-next-line no-shadow
29
+ var prevBodyOverflowY = useRef(typeof document !== 'undefined' ? document.body.style.overflowY : '');
38
30
  var _useState = useState([]),
39
31
  _useState2 = _slicedToArray(_useState, 2),
40
32
  items = _useState2[0],
41
33
  setItems = _useState2[1];
42
- var uuid = safeUseId();
43
- var rootId = "".concat(POPUP_PORTAL_ID, "-").concat(uuid);
44
34
  var register = function register(info) {
45
- if (!canUseDOM) {
46
- return;
47
- }
48
35
  setItems(function (prevItems) {
49
36
  var _info$info;
50
37
  if ((_info$info = info.info) !== null && _info$info !== void 0 && _info$info.isModal && !hasModals(prevItems)) {
51
38
  prevBodyOverflowY.current = document.body.style.overflowY;
52
39
  document.body.style.overflowY = 'hidden';
53
40
  }
54
- if (info.isGlobalPopup) {
55
- globalItemsCount.current += 1;
56
- }
57
41
  return [].concat(_toConsumableArray(prevItems), [info]);
58
42
  });
59
43
  };
60
44
  var unregister = function unregister(id) {
61
- if (!canUseDOM) {
62
- return;
63
- }
64
45
  setItems(function (prevItems) {
65
- var _prevItems$index;
66
46
  var index = prevItems.findIndex(function (item) {
67
47
  return id === item.id;
68
48
  });
69
49
  if (index === -1) {
70
50
  return prevItems;
71
51
  }
72
- if (prevItems !== null && prevItems !== void 0 && (_prevItems$index = prevItems[index]) !== null && _prevItems$index !== void 0 && _prevItems$index.isGlobalPopup) {
73
- globalItemsCount.current -= 1;
74
- }
75
52
  var prevHasModals = hasModals(prevItems);
76
53
  prevItems.splice(index, 1);
77
54
  if (prevHasModals && !hasModals(prevItems)) {
@@ -84,16 +61,18 @@ export var PopupProvider = function PopupProvider(_ref) {
84
61
  };
85
62
  var context = {
86
63
  items: items,
87
- rootId: rootId,
88
64
  register: register,
89
65
  unregister: unregister
90
66
  };
67
+ useEffect(function () {
68
+ return function () {
69
+ var portal = document.createElement('div');
70
+ if (portal && document.body.contains(portal)) {
71
+ document.body.removeChild(portal);
72
+ }
73
+ };
74
+ }, []);
91
75
  return /*#__PURE__*/React.createElement(PopupContext.Provider, {
92
76
  value: context
93
- }, children, /*#__PURE__*/React.createElement(Portal, {
94
- container: document.body
95
- }, /*#__PURE__*/React.createElement(StyledPortal, {
96
- id: rootId,
97
- hasContent: globalItemsCount.current > 0
98
- })));
77
+ }, children);
99
78
  };
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "placement", "offset", "setVisible", "children", "role", "zIndex", "animationInfo"];
1
+ var _excluded = ["id", "placement", "offset", "frame", "setVisible", "children", "role", "zIndex", "animationInfo", "className"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -16,11 +16,13 @@ export var PopupRoot = /*#__PURE__*/forwardRef(function (_ref, ref) {
16
16
  var id = _ref.id,
17
17
  placement = _ref.placement,
18
18
  offset = _ref.offset,
19
+ frame = _ref.frame,
19
20
  setVisible = _ref.setVisible,
20
21
  children = _ref.children,
21
22
  role = _ref.role,
22
23
  zIndex = _ref.zIndex,
23
24
  animationInfo = _ref.animationInfo,
25
+ className = _ref.className,
24
26
  rest = _objectWithoutProperties(_ref, _excluded);
25
27
  var contentRef = useRef(null);
26
28
  var innerRef = useForkRef(contentRef, ref);
@@ -13,7 +13,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { useEffect, useState } from 'react';
14
14
  import { usePopupContext } from '../PopupContext';
15
15
 
16
- // Хук для подключения анимации
16
+ // Хук для поключения анимации
17
17
  var usePopupAnimation = function usePopupAnimation() {
18
18
  var _useState = useState(false),
19
19
  _useState2 = _slicedToArray(_useState, 2),
@@ -35,7 +35,6 @@ var usePopupAnimation = function usePopupAnimation() {
35
35
  export var usePopup = function usePopup(_ref) {
36
36
  var isOpen = _ref.isOpen,
37
37
  id = _ref.id,
38
- isGlobalPopup = _ref.isGlobalPopup,
39
38
  popupInfo = _ref.popupInfo,
40
39
  withAnimation = _ref.withAnimation;
41
40
  var _useState5 = useState(false),
@@ -57,8 +56,7 @@ export var usePopup = function usePopup(_ref) {
57
56
  // при первом открытии
58
57
  if (isOpen && !isVisible) {
59
58
  popupController.register(_objectSpread({
60
- id: id,
61
- isGlobalPopup: isGlobalPopup
59
+ id: id
62
60
  }, popupInfo));
63
61
  setVisible(true);
64
62
  animationInfo.setEndAnimation(false);
@@ -87,7 +85,6 @@ export var usePopup = function usePopup(_ref) {
87
85
  isVisible: isVisible,
88
86
  setVisible: setVisible,
89
87
  animationInfo: animationInfo,
90
- withAnimation: withAnimation,
91
- rootId: popupController.rootId
88
+ withAnimation: withAnimation
92
89
  };
93
90
  };
@@ -0,0 +1,120 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["view", "size", "orientation", "contentAlign", "hasLine", "hasContent", "hasLoader", "items", "onChange", "current", "status"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+ import React, { forwardRef, useState, useEffect } from 'react';
16
+ import cls from 'classnames';
17
+ import { classes } from './Steps.tokens';
18
+ import { StepItem } from './ui';
19
+ import { base } from './Steps.styles';
20
+ import { base as sizeCSS } from './variations/_size/base';
21
+ import { base as viewCSS } from './variations/_view/base';
22
+ import { getItemStatus } from './utils/getItemStatus';
23
+ export var stepsRoot = function stepsRoot(Root) {
24
+ return /*#__PURE__*/forwardRef(function (props, outerRef) {
25
+ var _props$view = props.view,
26
+ view = _props$view === void 0 ? 'default' : _props$view,
27
+ size = props.size,
28
+ _props$orientation = props.orientation,
29
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
30
+ _props$contentAlign = props.contentAlign,
31
+ contentAlign = _props$contentAlign === void 0 ? 'left' : _props$contentAlign,
32
+ _props$hasLine = props.hasLine,
33
+ hasLine = _props$hasLine === void 0 ? true : _props$hasLine,
34
+ _props$hasContent = props.hasContent,
35
+ hasContent = _props$hasContent === void 0 ? 'all' : _props$hasContent,
36
+ hasLoader = props.hasLoader,
37
+ _props$items = props.items,
38
+ items = _props$items === void 0 ? [] : _props$items,
39
+ onChange = props.onChange,
40
+ current = props.current,
41
+ status = props.status,
42
+ rest = _objectWithoutProperties(props, _excluded);
43
+ var _useState = useState(),
44
+ _useState2 = _slicedToArray(_useState, 2),
45
+ prevIndex = _useState2[0],
46
+ setPrevIndex = _useState2[1];
47
+ var isUncontrolled = current !== undefined;
48
+ var hasIndicator = items.some(function (item) {
49
+ return item.indicator != null;
50
+ });
51
+ var isSimple = items.every(function (item) {
52
+ return !item.title && !item.content;
53
+ });
54
+ useEffect(function () {
55
+ var calcPrevIndex = function calcPrevIndex() {
56
+ if (current !== undefined) {
57
+ setPrevIndex(current);
58
+ } else {
59
+ var index = items.findIndex(function (item) {
60
+ return item.status === 'active';
61
+ });
62
+ setPrevIndex(index !== -1 ? index : undefined);
63
+ }
64
+ };
65
+ calcPrevIndex();
66
+ return function () {
67
+ calcPrevIndex();
68
+ };
69
+ }, [current, items]);
70
+ return /*#__PURE__*/React.createElement(Root, _extends({
71
+ size: size,
72
+ view: view,
73
+ ref: outerRef,
74
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, orientation === 'vertical'), classes.simple, isSimple), classes.hasIndicator, hasIndicator))
75
+ }, rest), items.map(function (item, index) {
76
+ var itemStatus = getItemStatus({
77
+ isUncontrolled: isUncontrolled,
78
+ current: current,
79
+ status: status,
80
+ index: index,
81
+ item: item
82
+ });
83
+ var isActive = itemStatus === 'active';
84
+ var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
85
+ var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
86
+ var onClick = onChange ? function () {
87
+ return onChange(item, index, prevIndex);
88
+ } : undefined;
89
+ return /*#__PURE__*/React.createElement(StepItem, {
90
+ key: index,
91
+ index: index,
92
+ title: item.title,
93
+ content: itemContent,
94
+ indicator: item.indicator,
95
+ status: itemStatus,
96
+ size: size,
97
+ orientation: orientation,
98
+ contentAlign: itemContentAlign,
99
+ hasLine: hasLine,
100
+ hasLoader: hasLoader && isActive,
101
+ onClick: onClick,
102
+ items: items
103
+ });
104
+ }));
105
+ });
106
+ };
107
+ export var stepsConfig = {
108
+ name: 'Steps',
109
+ tag: 'div',
110
+ layout: stepsRoot,
111
+ base: base,
112
+ variations: {
113
+ size: sizeCSS,
114
+ view: viewCSS
115
+ },
116
+ defaults: {
117
+ view: 'default',
118
+ size: 'm'
119
+ }
120
+ };
@@ -0,0 +1,3 @@
1
+ import { css } from '@emotion/react';
2
+ import { classes, tokens } from './Steps.tokens';
3
+ export var base = /*#__PURE__*/css("display:flex;flex-direction:row;&.", classes.simple, "{align-items:center;&:not(&.", classes.verticalOrientation, "){&.", classes.hasIndicator, "{height:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){height:var(", tokens.activeBulletSize, ");}}&.", classes.verticalOrientation, "{&.", classes.hasIndicator, "{width:var(", tokens.activeIndicatorSize, ");}&:not(.", classes.hasIndicator, "){width:var(", tokens.activeBulletSize, ");}}}&.", classes.verticalOrientation, "{display:flex;flex-direction:column;justify-content:center;height:100%;&.", classes.simple, "{display:inline-flex;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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gICAgICAgICAgICB3aWR0aDogdmFyKCR7dG9rZW5zLmFjdGl2ZUluZGljYXRvclNpemV9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICY6bm90KC4ke2NsYXNzZXMuaGFzSW5kaWNhdG9yfSkge1xuICAgICAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuYWN0aXZlQnVsbGV0U2l6ZX0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLnNpbXBsZX0ge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
@@ -0,0 +1,84 @@
1
+ ---
2
+ id: steps
3
+ title: Steps
4
+ ---
5
+
6
+ import { PropsTable, Description } from '@site/src/components';
7
+
8
+ # Steps
9
+
10
+ <Description name="Steps" />
11
+ <PropsTable name="Steps" />
12
+
13
+ ## Вариант использования с управлением текущим элементом из вне
14
+
15
+ ```tsx live
16
+ import React, { useState } from 'react';
17
+ import { Steps, Button } from '@salutejs/{{ package }}';
18
+
19
+ export function App() {
20
+ const items = [{
21
+ indicator: 1,
22
+ }, {
23
+ indicator: 2,
24
+ }, {
25
+ indicator: 3,
26
+ }];
27
+
28
+ const [current, setCurrent] = useState<number>(0);
29
+ const onClick = () => setCurrent(() => current + 1);
30
+
31
+ return (
32
+ <section>
33
+ <Steps items={items}
34
+ current={current}
35
+ />
36
+ <br />
37
+ <Button view="secondary" onClick={onClick}>
38
+ Next
39
+ </Button>
40
+ </section>
41
+ );
42
+ }
43
+ ```
44
+
45
+ ## Вариант более гибкого использования через onChange и status в items
46
+
47
+ ```tsx live
48
+ import React, { useState } from 'react';
49
+ import { Steps, StepItemProps } from '@salutejs/{{ package }}';
50
+
51
+ export function App() {
52
+ const initialItems = [{
53
+ indicator: 1,
54
+ title: 'Title',
55
+ content: 'Content',
56
+ }, {
57
+ indicator: 2,
58
+ title: 'Title',
59
+ content: 'Content',
60
+ }, {
61
+ indicator: 3,
62
+ title: 'Title',
63
+ content: 'Content',
64
+ }];
65
+
66
+ const [items, setItems] = useState(initialItems);
67
+
68
+ const onChange = (item: StepItemProps, index: number, prevIndex: number) => {
69
+ if (prevIndex !== undefined) {
70
+ items[prevIndex].status = 'completed';
71
+ }
72
+
73
+ items[index].status = 'active';
74
+
75
+ setItems([...items]);
76
+ };
77
+
78
+ return (
79
+ <section>
80
+ <Steps items={items} onChange={onChange} />
81
+ </section>
82
+ );
83
+ }
84
+ ```
@@ -0,0 +1,74 @@
1
+ export var classes = {
2
+ simple: 'simple',
3
+ centered: 'item-centered',
4
+ active: 'item-active',
5
+ inactive: 'item-inactive',
6
+ clickable: 'item-clickable',
7
+ hovered: 'item-hovered',
8
+ disabled: 'item-disabled',
9
+ verticalOrientation: 'vertical-orientation',
10
+ hasIndicator: 'item-has-indicator',
11
+ activeItem: 'item-active',
12
+ indentDivider: 'indent-divider',
13
+ transparentDivider: 'transparent-divider'
14
+ };
15
+ export var tokens = {
16
+ indicatorSize: '--plasma-step-item-indicator-size',
17
+ activeIndicatorSize: '--plasma-step-item-active-indicator-size',
18
+ bulletSize: '--plasma-step-item-bullet-size',
19
+ activeBulletSize: '--plasma-step-item-active-bullet-size',
20
+ titlePaddingTop: '--plasma-step-item-title-padding-top',
21
+ contentPaddingTop: '--plasma-step-item-content-padding-top',
22
+ contentPaddingRight: '--plasma-step-item-content-padding-right',
23
+ contentSidePadding: '--plasma-step-item-content-side-padding',
24
+ contentVerticalPadding: '--plasma-step-item-content-vertical-padding',
25
+ verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',
26
+ smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',
27
+ largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',
28
+ smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',
29
+ largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',
30
+ titleFontFamily: '--plasma-step-item-title-font-family',
31
+ titleFontSize: '--plasma-step-item-title-font-size',
32
+ titleFontStyle: '--plasma-step-item-title-font-style',
33
+ titleFontWeight: '--plasma-step-item-title-font-weight',
34
+ titleLetterSpacing: '--plasma-step-item-title-letter-spacing',
35
+ titleLineHeight: '--plasma-step-item-title-line-height',
36
+ contentFontFamily: '--plasma-step-item-content-font-family',
37
+ contentFontSize: '--plasma-step-item-content-font-size',
38
+ contentFontStyle: '--plasma-step-item-content-font-style',
39
+ contentFontWeight: '--plasma-step-item-content-font-weight',
40
+ contentLetterSpacing: '--plasma-step-item-content-letter-spacing',
41
+ contentLineHeight: '--plasma-step-item-content-line-height',
42
+ indicatorFontFamily: '--plasma-step-item-indicator-font-family',
43
+ indicatorFontSize: '--plasma-step-item-indicator-font-size',
44
+ indicatorFontStyle: '--plasma-step-item-indicator-font-style',
45
+ indicatorFontWeight: '--plasma-step-item-indicator-font-weight',
46
+ indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',
47
+ indicatorLineHeight: '--plasma-step-item-indicator-line-height',
48
+ activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',
49
+ activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',
50
+ activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',
51
+ activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',
52
+ activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',
53
+ activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',
54
+ activeTitleColor: '--plasma-step-item-active-title-color',
55
+ activeTitleColorHover: '--plasma-step-item-active-title-color-hover',
56
+ inactiveTitleColor: '--plasma-step-item-inactive-title-color',
57
+ inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',
58
+ contentColor: '--plasma-step-item-content-color',
59
+ activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
60
+ activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
61
+ activeIndicatorColor: '--plasma-step-item-active-indicator-color',
62
+ activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',
63
+ activeIndicatorBackground: '--plasma-step-item-active-indicator-background',
64
+ completedIndicatorColor: '--plasma-step-item-completed-indicator-color',
65
+ completedIndicatorColorHover: '--plasma-step-item-completed-indicator-color-hover',
66
+ completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',
67
+ completedIndicatorBackgroundHover: '--plasma-step-item-completed-indicator-background-hover',
68
+ inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',
69
+ inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',
70
+ inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',
71
+ inactiveIndicatorBackgroundHover: '--plasma-step-item-inactive-indicator-background-hover',
72
+ disabledOpacity: '--plasma-step-item-disabled-opacity',
73
+ dividerThickness: '--plasma-step-item-divider-thickness'
74
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { stepsConfig, stepsRoot } from './Steps';
2
+ export { tokens as stepsTokens } from './Steps.tokens';