@salutejs/plasma-new-hope 0.158.0-dev.0 → 0.159.0-canary.1443.11138999097.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. package/cjs/components/Steps/Steps.css +18 -0
  2. package/cjs/components/Steps/Steps.js +113 -0
  3. package/cjs/components/Steps/Steps.js.map +1 -0
  4. package/cjs/components/Steps/Steps.styles.js +9 -0
  5. package/cjs/components/Steps/Steps.styles.js.map +1 -0
  6. package/cjs/components/Steps/Steps.styles_vv31r6.css +1 -0
  7. package/cjs/components/Steps/Steps.tokens.js +82 -0
  8. package/cjs/components/Steps/Steps.tokens.js.map +1 -0
  9. package/cjs/components/Steps/ui/StepItem/StepItem.css +16 -0
  10. package/cjs/components/Steps/ui/StepItem/StepItem.js +114 -0
  11. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  12. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +93 -0
  13. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  14. package/cjs/components/Steps/ui/StepItem/StepItem.styles_1y1xj5d.css +9 -0
  15. package/cjs/components/Steps/utils/getItemStatus.js +27 -0
  16. package/cjs/components/Steps/utils/getItemStatus.js.map +1 -0
  17. package/cjs/components/Steps/variations/_size/base.js +9 -0
  18. package/cjs/components/Steps/variations/_size/base.js.map +1 -0
  19. package/cjs/components/Steps/variations/_size/base_x642ct.css +1 -0
  20. package/cjs/components/Steps/variations/_view/base.js +9 -0
  21. package/cjs/components/Steps/variations/_view/base.js.map +1 -0
  22. package/cjs/components/Steps/variations/_view/base_x642ct.css +1 -0
  23. package/cjs/index.css +12 -0
  24. package/cjs/index.js +5 -0
  25. package/cjs/index.js.map +1 -1
  26. package/emotion/cjs/components/Steps/Steps.js +125 -0
  27. package/emotion/cjs/components/Steps/Steps.styles.js +9 -0
  28. package/emotion/cjs/components/Steps/Steps.template-doc.mdx +84 -0
  29. package/emotion/cjs/components/Steps/Steps.tokens.js +80 -0
  30. package/emotion/cjs/components/Steps/Steps.types.js +5 -0
  31. package/emotion/cjs/components/Steps/index.js +25 -0
  32. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +124 -0
  33. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +61 -0
  34. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  35. package/emotion/cjs/components/Steps/ui/StepItem/index.js +12 -0
  36. package/emotion/cjs/components/Steps/ui/index.js +16 -0
  37. package/emotion/cjs/components/Steps/utils/getItemStatus.js +26 -0
  38. package/emotion/cjs/components/Steps/variations/_size/base.js +8 -0
  39. package/emotion/cjs/components/Steps/variations/_size/tokens.json +1 -0
  40. package/emotion/cjs/components/Steps/variations/_view/base.js +8 -0
  41. package/emotion/cjs/components/Steps/variations/_view/tokens.json +1 -0
  42. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  43. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.js +11 -0
  44. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +181 -0
  45. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +25 -0
  46. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.js +11 -0
  47. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +181 -0
  48. package/emotion/cjs/index.js +11 -0
  49. package/emotion/es/components/Steps/Steps.js +116 -0
  50. package/emotion/es/components/Steps/Steps.styles.js +3 -0
  51. package/emotion/es/components/Steps/Steps.template-doc.mdx +84 -0
  52. package/emotion/es/components/Steps/Steps.tokens.js +74 -0
  53. package/emotion/es/components/Steps/Steps.types.js +1 -0
  54. package/emotion/es/components/Steps/index.js +2 -0
  55. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +116 -0
  56. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +54 -0
  57. package/emotion/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  58. package/emotion/es/components/Steps/ui/StepItem/index.js +1 -0
  59. package/emotion/es/components/Steps/ui/index.js +1 -0
  60. package/emotion/es/components/Steps/utils/getItemStatus.js +20 -0
  61. package/emotion/es/components/Steps/variations/_size/base.js +2 -0
  62. package/emotion/es/components/Steps/variations/_size/tokens.json +1 -0
  63. package/emotion/es/components/Steps/variations/_view/base.js +2 -0
  64. package/emotion/es/components/Steps/variations/_view/tokens.json +1 -0
  65. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  66. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.js +6 -0
  67. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +181 -0
  68. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +19 -0
  69. package/emotion/es/examples/plasma_web/components/Steps/Steps.js +6 -0
  70. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +181 -0
  71. package/emotion/es/index.js +1 -0
  72. package/es/components/Steps/Steps.css +18 -0
  73. package/es/components/Steps/Steps.js +108 -0
  74. package/es/components/Steps/Steps.js.map +1 -0
  75. package/es/components/Steps/Steps.styles.js +5 -0
  76. package/es/components/Steps/Steps.styles.js.map +1 -0
  77. package/es/components/Steps/Steps.styles_vv31r6.css +1 -0
  78. package/es/components/Steps/Steps.tokens.js +77 -0
  79. package/es/components/Steps/Steps.tokens.js.map +1 -0
  80. package/es/components/Steps/ui/StepItem/StepItem.css +16 -0
  81. package/es/components/Steps/ui/StepItem/StepItem.js +110 -0
  82. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  83. package/es/components/Steps/ui/StepItem/StepItem.styles.js +81 -0
  84. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  85. package/es/components/Steps/ui/StepItem/StepItem.styles_1y1xj5d.css +9 -0
  86. package/es/components/Steps/utils/getItemStatus.js +23 -0
  87. package/es/components/Steps/utils/getItemStatus.js.map +1 -0
  88. package/es/components/Steps/variations/_size/base.js +5 -0
  89. package/es/components/Steps/variations/_size/base.js.map +1 -0
  90. package/es/components/Steps/variations/_size/base_x642ct.css +1 -0
  91. package/es/components/Steps/variations/_view/base.js +5 -0
  92. package/es/components/Steps/variations/_view/base.js.map +1 -0
  93. package/es/components/Steps/variations/_view/base_x642ct.css +1 -0
  94. package/es/index.css +12 -0
  95. package/es/index.js +2 -0
  96. package/es/index.js.map +1 -1
  97. package/package.json +3 -2
  98. package/styled-components/cjs/components/Steps/Steps.js +125 -0
  99. package/styled-components/cjs/components/Steps/Steps.styles.js +9 -0
  100. package/styled-components/cjs/components/Steps/Steps.template-doc.mdx +84 -0
  101. package/styled-components/cjs/components/Steps/Steps.tokens.js +80 -0
  102. package/styled-components/cjs/components/Steps/Steps.types.js +5 -0
  103. package/styled-components/cjs/components/Steps/index.js +25 -0
  104. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +124 -0
  105. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +52 -0
  106. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  107. package/styled-components/cjs/components/Steps/ui/StepItem/index.js +12 -0
  108. package/styled-components/cjs/components/Steps/ui/index.js +16 -0
  109. package/styled-components/cjs/components/Steps/utils/getItemStatus.js +26 -0
  110. package/styled-components/cjs/components/Steps/variations/_size/base.js +8 -0
  111. package/styled-components/cjs/components/Steps/variations/_size/tokens.json +1 -0
  112. package/styled-components/cjs/components/Steps/variations/_view/base.js +8 -0
  113. package/styled-components/cjs/components/Steps/variations/_view/tokens.json +1 -0
  114. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  115. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.js +11 -0
  116. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +181 -0
  117. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +25 -0
  118. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.js +11 -0
  119. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +181 -0
  120. package/styled-components/cjs/index.js +11 -0
  121. package/styled-components/es/components/Steps/Steps.js +116 -0
  122. package/styled-components/es/components/Steps/Steps.styles.js +3 -0
  123. package/styled-components/es/components/Steps/Steps.template-doc.mdx +84 -0
  124. package/styled-components/es/components/Steps/Steps.tokens.js +74 -0
  125. package/styled-components/es/components/Steps/Steps.types.js +1 -0
  126. package/styled-components/es/components/Steps/index.js +2 -0
  127. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +116 -0
  128. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +45 -0
  129. package/styled-components/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  130. package/styled-components/es/components/Steps/ui/StepItem/index.js +1 -0
  131. package/styled-components/es/components/Steps/ui/index.js +1 -0
  132. package/styled-components/es/components/Steps/utils/getItemStatus.js +20 -0
  133. package/styled-components/es/components/Steps/variations/_size/base.js +2 -0
  134. package/styled-components/es/components/Steps/variations/_size/tokens.json +1 -0
  135. package/styled-components/es/components/Steps/variations/_view/base.js +2 -0
  136. package/styled-components/es/components/Steps/variations/_view/tokens.json +1 -0
  137. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  138. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.js +6 -0
  139. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +181 -0
  140. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +19 -0
  141. package/styled-components/es/examples/plasma_web/components/Steps/Steps.js +6 -0
  142. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +181 -0
  143. package/styled-components/es/index.js +1 -0
  144. package/types/components/Steps/Steps.d.ts +21 -0
  145. package/types/components/Steps/Steps.d.ts.map +1 -0
  146. package/types/components/Steps/Steps.styles.d.ts +2 -0
  147. package/types/components/Steps/Steps.styles.d.ts.map +1 -0
  148. package/types/components/Steps/Steps.tokens.d.ts +75 -0
  149. package/types/components/Steps/Steps.tokens.d.ts.map +1 -0
  150. package/types/components/Steps/Steps.types.d.ts +63 -0
  151. package/types/components/Steps/Steps.types.d.ts.map +1 -0
  152. package/types/components/Steps/index.d.ts +4 -0
  153. package/types/components/Steps/index.d.ts.map +1 -0
  154. package/types/components/Steps/ui/StepItem/StepItem.d.ts +17 -0
  155. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -0
  156. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +32 -0
  157. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -0
  158. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts +34 -0
  159. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts.map +1 -0
  160. package/types/components/Steps/ui/StepItem/index.d.ts +3 -0
  161. package/types/components/Steps/ui/StepItem/index.d.ts.map +1 -0
  162. package/types/components/Steps/ui/index.d.ts +2 -0
  163. package/types/components/Steps/ui/index.d.ts.map +1 -0
  164. package/types/components/Steps/utils/getItemStatus.d.ts +9 -0
  165. package/types/components/Steps/utils/getItemStatus.d.ts.map +1 -0
  166. package/types/components/Steps/variations/_size/base.d.ts +2 -0
  167. package/types/components/Steps/variations/_size/base.d.ts.map +1 -0
  168. package/types/components/Steps/variations/_view/base.d.ts +2 -0
  169. package/types/components/Steps/variations/_view/base.d.ts.map +1 -0
  170. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts +18 -0
  171. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -0
  172. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts +35 -0
  173. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts.map +1 -0
  174. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts +18 -0
  175. package/types/examples/plasma_web/components/Steps/Steps.config.d.ts.map +1 -0
  176. package/types/examples/plasma_web/components/Steps/Steps.d.ts +35 -0
  177. package/types/examples/plasma_web/components/Steps/Steps.d.ts.map +1 -0
  178. package/types/index.d.ts +1 -0
  179. package/types/index.d.ts.map +1 -1
@@ -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-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.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,181 @@
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_web/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
+
61
+ if (simple) {
62
+ return {
63
+ indicator,
64
+ status: 'inactive',
65
+ };
66
+ }
67
+
68
+ return {
69
+ title: innerTitle,
70
+ content,
71
+ indicator,
72
+ status: 'inactive',
73
+ };
74
+ });
75
+
76
+ setItems(newItems);
77
+ }, [hasContent, loading, quantity, innerTitle, content, simple]);
78
+
79
+ useEffect(() => {
80
+ setItems((curItems) =>
81
+ curItems.map((item, index) => {
82
+ if (indicatorType === 'numbered') {
83
+ return { ...item, indicator: index + 1 };
84
+ }
85
+
86
+ if (indicatorType === 'bullet') {
87
+ return { ...item, indicator: undefined };
88
+ }
89
+
90
+ if (indicatorType === 'icon') {
91
+ return { ...item, indicator: renderIndicator };
92
+ }
93
+
94
+ return item;
95
+ }),
96
+ );
97
+ }, [indicatorType]);
98
+
99
+ useEffect(() => {
100
+ setItems((curItems) => curItems.map((item) => ({ ...item, disabled })));
101
+ }, [disabled]);
102
+
103
+ const onChange = (item: StepItemProps, index: number, prevIndex: number) => {
104
+ if (prevIndex !== undefined) {
105
+ items[prevIndex].status = 'completed';
106
+ }
107
+
108
+ items[index].status = 'active';
109
+
110
+ setItems([...items]);
111
+ };
112
+
113
+ return (
114
+ <div style={{ maxWidth }}>
115
+ <Steps size={size} items={items} onChange={onChange} hasLoader={loading} {...rest} />
116
+ </div>
117
+ );
118
+ };
119
+
120
+ export const Default: Story = {
121
+ args: {
122
+ maxWidth: '100%',
123
+ quantity: 6,
124
+ size: 'm',
125
+ title: 'Title',
126
+ content: 'Content',
127
+ contentAlign: 'left',
128
+ indicatorType: 'numbered',
129
+ orientation: 'horizontal',
130
+ hasLine: true,
131
+ hasContent: 'all',
132
+ disabled: false,
133
+ loading: false,
134
+ simple: false,
135
+ },
136
+ argTypes: {
137
+ maxWidth: {
138
+ control: {
139
+ type: 'text',
140
+ },
141
+ },
142
+ size: {
143
+ options: ['xs', 's', 'm', 'l'],
144
+ control: {
145
+ type: 'inline-radio',
146
+ },
147
+ },
148
+ orientation: {
149
+ options: ['horizontal', 'vertical'],
150
+ control: {
151
+ type: 'inline-radio',
152
+ },
153
+ },
154
+ contentAlign: {
155
+ options: ['left', 'center'],
156
+ control: {
157
+ type: 'inline-radio',
158
+ },
159
+ if: { arg: 'orientation', eq: 'horizontal' },
160
+ },
161
+ indicatorType: {
162
+ options: ['numbered', 'bullet', 'icon'],
163
+ control: {
164
+ type: 'inline-radio',
165
+ },
166
+ },
167
+ hasContent: {
168
+ options: ['all', 'active', 'none'],
169
+ control: {
170
+ type: 'inline-radio',
171
+ },
172
+ },
173
+ simple: {
174
+ control: {
175
+ type: 'boolean',
176
+ },
177
+ },
178
+ ...disableProps(['view']),
179
+ },
180
+ render: (args) => <DefaultStory {...args} />,
181
+ };
@@ -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';
@@ -0,0 +1,21 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import type { RootPropsOmitOnChange } from '../../engines/types';
3
+ import { StepsProps as BaseStepsProps } from './Steps.types';
4
+ declare type StepsProps = BaseStepsProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
5
+ export declare const stepsRoot: (Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps>) => React.ForwardRefExoticComponent<BaseStepsProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const stepsConfig: {
7
+ name: string;
8
+ tag: string;
9
+ layout: (Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps>) => React.ForwardRefExoticComponent<BaseStepsProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<HTMLDivElement>>;
10
+ base: import("@linaria/core").LinariaClassName;
11
+ variations: {
12
+ size: import("@linaria/core").LinariaClassName;
13
+ view: import("@linaria/core").LinariaClassName;
14
+ };
15
+ defaults: {
16
+ view: string;
17
+ size: string;
18
+ };
19
+ };
20
+ export {};
21
+ //# 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,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAO7D,aAAK,UAAU,GAAG,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,SAAU,sBAAsB,cAAc,EAAE,UAAU,CAAC,mJA6E3E,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBA/EQ,sBAAsB,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CA4FhF,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,75 @@
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
+ indentDivider: string;
13
+ transparentDivider: string;
14
+ };
15
+ export declare const tokens: {
16
+ indicatorSize: string;
17
+ activeIndicatorSize: string;
18
+ bulletSize: string;
19
+ activeBulletSize: string;
20
+ titlePaddingTop: string;
21
+ contentPaddingTop: string;
22
+ contentPaddingRight: string;
23
+ contentSidePadding: string;
24
+ contentVerticalPadding: string;
25
+ verticalContentPaddingLeft: string;
26
+ smallIndicatorIndentHeight: string;
27
+ largeIndicatorIndentHeight: string;
28
+ smallBulletIndentHeight: string;
29
+ largeBulletIndentHeight: string;
30
+ titleFontFamily: string;
31
+ titleFontSize: string;
32
+ titleFontStyle: string;
33
+ titleFontWeight: string;
34
+ titleLetterSpacing: string;
35
+ titleLineHeight: string;
36
+ contentFontFamily: string;
37
+ contentFontSize: string;
38
+ contentFontStyle: string;
39
+ contentFontWeight: string;
40
+ contentLetterSpacing: string;
41
+ contentLineHeight: string;
42
+ indicatorFontFamily: string;
43
+ indicatorFontSize: string;
44
+ indicatorFontStyle: string;
45
+ indicatorFontWeight: string;
46
+ indicatorLetterSpacing: string;
47
+ indicatorLineHeight: string;
48
+ activeIndicatorFontFamily: string;
49
+ activeIndicatorFontSize: string;
50
+ activeIndicatorFontStyle: string;
51
+ activeIndicatorFontWeight: string;
52
+ activeIndicatorLetterSpacing: string;
53
+ activeIndicatorLineHeight: string;
54
+ activeTitleColor: string;
55
+ activeTitleColorHover: string;
56
+ inactiveTitleColor: string;
57
+ inactiveTitleColorHover: string;
58
+ contentColor: string;
59
+ activeIndicatorBorder: string;
60
+ activeIndicatorBorderHover: string;
61
+ activeIndicatorColor: string;
62
+ activeIndicatorColorHover: string;
63
+ activeIndicatorBackground: string;
64
+ completedIndicatorColor: string;
65
+ completedIndicatorColorHover: string;
66
+ completedIndicatorBackground: string;
67
+ completedIndicatorBackgroundHover: string;
68
+ inactiveIndicatorColor: string;
69
+ inactiveIndicatorColorHover: string;
70
+ inactiveIndicatorBackground: string;
71
+ inactiveIndicatorBackgroundHover: string;
72
+ disabledOpacity: string;
73
+ dividerThickness: string;
74
+ };
75
+ //# 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;;;;;;;;;;;;;CAanB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyElB,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { StepStatus, StepItemProps } from './ui';
2
+ export declare type StepsContent = 'all' | 'active' | 'none';
3
+ export declare type StepsContentAlign = 'left' | 'center';
4
+ export declare type StepsOrientation = 'horizontal' | 'vertical';
5
+ export interface StepsProps {
6
+ /**
7
+ * Массив шагов
8
+ * @default []
9
+ */
10
+ items?: StepItemProps[];
11
+ /**
12
+ * Размер шага
13
+ */
14
+ size?: string;
15
+ /**
16
+ * Отображение шага
17
+ */
18
+ view?: string;
19
+ /**
20
+ * Ориентация компонента
21
+ * @default 'horizontal'
22
+ */
23
+ orientation?: StepsOrientation;
24
+ /**
25
+ * Выравнивание контента в шагах
26
+ * @default 'left'
27
+ * @description
28
+ * left - выравнивание по левому краю
29
+ * center - выравнивание по центру
30
+ */
31
+ contentAlign?: StepsContentAlign;
32
+ /**
33
+ * Включает разделительную линию
34
+ * @default true
35
+ */
36
+ hasLine?: boolean;
37
+ /**
38
+ * Режим отображения контента
39
+ * @default 'all'
40
+ * @description
41
+ * all - контент у всех элементов
42
+ * active - только у активного
43
+ * none - контент скрыт
44
+ */
45
+ hasContent?: StepsContent;
46
+ /**
47
+ * Отображает лоадер вместо индикатора активного шага.
48
+ */
49
+ hasLoader?: boolean;
50
+ /**
51
+ * Индекс текущего шага, для uncontrolled компонента
52
+ */
53
+ current?: number;
54
+ /**
55
+ * Статус текущего шага, имеет приоритет над item.status
56
+ */
57
+ status?: StepStatus;
58
+ /**
59
+ * Обработчик изменения шага, делает индикаторы и заголовки шагов кликабельными
60
+ */
61
+ onChange?: (item: StepItemProps, index: number, prevIndex?: number) => void;
62
+ }
63
+ //# 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,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClD,oBAAY,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,iBAAiB,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 { StepItemProps } from './ui/StepItem/StepItem.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,aAAa,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { StepsContent, StepsContentAlign, StepsOrientation } 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: string;
8
+ hasLine?: boolean;
9
+ hasContent?: StepsContent;
10
+ hasLoader?: boolean;
11
+ isFirst?: boolean;
12
+ isLast?: boolean;
13
+ onClick?: (item: StepItemProps, index: number) => void;
14
+ contentAlign?: StepsContentAlign;
15
+ orientation?: StepsOrientation;
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,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAqBtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAC3B,aAAa,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,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,iBAAiB,CAAC;IACjC,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC,CA2LJ,CAAC"}
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ export declare const SpinnerStyled: import("@linaria/react").StyledComponent<{
3
+ hasIndicator?: boolean | undefined;
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>) | (import("react").HTMLAttributes<HTMLDivElement> & {
10
+ width: number;
11
+ height: number;
12
+ size?: undefined;
13
+ view?: string | undefined;
14
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
15
+ width: string;
16
+ height: string;
17
+ size?: undefined;
18
+ view?: string | undefined;
19
+ } & import("react").RefAttributes<HTMLDivElement>)))>;
20
+ export declare const StepItemTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
21
+ export declare const StepItemContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
22
+ export declare const BulletIndicatorWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
23
+ export declare const BulletIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
24
+ export declare const Bullet: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
25
+ as?: import("react").ElementType<any> | undefined;
26
+ }>;
27
+ export declare const StepItemDivider: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
28
+ indentToken?: string | undefined;
29
+ }>;
30
+ export declare const StepItemContentWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
31
+ export declare const StepItemStyled: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
32
+ //# 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;;;;;;;;;;;;;;;;;qDAIzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAYzB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAc3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAsClC,CAAC;AAEF,eAAO,MAAM,eAAe,qKA+C3B,CAAC;AAEF,eAAO,MAAM,MAAM;;EAYlB,CAAC;AAEF,eAAO,MAAM,eAAe;;EA8B3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAalC,CAAC;AAEF,eAAO,MAAM,cAAc,qKA+E1B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { ReactNode } from 'react';
2
+ export declare type StepStatus = 'active' | 'inactive' | 'completed';
3
+ export interface StepItemProps {
4
+ /**
5
+ * Заголовок
6
+ */
7
+ title?: string;
8
+ /**
9
+ * Контент, может быть как React компонентом, так и функцией
10
+ */
11
+ content?: string | ReactNode | ((status: StepStatus, index: number, items: StepItemProps[]) => ReactNode);
12
+ /**
13
+ * Индикатор шага, может быть как React компонентом, так и функцией
14
+ */
15
+ indicator?: number | string | ReactNode | (({ status, item, size }: {
16
+ status: StepStatus;
17
+ item: StepItemProps;
18
+ size: string;
19
+ }) => ReactNode);
20
+ /**
21
+ * Статус шага
22
+ * @description
23
+ * active - активный шаг
24
+ * inactive - не пройденный шаг
25
+ * completed - завершенный шаг
26
+ */
27
+ status?: StepStatus;
28
+ /**
29
+ * Отключенный шаг
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ }
34
+ //# sourceMappingURL=StepItem.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepItem.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,oBAAY,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,SAAS,CAAC,CAAC;IAC1G;;OAEG;IACH,SAAS,CAAC,EACJ,MAAM,GACN,MAAM,GACN,SAAS,GACT,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,MAAM,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,aAAa,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IACzG;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -0,0 +1,3 @@
1
+ export { StepItem } from './StepItem';
2
+ export type { StepItemProps, StepStatus } from './StepItem.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StepItem';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Steps/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { StepItemProps, StepStatus } from '../ui';
2
+ export declare const getItemStatus: ({ isUncontrolled, current, status, index, item, }: {
3
+ isUncontrolled: boolean;
4
+ current?: number | undefined;
5
+ status?: StepStatus | undefined;
6
+ index: number;
7
+ item: StepItemProps;
8
+ }) => StepStatus;
9
+ //# sourceMappingURL=getItemStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getItemStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/Steps/utils/getItemStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,aAAa;oBAON,OAAO;;;WAGhB,MAAM;UACP,aAAa;gBAmBtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const base: import("@linaria/core").LinariaClassName;
2
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/variations/_size/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const base: import("@linaria/core").LinariaClassName;
2
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/variations/_view/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ size: string;
4
+ view: string;
5
+ };
6
+ variations: {
7
+ view: {
8
+ default: import("@linaria/core").LinariaClassName;
9
+ };
10
+ size: {
11
+ l: import("@linaria/core").LinariaClassName;
12
+ m: import("@linaria/core").LinariaClassName;
13
+ s: import("@linaria/core").LinariaClassName;
14
+ xs: import("@linaria/core").LinariaClassName;
15
+ };
16
+ };
17
+ };
18
+ //# sourceMappingURL=Steps.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Steps/Steps.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CA8NlB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ declare const mergedConfig: import("../../../../engines").ComponentConfig<string, {
3
+ view: {
4
+ default: import("@linaria/core").LinariaClassName;
5
+ };
6
+ size: {
7
+ l: import("@linaria/core").LinariaClassName;
8
+ m: import("@linaria/core").LinariaClassName;
9
+ s: import("@linaria/core").LinariaClassName;
10
+ xs: import("@linaria/core").LinariaClassName;
11
+ };
12
+ }, import("../../../../engines/types").PropsType<{
13
+ view: {
14
+ default: import("@linaria/core").LinariaClassName;
15
+ };
16
+ size: {
17
+ l: import("@linaria/core").LinariaClassName;
18
+ m: import("@linaria/core").LinariaClassName;
19
+ s: import("@linaria/core").LinariaClassName;
20
+ xs: import("@linaria/core").LinariaClassName;
21
+ };
22
+ }>, import("../../../../components/Steps/Steps.types").StepsProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
23
+ declare const Steps: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
24
+ view: {
25
+ default: import("@linaria/core").LinariaClassName;
26
+ };
27
+ size: {
28
+ l: import("@linaria/core").LinariaClassName;
29
+ m: import("@linaria/core").LinariaClassName;
30
+ s: import("@linaria/core").LinariaClassName;
31
+ xs: import("@linaria/core").LinariaClassName;
32
+ };
33
+ }> & import("../../../../components/Steps/Steps.types").StepsProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
34
+ export { Steps, mergedConfig };
35
+ //# sourceMappingURL=Steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Steps/Steps.ts"],"names":[],"mappings":";AAKA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;qLAAmC,CAAC;AAEtD,QAAA,MAAM,KAAK;;;;;;;;;;sLAA0B,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC"}