@salutejs/plasma-new-hope 0.157.0-canary.1438.11114279484.0 → 0.157.0-canary.1443.11121362963.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.css +0 -12
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +42 -63
  3. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  4. package/cjs/components/Attach/Attach.css +1 -13
  5. package/cjs/components/Attach/ui/Cell/Cell.styles.js +1 -0
  6. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  7. package/cjs/components/Breadcrumbs/Breadcrumbs.css +0 -4
  8. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js +17 -17
  9. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js.map +1 -1
  10. package/cjs/components/ButtonBase/index.js +7 -7
  11. package/cjs/components/ButtonBase/index.js.map +1 -1
  12. package/cjs/components/Cell/Cell.css +1 -13
  13. package/cjs/components/Cell/Cell.styles.js +24 -46
  14. package/cjs/components/Cell/Cell.styles.js.map +1 -1
  15. package/cjs/components/Cell/Cell.styles_ygfo1w.css +1 -0
  16. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +5 -7
  17. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -1
  18. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +5 -7
  19. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -1
  20. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +5 -7
  21. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -1
  22. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +5 -7
  23. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -1
  24. package/cjs/components/Combobox/ComboboxNew/Combobox.css +1 -13
  25. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +1 -13
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +1 -13
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -0
  28. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  29. package/cjs/components/Drawer/Drawer.css +0 -2
  30. package/cjs/components/Drawer/Drawer.styles.js +62 -9
  31. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  32. package/cjs/components/Steps/Steps.css +18 -0
  33. package/cjs/components/Steps/Steps.js +109 -0
  34. package/cjs/components/Steps/Steps.js.map +1 -0
  35. package/cjs/components/Steps/Steps.styles.js +9 -0
  36. package/cjs/components/Steps/Steps.styles.js.map +1 -0
  37. package/cjs/components/Steps/Steps.styles_1qandre.css +1 -0
  38. package/cjs/components/Steps/Steps.tokens.js +78 -0
  39. package/cjs/components/Steps/Steps.tokens.js.map +1 -0
  40. package/cjs/components/Steps/ui/StepItem/StepItem.css +16 -0
  41. package/cjs/components/Steps/ui/StepItem/StepItem.js +126 -0
  42. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  43. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +83 -0
  44. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  45. package/cjs/components/Steps/ui/StepItem/StepItem.styles_1vqessf.css +9 -0
  46. package/cjs/components/Steps/variations/_size/base.js +9 -0
  47. package/cjs/components/Steps/variations/_size/base.js.map +1 -0
  48. package/cjs/components/Steps/variations/_size/base_x642ct.css +1 -0
  49. package/cjs/components/Steps/variations/_view/base.js +9 -0
  50. package/cjs/components/Steps/variations/_view/base.js.map +1 -0
  51. package/cjs/components/Steps/variations/_view/base_x642ct.css +1 -0
  52. package/cjs/index.css +13 -33
  53. package/cjs/index.js +5 -0
  54. package/cjs/index.js.map +1 -1
  55. package/cjs/mixins/applyDisabled.js +3 -3
  56. package/cjs/mixins/applyDisabled.js.map +1 -1
  57. package/emotion/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +15 -55
  58. package/emotion/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js +7 -14
  59. package/emotion/cjs/components/ButtonBase/index.js +5 -6
  60. package/emotion/cjs/components/Cell/Cell.styles.js +10 -29
  61. package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles.js +4 -5
  62. package/emotion/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +4 -5
  63. package/emotion/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +4 -5
  64. package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +4 -5
  65. package/emotion/cjs/components/Drawer/Drawer.styles.js +11 -6
  66. package/emotion/cjs/components/Steps/Steps.js +121 -0
  67. package/emotion/cjs/components/Steps/Steps.styles.js +9 -0
  68. package/emotion/cjs/components/Steps/Steps.template-doc.mdx +304 -0
  69. package/emotion/cjs/components/Steps/Steps.tokens.js +76 -0
  70. package/emotion/cjs/components/Steps/Steps.types.js +5 -0
  71. package/emotion/cjs/components/Steps/index.js +25 -0
  72. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +136 -0
  73. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +52 -0
  74. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  75. package/emotion/cjs/components/Steps/ui/StepItem/index.js +12 -0
  76. package/emotion/cjs/components/Steps/ui/index.js +16 -0
  77. package/emotion/cjs/components/Steps/variations/_size/base.js +8 -0
  78. package/emotion/cjs/components/Steps/variations/_size/tokens.json +1 -0
  79. package/emotion/cjs/components/Steps/variations/_view/base.js +8 -0
  80. package/emotion/cjs/components/Steps/variations/_view/tokens.json +1 -0
  81. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  82. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.js +13 -0
  83. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +152 -0
  84. package/emotion/cjs/index.js +11 -0
  85. package/emotion/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +15 -55
  86. package/emotion/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js +7 -14
  87. package/emotion/es/components/ButtonBase/index.js +5 -6
  88. package/emotion/es/components/Cell/Cell.styles.js +10 -29
  89. package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +4 -5
  90. package/emotion/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +4 -5
  91. package/emotion/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +4 -5
  92. package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +4 -5
  93. package/emotion/es/components/Drawer/Drawer.styles.js +11 -6
  94. package/emotion/es/components/Steps/Steps.js +112 -0
  95. package/emotion/es/components/Steps/Steps.styles.js +3 -0
  96. package/emotion/es/components/Steps/Steps.template-doc.mdx +304 -0
  97. package/emotion/es/components/Steps/Steps.tokens.js +70 -0
  98. package/emotion/es/components/Steps/Steps.types.js +1 -0
  99. package/emotion/es/components/Steps/index.js +2 -0
  100. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +127 -0
  101. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +45 -0
  102. package/emotion/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  103. package/emotion/es/components/Steps/ui/StepItem/index.js +1 -0
  104. package/emotion/es/components/Steps/ui/index.js +1 -0
  105. package/emotion/es/components/Steps/variations/_size/base.js +2 -0
  106. package/emotion/es/components/Steps/variations/_size/tokens.json +1 -0
  107. package/emotion/es/components/Steps/variations/_view/base.js +2 -0
  108. package/emotion/es/components/Steps/variations/_view/tokens.json +1 -0
  109. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  110. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.js +9 -0
  111. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +152 -0
  112. package/emotion/es/index.js +1 -0
  113. package/es/components/Accordion/ui/AccordionItem/AccordionItem.css +0 -12
  114. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +42 -63
  115. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  116. package/es/components/Attach/Attach.css +1 -13
  117. package/es/components/Attach/ui/Cell/Cell.styles.js +1 -0
  118. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  119. package/es/components/Breadcrumbs/Breadcrumbs.css +0 -4
  120. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js +17 -17
  121. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.js.map +1 -1
  122. package/es/components/ButtonBase/index.js +7 -7
  123. package/es/components/ButtonBase/index.js.map +1 -1
  124. package/es/components/Cell/Cell.css +1 -13
  125. package/es/components/Cell/Cell.styles.js +24 -46
  126. package/es/components/Cell/Cell.styles.js.map +1 -1
  127. package/es/components/Cell/Cell.styles_ygfo1w.css +1 -0
  128. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js +5 -7
  129. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles.js.map +1 -1
  130. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js +5 -7
  131. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.js.map +1 -1
  132. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js +5 -7
  133. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.js.map +1 -1
  134. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js +5 -7
  135. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.js.map +1 -1
  136. package/es/components/Combobox/ComboboxNew/Combobox.css +1 -13
  137. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +1 -13
  138. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +1 -13
  139. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -0
  140. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  141. package/es/components/Drawer/Drawer.css +0 -2
  142. package/es/components/Drawer/Drawer.styles.js +62 -9
  143. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  144. package/es/components/Steps/Steps.css +18 -0
  145. package/es/components/Steps/Steps.js +104 -0
  146. package/es/components/Steps/Steps.js.map +1 -0
  147. package/es/components/Steps/Steps.styles.js +5 -0
  148. package/es/components/Steps/Steps.styles.js.map +1 -0
  149. package/es/components/Steps/Steps.styles_1qandre.css +1 -0
  150. package/es/components/Steps/Steps.tokens.js +73 -0
  151. package/es/components/Steps/Steps.tokens.js.map +1 -0
  152. package/es/components/Steps/ui/StepItem/StepItem.css +16 -0
  153. package/es/components/Steps/ui/StepItem/StepItem.js +122 -0
  154. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -0
  155. package/es/components/Steps/ui/StepItem/StepItem.styles.js +71 -0
  156. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -0
  157. package/es/components/Steps/ui/StepItem/StepItem.styles_1vqessf.css +9 -0
  158. package/es/components/Steps/variations/_size/base.js +5 -0
  159. package/es/components/Steps/variations/_size/base.js.map +1 -0
  160. package/es/components/Steps/variations/_size/base_x642ct.css +1 -0
  161. package/es/components/Steps/variations/_view/base.js +5 -0
  162. package/es/components/Steps/variations/_view/base.js.map +1 -0
  163. package/es/components/Steps/variations/_view/base_x642ct.css +1 -0
  164. package/es/index.css +13 -33
  165. package/es/index.js +2 -0
  166. package/es/index.js.map +1 -1
  167. package/package.json +2 -2
  168. package/styled-components/cjs/components/Drawer/Drawer.styles.js +8 -2
  169. package/styled-components/cjs/components/Steps/Steps.js +121 -0
  170. package/styled-components/cjs/components/Steps/Steps.styles.js +9 -0
  171. package/styled-components/cjs/components/Steps/Steps.template-doc.mdx +304 -0
  172. package/styled-components/cjs/components/Steps/Steps.tokens.js +76 -0
  173. package/styled-components/cjs/components/Steps/Steps.types.js +5 -0
  174. package/styled-components/cjs/components/Steps/index.js +25 -0
  175. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +136 -0
  176. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +43 -0
  177. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.types.js +5 -0
  178. package/styled-components/cjs/components/Steps/ui/StepItem/index.js +12 -0
  179. package/styled-components/cjs/components/Steps/ui/index.js +16 -0
  180. package/styled-components/cjs/components/Steps/variations/_size/base.js +8 -0
  181. package/styled-components/cjs/components/Steps/variations/_size/tokens.json +1 -0
  182. package/styled-components/cjs/components/Steps/variations/_view/base.js +8 -0
  183. package/styled-components/cjs/components/Steps/variations/_view/tokens.json +1 -0
  184. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +25 -0
  185. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.js +13 -0
  186. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +152 -0
  187. package/styled-components/cjs/index.js +11 -0
  188. package/styled-components/es/components/Drawer/Drawer.styles.js +8 -2
  189. package/styled-components/es/components/Steps/Steps.js +112 -0
  190. package/styled-components/es/components/Steps/Steps.styles.js +3 -0
  191. package/styled-components/es/components/Steps/Steps.template-doc.mdx +304 -0
  192. package/styled-components/es/components/Steps/Steps.tokens.js +70 -0
  193. package/styled-components/es/components/Steps/Steps.types.js +1 -0
  194. package/styled-components/es/components/Steps/index.js +2 -0
  195. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +127 -0
  196. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +36 -0
  197. package/styled-components/es/components/Steps/ui/StepItem/StepItem.types.js +1 -0
  198. package/styled-components/es/components/Steps/ui/StepItem/index.js +1 -0
  199. package/styled-components/es/components/Steps/ui/index.js +1 -0
  200. package/styled-components/es/components/Steps/variations/_size/base.js +2 -0
  201. package/styled-components/es/components/Steps/variations/_size/tokens.json +1 -0
  202. package/styled-components/es/components/Steps/variations/_view/base.js +2 -0
  203. package/styled-components/es/components/Steps/variations/_view/tokens.json +1 -0
  204. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +19 -0
  205. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.js +9 -0
  206. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +152 -0
  207. package/styled-components/es/index.js +1 -0
  208. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +11 -11
  209. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +1 -1
  210. package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.d.ts +3 -4
  211. package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.d.ts.map +1 -1
  212. package/types/components/ButtonBase/index.d.ts +1 -2
  213. package/types/components/ButtonBase/index.d.ts.map +1 -1
  214. package/types/components/Cell/Cell.styles.d.ts +6 -7
  215. package/types/components/Cell/Cell.styles.d.ts.map +1 -1
  216. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts +1 -2
  217. package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -1
  218. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts +1 -2
  219. package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts.map +1 -1
  220. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts +1 -2
  221. package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts.map +1 -1
  222. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts +1 -2
  223. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts.map +1 -1
  224. package/types/components/Drawer/Drawer.styles.d.ts +2 -2
  225. package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
  226. package/types/components/Steps/Steps.d.ts +23 -0
  227. package/types/components/Steps/Steps.d.ts.map +1 -0
  228. package/types/components/Steps/Steps.styles.d.ts +2 -0
  229. package/types/components/Steps/Steps.styles.d.ts.map +1 -0
  230. package/types/components/Steps/Steps.tokens.d.ts +71 -0
  231. package/types/components/Steps/Steps.tokens.d.ts.map +1 -0
  232. package/types/components/Steps/Steps.types.d.ts +59 -0
  233. package/types/components/Steps/Steps.types.d.ts.map +1 -0
  234. package/types/components/Steps/index.d.ts +4 -0
  235. package/types/components/Steps/index.d.ts.map +1 -0
  236. package/types/components/Steps/ui/StepItem/StepItem.d.ts +16 -0
  237. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -0
  238. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +20 -0
  239. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -0
  240. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts +34 -0
  241. package/types/components/Steps/ui/StepItem/StepItem.types.d.ts.map +1 -0
  242. package/types/components/Steps/ui/StepItem/index.d.ts +3 -0
  243. package/types/components/Steps/ui/StepItem/index.d.ts.map +1 -0
  244. package/types/components/Steps/ui/index.d.ts +2 -0
  245. package/types/components/Steps/ui/index.d.ts.map +1 -0
  246. package/types/components/Steps/variations/_size/base.d.ts +2 -0
  247. package/types/components/Steps/variations/_size/base.d.ts.map +1 -0
  248. package/types/components/Steps/variations/_view/base.d.ts +2 -0
  249. package/types/components/Steps/variations/_view/base.d.ts.map +1 -0
  250. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts +18 -0
  251. package/types/examples/plasma_b2c/components/Steps/Steps.config.d.ts.map +1 -0
  252. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts +35 -0
  253. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts.map +1 -0
  254. package/types/index.d.ts +1 -0
  255. package/types/index.d.ts.map +1 -1
  256. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles_aus2x3.css +0 -11
  257. package/cjs/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles_czqxks.css +0 -3
  258. package/cjs/components/Breadcrumbs/utils/index.css +0 -17
  259. package/cjs/components/ButtonBase/index_1skcmbb.css +0 -1
  260. package/cjs/components/Cell/Cell.styles_1lali49.css +0 -5
  261. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.css +0 -7
  262. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.styles_rgpies.css +0 -1
  263. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.css +0 -1
  264. package/cjs/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles_1x97zqi.css +0 -1
  265. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.css +0 -1
  266. package/cjs/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles_n7i06q.css +0 -1
  267. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.css +0 -1
  268. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles_jogov7.css +0 -1
  269. package/cjs/components/Drawer/Drawer.styles_19qopdy.css +0 -1
  270. package/cjs/components/_Icon/Icons/IconClose.css +0 -1
  271. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles_aus2x3.css +0 -11
  272. package/es/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles_czqxks.css +0 -3
  273. package/es/components/Breadcrumbs/utils/index.css +0 -17
  274. package/es/components/ButtonBase/index_1skcmbb.css +0 -1
  275. package/es/components/Cell/Cell.styles_1lali49.css +0 -5
  276. package/es/components/Cell/ui/CellTextbox/CellTextbox.css +0 -7
  277. package/es/components/Cell/ui/CellTextbox/CellTextbox.styles_rgpies.css +0 -1
  278. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.css +0 -1
  279. package/es/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles_1x97zqi.css +0 -1
  280. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.css +0 -1
  281. package/es/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles_n7i06q.css +0 -1
  282. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.css +0 -1
  283. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles_jogov7.css +0 -1
  284. package/es/components/Drawer/Drawer.styles_19qopdy.css +0 -1
  285. package/es/components/_Icon/Icons/IconClose.css +0 -1
@@ -0,0 +1,304 @@
1
+ ---
2
+ id: steps
3
+ title: Steps
4
+ ---
5
+
6
+ # Steps
7
+ Шаги могут отображаться в нескольких размерах, в упрощенном виде и в горизонтальной/вертикальной ориентации
8
+
9
+ ```tsx live
10
+ import { ReactNode } from 'react';
11
+
12
+ export type StepStatus = 'active' | 'inactive' | 'completed';
13
+
14
+ export interface StepItemProps {
15
+ /**
16
+ * Заголовок
17
+ */
18
+ title?: string;
19
+ /**
20
+ * Контент, может быть как React компонентом, так и функцией
21
+ */
22
+ content?: string | ReactNode | ((status: StepStatus, index: number, items: StepItemProps[]) => ReactNode);
23
+ /**
24
+ * Индикатор шага, может быть как React компонентом, так и функцией
25
+ */
26
+ indicator?: number | string | ReactNode | ((status: StepStatus, item: StepItemProps) => ReactNode | null);
27
+ /**
28
+ * Статус шага: активный, инактивный, завершенный
29
+ * @description
30
+ * active - активный шаг
31
+ * inactive - не пройденный шаг
32
+ * completed - пройденный шаг
33
+ */
34
+ status?: StepStatus;
35
+ /**
36
+ * Отключенный шаг
37
+ * @default false
38
+ */
39
+ disabled?: boolean;
40
+ }
41
+
42
+ interface BaseSteps {
43
+ /**
44
+ * Ориентация компонента
45
+ * @default 'horizontal'
46
+ */
47
+ orientation?: 'horizontal' | 'vertical';
48
+ /**
49
+ * Выравнивание контента в шагах
50
+ * @default 'left'
51
+ */
52
+ contentAlign?: 'left' | 'center';
53
+ /**
54
+ * Включает разделительную линию
55
+ * @default true
56
+ */
57
+ hasLine?: boolean;
58
+ /**
59
+ * Индекс текущего шага, для uncontrolled компонента
60
+ */
61
+ current?: number;
62
+ /**
63
+ * Статус текущего шага, имеет приоритет над item.status
64
+ */
65
+ status?: StepStatus;
66
+ /**
67
+ * Обработчик изменения шага, делает индикаторы и заголовки шагов кликабельными
68
+ */
69
+ onChange?: (item: StepItemProps, index: number, prevIndex?: number) => void;
70
+ /**
71
+ * Массив шагов
72
+ */
73
+ items: StepItemProps[];
74
+ }
75
+
76
+ type IndicatorSizeSimple = 8 | 16;
77
+ type IndicatorSize = 24 | 36;
78
+
79
+ export type Steps = BaseSteps & {
80
+ /**
81
+ * Размер шага
82
+ */
83
+ size: 'xs' | 's';
84
+ indicatorSize: never;
85
+ } & {
86
+ /**
87
+ * Размер шага
88
+ */
89
+ size: 'm' | 'l';
90
+ /**
91
+ * Размер индикатора
92
+ */
93
+ indicatorSize: IndicatorSize | IndicatorSizeSimple;
94
+ };
95
+
96
+ ```
97
+
98
+ примеры использования https://codesandbox.io/p/devbox/crzql2?file=%2Fsrc%2FDemo.tsx%3A23%2C1
99
+
100
+ ```
101
+ import React, { useState } from 'react';
102
+ import { fullItems } from './App.data.tsx';
103
+ import { Steps } from './Steps/Steps.tsx';
104
+ import { StepItemProps, StepStatus } from './Steps/Steps.types';
105
+
106
+ const DemoContent: React.FC<{ onClick: () => void; status: string; index?: number; current?: number }> = ({
107
+ onClick,
108
+ status,
109
+ index,
110
+ current = 0,
111
+ children,
112
+ }) => {
113
+ return (
114
+ <>
115
+ <div>Content</div>
116
+ <button onClick={onClick} disabled={index !== (current || 0)}>
117
+ {children}
118
+ </button>
119
+ </>
120
+ );
121
+ };
122
+
123
+ export const DemoWithExternalControl = () => {
124
+ const items = [
125
+ {
126
+ title: 'Title',
127
+ indicator: '1',
128
+ content: 'Content',
129
+ },
130
+ {
131
+ title: 'Title',
132
+ indicator: '2',
133
+ content: 'Content',
134
+ },
135
+ {
136
+ title: 'Title',
137
+ indicator: '3',
138
+ content: 'Content',
139
+ },
140
+ {
141
+ title: 'Title',
142
+ indicator: '4',
143
+ content: 'Content',
144
+ },
145
+ ];
146
+
147
+ const [current, setCurrent] = useState(1);
148
+ const [status, setStatus] = useState('active');
149
+
150
+ const isLast = current === items.length - 1;
151
+
152
+ const onClick = () => {
153
+ if (isLast) {
154
+ setStatus('completed');
155
+ } else {
156
+ setCurrent(current + 1);
157
+ }
158
+ };
159
+
160
+ return (
161
+ <>
162
+ <Steps style={{ width: '1000px' }} current={current} status={status} items={items} />
163
+ <br />
164
+ <div>
165
+ External control:{' '}
166
+ <button onClick={onClick} style={{ width: '5rem' }}>
167
+ {isLast ? 'complete' : 'next'}
168
+ </button>
169
+ </div>
170
+ <hr />
171
+ </>
172
+ );
173
+ };
174
+
175
+ export const DemoWithInternalControls = () => {
176
+ const [current, setCurrent] = useState(undefined);
177
+ const [status, setStatus] = useState<StepStatus | undefined>();
178
+
179
+ const renderContent = (status, index, items) => {
180
+ const isFirst = index === 0 && current === undefined;
181
+ const isLast = index === items.length - 1;
182
+
183
+ const onNext = () => setCurrent((current) => (current === undefined ? 0 : current + 1));
184
+ const onComplete = () => {
185
+ setStatus('completed');
186
+ };
187
+
188
+ return (
189
+ <DemoContent onClick={isLast ? onComplete : onNext} index={index} status={status} current={current}>
190
+ {isFirst && 'go'}
191
+ {isLast && 'complete'}
192
+ {!isFirst && !isLast && 'next'}
193
+ </DemoContent>
194
+ );
195
+ };
196
+
197
+ return (
198
+ <Steps
199
+ current={current}
200
+ status={status}
201
+ items={[
202
+ {
203
+ title: 'Title',
204
+ indicator: '1',
205
+ content: renderContent,
206
+ },
207
+ {
208
+ title: 'Title',
209
+ indicator: '2',
210
+ content: renderContent,
211
+ },
212
+ {
213
+ title: 'Title',
214
+ indicator: '3',
215
+ content: renderContent,
216
+ },
217
+ {
218
+ title: 'Title',
219
+ indicator: '4',
220
+ content: renderContent,
221
+ },
222
+ ]}
223
+ />
224
+ );
225
+ };
226
+
227
+ export const DemoWithControlledUsage = () => {
228
+ const [exampleItems, setExampleItems] = useState<StepItemProps[]>(() =>
229
+ fullItems.map((item) => ({ ...item, status: 'inactive' }))
230
+ );
231
+
232
+ return (
233
+ <Steps
234
+ style={{ width: '1000px' }}
235
+ onChange={(item, index) => {
236
+ setExampleItems(
237
+ exampleItems.map((item, itemIndex) => {
238
+ if (index > itemIndex) {
239
+ return { ...item, status: 'completed' };
240
+ }
241
+
242
+ if (index === itemIndex) {
243
+ return { ...item, status: 'active' };
244
+ }
245
+
246
+ return { ...item, status: 'inactive' };
247
+ })
248
+ );
249
+ }}
250
+ items={exampleItems}
251
+ />
252
+ );
253
+ };
254
+
255
+ export const DemoWithControlledFreeUsage = () => {
256
+ const [items, setItems] = useState<StepItemProps[]>(() => fullItems.map((item) => ({ ...item, status: 'inactive' })));
257
+
258
+ return (
259
+ <Steps
260
+ style={{ width: '1000px' }}
261
+ onChange={(item, index, prevIndex) => {
262
+ console.log('!!! onChange', index, prevIndex);
263
+
264
+ const newItems = [...items];
265
+ if (prevIndex !== undefined) {
266
+ newItems[prevIndex].status = 'completed';
267
+ }
268
+ newItems[index].status = 'active';
269
+
270
+ setItems(newItems);
271
+ }}
272
+ items={items}
273
+ />
274
+ );
275
+ };
276
+
277
+ export const DemoControlledWithStatus = () => {
278
+ const [items, setItems] = useState<StepItemProps[]>(() => fullItems.map(({ status, ...item }) => ({ ...item })));
279
+ return (
280
+ <Steps
281
+ style={{ width: '1000px' }}
282
+ current={2}
283
+ status="active"
284
+ onClick={(item, index) => {
285
+ setItems(
286
+ items.map((item, itemIndex) => {
287
+ if (index > itemIndex) {
288
+ return { ...item, status: 'completed' };
289
+ }
290
+
291
+ if (index === itemIndex) {
292
+ return { ...item, status: 'active' };
293
+ }
294
+
295
+ return { ...item, status: 'inactive' };
296
+ })
297
+ );
298
+ }}
299
+ items={items}
300
+ />
301
+ );
302
+ };
303
+
304
+ ```
@@ -0,0 +1,70 @@
1
+ export var classes = {
2
+ simple: '--plasma-steps-simple',
3
+ centered: '--plasma-step-item-centered',
4
+ active: '--plasma-step-item-active',
5
+ inactive: '--plasma-step-item-inactive',
6
+ clickable: '--plasma-step-item-clickable',
7
+ hovered: '--plasma-step-item-hovered',
8
+ disabled: '--plasma-step-item-disabled',
9
+ verticalOrientation: '--plasma-steps-vertical-orientation',
10
+ hasIndicator: '--plasma-step-item-has-indicator',
11
+ activeItem: '--plasma-step-item-has-indicator',
12
+ transparentDivider: '--plasma-steps-transparent-divider'
13
+ };
14
+ export var tokens = {
15
+ indicatorSize: '--plasma-step-item-indicator-size',
16
+ activeIndicatorSize: '--plasma-step-item-active-indicator-size',
17
+ bulletSize: '--plasma-step-item-bullet-size',
18
+ activeBulletSize: '--plasma-step-item-active-bullet-size',
19
+ titlePaddingTop: '--plasma-step-item-title-padding-top',
20
+ contentPaddingTop: '--plasma-step-item-content-padding-top',
21
+ contentPaddingRight: '--plasma-step-item-content-padding-right',
22
+ contentSidePadding: '--plasma-step-item-content-side-padding',
23
+ contentVerticalPadding: '--plasma-step-item-content-vertical-padding',
24
+ verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',
25
+ smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',
26
+ largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',
27
+ smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',
28
+ largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',
29
+ titleFontFamily: '--plasma-step-item-title-font-family',
30
+ titleFontSize: '--plasma-step-item-title-font-size',
31
+ titleFontStyle: '--plasma-step-item-title-font-style',
32
+ titleFontWeight: '--plasma-step-item-title-font-weight',
33
+ titleLetterSpacing: '--plasma-step-item-title-letter-spacing',
34
+ titleLineHeight: '--plasma-step-item-title-line-height',
35
+ contentFontFamily: '--plasma-step-item-content-font-family',
36
+ contentFontSize: '--plasma-step-item-content-font-size',
37
+ contentFontStyle: '--plasma-step-item-content-font-style',
38
+ contentFontWeight: '--plasma-step-item-content-font-weight',
39
+ contentLetterSpacing: '--plasma-step-item-content-letter-spacing',
40
+ contentLineHeight: '--plasma-step-item-content-line-height',
41
+ indicatorFontFamily: '--plasma-step-item-indicator-font-family',
42
+ indicatorFontSize: '--plasma-step-item-indicator-font-size',
43
+ indicatorFontStyle: '--plasma-step-item-indicator-font-style',
44
+ indicatorFontWeight: '--plasma-step-item-indicator-font-weight',
45
+ indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',
46
+ indicatorLineHeight: '--plasma-step-item-indicator-line-height',
47
+ activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',
48
+ activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',
49
+ activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',
50
+ activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',
51
+ activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',
52
+ activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',
53
+ activeTitleColor: '--plasma-step-item-active-title-color',
54
+ activeTitleColorHover: '--plasma-step-item-active-title-color-hover',
55
+ inactiveTitleColor: '--plasma-step-item-inactive-title-color',
56
+ inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',
57
+ contentColor: '--plasma-step-item-content-color',
58
+ activeIndicatorBorder: '--plasma-step-item-active-indicator-border',
59
+ activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',
60
+ activeIndicatorColor: '--plasma-step-item-active-indicator-color',
61
+ activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',
62
+ activeIndicatorBackground: '--plasma-step-item-active-indicator-background',
63
+ completedIndicatorColor: '--plasma-step-item-completed-indicator-color',
64
+ completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',
65
+ inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',
66
+ inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',
67
+ inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',
68
+ disabledOpacity: '--plasma-step-item-disabled-opacity',
69
+ dividerThickness: '--plasma-step-item-divider-thickness'
70
+ };
@@ -0,0 +1,2 @@
1
+ export { stepsConfig, stepsRoot } from './Steps';
2
+ export { tokens as stepsTokens } from './Steps.tokens';
@@ -0,0 +1,127 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useState, useEffect } from 'react';
12
+ import cls from 'classnames';
13
+ import { classes, tokens } from '../../Steps.tokens';
14
+ import { Bullet, BulletIndicator, BulletIndicatorWrapper, StepItemContent, StepItemContentWrapper, StepItemDivider, StepItemStyled, StepItemTitle, SpinnerStyled } from './StepItem.styles';
15
+ var indicatorSizesIndentsMap = {
16
+ 8: /*#__PURE__*/"var(".concat(tokens.smallBulletIndentHeight, ")"),
17
+ 16: /*#__PURE__*/"var(".concat(tokens.largeBulletIndentHeight, ")"),
18
+ 24: /*#__PURE__*/"var(".concat(tokens.smallIndicatorIndentHeight, ")"),
19
+ 36: /*#__PURE__*/"var(".concat(tokens.largeIndicatorIndentHeight, ")")
20
+ };
21
+
22
+ // const getIndicatorStyle = (size: string, hasIndicator: boolean, indicatorSize?: number) => {
23
+ // if (size === 'm' || size === 'l') {
24
+ // if (hasIndicator) {
25
+ // }
26
+ // }
27
+ // };
28
+
29
+ export var StepItem = function StepItem(_ref) {
30
+ var index = _ref.index,
31
+ title = _ref.title,
32
+ content = _ref.content,
33
+ indicator = _ref.indicator,
34
+ _ref$status = _ref.status,
35
+ status = _ref$status === void 0 ? 'inactive' : _ref$status,
36
+ orientation = _ref.orientation,
37
+ contentAlign = _ref.contentAlign,
38
+ hasLine = _ref.hasLine,
39
+ hasLoader = _ref.hasLoader,
40
+ onClick = _ref.onClick,
41
+ items = _ref.items;
42
+ var _useState = useState(false),
43
+ _useState2 = _slicedToArray(_useState, 2),
44
+ isHovered = _useState2[0],
45
+ setIsHovered = _useState2[1];
46
+ var isFirst = index === 0;
47
+ var isLast = index === items.length - 1;
48
+ var prevItem = items[index - 1];
49
+ var nextItem = items[index + 1];
50
+ var isActive = status === 'active';
51
+ var isInactive = status === 'inactive';
52
+ var isPrevInactive = prevItem && !(prevItem !== null && prevItem !== void 0 && prevItem.status) || (prevItem === null || prevItem === void 0 ? void 0 : prevItem.status) === 'inactive';
53
+ var isNextInactive = !(nextItem !== null && nextItem !== void 0 && nextItem.status) || (nextItem === null || nextItem === void 0 ? void 0 : nextItem.status) === 'inactive';
54
+ var hasContent = Boolean(title || content);
55
+ var hasIndicator = indicator != null;
56
+ var BulletNode = hasIndicator ? BulletIndicator : Bullet;
57
+ var item = items[index];
58
+ var isSimple = !hasContent;
59
+ var clickable = Boolean(onClick);
60
+ var isVertical = orientation === 'vertical';
61
+ var isCentered = contentAlign === 'center';
62
+ var isDisabled = item.disabled;
63
+ var onClickHandler = onClick && !isDisabled ? function () {
64
+ return onClick(item, index);
65
+ } : undefined;
66
+ var resultIndicatorSize;
67
+ if (hasIndicator) {
68
+ resultIndicatorSize = isActive ? 36 : 24;
69
+ } else {
70
+ resultIndicatorSize = isActive ? 16 : 8;
71
+ }
72
+ useEffect(function () {
73
+ console.log('!!! ', resultIndicatorSize);
74
+ }, [resultIndicatorSize]);
75
+ var onMouseOver = clickable && !isDisabled ? function () {
76
+ if (isDisabled) {
77
+ setIsHovered(false);
78
+ }
79
+ setIsHovered(true);
80
+ } : undefined;
81
+ var onMouseOut = clickable && !isDisabled ? function () {
82
+ setIsHovered(false);
83
+ } : undefined;
84
+ useEffect(function () {
85
+ if (isDisabled) {
86
+ setIsHovered(false);
87
+ }
88
+ }, [isDisabled]);
89
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StepItemStyled, {
90
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.active, isActive), classes.hovered, isHovered), classes.inactive, isInactive), classes.centered, isCentered), classes.disabled, isDisabled), classes.clickable, clickable), classes.hasIndicator, hasIndicator), classes.verticalOrientation, isVertical))
91
+ }, /*#__PURE__*/React.createElement(BulletIndicatorWrapper, {
92
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.simple, isSimple), classes.hasIndicator, hasIndicator)),
93
+ onClick: onClickHandler,
94
+ onFocus: onMouseOver,
95
+ onBlur: onMouseOut,
96
+ onMouseOver: onMouseOver,
97
+ onMouseOut: onMouseOut
98
+ }, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
99
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive))
100
+ }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/React.createElement(StepItemDivider, {
101
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isFirst), classes.inactive, isInactive || isPrevInactive)),
102
+ style: {
103
+ height: indicatorSizesIndentsMap[resultIndicatorSize],
104
+ maxHeight: indicatorSizesIndentsMap[resultIndicatorSize]
105
+ }
106
+ }), hasLoader && /*#__PURE__*/React.createElement(SpinnerStyled, {
107
+ size: hasIndicator ? "var(".concat(tokens.activeIndicatorSize, ")") : "var(".concat(tokens.activeBulletSize, ")")
108
+ }), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
109
+ className: cls(_defineProperty(_defineProperty({}, classes.active, isActive), classes.inactive, isInactive))
110
+ }, typeof indicator === 'function' && indicator({
111
+ status: status,
112
+ item: item,
113
+ indicatorSize: resultIndicatorSize
114
+ }), typeof indicator !== 'function' && indicator), !isSimple && /*#__PURE__*/React.createElement(StepItemDivider, {
115
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine || isLast), classes.inactive, isInactive || isNextInactive))
116
+ })), hasContent && /*#__PURE__*/React.createElement(StepItemContentWrapper, {
117
+ className: cls(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classes.verticalOrientation, isVertical), classes.centered, isCentered), classes.active, isActive), classes.hasIndicator, hasIndicator))
118
+ }, /*#__PURE__*/React.createElement(StepItemTitle, {
119
+ onClick: onClickHandler,
120
+ onFocus: onMouseOver,
121
+ onBlur: onMouseOut,
122
+ onMouseOver: onMouseOver,
123
+ onMouseOut: onMouseOut
124
+ }, title), /*#__PURE__*/React.createElement(StepItemContent, null, typeof content === 'function' && content(status, index, items), typeof content !== 'function' && content))), isSimple && !isLast && /*#__PURE__*/React.createElement(StepItemDivider, {
125
+ className: cls(_defineProperty(_defineProperty(_defineProperty({}, classes.simple, isSimple), classes.transparentDivider, !hasLine), classes.inactive, isInactive || isNextInactive))
126
+ }));
127
+ };
@@ -0,0 +1,36 @@
1
+ import styled from 'styled-components';
2
+ import { classes, tokens } from '../../Steps.tokens';
3
+ import { component, mergeConfig } from '../../../../engines';
4
+ import { spinnerConfig, spinnerTokens } from '../../../Spinner';
5
+ var mergedConfig = /*#__PURE__*/mergeConfig(spinnerConfig);
6
+ var Spinner = /*#__PURE__*/component(mergedConfig);
7
+ export var SpinnerStyled = /*#__PURE__*/styled(Spinner).withConfig({
8
+ componentId: "plasma-new-hope__sc-bjma6z-0"
9
+ })(["", ":", ";", ":var(", ");"], spinnerTokens.size, function (_ref) {
10
+ var size = _ref.size;
11
+ return size;
12
+ }, spinnerTokens.color, tokens.activeIndicatorColor);
13
+ export var StepItemTitle = /*#__PURE__*/styled.div.withConfig({
14
+ componentId: "plasma-new-hope__sc-bjma6z-1"
15
+ })(["padding-top:var(", ");padding-right:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");word-break:break-word;"], tokens.titlePaddingTop, tokens.contentSidePadding, tokens.titleFontFamily, tokens.titleFontSize, tokens.titleFontStyle, tokens.titleFontWeight, tokens.titleLetterSpacing, tokens.titleLineHeight);
16
+ export var StepItemContent = /*#__PURE__*/styled.div.withConfig({
17
+ componentId: "plasma-new-hope__sc-bjma6z-2"
18
+ })(["padding-top:var(", ");padding-right:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");word-break:break-word;color:var(", ");"], tokens.contentPaddingTop, tokens.contentSidePadding, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight, tokens.contentColor);
19
+ export var BulletIndicatorWrapper = /*#__PURE__*/styled.div.withConfig({
20
+ componentId: "plasma-new-hope__sc-bjma6z-3"
21
+ })(["display:flex;align-items:center;&:not(", "){flex:0;&.", "{width:100%;min-height:var(", ");}&:not(.", "){width:100%;min-height:var(", ");}&.", "{align-items:center;padding-right:var(", ");&.", "{min-width:var(", ");min-height:100%;}&:not(.", "){min-width:var(", ");min-height:100%;}}}&.", "{flex-direction:column;align-items:flex-start;justify-content:center;}&.", "{justify-content:center;}"], classes.simple, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, tokens.verticalContentPaddingLeft, classes.hasIndicator, tokens.activeIndicatorSize, classes.hasIndicator, tokens.activeBulletSize, classes.verticalOrientation, classes.centered);
22
+ export var BulletIndicator = /*#__PURE__*/styled.div.withConfig({
23
+ componentId: "plasma-new-hope__sc-bjma6z-4"
24
+ })(["display:flex;align-items:center;justify-content:center;width:var(", ");height:var(", ");border-radius:50%;box-sizing:border-box;position:relative;color:var(", ");background-color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ") var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");background:var(", ");}&.", "{color:var(", ");background:var(", ");&:before,&:after{background:var(", ");}}"], tokens.indicatorSize, tokens.indicatorSize, tokens.completedIndicatorColor, tokens.completedIndicatorBackground, tokens.indicatorFontFamily, tokens.indicatorFontSize, tokens.indicatorFontStyle, tokens.indicatorFontWeight, tokens.indicatorLetterSpacing, tokens.indicatorLineHeight, classes.active, tokens.activeIndicatorSize, tokens.activeIndicatorSize, tokens.dividerThickness, tokens.activeIndicatorBorder, tokens.activeIndicatorFontFamily, tokens.activeIndicatorFontSize, tokens.activeIndicatorFontStyle, tokens.activeIndicatorFontWeight, tokens.activeIndicatorLetterSpacing, tokens.activeIndicatorLineHeight, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, classes.inactive, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorBackground, tokens.inactiveIndicatorBackground);
25
+ export var Bullet = /*#__PURE__*/styled(BulletIndicator).withConfig({
26
+ componentId: "plasma-new-hope__sc-bjma6z-5"
27
+ })(["width:var(", ");height:var(", ");&.", "{width:var(", ");height:var(", ");border:var(", ");background-color:var(", ");}"], tokens.bulletSize, tokens.bulletSize, classes.active, tokens.activeBulletSize, tokens.activeBulletSize, tokens.activeIndicatorBorder, tokens.activeIndicatorBackground);
28
+ export var StepItemDivider = /*#__PURE__*/styled.div.withConfig({
29
+ componentId: "plasma-new-hope__sc-bjma6z-6"
30
+ })(["width:100%;height:var(", ");flex:1;background-color:var(", ");&.", "{background-color:var(", ");}&.", "{background-color:transparent;}"], tokens.dividerThickness, tokens.activeIndicatorColor, classes.inactive, tokens.inactiveIndicatorBackground, classes.transparentDivider);
31
+ export var StepItemContentWrapper = /*#__PURE__*/styled.div.withConfig({
32
+ componentId: "plasma-new-hope__sc-bjma6z-7"
33
+ })(["&.", "{", "{padding-top:var(", ");padding-right:0;}", "{padding-top:var(", ");padding-bottom:var(", ");padding-right:0;}}&.", ".", "{}&.", ".", ".", "{}"], classes.verticalOrientation, StepItemTitle, tokens.contentVerticalPadding, StepItemContent, tokens.contentVerticalPadding, tokens.contentVerticalPadding, classes.verticalOrientation, classes.active, classes.verticalOrientation, classes.active, classes.hasIndicator);
34
+ export var StepItemStyled = /*#__PURE__*/styled.div.withConfig({
35
+ componentId: "plasma-new-hope__sc-bjma6z-8"
36
+ })(["display:flex;flex-direction:column;align-items:flex-start;&.", "{flex-direction:row;align-items:stretch;&:not(", "):not(.", "){", "{position:relative;}&.", "{", "{position:relative;&.", "{}}}}", "{width:var(", ");height:100%;}}&.", "{", "{color:var(", ");}}&.", "{", "{color:var(", ");}}&.", "{", "{cursor:pointer;color:var(", ");}&.", "{", "{color:var(", ");}}&.", "{", "{color:var(", ");}}", "{cursor:pointer;}}&.", "{align-items:center;", "{display:flex;flex-direction:column;align-items:center;padding-left:calc(var(", ") / 2);padding-right:calc(var(", ") / 2);", "{width:100%;}", ",", "{padding-right:0;text-align:center;}}}&.", "{opacity:var(", ");}"], classes.verticalOrientation, classes.simple, classes.hasIndicator, BulletIndicatorWrapper, classes.active, BulletIndicatorWrapper, classes.active, StepItemDivider, tokens.dividerThickness, classes.active, StepItemTitle, tokens.activeTitleColor, classes.inactive, StepItemTitle, tokens.inactiveTitleColor, classes.hovered, StepItemTitle, tokens.inactiveTitleColorHover, classes.active, StepItemTitle, tokens.activeTitleColorHover, classes.inactive, StepItemTitle, tokens.inactiveTitleColorHover, BulletIndicatorWrapper, classes.centered, StepItemContentWrapper, tokens.contentSidePadding, tokens.contentSidePadding, StepItemTitle, StepItemTitle, StepItemContent, classes.disabled, tokens.disabledOpacity);
@@ -0,0 +1 @@
1
+ export { StepItem } from './StepItem';
@@ -0,0 +1 @@
1
+ export * from './StepItem';
@@ -0,0 +1,2 @@
1
+ import { css } from 'styled-components';
2
+ export var base = /*#__PURE__*/css([""]);
@@ -0,0 +1,2 @@
1
+ import { css } from 'styled-components';
2
+ export var base = /*#__PURE__*/css([""]);
@@ -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);", ":solid var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-clear);", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary);", ":var(--surface-transparent-secondary);", ":var(--text-secondary);", ":0.4;"], tokens.activeTitleColor, tokens.activeTitleColorHover, tokens.activeIndicatorBorder, tokens.activeIndicatorColor, tokens.activeIndicatorBackground, tokens.completedIndicatorColor, tokens.completedIndicatorBackground, tokens.inactiveTitleColor, tokens.inactiveTitleColorHover, tokens.inactiveIndicatorColor, tokens.inactiveIndicatorBackground, 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 };