ep-craft 0.1.2 → 0.1.4

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 (160) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +7 -7
  2. package/dist/components/button/button.d.ts +4 -4
  3. package/dist/components/button/index.d.ts +2 -4
  4. package/dist/components/button/index.js +4 -6
  5. package/dist/index.css +1 -2
  6. package/dist/resolver.js +9 -12
  7. package/package.json +4 -2
  8. package/theme-chalk/src/affix.scss +7 -0
  9. package/theme-chalk/src/alert.scss +115 -0
  10. package/theme-chalk/src/anchor-link.scss +45 -0
  11. package/theme-chalk/src/anchor.scss +93 -0
  12. package/theme-chalk/src/aside.scss +8 -0
  13. package/theme-chalk/src/autocomplete.scss +95 -0
  14. package/theme-chalk/src/avatar-group.scss +25 -0
  15. package/theme-chalk/src/avatar.scss +55 -0
  16. package/theme-chalk/src/backtop.scss +29 -0
  17. package/theme-chalk/src/badge.scss +58 -0
  18. package/theme-chalk/src/base.scss +3 -0
  19. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  20. package/theme-chalk/src/breadcrumb.scss +9 -0
  21. package/theme-chalk/src/button-group.scss +133 -0
  22. package/theme-chalk/src/button.scss +374 -0
  23. package/theme-chalk/src/calendar.scss +94 -0
  24. package/theme-chalk/src/card.scss +49 -0
  25. package/theme-chalk/src/carousel-item.scss +58 -0
  26. package/theme-chalk/src/carousel.scss +195 -0
  27. package/theme-chalk/src/cascader-panel.scss +150 -0
  28. package/theme-chalk/src/cascader.scss +289 -0
  29. package/theme-chalk/src/check-tag.scss +60 -0
  30. package/theme-chalk/src/checkbox-button.scss +142 -0
  31. package/theme-chalk/src/checkbox-group.scss +7 -0
  32. package/theme-chalk/src/checkbox.scss +300 -0
  33. package/theme-chalk/src/col.scss +56 -0
  34. package/theme-chalk/src/collapse-item.scss +72 -0
  35. package/theme-chalk/src/collapse-transition.scss +1 -0
  36. package/theme-chalk/src/collapse.scss +29 -0
  37. package/theme-chalk/src/color/index.scss +20 -0
  38. package/theme-chalk/src/color-picker-panel.scss +294 -0
  39. package/theme-chalk/src/color-picker.scss +165 -0
  40. package/theme-chalk/src/common/popup.scss +47 -0
  41. package/theme-chalk/src/common/transition.scss +125 -0
  42. package/theme-chalk/src/common/var.scss +1748 -0
  43. package/theme-chalk/src/config-provider.scss +0 -0
  44. package/theme-chalk/src/container.scss +14 -0
  45. package/theme-chalk/src/dark/css-vars.scss +45 -0
  46. package/theme-chalk/src/dark/var.scss +224 -0
  47. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  48. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  49. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  50. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  51. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  52. package/theme-chalk/src/date-picker/picker.scss +217 -0
  53. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  54. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  55. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  56. package/theme-chalk/src/date-picker/utils.scss +14 -0
  57. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  58. package/theme-chalk/src/date-picker-panel.scss +34 -0
  59. package/theme-chalk/src/date-picker.scss +0 -0
  60. package/theme-chalk/src/descriptions-item.scss +77 -0
  61. package/theme-chalk/src/descriptions.scss +151 -0
  62. package/theme-chalk/src/dialog.scss +207 -0
  63. package/theme-chalk/src/display.scss +12 -0
  64. package/theme-chalk/src/divider.scss +48 -0
  65. package/theme-chalk/src/drawer.scss +251 -0
  66. package/theme-chalk/src/dropdown-item.scss +0 -0
  67. package/theme-chalk/src/dropdown-menu.scss +0 -0
  68. package/theme-chalk/src/dropdown.scss +208 -0
  69. package/theme-chalk/src/empty.scss +49 -0
  70. package/theme-chalk/src/footer.scss +12 -0
  71. package/theme-chalk/src/form-item.scss +246 -0
  72. package/theme-chalk/src/form.scss +28 -0
  73. package/theme-chalk/src/header.scss +12 -0
  74. package/theme-chalk/src/icon.scss +41 -0
  75. package/theme-chalk/src/image-viewer.scss +161 -0
  76. package/theme-chalk/src/image.scss +49 -0
  77. package/theme-chalk/src/index.scss +116 -0
  78. package/theme-chalk/src/infinite-scroll.scss +0 -0
  79. package/theme-chalk/src/input-number.scss +192 -0
  80. package/theme-chalk/src/input-otp.scss +191 -0
  81. package/theme-chalk/src/input-tag.scss +249 -0
  82. package/theme-chalk/src/input.scss +541 -0
  83. package/theme-chalk/src/link.scss +90 -0
  84. package/theme-chalk/src/loading.scss +104 -0
  85. package/theme-chalk/src/main.scss +14 -0
  86. package/theme-chalk/src/mention.scss +88 -0
  87. package/theme-chalk/src/menu-item-group.scss +0 -0
  88. package/theme-chalk/src/menu-item.scss +0 -0
  89. package/theme-chalk/src/menu.scss +376 -0
  90. package/theme-chalk/src/message-box.scss +220 -0
  91. package/theme-chalk/src/message.scss +123 -0
  92. package/theme-chalk/src/mixins/_button.scss +240 -0
  93. package/theme-chalk/src/mixins/_col.scss +41 -0
  94. package/theme-chalk/src/mixins/_var.scss +67 -0
  95. package/theme-chalk/src/mixins/config.scss +5 -0
  96. package/theme-chalk/src/mixins/function.scss +99 -0
  97. package/theme-chalk/src/mixins/mixins.scss +257 -0
  98. package/theme-chalk/src/mixins/utils.scss +39 -0
  99. package/theme-chalk/src/notification.scss +109 -0
  100. package/theme-chalk/src/option-group.scss +33 -0
  101. package/theme-chalk/src/option.scss +71 -0
  102. package/theme-chalk/src/overlay.scss +17 -0
  103. package/theme-chalk/src/page-header.scss +60 -0
  104. package/theme-chalk/src/pagination.scss +235 -0
  105. package/theme-chalk/src/popconfirm.scss +17 -0
  106. package/theme-chalk/src/popover.scss +61 -0
  107. package/theme-chalk/src/popper.scss +117 -0
  108. package/theme-chalk/src/progress.scss +179 -0
  109. package/theme-chalk/src/radio-button.scss +165 -0
  110. package/theme-chalk/src/radio-group.scss +9 -0
  111. package/theme-chalk/src/radio.scss +220 -0
  112. package/theme-chalk/src/rate.scss +121 -0
  113. package/theme-chalk/src/reset.scss +99 -0
  114. package/theme-chalk/src/result.scss +57 -0
  115. package/theme-chalk/src/row.scss +34 -0
  116. package/theme-chalk/src/scrollbar.scss +97 -0
  117. package/theme-chalk/src/segmented.scss +186 -0
  118. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  119. package/theme-chalk/src/select-dropdown.scss +57 -0
  120. package/theme-chalk/src/select-v2.scss +4 -0
  121. package/theme-chalk/src/select.scss +269 -0
  122. package/theme-chalk/src/skeleton-item.scss +83 -0
  123. package/theme-chalk/src/skeleton.scss +44 -0
  124. package/theme-chalk/src/slider.scss +212 -0
  125. package/theme-chalk/src/space.scss +20 -0
  126. package/theme-chalk/src/spinner.scss +43 -0
  127. package/theme-chalk/src/splitter-panel.scss +8 -0
  128. package/theme-chalk/src/splitter.scss +148 -0
  129. package/theme-chalk/src/statistic.scss +35 -0
  130. package/theme-chalk/src/step.scss +320 -0
  131. package/theme-chalk/src/steps.scss +22 -0
  132. package/theme-chalk/src/sub-menu.scss +0 -0
  133. package/theme-chalk/src/switch.scss +294 -0
  134. package/theme-chalk/src/tab-pane.scss +0 -0
  135. package/theme-chalk/src/table-column.scss +100 -0
  136. package/theme-chalk/src/table-v2.scss +239 -0
  137. package/theme-chalk/src/table.scss +698 -0
  138. package/theme-chalk/src/tabs.scss +699 -0
  139. package/theme-chalk/src/tag.scss +195 -0
  140. package/theme-chalk/src/text.scss +51 -0
  141. package/theme-chalk/src/time-picker.scss +5 -0
  142. package/theme-chalk/src/time-select.scss +37 -0
  143. package/theme-chalk/src/timeline-item.scss +135 -0
  144. package/theme-chalk/src/timeline.scss +101 -0
  145. package/theme-chalk/src/tooltip.scss +0 -0
  146. package/theme-chalk/src/tour.scss +187 -0
  147. package/theme-chalk/src/transfer.scss +201 -0
  148. package/theme-chalk/src/tree-select.scss +41 -0
  149. package/theme-chalk/src/tree.scss +134 -0
  150. package/theme-chalk/src/upload.scss +660 -0
  151. package/theme-chalk/src/var.scss +87 -0
  152. package/theme-chalk/src/virtual-list.scss +40 -0
  153. package/dist/components/button/EpButton.vue.js +0 -171
  154. package/dist/components/button/EpButton2.vue.js +0 -4
  155. package/dist/components/button/button.js +0 -95
  156. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
  157. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  158. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
  159. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
  160. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
@@ -0,0 +1,235 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @mixin pagination-button {
6
+ display: flex;
7
+ justify-content: center;
8
+ align-items: center;
9
+ font-size: getCssVar('pagination-font-size');
10
+ min-width: getCssVar('pagination-button-width');
11
+ height: getCssVar('pagination-button-height');
12
+ line-height: getCssVar('pagination-button-height');
13
+ color: getCssVar('pagination-button-color');
14
+ background: getCssVar('pagination-bg-color');
15
+ padding: 0 4px;
16
+ border: none;
17
+ border-radius: getCssVar('pagination-border-radius');
18
+ cursor: pointer;
19
+ text-align: center;
20
+ box-sizing: border-box;
21
+
22
+ * {
23
+ pointer-events: none;
24
+ }
25
+
26
+ &:focus {
27
+ outline: none;
28
+ }
29
+
30
+ &:hover {
31
+ color: getCssVar('pagination-hover-color');
32
+ }
33
+
34
+ &.is-active {
35
+ color: getCssVar('pagination-hover-color');
36
+ cursor: default;
37
+ font-weight: bold;
38
+
39
+ &.is-disabled {
40
+ font-weight: bold;
41
+ color: getCssVar('text-color', 'secondary');
42
+ }
43
+ }
44
+
45
+ &:disabled,
46
+ &.is-disabled {
47
+ color: getCssVar('pagination-button-disabled-color');
48
+ background-color: getCssVar('pagination-button-disabled-bg-color');
49
+ cursor: not-allowed;
50
+ }
51
+
52
+ &:focus-visible {
53
+ outline: 1px solid getCssVar('pagination-hover-color');
54
+ outline-offset: -1px;
55
+ }
56
+ }
57
+
58
+ @include b(pagination) {
59
+ @include set-component-css-var('pagination', $pagination);
60
+
61
+ white-space: nowrap;
62
+ color: getCssVar('pagination-text-color');
63
+ font-size: getCssVar('pagination-font-size');
64
+ font-weight: normal;
65
+ display: flex;
66
+ align-items: center;
67
+
68
+ .#{$namespace}-input__inner {
69
+ text-align: center;
70
+ -moz-appearance: textfield;
71
+ }
72
+
73
+ .#{$namespace}-select {
74
+ width: 128px;
75
+ }
76
+
77
+ .btn-prev,
78
+ .btn-next {
79
+ @include pagination-button;
80
+
81
+ .#{$namespace}-icon {
82
+ display: block;
83
+ font-size: 12px;
84
+ font-weight: bold;
85
+ width: inherit;
86
+ }
87
+ }
88
+
89
+ & > * {
90
+ @include when(first) {
91
+ margin-left: 0 !important;
92
+ }
93
+ @include when(last) {
94
+ margin-right: 0 !important;
95
+ }
96
+ }
97
+
98
+ .btn-prev {
99
+ margin-left: getCssVar('pagination-item-gap');
100
+ }
101
+
102
+ @include e(sizes) {
103
+ margin-left: getCssVar('pagination-item-gap');
104
+ font-weight: normal;
105
+ color: getCssVar('text-color', 'regular');
106
+ }
107
+
108
+ @include e(total) {
109
+ margin-left: getCssVar('pagination-item-gap');
110
+ font-weight: normal;
111
+ color: getCssVar('text-color', 'regular');
112
+
113
+ &[disabled='true'] {
114
+ color: getCssVar('text-color', 'placeholder');
115
+ }
116
+ }
117
+
118
+ @include e(jump) {
119
+ display: flex;
120
+ align-items: center;
121
+ margin-left: getCssVar('pagination-item-gap');
122
+ font-weight: normal;
123
+ color: getCssVar('text-color', 'regular');
124
+
125
+ &[disabled='true'] {
126
+ color: getCssVar('text-color', 'placeholder');
127
+ }
128
+
129
+ @include e(goto) {
130
+ margin-right: 8px;
131
+ }
132
+
133
+ @include e(editor) {
134
+ text-align: center;
135
+ box-sizing: border-box;
136
+
137
+ &.#{$namespace}-input {
138
+ width: 56px;
139
+ }
140
+
141
+ .#{$namespace}-input__inner::-webkit-inner-spin-button,
142
+ .#{$namespace}-input__inner::-webkit-outer-spin-button {
143
+ -webkit-appearance: none;
144
+ margin: 0;
145
+ }
146
+ }
147
+
148
+ @include e(classifier) {
149
+ margin-left: 8px;
150
+ }
151
+ }
152
+
153
+ @include e(rightwrapper) {
154
+ flex: 1;
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: flex-end;
158
+ }
159
+
160
+ @include when(background) {
161
+ .btn-prev,
162
+ .btn-next,
163
+ .#{$namespace}-pager li {
164
+ margin: 0 4px;
165
+ background-color: getCssVar('pagination-button-bg-color');
166
+
167
+ &.is-active {
168
+ background-color: getCssVar('color-primary');
169
+ color: getCssVar('color-white');
170
+ }
171
+
172
+ &:disabled,
173
+ &.is-disabled {
174
+ color: getCssVar('text-color', 'placeholder');
175
+ background-color: getCssVar('disabled-bg-color');
176
+
177
+ &.is-active {
178
+ color: getCssVar('text-color', 'secondary');
179
+ background-color: getCssVar('fill-color', 'dark');
180
+ }
181
+ }
182
+ }
183
+
184
+ .btn-prev {
185
+ margin-left: getCssVar('pagination-item-gap');
186
+ }
187
+ }
188
+
189
+ @include m(small) {
190
+ .btn-prev,
191
+ .btn-next,
192
+ .#{$namespace}-pager li {
193
+ height: getCssVar('pagination-button-height-small');
194
+ line-height: getCssVar('pagination-button-height-small');
195
+ font-size: getCssVar('pagination-font-size-small');
196
+ min-width: getCssVar('pagination-button-width-small');
197
+ }
198
+
199
+ span:not([class*='suffix']),
200
+ button {
201
+ font-size: getCssVar('pagination-font-size-small');
202
+ }
203
+
204
+ .#{$namespace}-select {
205
+ width: 100px;
206
+ }
207
+ }
208
+ @include m(large) {
209
+ .btn-prev,
210
+ .btn-next,
211
+ .#{$namespace}-pager li {
212
+ height: getCssVar('pagination-button-height-large');
213
+ line-height: getCssVar('pagination-button-height-large');
214
+ min-width: getCssVar('pagination-button-width-large');
215
+ }
216
+
217
+ .#{$namespace}-select .#{$namespace}-input {
218
+ width: 160px;
219
+ }
220
+ }
221
+ }
222
+
223
+ @include b(pager) {
224
+ user-select: none;
225
+ list-style: none;
226
+ font-size: 0;
227
+ padding: 0;
228
+ margin: 0;
229
+ display: flex;
230
+ align-items: center;
231
+
232
+ li {
233
+ @include pagination-button;
234
+ }
235
+ }
@@ -0,0 +1,17 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(popconfirm) {
5
+ outline: none;
6
+ @include e(main) {
7
+ display: flex;
8
+ align-items: center;
9
+ }
10
+ @include e(icon) {
11
+ margin-right: 5px;
12
+ }
13
+ @include e(action) {
14
+ text-align: right;
15
+ margin-top: 8px;
16
+ }
17
+ }
@@ -0,0 +1,61 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(popover) {
6
+ @include set-component-css-var('popover', $popover);
7
+
8
+ &.#{$namespace}-popper {
9
+ background: getCssVar('popover-bg-color');
10
+ min-width: 150px;
11
+ border-radius: getCssVar('popover-border-radius');
12
+ border: 1px solid getCssVar('popover-border-color');
13
+ padding: getCssVar('popover-padding');
14
+ z-index: getCssVar('index-popper');
15
+ color: getCssVar('text-color', 'regular');
16
+ line-height: 1.4;
17
+ font-size: getCssVar('popover-font-size');
18
+ box-shadow: getCssVar('box-shadow-light');
19
+ overflow-wrap: break-word;
20
+ box-sizing: border-box;
21
+
22
+ @include m(plain) {
23
+ padding: getCssVar('popover-padding-large');
24
+ }
25
+
26
+ @include e(title) {
27
+ color: getCssVar('popover-title-text-color');
28
+ font-size: getCssVar('popover-title-font-size');
29
+ line-height: 1;
30
+ margin-bottom: 12px;
31
+ }
32
+
33
+ @include e(reference) {
34
+ &:focus:not(.focusing),
35
+ &:focus:hover {
36
+ outline-width: 0;
37
+ }
38
+ }
39
+
40
+ @include when(dark) {
41
+ @include set-css-var-value(
42
+ ('popover', 'bg-color'),
43
+ var(#{getCssVarName('text-color', 'primary')})
44
+ );
45
+ @include set-css-var-value(
46
+ ('popover', 'border-color'),
47
+ var(#{getCssVarName('text-color', 'primary')})
48
+ );
49
+ @include set-css-var-value(
50
+ ('popover', 'title-text-color'),
51
+ var(#{getCssVarName('bg-color')})
52
+ );
53
+ color: getCssVar('bg-color');
54
+ }
55
+
56
+ &:focus:active,
57
+ &:focus {
58
+ outline-width: 0;
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,117 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(popper) {
6
+ @include set-component-css-var('popper', $popper);
7
+ }
8
+
9
+ @include b(popper) {
10
+ position: absolute;
11
+ border-radius: getCssVar('popper', 'border-radius');
12
+ padding: 5px 11px;
13
+ z-index: 2000;
14
+ font-size: 12px;
15
+ line-height: 20px;
16
+ min-width: 10px;
17
+ overflow-wrap: break-word;
18
+ word-break: normal;
19
+ visibility: visible;
20
+
21
+ $arrow-selector: #{& + '__arrow'};
22
+
23
+ @include when(dark) {
24
+ @include set-css-var-value(
25
+ ('fill-color', 'blank'),
26
+ getCssVar('popper', 'bg-color-dark')
27
+ );
28
+
29
+ color: getCssVar('bg-color');
30
+ background: getCssVar('popper', 'bg-color-dark');
31
+ border: 1px solid getCssVar('text-color', 'primary');
32
+
33
+ > #{$arrow-selector}::before {
34
+ border: 1px solid getCssVar('text-color', 'primary');
35
+ background: getCssVar('popper', 'bg-color-dark');
36
+ right: 0;
37
+ }
38
+ }
39
+
40
+ @include when(light) {
41
+ @include set-css-var-value(
42
+ ('fill-color', 'blank'),
43
+ getCssVar('popper', 'bg-color-light')
44
+ );
45
+
46
+ background: getCssVar('popper', 'bg-color-light');
47
+ border: 1px solid getCssVar('border-color', 'light');
48
+
49
+ > #{$arrow-selector}::before {
50
+ border: 1px solid getCssVar('border-color', 'light');
51
+ background: getCssVar('popper', 'bg-color-light');
52
+ right: 0;
53
+ }
54
+ }
55
+
56
+ @include when(pure) {
57
+ padding: 0;
58
+ }
59
+
60
+ @include e(arrow) {
61
+ position: absolute;
62
+ width: 10px;
63
+ height: 10px;
64
+ z-index: -1;
65
+
66
+ &::before {
67
+ position: absolute;
68
+ width: 10px;
69
+ height: 10px;
70
+ z-index: -1;
71
+ content: ' ';
72
+ transform: rotate(45deg);
73
+ background: getCssVar('text-color', 'primary');
74
+ box-sizing: border-box;
75
+ }
76
+ }
77
+
78
+ $placements: (
79
+ 'top': 'bottom',
80
+ 'bottom': 'top',
81
+ 'left': 'right',
82
+ 'right': 'left',
83
+ );
84
+
85
+ @each $placement, $opposite in $placements {
86
+ &[data-popper-placement^='#{$placement}'] > #{$arrow-selector} {
87
+ #{$opposite}: -5px;
88
+
89
+ &::before {
90
+ @if $placement == top {
91
+ border-bottom-right-radius: 2px;
92
+ }
93
+ @if $placement == bottom {
94
+ border-top-left-radius: 2px;
95
+ }
96
+ @if $placement == left {
97
+ border-top-right-radius: 2px;
98
+ }
99
+ @if $placement == right {
100
+ border-bottom-left-radius: 2px;
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ @each $placement,
107
+ $adjacency
108
+ in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top')
109
+ {
110
+ &[data-popper-placement^='#{$placement}'] > {
111
+ #{$arrow-selector}::before {
112
+ border-#{$placement}-color: transparent !important;
113
+ border-#{$adjacency}-color: transparent !important;
114
+ }
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,179 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/utils' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(progress) {
6
+ position: relative;
7
+ line-height: 1;
8
+ display: flex;
9
+ align-items: center;
10
+
11
+ @include e(text) {
12
+ font-size: 14px;
13
+ color: getCssVar('text-color', 'regular');
14
+ margin-left: 5px;
15
+ min-width: 50px;
16
+ line-height: 1;
17
+
18
+ i {
19
+ vertical-align: middle;
20
+ display: block;
21
+ }
22
+ }
23
+
24
+ @include m((circle, dashboard)) {
25
+ display: inline-block;
26
+
27
+ .#{$namespace}-progress__text {
28
+ position: absolute;
29
+ top: 50%;
30
+ left: 0;
31
+ width: 100%;
32
+ text-align: center;
33
+ margin: 0;
34
+ transform: translate(0, -50%);
35
+
36
+ i {
37
+ vertical-align: middle;
38
+ display: inline-block;
39
+ }
40
+ }
41
+ }
42
+
43
+ @include m(without-text) {
44
+ .#{$namespace}-progress__text {
45
+ display: none;
46
+ }
47
+
48
+ .#{$namespace}-progress-bar {
49
+ padding-right: 0;
50
+ margin-right: 0;
51
+ display: block;
52
+ }
53
+ }
54
+
55
+ @include m(text-inside) {
56
+ .#{$namespace}-progress-bar {
57
+ padding-right: 0;
58
+ margin-right: 0;
59
+ }
60
+ }
61
+
62
+ @include when(success) {
63
+ .#{$namespace}-progress-bar__inner {
64
+ background-color: getCssVar('color-success');
65
+ }
66
+
67
+ .#{$namespace}-progress__text {
68
+ color: getCssVar('color-success');
69
+ }
70
+ }
71
+
72
+ @include when(warning) {
73
+ .#{$namespace}-progress-bar__inner {
74
+ background-color: getCssVar('color-warning');
75
+ }
76
+
77
+ .#{$namespace}-progress__text {
78
+ color: getCssVar('color-warning');
79
+ }
80
+ }
81
+
82
+ @include when(exception) {
83
+ .#{$namespace}-progress-bar__inner {
84
+ background-color: getCssVar('color-danger');
85
+ }
86
+
87
+ .#{$namespace}-progress__text {
88
+ color: getCssVar('color-danger');
89
+ }
90
+ }
91
+ }
92
+
93
+ @include b(progress-bar) {
94
+ flex-grow: 1;
95
+ box-sizing: border-box;
96
+
97
+ @include e(outer) {
98
+ height: 6px;
99
+ border-radius: 100px;
100
+ background-color: getCssVar('border-color-lighter');
101
+ overflow: hidden;
102
+ position: relative;
103
+ vertical-align: middle;
104
+ }
105
+ @include e(inner) {
106
+ position: absolute;
107
+ left: 0;
108
+ top: 0;
109
+ height: 100%;
110
+ background-color: getCssVar('color-primary');
111
+ text-align: right;
112
+ border-radius: 100px;
113
+ line-height: 1;
114
+ white-space: nowrap;
115
+ transition: width 0.6s ease;
116
+
117
+ @include utils-vertical-center;
118
+
119
+ @include m(indeterminate) {
120
+ transform: translateZ(0);
121
+ animation: indeterminate 3s infinite;
122
+ }
123
+
124
+ @include m(striped) {
125
+ background-image: linear-gradient(
126
+ 45deg,
127
+ rgba(0, 0, 0, 0.1) 25%,
128
+ transparent 25%,
129
+ transparent 50%,
130
+ rgba(0, 0, 0, 0.1) 50%,
131
+ rgba(0, 0, 0, 0.1) 75%,
132
+ transparent 75%,
133
+ transparent
134
+ );
135
+ background-size: 1.25em 1.25em;
136
+ &.#{$namespace}-progress-bar__inner--striped-flow {
137
+ animation: striped-flow 3s linear infinite;
138
+ }
139
+ }
140
+ }
141
+
142
+ @include e(innerText) {
143
+ display: inline-block;
144
+ vertical-align: middle;
145
+ color: $color-white;
146
+ font-size: 12px;
147
+ margin: 0 5px;
148
+ }
149
+ }
150
+
151
+ @keyframes progress {
152
+ 0% {
153
+ background-position: 0 0;
154
+ }
155
+
156
+ 100% {
157
+ background-position: 32px 0;
158
+ }
159
+ }
160
+
161
+ @keyframes indeterminate {
162
+ 0% {
163
+ left: -100%;
164
+ }
165
+
166
+ 100% {
167
+ left: 100%;
168
+ }
169
+ }
170
+
171
+ @keyframes striped-flow {
172
+ 0% {
173
+ background-position: -100%;
174
+ }
175
+
176
+ 100% {
177
+ background-position: 100%;
178
+ }
179
+ }