@ebay/skin 16.3.0 → 16.4.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/.github/workflows/pages-html-proofer.yml +1 -1
- package/.storybook/preview-head.html +649 -18
- package/_cdn/skin/v16.4.0-0/skin-default.min.css +6 -0
- package/_cdn/skin/v16.4.0-0/skin-full.min.css +6 -0
- package/_cdn/skin/v16.4.0-0/skin-headless.min.css +6 -0
- package/_cdn/skin/v16.4.0-0/skin-legacy.min.css +6 -0
- package/dist/button/button.css +14 -0
- package/dist/icon/icon.css +359 -15
- package/dist/infotip/infotip.css +1 -0
- package/dist/segmented-buttons/segmented-buttons.css +5 -2
- package/dist/svg/icon/icon-arrow-left-12.svg +2 -2
- package/dist/svg/icon/icon-arrow-right-12.svg +2 -2
- package/dist/svg/icon/icon-arrow-right-20.svg +5 -0
- package/dist/svg/icon/icon-authenticity-guarantee-16.svg +10 -0
- package/dist/svg/icon/icon-authenticity-guarantee-24.svg +10 -0
- package/dist/svg/icon/icon-brand-authorized-seller-16.svg +10 -0
- package/dist/svg/icon/icon-brand-authorized-seller-24.svg +10 -0
- package/dist/svg/icon/icon-certified-recycled-16.svg +5 -0
- package/dist/svg/icon/icon-certified-recycled-24.svg +5 -0
- package/dist/svg/icon/icon-chevron-down-12.svg +4 -2
- package/dist/svg/icon/icon-chevron-left-12.svg +4 -2
- package/dist/svg/icon/icon-chevron-right-12.svg +4 -2
- package/dist/svg/icon/icon-chevron-up-12.svg +4 -2
- package/dist/svg/icon/icon-click-to-call-16.svg +5 -0
- package/dist/svg/icon/icon-confirmation-64.svg +10 -0
- package/dist/svg/icon/icon-direct-from-brand-16.svg +10 -0
- package/dist/svg/icon/icon-direct-from-brand-24.svg +10 -0
- package/dist/svg/icon/icon-discord-24.svg +5 -0
- package/dist/svg/icon/icon-dollar-16.svg +5 -0
- package/dist/svg/icon/icon-dollar-24.svg +5 -0
- package/dist/svg/icon/icon-ebay-bucks-logo-16-colored.svg +10 -0
- package/dist/svg/icon/icon-ebay-for-charity-16-fit.svg +7 -0
- package/dist/svg/icon/icon-ebay-for-charity-24-fit.svg +7 -0
- package/dist/svg/icon/icon-ebay-international-shipping-16.svg +7 -0
- package/dist/svg/icon/icon-ebay-international-shipping-24.svg +7 -0
- package/dist/svg/icon/icon-ebay-preloved-16.svg +5 -0
- package/dist/svg/icon/icon-ebay-preloved-24.svg +5 -0
- package/dist/svg/icon/icon-ebay-refurbished-16.svg +10 -0
- package/dist/svg/icon/icon-ebay-refurbished-24.svg +10 -0
- package/dist/svg/icon/icon-euro-16.svg +5 -0
- package/dist/svg/icon/icon-euro-24.svg +5 -0
- package/dist/svg/icon/icon-facebook-24.svg +5 -0
- package/dist/svg/icon/icon-facebook-messenger-24.svg +5 -0
- package/dist/svg/icon/icon-franc-16.svg +5 -0
- package/dist/svg/icon/icon-franc-24.svg +5 -0
- package/dist/svg/icon/icon-free-warranty-16.svg +12 -0
- package/dist/svg/icon/icon-instagram-24.svg +5 -0
- package/dist/svg/icon/icon-jet-ski-16.svg +8 -0
- package/dist/svg/icon/icon-jet-ski-24.svg +8 -0
- package/dist/svg/icon/icon-key-16.svg +8 -0
- package/dist/svg/icon/icon-key-24.svg +12 -0
- package/dist/svg/icon/icon-krona-16.svg +5 -0
- package/dist/svg/icon/icon-krona-24.svg +5 -0
- package/dist/svg/icon/icon-link-24.svg +11 -0
- package/dist/svg/icon/icon-linkedin-24.svg +5 -0
- package/dist/svg/icon/icon-location-16.svg +8 -0
- package/dist/svg/icon/icon-money-back-guarantee-16-fit.svg +7 -0
- package/dist/svg/icon/icon-money-back-guarantee-24-fit.svg +7 -0
- package/dist/svg/icon/icon-nectar-logo-24-colored.svg +24 -0
- package/dist/svg/icon/icon-notification-64.svg +7 -0
- package/dist/svg/icon/icon-package-64.svg +7 -0
- package/dist/svg/icon/icon-pause-filled-64-colored.svg +7 -0
- package/dist/svg/icon/icon-pencil-20.svg +7 -0
- package/dist/svg/icon/icon-peso-16.svg +7 -0
- package/dist/svg/icon/icon-peso-24.svg +7 -0
- package/dist/svg/icon/icon-pinterest-24.svg +5 -0
- package/dist/svg/icon/icon-play-filled-64-colored.svg +7 -0
- package/dist/svg/icon/icon-pound-16.svg +5 -0
- package/dist/svg/icon/icon-pound-24.svg +5 -0
- package/dist/svg/icon/icon-reddit-24.svg +9 -0
- package/dist/svg/icon/icon-ringgit-16.svg +10 -0
- package/dist/svg/icon/icon-ringgit-24.svg +10 -0
- package/dist/svg/icon/icon-rotate-landscape-left-24.svg +10 -0
- package/dist/svg/icon/icon-rotate-landscape-right-24.svg +10 -0
- package/dist/svg/icon/icon-rotate-portrait-left-24.svg +10 -0
- package/dist/svg/icon/icon-rotate-portrait-right-24.svg +10 -0
- package/dist/svg/icon/icon-rupee-16.svg +5 -0
- package/dist/svg/icon/icon-rupee-24.svg +5 -0
- package/dist/svg/icon/icon-search-similar-16.svg +10 -0
- package/dist/svg/icon/icon-selling-16.svg +8 -0
- package/dist/svg/icon/icon-snowmobile-16.svg +8 -0
- package/dist/svg/icon/icon-snowmobile-24.svg +8 -0
- package/dist/svg/icon/icon-sort-12.svg +2 -2
- package/dist/svg/icon/icon-sort-down-12.svg +2 -2
- package/dist/svg/icon/icon-sort-up-12.svg +2 -2
- package/dist/svg/icon/icon-sparkline-down-16.svg +5 -0
- package/dist/svg/icon/icon-sparkline-down-20.svg +5 -0
- package/dist/svg/icon/icon-sparkline-down-24.svg +5 -0
- package/dist/svg/icon/icon-sparkline-up-16.svg +5 -0
- package/dist/svg/icon/icon-sparkline-up-20.svg +5 -0
- package/dist/svg/icon/icon-sparkline-up-24.svg +5 -0
- package/dist/svg/icon/icon-thumb-up-64.svg +7 -0
- package/dist/svg/icon/icon-top-rated-seller-16.svg +7 -0
- package/dist/svg/icon/icon-transaction-24.svg +5 -0
- package/dist/svg/icon/icon-trend-down-16-fit.svg +5 -0
- package/dist/svg/icon/icon-trend-up-16-fit.svg +5 -0
- package/dist/svg/icon/icon-twitter-24.svg +5 -0
- package/dist/svg/icon/icon-undo-16.svg +5 -0
- package/dist/svg/icon/icon-whatsapp-24.svg +7 -0
- package/dist/svg/icon/icon-won-16.svg +7 -0
- package/dist/svg/icon/icon-won-24.svg +7 -0
- package/dist/svg/icon/icon-yuan-16.svg +5 -0
- package/dist/svg/icon/icon-yuan-24.svg +5 -0
- package/dist/svg/icon/icon-zloty-16.svg +8 -0
- package/dist/svg/icon/icon-zloty-24.svg +10 -0
- package/dist/svg/icons.svg +649 -18
- package/dist/textbox/textbox.css +1 -1
- package/dist/toggle-button/toggle-button.css +140 -0
- package/index.browser.json +1 -0
- package/index.css +1 -0
- package/index.js +1 -0
- package/index.mjs +1 -0
- package/package.json +1 -1
- package/scripts/README.md +1 -1
- package/scripts/generate-images.js +4 -1
- package/src/less/bundles/skin-headless.less +1 -0
- package/src/less/button/button.less +21 -7
- package/src/less/button/stories/button/dimensions.stories.js +15 -0
- package/src/less/cta-button/cta-button.less +4 -1
- package/src/less/icon/generated/icon.less +359 -15
- package/src/less/infotip/infotip.less +1 -0
- package/src/less/mixins/private/button-mixins.less +12 -1
- package/src/less/segmented-buttons/segmented-buttons.less +16 -7
- package/src/less/segmented-buttons/stories/segmented-buttons.stories.js +10 -0
- package/src/less/textbox/textbox.less +1 -1
- package/src/less/toggle-button/stories/gallery-layout-responsive.stories.js +121 -0
- package/src/less/toggle-button/stories/gallery-layout.stories.js +97 -0
- package/src/less/toggle-button/stories/list-layout.stories.js +100 -0
- package/src/less/toggle-button/stories/minimal-layout.stories.js +17 -0
- package/src/less/toggle-button/toggle-button.less +165 -0
- package/src/svg/icon/icon-arrow-left-12.svg +2 -2
- package/src/svg/icon/icon-arrow-right-12.svg +2 -2
- package/src/svg/icon/icon-arrow-right-20.svg +5 -0
- package/src/svg/icon/icon-authenticity-guarantee-16.svg +10 -0
- package/src/svg/icon/icon-authenticity-guarantee-24.svg +10 -0
- package/src/svg/icon/icon-brand-authorized-seller-16.svg +10 -0
- package/src/svg/icon/icon-brand-authorized-seller-24.svg +10 -0
- package/src/svg/icon/icon-certified-recycled-16.svg +5 -0
- package/src/svg/icon/icon-certified-recycled-24.svg +5 -0
- package/src/svg/icon/icon-chevron-down-12.svg +4 -2
- package/src/svg/icon/icon-chevron-left-12.svg +4 -2
- package/src/svg/icon/icon-chevron-right-12.svg +4 -2
- package/src/svg/icon/icon-chevron-up-12.svg +4 -2
- package/src/svg/icon/icon-click-to-call-16.svg +5 -0
- package/src/svg/icon/icon-confirmation-64.svg +10 -0
- package/src/svg/icon/icon-direct-from-brand-16.svg +10 -0
- package/src/svg/icon/icon-direct-from-brand-24.svg +10 -0
- package/src/svg/icon/icon-discord-24.svg +5 -0
- package/src/svg/icon/icon-dollar-16.svg +5 -0
- package/src/svg/icon/icon-dollar-24.svg +5 -0
- package/src/svg/icon/icon-ebay-bucks-logo-16-colored.svg +10 -0
- package/src/svg/icon/icon-ebay-for-charity-16-fit.svg +7 -0
- package/src/svg/icon/icon-ebay-for-charity-24-fit.svg +7 -0
- package/src/svg/icon/icon-ebay-international-shipping-16.svg +7 -0
- package/src/svg/icon/icon-ebay-international-shipping-24.svg +7 -0
- package/src/svg/icon/icon-ebay-preloved-16.svg +5 -0
- package/src/svg/icon/icon-ebay-preloved-24.svg +5 -0
- package/src/svg/icon/icon-ebay-refurbished-16.svg +10 -0
- package/src/svg/icon/icon-ebay-refurbished-24.svg +10 -0
- package/src/svg/icon/icon-euro-16.svg +5 -0
- package/src/svg/icon/icon-euro-24.svg +5 -0
- package/src/svg/icon/icon-facebook-24.svg +5 -0
- package/src/svg/icon/icon-facebook-messenger-24.svg +5 -0
- package/src/svg/icon/icon-franc-16.svg +5 -0
- package/src/svg/icon/icon-franc-24.svg +5 -0
- package/src/svg/icon/icon-free-warranty-16.svg +12 -0
- package/src/svg/icon/icon-instagram-24.svg +5 -0
- package/src/svg/icon/icon-jet-ski-16.svg +8 -0
- package/src/svg/icon/icon-jet-ski-24.svg +8 -0
- package/src/svg/icon/icon-key-16.svg +8 -0
- package/src/svg/icon/icon-key-24.svg +12 -0
- package/src/svg/icon/icon-krona-16.svg +5 -0
- package/src/svg/icon/icon-krona-24.svg +5 -0
- package/src/svg/icon/icon-link-24.svg +11 -0
- package/src/svg/icon/icon-linkedin-24.svg +5 -0
- package/src/svg/icon/icon-location-16.svg +8 -0
- package/src/svg/icon/icon-money-back-guarantee-16-fit.svg +7 -0
- package/src/svg/icon/icon-money-back-guarantee-24-fit.svg +7 -0
- package/src/svg/icon/icon-nectar-logo-24-colored.svg +24 -0
- package/src/svg/icon/icon-notification-64.svg +7 -0
- package/src/svg/icon/icon-package-64.svg +7 -0
- package/src/svg/icon/icon-pause-filled-64-colored.svg +7 -0
- package/src/svg/icon/icon-pencil-20.svg +7 -0
- package/src/svg/icon/icon-peso-16.svg +7 -0
- package/src/svg/icon/icon-peso-24.svg +7 -0
- package/src/svg/icon/icon-pinterest-24.svg +5 -0
- package/src/svg/icon/icon-play-filled-64-colored.svg +7 -0
- package/src/svg/icon/icon-pound-16.svg +5 -0
- package/src/svg/icon/icon-pound-24.svg +5 -0
- package/src/svg/icon/icon-reddit-24.svg +9 -0
- package/src/svg/icon/icon-ringgit-16.svg +10 -0
- package/src/svg/icon/icon-ringgit-24.svg +10 -0
- package/src/svg/icon/icon-rotate-landscape-left-24.svg +10 -0
- package/src/svg/icon/icon-rotate-landscape-right-24.svg +10 -0
- package/src/svg/icon/icon-rotate-portrait-left-24.svg +10 -0
- package/src/svg/icon/icon-rotate-portrait-right-24.svg +10 -0
- package/src/svg/icon/icon-rupee-16.svg +5 -0
- package/src/svg/icon/icon-rupee-24.svg +5 -0
- package/src/svg/icon/icon-search-similar-16.svg +10 -0
- package/src/svg/icon/icon-selling-16.svg +8 -0
- package/src/svg/icon/icon-snowmobile-16.svg +8 -0
- package/src/svg/icon/icon-snowmobile-24.svg +8 -0
- package/src/svg/icon/icon-sort-12.svg +2 -2
- package/src/svg/icon/icon-sort-down-12.svg +2 -2
- package/src/svg/icon/icon-sort-up-12.svg +2 -2
- package/src/svg/icon/icon-sparkline-down-16.svg +5 -0
- package/src/svg/icon/icon-sparkline-down-20.svg +5 -0
- package/src/svg/icon/icon-sparkline-down-24.svg +5 -0
- package/src/svg/icon/icon-sparkline-up-16.svg +5 -0
- package/src/svg/icon/icon-sparkline-up-20.svg +5 -0
- package/src/svg/icon/icon-sparkline-up-24.svg +5 -0
- package/src/svg/icon/icon-thumb-up-64.svg +7 -0
- package/src/svg/icon/icon-top-rated-seller-16.svg +7 -0
- package/src/svg/icon/icon-transaction-24.svg +5 -0
- package/src/svg/icon/icon-trend-down-16-fit.svg +5 -0
- package/src/svg/icon/icon-trend-up-16-fit.svg +5 -0
- package/src/svg/icon/icon-twitter-24.svg +5 -0
- package/src/svg/icon/icon-undo-16.svg +5 -0
- package/src/svg/icon/icon-whatsapp-24.svg +7 -0
- package/src/svg/icon/icon-won-16.svg +7 -0
- package/src/svg/icon/icon-won-24.svg +7 -0
- package/src/svg/icon/icon-yuan-16.svg +5 -0
- package/src/svg/icon/icon-yuan-24.svg +5 -0
- package/src/svg/icon/icon-zloty-16.svg +8 -0
- package/src/svg/icon/icon-zloty-24.svg +10 -0
- package/src/svg/icons.svg +649 -18
- package/svg.svg +649 -18
- package/toggle-button.browser.json +1 -0
- package/toggle-button.css +1 -0
- package/toggle-button.js +1 -0
- package/toggle-button.mjs +1 -0
- package/_cdn/skin/v16.3.0/skin-default.min.css +0 -6
- package/_cdn/skin/v16.3.0/skin-full.min.css +0 -6
- package/_cdn/skin/v16.3.0/skin-headless.min.css +0 -6
- package/_cdn/skin/v16.3.0/skin-legacy.min.css +0 -6
package/dist/textbox/textbox.css
CHANGED
|
@@ -107,7 +107,7 @@ input.textbox__control--large {
|
|
|
107
107
|
}
|
|
108
108
|
input.textbox__control:not(:read-only):focus,
|
|
109
109
|
textarea.textbox__control:not(:read-only):focus {
|
|
110
|
-
border-color: var(--textbox-focus-border-color, var(--color-stroke-
|
|
110
|
+
border-color: var(--textbox-focus-border-color, var(--color-stroke-strong));
|
|
111
111
|
background-color: var(--textbox-focus-background-color, var(--color-background-primary));
|
|
112
112
|
outline: 0;
|
|
113
113
|
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--toggle-button-height-min: 72px;
|
|
3
|
+
--toggle-button-width-min: 72px;
|
|
4
|
+
--toggle-button-width-max: 342px;
|
|
5
|
+
--toggle-button-list-width-min: 224px;
|
|
6
|
+
--toggle-button-list-width-max: 342px;
|
|
7
|
+
--toggle-button-gallery-width-min: 168px;
|
|
8
|
+
--toggle-button-gallery-width-max: 342px;
|
|
9
|
+
}
|
|
10
|
+
.toggle-button {
|
|
11
|
+
background-color: var(--color-background-primary);
|
|
12
|
+
border: 1px solid var(--color-stroke-default);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
box-shadow: 0 0 0 1px transparent;
|
|
15
|
+
color: var(--color-foreground-primary);
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
font-size: 0.875rem;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
margin-top: auto;
|
|
21
|
+
max-width: var(--toggle-button-width-max);
|
|
22
|
+
min-height: var(--toggle-button-height-min);
|
|
23
|
+
min-width: var(--toggle-button-width-min);
|
|
24
|
+
padding: 0 16px;
|
|
25
|
+
vertical-align: top;
|
|
26
|
+
}
|
|
27
|
+
.toggle-button:focus-visible {
|
|
28
|
+
outline-offset: 1px;
|
|
29
|
+
outline-style: outset;
|
|
30
|
+
outline-width: 2px;
|
|
31
|
+
}
|
|
32
|
+
.toggle-button[aria-pressed="true"] {
|
|
33
|
+
background-color: var(--color-background-secondary);
|
|
34
|
+
border: 1px solid var(--color-stroke-strong);
|
|
35
|
+
box-shadow: 0 0 0 1px var(--color-stroke-strong);
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
}
|
|
38
|
+
.toggle-button__content {
|
|
39
|
+
align-self: center;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
text-align: left;
|
|
43
|
+
}
|
|
44
|
+
.toggle-button__icon {
|
|
45
|
+
margin-bottom: 16px;
|
|
46
|
+
margin-right: 16px;
|
|
47
|
+
margin-top: 16px;
|
|
48
|
+
}
|
|
49
|
+
.toggle-button__image-container {
|
|
50
|
+
align-self: center;
|
|
51
|
+
margin-bottom: 16px;
|
|
52
|
+
margin-right: 16px;
|
|
53
|
+
margin-top: 16px;
|
|
54
|
+
}
|
|
55
|
+
.toggle-button__image-container svg.icon {
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
.toggle-button__image-container img {
|
|
59
|
+
height: 100%;
|
|
60
|
+
max-height: 56px;
|
|
61
|
+
max-width: 56px;
|
|
62
|
+
}
|
|
63
|
+
.toggle-button__image {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
height: 56px;
|
|
66
|
+
width: 56px;
|
|
67
|
+
}
|
|
68
|
+
.toggle-button__title {
|
|
69
|
+
font-size: 1rem;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
line-height: 1.5rem;
|
|
72
|
+
margin-bottom: 4px;
|
|
73
|
+
margin-top: 16px;
|
|
74
|
+
}
|
|
75
|
+
.toggle-button .toggle-button__content .toggle-button__title:only-child {
|
|
76
|
+
font-weight: bold;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
margin-top: auto;
|
|
79
|
+
text-align: center;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.toggle-button:not([aria-pressed="true"]) .toggle-button__title:only-child {
|
|
83
|
+
font-weight: normal;
|
|
84
|
+
}
|
|
85
|
+
.toggle-button__subtitle {
|
|
86
|
+
color: var(--color-foreground-secondary);
|
|
87
|
+
line-height: 1.25rem;
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
}
|
|
90
|
+
.toggle-button__subtitle p {
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
.toggle-button[aria-pressed="true"] .toggle-button__subtitle {
|
|
94
|
+
color: var(--color-foreground-primary);
|
|
95
|
+
font-weight: normal;
|
|
96
|
+
}
|
|
97
|
+
/* Layout Themes */
|
|
98
|
+
.toggle-button--list-layout {
|
|
99
|
+
justify-content: left;
|
|
100
|
+
max-width: var(--toggle-button-list-width-max);
|
|
101
|
+
min-width: var(--toggle-button-list-width-min);
|
|
102
|
+
}
|
|
103
|
+
.toggle-button--gallery-layout {
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
justify-content: left;
|
|
106
|
+
max-width: var(--toggle-button-gallery-width-max);
|
|
107
|
+
min-width: var(--toggle-button-gallery-width-min);
|
|
108
|
+
}
|
|
109
|
+
.toggle-button--gallery-layout .toggle-button__content {
|
|
110
|
+
align-self: self-start;
|
|
111
|
+
}
|
|
112
|
+
.toggle-button--gallery-layout .toggle-button__image-container,
|
|
113
|
+
.toggle-button--gallery-layout .toggle-button__icon {
|
|
114
|
+
margin-bottom: 0;
|
|
115
|
+
margin-right: 0;
|
|
116
|
+
text-align: left;
|
|
117
|
+
}
|
|
118
|
+
.toggle-button--gallery-layout .toggle-button__image-container {
|
|
119
|
+
padding-bottom: 60%;
|
|
120
|
+
position: relative;
|
|
121
|
+
text-align: center;
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
.toggle-button--gallery-layout .toggle-button__image {
|
|
125
|
+
bottom: 0;
|
|
126
|
+
height: 100%;
|
|
127
|
+
left: 0;
|
|
128
|
+
position: absolute;
|
|
129
|
+
right: 0;
|
|
130
|
+
top: 0;
|
|
131
|
+
width: 100%;
|
|
132
|
+
}
|
|
133
|
+
.toggle-button--gallery-layout .toggle-button__image-container img {
|
|
134
|
+
height: 100%;
|
|
135
|
+
max-height: 200px;
|
|
136
|
+
max-width: initial;
|
|
137
|
+
}
|
|
138
|
+
.toggle-button--gallery-layout .toggle-button__icon ~ .toggle-button__content {
|
|
139
|
+
align-self: flex-start;
|
|
140
|
+
}
|
package/index.browser.json
CHANGED
package/index.css
CHANGED
package/index.js
CHANGED
package/index.mjs
CHANGED
package/package.json
CHANGED
package/scripts/README.md
CHANGED
|
@@ -35,7 +35,7 @@ In order to view all the avaialbe options and subcommands you can run `scripts b
|
|
|
35
35
|
|
|
36
36
|
## gen
|
|
37
37
|
|
|
38
|
-
Generates top level
|
|
38
|
+
Generates top level imports. See `generate-imports/README.md`
|
|
39
39
|
This creates multiple files. We create a `{module}.browser.json` a `{module}.js` a `{module}.css` and a `{module}.mjs` file, where the module is each skin module.
|
|
40
40
|
These are easy improts to all dist files, which include all of each of the modules dependencies.
|
|
41
41
|
A js file is included as a way to import in any bundler (`lasso`, `wepack`, or `vite`). This allows a common way for bundlers to import the modules and not duplicate any imports. However, CSS and MJS files are also available if needed for different bundlers or imports directly form less files or module imports.
|
|
@@ -132,7 +132,10 @@ class GenerateImages {
|
|
|
132
132
|
const symbol = symbols.querySelector("svg");
|
|
133
133
|
|
|
134
134
|
const nameObj = stripName(filename);
|
|
135
|
-
if (
|
|
135
|
+
if (
|
|
136
|
+
config.skipDocs.indexOf(nameObj.simpleName) === -1 &&
|
|
137
|
+
config.deprecated.indexOf(nameObj.simpleName) === -1
|
|
138
|
+
) {
|
|
136
139
|
this.imageList.push(nameObj.fullName);
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
@import "../tabs/tabs.less";
|
|
56
56
|
@import "../textbox/textbox.less";
|
|
57
57
|
@import "../toast-dialog/toast-dialog.less";
|
|
58
|
+
@import "../toggle-button/toggle-button.less";
|
|
58
59
|
@import "../tooltip/tooltip.less";
|
|
59
60
|
@import "../tourtip/tourtip.less";
|
|
60
61
|
@import "../typography/typography.less";
|
|
@@ -7,11 +7,11 @@ a.fake-btn {
|
|
|
7
7
|
.btn-base();
|
|
8
8
|
|
|
9
9
|
background-color: transparent;
|
|
10
|
-
border-radius: var(--btn-border-radius, calc(@button-height-
|
|
10
|
+
border-radius: var(--btn-border-radius, calc(@button-height-regular / 2));
|
|
11
11
|
color: inherit;
|
|
12
12
|
display: inline-block;
|
|
13
13
|
font-size: @font-size-regular;
|
|
14
|
-
min-height: @button-height-
|
|
14
|
+
min-height: @button-height-regular;
|
|
15
15
|
min-width: 88px;
|
|
16
16
|
padding: @button-padding-vertical @button-padding-horizontal;
|
|
17
17
|
}
|
|
@@ -46,7 +46,7 @@ a.fake-btn--borderless[aria-disabled="true"] {
|
|
|
46
46
|
|
|
47
47
|
button.btn--slim,
|
|
48
48
|
a.fake-btn--slim {
|
|
49
|
-
height: @button-height-
|
|
49
|
+
height: @button-height-regular;
|
|
50
50
|
min-width: auto;
|
|
51
51
|
padding-left: @spacing-100;
|
|
52
52
|
padding-right: @spacing-100;
|
|
@@ -178,6 +178,11 @@ a.fake-btn--large svg.icon {
|
|
|
178
178
|
max-height: @button-height-large - (@button-padding-vertical-large * 2);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
button.btn--small svg.icon,
|
|
182
|
+
a.fake-btn--small svg.icon {
|
|
183
|
+
max-height: @button-height-xsmall - (@button-padding-vertical-small * 2);
|
|
184
|
+
}
|
|
185
|
+
|
|
181
186
|
button.btn--primary[disabled],
|
|
182
187
|
button.btn--primary[aria-disabled="true"] {
|
|
183
188
|
.background-color-token(btn-primary-disabled-background-color, color-foreground-disabled);
|
|
@@ -329,10 +334,15 @@ button.btn--tertiary.btn--destructive .progress-spinner {
|
|
|
329
334
|
|
|
330
335
|
button.btn--large,
|
|
331
336
|
a.fake-btn--large {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
337
|
+
.btn-large();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
button.btn--small,
|
|
341
|
+
a.fake-btn--small {
|
|
342
|
+
border-radius: var(--btn-border-radius, calc(@button-height-xsmall / 2));
|
|
343
|
+
font-size: @font-size-regular;
|
|
344
|
+
min-height: @button-height-xsmall;
|
|
345
|
+
padding: @button-padding-vertical-small @button-padding-horizontal-small;
|
|
336
346
|
}
|
|
337
347
|
|
|
338
348
|
button.btn--form,
|
|
@@ -355,6 +365,10 @@ button.btn--form.btn--large {
|
|
|
355
365
|
padding: @button-padding-vertical-large @button-padding-horizontal-large;
|
|
356
366
|
}
|
|
357
367
|
|
|
368
|
+
button.btn--form.btn--small {
|
|
369
|
+
padding: @button-padding-vertical-small @button-padding-horizontal-small;
|
|
370
|
+
}
|
|
371
|
+
|
|
358
372
|
button.btn--transparent,
|
|
359
373
|
a.fake-btn--transparent {
|
|
360
374
|
background-color: transparent;
|
|
@@ -9,6 +9,21 @@ export const large = () => `
|
|
|
9
9
|
</button>
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
|
+
export const small = () => `
|
|
13
|
+
<button type="button" class="btn btn--small">
|
|
14
|
+
<span class="btn__cell">
|
|
15
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
16
|
+
<span>Button</span>
|
|
17
|
+
</span>
|
|
18
|
+
</button>
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
export const formLarge = () =>
|
|
22
|
+
'<button class="btn btn--form btn--large">Button</button>';
|
|
23
|
+
|
|
24
|
+
export const formSmall = () =>
|
|
25
|
+
'<button class="btn btn--form btn--small">Button</button>';
|
|
26
|
+
|
|
12
27
|
export const fluid = () => '<button class="btn btn--fluid">Button</button>';
|
|
13
28
|
|
|
14
29
|
export const fixedWidth = () => `
|
|
@@ -7,7 +7,10 @@ a.cta-btn {
|
|
|
7
7
|
|
|
8
8
|
.background-color-token(cta-btn-background-color, color-background-primary);
|
|
9
9
|
border-color: currentColor;
|
|
10
|
-
border-radius: var(
|
|
10
|
+
border-radius: var(
|
|
11
|
+
--cta-btn-border-radius,
|
|
12
|
+
calc(@button-height-regular / 2)
|
|
13
|
+
);
|
|
11
14
|
.color-token(cta-btn-foreground-color, color-foreground-primary);
|
|
12
15
|
display: inline-block;
|
|
13
16
|
font-size: @font-size-regular;
|