@salutejs/plasma-new-hope 0.157.1-canary.1412.11127658499.0 → 0.158.0-canary.1443.11125700749.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. package/cjs/components/Drawer/Drawer.css +3 -4
  2. package/cjs/components/Drawer/Drawer.js +1 -1
  3. package/cjs/components/Drawer/Drawer.styles.js +0 -3
  4. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  5. package/cjs/components/Drawer/hooks/useDrawer.js +1 -1
  6. package/cjs/components/Modal/Modal.css +3 -4
  7. package/cjs/components/Modal/hooks/useModal.js +1 -1
  8. package/cjs/components/Notification/NotificationsProvider.css +3 -4
  9. package/cjs/components/Popup/Popup.css +3 -0
  10. package/cjs/components/Popup/Popup.js +41 -29
  11. package/cjs/components/Popup/Popup.js.map +1 -1
  12. package/cjs/components/Popup/Popup.styles.js +27 -55
  13. package/cjs/components/Popup/Popup.styles.js.map +1 -1
  14. package/cjs/components/Popup/Popup.styles_141jyqa.css +3 -0
  15. package/cjs/components/Popup/PopupContext.js +10 -30
  16. package/cjs/components/Popup/PopupContext.js.map +1 -1
  17. package/cjs/components/Popup/PopupRoot.js +1 -1
  18. package/cjs/components/Popup/PopupRoot.js.map +1 -1
  19. package/cjs/components/Popup/hooks/usePopup.js +3 -6
  20. package/cjs/components/Popup/hooks/usePopup.js.map +1 -1
  21. package/cjs/components/Steps/Steps.css +18 -0
  22. package/cjs/components/Steps/Steps.js +118 -0
  23. package/cjs/components/Steps/Steps.js.map +1 -0
  24. package/cjs/components/Steps/Steps.styles.js +9 -0
  25. package/cjs/components/Steps/Steps.styles.js.map +1 -0
  26. package/cjs/components/Steps/Steps.styles_1qandre.css +1 -0
  27. package/cjs/components/Steps/Steps.tokens.js +81 -0
  28. package/cjs/components/Steps/Steps.tokens.js.map +1 -0
  29. package/cjs/components/Steps/ui/StepItem/StepItem.css +16 -0
  30. package/cjs/components/Steps/ui/StepItem/StepItem.js +117 -0
  31. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  32. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +83 -0
  33. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  34. package/cjs/components/Steps/ui/StepItem/StepItem.styles_1nnkvta.css +9 -0
  35. package/cjs/components/Steps/variations/_size/base.js +9 -0
  36. package/cjs/components/Steps/variations/_size/base.js.map +1 -0
  37. package/cjs/components/Steps/variations/_size/base_x642ct.css +1 -0
  38. package/cjs/components/Steps/variations/_view/base.js +9 -0
  39. package/cjs/components/Steps/variations/_view/base.js.map +1 -0
  40. package/cjs/components/Steps/variations/_view/base_x642ct.css +1 -0
  41. package/cjs/index.css +15 -4
  42. package/cjs/index.js +5 -0
  43. package/cjs/index.js.map +1 -1
  44. package/emotion/cjs/components/Popup/Popup.js +41 -29
  45. package/emotion/cjs/components/Popup/Popup.styles.js +17 -35
  46. package/emotion/cjs/components/Popup/PopupContext.js +10 -30
  47. package/emotion/cjs/components/Popup/PopupRoot.js +3 -1
  48. package/emotion/cjs/components/Popup/hooks/usePopup.js +3 -6
  49. package/emotion/cjs/components/Steps/Steps.js +130 -0
  50. package/emotion/cjs/components/Steps/Steps.review-doc.mdx +304 -0
  51. package/emotion/cjs/components/Steps/Steps.styles.js +9 -0
  52. package/emotion/cjs/components/Steps/Steps.template-doc.mdx +78 -0
  53. package/emotion/cjs/components/Steps/Steps.tokens.js +79 -0
  54. package/emotion/cjs/components/Steps/Steps.types.js +5 -0
  55. package/emotion/cjs/components/Steps/index.js +25 -0
  56. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +127 -0
  57. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +52 -0
  58. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  59. package/emotion/cjs/components/Steps/ui/StepItem/index.js +12 -0
  60. package/emotion/cjs/components/Steps/ui/index.js +16 -0
  61. package/emotion/cjs/components/Steps/variations/_size/base.js +8 -0
  62. package/emotion/cjs/components/Steps/variations/_size/tokens.json +1 -0
  63. package/emotion/cjs/components/Steps/variations/_view/base.js +8 -0
  64. package/emotion/cjs/components/Steps/variations/_view/tokens.json +1 -0
  65. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  66. package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  67. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  68. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.js +13 -0
  69. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +169 -0
  70. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  71. package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  72. package/emotion/cjs/index.js +11 -0
  73. package/emotion/es/components/Popup/Popup.js +43 -30
  74. package/emotion/es/components/Popup/Popup.styles.js +16 -34
  75. package/emotion/es/components/Popup/PopupContext.js +11 -30
  76. package/emotion/es/components/Popup/PopupRoot.js +3 -1
  77. package/emotion/es/components/Popup/hooks/usePopup.js +3 -6
  78. package/emotion/es/components/Steps/Steps.js +121 -0
  79. package/emotion/es/components/Steps/Steps.review-doc.mdx +304 -0
  80. package/emotion/es/components/Steps/Steps.styles.js +3 -0
  81. package/emotion/es/components/Steps/Steps.template-doc.mdx +78 -0
  82. package/emotion/es/components/Steps/Steps.tokens.js +73 -0
  83. package/emotion/es/components/Steps/Steps.types.js +1 -0
  84. package/emotion/es/components/Steps/index.js +2 -0
  85. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +118 -0
  86. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +45 -0
  87. package/emotion/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  88. package/emotion/es/components/Steps/ui/StepItem/index.js +1 -0
  89. package/emotion/es/components/Steps/ui/index.js +1 -0
  90. package/emotion/es/components/Steps/variations/_size/base.js +2 -0
  91. package/emotion/es/components/Steps/variations/_size/tokens.json +1 -0
  92. package/emotion/es/components/Steps/variations/_view/base.js +2 -0
  93. package/emotion/es/components/Steps/variations/_view/tokens.json +1 -0
  94. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  95. package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  96. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  97. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.js +9 -0
  98. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +169 -0
  99. package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  100. package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  101. package/emotion/es/index.js +1 -0
  102. package/es/components/Drawer/Drawer.css +3 -4
  103. package/es/components/Drawer/Drawer.js +1 -1
  104. package/es/components/Drawer/Drawer.styles.js +0 -3
  105. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  106. package/es/components/Drawer/hooks/useDrawer.js +1 -1
  107. package/es/components/Modal/Modal.css +3 -4
  108. package/es/components/Modal/hooks/useModal.js +1 -1
  109. package/es/components/Notification/NotificationsProvider.css +3 -4
  110. package/es/components/Popup/Popup.css +3 -0
  111. package/es/components/Popup/Popup.js +43 -31
  112. package/es/components/Popup/Popup.js.map +1 -1
  113. package/es/components/Popup/Popup.styles.js +28 -54
  114. package/es/components/Popup/Popup.styles.js.map +1 -1
  115. package/es/components/Popup/Popup.styles_141jyqa.css +3 -0
  116. package/es/components/Popup/PopupContext.js +11 -31
  117. package/es/components/Popup/PopupContext.js.map +1 -1
  118. package/es/components/Popup/PopupRoot.js +1 -1
  119. package/es/components/Popup/PopupRoot.js.map +1 -1
  120. package/es/components/Popup/hooks/usePopup.js +3 -6
  121. package/es/components/Popup/hooks/usePopup.js.map +1 -1
  122. package/es/components/Steps/Steps.css +18 -0
  123. package/es/components/Steps/Steps.js +113 -0
  124. package/es/components/Steps/Steps.js.map +1 -0
  125. package/es/components/Steps/Steps.styles.js +5 -0
  126. package/es/components/Steps/Steps.styles.js.map +1 -0
  127. package/es/components/Steps/Steps.styles_1qandre.css +1 -0
  128. package/es/components/Steps/Steps.tokens.js +76 -0
  129. package/es/components/Steps/Steps.tokens.js.map +1 -0
  130. package/es/components/Steps/ui/StepItem/StepItem.css +16 -0
  131. package/es/components/Steps/ui/StepItem/StepItem.js +113 -0
  132. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  133. package/es/components/Steps/ui/StepItem/StepItem.styles.js +71 -0
  134. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  135. package/es/components/Steps/ui/StepItem/StepItem.styles_1nnkvta.css +9 -0
  136. package/es/components/Steps/variations/_size/base.js +5 -0
  137. package/es/components/Steps/variations/_size/base.js.map +1 -0
  138. package/es/components/Steps/variations/_size/base_x642ct.css +1 -0
  139. package/es/components/Steps/variations/_view/base.js +5 -0
  140. package/es/components/Steps/variations/_view/base.js.map +1 -0
  141. package/es/components/Steps/variations/_view/base_x642ct.css +1 -0
  142. package/es/index.css +15 -4
  143. package/es/index.js +2 -0
  144. package/es/index.js.map +1 -1
  145. package/package.json +2 -2
  146. package/styled-components/cjs/components/Popup/Popup.js +41 -29
  147. package/styled-components/cjs/components/Popup/Popup.styles.js +14 -23
  148. package/styled-components/cjs/components/Popup/PopupContext.js +10 -30
  149. package/styled-components/cjs/components/Popup/PopupRoot.js +3 -1
  150. package/styled-components/cjs/components/Popup/hooks/usePopup.js +3 -6
  151. package/styled-components/cjs/components/Steps/Steps.js +130 -0
  152. package/styled-components/cjs/components/Steps/Steps.review-doc.mdx +304 -0
  153. package/styled-components/cjs/components/Steps/Steps.styles.js +9 -0
  154. package/styled-components/cjs/components/Steps/Steps.template-doc.mdx +78 -0
  155. package/styled-components/cjs/components/Steps/Steps.tokens.js +79 -0
  156. package/styled-components/cjs/components/Steps/Steps.types.js +5 -0
  157. package/styled-components/cjs/components/Steps/index.js +25 -0
  158. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +127 -0
  159. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +43 -0
  160. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  161. package/styled-components/cjs/components/Steps/ui/StepItem/index.js +12 -0
  162. package/styled-components/cjs/components/Steps/ui/index.js +16 -0
  163. package/styled-components/cjs/components/Steps/variations/_size/base.js +8 -0
  164. package/styled-components/cjs/components/Steps/variations/_size/tokens.json +1 -0
  165. package/styled-components/cjs/components/Steps/variations/_view/base.js +8 -0
  166. package/styled-components/cjs/components/Steps/variations/_view/tokens.json +1 -0
  167. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  168. package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  169. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  170. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.js +13 -0
  171. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +169 -0
  172. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  173. package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  174. package/styled-components/cjs/index.js +11 -0
  175. package/styled-components/es/components/Popup/Popup.js +43 -30
  176. package/styled-components/es/components/Popup/Popup.styles.js +13 -22
  177. package/styled-components/es/components/Popup/PopupContext.js +11 -30
  178. package/styled-components/es/components/Popup/PopupRoot.js +3 -1
  179. package/styled-components/es/components/Popup/hooks/usePopup.js +3 -6
  180. package/styled-components/es/components/Steps/Steps.js +121 -0
  181. package/styled-components/es/components/Steps/Steps.review-doc.mdx +304 -0
  182. package/styled-components/es/components/Steps/Steps.styles.js +3 -0
  183. package/styled-components/es/components/Steps/Steps.template-doc.mdx +78 -0
  184. package/styled-components/es/components/Steps/Steps.tokens.js +73 -0
  185. package/styled-components/es/components/Steps/Steps.types.js +1 -0
  186. package/styled-components/es/components/Steps/index.js +2 -0
  187. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +118 -0
  188. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +36 -0
  189. package/styled-components/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  190. package/styled-components/es/components/Steps/ui/StepItem/index.js +1 -0
  191. package/styled-components/es/components/Steps/ui/index.js +1 -0
  192. package/styled-components/es/components/Steps/variations/_size/base.js +2 -0
  193. package/styled-components/es/components/Steps/variations/_size/tokens.json +1 -0
  194. package/styled-components/es/components/Steps/variations/_view/base.js +2 -0
  195. package/styled-components/es/components/Steps/variations/_view/tokens.json +1 -0
  196. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +0 -3
  197. package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +0 -3
  198. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  199. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.js +9 -0
  200. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +169 -0
  201. package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +0 -3
  202. package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +0 -3
  203. package/styled-components/es/index.js +1 -0
  204. package/types/components/Popup/Popup.d.ts +1 -1
  205. package/types/components/Popup/Popup.d.ts.map +1 -1
  206. package/types/components/Popup/Popup.styles.d.ts +1 -4
  207. package/types/components/Popup/Popup.styles.d.ts.map +1 -1
  208. package/types/components/Popup/Popup.types.d.ts +0 -3
  209. package/types/components/Popup/Popup.types.d.ts.map +1 -1
  210. package/types/components/Popup/PopupContext.d.ts.map +1 -1
  211. package/types/components/Popup/hooks/usePopup.d.ts +1 -2
  212. package/types/components/Popup/hooks/usePopup.d.ts.map +1 -1
  213. package/types/components/Steps/Steps.d.ts +23 -0
  214. package/types/components/Steps/Steps.d.ts.map +1 -0
  215. package/types/components/Steps/Steps.styles.d.ts +2 -0
  216. package/types/components/Steps/Steps.styles.d.ts.map +1 -0
  217. package/types/components/Steps/Steps.tokens.d.ts +74 -0
  218. package/types/components/Steps/Steps.tokens.d.ts.map +1 -0
  219. package/types/components/Steps/Steps.types.d.ts +55 -0
  220. package/types/components/Steps/Steps.types.d.ts.map +1 -0
  221. package/types/components/Steps/index.d.ts +4 -0
  222. package/types/components/Steps/index.d.ts.map +1 -0
  223. package/types/components/Steps/ui/StepItem/StepItem.d.ts +17 -0
  224. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -0
  225. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +20 -0
  226. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -0
  227. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts +35 -0
  228. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts.map +1 -0
  229. package/types/components/Steps/ui/StepItem/index.d.ts +3 -0
  230. package/types/components/Steps/ui/StepItem/index.d.ts.map +1 -0
  231. package/types/components/Steps/ui/index.d.ts +2 -0
  232. package/types/components/Steps/ui/index.d.ts.map +1 -0
  233. package/types/components/Steps/variations/_size/base.d.ts +2 -0
  234. package/types/components/Steps/variations/_size/base.d.ts.map +1 -0
  235. package/types/components/Steps/variations/_view/base.d.ts +2 -0
  236. package/types/components/Steps/variations/_view/base.d.ts.map +1 -0
  237. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts +18 -0
  238. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -0
  239. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts +35 -0
  240. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts.map +1 -0
  241. package/types/index.d.ts +1 -0
  242. package/types/index.d.ts.map +1 -1
  243. package/cjs/components/Popup/Popup.styles_1uw5px0.css +0 -4
  244. package/cjs/components/Popup/PopupContext.css +0 -4
  245. package/es/components/Popup/Popup.styles_1uw5px0.css +0 -4
  246. package/es/components/Popup/PopupContext.css +0 -4
@@ -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: 's',
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-hover);", ":var(--surface-solid-default);", ":var(--surface-solid-default-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":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.5rem;", ":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,9 @@
1
+ import { stepsConfig } from '../../../../components/Steps';
2
+ import { component, mergeConfig } from '../../../../engines';
3
+ import { config } from './Steps.config';
4
+
5
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
+ // @ts-ignore todo
7
+ var mergedConfig = /*#__PURE__*/mergeConfig(stepsConfig, config);
8
+ var Steps = /*#__PURE__*/component(mergedConfig);
9
+ export { Steps, mergedConfig };
@@ -0,0 +1,169 @@
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 { maxWidth, title, content, size, indicatorType, quantity, hasContent, loading, disabled, simple } = args;
40
+
41
+ const innerTitle = title || 'Title';
42
+
43
+ const [items, setItems] = useState([]);
44
+
45
+ useEffect(() => {
46
+ const newItems = new Array(quantity).fill(null).map((_, index) => {
47
+ const indicator = index + 1;
48
+
49
+ if (simple) {
50
+ return {
51
+ indicator,
52
+ status: 'inactive',
53
+ };
54
+ }
55
+
56
+ return {
57
+ title: innerTitle,
58
+ content,
59
+ indicator,
60
+ status: 'inactive',
61
+ };
62
+ });
63
+
64
+ setItems(newItems);
65
+ }, [hasContent, loading, quantity, innerTitle, content, simple]);
66
+
67
+ useEffect(() => {
68
+ setItems((curItems) =>
69
+ curItems.map((item, index) => {
70
+ if (indicatorType === 'numbered') {
71
+ return { ...item, indicator: index + 1 };
72
+ }
73
+
74
+ if (indicatorType === 'bullet') {
75
+ return { ...item, indicator: undefined };
76
+ }
77
+
78
+ if (indicatorType === 'icon') {
79
+ return { ...item, indicator: renderIndicator };
80
+ }
81
+
82
+ return item;
83
+ }),
84
+ );
85
+ }, [indicatorType]);
86
+
87
+ useEffect(() => {
88
+ setItems((curItems) => curItems.map((item) => ({ ...item, disabled })));
89
+ }, [disabled]);
90
+
91
+ const onChange = (item: StepItemProps, index: number, prevIndex: number) => {
92
+ if (prevIndex !== undefined) {
93
+ items[prevIndex].status = 'completed';
94
+ }
95
+
96
+ items[index].status = 'active';
97
+
98
+ setItems([...items]);
99
+ };
100
+
101
+ return (
102
+ <div style={{ maxWidth }}>
103
+ <Steps size={size} items={items} onChange={onChange} hasLoader={loading} {...args} />
104
+ </div>
105
+ );
106
+ };
107
+
108
+ export const Default: Story = {
109
+ args: {
110
+ maxWidth: '100%',
111
+ quantity: 6,
112
+ size: 'm',
113
+ title: 'Title',
114
+ content: 'Content',
115
+ contentAlign: 'left',
116
+ indicatorType: 'numbered',
117
+ orientation: 'horizontal',
118
+ hasLine: true,
119
+ hasContent: 'all',
120
+ disabled: false,
121
+ loading: false,
122
+ simple: false,
123
+ },
124
+ argTypes: {
125
+ maxWidth: {
126
+ control: {
127
+ type: 'text',
128
+ },
129
+ },
130
+ size: {
131
+ options: ['xs', 's', 'm', 'l'],
132
+ control: {
133
+ type: 'inline-radio',
134
+ },
135
+ },
136
+ orientation: {
137
+ options: ['horizontal', 'vertical'],
138
+ control: {
139
+ type: 'inline-radio',
140
+ },
141
+ },
142
+ contentAlign: {
143
+ options: ['left', 'center'],
144
+ control: {
145
+ type: 'inline-radio',
146
+ },
147
+ if: { arg: 'orientation', eq: 'horizontal' },
148
+ },
149
+ indicatorType: {
150
+ options: ['numbered', 'bullet', 'icon'],
151
+ control: {
152
+ type: 'inline-radio',
153
+ },
154
+ },
155
+ hasContent: {
156
+ options: ['all', 'active', 'none'],
157
+ control: {
158
+ type: 'inline-radio',
159
+ },
160
+ },
161
+ simple: {
162
+ control: {
163
+ type: 'boolean',
164
+ },
165
+ },
166
+ ...disableProps(['view']),
167
+ },
168
+ render: (args) => <DefaultStory {...args} />,
169
+ };
@@ -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: [
@@ -50,6 +50,7 @@ export * from './components/Divider';
50
50
  export * from './components/Toolbar';
51
51
  export * from './components/Sheet';
52
52
  export * from './components/Slider';
53
+ export * from './components/Steps';
53
54
  export * from './components/Range';
54
55
  export * from './components/Accordion';
55
56
  export * from './components/DatePicker';
@@ -3,7 +3,7 @@ import { RootProps } from '../../engines/types';
3
3
  import type { PopupPlacement, PopupPositionType, PopupProps } from './Popup.types';
4
4
  export declare const handlePosition: (placement: PopupPlacement, offset: [number, number] | [string, string]) => PopupPositionType;
5
5
  /**
6
- * Базовый компонент Popup.
6
+ * Базовый копмонент Popup.
7
7
  */
8
8
  export declare const popupRoot: (Root: RootProps<HTMLDivElement, PopupProps>) => React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
9
9
  export declare const popupConfig: {
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFA0FhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA5FQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;CAmGpE,CAAC"}
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,UAAU,CAAC,sFAyGhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA3GQ,UAAU,cAAc,EAAE,UAAU,CAAC;;;;CAkHpE,CAAC"}
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { PopupRootContainerProps } from './Popup.types';
3
- export declare const StyledPortal: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
4
- hasContent: boolean;
5
- }>;
6
- export declare const StyledPortalContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const StyledPortal: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
4
  export declare const PopupView: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
5
  export declare const PopupRootContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & PopupRootContainerProps>;
9
6
  //# sourceMappingURL=Popup.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,YAAY;gBAA4B,OAAO;EAU3D,CAAC;AAEF,eAAO,MAAM,qBAAqB,qKAEjC,CAAC;AAEF,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC"}
1
+ {"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,YAAY,qKAAe,CAAC;AAEzC,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC"}
@@ -4,12 +4,10 @@ export declare type PopupPlacementMixed = 'top-right' | 'top-left' | 'bottom-rig
4
4
  export declare type PopupPlacement = PopupPlacementBasic | PopupPlacementMixed;
5
5
  export interface PopupInfo {
6
6
  id: string;
7
- isGlobalPopup?: boolean;
8
7
  info?: Record<string, any>;
9
8
  }
10
9
  export interface PopupContextType {
11
10
  items: PopupInfo[];
12
- rootId: string;
13
11
  register: (info: PopupInfo) => void;
14
12
  unregister: (id: string) => void;
15
13
  }
@@ -74,7 +72,6 @@ export interface PopupRootProps extends Omit<PopupProps, 'opened' | 'isOpen' | '
74
72
  export interface PopupHookArgs extends Pick<PopupProps, 'popupInfo' | 'withAnimation'> {
75
73
  id: string;
76
74
  isOpen: boolean;
77
- isGlobalPopup?: boolean;
78
75
  }
79
76
  export interface PopupRootContainerProps extends Omit<PopupProps, 'opened' | 'isOpen' | 'overlay'> {
80
77
  endTransition?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.types.ts"],"names":[],"mappings":";AAAA,oBAAY,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjF,oBAAY,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;AAC5F,oBAAY,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEvE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,SAAS,CAAC,EAAE,cAAc,CAAC;IAK3B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AACD,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAC;CACrC;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,eAAe,CAAC;IAClF,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,iBAAiB,CAAC;CAC/B"}
1
+ {"version":3,"file":"Popup.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.types.ts"],"names":[],"mappings":";AAAA,oBAAY,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACjF,oBAAY,mBAAmB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;AAC5F,oBAAY,cAAc,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEvE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,SAAS,CAAC,EAAE,cAAc,CAAC;IAK3B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AACD,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAC;CACrC;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,eAAe,CAAC;IAClF,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,iBAAiB,CAAC;CAC/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuC,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAMlG,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAGjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAiBnD,eAAO,MAAM,eAAe,wBAAiC,CAAC;AAE9D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAwE/C,CAAC"}
1
+ {"version":3,"file":"PopupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/PopupContext.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAkD,EAAE,EAAE,iBAAiB,EAAU,MAAM,OAAO,CAAC;AAI7G,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,eAAe,CAAC;AAEjE,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAcnD,eAAO,MAAM,eAAe,wBAAiC,CAAC;AAE9D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAmD/C,CAAC"}
@@ -1,10 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { PopupAnimationInfo, PopupHookArgs } from '../Popup.types';
3
- export declare const usePopup: ({ isOpen, id, isGlobalPopup, popupInfo, withAnimation }: PopupHookArgs) => {
3
+ export declare const usePopup: ({ isOpen, id, popupInfo, withAnimation }: PopupHookArgs) => {
4
4
  isVisible: boolean;
5
5
  setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
6
6
  animationInfo: PopupAnimationInfo;
7
7
  withAnimation: boolean | undefined;
8
- rootId: string;
9
8
  };
10
9
  //# sourceMappingURL=usePopup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/hooks/usePopup.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAYxE,eAAO,MAAM,QAAQ,4DAA6D,aAAa;;;;;;CA4C9F,CAAC"}
1
+ {"version":3,"file":"usePopup.d.ts","sourceRoot":"","sources":["../../../../src/components/Popup/hooks/usePopup.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAYxE,eAAO,MAAM,QAAQ,6CAA8C,aAAa;;;;;CA4C/E,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import type { RootProps } from '../../engines/types';
3
+ import { StepsProps } from './Steps.types';
4
+ export declare const stepsRoot: (Root: RootProps<HTMLDivElement & Pick<StepsProps, 'onChange'>, Omit<StepsProps & {
5
+ view: 'default';
6
+ } & HTMLAttributes<HTMLDivElement>, 'onChange'>>) => React.ForwardRefExoticComponent<StepsProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const stepsConfig: {
8
+ name: string;
9
+ tag: string;
10
+ layout: (Root: RootProps<HTMLDivElement & Pick<StepsProps, 'onChange'>, Omit<StepsProps & {
11
+ view: 'default';
12
+ } & HTMLAttributes<HTMLDivElement>, 'onChange'>>) => React.ForwardRefExoticComponent<StepsProps & React.RefAttributes<HTMLDivElement>>;
13
+ base: import("@linaria/core").LinariaClassName;
14
+ variations: {
15
+ size: import("@linaria/core").LinariaClassName;
16
+ view: import("@linaria/core").LinariaClassName;
17
+ };
18
+ defaults: {
19
+ view: string;
20
+ size: string;
21
+ };
22
+ };
23
+ //# sourceMappingURL=Steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmC,cAAc,EAAE,MAAM,OAAO,CAAC;AAG/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,eAAO,MAAM,SAAS,SACZ,UACF,cAAc,GAAG,KAAK,UAAU,EAAE,UAAU,CAAC,EAC7C,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,eAAe,cAAc,CAAC,EAAE,UAAU,CAAC,CACtF,sFA0FC,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBA/Fd,UACF,cAAc,GAAG,KAAK,UAAU,EAAE,UAAU,CAAC,EAC7C,KAAK,UAAU,GAAG;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG,eAAe,cAAc,CAAC,EAAE,UAAU,CAAC,CACtF;;;;;;;;;;CAyGJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const base: import("@linaria/core").LinariaClassName;
2
+ //# sourceMappingURL=Steps.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAmChB,CAAC"}
@@ -0,0 +1,74 @@
1
+ export declare const classes: {
2
+ simple: string;
3
+ centered: string;
4
+ active: string;
5
+ inactive: string;
6
+ clickable: string;
7
+ hovered: string;
8
+ disabled: string;
9
+ verticalOrientation: string;
10
+ hasIndicator: string;
11
+ activeItem: string;
12
+ transparentDivider: string;
13
+ };
14
+ export declare const tokens: {
15
+ indicatorSize: string;
16
+ activeIndicatorSize: string;
17
+ bulletSize: string;
18
+ activeBulletSize: string;
19
+ titlePaddingTop: string;
20
+ contentPaddingTop: string;
21
+ contentPaddingRight: string;
22
+ contentSidePadding: string;
23
+ contentVerticalPadding: string;
24
+ verticalContentPaddingLeft: string;
25
+ smallIndicatorIndentHeight: string;
26
+ largeIndicatorIndentHeight: string;
27
+ smallBulletIndentHeight: string;
28
+ largeBulletIndentHeight: string;
29
+ titleFontFamily: string;
30
+ titleFontSize: string;
31
+ titleFontStyle: string;
32
+ titleFontWeight: string;
33
+ titleLetterSpacing: string;
34
+ titleLineHeight: string;
35
+ contentFontFamily: string;
36
+ contentFontSize: string;
37
+ contentFontStyle: string;
38
+ contentFontWeight: string;
39
+ contentLetterSpacing: string;
40
+ contentLineHeight: string;
41
+ indicatorFontFamily: string;
42
+ indicatorFontSize: string;
43
+ indicatorFontStyle: string;
44
+ indicatorFontWeight: string;
45
+ indicatorLetterSpacing: string;
46
+ indicatorLineHeight: string;
47
+ activeIndicatorFontFamily: string;
48
+ activeIndicatorFontSize: string;
49
+ activeIndicatorFontStyle: string;
50
+ activeIndicatorFontWeight: string;
51
+ activeIndicatorLetterSpacing: string;
52
+ activeIndicatorLineHeight: string;
53
+ activeTitleColor: string;
54
+ activeTitleColorHover: string;
55
+ inactiveTitleColor: string;
56
+ inactiveTitleColorHover: string;
57
+ contentColor: string;
58
+ activeIndicatorBorder: string;
59
+ activeIndicatorBorderHover: string;
60
+ activeIndicatorColor: string;
61
+ activeIndicatorColorHover: string;
62
+ activeIndicatorBackground: string;
63
+ completedIndicatorColor: string;
64
+ completedIndicatorColorHover: string;
65
+ completedIndicatorBackground: string;
66
+ completedIndicatorBackgroundHover: string;
67
+ inactiveIndicatorColor: string;
68
+ inactiveIndicatorColorHover: string;
69
+ inactiveIndicatorBackground: string;
70
+ inactiveIndicatorBackgroundHover: string;
71
+ disabledOpacity: string;
72
+ dividerThickness: string;
73
+ };
74
+ //# sourceMappingURL=Steps.tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyElB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { StepStatus, StepItemProps } from './ui';
2
+ export declare type StepsContent = 'all' | 'active' | 'none';
3
+ export declare type StepsSize = 'xs' | 's' | 'm' | 'l';
4
+ export interface StepsProps {
5
+ /**
6
+ * Массив шагов
7
+ * @default []
8
+ */
9
+ items?: StepItemProps[];
10
+ /**
11
+ * Размер шага
12
+ */
13
+ size?: StepsSize;
14
+ /**
15
+ * Ориентация компонента
16
+ * @default 'horizontal'
17
+ */
18
+ orientation?: 'horizontal' | 'vertical';
19
+ /**
20
+ * Выравнивание контента в шагах
21
+ * @default 'left'
22
+ */
23
+ contentAlign?: 'left' | 'center';
24
+ /**
25
+ * Включает разделительную линию
26
+ * @default true
27
+ */
28
+ hasLine?: boolean;
29
+ /**
30
+ * Режим отображения контента
31
+ * @default 'all'
32
+ * @description
33
+ * all - контент у всех элементов
34
+ * active - только у активного
35
+ * none - контент скрыт
36
+ */
37
+ hasContent?: StepsContent;
38
+ /**
39
+ * Отображает лоадер вместо индикатора активного шага.
40
+ */
41
+ hasLoader?: boolean;
42
+ /**
43
+ * Индекс текущего шага, для uncontrolled компонента
44
+ */
45
+ current?: number;
46
+ /**
47
+ * Статус текущего шага, имеет приоритет над item.status
48
+ */
49
+ status?: StepStatus;
50
+ /**
51
+ * Обработчик изменения шага, делает индикаторы и заголовки шагов кликабельными
52
+ */
53
+ onChange?: (item: StepItemProps, index: number, prevIndex?: number) => void;
54
+ }
55
+ //# sourceMappingURL=Steps.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.types.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAEjD,oBAAY,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD,oBAAY,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/C,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/E"}
@@ -0,0 +1,4 @@
1
+ export { stepsConfig, stepsRoot } from './Steps';
2
+ export { tokens as stepsTokens } from './Steps.tokens';
3
+ export type { StepsProps } from './Steps.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { StepsSize } from '../../Steps.types';
3
+ import type { StepItemProps } from './StepItem.types';
4
+ export declare const StepItem: React.FC<StepItemProps & {
5
+ index: number;
6
+ items: StepItemProps[];
7
+ size: StepsSize;
8
+ hasLine?: boolean;
9
+ hasContent?: 'all' | 'active' | 'none';
10
+ hasLoader?: boolean;
11
+ isFirst?: boolean;
12
+ isLast?: boolean;
13
+ onClick?: (item: StepItemProps, index: number) => void;
14
+ contentAlign?: 'left' | 'center';
15
+ orientation?: 'horizontal' | 'vertical';
16
+ }>;
17
+ //# sourceMappingURL=StepItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAoBtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAC3B,aAAa,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CAC3C,CA+LJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export declare const SpinnerStyled: import("@linaria/react").StyledComponent<{
3
+ size: string;
4
+ } & import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("react").HTMLAttributes<HTMLDivElement> & {
5
+ width?: undefined;
6
+ height?: undefined;
7
+ size?: string | undefined;
8
+ view?: string | undefined;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare const StepItemTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
11
+ export declare const StepItemContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
12
+ export declare const BulletIndicatorWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
13
+ export declare const BulletIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
14
+ export declare const Bullet: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }>;
17
+ export declare const StepItemDivider: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
18
+ export declare const StepItemContentWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
19
+ export declare const StepItemStyled: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
20
+ //# sourceMappingURL=StepItem.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,aAAa;UAA2B,MAAM;;;;;;kDAG1D,CAAC;AAEF,eAAO,MAAM,aAAa,qKAYzB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAc3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAwClC,CAAC;AAEF,eAAO,MAAM,eAAe,qKA+C3B,CAAC;AAEF,eAAO,MAAM,MAAM;;EAYlB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAc3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAqBlC,CAAC;AAEF,eAAO,MAAM,cAAc,qKAkG1B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { ReactNode } from 'react';
2
+ import { StepsSize } from '../../Steps.types';
3
+ export declare type StepStatus = 'active' | 'inactive' | 'completed';
4
+ export interface StepItemProps {
5
+ /**
6
+ * Заголовок
7
+ */
8
+ title?: string;
9
+ /**
10
+ * Контент, может быть как React компонентом, так и функцией
11
+ */
12
+ content?: string | ReactNode | ((status: StepStatus, index: number, items: StepItemProps[]) => ReactNode);
13
+ /**
14
+ * Индикатор шага, может быть как React компонентом, так и функцией
15
+ */
16
+ indicator?: number | string | ReactNode | (({ status, item, size }: {
17
+ status: StepStatus;
18
+ item: StepItemProps;
19
+ size: StepsSize;
20
+ }) => ReactNode | null);
21
+ /**
22
+ * Статус шага
23
+ * @description
24
+ * active - активный шаг
25
+ * inactive - не пройденный шаг
26
+ * completed - завершенный шаг
27
+ */
28
+ status?: StepStatus;
29
+ /**
30
+ * Отключенный шаг
31
+ * @default false
32
+ */
33
+ disabled?: boolean;
34
+ }
35
+ //# sourceMappingURL=StepItem.types.d.ts.map