@salutejs/plasma-new-hope 0.159.0-canary.1443.11131308290.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 (102) hide show
  1. package/cjs/components/Steps/Steps.css +11 -11
  2. package/cjs/components/Steps/Steps.js +19 -26
  3. package/cjs/components/Steps/Steps.js.map +1 -1
  4. package/cjs/components/Steps/Steps.styles.js +1 -1
  5. package/cjs/components/Steps/Steps.styles.js.map +1 -1
  6. package/cjs/components/Steps/{Steps.styles_o055q.css → Steps.styles_vv31r6.css} +1 -1
  7. package/cjs/components/Steps/Steps.tokens.js +1 -0
  8. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  9. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  10. package/cjs/components/Steps/ui/StepItem/StepItem.js +6 -9
  11. package/cjs/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  12. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +14 -4
  13. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  14. package/{es/components/Steps/ui/StepItem/StepItem.styles_urheiv.css → cjs/components/Steps/ui/StepItem/StepItem.styles_1y1xj5d.css} +3 -3
  15. package/cjs/components/Steps/utils/getItemStatus.js +27 -0
  16. package/cjs/components/Steps/utils/getItemStatus.js.map +1 -0
  17. package/cjs/index.css +11 -11
  18. package/emotion/cjs/components/Steps/Steps.js +19 -26
  19. package/emotion/cjs/components/Steps/Steps.styles.js +1 -1
  20. package/emotion/cjs/components/Steps/Steps.tokens.js +1 -0
  21. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.js +6 -9
  22. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +20 -11
  23. package/emotion/cjs/components/Steps/utils/getItemStatus.js +26 -0
  24. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +6 -6
  25. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.js +0 -2
  26. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +14 -2
  27. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +6 -6
  28. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.js +0 -2
  29. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +14 -2
  30. package/emotion/es/components/Steps/Steps.js +19 -26
  31. package/emotion/es/components/Steps/Steps.styles.js +1 -1
  32. package/emotion/es/components/Steps/Steps.tokens.js +1 -0
  33. package/emotion/es/components/Steps/ui/StepItem/StepItem.js +7 -9
  34. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +20 -11
  35. package/emotion/es/components/Steps/utils/getItemStatus.js +20 -0
  36. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +6 -6
  37. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.js +0 -3
  38. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +14 -2
  39. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +6 -6
  40. package/emotion/es/examples/plasma_web/components/Steps/Steps.js +0 -3
  41. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +14 -2
  42. package/es/components/Steps/Steps.css +11 -11
  43. package/es/components/Steps/Steps.js +19 -26
  44. package/es/components/Steps/Steps.js.map +1 -1
  45. package/es/components/Steps/Steps.styles.js +1 -1
  46. package/es/components/Steps/Steps.styles.js.map +1 -1
  47. package/es/components/Steps/{Steps.styles_o055q.css → Steps.styles_vv31r6.css} +1 -1
  48. package/es/components/Steps/Steps.tokens.js +1 -0
  49. package/es/components/Steps/Steps.tokens.js.map +1 -1
  50. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  51. package/es/components/Steps/ui/StepItem/StepItem.js +6 -9
  52. package/es/components/Steps/ui/StepItem/StepItem.js.map +1 -1
  53. package/es/components/Steps/ui/StepItem/StepItem.styles.js +14 -4
  54. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  55. package/{cjs/components/Steps/ui/StepItem/StepItem.styles_urheiv.css → es/components/Steps/ui/StepItem/StepItem.styles_1y1xj5d.css} +3 -3
  56. package/es/components/Steps/utils/getItemStatus.js +23 -0
  57. package/es/components/Steps/utils/getItemStatus.js.map +1 -0
  58. package/es/index.css +11 -11
  59. package/package.json +3 -2
  60. package/styled-components/cjs/components/Steps/Steps.js +19 -26
  61. package/styled-components/cjs/components/Steps/Steps.styles.js +1 -1
  62. package/styled-components/cjs/components/Steps/Steps.tokens.js +1 -0
  63. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.js +6 -9
  64. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +14 -5
  65. package/styled-components/cjs/components/Steps/utils/getItemStatus.js +26 -0
  66. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +2 -2
  67. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.js +0 -2
  68. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +14 -2
  69. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +2 -2
  70. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.js +0 -2
  71. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +14 -2
  72. package/styled-components/es/components/Steps/Steps.js +19 -26
  73. package/styled-components/es/components/Steps/Steps.styles.js +1 -1
  74. package/styled-components/es/components/Steps/Steps.tokens.js +1 -0
  75. package/styled-components/es/components/Steps/ui/StepItem/StepItem.js +7 -9
  76. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +14 -5
  77. package/styled-components/es/components/Steps/utils/getItemStatus.js +20 -0
  78. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +2 -2
  79. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.js +0 -3
  80. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +14 -2
  81. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +2 -2
  82. package/styled-components/es/examples/plasma_web/components/Steps/Steps.js +0 -3
  83. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +14 -2
  84. package/types/components/Steps/Steps.d.ts +5 -3
  85. package/types/components/Steps/Steps.d.ts.map +1 -1
  86. package/types/components/Steps/Steps.tokens.d.ts +1 -0
  87. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  88. package/types/components/Steps/index.d.ts +1 -1
  89. package/types/components/Steps/index.d.ts.map +1 -1
  90. package/types/components/Steps/ui/StepItem/StepItem.d.ts.map +1 -1
  91. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +16 -4
  92. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  93. package/types/components/Steps/utils/getItemStatus.d.ts +9 -0
  94. package/types/components/Steps/utils/getItemStatus.d.ts.map +1 -0
  95. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts +2 -2
  96. package/types/examples/plasma_b2c/components/Steps/Steps.d.ts.map +1 -1
  97. package/types/examples/plasma_web/components/Steps/Steps.d.ts +2 -2
  98. package/types/examples/plasma_web/components/Steps/Steps.d.ts.map +1 -1
  99. package/emotion/cjs/components/Steps/Steps.review-doc.mdx +0 -304
  100. package/emotion/es/components/Steps/Steps.review-doc.mdx +0 -304
  101. package/styled-components/cjs/components/Steps/Steps.review-doc.mdx +0 -304
  102. package/styled-components/es/components/Steps/Steps.review-doc.mdx +0 -304
@@ -1,5 +1,3 @@
1
- .Steps_styles_o055q_b7q3upx__4915e236{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_simple__4915e236{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_simple__4915e236.Steps_styles_o055q_itemHasIndicator__4915e236{height:var(--plasma-step-item-active-indicator-size);}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_simple__4915e236:not(.Steps_styles_o055q_itemHasIndicator__4915e236){height:var(--plasma-step-item-active-bullet-size);}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_simple__4915e236.Steps_styles_o055q_verticalOrientation__4915e236.Steps_styles_o055q_itemHasIndicator__4915e236{width:var(--plasma-step-item-active-indicator-size);height:auto;}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_simple__4915e236.Steps_styles_o055q_verticalOrientation__4915e236:not(.Steps_styles_o055q_itemHasIndicator__4915e236){width:var(--plasma-step-item-active-bullet-size);height:auto;}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_verticalOrientation__4915e236{display:inline;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.Steps_styles_o055q_b7q3upx__4915e236.Steps_styles_o055q_verticalOrientation__4915e236.Steps_styles_o055q_simple__4915e236{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
2
-
3
1
  .base_1gusher_b1chvyq8__76b641f5{color:var(--plasma-spinner-color);}
4
2
 
5
3
  .base_ova69f_bw56nfh__55225c7f{width:var(--plasma-spinner-size);height:var(--plasma-spinner-size);}
@@ -7,12 +5,14 @@
7
5
  .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
8
6
  .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
9
7
 
10
- .StepItem_styles_urheiv_snf9dn9__f60aa364{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
11
- .StepItem_styles_urheiv_sv5tpso__f60aa364{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
12
- .StepItem_styles_urheiv_s529fhk__f60aa364{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
13
- .StepItem_styles_urheiv_b1kcj14__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_itemHasIndicator__f60aa364{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple):not(.StepItem_styles_urheiv_itemHasIndicator__f60aa364){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364.StepItem_styles_urheiv_itemHasIndicator__f60aa364{min-width:var(--plasma-step-item-active-indicator-size);min-height:100%;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364:not(.StepItem_styles_urheiv_itemHasIndicator__f60aa364){min-width:var(--plasma-step-item-active-bullet-size);min-height:100%;}.StepItem_styles_urheiv_b1kcj14__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_urheiv_b1kcj14__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
14
- .StepItem_styles_urheiv_b9hdug__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364:before,.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364:after{background:var(--plasma-step-item-inactive-indicator-background);}
15
- .StepItem_styles_urheiv_b1eo1o32__f60aa364.StepItem_styles_urheiv_b9hdug__f60aa364{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_urheiv_b1eo1o32__f60aa364.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background-color:var(--plasma-step-item-active-indicator-background);}
16
- .StepItem_styles_urheiv_sxskc3q__f60aa364{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background-color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_urheiv_sxskc3q__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364{background-color:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_urheiv_sxskc3q__f60aa364.StepItem_styles_urheiv_transparentDivider__f60aa364{background-color:transparent;}
17
- .StepItem_styles_urheiv_s4zgmmr__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_urheiv_s4zgmmr__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_s529fhk__f60aa364{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
18
- .StepItem_styles_urheiv_s12pqpa3__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_sxskc3q__f60aa364{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_sv5tpso__f60aa364{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_b9hdug__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_b1eo1o32__f60aa364{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_b9hdug__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_b1eo1o32__f60aa364{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364 .StepItem_styles_urheiv_b1kcj14__f60aa364{cursor:pointer;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{width:100%;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_s529fhk__f60aa364{padding-right:0;text-align:center;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemDisabled__f60aa364{opacity:var(--plasma-step-item-disabled-opacity);}
8
+ .StepItem_styles_1y1xj5d_snf9dn9__5c4153e3{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
9
+ .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
10
+ .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
11
+ .StepItem_styles_1y1xj5d_b1kcj14__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3).StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3):not(.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3).StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;min-height:100%;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3{min-width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3:not(.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3){min-width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
12
+ .StepItem_styles_1y1xj5d_b9hdug__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3:before,.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3:after{background:var(--plasma-step-item-inactive-indicator-background);}
13
+ .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3.StepItem_styles_1y1xj5d_b9hdug__5c4153e3{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background-color:var(--plasma-step-item-active-indicator-background);}
14
+ .StepItem_styles_1y1xj5d_sxskc3q__5c4153e3{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background-color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3{background-color:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_transparentDivider__5c4153e3{background-color:transparent;}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_indentDivider__5c4153e3{height:var(--sxskc3q-0);min-height:var(--sxskc3q-0);max-height:var(--sxskc3q-0);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_indentDivider__5c4153e3.StepItem_styles_1y1xj5d_simple__5c4153e3{height:auto;max-height:none;}
15
+ .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
16
+ .StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_sxskc3q__5c4153e3{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_b9hdug__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_b9hdug__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3 .StepItem_styles_1y1xj5d_b1kcj14__5c4153e3{cursor:pointer;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{width:100%;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-right:0;text-align:center;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemDisabled__5c4153e3{opacity:var(--plasma-step-item-disabled-opacity);}
17
+
18
+ .Steps_styles_vv31r6_b7q3upx__206acc3f{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_simple__206acc3f{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_simple__206acc3f.Steps_styles_vv31r6_itemHasIndicator__206acc3f{height:var(--plasma-step-item-active-indicator-size);}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_simple__206acc3f:not(.Steps_styles_vv31r6_itemHasIndicator__206acc3f){height:var(--plasma-step-item-active-bullet-size);}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_simple__206acc3f.Steps_styles_vv31r6_verticalOrientation__206acc3f.Steps_styles_vv31r6_itemHasIndicator__206acc3f{width:var(--plasma-step-item-active-indicator-size);height:100%;}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_simple__206acc3f.Steps_styles_vv31r6_verticalOrientation__206acc3f:not(.Steps_styles_vv31r6_itemHasIndicator__206acc3f){width:var(--plasma-step-item-active-bullet-size);height:100%;}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_verticalOrientation__206acc3f{display:inline;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.Steps_styles_vv31r6_b7q3upx__206acc3f.Steps_styles_vv31r6_verticalOrientation__206acc3f.Steps_styles_vv31r6_simple__206acc3f{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
@@ -6,18 +6,18 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
6
6
  var React = require('react');
7
7
  var cls = require('classnames');
8
8
  var Steps_tokens = require('./Steps.tokens.js');
9
- var Steps_styles = require('./Steps.styles.js');
10
9
  var StepItem = require('./ui/StepItem/StepItem.js');
10
+ var Steps_styles = require('./Steps.styles.js');
11
11
  var base = require('./variations/_size/base.js');
12
12
  var base$1 = require('./variations/_view/base.js');
13
+ var getItemStatus = require('./utils/getItemStatus.js');
13
14
 
14
15
  var _excluded = ["view", "size", "orientation", "contentAlign", "hasLine", "hasContent", "hasLoader", "items", "onChange", "current", "status"];
15
16
  var stepsRoot = function stepsRoot(Root) {
16
17
  return /*#__PURE__*/React.forwardRef(function (props, outerRef) {
17
18
  var _props$view = props.view,
18
19
  view = _props$view === void 0 ? 'default' : _props$view,
19
- _props$size = props.size,
20
- size = _props$size === void 0 ? 's' : _props$size,
20
+ size = props.size,
21
21
  _props$orientation = props.orientation,
22
22
  orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
23
23
  _props$contentAlign = props.contentAlign,
@@ -62,39 +62,32 @@ var stepsRoot = function stepsRoot(Root) {
62
62
  ref: outerRef,
63
63
  className: cls(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.verticalOrientation, orientation === 'vertical'), Steps_tokens.classes.simple, isSimple), Steps_tokens.classes.hasIndicator, hasIndicator))
64
64
  }, rest), items.map(function (item, index) {
65
- var itemStatus = 'inactive';
66
- if (isUncontrolled) {
67
- if (current > index) {
68
- itemStatus = 'completed';
69
- } else if (current === index) {
70
- itemStatus = status || 'active';
71
- }
72
- } else {
73
- itemStatus = status || item.status || 'inactive';
74
- }
75
- if (item.disabled) {
76
- itemStatus = 'inactive';
77
- }
65
+ var itemStatus = getItemStatus.getItemStatus({
66
+ isUncontrolled: isUncontrolled,
67
+ current: current,
68
+ status: status,
69
+ index: index,
70
+ item: item
71
+ });
78
72
  var isActive = itemStatus === 'active';
79
- var content = item.content;
80
- if (hasContent === 'active' && !isActive || hasContent === 'none') {
81
- content = '';
82
- }
73
+ var itemContent = hasContent === 'active' && !isActive || hasContent === 'none' ? '' : item.content;
74
+ var itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';
75
+ var onClick = onChange ? function () {
76
+ return onChange(item, index, prevIndex);
77
+ } : undefined;
83
78
  return /*#__PURE__*/React.createElement(StepItem.StepItem, {
84
79
  key: index,
85
80
  index: index,
86
81
  title: item.title,
87
- content: content,
82
+ content: itemContent,
88
83
  indicator: item.indicator,
89
84
  status: itemStatus,
90
85
  size: size,
91
86
  orientation: orientation,
92
- contentAlign: orientation === 'horizontal' ? contentAlign : 'left',
87
+ contentAlign: itemContentAlign,
93
88
  hasLine: hasLine,
94
89
  hasLoader: hasLoader && isActive,
95
- onClick: onChange ? function () {
96
- return onChange(item, index, prevIndex);
97
- } : undefined,
90
+ onClick: onClick,
98
91
  items: items
99
92
  });
100
93
  }));
@@ -111,7 +104,7 @@ var stepsConfig = {
111
104
  },
112
105
  defaults: {
113
106
  view: 'default',
114
- size: 's'
107
+ size: 'm'
115
108
  }
116
109
  };
117
110
 
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.js","sources":["../../../src/components/Steps/Steps.tsx"],"sourcesContent":["import React, { forwardRef, useState, useEffect, HTMLAttributes } from 'react';\nimport cls from 'classnames';\n\nimport type { RootPropsOmitOnChange } from '../../engines/types';\n\nimport { classes } from './Steps.tokens';\nimport { StepsProps } from './Steps.types';\nimport { base } from './Steps.styles';\nimport { StepItem, StepStatus } from './ui';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\n\nexport const stepsRoot = (\n Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>,\n) =>\n forwardRef<HTMLDivElement, StepsProps>((props, outerRef) => {\n const {\n view = 'default',\n size = 's',\n orientation = 'horizontal',\n contentAlign = 'left',\n hasLine = true,\n hasContent = 'all',\n hasLoader,\n items = [],\n onChange,\n current,\n status,\n ...rest\n } = props;\n\n const [prevIndex, setPrevIndex] = useState<number | undefined>();\n\n const isUncontrolled = current !== undefined;\n const hasIndicator = items.some((item) => item.indicator != null);\n const isSimple = items.every((item) => !item.title && !item.content);\n\n useEffect(() => {\n return () => {\n if (current !== undefined) {\n setPrevIndex(current);\n } else {\n const index = items.findIndex((item) => item.status === 'active');\n setPrevIndex(index !== -1 ? index : undefined);\n }\n };\n }, [current, items]);\n\n return (\n <Root\n size={size}\n view={view}\n ref={outerRef}\n className={cls({\n [classes.verticalOrientation]: orientation === 'vertical',\n [classes.simple]: isSimple,\n [classes.hasIndicator]: hasIndicator,\n })}\n {...rest}\n >\n {items.map((item, index) => {\n let itemStatus: StepStatus = 'inactive';\n if (isUncontrolled) {\n if (current! > index) {\n itemStatus = 'completed';\n } else if (current === index) {\n itemStatus = status || 'active';\n }\n } else {\n itemStatus = status || item.status || 'inactive';\n }\n\n if (item.disabled) {\n itemStatus = 'inactive';\n }\n\n const isActive = itemStatus === 'active';\n\n let { content } = item;\n\n if ((hasContent === 'active' && !isActive) || hasContent === 'none') {\n content = '';\n }\n\n return (\n <StepItem\n key={index}\n index={index}\n title={item.title}\n content={content}\n indicator={item.indicator}\n status={itemStatus}\n size={size}\n orientation={orientation}\n contentAlign={orientation === 'horizontal' ? contentAlign : 'left'}\n hasLine={hasLine}\n hasLoader={hasLoader && isActive}\n onClick={onChange ? () => onChange(item, index, prevIndex) : undefined}\n items={items}\n />\n );\n })}\n </Root>\n );\n });\n\nexport const stepsConfig = {\n name: 'Steps',\n tag: 'div',\n layout: stepsRoot,\n base,\n variations: {\n size: sizeCSS,\n view: viewCSS,\n },\n defaults: {\n view: 'default',\n size: 's',\n },\n};\n"],"names":["stepsRoot","Root","forwardRef","props","outerRef","_props$view","view","_props$size","size","_props$orientation","orientation","_props$contentAlign","contentAlign","_props$hasLine","hasLine","_props$hasContent","hasContent","hasLoader","_props$items","items","onChange","current","status","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","prevIndex","setPrevIndex","isUncontrolled","undefined","hasIndicator","some","item","indicator","isSimple","every","title","content","useEffect","index","findIndex","React","createElement","_extends","ref","className","cls","_defineProperty","classes","verticalOrientation","simple","map","itemStatus","disabled","isActive","StepItem","key","onClick","stepsConfig","name","tag","layout","base","variations","sizeCSS","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;IAYaA,SAAS,GAAG,SAAZA,SAASA,CAClBC,IAA0G,EAAA;AAAA,EAAA,oBAE1GC,gBAAU,CAA6B,UAACC,KAAK,EAAEC,QAAQ,EAAK;AACxD,IAAA,IAAAC,WAAA,GAaIF,KAAK,CAZLG,IAAI;AAAJA,MAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,WAAA;MAAAE,WAAA,GAYhBJ,KAAK,CAXLK,IAAI;AAAJA,MAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,GAAG,GAAAA,WAAA;MAAAE,kBAAA,GAWVN,KAAK,CAVLO,WAAW;AAAXA,MAAAA,WAAW,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,YAAY,GAAAA,kBAAA;MAAAE,mBAAA,GAU1BR,KAAK,CATLS,YAAY;AAAZA,MAAAA,YAAY,GAAAD,mBAAA,KAAG,KAA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AM2C,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEjE,SAAS;AACjBkE,EAAAA,IAAI,EAAJA,iBAAI;AACJC,EAAAA,UAAU,EAAE;AACR3D,IAAAA,IAAI,EAAE4D,SAAO;AACb9D,IAAAA,IAAI,EAAE+D,WAAAA;GACT;AACDC,EAAAA,QAAQ,EAAE;AACNhE,IAAAA,IAAI,EAAE,SAAS;AACfE,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Steps.js","sources":["../../../src/components/Steps/Steps.tsx"],"sourcesContent":["import React, { forwardRef, useState, useEffect, HTMLAttributes } from 'react';\nimport cls from 'classnames';\n\nimport type { RootPropsOmitOnChange } from '../../engines/types';\n\nimport { classes } from './Steps.tokens';\nimport { StepsProps as BaseStepsProps } from './Steps.types';\nimport { StepItem } from './ui';\nimport { base } from './Steps.styles';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { getItemStatus } from './utils/getItemStatus';\n\ntype StepsProps = BaseStepsProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;\n\nexport const stepsRoot = (Root: RootPropsOmitOnChange<HTMLDivElement, StepsProps>) =>\n forwardRef<HTMLDivElement, StepsProps>((props, outerRef) => {\n const {\n view = 'default',\n size,\n orientation = 'horizontal',\n contentAlign = 'left',\n hasLine = true,\n hasContent = 'all',\n hasLoader,\n items = [],\n onChange,\n current,\n status,\n ...rest\n } = props;\n\n const [prevIndex, setPrevIndex] = useState<number | undefined>();\n\n const isUncontrolled = current !== undefined;\n const hasIndicator = items.some((item) => item.indicator != null);\n const isSimple = items.every((item) => !item.title && !item.content);\n\n useEffect(() => {\n return () => {\n if (current !== undefined) {\n setPrevIndex(current);\n } else {\n const index = items.findIndex((item) => item.status === 'active');\n setPrevIndex(index !== -1 ? index : undefined);\n }\n };\n }, [current, items]);\n\n return (\n <Root\n size={size}\n view={view}\n ref={outerRef}\n className={cls({\n [classes.verticalOrientation]: orientation === 'vertical',\n [classes.simple]: isSimple,\n [classes.hasIndicator]: hasIndicator,\n })}\n {...rest}\n >\n {items.map((item, index) => {\n const itemStatus = getItemStatus({ isUncontrolled, current, status, index, item });\n\n const isActive = itemStatus === 'active';\n\n const itemContent =\n (hasContent === 'active' && !isActive) || hasContent === 'none' ? '' : item.content;\n\n const itemContentAlign = orientation === 'horizontal' ? contentAlign : 'left';\n const onClick = onChange ? () => onChange(item, index, prevIndex) : undefined;\n\n return (\n <StepItem\n key={index}\n index={index}\n title={item.title}\n content={itemContent}\n indicator={item.indicator}\n status={itemStatus}\n size={size!}\n orientation={orientation}\n contentAlign={itemContentAlign}\n hasLine={hasLine}\n hasLoader={hasLoader && isActive}\n onClick={onClick}\n items={items}\n />\n );\n })}\n </Root>\n );\n });\n\nexport const stepsConfig = {\n name: 'Steps',\n tag: 'div',\n layout: stepsRoot,\n base,\n variations: {\n size: sizeCSS,\n view: viewCSS,\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["stepsRoot","Root","forwardRef","props","outerRef","_props$view","view","size","_props$orientation","orientation","_props$contentAlign","contentAlign","_props$hasLine","hasLine","_props$hasContent","hasContent","hasLoader","_props$items","items","onChange","current","status","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","prevIndex","setPrevIndex","isUncontrolled","undefined","hasIndicator","some","item","indicator","isSimple","every","title","content","useEffect","index","findIndex","React","createElement","_extends","ref","className","cls","_defineProperty","classes","verticalOrientation","simple","map","itemStatus","getItemStatus","isActive","itemContent","itemContentAlign","onClick","StepItem","key","stepsConfig","name","tag","layout","base","variations","sizeCSS","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;;IAeaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAAuD,EAAA;AAAA,EAAA,oBAC7EC,gBAAU,CAA6B,UAACC,KAAK,EAAEC,QA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;QACjBG,SAAS,EAAEA,SAAS,IAAIyC,QAAS;AACjCG,QAAAA,OAAO,EAAEA,OAAQ;AACjB1C,QAAAA,KAAK,EAAEA,KAAAA;AAAM,OAChB,CAAC,CAAA;AAEV,KAAC,CACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAM6C,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElE,SAAS;AACjBmE,EAAAA,IAAI,EAAJA,iBAAI;AACJC,EAAAA,UAAU,EAAE;AACR7D,IAAAA,IAAI,EAAE8D,SAAO;AACb/D,IAAAA,IAAI,EAAEgE,WAAAA;GACT;AACDC,EAAAA,QAAQ,EAAE;AACNjE,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
@@ -1,4 +1,4 @@
1
- import './Steps.styles_o055q.css';
1
+ import './Steps.styles_vv31r6.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.styles.js","sources":["../../../src/components/Steps/Steps.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from './Steps.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: row;\n\n &.${classes.simple} {\n align-items: center;\n\n &.${classes.hasIndicator} {\n height: var(${tokens.activeIndicatorSize});\n }\n &:not(.${classes.hasIndicator}) {\n height: var(${tokens.activeBulletSize});\n }\n\n &.${classes.verticalOrientation} {\n &.${classes.hasIndicator} {\n width: var(${tokens.activeIndicatorSize});\n height: auto;\n }\n &:not(.${classes.hasIndicator}) {\n width: var(${tokens.activeBulletSize});\n height: auto;\n }\n }\n }\n\n &.${classes.verticalOrientation} {\n display: inline;\n flex-direction: column;\n justify-content: center;\n\n &.${classes.simple} {\n display: inline-flex;\n }\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAmChB;;;;"}
1
+ {"version":3,"file":"Steps.styles.js","sources":["../../../src/components/Steps/Steps.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from './Steps.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: row;\n\n &.${classes.simple} {\n align-items: center;\n\n &.${classes.hasIndicator} {\n height: var(${tokens.activeIndicatorSize});\n }\n &:not(.${classes.hasIndicator}) {\n height: var(${tokens.activeBulletSize});\n }\n\n &.${classes.verticalOrientation} {\n &.${classes.hasIndicator} {\n width: var(${tokens.activeIndicatorSize});\n height: 100%;\n }\n &:not(.${classes.hasIndicator}) {\n width: var(${tokens.activeBulletSize});\n height: 100%;\n }\n }\n }\n\n &.${classes.verticalOrientation} {\n display: inline;\n flex-direction: column;\n justify-content: center;\n\n &.${classes.simple} {\n display: inline-flex;\n }\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAmChB;;;;"}
@@ -1 +1 @@
1
- .b7q3upx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.b7q3upx.simple{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.b7q3upx.simple.item-has-indicator{height:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple:not(.item-has-indicator){height:var(--plasma-step-item-active-bullet-size);}.b7q3upx.simple.vertical-orientation.item-has-indicator{width:var(--plasma-step-item-active-indicator-size);height:auto;}.b7q3upx.simple.vertical-orientation:not(.item-has-indicator){width:var(--plasma-step-item-active-bullet-size);height:auto;}.b7q3upx.vertical-orientation{display:inline;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.b7q3upx.vertical-orientation.simple{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
1
+ .b7q3upx{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.b7q3upx.simple{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.b7q3upx.simple.item-has-indicator{height:var(--plasma-step-item-active-indicator-size);}.b7q3upx.simple:not(.item-has-indicator){height:var(--plasma-step-item-active-bullet-size);}.b7q3upx.simple.vertical-orientation.item-has-indicator{width:var(--plasma-step-item-active-indicator-size);height:100%;}.b7q3upx.simple.vertical-orientation:not(.item-has-indicator){width:var(--plasma-step-item-active-bullet-size);height:100%;}.b7q3upx.vertical-orientation{display:inline;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.b7q3upx.vertical-orientation.simple{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
@@ -13,6 +13,7 @@ var classes = {
13
13
  verticalOrientation: 'vertical-orientation',
14
14
  hasIndicator: 'item-has-indicator',
15
15
  activeItem: 'item-active',
16
+ indentDivider: 'indent-divider',
16
17
  transparentDivider: 'transparent-divider'
17
18
  };
18
19
  var tokens = {
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.tokens.js","sources":["../../../src/components/Steps/Steps.tokens.ts"],"sourcesContent":["export const classes = {\n simple: 'simple',\n centered: 'item-centered',\n active: 'item-active',\n inactive: 'item-inactive',\n clickable: 'item-clickable',\n hovered: 'item-hovered',\n disabled: 'item-disabled',\n verticalOrientation: 'vertical-orientation',\n hasIndicator: 'item-has-indicator',\n activeItem: 'item-active',\n transparentDivider: 'transparent-divider',\n};\n\nexport const tokens = {\n indicatorSize: '--plasma-step-item-indicator-size',\n activeIndicatorSize: '--plasma-step-item-active-indicator-size',\n bulletSize: '--plasma-step-item-bullet-size',\n activeBulletSize: '--plasma-step-item-active-bullet-size',\n\n titlePaddingTop: '--plasma-step-item-title-padding-top',\n contentPaddingTop: '--plasma-step-item-content-padding-top',\n contentPaddingRight: '--plasma-step-item-content-padding-right',\n contentSidePadding: '--plasma-step-item-content-side-padding',\n contentVerticalPadding: '--plasma-step-item-content-vertical-padding',\n verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',\n\n smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',\n largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',\n smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',\n largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',\n\n titleFontFamily: '--plasma-step-item-title-font-family',\n titleFontSize: '--plasma-step-item-title-font-size',\n titleFontStyle: '--plasma-step-item-title-font-style',\n titleFontWeight: '--plasma-step-item-title-font-weight',\n titleLetterSpacing: '--plasma-step-item-title-letter-spacing',\n titleLineHeight: '--plasma-step-item-title-line-height',\n\n contentFontFamily: '--plasma-step-item-content-font-family',\n contentFontSize: '--plasma-step-item-content-font-size',\n contentFontStyle: '--plasma-step-item-content-font-style',\n contentFontWeight: '--plasma-step-item-content-font-weight',\n contentLetterSpacing: '--plasma-step-item-content-letter-spacing',\n contentLineHeight: '--plasma-step-item-content-line-height',\n\n indicatorFontFamily: '--plasma-step-item-indicator-font-family',\n indicatorFontSize: '--plasma-step-item-indicator-font-size',\n indicatorFontStyle: '--plasma-step-item-indicator-font-style',\n indicatorFontWeight: '--plasma-step-item-indicator-font-weight',\n indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',\n indicatorLineHeight: '--plasma-step-item-indicator-line-height',\n\n activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',\n activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',\n activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',\n activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',\n activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',\n activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',\n\n activeTitleColor: '--plasma-step-item-active-title-color',\n activeTitleColorHover: '--plasma-step-item-active-title-color-hover',\n inactiveTitleColor: '--plasma-step-item-inactive-title-color',\n inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',\n\n contentColor: '--plasma-step-item-content-color',\n\n activeIndicatorBorder: '--plasma-step-item-active-indicator-border',\n activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',\n\n activeIndicatorColor: '--plasma-step-item-active-indicator-color',\n activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',\n activeIndicatorBackground: '--plasma-step-item-active-indicator-background',\n\n completedIndicatorColor: '--plasma-step-item-completed-indicator-color',\n completedIndicatorColorHover: '--plasma-step-item-completed-indicator-color-hover',\n completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',\n completedIndicatorBackgroundHover: '--plasma-step-item-completed-indicator-background-hover',\n\n inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',\n inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',\n inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',\n inactiveIndicatorBackgroundHover: '--plasma-step-item-inactive-indicator-background-hover',\n\n disabledOpacity: '--plasma-step-item-disabled-opacity',\n\n dividerThickness: '--plasma-step-item-divider-thickness',\n};\n"],"names":["classes","simple","centered","active","inactive","clickable","hovered","disabled","verticalOrientation","hasIndicator","activeItem","transparentDivider","tokens","indicatorSize","activeIndicatorSize","bulletSize","activeBulletSize","titlePaddingTop","contentPaddingTop","contentPaddingRight","contentSidePadding","contentVerticalPadding","verticalContentPaddingLeft","smallIndicatorIndentHeight","largeIndicatorIndentHeight","smallBulletIndentHeight","largeBulletIndentHeight","titleFontFamily","titleFontSize","titleFontStyle","titleFontWeight","titleLetterSpacing","titleLineHeight","contentFontFamily","contentFontSize","contentFontStyle","contentFontWeight","contentLetterSpacing","contentLineHeight","indicatorFontFamily","indicatorFontSize","indicatorFontStyle","indicatorFontWeight","indicatorLetterSpacing","indicatorLineHeight","activeIndicatorFontFamily","activeIndicatorFontSize","activeIndicatorFontStyle","activeIndicatorFontWeight","activeIndicatorLetterSpacing","activeIndicatorLineHeight","activeTitleColor","activeTitleColorHover","inactiveTitleColor","inactiveTitleColorHover","contentColor","activeIndicatorBorder","activeIndicatorBorderHover","activeIndicatorColor","activeIndicatorColorHover","activeIndicatorBackground","completedIndicatorColor","completedIndicatorColorHover","completedIndicatorBackground","completedIndicatorBackgroundHover","inactiveIndicatorColor","inactiveIndicatorColorHover","inactiveIndicatorBackground","inactiveIndicatorBackgroundHover","disabledOpacity","dividerThickness"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,MAAM,EAAE,aAAa;AACrBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,SAAS,EAAE,gBAAgB;AAC3BC,EAAAA,OAAO,EAAE,cAAc;AACvBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,mBAAmB,EAAE,sBAAsB;AAC3CC,EAAAA,YAAY,EAAE,oBAAoB;AAClCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,kBAAkB,EAAE,qBAAA;AACxB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,UAAU,EAAE,gCAAgC;AAC5CC,EAAAA,gBAAgB,EAAE,uCAAuC;AAEzDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,0BAA0B,EAAE,kDAAkD;AAE9EC,EAAAA,0BAA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qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,0BAA0B,EAAE,kDAAkD;AAE9EC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,yBAAyB,EAAE,iDAAiD;AAC5EC,EAAAA,yBAAyB,EAAE,gDAAgD;AAE3EC,EAAAA,uBAAuB,EAAE,8CAA8C;AACvEC,EAAAA,4BAA4B,EAAE,oDAAoD;AAClFC,EAAAA,4BAA4B,EAAE,mDAAmD;AACjFC,EAAAA,iCAAiC,EAAE,yDAAyD;AAE5FC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,2BAA2B,EAAE,mDAAmD;AAChFC,EAAAA,2BAA2B,EAAE,kDAAkD;AAC/EC,EAAAA,gCAAgC,EAAE,wDAAwD;AAE1FC,EAAAA,eAAe,EAAE,qCAAqC;AAEtDC,EAAAA,gBAAgB,EAAE,sCAAA;AACtB;;;;;"}
1
+ {"version":3,"file":"Steps.tokens.js","sources":["../../../src/components/Steps/Steps.tokens.ts"],"sourcesContent":["export const classes = {\n simple: 'simple',\n centered: 'item-centered',\n active: 'item-active',\n inactive: 'item-inactive',\n clickable: 'item-clickable',\n hovered: 'item-hovered',\n disabled: 'item-disabled',\n verticalOrientation: 'vertical-orientation',\n hasIndicator: 'item-has-indicator',\n activeItem: 'item-active',\n indentDivider: 'indent-divider',\n transparentDivider: 'transparent-divider',\n};\n\nexport const tokens = {\n indicatorSize: '--plasma-step-item-indicator-size',\n activeIndicatorSize: '--plasma-step-item-active-indicator-size',\n bulletSize: '--plasma-step-item-bullet-size',\n activeBulletSize: '--plasma-step-item-active-bullet-size',\n\n titlePaddingTop: '--plasma-step-item-title-padding-top',\n contentPaddingTop: '--plasma-step-item-content-padding-top',\n contentPaddingRight: '--plasma-step-item-content-padding-right',\n contentSidePadding: '--plasma-step-item-content-side-padding',\n contentVerticalPadding: '--plasma-step-item-content-vertical-padding',\n verticalContentPaddingLeft: '--plasma-step-item-vertical-content-padding-left',\n\n smallIndicatorIndentHeight: '--plasma-step-item-s-indicator-intent-height',\n largeIndicatorIndentHeight: '--plasma-step-item-l-indicator-intent-height',\n smallBulletIndentHeight: '--plasma-step-item-s-bullet-intent-height',\n largeBulletIndentHeight: '--plasma-step-item-l-bullet-intent-height',\n\n titleFontFamily: '--plasma-step-item-title-font-family',\n titleFontSize: '--plasma-step-item-title-font-size',\n titleFontStyle: '--plasma-step-item-title-font-style',\n titleFontWeight: '--plasma-step-item-title-font-weight',\n titleLetterSpacing: '--plasma-step-item-title-letter-spacing',\n titleLineHeight: '--plasma-step-item-title-line-height',\n\n contentFontFamily: '--plasma-step-item-content-font-family',\n contentFontSize: '--plasma-step-item-content-font-size',\n contentFontStyle: '--plasma-step-item-content-font-style',\n contentFontWeight: '--plasma-step-item-content-font-weight',\n contentLetterSpacing: '--plasma-step-item-content-letter-spacing',\n contentLineHeight: '--plasma-step-item-content-line-height',\n\n indicatorFontFamily: '--plasma-step-item-indicator-font-family',\n indicatorFontSize: '--plasma-step-item-indicator-font-size',\n indicatorFontStyle: '--plasma-step-item-indicator-font-style',\n indicatorFontWeight: '--plasma-step-item-indicator-font-weight',\n indicatorLetterSpacing: '--plasma-step-item-indicator-letter-spacing',\n indicatorLineHeight: '--plasma-step-item-indicator-line-height',\n\n activeIndicatorFontFamily: '--plasma-step-item-active-indicator-font-family',\n activeIndicatorFontSize: '--plasma-step-item-active-indicator-font-size',\n activeIndicatorFontStyle: '--plasma-step-item-active-indicator-font-style',\n activeIndicatorFontWeight: '--plasma-step-item-active-indicator-font-weight',\n activeIndicatorLetterSpacing: '--plasma-step-item-active-indicator-letter-spacing',\n activeIndicatorLineHeight: '--plasma-step-item-active-indicator-line-height',\n\n activeTitleColor: '--plasma-step-item-active-title-color',\n activeTitleColorHover: '--plasma-step-item-active-title-color-hover',\n inactiveTitleColor: '--plasma-step-item-inactive-title-color',\n inactiveTitleColorHover: '--plasma-step-item-inactive-title-color-hover',\n\n contentColor: '--plasma-step-item-content-color',\n\n activeIndicatorBorder: '--plasma-step-item-active-indicator-border',\n activeIndicatorBorderHover: '--plasma-step-item-active-indicator-border-hover',\n\n activeIndicatorColor: '--plasma-step-item-active-indicator-color',\n activeIndicatorColorHover: '--plasma-step-item-active-indicator-color-hover',\n activeIndicatorBackground: '--plasma-step-item-active-indicator-background',\n\n completedIndicatorColor: '--plasma-step-item-completed-indicator-color',\n completedIndicatorColorHover: '--plasma-step-item-completed-indicator-color-hover',\n completedIndicatorBackground: '--plasma-step-item-completed-indicator-background',\n completedIndicatorBackgroundHover: '--plasma-step-item-completed-indicator-background-hover',\n\n inactiveIndicatorColor: '--plasma-step-item-inactive-indicator-color',\n inactiveIndicatorColorHover: '--plasma-step-item-inactive-indicator-color-hover',\n inactiveIndicatorBackground: '--plasma-step-item-inactive-indicator-background',\n inactiveIndicatorBackgroundHover: '--plasma-step-item-inactive-indicator-background-hover',\n\n disabledOpacity: '--plasma-step-item-disabled-opacity',\n\n dividerThickness: '--plasma-step-item-divider-thickness',\n};\n"],"names":["classes","simple","centered","active","inactive","clickable","hovered","disabled","verticalOrientation","hasIndicator","activeItem","indentDivider","transparentDivider","tokens","indicatorSize","activeIndicatorSize","bulletSize","activeBulletSize","titlePaddingTop","contentPaddingTop","contentPaddingRight","contentSidePadding","contentVerticalPadding","verticalContentPaddingLeft","smallIndicatorIndentHeight","largeIndicatorIndentHeight","smallBulletIndentHeight","largeBulletIndentHeight","titleFontFamily","titleFontSize","titleFontStyle","titleFontWeight","titleLetterSpacing","titleLineHeight","contentFontFamily","contentFontSize","contentFontStyle","contentFontWeight","contentLetterSpacing","contentLineHeight","indicatorFontFamily","indicatorFontSize","indicatorFontStyle","indicatorFontWeight","indicatorLetterSpacing","indicatorLineHeight","activeIndicatorFontFamily","activeIndicatorFontSize","activeIndicatorFontStyle","activeIndicatorFontWeight","activeIndicatorLetterSpacing","activeIndicatorLineHeight","activeTitleColor","activeTitleColorHover","inactiveTitleColor","inactiveTitleColorHover","contentColor","activeIndicatorBorder","activeIndicatorBorderHover","activeIndicatorColor","activeIndicatorColorHover","activeIndicatorBackground","completedIndicatorColor","completedIndicatorColorHover","completedIndicatorBackground","completedIndicatorBackgroundHover","inactiveIndicatorColor","inactiveIndicatorColorHover","inactiveIndicatorBackground","inactiveIndicatorBackgroundHover","disabledOpacity","dividerThickness"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,MAAM,EAAE,aAAa;AACrBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,SAAS,EAAE,gBAAgB;AAC3BC,EAAAA,OAAO,EAAE,cAAc;AACvBC,EAAAA,QAAQ,EAAE,eAAe;AACzBC,EAAAA,mBAAmB,EAAE,sBAAsB;AAC3CC,EAAAA,YAAY,EAAE,oBAAoB;AAClCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,kBAAkB,EAAE,qBAAA;AACxB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,UAAU,EAAE,gCAAgC;AAC5CC,EAAAA,gBAAgB,EAAE,uCAAuC;AAEzDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAC3DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,0BAA0B,EAAE,kDAAkD;AAE9EC,EAAAA,0BAA0B,EAAE,8CAA8C;AAC1EC,EAAAA,0BAA0B,EAAE,8CAA8C;AAC1EC,EAAAA,uBAAuB,EAAE,2CAA2C;AACpEC,EAAAA,uBAAuB,EAAE,2CAA2C;AAEpEC,EAAAA,eAAe,EAAE,sCAA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,gDAAgD;AAE3EC,EAAAA,uBAAuB,EAAE,8CAA8C;AACvEC,EAAAA,4BAA4B,EAAE,oDAAoD;AAClFC,EAAAA,4BAA4B,EAAE,mDAAmD;AACjFC,EAAAA,iCAAiC,EAAE,yDAAyD;AAE5FC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,2BAA2B,EAAE,mDAAmD;AAChFC,EAAAA,2BAA2B,EAAE,kDAAkD;AAC/EC,EAAAA,gCAAgC,EAAE,wDAAwD;AAE1FC,EAAAA,eAAe,EAAE,qCAAqC;AAEtDC,EAAAA,gBAAgB,EAAE,sCAAA;AACtB;;;;;"}
@@ -5,12 +5,12 @@
5
5
  .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
6
6
  .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
7
7
 
8
- .StepItem_styles_urheiv_snf9dn9__f60aa364{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
9
- .StepItem_styles_urheiv_sv5tpso__f60aa364{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
10
- .StepItem_styles_urheiv_s529fhk__f60aa364{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
11
- .StepItem_styles_urheiv_b1kcj14__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_itemHasIndicator__f60aa364{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple):not(.StepItem_styles_urheiv_itemHasIndicator__f60aa364){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364.StepItem_styles_urheiv_itemHasIndicator__f60aa364{min-width:var(--plasma-step-item-active-indicator-size);min-height:100%;}.StepItem_styles_urheiv_b1kcj14__f60aa364:not(simple).StepItem_styles_urheiv_verticalOrientation__f60aa364:not(.StepItem_styles_urheiv_itemHasIndicator__f60aa364){min-width:var(--plasma-step-item-active-bullet-size);min-height:100%;}.StepItem_styles_urheiv_b1kcj14__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.StepItem_styles_urheiv_b1kcj14__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
12
- .StepItem_styles_urheiv_b9hdug__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364:before,.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364:after{background:var(--plasma-step-item-inactive-indicator-background);}
13
- .StepItem_styles_urheiv_b1eo1o32__f60aa364.StepItem_styles_urheiv_b9hdug__f60aa364{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_urheiv_b1eo1o32__f60aa364.StepItem_styles_urheiv_b9hdug__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background-color:var(--plasma-step-item-active-indicator-background);}
14
- .StepItem_styles_urheiv_sxskc3q__f60aa364{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background-color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_urheiv_sxskc3q__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364{background-color:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_urheiv_sxskc3q__f60aa364.StepItem_styles_urheiv_transparentDivider__f60aa364{background-color:transparent;}
15
- .StepItem_styles_urheiv_s4zgmmr__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_urheiv_s4zgmmr__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_s529fhk__f60aa364{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
16
- .StepItem_styles_urheiv_s12pqpa3__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_verticalOrientation__f60aa364 .StepItem_styles_urheiv_sxskc3q__f60aa364{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemActive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_sv5tpso__f60aa364{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_b9hdug__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364:not(item-active) .StepItem_styles_urheiv_b1eo1o32__f60aa364{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_b9hdug__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364.StepItem_styles_urheiv_itemInactive__f60aa364 .StepItem_styles_urheiv_b1eo1o32__f60aa364{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemHovered__f60aa364 .StepItem_styles_urheiv_b1kcj14__f60aa364{cursor:pointer;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364{width:100%;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_sv5tpso__f60aa364,.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemCentered__f60aa364 .StepItem_styles_urheiv_s4zgmmr__f60aa364 .StepItem_styles_urheiv_s529fhk__f60aa364{padding-right:0;text-align:center;}.StepItem_styles_urheiv_s12pqpa3__f60aa364.StepItem_styles_urheiv_itemDisabled__f60aa364{opacity:var(--plasma-step-item-disabled-opacity);}
8
+ .StepItem_styles_1y1xj5d_snf9dn9__5c4153e3{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
9
+ .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
10
+ .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-top:var(--plasma-step-item-content-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-content-font-family);font-size:var(--plasma-step-item-content-font-size);font-style:var(--plasma-step-item-content-font-style);font-weight:var(--plasma-step-item-content-font-weight);-webkit-letter-spacing:var(--plasma-step-item-content-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-content-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-content-letter-spacing);letter-spacing:var(--plasma-step-item-content-letter-spacing);line-height:var(--plasma-step-item-content-line-height);word-break:break-word;color:var(--plasma-step-item-content-color);}
11
+ .StepItem_styles_1y1xj5d_b1kcj14__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3){-webkit-flex:0;-ms-flex:0;flex:0;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3).StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3{width:100%;min-height:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3):not(.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3){width:100%;min-height:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3:not(.StepItem_styles_1y1xj5d_simple__5c4153e3).StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{padding-right:var(--plasma-step-item-vertical-content-padding-left);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;min-height:100%;}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3{min-width:var(--plasma-step-item-active-indicator-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3:not(.StepItem_styles_1y1xj5d_itemHasIndicator__5c4153e3){min-width:var(--plasma-step-item-active-bullet-size);}.StepItem_styles_1y1xj5d_b1kcj14__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
12
+ .StepItem_styles_1y1xj5d_b9hdug__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:var(--plasma-step-item-indicator-size);height:var(--plasma-step-item-indicator-size);border-radius:50%;box-sizing:border-box;position:relative;color:var(--plasma-step-item-completed-indicator-color);background-color:var(--plasma-step-item-completed-indicator-background);font-family:var(--plasma-step-item-indicator-font-family);font-size:var(--plasma-step-item-indicator-font-size);font-style:var(--plasma-step-item-indicator-font-style);font-weight:var(--plasma-step-item-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-indicator-letter-spacing);line-height:var(--plasma-step-item-indicator-line-height);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3{width:var(--plasma-step-item-active-indicator-size);height:var(--plasma-step-item-active-indicator-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);font-family:var(--plasma-step-item-active-indicator-font-family);font-size:var(--plasma-step-item-active-indicator-font-size);font-style:var(--plasma-step-item-active-indicator-font-style);font-weight:var(--plasma-step-item-active-indicator-font-weight);-webkit-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);letter-spacing:var(--plasma-step-item-active-indicator-letter-spacing);line-height:var(--plasma-step-item-active-indicator-line-height);color:var(--plasma-step-item-active-indicator-color);background:var(--plasma-step-item-active-indicator-background);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3{color:var(--plasma-step-item-inactive-indicator-color);background:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3:before,.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3:after{background:var(--plasma-step-item-inactive-indicator-background);}
13
+ .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3.StepItem_styles_1y1xj5d_b9hdug__5c4153e3{width:var(--plasma-step-item-bullet-size);height:var(--plasma-step-item-bullet-size);}.StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3.StepItem_styles_1y1xj5d_b9hdug__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3{width:var(--plasma-step-item-active-bullet-size);height:var(--plasma-step-item-active-bullet-size);border:var(--plasma-step-item-divider-thickness) var(--plasma-step-item-active-indicator-border);background-color:var(--plasma-step-item-active-indicator-background);}
14
+ .StepItem_styles_1y1xj5d_sxskc3q__5c4153e3{width:100%;height:var(--plasma-step-item-divider-thickness);-webkit-flex:1;-ms-flex:1;flex:1;background-color:var(--plasma-step-item-active-indicator-color);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3{background-color:var(--plasma-step-item-inactive-indicator-background);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_transparentDivider__5c4153e3{background-color:transparent;}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_indentDivider__5c4153e3{height:var(--sxskc3q-0);min-height:var(--sxskc3q-0);max-height:var(--sxskc3q-0);}.StepItem_styles_1y1xj5d_sxskc3q__5c4153e3.StepItem_styles_1y1xj5d_indentDivider__5c4153e3.StepItem_styles_1y1xj5d_simple__5c4153e3{height:auto;max-height:none;}
15
+ .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{padding-top:var(--plasma-step-item-content-vertical-padding);padding-right:0;}.StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-top:var(--plasma-step-item-content-vertical-padding);padding-bottom:var(--plasma-step-item-content-vertical-padding);padding-right:0;}
16
+ .StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_verticalOrientation__5c4153e3 .StepItem_styles_1y1xj5d_sxskc3q__5c4153e3{width:var(--plasma-step-item-divider-thickness);height:100%;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemActive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-active-title-color);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-inactive-title-color);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{cursor:pointer;color:var(--plasma-step-item-active-title-color-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_b9hdug__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3:not(.StepItem_styles_1y1xj5d_itemActive__5c4153e3) .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3{color:var(--plasma-step-item-completed-indicator-color-hover);background:var(--plasma-step-item-completed-indicator-background-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{color:var(--plasma-step-item-inactive-title-color-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_b9hdug__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3.StepItem_styles_1y1xj5d_itemInactive__5c4153e3 .StepItem_styles_1y1xj5d_b1eo1o32__5c4153e3{color:var(--plasma-step-item-inactive-indicator-color-hover);background:var(--plasma-step-item-inactive-indicator-background-hover);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemHovered__5c4153e3 .StepItem_styles_1y1xj5d_b1kcj14__5c4153e3{cursor:pointer;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:calc(var(--plasma-step-item-content-side-padding) / 2);padding-right:calc(var(--plasma-step-item-content-side-padding) / 2);}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3{width:100%;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_sv5tpso__5c4153e3,.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemCentered__5c4153e3 .StepItem_styles_1y1xj5d_s4zgmmr__5c4153e3 .StepItem_styles_1y1xj5d_s529fhk__5c4153e3{padding-right:0;text-align:center;}.StepItem_styles_1y1xj5d_s12pqpa3__5c4153e3.StepItem_styles_1y1xj5d_itemDisabled__5c4153e3{opacity:var(--plasma-step-item-disabled-opacity);}
@@ -8,6 +8,7 @@ var cls = require('classnames');
8
8
  var Steps_tokens = require('../../Steps.tokens.js');
9
9
  var StepItem_styles = require('./StepItem.styles.js');
10
10
 
11
+ // todo попробовать заменить через baseline выравнивание
11
12
  var indicatorSizesIndentsMap = {
12
13
  8: /*#__PURE__*/"var(".concat(Steps_tokens.tokens.smallBulletIndentHeight, ")"),
13
14
  16: /*#__PURE__*/"var(".concat(Steps_tokens.tokens.largeBulletIndentHeight, ")"),
@@ -57,7 +58,7 @@ var StepItem = function StepItem(_ref) {
57
58
  } else {
58
59
  resultIndicatorSize = isActive ? 16 : 8;
59
60
  }
60
- var sizeToken = indicatorSizesIndentsMap[resultIndicatorSize];
61
+ var indentToken = indicatorSizesIndentsMap[resultIndicatorSize];
61
62
  var onMouseOver = clickable && !isDisabled ? function () {
62
63
  if (isDisabled) {
63
64
  setIsHovered(false);
@@ -84,14 +85,10 @@ var StepItem = function StepItem(_ref) {
84
85
  }, contentAlign === 'center' && !isSimple && /*#__PURE__*/React.createElement(StepItem_styles.StepItemDivider, {
85
86
  className: cls(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.simple, isSimple), Steps_tokens.classes.transparentDivider, !hasLine || isFirst), Steps_tokens.classes.inactive, isInactive || isPrevInactive))
86
87
  }), isVertical && (isSimple ? !isFirst : true) && /*#__PURE__*/React.createElement(StepItem_styles.StepItemDivider, {
87
- className: cls(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.simple, isSimple), Steps_tokens.classes.transparentDivider, !hasLine || isFirst), Steps_tokens.classes.inactive, isInactive || isPrevInactive)),
88
- style: {
89
- height: isSimple ? 'none' : sizeToken,
90
- minHeight: sizeToken,
91
- maxHeight: isSimple ? 'none' : sizeToken
92
- }
88
+ className: cls(Steps_tokens.classes.indentDivider, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.simple, isSimple), Steps_tokens.classes.transparentDivider, !hasLine || isFirst), Steps_tokens.classes.inactive, isInactive || isPrevInactive)),
89
+ indentToken: indentToken
93
90
  }), hasLoader && /*#__PURE__*/React.createElement(StepItem_styles.SpinnerStyled, {
94
- size: hasIndicator ? "var(".concat(Steps_tokens.tokens.activeIndicatorSize, ")") : "var(".concat(Steps_tokens.tokens.activeBulletSize, ")")
91
+ hasIndicator: hasIndicator
95
92
  }), !hasLoader && /*#__PURE__*/React.createElement(BulletNode, {
96
93
  className: cls(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.active, isActive), Steps_tokens.classes.inactive, isInactive))
97
94
  }, typeof indicator === 'function' && indicator({
@@ -109,7 +106,7 @@ var StepItem = function StepItem(_ref) {
109
106
  onMouseOver: onMouseOver,
110
107
  onMouseOut: onMouseOut
111
108
  }, title), content && /*#__PURE__*/React.createElement(StepItem_styles.StepItemContent, null, typeof content === 'function' && content(status, index, items), typeof content !== 'function' && content))), isSimple && !isLast && /*#__PURE__*/React.createElement(StepItem_styles.StepItemDivider, {
112
- className: cls(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.simple, isSimple), Steps_tokens.classes.transparentDivider, !hasLine), Steps_tokens.classes.inactive, isInactive || isNextInactive))
109
+ className: cls(Steps_tokens.classes.simple, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, Steps_tokens.classes.verticalOrientation, isVertical), Steps_tokens.classes.transparentDivider, !hasLine), Steps_tokens.classes.inactive, isInactive || isNextInactive))
113
110
  }));
114
111
  };
115
112
 
@@ -1 +1 @@
1
- {"version":3,"file":"StepItem.js","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport cls from 'classnames';\n\nimport { classes, tokens } from '../../Steps.tokens';\nimport { StepsContent, StepsContentAlign, StepsOrientation } from '../../Steps.types';\n\nimport type { StepItemProps } from './StepItem.types';\nimport {\n Bullet,\n BulletIndicator,\n BulletIndicatorWrapper,\n StepItemContent,\n StepItemContentWrapper,\n StepItemDivider,\n StepItemStyled,\n StepItemTitle,\n SpinnerStyled,\n} from './StepItem.styles';\n\nconst indicatorSizesIndentsMap = {\n 8: `var(${tokens.smallBulletIndentHeight})`,\n 16: `var(${tokens.largeBulletIndentHeight})`,\n 24: `var(${tokens.smallIndicatorIndentHeight})`,\n 36: `var(${tokens.largeIndicatorIndentHeight})`,\n} as const;\n\nexport const StepItem: React.FC<\n StepItemProps & {\n index: number;\n items: StepItemProps[];\n size: string;\n hasLine?: boolean;\n hasContent?: StepsContent;\n hasLoader?: boolean;\n isFirst?: boolean;\n isLast?: boolean;\n onClick?: (item: StepItemProps, index: number) => void;\n contentAlign?: StepsContentAlign;\n orientation?: StepsOrientation;\n }\n> = ({\n index,\n title,\n content,\n indicator,\n status = 'inactive',\n size,\n orientation,\n contentAlign,\n hasLine,\n hasLoader,\n onClick,\n items,\n}) => {\n const [isHovered, setIsHovered] = useState(false);\n\n const isFirst = index === 0;\n const isLast = index === items.length - 1;\n\n const prevItem = items[index - 1];\n const nextItem = items[index + 1];\n\n const isActive = status === 'active';\n const isInactive = status === 'inactive';\n const isPrevInactive = (prevItem && !prevItem?.status) || prevItem?.status === 'inactive';\n const isNextInactive = !nextItem?.status || nextItem?.status === 'inactive';\n\n const hasIndicator = indicator != null;\n\n const BulletNode = hasIndicator ? BulletIndicator : Bullet;\n\n const item = items[index];\n const isSimple = !title && !content;\n const clickable = Boolean(onClick);\n const isVertical = orientation === 'vertical';\n const isCentered = contentAlign === 'center';\n const isDisabled = item.disabled;\n\n const onClickHandler = onClick && !isDisabled ? () => onClick(item, index) : undefined;\n\n let resultIndicatorSize: keyof typeof indicatorSizesIndentsMap;\n if (hasIndicator) {\n resultIndicatorSize = isActive ? 36 : 24;\n } else {\n resultIndicatorSize = isActive ? 16 : 8;\n }\n\n const sizeToken = indicatorSizesIndentsMap[resultIndicatorSize];\n\n const onMouseOver =\n clickable && !isDisabled\n ? () => {\n if (isDisabled) {\n setIsHovered(false);\n }\n\n setIsHovered(true);\n }\n : undefined;\n\n const onMouseOut =\n clickable && !isDisabled\n ? () => {\n setIsHovered(false);\n }\n : undefined;\n\n useEffect(() => {\n if (isDisabled) {\n setIsHovered(false);\n }\n }, [isDisabled]);\n\n return (\n <>\n <StepItemStyled\n className={cls({\n [classes.simple]: isSimple,\n [classes.active]: isActive,\n [classes.hovered]: isHovered && !isActive,\n [classes.inactive]: isInactive,\n [classes.centered]: isCentered,\n [classes.disabled]: isDisabled,\n [classes.clickable]: clickable && !isActive,\n [classes.hasIndicator]: hasIndicator,\n [classes.verticalOrientation]: isVertical,\n })}\n >\n <BulletIndicatorWrapper\n className={cls({\n [classes.verticalOrientation]: isVertical,\n [classes.centered]: isCentered,\n [classes.simple]: isSimple,\n [classes.hasIndicator]: hasIndicator,\n })}\n onClick={onClickHandler}\n onFocus={onMouseOver}\n onBlur={onMouseOut}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n >\n {contentAlign === 'center' && !isSimple && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isFirst,\n [classes.inactive]: isInactive || isPrevInactive,\n })}\n />\n )}\n {isVertical && (isSimple ? !isFirst : true) && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isFirst,\n [classes.inactive]: isInactive || isPrevInactive,\n })}\n style={{\n height: isSimple ? 'none' : sizeToken,\n minHeight: sizeToken,\n maxHeight: isSimple ? 'none' : sizeToken,\n }}\n />\n )}\n {hasLoader && (\n <SpinnerStyled\n size={\n hasIndicator ? `var(${tokens.activeIndicatorSize})` : `var(${tokens.activeBulletSize})`\n }\n />\n )}\n {!hasLoader && (\n <BulletNode\n className={cls({\n [classes.active]: isActive,\n [classes.inactive]: isInactive,\n })}\n >\n {typeof indicator === 'function' && indicator({ status, item, size })}\n {typeof indicator !== 'function' && indicator}\n </BulletNode>\n )}\n {!isSimple && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isLast,\n [classes.inactive]: isInactive || isNextInactive,\n })}\n />\n )}\n </BulletIndicatorWrapper>\n {!isSimple && (\n <StepItemContentWrapper\n className={cls({\n [classes.verticalOrientation]: isVertical,\n [classes.centered]: isCentered,\n [classes.active]: isActive,\n [classes.hasIndicator]: hasIndicator,\n })}\n >\n <StepItemTitle\n onClick={onClickHandler}\n onFocus={onMouseOver}\n onBlur={onMouseOut}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n >\n {title}\n </StepItemTitle>\n {content && (\n <StepItemContent>\n {typeof content === 'function' && content(status, index, items)}\n {typeof content !== 'function' && content}\n </StepItemContent>\n )}\n </StepItemContentWrapper>\n )}\n </StepItemStyled>\n {isSimple && !isLast && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine,\n [classes.inactive]: isInactive || isNextInactive,\n })}\n />\n )}\n </>\n );\n};\n"],"names":["indicatorSizesIndentsMap","concat","tokens","smallBulletIndentHeight","largeBulletIndentHeight","smallIndicatorIndentHeight","largeIndicatorIndentHeight","StepItem","_ref","index","title","content","indicator","_ref$status","status","size","orientation","contentAlign","hasLine","hasLoader","onClick","items","_useState","useState","_useState2","_slicedToArray","isHovered","setIsHovered","isFirst","isLast","length","prevItem","nextItem","isActive","isInactive","isPrevInactive","isNextInactive","hasIndicator","BulletNode","BulletIndicator","Bullet","item","isSimple","clickable","Boolean","isVertical","isCentered","isDisabled","disabled","onClickHandler","undefined","resultIndicatorSize","sizeToken","onMouseOver","onMouseOut","useEffect","React","createElement","Fragment","StepItemStyled","className","cls","_defineProperty","classes","simple","active","hovered","inactive","centered","verticalOrientation","BulletIndicatorWrapper","onFocus","onBlur","StepItemDivider","transparentDivider","style","height","minHeight","maxHeight","SpinnerStyled","activeIndicatorSize","activeBulletSize","StepItemContentWrapper","StepItemTitle","StepItemContent"],"mappings":";;;;;;;;;;AAmBA,IAAMA,wBAAwB,GAAG;AAC7B,EAAA,CAAC,sBAAAC,MAAA,CAASC,mBAAM,CAACC,uBAAuB,EAAG,GAAA,CAAA;AAC3C,EAAA,EAAE,sBAAAF,MAAA,CAASC,mBAAM,CAACE,uBAAuB,EAAG,GAAA,CAAA;AAC5C,EAAA,EAAE,sBAAAH,MAAA,CAASC,mBAAM,CAACG,0BAA0B,EAAG,GAAA,CAAA;AAC/C,EAAA,EAAE,eAAAJ,MAAAA,CAAAA,MAAA,CAASC,mBAAM,CAACI,0BAA0B,EAAA,GAAA,CAAA;AAChD,CAAU,CAAA;IAEGC,QAcZ,GAAG,SAdSA,QAcZA,CAAAC,IAAA,EAaK;AAAA,EAAA,IAZFC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAAC,WAAA,GAAAL,IAAA,CACTM,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,WAAA;IACnBE,IAAI,GAAAP,IAAA,CAAJO,IAAI;IACJC,WAAW,GAAAR,IAAA,CAAXQ,WAAW;IACXC,YAAY,GAAAT,IAAA,CAAZS,YAAY;IACZC,OAAO,GAAAV,IAAA,CAAPU,OAAO;IACPC,SAAS,GAAAX,IAAA,CAATW,SAAS;IACTC,OAAO,GAAAZ,IAAA,CAAPY,OAAO;IACPC,KAAK,GAAAb,IAAA,CAALa,KAAK,C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CAAA,CACTC,EAAAA,EAAAA,oBAAO,CAACM,mBAAmB,EAAGxB,UAAU,CAAA,EACxCkB,oBAAO,CAACK,QAAQ,EAAGtB,UAAU,CAAA,EAC7BiB,oBAAO,CAACE,MAAM,EAAGhC,QAAQ,GACzB8B,oBAAO,CAAC1B,YAAY,EAAGA,YAAY,CACvC,CAAA;AAAE,GAAA,eAEHmB,KAAA,CAAAC,aAAA,CAAC0B,6BAAa,EAAA;AACV/D,IAAAA,OAAO,EAAE6B,cAAe;AACxBsB,IAAAA,OAAO,EAAElB,WAAY;AACrBmB,IAAAA,MAAM,EAAElB,UAAW;AACnBD,IAAAA,WAAW,EAAEA,WAAY;AACzBC,IAAAA,UAAU,EAAEA,UAAAA;GAEX5C,EAAAA,KACU,CAAC,EACfC,OAAO,iBACJ6C,KAAA,CAAAC,aAAA,CAAC2B,+BAAe,QACX,OAAOzE,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACG,MAAM,EAAEL,KAAK,EAAEY,KAAK,CAAC,EAC9D,OAAOV,OAAO,KAAK,UAAU,IAAIA,OACrB,CAED,CAEhB,CAAC,EAChB+B,QAAQ,IAAI,CAACb,MAAM,iBAChB2B,KAAA,CAAAC,aAAA,CAACgB,+BAAe,EAAA;AACZb,IAAAA,SAAS,EAAEC,GAAG,CAAAC,wCAAA,CAAAA,wCAAA,CAAAA,wCAAA,CACTC,EAAAA,EAAAA,oBAAO,CAACC,MAAM,EAAGtB,QAAQ,CACzBqB,EAAAA,oBAAO,CAACW,kBAAkB,EAAG,CAACxD,OAAO,CAAA,EACrC6C,oBAAO,CAACI,QAAQ,EAAGjC,UAAU,IAAIE,cAAc,CACnD,CAAA;AAAE,GACN,CAEP,CAAC,CAAA;AAEX;;;;"}
1
+ {"version":3,"file":"StepItem.js","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport cls from 'classnames';\n\nimport { classes, tokens } from '../../Steps.tokens';\nimport { StepsContent, StepsContentAlign, StepsOrientation } from '../../Steps.types';\n\nimport type { StepItemProps } from './StepItem.types';\nimport {\n Bullet,\n BulletIndicator,\n BulletIndicatorWrapper,\n StepItemContent,\n StepItemContentWrapper,\n StepItemDivider,\n StepItemStyled,\n StepItemTitle,\n SpinnerStyled,\n} from './StepItem.styles';\n\n// todo попробовать заменить через baseline выравнивание\nconst indicatorSizesIndentsMap = {\n 8: `var(${tokens.smallBulletIndentHeight})`,\n 16: `var(${tokens.largeBulletIndentHeight})`,\n 24: `var(${tokens.smallIndicatorIndentHeight})`,\n 36: `var(${tokens.largeIndicatorIndentHeight})`,\n} as const;\n\nexport const StepItem: React.FC<\n StepItemProps & {\n index: number;\n items: StepItemProps[];\n size: string;\n hasLine?: boolean;\n hasContent?: StepsContent;\n hasLoader?: boolean;\n isFirst?: boolean;\n isLast?: boolean;\n onClick?: (item: StepItemProps, index: number) => void;\n contentAlign?: StepsContentAlign;\n orientation?: StepsOrientation;\n }\n> = ({\n index,\n title,\n content,\n indicator,\n status = 'inactive',\n size,\n orientation,\n contentAlign,\n hasLine,\n hasLoader,\n onClick,\n items,\n}) => {\n const [isHovered, setIsHovered] = useState(false);\n\n const isFirst = index === 0;\n const isLast = index === items.length - 1;\n\n const prevItem = items[index - 1];\n const nextItem = items[index + 1];\n\n const isActive = status === 'active';\n const isInactive = status === 'inactive';\n const isPrevInactive = (prevItem && !prevItem?.status) || prevItem?.status === 'inactive';\n const isNextInactive = !nextItem?.status || nextItem?.status === 'inactive';\n\n const hasIndicator = indicator != null;\n\n const BulletNode = hasIndicator ? BulletIndicator : Bullet;\n\n const item = items[index];\n const isSimple = !title && !content;\n const clickable = Boolean(onClick);\n const isVertical = orientation === 'vertical';\n const isCentered = contentAlign === 'center';\n const isDisabled = item.disabled;\n\n const onClickHandler = onClick && !isDisabled ? () => onClick(item, index) : undefined;\n\n let resultIndicatorSize: keyof typeof indicatorSizesIndentsMap;\n if (hasIndicator) {\n resultIndicatorSize = isActive ? 36 : 24;\n } else {\n resultIndicatorSize = isActive ? 16 : 8;\n }\n\n const indentToken = indicatorSizesIndentsMap[resultIndicatorSize];\n\n const onMouseOver =\n clickable && !isDisabled\n ? () => {\n if (isDisabled) {\n setIsHovered(false);\n }\n\n setIsHovered(true);\n }\n : undefined;\n\n const onMouseOut =\n clickable && !isDisabled\n ? () => {\n setIsHovered(false);\n }\n : undefined;\n\n useEffect(() => {\n if (isDisabled) {\n setIsHovered(false);\n }\n }, [isDisabled]);\n\n return (\n <>\n <StepItemStyled\n className={cls({\n [classes.simple]: isSimple,\n [classes.active]: isActive,\n [classes.hovered]: isHovered && !isActive,\n [classes.inactive]: isInactive,\n [classes.centered]: isCentered,\n [classes.disabled]: isDisabled,\n [classes.clickable]: clickable && !isActive,\n [classes.hasIndicator]: hasIndicator,\n [classes.verticalOrientation]: isVertical,\n })}\n >\n <BulletIndicatorWrapper\n className={cls({\n [classes.verticalOrientation]: isVertical,\n [classes.centered]: isCentered,\n [classes.simple]: isSimple,\n [classes.hasIndicator]: hasIndicator,\n })}\n onClick={onClickHandler}\n onFocus={onMouseOver}\n onBlur={onMouseOut}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n >\n {contentAlign === 'center' && !isSimple && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isFirst,\n [classes.inactive]: isInactive || isPrevInactive,\n })}\n />\n )}\n\n {isVertical && (isSimple ? !isFirst : true) && (\n <StepItemDivider\n className={cls(classes.indentDivider, {\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isFirst,\n [classes.inactive]: isInactive || isPrevInactive,\n })}\n indentToken={indentToken}\n />\n )}\n\n {hasLoader && <SpinnerStyled hasIndicator={hasIndicator} />}\n\n {!hasLoader && (\n <BulletNode\n className={cls({\n [classes.active]: isActive,\n [classes.inactive]: isInactive,\n })}\n >\n {typeof indicator === 'function' && indicator({ status, item, size })}\n {typeof indicator !== 'function' && indicator}\n </BulletNode>\n )}\n\n {!isSimple && (\n <StepItemDivider\n className={cls({\n [classes.simple]: isSimple,\n [classes.transparentDivider]: !hasLine || isLast,\n [classes.inactive]: isInactive || isNextInactive,\n })}\n />\n )}\n </BulletIndicatorWrapper>\n\n {!isSimple && (\n <StepItemContentWrapper\n className={cls({\n [classes.verticalOrientation]: isVertical,\n [classes.centered]: isCentered,\n [classes.active]: isActive,\n [classes.hasIndicator]: hasIndicator,\n })}\n >\n <StepItemTitle\n onClick={onClickHandler}\n onFocus={onMouseOver}\n onBlur={onMouseOut}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n >\n {title}\n </StepItemTitle>\n\n {content && (\n <StepItemContent>\n {typeof content === 'function' && content(status, index, items)}\n {typeof content !== 'function' && content}\n </StepItemContent>\n )}\n </StepItemContentWrapper>\n )}\n </StepItemStyled>\n {isSimple && !isLast && (\n <StepItemDivider\n className={cls(classes.simple, {\n [classes.verticalOrientation]: isVertical,\n [classes.transparentDivider]: !hasLine,\n [classes.inactive]: isInactive || isNextInactive,\n })}\n />\n )}\n </>\n );\n};\n"],"names":["indicatorSizesIndentsMap","concat","tokens","smallBulletIndentHeight","largeBulletIndentHeight","smallIndicatorIndentHeight","largeIndicatorIndentHeight","StepItem","_ref","index","title","content","indicator","_ref$status","status","size","orientation","contentAlign","hasLine","hasLoader","onClick","items","_useState","useState","_useState2","_slicedToArray","isHovered","setIsHovered","isFirst","isLast","length","prevItem","nextItem","isActive","isInactive","isPrevInactive","isNextInactive","hasIndicator","BulletNode","BulletIndicator","Bullet","item","isSimple","clickable","Boolean","isVertical","isCentered","isDisabled","disabled","onClickHandler","undefined","resultIndicatorSize","indentToken","onMouseOver","onMouseOut","useEffect","React","createElement","Fragment","StepItemStyled","className","cls","_defineProperty","classes","simple","active","hovered","inactive","centered","verticalOrientation","BulletIndicatorWrapper","onFocus","onBlur","StepItemDivider","transparentDivider","indentDivider","SpinnerStyled","StepItemContentWrapper","StepItemTitle","StepItemContent"],"mappings":";;;;;;;;;;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Ae,QACX,OAAOpE,OAAO,KAAK,UAAU,IAAIA,OAAO,CAACG,MAAM,EAAEL,KAAK,EAAEY,KAAK,CAAC,EAC9D,OAAOV,OAAO,KAAK,UAAU,IAAIA,OACrB,CAED,CAEhB,CAAC,EAChB+B,QAAQ,IAAI,CAACb,MAAM,iBAChB2B,KAAA,CAAAC,aAAA,CAACgB,+BAAe,EAAA;AACZb,IAAAA,SAAS,EAAEC,GAAG,CAACE,oBAAO,CAACC,MAAM,EAAAF,wCAAA,CAAAA,wCAAA,CAAAA,wCAAA,CAAA,EAAA,EACxBC,oBAAO,CAACM,mBAAmB,EAAGxB,UAAU,CACxCkB,EAAAA,oBAAO,CAACW,kBAAkB,EAAG,CAACxD,OAAO,CACrC6C,EAAAA,oBAAO,CAACI,QAAQ,EAAGjC,UAAU,IAAIE,cAAc,CACnD,CAAA;AAAE,GACN,CAEP,CAAC,CAAA;AAEX;;;;"}
@@ -1,9 +1,10 @@
1
- import './StepItem.styles_urheiv.css';
1
+ import './StepItem.styles_1y1xj5d.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var react = require('@linaria/react');
7
+ var Steps_tokens = require('../../Steps.tokens.js');
7
8
  require('@linaria/core');
8
9
  var common = require('../../../../engines/common.js');
9
10
  var Spinner$1 = require('../../../Spinner/Spinner.js');
@@ -15,8 +16,8 @@ var _exp = function _exp() {
15
16
  };
16
17
  var _exp3 = function _exp3() {
17
18
  return function (_ref) {
18
- var size = _ref.size;
19
- return size;
19
+ var hasIndicator = _ref.hasIndicator;
20
+ return hasIndicator ? "var(".concat(Steps_tokens.tokens.activeIndicatorSize, ")") : "var(".concat(Steps_tokens.tokens.activeBulletSize, ")");
20
21
  };
21
22
  };
22
23
  var SpinnerStyled = /*#__PURE__*/react.styled(_exp())({
@@ -55,10 +56,19 @@ var Bullet = /*#__PURE__*/react.styled(_exp63())({
55
56
  "class": "b1eo1o32",
56
57
  propsAsIs: true
57
58
  });
59
+ var _exp82 = function _exp82() {
60
+ return function (_ref2) {
61
+ var indentToken = _ref2.indentToken;
62
+ return indentToken || '';
63
+ };
64
+ };
58
65
  var StepItemDivider = /*#__PURE__*/react.styled('div')({
59
66
  name: "StepItemDivider",
60
67
  "class": "sxskc3q",
61
- propsAsIs: false
68
+ propsAsIs: false,
69
+ vars: {
70
+ "sxskc3q-0": [/*#__PURE__*/_exp82()]
71
+ }
62
72
  });
63
73
  var StepItemContentWrapper = /*#__PURE__*/react.styled('div')({
64
74
  name: "StepItemContentWrapper",