@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
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
// DEPRECATED. Remove in v15
|
|
2
|
-
|
|
3
|
-
@import "../variables/variables.less";
|
|
4
|
-
@import "../mixins/private/button-mixins.less";
|
|
5
|
-
@import "../mixins/private/token-mixins.less";
|
|
6
|
-
|
|
7
|
-
button.expand-btn {
|
|
8
|
-
.btn-base();
|
|
9
|
-
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
border: 1px solid;
|
|
12
|
-
border-color: inherit;
|
|
13
|
-
.border-radius-token(expand-btn-border-radius, border-radius-50);
|
|
14
|
-
color: inherit;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
font-size: 1em;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
padding: @button-padding-vertical 16px;
|
|
19
|
-
|
|
20
|
-
&:hover,
|
|
21
|
-
&:focus {
|
|
22
|
-
background-color: var(--color-state-primary-hover);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:active {
|
|
26
|
-
background-color: var(--color-state-primary-active);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
button.expand-btn svg.icon {
|
|
31
|
-
.btn-icon-base();
|
|
32
|
-
|
|
33
|
-
flex-shrink: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// deprecated
|
|
37
|
-
button.expand-btn--wide {
|
|
38
|
-
padding-left: @button-padding-horizontal-wide;
|
|
39
|
-
padding-right: @button-padding-horizontal-wide;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
button.expand-btn--fluid {
|
|
43
|
-
width: 100%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
span.expand-btn__cell {
|
|
47
|
-
.btn-cell-base();
|
|
48
|
-
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
span.expand-btn__cell--fixed-height svg.icon {
|
|
53
|
-
align-self: center;
|
|
54
|
-
overflow: visible;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
span.expand-btn__cell--center span {
|
|
58
|
-
flex: 0 1 auto;
|
|
59
|
-
left: 50%;
|
|
60
|
-
padding: 0 20px;
|
|
61
|
-
position: relative;
|
|
62
|
-
transform: translateX(-50%);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
span.expand-btn__cell--center svg.icon:last-child {
|
|
66
|
-
flex: 0 1 auto;
|
|
67
|
-
margin-left: auto;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
button.expand-btn[disabled],
|
|
71
|
-
button.expand-btn[aria-disabled="true"] {
|
|
72
|
-
.border-color-token(expand-btn-disabled-border-color, color-stroke-disabled);
|
|
73
|
-
.color-token(expand-btn-disabled-foreground-color, color-foreground-disabled);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
button.expand-btn svg.icon:only-child {
|
|
77
|
-
display: flex;
|
|
78
|
-
margin: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
button.expand-btn[aria-expanded="true"] svg.icon--dropdown {
|
|
82
|
-
transform: rotate(180deg);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[dir="rtl"] button.expand-btn svg.icon {
|
|
86
|
-
&:first-child {
|
|
87
|
-
margin-left: 8px;
|
|
88
|
-
margin-right: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&:last-child {
|
|
92
|
-
margin-left: 0;
|
|
93
|
-
margin-right: 8px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
[dir="rtl"] button.expand-btn span.expand-btn__cell--center {
|
|
98
|
-
span {
|
|
99
|
-
left: auto;
|
|
100
|
-
right: 50%;
|
|
101
|
-
transform: translateX(50%);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
svg.icon:last-child {
|
|
105
|
-
margin-left: 0;
|
|
106
|
-
margin-right: auto;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
button.expand-btn--large {
|
|
111
|
-
min-height: @button-height-large;
|
|
112
|
-
padding-bottom: @button-padding-vertical-large;
|
|
113
|
-
padding-top: @button-padding-vertical-large;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
button.expand-btn--large-fixed-height {
|
|
117
|
-
height: @button-height-large;
|
|
118
|
-
padding-bottom: @button-padding-vertical-large;
|
|
119
|
-
padding-top: @button-padding-vertical-large;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
button.expand-btn--large-truncated {
|
|
123
|
-
.btn-truncate();
|
|
124
|
-
|
|
125
|
-
height: @button-height-large;
|
|
126
|
-
padding-bottom: @button-padding-vertical-large;
|
|
127
|
-
padding-top: @button-padding-vertical-large;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// code smell (chained modifier)
|
|
131
|
-
button.expand-btn.expand-btn--no-text,
|
|
132
|
-
button.expand-btn.expand-btn--icon-only {
|
|
133
|
-
height: @button-height-small;
|
|
134
|
-
padding-left: 8px;
|
|
135
|
-
padding-right: 8px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// code smell (chained modifier)
|
|
139
|
-
button.expand-btn--no-text.expand-btn--large,
|
|
140
|
-
button.expand-btn--icon-only.expand-btn--large {
|
|
141
|
-
height: @button-height-large;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
button.expand-btn--floating-label {
|
|
145
|
-
padding-bottom: 0;
|
|
146
|
-
padding-top: 0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
button.expand-btn--floating-label .expand-btn__text {
|
|
150
|
-
min-height: 19px;
|
|
151
|
-
padding-bottom: 2px;
|
|
152
|
-
padding-top: 17px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
button.expand-btn--floating-label .expand-btn__floating-label {
|
|
156
|
-
align-self: flex-start;
|
|
157
|
-
display: inline-block;
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
padding-bottom: 2px;
|
|
160
|
-
padding-top: 17px;
|
|
161
|
-
pointer-events: none;
|
|
162
|
-
position: absolute;
|
|
163
|
-
text-align: left;
|
|
164
|
-
text-overflow: ellipsis;
|
|
165
|
-
transform: scale(0.75, 0.75) translate(0, -18px);
|
|
166
|
-
transform-origin: left;
|
|
167
|
-
white-space: nowrap;
|
|
168
|
-
width: calc(100% - 24px);
|
|
169
|
-
z-index: 1;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
button.expand-btn--floating-label .expand-btn__floating-label--animate {
|
|
173
|
-
transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
|
|
174
|
-
bottom 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
button.expand-btn--floating-label .expand-btn__floating-label--inline {
|
|
178
|
-
font-size: 0.875rem;
|
|
179
|
-
position: unset;
|
|
180
|
-
transform: translate(0, -6px);
|
|
181
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export default { title: 'Expand Button/Base' };
|
|
2
|
-
|
|
3
|
-
export const collapsed = () => `
|
|
4
|
-
<button type="button" class="expand-btn" aria-expanded="false">
|
|
5
|
-
<span class="expand-btn__cell">
|
|
6
|
-
<span>Button</span>
|
|
7
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
8
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
9
|
-
</svg>
|
|
10
|
-
</span>
|
|
11
|
-
</button>
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const expanded = () => `
|
|
15
|
-
<button type="button" class="expand-btn" aria-expanded="true">
|
|
16
|
-
<span class="expand-btn__cell">
|
|
17
|
-
<span>Button</span>
|
|
18
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
19
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
20
|
-
</svg>
|
|
21
|
-
</span>
|
|
22
|
-
</button>
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const disabled = () => `
|
|
26
|
-
<button type="button" class="expand-btn" disabled>
|
|
27
|
-
<span class="expand-btn__cell">
|
|
28
|
-
<span>Button</span>
|
|
29
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
30
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
31
|
-
</svg>
|
|
32
|
-
</span>
|
|
33
|
-
</button>
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const large = () => `
|
|
37
|
-
<button type="button" class="expand-btn expand-btn--large" aria-expanded="true">
|
|
38
|
-
<span class="expand-btn__cell">
|
|
39
|
-
<span>Button</span>
|
|
40
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
41
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
42
|
-
</svg>
|
|
43
|
-
</span>
|
|
44
|
-
</button>
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
export const longText = () => `
|
|
48
|
-
<button type="button" class="expand-btn">
|
|
49
|
-
<span class="expand-btn__cell">
|
|
50
|
-
<span>Button with a lot of text that should just get wider and wider and wider</span>
|
|
51
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
52
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
53
|
-
</svg>
|
|
54
|
-
</span>
|
|
55
|
-
</button>
|
|
56
|
-
`;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export default { title: 'Expand Button/Cascade' };
|
|
2
|
-
|
|
3
|
-
export const color = () => `
|
|
4
|
-
<button type="button" class="expand-btn" style="color: green">
|
|
5
|
-
<span class="expand-btn__cell">
|
|
6
|
-
<span>Button</span>
|
|
7
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
8
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
9
|
-
</svg>
|
|
10
|
-
</span>
|
|
11
|
-
</button>
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const RTL = () => `
|
|
15
|
-
<div dir="rtl">
|
|
16
|
-
<button type="button" class="expand-btn">
|
|
17
|
-
<span class="expand-btn__cell">
|
|
18
|
-
<span>Button</span>
|
|
19
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
20
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
21
|
-
</svg>
|
|
22
|
-
</span>
|
|
23
|
-
</button>
|
|
24
|
-
</div>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
export const iconAndTextRTL = () => `
|
|
28
|
-
<div dir="rtl">
|
|
29
|
-
<button type="button" class="expand-btn">
|
|
30
|
-
<span class="expand-btn__cell">
|
|
31
|
-
<svg aria-hidden="true" class="icon icon--settings" focusable="false" height="16" width="16">
|
|
32
|
-
<use xlink:href="#icon-settings"></use>
|
|
33
|
-
</svg>
|
|
34
|
-
<span>Button</span>
|
|
35
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
36
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
37
|
-
</svg>
|
|
38
|
-
</span>
|
|
39
|
-
</button>
|
|
40
|
-
</div>
|
|
41
|
-
`;
|
|
42
|
-
|
|
43
|
-
export const centeredRTL = () => `
|
|
44
|
-
<div dir="rtl">
|
|
45
|
-
<button type="button" class="expand-btn" style="width: 200px;">
|
|
46
|
-
<span class="expand-btn__cell expand-btn__cell--center">
|
|
47
|
-
<span>Button</span>
|
|
48
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
49
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
50
|
-
</svg>
|
|
51
|
-
</span>
|
|
52
|
-
</button>
|
|
53
|
-
</div>
|
|
54
|
-
`;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export default { title: 'Expand Button/Dimensions' };
|
|
2
|
-
|
|
3
|
-
export const fixedWidth = () => `
|
|
4
|
-
<button style="width: 200px;" type="button" class="expand-btn">
|
|
5
|
-
<span class="expand-btn__cell">
|
|
6
|
-
<span>Button with a lot of text that should just get taller and taller and taller</span>
|
|
7
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
8
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
9
|
-
</svg>
|
|
10
|
-
</span>
|
|
11
|
-
</button>
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const fixedWidthAndHeight = () => `
|
|
15
|
-
<button style="width: 200px;" type="button" class="expand-btn expand-btn--fixed-height">
|
|
16
|
-
<span class="expand-btn__cell expand-btn__cell--fixed-height">
|
|
17
|
-
<span>Button with a lot of text that should wrap with some truncation</span>
|
|
18
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
19
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
20
|
-
</svg>
|
|
21
|
-
</span>
|
|
22
|
-
</button>
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const fixedWidthAndHeightTruncated = () => `
|
|
26
|
-
<button style="width: 200px;" type="button" class="expand-btn expand-btn--fixed-height expand-btn--truncated">
|
|
27
|
-
<span class="expand-btn__cell expand-btn__cell--fixed-height expand-btn__cell--truncated">
|
|
28
|
-
<span>Button with a lot of text that should wrap with some truncation</span>
|
|
29
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
30
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
31
|
-
</svg>
|
|
32
|
-
</span>
|
|
33
|
-
</button>
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export const wide = () => `
|
|
37
|
-
<button type="button" class="expand-btn expand-btn--wide" aria-expanded="false">
|
|
38
|
-
<span class="expand-btn__cell">
|
|
39
|
-
<span>Button</span>
|
|
40
|
-
<svg class="icon icon--dropdown" focusable="false" height="8" width="8" aria-hidden="true">
|
|
41
|
-
<use xlink:href="#icon-dropdown"></use>
|
|
42
|
-
</svg>
|
|
43
|
-
</span>
|
|
44
|
-
</button>
|
|
45
|
-
`;
|
package/src/less/icon/base.less
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@import "../variables/variables.less";
|
|
2
|
-
@import "../mixins/private/icon-mixins.less";
|
|
3
|
-
@import "../mixins/private/token-mixins.less";
|
|
4
|
-
|
|
5
|
-
svg {
|
|
6
|
-
&.icon {
|
|
7
|
-
.icon-base-mixin();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&.icon--disabled {
|
|
11
|
-
.color-token(color-foreground-disabled);
|
|
12
|
-
fill: currentColor;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* This is a generated file, DO NOT EDIT */
|
|
2
|
-
svg.icon--back {
|
|
3
|
-
height: 24px;
|
|
4
|
-
width: 24px;
|
|
5
|
-
}
|
|
6
|
-
svg.icon--carousel-next {
|
|
7
|
-
height: 24px;
|
|
8
|
-
width: 24px;
|
|
9
|
-
}
|
|
10
|
-
svg.icon--carousel-prev {
|
|
11
|
-
height: 24px;
|
|
12
|
-
width: 24px;
|
|
13
|
-
}
|
|
14
|
-
svg.icon--pagination-next {
|
|
15
|
-
height: 14px;
|
|
16
|
-
width: 14px;
|
|
17
|
-
}
|
|
18
|
-
svg.icon--pagination-prev {
|
|
19
|
-
height: 14px;
|
|
20
|
-
width: 14px;
|
|
21
|
-
}
|
|
22
|
-
svg.icon--cta {
|
|
23
|
-
height: 18px;
|
|
24
|
-
width: 20px;
|
|
25
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/* This is a generated file, DO NOT EDIT */
|
|
2
|
-
svg.icon--add {
|
|
3
|
-
height: 20px;
|
|
4
|
-
width: 20px;
|
|
5
|
-
}
|
|
6
|
-
svg.icon--clear {
|
|
7
|
-
height: 24px;
|
|
8
|
-
width: 24px;
|
|
9
|
-
}
|
|
10
|
-
svg.icon--edit {
|
|
11
|
-
height: 22px;
|
|
12
|
-
width: 22px;
|
|
13
|
-
}
|
|
14
|
-
svg.icon--remove {
|
|
15
|
-
height: 2px;
|
|
16
|
-
width: 20px;
|
|
17
|
-
}
|
|
18
|
-
svg.icon--add-small {
|
|
19
|
-
height: 14px;
|
|
20
|
-
width: 14px;
|
|
21
|
-
}
|
|
22
|
-
svg.icon--clear-small {
|
|
23
|
-
height: 16px;
|
|
24
|
-
width: 16px;
|
|
25
|
-
}
|
|
26
|
-
svg.icon--edit-small {
|
|
27
|
-
height: 16px;
|
|
28
|
-
width: 16px;
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/* This is a generated file, DO NOT EDIT */
|
|
2
|
-
svg.icon--camera {
|
|
3
|
-
height: 20px;
|
|
4
|
-
width: 24px;
|
|
5
|
-
}
|
|
6
|
-
svg.icon--mic {
|
|
7
|
-
height: 22px;
|
|
8
|
-
width: 16px;
|
|
9
|
-
}
|
|
10
|
-
svg.icon--mobile {
|
|
11
|
-
height: 22px;
|
|
12
|
-
width: 14px;
|
|
13
|
-
}
|
|
14
|
-
svg.icon--mobile-signal {
|
|
15
|
-
height: 22px;
|
|
16
|
-
width: 22px;
|
|
17
|
-
}
|
|
18
|
-
svg.icon--print {
|
|
19
|
-
height: 24px;
|
|
20
|
-
width: 24px;
|
|
21
|
-
}
|
|
22
|
-
svg.icon--security-key {
|
|
23
|
-
height: 24px;
|
|
24
|
-
width: 24px;
|
|
25
|
-
}
|
|
26
|
-
svg.icon--camera-small {
|
|
27
|
-
height: 14px;
|
|
28
|
-
width: 16px;
|
|
29
|
-
}
|
|
30
|
-
svg.icon--mic-small {
|
|
31
|
-
height: 16px;
|
|
32
|
-
width: 12px;
|
|
33
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* This is a generated file, DO NOT EDIT */
|
|
2
|
-
svg.icon--arrow-move {
|
|
3
|
-
height: 15px;
|
|
4
|
-
width: 15px;
|
|
5
|
-
}
|
|
6
|
-
svg.icon--arrow-left {
|
|
7
|
-
height: 18px;
|
|
8
|
-
width: 20px;
|
|
9
|
-
}
|
|
10
|
-
svg.icon--arrow-right {
|
|
11
|
-
height: 18px;
|
|
12
|
-
width: 20px;
|
|
13
|
-
}
|
|
14
|
-
svg.icon--arrow-right-extra-small {
|
|
15
|
-
height: 10px;
|
|
16
|
-
width: 10px;
|
|
17
|
-
}
|
|
18
|
-
svg.icon--chevron-down {
|
|
19
|
-
height: 24px;
|
|
20
|
-
width: 24px;
|
|
21
|
-
}
|
|
22
|
-
svg.icon--chevron-down-extra-small {
|
|
23
|
-
height: 16px;
|
|
24
|
-
width: 16px;
|
|
25
|
-
}
|
|
26
|
-
svg.icon--chevron-left {
|
|
27
|
-
height: 24px;
|
|
28
|
-
width: 24px;
|
|
29
|
-
}
|
|
30
|
-
svg.icon--chevron-right {
|
|
31
|
-
height: 24px;
|
|
32
|
-
width: 24px;
|
|
33
|
-
}
|
|
34
|
-
svg.icon--chevron-up {
|
|
35
|
-
height: 24px;
|
|
36
|
-
width: 24px;
|
|
37
|
-
}
|
|
38
|
-
svg.icon--chevron-up-extra-small {
|
|
39
|
-
height: 16px;
|
|
40
|
-
width: 16px;
|
|
41
|
-
}
|
|
42
|
-
svg.icon--arrow-right-bold {
|
|
43
|
-
height: 21px;
|
|
44
|
-
width: 22px;
|
|
45
|
-
}
|
|
46
|
-
svg.icon--chevron-up-bold {
|
|
47
|
-
height: 12.58px;
|
|
48
|
-
width: 21.6px;
|
|
49
|
-
}
|
|
50
|
-
svg.icon--chevron-down-bold {
|
|
51
|
-
height: 12.58px;
|
|
52
|
-
width: 21.6px;
|
|
53
|
-
}
|
|
54
|
-
svg.icon--chevron-down-small {
|
|
55
|
-
height: 16px;
|
|
56
|
-
width: 16px;
|
|
57
|
-
}
|
|
58
|
-
svg.icon--chevron-left-small {
|
|
59
|
-
height: 16px;
|
|
60
|
-
width: 16px;
|
|
61
|
-
}
|
|
62
|
-
svg.icon--chevron-right-small {
|
|
63
|
-
height: 16px;
|
|
64
|
-
width: 16px;
|
|
65
|
-
}
|
|
66
|
-
svg.icon--chevron-up-small {
|
|
67
|
-
height: 16px;
|
|
68
|
-
width: 16px;
|
|
69
|
-
}
|
|
70
|
-
svg.icon--arrow-left-small {
|
|
71
|
-
height: 14px;
|
|
72
|
-
width: 14px;
|
|
73
|
-
}
|
|
74
|
-
svg.icon--arrow-move-small {
|
|
75
|
-
height: 11px;
|
|
76
|
-
width: 11px;
|
|
77
|
-
}
|
|
78
|
-
svg.icon--arrow-right-small {
|
|
79
|
-
height: 14px;
|
|
80
|
-
width: 14px;
|
|
81
|
-
}
|
|
82
|
-
svg.icon--chevron-left-extra-small {
|
|
83
|
-
height: 16px;
|
|
84
|
-
width: 16px;
|
|
85
|
-
}
|
|
86
|
-
svg.icon--chevron-right-extra-small {
|
|
87
|
-
height: 16px;
|
|
88
|
-
width: 16px;
|
|
89
|
-
}
|
|
90
|
-
svg.icon--arrow-left-medium {
|
|
91
|
-
height: 20px;
|
|
92
|
-
width: 20px;
|
|
93
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* This is a generated file, DO NOT EDIT */
|
|
2
|
-
svg.icon--tablet-condensed-grid {
|
|
3
|
-
height: 22px;
|
|
4
|
-
width: 22px;
|
|
5
|
-
}
|
|
6
|
-
svg.icon--tablet-condensed-grid-filled {
|
|
7
|
-
height: 22px;
|
|
8
|
-
width: 22px;
|
|
9
|
-
}
|
|
10
|
-
svg.icon--tablet-relaxed-grid {
|
|
11
|
-
height: 22px;
|
|
12
|
-
width: 22px;
|
|
13
|
-
}
|
|
14
|
-
svg.icon--tablet-relaxed-grid-filled {
|
|
15
|
-
height: 22px;
|
|
16
|
-
width: 22px;
|
|
17
|
-
}
|
|
18
|
-
svg.icon--tablet-vertical-split {
|
|
19
|
-
height: 22px;
|
|
20
|
-
width: 22px;
|
|
21
|
-
}
|
|
22
|
-
svg.icon--tablet-vertical-split-filled {
|
|
23
|
-
height: 22px;
|
|
24
|
-
width: 22px;
|
|
25
|
-
}
|
|
26
|
-
svg.icon--filter-gallery-small {
|
|
27
|
-
height: 14px;
|
|
28
|
-
width: 15.75px;
|
|
29
|
-
}
|
|
30
|
-
svg.icon--filter-list-small {
|
|
31
|
-
height: 14px;
|
|
32
|
-
width: 15.75px;
|
|
33
|
-
}
|
|
34
|
-
svg.icon--filter-single-small {
|
|
35
|
-
height: 14px;
|
|
36
|
-
width: 16px;
|
|
37
|
-
}
|
|
38
|
-
svg.icon--filter-gallery {
|
|
39
|
-
height: 18px;
|
|
40
|
-
width: 22px;
|
|
41
|
-
}
|
|
42
|
-
svg.icon--filter-list {
|
|
43
|
-
height: 18px;
|
|
44
|
-
width: 22px;
|
|
45
|
-
}
|
|
46
|
-
svg.icon--filter-single {
|
|
47
|
-
height: 18px;
|
|
48
|
-
width: 22px;
|
|
49
|
-
}
|
|
50
|
-
svg.icon--filter-single-selected {
|
|
51
|
-
height: 18px;
|
|
52
|
-
width: 22px;
|
|
53
|
-
}
|