@eaera-com/eaera-widgets-v2 0.1.63 → 0.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/design-system/components/_alert.scss +150 -0
  2. package/dist/design-system/components/_auto-complete.scss +165 -0
  3. package/dist/design-system/components/_avatar-group.scss +25 -0
  4. package/dist/design-system/components/_avatar.scss +40 -0
  5. package/dist/design-system/components/_badge.scss +80 -0
  6. package/dist/design-system/components/_breadcrumb.scss +91 -0
  7. package/dist/design-system/components/_button.scss +378 -0
  8. package/dist/design-system/components/_card.scss +27 -0
  9. package/dist/design-system/components/_carousel.scss +104 -0
  10. package/dist/design-system/components/_cascader.scss +705 -0
  11. package/dist/design-system/components/_checkbox-list.scss +18 -0
  12. package/dist/design-system/components/_checkbox.scss +117 -0
  13. package/dist/design-system/components/_collapse.scss +84 -0
  14. package/dist/design-system/components/_color-picker.scss +195 -0
  15. package/dist/design-system/components/_country-flag.scss +56 -0
  16. package/dist/design-system/components/_currency-icon.scss +19 -0
  17. package/dist/design-system/components/_date-picker.scss +748 -0
  18. package/dist/design-system/components/_dialog.scss +101 -0
  19. package/dist/design-system/components/_divider.scss +7 -0
  20. package/dist/design-system/components/_drawer.scss +41 -0
  21. package/dist/design-system/components/_dropdown.scss +69 -0
  22. package/dist/design-system/components/_empty.scss +101 -0
  23. package/dist/design-system/components/_form.scss +151 -0
  24. package/dist/design-system/components/_growth-balance-profit-widget.scss +95 -0
  25. package/dist/design-system/components/_input-code.scss +116 -0
  26. package/dist/design-system/components/_input-number.scss +233 -0
  27. package/dist/design-system/components/_input-tag.scss +212 -0
  28. package/dist/design-system/components/_input.scss +239 -0
  29. package/dist/design-system/components/_link.scss +64 -0
  30. package/dist/design-system/components/_loading.scss +89 -0
  31. package/dist/design-system/components/_menu.scss +578 -0
  32. package/dist/design-system/components/_message-box.scss +78 -0
  33. package/dist/design-system/components/_message.scss +187 -0
  34. package/dist/design-system/components/_monthly-gain-widget.scss +114 -0
  35. package/dist/design-system/components/_pagination.scss +356 -0
  36. package/dist/design-system/components/_pl-calendar-widget.scss +171 -0
  37. package/dist/design-system/components/_popconfirm.scss +57 -0
  38. package/dist/design-system/components/_popper.scss +267 -0
  39. package/dist/design-system/components/_progress.scss +153 -0
  40. package/dist/design-system/components/_radio.scss +68 -0
  41. package/dist/design-system/components/_segmented.scss +215 -0
  42. package/dist/design-system/components/_select-country.scss +182 -0
  43. package/dist/design-system/components/_select.scss +235 -0
  44. package/dist/design-system/components/_skeleton.scss +146 -0
  45. package/dist/design-system/components/_slider.scss +142 -0
  46. package/dist/design-system/components/_spinner.scss +73 -0
  47. package/dist/design-system/components/_steps.scss +292 -0
  48. package/dist/design-system/components/_switch.scss +89 -0
  49. package/dist/design-system/components/_switcher.scss +110 -0
  50. package/dist/design-system/components/_table.scss +580 -0
  51. package/dist/design-system/components/_tabs.scss +260 -0
  52. package/dist/design-system/components/_tag.scss +208 -0
  53. package/dist/design-system/components/_time-picker.scss +255 -0
  54. package/dist/design-system/components/_time-select.scss +167 -0
  55. package/dist/design-system/components/_timeline.scss +99 -0
  56. package/dist/design-system/components/_tooltip.scss +19 -0
  57. package/dist/design-system/components/_topbar-menu.scss +67 -0
  58. package/dist/design-system/components/_trade-volume-widget.scss +114 -0
  59. package/dist/design-system/components/_transfer.scss +241 -0
  60. package/dist/design-system/components/_tree-select.scss +198 -0
  61. package/dist/design-system/components/_tree.scss +108 -0
  62. package/dist/design-system/components/_upload.scss +226 -0
  63. package/dist/design-system/themes/aurora/bridges/_element-plus-bridge.scss +58 -0
  64. package/dist/design-system/themes/aurora/elevation/_elevation-tokens.scss +67 -0
  65. package/dist/design-system/themes/aurora/elevation/_elevation-utils.scss +94 -0
  66. package/dist/design-system/themes/aurora/index.scss +133 -0
  67. package/dist/design-system/themes/aurora/layers/_layer1-palettes.scss +289 -0
  68. package/dist/design-system/themes/aurora/layers/_layer2-alias.scss +250 -0
  69. package/dist/design-system/themes/aurora/layers/_layer3-tokens.scss +242 -0
  70. package/dist/design-system/themes/aurora/themes/_dark-mode.scss +177 -0
  71. package/dist/design-system/themes/aurora/themes/projects/base.scss +11 -0
  72. package/dist/design-system/themes/aurora/tokens/_border-radius.scss +28 -0
  73. package/dist/design-system/themes/aurora/tokens/_control-height.scss +18 -0
  74. package/dist/design-system/themes/aurora/tokens/_screen-size.scss +10 -0
  75. package/dist/design-system/themes/aurora/tokens/_spacing.scss +29 -0
  76. package/dist/design-system/themes/aurora/typography/_typography-primitives.scss +11 -0
  77. package/dist/design-system/themes/aurora/typography/_typography-semantic.scss +5 -0
  78. package/dist/design-system/themes/aurora/typography/_typography-tokens.scss +185 -0
  79. package/dist/design-system/themes/aurora/typography/_typography-utils.scss +375 -0
  80. package/dist/design-system/themes/core/bridges/_element-plus-bridge.scss +82 -0
  81. package/dist/design-system/themes/core/elevation/_elevation-tokens.scss +67 -0
  82. package/dist/design-system/themes/core/elevation/_elevation-utils.scss +94 -0
  83. package/dist/design-system/themes/core/index.scss +130 -0
  84. package/dist/design-system/themes/core/layers/_layer1-palettes.scss +289 -0
  85. package/dist/design-system/themes/core/layers/_layer2-alias.scss +242 -0
  86. package/dist/design-system/themes/core/layers/_layer3-tokens.scss +220 -0
  87. package/dist/design-system/themes/core/themes/_dark-mode.scss +165 -0
  88. package/dist/design-system/themes/core/themes/projects/base.scss +11 -0
  89. package/dist/design-system/themes/core/tokens/_border-radius.scss +28 -0
  90. package/dist/design-system/themes/core/tokens/_control-height.scss +18 -0
  91. package/dist/design-system/themes/core/tokens/_screen-size.scss +10 -0
  92. package/dist/design-system/themes/core/tokens/_spacing.scss +29 -0
  93. package/dist/design-system/themes/core/typography/_typography-primitives.scss +11 -0
  94. package/dist/design-system/themes/core/typography/_typography-semantic.scss +5 -0
  95. package/dist/design-system/themes/core/typography/_typography-tokens.scss +185 -0
  96. package/dist/design-system/themes/core/typography/_typography-utils.scss +375 -0
  97. package/package.json +4 -3
@@ -0,0 +1,146 @@
1
+ // ============================================================================
2
+ // SKELETON — Design System Overrides
3
+ // Figma: https://www.figma.com/design/HSOs8VcK5CKL8s15AqD42x/UI-KIT-CORE?node-id=40788-4557
4
+ // ============================================================================
5
+ // Variants:
6
+ // body-text: sm (8px) | md (12px) | lg (16px)
7
+ // title-text: sm (16px) | md (20px) | lg (24px)
8
+ // shape: sm/md/lg/xl × rectangle|round
9
+ // box: 200×80px with corner-sm
10
+ // animated: shimmer effect
11
+ // ============================================================================
12
+
13
+ @use '../themes/aurora/typography/typography-utils' as typo;
14
+
15
+ // ─────────────────────────────────────────────────────────────────────────
16
+ // Root skeleton wrapper
17
+ // ─────────────────────────────────────────────────────────────────────────
18
+ .custom-skeleton.el-skeleton {
19
+ width: unset;
20
+ line-height: 0;
21
+ // ── Default item background (all variants use --er-surface-muted)
22
+ .el-skeleton__item {
23
+ background: var(--er-surface-muted);
24
+ border-radius: var(--er-shape-corner-50);
25
+ }
26
+
27
+ // ── Animated shimmer — override EP gradient colors with muted tokens.
28
+ // Middle stop MUST differ from the outer stops: `el-skeleton-loading`
29
+ // only animates background-position, so an identical-color gradient is
30
+ // an invisible solid fill. Use --er-surface-subtle (#FAFAFA) as the band.
31
+ &.is-animated .el-skeleton__item {
32
+ background: linear-gradient(
33
+ 90deg,
34
+ var(--er-surface-muted) 25%,
35
+ var(--er-surface-subtle) 37%,
36
+ var(--er-surface-muted) 63%
37
+ );
38
+ background-size: 400% 100%;
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+
43
+ // ─────────────────────────────────────────────────────────────────────────
44
+ // Variant + size preset classes
45
+ // EaeraSkeleton adds `variant` and `size` as separate classes on el-skeleton-item.
46
+ // Selectors: .<variant>.<size> e.g. .body-text.sm
47
+ // ─────────────────────────────────────────────────────────────────────────
48
+
49
+ // ── body-text — full width bar, height only
50
+ .body-text {
51
+ width: 100%;
52
+ &.sm {
53
+ height: 8px;
54
+ }
55
+ &.md {
56
+ height: 12px;
57
+ }
58
+ &.lg {
59
+ height: 16px;
60
+ }
61
+ }
62
+
63
+ // ── title-text — full width bar, taller heights
64
+ .title-text {
65
+ width: 100%;
66
+ &.sm {
67
+ height: var(--er-control-height-xxs);
68
+ }
69
+ &.md {
70
+ height: var(--er-control-height-xs);
71
+ }
72
+ &.lg {
73
+ height: var(--er-control-height-sm);
74
+ }
75
+ }
76
+
77
+ // ── rect — square block
78
+ .rect {
79
+ &.sm {
80
+ width: var(--er-control-height-xxs);
81
+ height: var(--er-control-height-xxs);
82
+ }
83
+ &.md {
84
+ width: var(--er-control-height-xs);
85
+ height: var(--er-control-height-xs);
86
+ }
87
+ &.lg {
88
+ width: var(--er-control-height-sm);
89
+ height: var(--er-control-height-sm);
90
+ }
91
+ &.xl {
92
+ width: var(--er-control-height-md);
93
+ height: var(--er-control-height-md);
94
+ }
95
+ }
96
+
97
+ // ── circle — same square dimensions, El-Plus handles border-radius via .el-skeleton__circle
98
+ .circle {
99
+ border-radius: var(--er-shape-corner-full);
100
+ &.sm {
101
+ width: var(--er-control-height-xxs);
102
+ height: var(--er-control-height-xxs);
103
+ }
104
+ &.md {
105
+ width: var(--er-control-height-xs);
106
+ height: var(--er-control-height-xs);
107
+ }
108
+ &.lg {
109
+ width: var(--er-control-height-sm);
110
+ height: var(--er-control-height-sm);
111
+ }
112
+ &.xl {
113
+ width: var(--er-control-height-md);
114
+ height: var(--er-control-height-md);
115
+ }
116
+ }
117
+
118
+ // ── image — rectangular block with corner radius, for avatar/profile pic placeholders
119
+ .skeleton-image-wrapper {
120
+ position: relative;
121
+ display: inline-flex;
122
+
123
+ .image {
124
+ border-radius: var(--er-shape-corner-100);
125
+ }
126
+
127
+ .el-skeleton__image svg {
128
+ display: none;
129
+ }
130
+
131
+ .skeleton-image__icon {
132
+ position: absolute;
133
+ width: var(--er-control-height-lg);
134
+ height: var(--er-control-height-lg);
135
+ top: 50%;
136
+ left: 50%;
137
+ transform: translate(-50%, -50%);
138
+ color: var(--er-text-muted);
139
+ stroke: var(--er-icon-muted);
140
+ }
141
+ }
142
+
143
+ .box {
144
+ border-radius: var(--er-shape-corner-100);
145
+ }
146
+ }
@@ -0,0 +1,142 @@
1
+ // ============================================================================
2
+ // SLIDER — Design System Overrides
3
+ // Figma: https://www.figma.com/design/HSOs8VcK5CKL8s15AqD42x/UI-KIT-CORE?node-id=40713-25618
4
+ // ============================================================================
5
+ // Variants:
6
+ // size: sm (24px/8px track) | md (default, 32px/8px track)
7
+ // disabled: opacity 50%
8
+ // discrete (show-stops): white breakpoint marks on track
9
+ // range: two-knob variant (same visual, different v-model)
10
+ // ============================================================================
11
+
12
+ @use 'input-number' as input-number;
13
+ @use '../themes/aurora/typography/typography-utils' as typo;
14
+
15
+ // ─────────────────────────────────────────────────────────────────────────
16
+ // Mixin: track-height + button-wrapper offset per size
17
+ // ─────────────────────────────────────────────────────────────────────────
18
+ @mixin slider-size($height, $track-height, $button-radius) {
19
+ height: $height;
20
+
21
+ .el-slider__runway {
22
+ height: $track-height;
23
+ }
24
+
25
+ .el-slider__bar {
26
+ height: $track-height;
27
+ }
28
+
29
+ .el-slider__button-wrapper {
30
+ width: var(--er-control-height-sm);
31
+ height: var(--er-control-height-sm);
32
+ top: calc(50% - 12px);
33
+ }
34
+
35
+ .el-slider__stop {
36
+ height: $track-height;
37
+ }
38
+
39
+ .el-input-number {
40
+ height: $height;
41
+ @include input-number.input-number-base;
42
+
43
+ .el-input__inner {
44
+ height: $height;
45
+ }
46
+ }
47
+ }
48
+
49
+ // ─────────────────────────────────────────────────────────────────────────
50
+ // Custom Slider
51
+ // ─────────────────────────────────────────────────────────────────────────
52
+ .custom-slider.el-slider {
53
+ // ── Track (runway)
54
+ .el-slider__runway {
55
+ background: var(--er-surface-muted);
56
+ }
57
+
58
+ // ── Filled bar
59
+ .el-slider__bar {
60
+ height: 8px;
61
+ border-radius: 2px;
62
+ background: var(--er-border-brand);
63
+ }
64
+
65
+ // ── Knob wrapper (hit area 24×24)
66
+ .el-slider__button-wrapper {
67
+ width: var(--er-control-height-sm);
68
+ height: var(--er-control-height-sm);
69
+ }
70
+
71
+ // ── Knob: rectangular 10×16, border-radius 4px (Figma: shape/corner/xs)
72
+ .el-slider__button {
73
+ width: 10px;
74
+ height: var(--er-control-height-xxs);
75
+ border-radius: var(--er-shape-corner-50);
76
+ border: 1px solid var(--er-border-default);
77
+ background: var(--er-surface-container);
78
+
79
+ &.hover:not(.is-disabled) {
80
+ width: 12px;
81
+ height: var(--er-control-height-xs);
82
+ transform: scale(1);
83
+ }
84
+ }
85
+
86
+ // ── Discrete stop marks (white, 2px wide, full track height)
87
+ // z-index: 1 ensures stops render above the bar even in the active region
88
+ .el-slider__stop {
89
+ height: 8px;
90
+ width: 2px;
91
+ background: var(--er-surface-container);
92
+ }
93
+
94
+ .el-slider__runway.is-disabled .el-slider__bar {
95
+ background: var(--er-border-brand);
96
+ opacity: 0.5;
97
+ }
98
+
99
+ // ── Size: md (default — 32px height, 8px track) ──────────────────────
100
+ &.md {
101
+ @include slider-size(
102
+ var(--er-control-height-md),
103
+ var(--er-shape-spacing-100),
104
+ var(--er-shape-corner-100)
105
+ );
106
+ .el-input-number {
107
+ min-width: 100px;
108
+ @include typo.display-md;
109
+
110
+ &__decrease,
111
+ &__increase {
112
+ width: var(--er-control-height-md);
113
+ height: var(--er-control-height-md);
114
+
115
+ svg {
116
+ width: var(--er-control-height-xxs);
117
+ height: var(--er-control-height-xxs);
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ // ── Size: sm (24px height, 8px track) ────────────────────────────────
124
+ &.sm {
125
+ @include slider-size(var(--er-control-height-sm), 6px, var(--er-shape-corner-50));
126
+ .el-input-number {
127
+ min-width: 80px;
128
+ @include typo.display-sm;
129
+
130
+ &__decrease,
131
+ &__increase {
132
+ width: var(--er-control-height-sm);
133
+ height: var(--er-control-height-sm);
134
+
135
+ svg {
136
+ width: var(--er-control-height-xxs);
137
+ height: var(--er-control-height-xxs);
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,73 @@
1
+ // ============================================================================
2
+ // SPINNER — Bouncing Dots Loader (lds-ellipsis)
3
+ // ============================================================================
4
+ // Based on: loading.io "lds-ellipsis" pattern (4 bouncing dots)
5
+ // Usage: pure-CSS spinner for inline / standalone loading states.
6
+ // NOTE: For Element Plus v-loading overlay styles, see _loading.scss.
7
+ //
8
+ // STRUCTURE (required markup):
9
+ // .lds-ellipsis ← Root container (80×80px)
10
+ // div × 4 ← Bouncing dots, positioned via nth-child
11
+ //
12
+ // MARKUP:
13
+ // <div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>
14
+ // ============================================================================
15
+
16
+ .lds-ellipsis {
17
+ // Figma: container 80×80px
18
+ display: inline-block;
19
+ position: relative;
20
+ height: 10px;
21
+ width: 10px;
22
+ }
23
+ .lds-ellipsis div {
24
+ position: absolute;
25
+ top: 0px; // Figma: dot vertical offset within 80px container
26
+ width: 13px; // Figma: dot size 13×13px (perfect circle → 50%)
27
+ height: 13px;
28
+ border-radius: 50%;
29
+ // Figma: dot color — semantic token; original extract was #07b53b (green)
30
+ background: var(--er-success-default);
31
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
32
+ }
33
+ .lds-ellipsis div:nth-child(1) {
34
+ left: 8px; // Figma: dot 1 x-position
35
+ animation: lds-ellipsis1 0.6s infinite;
36
+ }
37
+ .lds-ellipsis div:nth-child(2) {
38
+ left: 8px; // Figma: dot 2 start x-position
39
+ animation: lds-ellipsis2 0.6s infinite;
40
+ }
41
+ .lds-ellipsis div:nth-child(3) {
42
+ left: 32px; // Figma: dot 3 x-position
43
+ animation: lds-ellipsis2 0.6s infinite;
44
+ }
45
+ .lds-ellipsis div:nth-child(4) {
46
+ left: 56px; // Figma: dot 4 x-position
47
+ animation: lds-ellipsis3 0.6s infinite;
48
+ }
49
+ @keyframes lds-ellipsis1 {
50
+ 0% {
51
+ transform: scale(0);
52
+ }
53
+ 100% {
54
+ transform: scale(1);
55
+ }
56
+ }
57
+ @keyframes lds-ellipsis3 {
58
+ 0% {
59
+ transform: scale(1);
60
+ }
61
+ 100% {
62
+ transform: scale(0);
63
+ }
64
+ }
65
+ @keyframes lds-ellipsis2 {
66
+ 0% {
67
+ transform: translate(0, 0);
68
+ }
69
+ 100% {
70
+ // 24px = distance between dot slots (8 → 32 → 56)
71
+ transform: translate(24px, 0);
72
+ }
73
+ }
@@ -0,0 +1,292 @@
1
+ @use '../themes/aurora/typography/typography-utils' as typo;
2
+
3
+ // ============================================================================
4
+ // STEPS & STEP
5
+ // ============================================================================
6
+ // Element Plus: ElSteps, ElStep
7
+ // ============================================================================
8
+
9
+ .custom-steps.el-steps {
10
+ --step-dot-size: 4px;
11
+ --step-dot-total-size: 8px; // 4px dot + 2px border left/right
12
+ --step-line-size: 8px;
13
+ --step-text-gap: 4px;
14
+ --step-main-gap: 8px;
15
+
16
+ // ─────────────────────────────────────────────────────────────────────
17
+ // BASE
18
+ // ─────────────────────────────────────────────────────────────────────
19
+
20
+ .el-step {
21
+ position: relative;
22
+ flex-shrink: 1;
23
+ }
24
+
25
+ .el-step__head {
26
+ position: relative;
27
+ }
28
+
29
+ .el-step__icon {
30
+ z-index: 2;
31
+ display: inline-flex;
32
+ justify-content: center;
33
+ align-items: center;
34
+ width: 8px;
35
+ height: 8px;
36
+ min-width: 8px;
37
+ flex-shrink: 0;
38
+ aspect-ratio: 1 / 1;
39
+ border-radius: var(--er-shape-corner-150);
40
+ border: 2px solid var(--er-surface-muted);
41
+ background: var(--er-surface-fixed-white);
42
+
43
+ &:has(i) {
44
+ border: 2px solid var(--er-action-primary-default);
45
+ }
46
+ line-height: 1;
47
+ }
48
+
49
+ .el-step__icon-inner {
50
+ display: none;
51
+ }
52
+
53
+ .el-step__icon::before {
54
+ content: none;
55
+ }
56
+
57
+ .el-step__line {
58
+ position: absolute;
59
+ background-color: var(--er-surface-muted);
60
+ overflow: hidden;
61
+ }
62
+
63
+ .el-step__line-inner {
64
+ display: block;
65
+ border: none;
66
+ background-color: var(--er-action-primary-default);
67
+ width: 0;
68
+ height: 0;
69
+ }
70
+
71
+ .el-step__main {
72
+ white-space: normal;
73
+ min-width: 0;
74
+ }
75
+
76
+ .el-step__title {
77
+ @include typo.label-lg;
78
+ color: var(--er-text-secondary);
79
+ padding: 0;
80
+ margin: 0;
81
+
82
+ &.is-success {
83
+ color: var(--er-text-brand);
84
+ }
85
+ }
86
+
87
+ .el-step__description {
88
+ @include typo.body-sm;
89
+ color: var(--er-text-muted);
90
+ font-variant-numeric: lining-nums tabular-nums;
91
+ padding: 0;
92
+ margin: 0;
93
+ }
94
+
95
+ // ───────────────────────────────────────────────────────────────────────
96
+ // STATES
97
+ // ───────────────────────────────────────────────────────────────────────
98
+
99
+ .el-step.is-process,
100
+ .el-step.is-finish,
101
+ .el-step.is-success {
102
+ .el-step__icon {
103
+ border-color: var(--er-action-primary-default);
104
+ background: var(--er-surface-fixed-white);
105
+ }
106
+
107
+ .el-step__title {
108
+ color: var(--er-text-brand);
109
+ }
110
+ }
111
+
112
+ .el-step.is-finish,
113
+ .el-step.is-success {
114
+ .el-step__line-inner {
115
+ background-color: var(--er-action-primary-default);
116
+ }
117
+ }
118
+
119
+ .el-step.is-wait {
120
+ .el-step__icon {
121
+ border-color: var(--er-action-primary-default);
122
+ background: var(--er-surface-fixed-white);
123
+ }
124
+
125
+ .el-step__title {
126
+ color: var(--er-text-secondary);
127
+ }
128
+
129
+ .el-step__description {
130
+ color: var(--er-text-muted);
131
+ }
132
+ }
133
+
134
+ .el-step.is-error {
135
+ .el-step__icon {
136
+ border-color: var(--er-action-danger-default);
137
+ background: var(--er-surface-fixed-white);
138
+ }
139
+
140
+ .el-step__title {
141
+ color: var(--er-text-danger);
142
+ }
143
+ }
144
+
145
+ // ─────────────────────────────────────────────────────────────────────
146
+ // HORIZONTAL
147
+ // ─────────────────────────────────────────────────────────────────────
148
+
149
+ &.el-steps--horizontal {
150
+ display: flex;
151
+ align-items: flex-start;
152
+
153
+ .el-step.is-horizontal {
154
+ display: flex;
155
+ flex-direction: column-reverse;
156
+ flex: 1;
157
+ min-width: 0;
158
+ }
159
+
160
+ .el-step__head {
161
+ width: 100%;
162
+ height: var(--step-dot-total-size);
163
+ display: flex;
164
+ align-items: center;
165
+ }
166
+
167
+ .el-step__line {
168
+ height: var(--step-line-size);
169
+ top: calc((var(--step-dot-total-size) - var(--step-line-size)) / 2);
170
+ left: calc(var(--step-dot-total-size) / 2);
171
+ right: calc(var(--step-dot-total-size) / -1);
172
+ width: auto;
173
+ border-top-right-radius: 9999px;
174
+ border-bottom-right-radius: 9999px;
175
+ }
176
+
177
+ .el-step__line-inner {
178
+ height: 100%;
179
+ width: 0;
180
+ }
181
+
182
+ .el-step.is-finish .el-step__line-inner,
183
+ .el-step.is-success .el-step__line-inner {
184
+ width: 100%;
185
+ }
186
+
187
+ .el-step__main {
188
+ width: max-content;
189
+ max-width: 240px;
190
+ margin-bottom: var(--step-text-gap);
191
+ padding: 0;
192
+ text-align: left;
193
+ }
194
+
195
+ .el-step:not(:first-child):not(:last-child) {
196
+ .el-step__main {
197
+ transform: translateX(-50%);
198
+ text-align: center;
199
+ }
200
+ }
201
+
202
+ .el-step:last-child {
203
+ flex: 0 0 auto;
204
+
205
+ .el-step__head {
206
+ width: var(--step-dot-total-size);
207
+ }
208
+
209
+ .el-step__main {
210
+ transform: translateX(calc(-100% + var(--step-dot-total-size)));
211
+ text-align: right;
212
+ }
213
+
214
+ .el-step__line {
215
+ display: none;
216
+ }
217
+ }
218
+
219
+ .el-step.is-success .el-step__line-inner,
220
+ .el-step__head.is-finish .el-step__line-inner,
221
+ .el-step__head.is-success .el-step__line-inner {
222
+ border-radius: 0 var(--er-shape-corner-150) var(--er-shape-corner-150) 0;
223
+ }
224
+ }
225
+
226
+ // ─────────────────────────────────────────────────────────────────────
227
+ // VERTICAL
228
+ // ─────────────────────────────────────────────────────────────────────
229
+
230
+ &.el-steps--vertical {
231
+ display: flex;
232
+ flex-direction: column;
233
+
234
+ .el-step.is-vertical {
235
+ display: flex;
236
+ min-height: 56px;
237
+ }
238
+
239
+ .el-step__head {
240
+ flex: 0 0 var(--step-dot-total-size);
241
+ width: var(--step-dot-total-size);
242
+ }
243
+
244
+ .el-step__line {
245
+ width: var(--step-line-size);
246
+ height: auto;
247
+ left: calc((var(--step-dot-total-size) - var(--step-line-size)) / 2);
248
+ bottom: calc(var(--step-dot-total-size) / -1 - var(--step-dot-total-size));
249
+ top: calc(var(--step-dot-total-size) + var(--step-dot-total-size) / 2);
250
+ border-bottom-left-radius: 9999px;
251
+ border-bottom-right-radius: 9999px;
252
+ }
253
+
254
+ .el-step__line-inner {
255
+ width: 100%;
256
+ height: 0;
257
+ }
258
+
259
+ .el-step.is-finish .el-step__line-inner,
260
+ .el-step.is-success .el-step__line-inner {
261
+ height: 100%;
262
+ }
263
+
264
+ .el-step__main {
265
+ flex: 1;
266
+ padding-left: var(--step-main-gap);
267
+ padding-bottom: 16px;
268
+ text-align: left;
269
+ }
270
+
271
+ .el-step__title {
272
+ margin-top: -6px;
273
+ }
274
+
275
+ .el-step:last-child {
276
+ min-height: auto;
277
+
278
+ .el-step__line {
279
+ display: none;
280
+ }
281
+
282
+ .el-step__main {
283
+ padding-bottom: 0;
284
+ }
285
+ }
286
+
287
+ .el-step__head.is-finish .el-step__line-inner,
288
+ .el-step__head.is-success .el-step__line-inner {
289
+ border-radius: 0 0 var(--er-shape-corner-150) var(--er-shape-corner-150);
290
+ }
291
+ }
292
+ }