@ebay/skin 18.0.8 → 18.1.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/CHANGELOG.md +24 -0
- package/CONTRIBUTING.md +0 -1
- package/README.md +3 -3
- package/dist/bundles/skin-default.css +56 -12
- package/dist/bundles/skin-full.css +56 -12
- package/dist/bundles/skin-headless.css +55 -11
- package/dist/carousel/carousel.css +11 -7
- package/dist/details/details.css +14 -6
- package/dist/icon/icon.css +1 -1
- package/dist/phone-input/phone-input.css +1 -1
- package/dist/progress-spinner/progress-spinner.css +3 -3
- package/dist/svg/icon/icon-alipay-cn-12-colored.svg +44 -0
- package/dist/svg/icon/icon-alipay-cn-18-colored.svg +44 -0
- package/dist/svg/icon/icon-alipay-cn-24-colored.svg +44 -0
- package/dist/svg/icon/icon-alipay-cn-32-colored.svg +44 -0
- package/dist/svg/icon/icon-authenticity-guarantee-24.svg +2 -5
- package/dist/svg/icon/icon-authenticity-guarantee-filled-16-colored.svg +12 -0
- package/dist/svg/icon/icon-authenticity-guarantee-filled-24-colored.svg +12 -0
- package/dist/svg/icon/icon-brand-authorized-seller-24.svg +2 -5
- package/dist/svg/icon/icon-cb-12-colored.svg +22 -14
- package/dist/svg/icon/icon-cb-18-colored.svg +22 -14
- package/dist/svg/icon/icon-cb-24-colored.svg +22 -14
- package/dist/svg/icon/icon-cb-32-colored.svg +22 -14
- package/dist/svg/icon/icon-chevron-down-20.svg +5 -0
- package/dist/svg/icon/icon-chevron-right-20.svg +5 -0
- package/dist/svg/icon/icon-clock-64.svg +7 -0
- package/dist/svg/icon/icon-confirmation-16.svg +4 -5
- package/dist/svg/icon/icon-confirmation-24.svg +4 -2
- package/dist/svg/icon/icon-confirmation-64.svg +1 -4
- package/dist/svg/icon/icon-confirmation-filled-16.svg +4 -2
- package/dist/svg/icon/icon-confirmation-filled-24.svg +4 -2
- package/dist/svg/icon/icon-density-compact-16.svg +7 -0
- package/dist/svg/icon/icon-density-compact-24.svg +7 -0
- package/dist/svg/icon/icon-density-default-16.svg +7 -0
- package/dist/svg/icon/icon-density-default-24.svg +7 -0
- package/dist/svg/icon/icon-density-relaxed-16.svg +7 -0
- package/dist/svg/icon/icon-density-relaxed-24.svg +7 -0
- package/dist/svg/icon/icon-direct-from-brand-24.svg +2 -5
- package/dist/svg/icon/icon-download-20.svg +7 -0
- package/dist/svg/icon/icon-ebay-refurbished-24.svg +1 -4
- package/dist/svg/icon/icon-feedback-received-16.svg +7 -0
- package/dist/svg/icon/icon-feedback-received-24.svg +7 -0
- package/dist/svg/icon/icon-girocard-12-colored.svg +24 -0
- package/dist/svg/icon/icon-girocard-18-colored.svg +24 -0
- package/dist/svg/icon/icon-girocard-24-colored.svg +24 -0
- package/dist/svg/icon/icon-girocard-32-colored.svg +24 -0
- package/dist/svg/icon/icon-hide-16.svg +2 -6
- package/dist/svg/icon/icon-hide-24.svg +2 -6
- package/dist/svg/icon/icon-live-eye-16.svg +4 -3
- package/dist/svg/icon/icon-live-eye-24.svg +2 -5
- package/dist/svg/icon/icon-masonry-view-16.svg +7 -0
- package/dist/svg/icon/icon-masonry-view-filled-16.svg +7 -0
- package/dist/svg/icon/icon-money-back-guarantee-16.svg +1 -1
- package/dist/svg/icon/icon-money-back-guarantee-24.svg +1 -1
- package/dist/svg/icon/icon-money-back-guarantee-filled-16-colored.svg +12 -0
- package/dist/svg/icon/icon-money-back-guarantee-filled-24-colored.svg +14 -0
- package/dist/svg/icon/icon-monthly-invoice-12-colored.svg +18 -0
- package/dist/svg/icon/icon-monthly-invoice-18-colored.svg +18 -0
- package/dist/svg/icon/icon-monthly-invoice-24-colored.svg +18 -0
- package/dist/svg/icon/icon-monthly-invoice-32-colored.svg +18 -0
- package/dist/svg/icon/icon-potted-plant-16.svg +7 -0
- package/dist/svg/icon/icon-potted-plant-24.svg +7 -0
- package/dist/svg/icon/icon-shovel-16.svg +7 -0
- package/dist/svg/icon/icon-shovel-24.svg +7 -0
- package/dist/svg/icon/icon-show-16.svg +3 -3
- package/dist/svg/icon/icon-show-24.svg +2 -7
- package/dist/svg/icons.svg +644 -129
- package/dist/textbox/textbox.css +2 -1
- package/dist/toggle-button-group/toggle-button-group.css +33 -1
- package/dist/tokens/evo-light.css +1 -1
- package/dist/utility/utility.css +4 -0
- package/package.json +3 -3
- package/scripts/add-y-comments.js +33 -0
- package/scripts/develop-module_proper/code-generators/doc-generator.js +0 -1
- package/src/sass/button/stories/button/base.stories.js +12 -0
- package/src/sass/details/details.scss +19 -10
- package/src/sass/details/stories/cascade.stories.js +6 -6
- package/src/sass/details/stories/details.stories.js +38 -8
- package/src/sass/icon/icon.scss +1 -1
- package/src/sass/phone-input/phone-input.scss +1 -1
- package/src/sass/progress-spinner/progress-spinner.scss +3 -3
- package/src/sass/textbox/stories/textbox.stories.js +2 -2
- package/src/sass/textbox/textbox.scss +2 -1
- package/src/sass/toggle-button-group/stories/gallery-layout-exceptions.stories.js +117 -0
- package/src/sass/toggle-button-group/stories/gallery-layout.stories.js +117 -0
- package/src/sass/toggle-button-group/stories/list-layout-exceptions.stories.js +49 -0
- package/src/sass/toggle-button-group/stories/list-layout.stories.js +126 -0
- package/src/sass/toggle-button-group/stories/minimal-layout-exceptions.stories.js +72 -0
- package/src/sass/toggle-button-group/stories/minimal-layout.stories.js +73 -0
- package/src/sass/toggle-button-group/toggle-button-group.scss +41 -1
- package/src/sass/utility/utility.scss +4 -0
- package/src/svg/icon/icon-alipay-cn-12-colored.svg +44 -0
- package/src/svg/icon/icon-alipay-cn-18-colored.svg +44 -0
- package/src/svg/icon/icon-alipay-cn-24-colored.svg +44 -0
- package/src/svg/icon/icon-alipay-cn-32-colored.svg +44 -0
- package/src/svg/icon/icon-authenticity-guarantee-24.svg +2 -5
- package/src/svg/icon/icon-authenticity-guarantee-filled-16-colored.svg +12 -0
- package/src/svg/icon/icon-authenticity-guarantee-filled-24-colored.svg +12 -0
- package/src/svg/icon/icon-brand-authorized-seller-24.svg +2 -5
- package/src/svg/icon/icon-cb-12-colored.svg +22 -14
- package/src/svg/icon/icon-cb-18-colored.svg +22 -14
- package/src/svg/icon/icon-cb-24-colored.svg +22 -14
- package/src/svg/icon/icon-cb-32-colored.svg +22 -14
- package/src/svg/icon/icon-chevron-down-20.svg +5 -0
- package/src/svg/icon/icon-chevron-right-20.svg +5 -0
- package/src/svg/icon/icon-clock-64.svg +7 -0
- package/src/svg/icon/icon-confirmation-16.svg +4 -5
- package/src/svg/icon/icon-confirmation-24.svg +4 -2
- package/src/svg/icon/icon-confirmation-64.svg +1 -4
- package/src/svg/icon/icon-confirmation-filled-16.svg +4 -2
- package/src/svg/icon/icon-confirmation-filled-24.svg +4 -2
- package/src/svg/icon/icon-density-compact-16.svg +7 -0
- package/src/svg/icon/icon-density-compact-24.svg +7 -0
- package/src/svg/icon/icon-density-default-16.svg +7 -0
- package/src/svg/icon/icon-density-default-24.svg +7 -0
- package/src/svg/icon/icon-density-relaxed-16.svg +7 -0
- package/src/svg/icon/icon-density-relaxed-24.svg +7 -0
- package/src/svg/icon/icon-direct-from-brand-24.svg +2 -5
- package/src/svg/icon/icon-download-20.svg +7 -0
- package/src/svg/icon/icon-ebay-refurbished-24.svg +1 -4
- package/src/svg/icon/icon-feedback-received-16.svg +7 -0
- package/src/svg/icon/icon-feedback-received-24.svg +7 -0
- package/src/svg/icon/icon-girocard-12-colored.svg +24 -0
- package/src/svg/icon/icon-girocard-18-colored.svg +24 -0
- package/src/svg/icon/icon-girocard-24-colored.svg +24 -0
- package/src/svg/icon/icon-girocard-32-colored.svg +24 -0
- package/src/svg/icon/icon-hide-16.svg +2 -6
- package/src/svg/icon/icon-hide-24.svg +2 -6
- package/src/svg/icon/icon-live-eye-16.svg +4 -3
- package/src/svg/icon/icon-live-eye-24.svg +2 -5
- package/src/svg/icon/icon-masonry-view-16.svg +7 -0
- package/src/svg/icon/icon-masonry-view-filled-16.svg +7 -0
- package/src/svg/icon/icon-money-back-guarantee-16.svg +1 -1
- package/src/svg/icon/icon-money-back-guarantee-24.svg +1 -1
- package/src/svg/icon/icon-money-back-guarantee-filled-16-colored.svg +12 -0
- package/src/svg/icon/icon-money-back-guarantee-filled-24-colored.svg +14 -0
- package/src/svg/icon/icon-monthly-invoice-12-colored.svg +18 -0
- package/src/svg/icon/icon-monthly-invoice-18-colored.svg +18 -0
- package/src/svg/icon/icon-monthly-invoice-24-colored.svg +18 -0
- package/src/svg/icon/icon-monthly-invoice-32-colored.svg +18 -0
- package/src/svg/icon/icon-potted-plant-16.svg +7 -0
- package/src/svg/icon/icon-potted-plant-24.svg +7 -0
- package/src/svg/icon/icon-shovel-16.svg +7 -0
- package/src/svg/icon/icon-shovel-24.svg +7 -0
- package/src/svg/icon/icon-show-16.svg +3 -3
- package/src/svg/icon/icon-show-24.svg +2 -7
- package/src/svg/icons.svg +644 -129
- package/src/tokens/evo-light.css +1 -1
- package/svg.svg +644 -129
package/dist/textbox/textbox.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--row-list-toggle-buttons-sm: 2;
|
|
10
10
|
--row-list-toggle-buttons-md: 3;
|
|
11
11
|
--row-list-toggle-buttons-xl: 5;
|
|
12
|
-
--row-gallery-toggle-buttons-min:
|
|
12
|
+
--row-gallery-toggle-buttons-min: 2;
|
|
13
13
|
--row-gallery-toggle-buttons-xs: 2;
|
|
14
14
|
--row-gallery-toggle-buttons-sm: 3;
|
|
15
15
|
--row-gallery-toggle-buttons-md: 4;
|
|
@@ -20,6 +20,30 @@
|
|
|
20
20
|
container: toggle-buttons-container/inline-size;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
@supports not (contain: inline-size) {
|
|
24
|
+
@media (max-width: 320px) {
|
|
25
|
+
.toggle-button-group[data-columns-min="1"] ul {
|
|
26
|
+
grid-template-columns: repeat(1, 1fr);
|
|
27
|
+
}
|
|
28
|
+
.toggle-button-group[data-columns-min="2"] ul {
|
|
29
|
+
grid-template-columns: repeat(2, 1fr);
|
|
30
|
+
}
|
|
31
|
+
.toggle-button-group[data-columns-min="3"] ul {
|
|
32
|
+
grid-template-columns: repeat(3, 1fr);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
@container toggle-buttons-container (inline-size < 320px) {
|
|
37
|
+
.toggle-button-group[data-columns-min="1"] ul {
|
|
38
|
+
grid-template-columns: repeat(1, 1fr);
|
|
39
|
+
}
|
|
40
|
+
.toggle-button-group[data-columns-min="2"] ul {
|
|
41
|
+
grid-template-columns: repeat(2, 1fr);
|
|
42
|
+
}
|
|
43
|
+
.toggle-button-group[data-columns-min="3"] ul {
|
|
44
|
+
grid-template-columns: repeat(3, 1fr);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
23
47
|
.toggle-button-group ul {
|
|
24
48
|
display: grid;
|
|
25
49
|
gap: var(--spacing-100);
|
|
@@ -43,12 +67,20 @@
|
|
|
43
67
|
max-width: 100%;
|
|
44
68
|
width: 100%;
|
|
45
69
|
}
|
|
70
|
+
.toggle-button-group--list-layout ul {
|
|
71
|
+
grid-template-columns: repeat(var(--row-list-toggle-buttons-min), 1fr);
|
|
72
|
+
}
|
|
73
|
+
|
|
46
74
|
.toggle-button-group--list-layout .toggle-button {
|
|
47
75
|
justify-content: left;
|
|
48
76
|
max-width: 100%;
|
|
49
77
|
min-width: auto;
|
|
50
78
|
}
|
|
51
79
|
|
|
80
|
+
.toggle-button-group--gallery-layout ul {
|
|
81
|
+
grid-template-columns: repeat(var(--row-gallery-toggle-buttons-min), 1fr);
|
|
82
|
+
}
|
|
83
|
+
|
|
52
84
|
.toggle-button-group--gallery-layout li {
|
|
53
85
|
max-width: 100%;
|
|
54
86
|
}
|
package/dist/utility/utility.css
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebay/skin",
|
|
3
3
|
"description": "Skin - CSS modules that represent the brand eBay",
|
|
4
|
-
"version": "18.0
|
|
4
|
+
"version": "18.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"maintainers": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Andrew Gliga <agliga4@gmail.com>",
|
|
10
10
|
"Arthur Khachatryan <arthurk55@gmail.com>"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://ebay.
|
|
12
|
+
"homepage": "https://opensource.ebay.com/skin/",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/eBay/skin"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepublishOnly": "node scripts gen",
|
|
23
23
|
"postpublish": "node scripts clean",
|
|
24
24
|
"build": "npm run build:css && npm run lint:js && npm run bundle && npm run build:site && npm run copy",
|
|
25
|
-
"build:css": "npm run lint:sass && rimraf dist && npm run bundle:css && npm run postcss && prettier dist --write && npm run lint:css",
|
|
25
|
+
"build:css": "npm run lint:sass && rimraf dist && npm run bundle:css && npm run postcss && node scripts/add-y-comments.js && prettier dist --write && npm run lint:css",
|
|
26
26
|
"build:ci": "npm run build:css && npm run lint:js && npm run bundle && npm run copy",
|
|
27
27
|
"build:jekyll": "node scripts/jekyll-config && bundler exec jekyll build --incremental --config docs/_config.yml,docs/_config.localhost.yml",
|
|
28
28
|
"build:site": "npm run copy:svgToDocs && npm run build:jekyll",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// This is a hack added in order to allow the carousel to work in older parsers
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const currentDir = path.dirname(__dirname);
|
|
5
|
+
const carousel = path.resolve(currentDir, "dist", "carousel");
|
|
6
|
+
const carouselCSS = path.resolve(carousel, `carousel.css`);
|
|
7
|
+
fs.readFile(carouselCSS, "utf8", function (err, data) {
|
|
8
|
+
if (err) {
|
|
9
|
+
return console.log(err);
|
|
10
|
+
}
|
|
11
|
+
const result = data
|
|
12
|
+
.replace(
|
|
13
|
+
/\@supports not (.|\n)+?\{/,
|
|
14
|
+
`@supports not /*!Y */
|
|
15
|
+
(
|
|
16
|
+
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
|
|
17
|
+
(-ms-scroll-snap-coordinate: 0 0) or /*!Y */
|
|
18
|
+
(scroll-snap-coordinate: 0 0) or /*!Y */ (scroll-snap-align: start)
|
|
19
|
+
) {`,
|
|
20
|
+
)
|
|
21
|
+
.replace(
|
|
22
|
+
/\@supports \((.|\n)+?\{/,
|
|
23
|
+
`@supports (
|
|
24
|
+
/*!Y */ (-webkit-scroll-snap-coordinate: 0 0) or /*!Y */
|
|
25
|
+
(-ms-scroll-snap-coordinate: 0 0) or /*!Y */
|
|
26
|
+
(scroll-snap-coordinate: 0 0) or /*!Y */ (scroll-snap-align: start)
|
|
27
|
+
) {`,
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
fs.writeFile(carouselCSS, result, "utf8", function (err) {
|
|
31
|
+
if (err) return console.log(err);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -36,7 +36,6 @@ const getMainContent = (moduleId) => `
|
|
|
36
36
|
|
|
37
37
|
const getMetadataContent = (moduleId) => ` ${moduleId}:
|
|
38
38
|
ds-component: # module's relationship with the eBay Design System
|
|
39
|
-
group: # eBay Design System component group
|
|
40
39
|
name: # eBay Design System component name
|
|
41
40
|
version: # version of the eBay Design System component implemented in Skin
|
|
42
41
|
status: # status, e.g. "beta", "deprecated", "in-progress"
|
|
@@ -37,6 +37,18 @@ export const busy = () => `
|
|
|
37
37
|
</button>
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
|
+
export const busyLarge = () => `
|
|
41
|
+
<button class="btn btn--large" aria-label="Busy">
|
|
42
|
+
<span class="btn__cell">
|
|
43
|
+
<span class="progress-spinner">
|
|
44
|
+
<svg class="icon icon--24" aria-hidden="true">
|
|
45
|
+
<use href="#icon-spinner-24"></use>
|
|
46
|
+
</svg>
|
|
47
|
+
</span>
|
|
48
|
+
</span>
|
|
49
|
+
</button>
|
|
50
|
+
`;
|
|
51
|
+
|
|
40
52
|
export const formBusy = () => `
|
|
41
53
|
<button class="btn btn--form" aria-label="Busy">
|
|
42
54
|
<span class="btn__cell">
|
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
@import "../mixins/private/token-mixins";
|
|
3
3
|
|
|
4
4
|
summary.details__summary {
|
|
5
|
-
|
|
6
|
-
box-sizing: border-box;
|
|
5
|
+
@include border-radius-token(expand-btn-border-radius, border-radius-50);
|
|
7
6
|
@include color-token(
|
|
8
7
|
details-summary-foreground-color,
|
|
9
|
-
color-foreground-
|
|
8
|
+
color-foreground-primary
|
|
10
9
|
);
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
align-items: center;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
font-size: var(--font-size-default);
|
|
15
|
+
font-weight: var(--font-weight-bold);
|
|
13
16
|
list-style-position: inside;
|
|
14
17
|
list-style-type: none; /* Remove details marker for non-webkit */
|
|
15
18
|
padding: 12px 8px;
|
|
16
|
-
width: 100%;
|
|
17
19
|
|
|
18
20
|
&::before {
|
|
19
21
|
content: none;
|
|
@@ -24,14 +26,21 @@ summary.details__summary {
|
|
|
24
26
|
display: none;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
&:
|
|
28
|
-
&:
|
|
29
|
-
color: var(--color-state-
|
|
29
|
+
&:focus,
|
|
30
|
+
&:hover {
|
|
31
|
+
background-color: var(--color-state-secondary-hover);
|
|
32
|
+
outline: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:active {
|
|
36
|
+
background-color: var(--color-state-secondary-active);
|
|
37
|
+
outline: 1;
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
summary.details__summary--center {
|
|
34
|
-
|
|
42
|
+
justify-content: center;
|
|
43
|
+
width: 100%;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
46
|
summary.details__summary--small {
|
|
@@ -45,7 +54,7 @@ span.details__icon {
|
|
|
45
54
|
|
|
46
55
|
/* progressive enhancement - override hidden SVG */
|
|
47
56
|
span.details__icon[hidden] {
|
|
48
|
-
display: inline-
|
|
57
|
+
display: inline-flex;
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
details.details[open] {
|
|
@@ -6,8 +6,8 @@ export const RTL = () => `
|
|
|
6
6
|
<summary class="details__summary">
|
|
7
7
|
<span class="details__label">Details</span>
|
|
8
8
|
<span class="details__icon" hidden>
|
|
9
|
-
<svg class="icon icon--
|
|
10
|
-
<use href="#icon-chevron-down-
|
|
9
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
10
|
+
<use href="#icon-chevron-down-16"></use>
|
|
11
11
|
</svg>
|
|
12
12
|
</span>
|
|
13
13
|
</summary>
|
|
@@ -22,8 +22,8 @@ export const colour = () => `
|
|
|
22
22
|
<summary class="details__summary">
|
|
23
23
|
<span class="details__label">Details</span>
|
|
24
24
|
<span class="details__icon" hidden>
|
|
25
|
-
<svg class="icon icon--
|
|
26
|
-
<use href="#icon-chevron-down-
|
|
25
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
26
|
+
<use href="#icon-chevron-down-16"></use>
|
|
27
27
|
</svg>
|
|
28
28
|
</span>
|
|
29
29
|
</summary>
|
|
@@ -38,8 +38,8 @@ export const fontSize = () => `
|
|
|
38
38
|
<summary class="details__summary">
|
|
39
39
|
<span class="details__label">Details</span>
|
|
40
40
|
<span class="details__icon" hidden>
|
|
41
|
-
<svg class="icon icon--
|
|
42
|
-
<use href="#icon-chevron-down-
|
|
41
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
42
|
+
<use href="#icon-chevron-down-16"></use>
|
|
43
43
|
</svg>
|
|
44
44
|
</span>
|
|
45
45
|
</summary>
|
|
@@ -5,8 +5,8 @@ export const closed = () => `
|
|
|
5
5
|
<summary class="details__summary">
|
|
6
6
|
<span class="details__label">Details</span>
|
|
7
7
|
<span class="details__icon" hidden>
|
|
8
|
-
<svg class="icon icon--
|
|
9
|
-
<use href="#icon-chevron-down-
|
|
8
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
9
|
+
<use href="#icon-chevron-down-16"></use>
|
|
10
10
|
</svg>
|
|
11
11
|
</span>
|
|
12
12
|
</summary>
|
|
@@ -19,8 +19,8 @@ export const open = () => `
|
|
|
19
19
|
<summary class="details__summary">
|
|
20
20
|
<span class="details__label">Details</span>
|
|
21
21
|
<span class="details__icon" hidden>
|
|
22
|
-
<svg class="icon icon--
|
|
23
|
-
<use href="#icon-chevron-down-
|
|
22
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
23
|
+
<use href="#icon-chevron-down-16"></use>
|
|
24
24
|
</svg>
|
|
25
25
|
</span>
|
|
26
26
|
</summary>
|
|
@@ -33,8 +33,8 @@ export const textSpacing = () => `
|
|
|
33
33
|
<summary class="details__summary">
|
|
34
34
|
<span class="details__label">Details</span>
|
|
35
35
|
<span class="details__icon" hidden>
|
|
36
|
-
<svg class="icon icon--
|
|
37
|
-
<use href="#icon-chevron-down-
|
|
36
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
37
|
+
<use href="#icon-chevron-down-16"></use>
|
|
38
38
|
</svg>
|
|
39
39
|
</span>
|
|
40
40
|
</summary>
|
|
@@ -47,8 +47,8 @@ export const centered = () => `
|
|
|
47
47
|
<summary class="details__summary details__summary--center">
|
|
48
48
|
<span class="details__label">Details</span>
|
|
49
49
|
<span class="details__icon" hidden>
|
|
50
|
-
<svg class="icon icon--
|
|
51
|
-
<use href="#icon-chevron-down-
|
|
50
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
51
|
+
<use href="#icon-chevron-down-16"></use>
|
|
52
52
|
</svg>
|
|
53
53
|
</span>
|
|
54
54
|
</summary>
|
|
@@ -59,6 +59,36 @@ export const centered = () => `
|
|
|
59
59
|
export const small = () => `
|
|
60
60
|
<details class="details" open>
|
|
61
61
|
<summary class="details__summary details__summary--small">
|
|
62
|
+
<span class="details__label">Details</span>
|
|
63
|
+
<span class="details__icon" hidden>
|
|
64
|
+
<svg class="icon icon--16" aria-hidden="true">
|
|
65
|
+
<use href="#icon-chevron-down-16"></use>
|
|
66
|
+
</svg>
|
|
67
|
+
</span>
|
|
68
|
+
</summary>
|
|
69
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
70
|
+
</details>
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
// Deprecated stories
|
|
74
|
+
export const closed12pxIcon = () => `
|
|
75
|
+
<details class="details">
|
|
76
|
+
<summary class="details__summary">
|
|
77
|
+
<span class="details__label">Details</span>
|
|
78
|
+
<span class="details__icon" hidden>
|
|
79
|
+
<svg class="icon icon--12" aria-hidden="true">
|
|
80
|
+
<use href="#icon-chevron-down-12"></use>
|
|
81
|
+
</svg>
|
|
82
|
+
</span>
|
|
83
|
+
</summary>
|
|
84
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
85
|
+
</details>
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
// Deprecated stories
|
|
89
|
+
export const open12pxIcon = () => `
|
|
90
|
+
<details class="details" open>
|
|
91
|
+
<summary class="details__summary">
|
|
62
92
|
<span class="details__label">Details</span>
|
|
63
93
|
<span class="details__icon" hidden>
|
|
64
94
|
<svg class="icon icon--12" aria-hidden="true">
|
package/src/sass/icon/icon.scss
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* fixes wobble */
|
|
23
|
-
.progress-spinner > svg.icon.icon--
|
|
24
|
-
.progress-spinner > svg.icon.icon--
|
|
25
|
-
.progress-spinner > svg.icon.icon--
|
|
23
|
+
.progress-spinner > svg.icon.icon--20,
|
|
24
|
+
.progress-spinner > svg.icon.icon--24,
|
|
25
|
+
.progress-spinner > svg.icon.icon--30 {
|
|
26
26
|
height: inherit;
|
|
27
27
|
margin: 0;
|
|
28
28
|
max-height: inherit;
|
|
@@ -59,8 +59,8 @@ export const errorWithValue = () => `
|
|
|
59
59
|
`;
|
|
60
60
|
|
|
61
61
|
export const fluid = () => `
|
|
62
|
-
<div class="textbox">
|
|
63
|
-
<input class="textbox__control
|
|
62
|
+
<div class="textbox textbox--fluid">
|
|
63
|
+
<input class="textbox__control" type="text" placeholder="placeholder text" />
|
|
64
64
|
</div>
|
|
65
65
|
`;
|
|
66
66
|
|
|
@@ -2,6 +2,123 @@ export default {
|
|
|
2
2
|
title: "Skin/Toggle Button Group/Gallery Layout/Layouts Exceptions",
|
|
3
3
|
};
|
|
4
4
|
|
|
5
|
+
export const minContainer1button = () => `
|
|
6
|
+
<div style="width: 240px; border: 1px dashed orange;">
|
|
7
|
+
<div class="toggle-button-group toggle-button-group--gallery-layout" data-columns-min="1">
|
|
8
|
+
<ul aria-label="Buttons">
|
|
9
|
+
<li>
|
|
10
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
11
|
+
<span class="toggle-button__image-container">
|
|
12
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-profile-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
13
|
+
</span>
|
|
14
|
+
</span>
|
|
15
|
+
<span class="toggle-button__content">
|
|
16
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
17
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
18
|
+
</span>
|
|
19
|
+
</button>
|
|
20
|
+
</li>
|
|
21
|
+
<li>
|
|
22
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
23
|
+
<span class="toggle-button__image-container">
|
|
24
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-landscape-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
25
|
+
</span>
|
|
26
|
+
</span>
|
|
27
|
+
<span class="toggle-button__content">
|
|
28
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
29
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
30
|
+
</span>
|
|
31
|
+
</button>
|
|
32
|
+
</li>
|
|
33
|
+
<li>
|
|
34
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
35
|
+
<span class="toggle-button__image-container">
|
|
36
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-square-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 30%;">
|
|
37
|
+
</span>
|
|
38
|
+
</span>
|
|
39
|
+
<span class="toggle-button__content">
|
|
40
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
41
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
42
|
+
</span>
|
|
43
|
+
</button>
|
|
44
|
+
</li>
|
|
45
|
+
<li>
|
|
46
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
47
|
+
<span class="toggle-button__image-container">
|
|
48
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-profile-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
49
|
+
</span>
|
|
50
|
+
</span>
|
|
51
|
+
<span class="toggle-button__content">
|
|
52
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
53
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
54
|
+
</span>
|
|
55
|
+
</button>
|
|
56
|
+
</li>
|
|
57
|
+
<li>
|
|
58
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
59
|
+
<span class="toggle-button__image-container">
|
|
60
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-landscape-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
<span class="toggle-button__content">
|
|
64
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
65
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
66
|
+
</span>
|
|
67
|
+
</button>
|
|
68
|
+
</li>
|
|
69
|
+
<li>
|
|
70
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
71
|
+
<span class="toggle-button__image-container">
|
|
72
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-square-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
73
|
+
</span>
|
|
74
|
+
</span>
|
|
75
|
+
<span class="toggle-button__content">
|
|
76
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
77
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
78
|
+
</span>
|
|
79
|
+
</button>
|
|
80
|
+
</li>
|
|
81
|
+
<li>
|
|
82
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
83
|
+
<span class="toggle-button__image-container">
|
|
84
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-profile-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
85
|
+
</span>
|
|
86
|
+
</span>
|
|
87
|
+
<span class="toggle-button__content">
|
|
88
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
89
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
90
|
+
</span>
|
|
91
|
+
</button>
|
|
92
|
+
</li>
|
|
93
|
+
<li>
|
|
94
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
95
|
+
<span class="toggle-button__image-container">
|
|
96
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-landscape-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
97
|
+
</span>
|
|
98
|
+
</span>
|
|
99
|
+
<span class="toggle-button__content">
|
|
100
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
101
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
102
|
+
</span>
|
|
103
|
+
</button>
|
|
104
|
+
</li>
|
|
105
|
+
<li>
|
|
106
|
+
<button type="button" class="toggle-button" aria-pressed="false">
|
|
107
|
+
<span class="toggle-button__image-container">
|
|
108
|
+
<span class="toggle-button__image" style="background-image: url(https://ir.ebaystatic.com/cr/v/c01/skin/docs/tb-square-pic.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; background-position: center 15%;">
|
|
109
|
+
</span>
|
|
110
|
+
</span>
|
|
111
|
+
<span class="toggle-button__content">
|
|
112
|
+
<span class="toggle-button__title">Gallery Layout Title</span>
|
|
113
|
+
<span class="toggle-button__subtitle">Subtitle</span>
|
|
114
|
+
</span>
|
|
115
|
+
</button>
|
|
116
|
+
</li>
|
|
117
|
+
</ul>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
`;
|
|
121
|
+
|
|
5
122
|
export const _320container1button = () => `
|
|
6
123
|
<div style="width: 320px; border: 1px dashed orange;">
|
|
7
124
|
<div class="toggle-button-group toggle-button-group--gallery-layout" data-columns-xs="1">
|