@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
@@ -0,0 +1,118 @@
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
+ 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; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4
+ 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); }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ 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."); }
7
+ 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); }
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
+ 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
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useState, useEffect } from 'react';
12
+ import cls from 'classnames';
13
+ import { classes, tokens } from '../../Steps.tokens';
14
+ import { Bullet, BulletIndicator, BulletIndicatorWrapper, StepItemContent, StepItemContentWrapper, StepItemDivider, StepItemStyled, StepItemTitle, SpinnerStyled } from './StepItem.styles';
15
+
16
+ // todo попробовать заменить через baseline выравнивание
17
+ var indicatorSizesIndentsMap = {
18
+ 8: /*#__PURE__*/"var(".concat(tokens.smallBulletIndentHeight, ")"),
19
+ 16: /*#__PURE__*/"var(".concat(tokens.largeBulletIndentHeight, ")"),
20
+ 24: /*#__PURE__*/"var(".concat(tokens.smallIndicatorIndentHeight, ")"),
21
+ 36: /*#__PURE__*/"var(".concat(tokens.largeIndicatorIndentHeight, ")")
22
+ };
23
+ export var StepItem = function StepItem(_ref) {
24
+ var index = _ref.index,
25
+ title = _ref.title,
26
+ content = _ref.content,
27
+ indicator = _ref.indicator,
28
+ _ref$status = _ref.status,
29
+ status = _ref$status === void 0 ? 'inactive' : _ref$status,
30
+ size = _ref.size,
31
+ orientation = _ref.orientation,
32
+ contentAlign = _ref.contentAlign,
33
+ hasLine = _ref.hasLine,
34
+ hasLoader = _ref.hasLoader,
35
+ onClick = _ref.onClick,
36
+ items = _ref.items;
37
+ var _useState = useState(false),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ isHovered = _useState2[0],
40
+ setIsHovered = _useState2[1];
41
+ var isFirst = index === 0;
42
+ var isLast = index === items.length - 1;
43
+ var prevItem = items[index - 1];
44
+ var nextItem = items[index + 1];
45
+ var isActive = status === 'active';
46
+ var isInactive = status === 'inactive';
47
+ var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
48
+ var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
49
+ var hasIndicator = indicator != null;
50
+ var BulletNode = hasIndicator ? BulletIndicator : Bullet;
51
+ var item = items[index];
52
+ var isSimple = !title && !content;
53
+ var clickable = Boolean(onClick);
54
+ var isVertical = orientation === 'vertical';
55
+ var isCentered = contentAlign === 'center';
56
+ var isDisabled = item.disabled;
57
+ var onClickHandler = onClick && !isDisabled ? function () {
58
+ return onClick(item, index);
59
+ } : undefined;
60
+ var resultIndicatorSize;
61
+ if (hasIndicator) {
62
+ resultIndicatorSize = isActive ? 36 : 24;
63
+ } else {
64
+ resultIndicatorSize = isActive ? 16 : 8;
65
+ }
66
+ var indentToken = indicatorSizesIndentsMap[resultIndicatorSize];
67
+
68
+ // todo заменить на callback с условиями внутри
69
+ var onMouseOver = clickable && !isDisabled ? function () {
70
+ if (isDisabled) {
71
+ setIsHovered(false);
72
+ }
73
+ setIsHovered(true);
74
+ } : undefined;
75
+ var onMouseOut = clickable && !isDisabled ? function () {
76
+ setIsHovered(false);
77
+ } : undefined;
78
+ useEffect(function () {
79
+ if (isDisabled) {
80
+ setIsHovered(false);
81
+ }
82
+ }, [isDisabled]);
83
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
84
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered && !isActive), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable && !isActive), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical))
85
+ }, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
86
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
87
+ onClick: onClickHandler,
88
+ onFocus: onMouseOver,
89
+ onBlur: onMouseOut,
90
+ onMouseOver: onMouseOver,
91
+ onMouseOut: onMouseOut
92
+ }, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
93
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive))
94
+ }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/React.createElement(StepItemDivider, {
95
+ className: cls(classes.indentDivider, _defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive)),
96
+ indentToken: indentToken
97
+ }), hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
98
+ hasIndicator: hasIndicator
99
+ }), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
100
+ className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive))
101
+ }, typeof indicator === 'function' && indicator({
102
+ status: status,
103
+ item: item,
104
+ size: size
105
+ }), typeof indicator !== 'function' && indicator), !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
106
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isLast), classes.inactive, isInactive || isNextInactive))
107
+ })), !isSimple && /*#__PURE__*/React.createElement(StepItemContentWrapper, {
108
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.active, isActive), classes.hasIndicator, hasIndicator))
109
+ }, /*#__PURE__*/React.createElement(StepItemTitle, {
110
+ onClick: onClickHandler,
111
+ onFocus: onMouseOver,
112
+ onBlur: onMouseOut,
113
+ onMouseOver: onMouseOver,
114
+ onMouseOut: onMouseOut
115
+ }, title), content && /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' ? content(status, index, items) : content))), isSimple && !isLast && /*#__PURE__*/React.createElement(StepItemDivider, {
116
+ className: cls(classes.simple, _defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.transparentDivider, !hasLine), classes.inactive, isInactive || isNextInactive))
117
+ }));
118
+ };
@@ -0,0 +1,45 @@
1
+ import styled from 'styled-components';
2
+ import { classes, tokens } from '../../Steps.tokens';
3
+ import { component, mergeConfig } from '../../../../engines';
4
+ import { spinnerConfig, spinnerTokens } from '../../../Spinner';
5
+ var mergedConfig = /*#__PURE__*/mergeConfig(spinnerConfig);
6
+ var Spinner = /*#__PURE__*/component(mergedConfig);
7
+ export var SpinnerStyled = /*#__PURE__*/styled(Spinner).withConfig({
8
+ componentId: "plasma-new-hope__sc-bjma6z-0"
9
+ })(["", ":", ";", ":var(", ");"], spinnerTokens.size, function (_ref) {
10
+ var hasIndicator = _ref.hasIndicator;
11
+ return hasIndicator ? "var(".concat(tokens.activeIndicatorSize, ")") : "var(".concat(tokens.activeBulletSize, ")");
12
+ }, spinnerTokens.color, tokens.activeIndicatorColor);
13
+ export var StepItemTitle = /*#__PURE__*/styled.div.withConfig({
14
+ componentId: "plasma-new-hope__sc-bjma6z-1"
15
+ })(["padding-top:var(", ");padding-right:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");word-break:break-word;"], tokens.titlePaddingTop, tokens.contentSidePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight);
16
+ export var StepItemContent = /*#__PURE__*/styled.div.withConfig({
17
+ componentId: "plasma-new-hope__sc-bjma6z-2"
18
+ })(["padding-top:var(", ");padding-right:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");word-break:break-word;color:var(", ");"], tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.contentColor);
19
+ export var BulletIndicatorWrapper = /*#__PURE__*/styled.div.withConfig({
20
+ componentId: "plasma-new-hope__sc-bjma6z-3"
21
+ })(["display:flex;align-items:center;&:not(.", "){flex:0;&.", "{width:100%;min-height:var(", ");}&:not(.", "){width:100%;min-height:var(", ");}&.", "{padding-right:var(", ");}}&.", "{flex-direction:column;align-items:center;justify-content:center;min-height:100%;&.", "{min-width:var(", ");}&:not(.", "){min-width:var(", ");}}&.", "{justify-content:center;}"], classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, tokens.verticalContentPaddingLeft, classes.verticalOrientation, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.centered);
22
+ export var BulletIndicator = /*#__PURE__*/styled.div.withConfig({
23
+ componentId: "plasma-new-hope__sc-bjma6z-4"
24
+ })(["display:flex;align-items:center;justify-content:center;width:var(", ");height:var(", ");border-radius:50%;box-sizing:border-box;position:relative;color:var(", ");background-color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");background:var(", ");}&.", "{color:var(", ");background:var(", ");&:before,&:after{background:var(", ");}}"], tokens.indicatorSize, tokens.indicatorSize, tokens.completedIndicatorColor, tokens.completedIndicatorBackground, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, classes.active, tokens.activeIndicatorSize, tokens.activeIndicatorSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, classes.inactive, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackground);
25
+ export var Bullet = /*#__PURE__*/styled(BulletIndicator).withConfig({
26
+ componentId: "plasma-new-hope__sc-bjma6z-5"
27
+ })(["width:var(", ");height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");background-color:var(", ");}"], tokens.bulletSize, tokens.bulletSize, classes.active, tokens.activeBulletSize, tokens.activeBulletSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorBackground);
28
+ export var StepItemDivider = /*#__PURE__*/styled.div.withConfig({
29
+ componentId: "plasma-new-hope__sc-bjma6z-6"
30
+ })(["width:100%;height:var(", ");flex:1;background-color:var(", ");&.", "{background-color:var(", ");}&.", "{background-color:transparent;}&.", "{width:var(", ");height:100%;}&.", "{height:", ";min-height:", ";max-height:", ";&.", "{height:auto;max-height:none;}}"], tokens.dividerThickness, tokens.activeIndicatorColor, classes.inactive, tokens.inactiveIndicatorBackground, classes.transparentDivider, classes.verticalOrientation, tokens.dividerThickness, classes.indentDivider, function (_ref2) {
31
+ var indentToken = _ref2.indentToken;
32
+ return indentToken || '';
33
+ }, function (_ref3) {
34
+ var indentToken = _ref3.indentToken;
35
+ return indentToken || '';
36
+ }, function (_ref4) {
37
+ var indentToken = _ref4.indentToken;
38
+ return indentToken || '';
39
+ }, classes.simple);
40
+ export var StepItemContentWrapper = /*#__PURE__*/styled.div.withConfig({
41
+ componentId: "plasma-new-hope__sc-bjma6z-7"
42
+ })(["&.", "{", "{padding-top:var(", ");padding-right:0;}", "{padding-top:var(", ");padding-bottom:var(", ");padding-right:0;}}"], classes.verticalOrientation, StepItemTitle, tokens.contentVerticalPadding, StepItemContent, tokens.contentVerticalPadding, tokens.contentVerticalPadding);
43
+ export var StepItemStyled = /*#__PURE__*/styled.div.withConfig({
44
+ componentId: "plasma-new-hope__sc-bjma6z-8"
45
+ })(["display:flex;flex-direction:column;align-items:flex-start;flex:1;&.", "{flex-direction:row;align-items:stretch;", "{width:var(", ");height:100%;}}&.", "{", "{color:var(", ");}}&.", "{", "{color:var(", ");}}&.", "{&:not(.", "){", "{cursor:pointer;color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}&.", "{", "{color:var(", ");}", ",", "{color:var(", ");background:var(", ");}}", "{cursor:pointer;}}&.", "{align-items:center;", "{display:flex;flex-direction:column;align-items:center;padding-left:calc(var(", ") / 2);padding-right:calc(var(", ") / 2);", "{width:100%;}", ",", "{padding-right:0;text-align:center;}}}&.", "{flex:0;}&.", "{opacity:var(", ");}"], classes.verticalOrientation, StepItemDivider, tokens.dividerThickness, classes.active, StepItemTitle, tokens.activeTitleColor, classes.inactive, StepItemTitle, tokens.inactiveTitleColor, classes.hovered, classes.active, StepItemTitle, tokens.activeTitleColorHover, BulletIndicator, Bullet, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackgroundHover, classes.inactive, StepItemTitle, tokens.inactiveTitleColorHover, BulletIndicator, Bullet, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackgroundHover, BulletIndicatorWrapper, classes.centered, StepItemContentWrapper, tokens.contentSidePadding, tokens.contentSidePadding, StepItemTitle, StepItemTitle, StepItemContent, classes.simple, classes.disabled, tokens.disabledOpacity);
@@ -0,0 +1 @@
1
+ export { StepItem } from './StepItem';
@@ -0,0 +1 @@
1
+ export * from './StepItem';
@@ -0,0 +1,20 @@
1
+ export var getItemStatus = function getItemStatus(_ref) {
2
+ var isUncontrolled = _ref.isUncontrolled,
3
+ current = _ref.current,
4
+ status = _ref.status,
5
+ index = _ref.index,
6
+ item = _ref.item;
7
+ if (item.disabled) {
8
+ return 'inactive';
9
+ }
10
+ if (!isUncontrolled) {
11
+ return status || item.status || 'inactive';
12
+ }
13
+ if (current > index) {
14
+ return 'completed';
15
+ }
16
+ if (current === index) {
17
+ return status || 'active';
18
+ }
19
+ return 'inactive';
20
+ };
@@ -0,0 +1,2 @@
1
+ import { css } from 'styled-components';
2
+ export var base = /*#__PURE__*/css([""]);
@@ -0,0 +1,2 @@
1
+ import { css } from 'styled-components';
2
+ export var base = /*#__PURE__*/css([""]);
@@ -14,9 +14,6 @@ import { Modal, modalClasses } from './Modal';
14
14
  export default {
15
15
  title: 'plasma_b2c/Modal',
16
16
  decorators: [WithTheme],
17
- parameters: {
18
- docs: { story: { inline: false, iframeHeight: '30rem' } },
19
- },
20
17
  argTypes: {
21
18
  placement: {
22
19
  options: [
@@ -12,9 +12,6 @@ import { Popup, popupClasses, PopupProvider } from './Popup';
12
12
  const meta: Meta<typeof Popup> = {
13
13
  title: 'plasma_b2c/Popup',
14
14
  decorators: [WithTheme],
15
- parameters: {
16
- docs: { story: { inline: false, iframeHeight: '30rem' } },
17
- },
18
15
  argTypes: {
19
16
  placement: {
20
17
  options: [
@@ -0,0 +1,19 @@
1
+ import { css } from 'styled-components';
2
+ import { stepsTokens as tokens } from '../../../../components/Steps';
3
+ export var config = {
4
+ defaults: {
5
+ size: 'm',
6
+ view: 'default'
7
+ },
8
+ variations: {
9
+ view: {
10
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":solid var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-clear);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-secondary);", ":0.4;"], tokens.activeTitleColor, tokens.activeTitleColorHover, tokens.activeIndicatorBorder, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, tokens.completedIndicatorColor, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackground, tokens.completedIndicatorBackgroundHover, tokens.inactiveTitleColor, tokens.inactiveTitleColorHover, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackgroundHover, tokens.contentColor, tokens.disabledOpacity)
11
+ },
12
+ size: {
13
+ l: /*#__PURE__*/css(["", ":1.5rem;", ":2.25rem;", ":0.5rem;", ":1rem;", ":0.75rem;", ":0.375rem;", ":2rem;", ":1.0625rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":1.5rem;", ":1.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
14
+ m: /*#__PURE__*/css(["", ":1.5rem;", ":2.25rem;", ":0.5rem;", ":1rem;", ":0.625rem;", ":0.375rem;", ":1.75rem;", ":0.875rem;", ":0.75rem;", ":0.75rem;", ":0.4375rem;", ":1.25rem;", ":1.125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
15
+ s: /*#__PURE__*/css(["", ":1.5rem;", ":1.5rem;", ":0.5rem;", ":1rem;", ":0.5rem;", ":0.375rem;", ":1.5rem;", ":0.6875rem;", ":0.75rem;", ":0.5rem;", ":0.5rem;", ":1rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
16
+ xs: /*#__PURE__*/css(["", ":1.5rem;", ":1.5rem;", ":0.5rem;", ":1rem;", ":0.5rem;", ":0.25rem;", ":1.5rem;", ":0.5625rem;", ":0.75rem;", ":0.25rem;", ":0.25rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness)
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,6 @@
1
+ import { stepsConfig } from '../../../../components/Steps';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './Steps.config';
4
+ var mergedConfig = /*#__PURE__*/mergeConfig(stepsConfig, config);
5
+ var Steps = /*#__PURE__*/component(mergedConfig);
6
+ export { Steps, mergedConfig };
@@ -0,0 +1,195 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+ import { disableProps } from '@salutejs/plasma-sb-utils';
5
+
6
+ import { IconMic } from '../../../../components/_Icon';
7
+ import { argTypesFromConfig, WithTheme } from '../../../_helpers';
8
+ import { StepItemProps } from '../../../../components/Steps/ui';
9
+
10
+ import { Steps, mergedConfig } from './Steps';
11
+
12
+ const meta: Meta<typeof Steps> = {
13
+ title: 'plasma_b2c/Steps',
14
+ decorators: [WithTheme],
15
+ component: Steps,
16
+ argTypes: {
17
+ ...argTypesFromConfig(mergedConfig),
18
+ },
19
+ };
20
+
21
+ export default meta;
22
+
23
+ type Story = StoryObj<ComponentProps<typeof Steps>>;
24
+
25
+ const renderIndicator = ({ status, size }) => {
26
+ let iconSize;
27
+ if (size === 'xs' || size === 's') {
28
+ iconSize = 'xs';
29
+ } else if (status === 'active') {
30
+ iconSize = 's';
31
+ } else {
32
+ iconSize = 'xs';
33
+ }
34
+
35
+ return <IconMic color="inherit" size={iconSize} />;
36
+ };
37
+
38
+ const DefaultStory = (args) => {
39
+ const {
40
+ maxWidth,
41
+ title,
42
+ content,
43
+ size,
44
+ indicatorType,
45
+ quantity,
46
+ hasContent,
47
+ loading,
48
+ disabled,
49
+ simple,
50
+ ...rest
51
+ } = args;
52
+
53
+ const innerTitle = title || 'Title';
54
+
55
+ const [items, setItems] = useState([]);
56
+
57
+ useEffect(() => {
58
+ const newItems = new Array(quantity).fill(null).map((_, index) => {
59
+ const indicator = index + 1;
60
+ const status = index === 0 ? 'active' : 'inactive';
61
+
62
+ if (simple) {
63
+ return {
64
+ indicator,
65
+ status,
66
+ };
67
+ }
68
+
69
+ return {
70
+ title: innerTitle,
71
+ content,
72
+ indicator,
73
+ status,
74
+ };
75
+ });
76
+
77
+ setItems(newItems);
78
+ }, [loading, quantity, simple]);
79
+
80
+ useEffect(() => {
81
+ setItems((curItems) =>
82
+ curItems.map((item, index) => {
83
+ if (indicatorType === 'numbered') {
84
+ return simple
85
+ ? { ...item, indicator: index + 1 }
86
+ : { ...item, title: innerTitle, content, indicator: index + 1 };
87
+ }
88
+
89
+ if (indicatorType === 'bullet') {
90
+ return simple
91
+ ? { ...item, indicator: undefined }
92
+ : { ...item, title: innerTitle, content, indicator: undefined };
93
+ }
94
+
95
+ if (indicatorType === 'icon') {
96
+ return simple
97
+ ? { ...item, indicator: renderIndicator }
98
+ : { ...item, title: innerTitle, content, indicator: renderIndicator };
99
+ }
100
+
101
+ return item;
102
+ }),
103
+ );
104
+ }, [indicatorType, innerTitle, content, simple]);
105
+
106
+ useEffect(() => {
107
+ setItems((curItems) => curItems.map((item) => ({ ...item, disabled })));
108
+ }, [disabled]);
109
+
110
+ const onChange = (item: StepItemProps, index: number, prevIndex: number) => {
111
+ if (prevIndex !== undefined) {
112
+ items[prevIndex].status = 'completed';
113
+ }
114
+
115
+ items[index].status = 'active';
116
+
117
+ setItems([...items]);
118
+ };
119
+
120
+ return (
121
+ <div style={{ maxWidth, height: '400px' }}>
122
+ <Steps
123
+ size={size}
124
+ items={items}
125
+ onChange={onChange}
126
+ hasLoader={loading}
127
+ hasContent={hasContent}
128
+ {...rest}
129
+ />
130
+ </div>
131
+ );
132
+ };
133
+
134
+ export const Default: Story = {
135
+ args: {
136
+ maxWidth: '100%',
137
+ quantity: 6,
138
+ size: 'm',
139
+ title: 'Title',
140
+ content: 'Content',
141
+ contentAlign: 'left',
142
+ indicatorType: 'numbered',
143
+ orientation: 'horizontal',
144
+ hasLine: true,
145
+ hasContent: 'all',
146
+ disabled: false,
147
+ loading: false,
148
+ simple: false,
149
+ },
150
+ argTypes: {
151
+ maxWidth: {
152
+ control: {
153
+ type: 'text',
154
+ },
155
+ },
156
+ size: {
157
+ options: ['xs', 's', 'm', 'l'],
158
+ control: {
159
+ type: 'inline-radio',
160
+ },
161
+ },
162
+ orientation: {
163
+ options: ['horizontal', 'vertical'],
164
+ control: {
165
+ type: 'inline-radio',
166
+ },
167
+ },
168
+ contentAlign: {
169
+ options: ['left', 'center'],
170
+ control: {
171
+ type: 'inline-radio',
172
+ },
173
+ if: { arg: 'orientation', eq: 'horizontal' },
174
+ },
175
+ indicatorType: {
176
+ options: ['numbered', 'bullet', 'icon'],
177
+ control: {
178
+ type: 'inline-radio',
179
+ },
180
+ },
181
+ hasContent: {
182
+ options: ['all', 'active', 'none'],
183
+ control: {
184
+ type: 'inline-radio',
185
+ },
186
+ },
187
+ simple: {
188
+ control: {
189
+ type: 'boolean',
190
+ },
191
+ },
192
+ ...disableProps(['view']),
193
+ },
194
+ render: (args) => <DefaultStory {...args} />,
195
+ };
@@ -14,9 +14,6 @@ import { Modal, modalClasses } from './Modal';
14
14
  export default {
15
15
  title: 'plasma_web/Modal',
16
16
  decorators: [WithTheme],
17
- parameters: {
18
- docs: { story: { inline: false, iframeHeight: '30rem' } },
19
- },
20
17
  argTypes: {
21
18
  placement: {
22
19
  options: [
@@ -12,9 +12,6 @@ import { Popup, popupClasses, PopupProvider } from './Popup';
12
12
  const meta: Meta<typeof Popup> = {
13
13
  title: 'plasma_web/Popup',
14
14
  decorators: [WithTheme],
15
- parameters: {
16
- docs: { story: { inline: false, iframeHeight: '30rem' } },
17
- },
18
15
  argTypes: {
19
16
  placement: {
20
17
  options: [
@@ -0,0 +1,19 @@
1
+ import { css } from 'styled-components';
2
+ import { stepsTokens as tokens } from '../../../../components/Steps';
3
+ export var config = {
4
+ defaults: {
5
+ size: 'm',
6
+ view: 'default'
7
+ },
8
+ variations: {
9
+ view: {
10
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--text-primary-hover);", ":solid var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-clear);", ":var(--inverse-text-primary);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-secondary);", ":0.4;"], tokens.activeTitleColor, tokens.activeTitleColorHover, tokens.activeIndicatorBorder, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, tokens.completedIndicatorColor, tokens.completedIndicatorColorHover, tokens.completedIndicatorBackground, tokens.completedIndicatorBackgroundHover, tokens.inactiveTitleColor, tokens.inactiveTitleColorHover, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorColorHover, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackgroundHover, tokens.contentColor, tokens.disabledOpacity)
11
+ },
12
+ size: {
13
+ l: /*#__PURE__*/css(["", ":1.5rem;", ":2.25rem;", ":0.5rem;", ":1rem;", ":0.75rem;", ":0.375rem;", ":2rem;", ":1.0625rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":1.5rem;", ":1.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
14
+ m: /*#__PURE__*/css(["", ":1.5rem;", ":2.25rem;", ":0.5rem;", ":1rem;", ":0.625rem;", ":0.375rem;", ":1.75rem;", ":0.875rem;", ":0.75rem;", ":0.75rem;", ":0.4375rem;", ":1.25rem;", ":1.125rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
15
+ s: /*#__PURE__*/css(["", ":1.5rem;", ":1.5rem;", ":0.5rem;", ":1rem;", ":0.5rem;", ":0.375rem;", ":1.5rem;", ":0.6875rem;", ":0.75rem;", ":0.5rem;", ":0.5rem;", ":1rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness),
16
+ xs: /*#__PURE__*/css(["", ":1.5rem;", ":1.5rem;", ":0.5rem;", ":1rem;", ":0.5rem;", ":0.25rem;", ":1.5rem;", ":0.5625rem;", ":0.75rem;", ":0.25rem;", ":0.25rem;", ":0.75rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.125rem;"], tokens.indicatorSize, tokens.activeIndicatorSize, tokens.bulletSize, tokens.activeBulletSize, tokens.titlePaddingTop, tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentVerticalPadding, tokens.verticalContentPaddingLeft, tokens.smallIndicatorIndentHeight, tokens.largeIndicatorIndentHeight, tokens.smallBulletIndentHeight, tokens.largeBulletIndentHeight, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.dividerThickness)
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,6 @@
1
+ import { stepsConfig } from '../../../../components/Steps';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './Steps.config';
4
+ var mergedConfig = /*#__PURE__*/mergeConfig(stepsConfig, config);
5
+ var Steps = /*#__PURE__*/component(mergedConfig);
6
+ export { Steps, mergedConfig };