@ebay/skin 14.2.0 → 15.0.0-0
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.
- package/.storybook/preview-head.html +343 -72
- package/_cdn/skin/v15.0.0-0/skin-default.min.css +6 -0
- package/_cdn/skin/v15.0.0-0/skin-full.min.css +6 -0
- package/_cdn/skin/v15.0.0-0/skin-headless.min.css +6 -0
- package/_cdn/skin/v15.0.0-0/skin-legacy.min.css +6 -0
- package/dist/button/button.css +1 -5
- package/dist/combobox/combobox.css +13 -3
- package/dist/cta-button/cta-button.css +0 -4
- package/dist/field/field.css +1 -1
- package/dist/filter-menu-button/filter-menu-button.css +1 -1
- package/dist/icon/icon.css +403 -351
- package/dist/infotip/infotip.css +1 -5
- package/dist/legacy-tokens/ds4-light.css +0 -2
- package/dist/lightbox-dialog/lightbox-dialog.css +0 -9
- package/dist/listbox-button/listbox-button.css +5 -0
- package/dist/marketsans/marketsans.css +2 -2
- package/dist/menu-button/menu-button.css +13 -22
- package/dist/panel-dialog/panel-dialog.css +0 -3
- package/dist/program-badge/program-badge.css +403 -351
- package/dist/progress-spinner/progress-spinner.css +14 -18
- package/dist/progress-stepper/progress-stepper.css +46 -45
- package/dist/section-title/section-title.css +23 -87
- package/dist/snackbar-dialog/snackbar-dialog.css +9 -11
- package/dist/star-rating/star-rating.css +11 -7
- package/dist/star-rating-select/star-rating-select.css +9 -7
- package/dist/svg/icon/icon-spinner-large.svg +5 -5
- package/dist/svg/icon/icon-spinner-small.svg +4 -0
- package/dist/svg/icon/icon-spinner.svg +3 -13
- package/dist/svg/icon/icon-star-dynamic.svg +11 -9
- package/dist/svg/icon/icon-star-empty-large.svg +1 -0
- package/dist/svg/icon/icon-star-empty-small.svg +1 -5
- package/dist/svg/icon/icon-star-filled-large.svg +1 -0
- package/dist/svg/icon/icon-star-filled-small.svg +1 -0
- package/dist/svg/icon/icon-star-half-large.svg +1 -0
- package/dist/svg/icon/icon-star-half-small.svg +1 -9
- package/dist/svg/icon/icon-stepper-attention.svg +1 -0
- package/dist/svg/icon/icon-stepper-confirmation.svg +1 -0
- package/dist/svg/icon/icon-stepper-current.svg +1 -0
- package/dist/svg/icon/icon-stepper-upcoming.svg +5 -0
- package/dist/svg/icon/star-rating-large-0-5.svg +1 -0
- package/dist/svg/icon/star-rating-large-0.svg +1 -0
- package/dist/svg/icon/star-rating-large-1-5.svg +1 -0
- package/dist/svg/icon/star-rating-large-1.svg +1 -0
- package/dist/svg/icon/star-rating-large-2-5.svg +1 -0
- package/dist/svg/icon/star-rating-large-2.svg +1 -0
- package/dist/svg/icon/star-rating-large-3-5.svg +1 -0
- package/dist/svg/icon/star-rating-large-3.svg +1 -0
- package/dist/svg/icon/star-rating-large-4-5.svg +1 -0
- package/dist/svg/icon/star-rating-large-4.svg +1 -0
- package/dist/svg/icon/star-rating-large-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-0-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-0.svg +1 -0
- package/dist/svg/icon/star-rating-small-1-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-1.svg +1 -0
- package/dist/svg/icon/star-rating-small-2-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-2.svg +1 -0
- package/dist/svg/icon/star-rating-small-3-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-3.svg +1 -0
- package/dist/svg/icon/star-rating-small-4-5.svg +1 -0
- package/dist/svg/icon/star-rating-small-4.svg +1 -0
- package/dist/svg/icon/star-rating-small-5.svg +1 -0
- package/dist/svg/icons.svg +343 -72
- package/dist/svg/star-rating.svg +206 -42
- package/dist/tokens/evo-dark.css +4 -6
- package/dist/tokens/evo-light.css +0 -2
- package/dist/tooltip/tooltip.css +1 -5
- package/dist/tourtip/tourtip.css +1 -5
- package/dist/variables/variables.less +0 -3
- package/index.browser.json +1 -3
- package/index.css +0 -2
- package/index.js +0 -2
- package/index.mjs +0 -2
- package/package.json +1 -1
- package/scripts/generate-images.js +29 -14
- package/src/fonts/marketsans/MarketSans-Regular-WebS.css +2 -1
- package/src/fonts/marketsans/MarketSans-SemiBold-WebS.css +2 -1
- package/src/less/bundles/skin-headless.less +0 -2
- package/src/less/button/button.less +1 -7
- package/src/less/button/stories/button/borderless.stories.js +8 -0
- package/src/less/combobox/combobox.less +4 -4
- package/src/less/cta-button/cta-button.less +0 -6
- package/src/less/field/field.less +1 -1
- package/src/less/filter-menu-button/filter-menu-button.less +1 -1
- package/src/less/gh/gh-mixins.less +0 -8
- package/src/less/icon/generated/icon.less +403 -351
- package/src/less/lightbox-dialog/lightbox-dialog.less +0 -11
- package/src/less/marketsans/marketsans.less +2 -2
- package/src/less/menu-button/menu-button.less +7 -33
- package/src/less/mixins/private/bubble-mixins.less +2 -11
- package/src/less/mixins/private/button-mixins.less +0 -1
- package/src/less/mixins/private/dialog-mixins.less +0 -3
- package/src/less/mixins/private/dropdown-mixins.less +16 -0
- package/src/less/panel-dialog/panel-dialog.less +0 -5
- package/src/less/progress-spinner/progress-spinner.less +14 -19
- package/src/less/progress-spinner/stories/progress-spinner.stories.js +7 -6
- package/src/less/progress-stepper/progress-stepper.less +103 -55
- package/src/less/progress-stepper/stories/progress-stepper.stories.js +461 -65
- package/src/less/section-title/section-title.less +24 -102
- package/src/less/section-title/stories/rtl.stories.js +67 -12
- package/src/less/section-title/stories/section-title.stories.js +22 -262
- package/src/less/snackbar-dialog/snackbar-dialog.less +9 -11
- package/src/less/star-rating/star-rating.less +26 -6
- package/src/less/star-rating-select/star-rating-select.less +28 -7
- package/src/less/variables/variables.less +0 -3
- package/src/selectors-api/selectors-api.json +1 -3
- package/src/svg/icon/icon-spinner-large.svg +5 -5
- package/src/svg/icon/icon-spinner-small.svg +4 -0
- package/src/svg/icon/icon-spinner.svg +3 -13
- package/src/svg/icon/icon-star-dynamic.svg +11 -9
- package/src/svg/icon/icon-star-empty-large.svg +1 -0
- package/src/svg/icon/icon-star-empty-small.svg +1 -5
- package/src/svg/icon/icon-star-filled-large.svg +1 -0
- package/src/svg/icon/icon-star-filled-small.svg +1 -0
- package/src/svg/icon/icon-star-half-large.svg +1 -0
- package/src/svg/icon/icon-star-half-small.svg +1 -9
- package/src/svg/icon/icon-stepper-attention.svg +1 -0
- package/src/svg/icon/icon-stepper-confirmation.svg +1 -0
- package/src/svg/icon/icon-stepper-current.svg +1 -0
- package/src/svg/icon/icon-stepper-upcoming.svg +5 -0
- package/src/svg/icon/star-rating-large-0-5.svg +1 -0
- package/src/svg/icon/star-rating-large-0.svg +1 -0
- package/src/svg/icon/star-rating-large-1-5.svg +1 -0
- package/src/svg/icon/star-rating-large-1.svg +1 -0
- package/src/svg/icon/star-rating-large-2-5.svg +1 -0
- package/src/svg/icon/star-rating-large-2.svg +1 -0
- package/src/svg/icon/star-rating-large-3-5.svg +1 -0
- package/src/svg/icon/star-rating-large-3.svg +1 -0
- package/src/svg/icon/star-rating-large-4-5.svg +1 -0
- package/src/svg/icon/star-rating-large-4.svg +1 -0
- package/src/svg/icon/star-rating-large-5.svg +1 -0
- package/src/svg/icon/star-rating-small-0-5.svg +1 -0
- package/src/svg/icon/star-rating-small-0.svg +1 -0
- package/src/svg/icon/star-rating-small-1-5.svg +1 -0
- package/src/svg/icon/star-rating-small-1.svg +1 -0
- package/src/svg/icon/star-rating-small-2-5.svg +1 -0
- package/src/svg/icon/star-rating-small-2.svg +1 -0
- package/src/svg/icon/star-rating-small-3-5.svg +1 -0
- package/src/svg/icon/star-rating-small-3.svg +1 -0
- package/src/svg/icon/star-rating-small-4-5.svg +1 -0
- package/src/svg/icon/star-rating-small-4.svg +1 -0
- package/src/svg/icon/star-rating-small-5.svg +1 -0
- package/src/svg/icons.svg +343 -72
- package/src/svg/star-rating.svg +206 -42
- package/src/tokens/evo-dark.css +4 -6
- package/src/tokens/evo-light.css +0 -2
- package/svg.svg +343 -72
- package/_cdn/skin/v14.2.0/skin-default.min.css +0 -6
- package/_cdn/skin/v14.2.0/skin-full.min.css +0 -6
- package/_cdn/skin/v14.2.0/skin-headless.min.css +0 -6
- package/_cdn/skin/v14.2.0/skin-legacy.min.css +0 -6
- package/dist/expand-button/expand-button.css +0 -189
- package/dist/icon/aliased.css +0 -45
- package/dist/icon/base.css +0 -12
- package/dist/icon/content.css +0 -41
- package/dist/icon/device.css +0 -45
- package/dist/icon/direction.css +0 -105
- package/dist/icon/filter.css +0 -65
- package/dist/icon/general.css +0 -309
- package/dist/icon/interface.css +0 -185
- package/dist/icon/internal.css +0 -120
- package/dist/icon/large.css +0 -93
- package/dist/icon/media.css +0 -45
- package/dist/icon/photo.css +0 -69
- package/dist/icon/reviews.css +0 -87
- package/dist/icon/shipping.css +0 -73
- package/dist/icon/social.css +0 -80
- package/dist/icon/status.css +0 -87
- package/dist/icon/user.css +0 -29
- package/dist/svg/aliased.svg +0 -38
- package/dist/svg/content.svg +0 -25
- package/dist/svg/device.svg +0 -29
- package/dist/svg/direction.svg +0 -119
- package/dist/svg/filter.svg +0 -43
- package/dist/svg/general.svg +0 -476
- package/dist/svg/icon/icon-stepper-information.svg +0 -5
- package/dist/svg/interface.svg +0 -314
- package/dist/svg/internal.svg +0 -162
- package/dist/svg/large.svg +0 -125
- package/dist/svg/media.svg +0 -29
- package/dist/svg/photo.svg +0 -106
- package/dist/svg/reviews.svg +0 -113
- package/dist/svg/shipping.svg +0 -82
- package/dist/svg/social.svg +0 -80
- package/dist/svg/status.svg +0 -48
- package/dist/svg/user.svg +0 -48
- package/dist/window-notice/window-notice.css +0 -39
- package/expand-button.browser.json +0 -1
- package/expand-button.css +0 -1
- package/expand-button.js +0 -1
- package/expand-button.mjs +0 -1
- package/src/less/expand-button/expand-button.less +0 -181
- package/src/less/expand-button/stories/base.stories.js +0 -56
- package/src/less/expand-button/stories/cascade.stories.js +0 -54
- package/src/less/expand-button/stories/dimensions.stories.js +0 -45
- package/src/less/icon/aliased.less +0 -12
- package/src/less/icon/base.less +0 -14
- package/src/less/icon/content.less +0 -2
- package/src/less/icon/device.less +0 -2
- package/src/less/icon/direction.less +0 -2
- package/src/less/icon/filter.less +0 -2
- package/src/less/icon/general.less +0 -2
- package/src/less/icon/generated/aliased.less +0 -25
- package/src/less/icon/generated/content.less +0 -29
- package/src/less/icon/generated/device.less +0 -33
- package/src/less/icon/generated/direction.less +0 -93
- package/src/less/icon/generated/filter.less +0 -53
- package/src/less/icon/generated/general.less +0 -297
- package/src/less/icon/generated/interface.less +0 -173
- package/src/less/icon/generated/internal.less +0 -93
- package/src/less/icon/generated/large.less +0 -81
- package/src/less/icon/generated/media.less +0 -33
- package/src/less/icon/generated/photo.less +0 -57
- package/src/less/icon/generated/program-badges.less +0 -49
- package/src/less/icon/generated/reviews.less +0 -69
- package/src/less/icon/generated/shipping.less +0 -61
- package/src/less/icon/generated/social.less +0 -41
- package/src/less/icon/generated/status.less +0 -57
- package/src/less/icon/generated/user.less +0 -17
- package/src/less/icon/interface.less +0 -2
- package/src/less/icon/internal.less +0 -22
- package/src/less/icon/large.less +0 -2
- package/src/less/icon/media.less +0 -2
- package/src/less/icon/photo.less +0 -2
- package/src/less/icon/reviews.less +0 -12
- package/src/less/icon/shipping.less +0 -2
- package/src/less/icon/social.less +0 -41
- package/src/less/icon/status.less +0 -28
- package/src/less/icon/user.less +0 -2
- package/src/less/window-notice/stories/window-notice.stories.js +0 -60
- package/src/less/window-notice/window-notice.less +0 -50
- package/src/svg/aliased.svg +0 -38
- package/src/svg/content.svg +0 -25
- package/src/svg/device.svg +0 -29
- package/src/svg/direction.svg +0 -119
- package/src/svg/filter.svg +0 -43
- package/src/svg/general.svg +0 -476
- package/src/svg/icon/icon-star-empty.svg +0 -5
- package/src/svg/icon/icon-star-full.svg +0 -5
- package/src/svg/icon/icon-star-half.svg +0 -9
- package/src/svg/icon/icon-stepper-information.svg +0 -5
- package/src/svg/icon/star-rating-0-5.svg +0 -9
- package/src/svg/icon/star-rating-0.svg +0 -6
- package/src/svg/icon/star-rating-1-5.svg +0 -9
- package/src/svg/icon/star-rating-1.svg +0 -9
- package/src/svg/icon/star-rating-2-5.svg +0 -9
- package/src/svg/icon/star-rating-2.svg +0 -9
- package/src/svg/icon/star-rating-3-5.svg +0 -9
- package/src/svg/icon/star-rating-3.svg +0 -9
- package/src/svg/icon/star-rating-4-5.svg +0 -9
- package/src/svg/icon/star-rating-4.svg +0 -9
- package/src/svg/icon/star-rating-5.svg +0 -5
- package/src/svg/interface.svg +0 -314
- package/src/svg/internal.svg +0 -162
- package/src/svg/large.svg +0 -125
- package/src/svg/media.svg +0 -29
- package/src/svg/photo.svg +0 -106
- package/src/svg/reviews.svg +0 -113
- package/src/svg/shipping.svg +0 -82
- package/src/svg/social.svg +0 -80
- package/src/svg/status.svg +0 -48
- package/src/svg/user.svg +0 -48
- package/window-notice.browser.json +0 -1
- package/window-notice.css +0 -1
- package/window-notice.js +0 -1
- package/window-notice.mjs +0 -1
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
.lightbox-dialog-window();
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
// Deprecated --mini dilaog in favor of drawer, remove next major
|
|
14
|
-
.lightbox-dialog__window--mini {
|
|
15
|
-
align-items: flex-start;
|
|
16
|
-
align-self: center;
|
|
17
|
-
border-radius: 7px;
|
|
18
|
-
flex-direction: row-reverse;
|
|
19
|
-
margin-top: 0;
|
|
20
|
-
min-height: 72px;
|
|
21
|
-
min-width: 200px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
13
|
.lightbox-dialog__header {
|
|
25
14
|
.dialog-header-content();
|
|
26
15
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// svg: Legacy iOS
|
|
9
9
|
|
|
10
10
|
@font-face {
|
|
11
|
-
font-display:
|
|
11
|
+
font-display: swap;
|
|
12
12
|
font-family: @marketsans-fontname;
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-weight: normal;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@font-face {
|
|
26
|
-
font-display:
|
|
26
|
+
font-display: swap;
|
|
27
27
|
font-family: @marketsans-fontname;
|
|
28
28
|
font-style: normal;
|
|
29
29
|
font-weight: bold;
|
|
@@ -76,12 +76,6 @@ button.fake-menu-button__item {
|
|
|
76
76
|
text-align: left;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
a.fake-menu-button__item:not([href]),
|
|
80
|
-
button.fake-menu-button__item[disabled],
|
|
81
|
-
div.menu-button__item[role^="menuitem"][aria-disabled="true"] {
|
|
82
|
-
.color-token(menu-button-menuitem-disabled-foreground-color, color-foreground-disabled);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
79
|
a.fake-menu-button__item[aria-current="page"] svg.icon--tick-small,
|
|
86
80
|
button.fake-menu-button__item[aria-current="page"] svg.icon--tick-small {
|
|
87
81
|
opacity: 1;
|
|
@@ -96,6 +90,12 @@ div.menu-button__item[role^="menuitem"][aria-checked="true"] svg.icon--tick-smal
|
|
|
96
90
|
.menu-menuitem-base(menu-button);
|
|
97
91
|
}
|
|
98
92
|
|
|
93
|
+
.fake-menu-button__menu a.fake-menu-button__item:not([href]),
|
|
94
|
+
.fake-menu-button__menu button.fake-menu-button__item[disabled],
|
|
95
|
+
.fake-menu-button__menu div.menu-button__item[role^="menuitem"][aria-disabled="true"] {
|
|
96
|
+
.color-token(menu-button-menuitem-disabled-foreground-color, color-foreground-disabled);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
99
|
.fake-menu-button__menu > li:first-child a.fake-menu-button__item {
|
|
100
100
|
.border-top-left-radius-token(menu-button-menu-border-radius, border-radius-50);
|
|
101
101
|
.border-top-right-radius-token(menu-button-menu-border-radius, border-radius-50);
|
|
@@ -146,27 +146,7 @@ div.menu-button__item--badged[role^="menuitem"] .badge {
|
|
|
146
146
|
|
|
147
147
|
.menu-button__menu--reverse,
|
|
148
148
|
.fake-menu-button__menu--reverse {
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
[dir="rtl"] .menu-button__menu--reverse,
|
|
153
|
-
[dir="rtl"] .fake-menu-button__menu--reverse {
|
|
154
|
-
left: 0;
|
|
155
|
-
right: inherit;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// DEPRECATED. Remove in v15
|
|
159
|
-
.menu-button button.expand-btn--borderless,
|
|
160
|
-
.fake-menu-button button.expand-btn--borderless {
|
|
161
|
-
background-color: transparent;
|
|
162
|
-
border-color: transparent;
|
|
163
|
-
padding-left: 0;
|
|
164
|
-
vertical-align: initial;
|
|
165
|
-
|
|
166
|
-
&:focus {
|
|
167
|
-
outline: none;
|
|
168
|
-
text-decoration: underline;
|
|
169
|
-
}
|
|
149
|
+
.dropdown-reverse();
|
|
170
150
|
}
|
|
171
151
|
|
|
172
152
|
.menu-button__button[aria-expanded="true"] ~ .menu-button__menu,
|
|
@@ -187,12 +167,6 @@ div.menu-button__item--badged[role^="menuitem"] .badge {
|
|
|
187
167
|
position: static;
|
|
188
168
|
}
|
|
189
169
|
|
|
190
|
-
// DEPRECATED. Remove in v15
|
|
191
|
-
.menu button.expand-btn--borderless[aria-expanded="true"] ~ .menu-button__menu,
|
|
192
|
-
.fake-menu button.expand-btn--borderless[aria-expanded="true"] ~ .menu-button__menu {
|
|
193
|
-
top: 41px; // button height plus one px, to meet design guidelines
|
|
194
|
-
}
|
|
195
|
-
|
|
196
170
|
div.menu-button__option--active[role="option"] {
|
|
197
171
|
font-weight: bold;
|
|
198
172
|
}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
// this mixin is used by infotip, tooltip, tourtip
|
|
2
2
|
|
|
3
|
-
// Deprecated
|
|
4
|
-
@bubble-base-box-shadow: 0 0 3px rgba(17, 24, 32, 0.499);
|
|
5
|
-
|
|
6
3
|
:root {
|
|
7
|
-
// Deprecated variables, remove next version
|
|
8
|
-
--bubble-base-box-shadow: @bubble-base-box-shadow;
|
|
9
|
-
--bubble-left-box-shadow: @bubble-base-box-shadow;
|
|
10
|
-
--bubble-right-box-shadow: @bubble-base-box-shadow;
|
|
11
|
-
--bubble-bottom-box-shadow: @bubble-base-box-shadow;
|
|
12
|
-
--bubble-top-box-shadow: @bubble-base-box-shadow;
|
|
13
|
-
// End deprecated
|
|
14
|
-
|
|
15
4
|
--bubble-filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.15))
|
|
16
5
|
drop-shadow(0 5px 17px rgba(0, 0, 0, 0.2));
|
|
17
6
|
}
|
|
@@ -22,6 +11,8 @@
|
|
|
22
11
|
filter: var(--bubble-filter);
|
|
23
12
|
font-size: 14px;
|
|
24
13
|
max-width: 344px;
|
|
14
|
+
// kick in hardware acceleration for GPU processing - fixes issues with filter/display reflow/repaint
|
|
15
|
+
transform: scale3d(1, 1, 1);
|
|
25
16
|
width: max-content;
|
|
26
17
|
z-index: 1;
|
|
27
18
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
@import "../public/utility-mixins.less";
|
|
2
2
|
|
|
3
|
-
// Deprecated, remove the gutter sizes next major
|
|
4
|
-
@dialog-small-gutter-size: 16px;
|
|
5
|
-
@dialog-large-gutter-size: 24px;
|
|
6
3
|
@dialog-scrim-color-hide: rgba(17, 24, 32, 0);
|
|
7
4
|
@dialog-scrim-color-show: rgba(17, 24, 32, 0.7);
|
|
8
5
|
@dialog-lightbox-max-width: 616px;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
.box-shadow-token(~"@{component}-box-shadow", dropdown-box-shadow);
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
display: none;
|
|
12
|
+
left: 0;
|
|
12
13
|
max-height: 400px;
|
|
13
14
|
min-width: 100%;
|
|
14
15
|
overflow-y: auto;
|
|
@@ -16,6 +17,21 @@
|
|
|
16
17
|
top: calc(100% + 4px);
|
|
17
18
|
width: auto;
|
|
18
19
|
z-index: 2;
|
|
20
|
+
|
|
21
|
+
[dir="rtl"] & {
|
|
22
|
+
left: unset;
|
|
23
|
+
right: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dropdown-reverse() {
|
|
28
|
+
left: unset;
|
|
29
|
+
right: 0;
|
|
30
|
+
|
|
31
|
+
[dir="rtl"] & {
|
|
32
|
+
left: 0;
|
|
33
|
+
right: unset;
|
|
34
|
+
}
|
|
19
35
|
}
|
|
20
36
|
|
|
21
37
|
.dropdown-item-border-radius(@component) {
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
@import "../mixins/private/token-mixins.less";
|
|
3
3
|
|
|
4
4
|
.progress-spinner {
|
|
5
|
-
animation: spin
|
|
5
|
+
animation: spin 1.5s linear infinite;
|
|
6
|
+
animation-timing-function: cubic-bezier(0.7, 0.2, 0.3, 0.73);
|
|
6
7
|
display: inline-block;
|
|
7
|
-
height:
|
|
8
|
-
width:
|
|
8
|
+
height: 24px;
|
|
9
|
+
width: 24px;
|
|
9
10
|
|
|
10
11
|
@keyframes spin {
|
|
11
12
|
from {
|
|
@@ -13,13 +14,15 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
to {
|
|
16
|
-
transform: rotate(
|
|
17
|
+
transform: rotate(720deg);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
// fixes wobble
|
|
22
|
-
.progress-spinner > svg.icon.icon--spinner
|
|
23
|
+
.progress-spinner > svg.icon.icon--spinner,
|
|
24
|
+
.progress-spinner > svg.icon.icon--spinner-large,
|
|
25
|
+
.progress-spinner > svg.icon.icon--spinner-small {
|
|
23
26
|
height: inherit;
|
|
24
27
|
margin: 0;
|
|
25
28
|
max-height: inherit;
|
|
@@ -27,20 +30,12 @@
|
|
|
27
30
|
width: inherit;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
.progress-spinner--
|
|
31
|
-
height:
|
|
32
|
-
width:
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* This needs to be removed on next major version.
|
|
36
|
-
this makes it backwards compatible with empty span */
|
|
37
|
-
.progress-spinner:empty {
|
|
38
|
-
.background-image-token(progress-spinner-image-url, url-image-progress-spinner);
|
|
39
|
-
background-position: center center;
|
|
40
|
-
background-repeat: no-repeat;
|
|
41
|
-
background-size: cover;
|
|
33
|
+
.progress-spinner--small {
|
|
34
|
+
height: 20px;
|
|
35
|
+
width: 20px;
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
.progress-spinner--large
|
|
45
|
-
|
|
38
|
+
.progress-spinner--large {
|
|
39
|
+
height: 30px;
|
|
40
|
+
width: 30px;
|
|
46
41
|
}
|
|
@@ -17,12 +17,13 @@ export const RTL = () =>
|
|
|
17
17
|
export const large = () =>
|
|
18
18
|
`<span class="progress-spinner progress-spinner--large" aria-label="Busy" role="img">
|
|
19
19
|
<svg class="icon icon--spinner-large" focusable="false" aria-hidden="true">
|
|
20
|
-
<use xlink:href="#icon-spinner"></use>
|
|
20
|
+
<use xlink:href="#icon-spinner-large"></use>
|
|
21
21
|
</svg>
|
|
22
22
|
</span>`;
|
|
23
23
|
|
|
24
|
-
export const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
export const small = () =>
|
|
25
|
+
`<span class="progress-spinner progress-spinner--small" aria-label="Busy" role="img">
|
|
26
|
+
<svg class="icon icon--spinner-small" focusable="false" aria-hidden="true">
|
|
27
|
+
<use xlink:href="#icon-spinner-small"></use>
|
|
28
|
+
</svg>
|
|
29
|
+
</span>`;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
@import "../variables/variables.less";
|
|
2
2
|
@import "../mixins/private/token-mixins.less";
|
|
3
3
|
|
|
4
|
-
@progress-stepper-icon-size: 24px;
|
|
5
4
|
@progress-stepper-min-width: 80px;
|
|
6
5
|
@progress-stepper-large-min-width: 120px;
|
|
6
|
+
// Shortcut private variables
|
|
7
|
+
@_progress-stepper-active-gradient: var(
|
|
8
|
+
--progress-stepper-active-color,
|
|
9
|
+
var(--color-background-information)
|
|
10
|
+
)
|
|
11
|
+
50%;
|
|
12
|
+
@_progress-stepper-upcoming-gradient: var(
|
|
13
|
+
--progress-stepper-upcoming-color,
|
|
14
|
+
var(--color-background-disabled)
|
|
15
|
+
)
|
|
16
|
+
50%;
|
|
7
17
|
|
|
8
18
|
.progress-stepper__items {
|
|
9
19
|
align-items: flex-start;
|
|
@@ -20,12 +30,13 @@
|
|
|
20
30
|
hr.progress-stepper__separator {
|
|
21
31
|
.background-color-token(progress-stepper-active-color, color-background-information);
|
|
22
32
|
border: 0 none;
|
|
33
|
+
border-radius: 2px;
|
|
23
34
|
flex: 1;
|
|
24
|
-
height:
|
|
35
|
+
height: 4px;
|
|
25
36
|
margin: 0;
|
|
26
37
|
min-width: @progress-stepper-min-width;
|
|
27
38
|
position: relative;
|
|
28
|
-
top:
|
|
39
|
+
top: 10px;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
.progress-stepper__text {
|
|
@@ -47,11 +58,11 @@ hr.progress-stepper__separator {
|
|
|
47
58
|
font-weight: normal;
|
|
48
59
|
}
|
|
49
60
|
|
|
50
|
-
.progress-
|
|
51
|
-
.progress-
|
|
52
|
-
.progress-
|
|
53
|
-
.progress-
|
|
54
|
-
.progress-
|
|
61
|
+
.progress-stepper__items--upcoming .progress-stepper__text h2,
|
|
62
|
+
.progress-stepper__items--upcoming .progress-stepper__text h3,
|
|
63
|
+
.progress-stepper__items--upcoming .progress-stepper__text h4,
|
|
64
|
+
.progress-stepper__items--upcoming .progress-stepper__text h5,
|
|
65
|
+
.progress-stepper__items--upcoming .progress-stepper__text h6 {
|
|
55
66
|
.color-token(progress-stepper-text-light-color, color-foreground-secondary);
|
|
56
67
|
}
|
|
57
68
|
|
|
@@ -63,39 +74,47 @@ hr.progress-stepper__separator {
|
|
|
63
74
|
font-weight: bold;
|
|
64
75
|
}
|
|
65
76
|
|
|
77
|
+
.progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h2,
|
|
78
|
+
.progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h3,
|
|
79
|
+
.progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h4,
|
|
80
|
+
.progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h5,
|
|
81
|
+
.progress-stepper__item[aria-current] ~ .progress-stepper__item .progress-stepper__text h6 {
|
|
82
|
+
.color-token(progress-stepper-text-light-color, color-foreground-secondary);
|
|
83
|
+
}
|
|
84
|
+
|
|
66
85
|
.progress-stepper__text p {
|
|
67
86
|
.color-token(progress-stepper-text-light-color, color-foreground-secondary);
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
.progress-stepper__icon {
|
|
71
|
-
.color-token(progress-stepper-active-color, color-background-information);
|
|
72
|
-
|
|
73
90
|
height: 24px;
|
|
74
91
|
margin: auto;
|
|
75
92
|
width: 24px;
|
|
76
93
|
}
|
|
77
94
|
|
|
78
|
-
// TODO remove next major version
|
|
79
|
-
.progress-stepper__icon > span[role="img"] {
|
|
80
|
-
align-items: center;
|
|
81
|
-
.border-color-token(progress-stepper-badge-current-border-color, color-background-information);
|
|
82
|
-
border-radius: @progress-stepper-icon-size;
|
|
83
|
-
border-style: solid;
|
|
84
|
-
border-width: 2px;
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
.color-token(progress-stepper-badge-current-color, color-foreground-primary);
|
|
87
|
-
display: inline-flex;
|
|
88
|
-
font-weight: @font-weight-bold;
|
|
89
|
-
height: @progress-stepper-icon-size;
|
|
90
|
-
justify-content: center;
|
|
91
|
-
top: 0;
|
|
92
|
-
width: @progress-stepper-icon-size;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
95
|
.progress-stepper__items--upcoming hr.progress-stepper__separator,
|
|
96
|
-
hr.progress-stepper__separator--upcoming,
|
|
97
96
|
.progress-stepper__item[aria-current] ~ hr.progress-stepper__separator {
|
|
98
97
|
.background-color-token(progress-stepper-upcoming-color, color-background-disabled);
|
|
98
|
+
|
|
99
|
+
background-image: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.progress-stepper__item[aria-current] + hr.progress-stepper__separator {
|
|
103
|
+
background-image: linear-gradient(
|
|
104
|
+
90deg,
|
|
105
|
+
@_progress-stepper-active-gradient,
|
|
106
|
+
@_progress-stepper-upcoming-gradient
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// DEPRECATED remove progress-stepper__item--current in next major version
|
|
111
|
+
.progress-stepper__item--attention[aria-current] ~ hr.progress-stepper__separator,
|
|
112
|
+
.progress-stepper__items--current
|
|
113
|
+
.progress-stepper__item[aria-current]
|
|
114
|
+
~ hr.progress-stepper__separator {
|
|
115
|
+
.background-color-token(progress-stepper-upcoming-color, color-background-disabled);
|
|
116
|
+
|
|
117
|
+
background-image: none;
|
|
99
118
|
}
|
|
100
119
|
|
|
101
120
|
.progress-stepper__text > * {
|
|
@@ -126,34 +145,25 @@ hr.progress-stepper__separator--upcoming,
|
|
|
126
145
|
width: auto;
|
|
127
146
|
}
|
|
128
147
|
|
|
129
|
-
.progress-stepper__item
|
|
130
|
-
|
|
131
|
-
|
|
148
|
+
.progress-stepper--vertical .progress-stepper__item[aria-current] + hr.progress-stepper__separator {
|
|
149
|
+
background: linear-gradient(
|
|
150
|
+
180deg,
|
|
151
|
+
@_progress-stepper-active-gradient,
|
|
152
|
+
@_progress-stepper-upcoming-gradient
|
|
153
|
+
);
|
|
132
154
|
}
|
|
133
155
|
|
|
134
|
-
|
|
135
|
-
.progress-
|
|
136
|
-
.
|
|
137
|
-
.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
.color-token(progress-stepper-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.progress-stepper__item[aria-current] {
|
|
146
|
-
~ .progress-stepper__item {
|
|
147
|
-
> [role="img"] {
|
|
148
|
-
.color-token(progress-stepper-text-light-color, color-foreground-secondary);
|
|
149
|
-
}
|
|
156
|
+
// DEPRECATED remove progress-stepper__item--current in next major version
|
|
157
|
+
.progress-stepper--vertical
|
|
158
|
+
.progress-stepper__item--attention[aria-current]
|
|
159
|
+
~ hr.progress-stepper__separator,
|
|
160
|
+
.progress-stepper--vertical
|
|
161
|
+
.progress-stepper__items--current
|
|
162
|
+
.progress-stepper__item[aria-current]
|
|
163
|
+
~ hr.progress-stepper__separator {
|
|
164
|
+
.background-color-token(progress-stepper-upcoming-color, color-background-disabled);
|
|
150
165
|
|
|
151
|
-
|
|
152
|
-
.background-color-token(progress-stepper-badge-upcoming-background-color, color-background-primary);
|
|
153
|
-
.border-color-token(progress-stepper-badge-upcoming-border-color, color-foreground-disabled);
|
|
154
|
-
.color-token(progress-stepper-badge-upcoming-color, color-foreground-secondary);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
166
|
+
background-image: none;
|
|
157
167
|
}
|
|
158
168
|
|
|
159
169
|
.progress-stepper--vertical .progress-stepper__items {
|
|
@@ -181,10 +191,10 @@ hr.progress-stepper__separator--upcoming,
|
|
|
181
191
|
flex: inherit;
|
|
182
192
|
height: 51px;
|
|
183
193
|
margin-bottom: 12px;
|
|
184
|
-
margin-left:
|
|
194
|
+
margin-left: 10px;
|
|
185
195
|
margin-top: -4px;
|
|
186
196
|
min-width: inherit;
|
|
187
|
-
width:
|
|
197
|
+
width: 4px;
|
|
188
198
|
}
|
|
189
199
|
|
|
190
200
|
[dir="rtl"] {
|
|
@@ -194,6 +204,44 @@ hr.progress-stepper__separator--upcoming,
|
|
|
194
204
|
text-align: right;
|
|
195
205
|
}
|
|
196
206
|
|
|
207
|
+
// stylelint-disable no-descending-specificity
|
|
208
|
+
.progress-stepper__item[aria-current] + hr.progress-stepper__separator {
|
|
209
|
+
background-image: linear-gradient(
|
|
210
|
+
90deg,
|
|
211
|
+
@_progress-stepper-upcoming-gradient,
|
|
212
|
+
@_progress-stepper-active-gradient
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
// stylelint-enable no-descending-specificity
|
|
216
|
+
|
|
217
|
+
// DEPRECATED remove progress-stepper__item--current in next major version
|
|
218
|
+
.progress-stepper__items--current
|
|
219
|
+
.progress-stepper__item[aria-current]
|
|
220
|
+
~ hr.progress-stepper__separator {
|
|
221
|
+
.background-color-token(progress-stepper-upcoming-color, color-background-disabled);
|
|
222
|
+
|
|
223
|
+
background-image: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.progress-stepper--vertical
|
|
227
|
+
.progress-stepper__item[aria-current]
|
|
228
|
+
+ hr.progress-stepper__separator {
|
|
229
|
+
background: linear-gradient(
|
|
230
|
+
180deg,
|
|
231
|
+
@_progress-stepper-active-gradient,
|
|
232
|
+
@_progress-stepper-upcoming-gradient
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.progress-stepper--vertical
|
|
237
|
+
.progress-stepper__items--current
|
|
238
|
+
.progress-stepper__item[aria-current]
|
|
239
|
+
~ hr.progress-stepper__separator {
|
|
240
|
+
.background-color-token(progress-stepper-upcoming-color, color-background-disabled);
|
|
241
|
+
|
|
242
|
+
background-image: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
197
245
|
.progress-stepper__item:last-child .progress-stepper__text {
|
|
198
246
|
margin-left: @spacing-50;
|
|
199
247
|
margin-right: 0;
|