@ebay/skin 16.0.0 → 16.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/.github/workflows/jekyll-gh-pages.yml +1 -1
- package/.percy.yml +4 -3
- package/.prettierrc.json +1 -12
- package/.storybook/main.js +44 -40
- package/.storybook/manager.js +6 -6
- package/.storybook/preview-head.html +49 -11
- package/.storybook/theme.js +9 -9
- package/.stylelintrc +80 -73
- package/ICON-CREATION.md +22 -45
- package/README.md +1 -1
- package/_cdn/skin/v16.1.0/skin-default.min.css +6 -0
- package/_cdn/skin/v16.1.0/skin-full.min.css +6 -0
- package/_cdn/skin/v16.1.0/skin-headless.min.css +6 -0
- package/_cdn/skin/v16.1.0/skin-legacy.min.css +6 -0
- package/dist/alert-dialog/alert-dialog.css +16 -11
- package/dist/breadcrumbs/breadcrumbs.css +1 -1
- package/dist/button/button.css +3 -5
- package/dist/calendar/calendar.css +1 -4
- package/dist/carousel/carousel.css +11 -15
- package/dist/combobox/combobox.css +0 -2
- package/dist/confirm-dialog/confirm-dialog.css +16 -11
- package/dist/date-textbox/date-textbox.css +1 -1
- package/dist/drawer-dialog/drawer-dialog.css +11 -8
- package/dist/fullscreen-dialog/fullscreen-dialog.css +11 -8
- package/dist/icon/icon.css +17 -5
- package/dist/image-placeholder/image-placeholder.css +4 -0
- package/dist/infotip/infotip.css +2 -5
- package/dist/legacy-theme/legacy-theme.css +2 -2
- package/dist/legacy-tokens/ds4-light.css +2 -0
- package/dist/lightbox-dialog/lightbox-dialog.css +24 -17
- package/dist/listbox/listbox.css +0 -2
- package/dist/listbox-button/listbox-button.css +0 -2
- package/dist/menu/menu.css +0 -2
- package/dist/menu-button/menu-button.css +0 -2
- package/dist/mixins/utility-mixins.less +1 -4
- package/dist/page-grid/page-grid.css +15 -5
- package/dist/page-notice/page-notice.css +1 -1
- package/dist/panel-dialog/panel-dialog.css +12 -9
- package/dist/progress-bar/progress-bar.css +1 -1
- package/dist/progress-stepper/progress-stepper.css +1 -1
- package/dist/section-notice/section-notice.css +1 -1
- package/dist/section-title/section-title.css +1 -1
- package/dist/snackbar-dialog/snackbar-dialog.css +7 -1
- package/dist/square-corner-theme/square-corner-theme.css +3 -3
- package/dist/svg/icon/icon-bookmark-16.svg +7 -0
- package/dist/svg/icon/icon-bookmark-24.svg +7 -0
- package/dist/svg/icon/icon-play-filled-16-colored.svg +13 -0
- package/dist/svg/icon/icon-play-filled-24-colored.svg +11 -0
- package/dist/svg/icon/image-placeholder.svg +3 -0
- package/dist/svg/icons.svg +49 -11
- package/dist/toast-dialog/toast-dialog.css +7 -1
- package/dist/tokens/evo-dark.css +2 -0
- package/dist/tokens/evo-light.css +2 -0
- package/dist/tooltip/tooltip.css +2 -5
- package/dist/tourtip/tourtip.css +2 -5
- package/dist/typography/typography.css +1 -1
- package/dist/utility/utility.css +2 -8
- package/dist/video/video.css +1 -4
- package/image-placeholder.browser.json +1 -0
- package/image-placeholder.css +1 -0
- package/image-placeholder.js +1 -0
- package/image-placeholder.mjs +1 -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 +12 -12
- package/scripts/develop-module_proper/code-generators/doc-generator.js +32 -16
- package/scripts/develop-module_proper/code-generators/style-generator.js +89 -34
- package/scripts/develop-module_proper/code-generators/test-generator.js +18 -12
- package/scripts/develop-module_proper/errors/illegal-input.js +1 -1
- package/scripts/develop-module_proper/index.js +6 -6
- package/scripts/develop-module_proper/input/module-name.js +9 -7
- package/scripts/develop-module_proper/input/parse-input.js +10 -8
- package/scripts/develop-module_proper/util/line-writer.js +31 -18
- package/scripts/develop-module_proper/util/title-case.js +4 -3
- package/scripts/generate-bundle.js +58 -33
- package/scripts/generate-images.js +72 -45
- package/scripts/generate-imports/config.json +21 -3
- package/scripts/generate-imports/index.js +35 -29
- package/scripts/generate-imports/module-builder.js +58 -36
- package/scripts/import-svgs.js +33 -25
- package/scripts/index.js +68 -68
- package/scripts/jekyll-config.js +8 -5
- package/scripts/log.js +5 -3
- package/scripts/split-icon.js +20 -15
- package/scripts/storybook/copy.js +29 -10
- package/scripts/svgo.config.js +42 -42
- package/scripts/util.js +15 -11
- package/scripts/verify-build.js +12 -12
- package/src/fonts/marketsans/MarketSans-Regular-WebS.css +6 -3
- package/src/fonts/marketsans/MarketSans-SemiBold-WebS.css +6 -3
- package/src/less/alert-dialog/alert-dialog.less +5 -6
- package/src/less/alert-dialog/stories/alert-dialog.stories.js +1 -1
- package/src/less/badge/stories/badge.stories.js +1 -1
- package/src/less/breadcrumbs/breadcrumbs.less +5 -2
- package/src/less/breadcrumbs/stories/button-cascade.stories.js +1 -1
- package/src/less/breadcrumbs/stories/button-overflow.stories.js +1 -1
- package/src/less/breadcrumbs/stories/buttons.stories.js +1 -1
- package/src/less/breadcrumbs/stories/link-cascade.stories.js +1 -1
- package/src/less/breadcrumbs/stories/link-overflow.stories.js +1 -1
- package/src/less/breadcrumbs/stories/links.stories.js +1 -1
- package/src/less/bundles/skin-headless.less +1 -0
- package/src/less/button/button.less +16 -10
- package/src/less/button/stories/button/base.stories.js +3 -3
- package/src/less/button/stories/button/borderless.stories.js +5 -3
- package/src/less/button/stories/button/cascade.stories.js +3 -3
- package/src/less/button/stories/button/dimensions.stories.js +2 -2
- package/src/less/button/stories/button/primary.stories.js +3 -2
- package/src/less/button/stories/button/secondary.stories.js +3 -2
- package/src/less/button/stories/button/tertiary.stories.js +1 -1
- package/src/less/button/stories/destructive-button/primary.stories.js +1 -1
- package/src/less/button/stories/destructive-button/secondary.stories.js +1 -1
- package/src/less/button/stories/destructive-button/tertiary.stories.js +1 -1
- package/src/less/button/stories/fake-button/base.stories.js +5 -4
- package/src/less/button/stories/fake-button/cascade.stories.js +4 -4
- package/src/less/button/stories/fake-button/dimensions.stories.js +2 -2
- package/src/less/button/stories/fake-button/primary.stories.js +1 -1
- package/src/less/button/stories/fake-button/secondary.stories.js +1 -1
- package/src/less/calendar/calendar.less +21 -10
- package/src/less/calendar/stories/calendar.stories.js +317 -88
- package/src/less/carousel/carousel.less +14 -9
- package/src/less/carousel/stories/carousel.stories.js +1 -1
- package/src/less/checkbox/checkbox.less +14 -5
- package/src/less/checkbox/stories/checked.stories.js +1 -1
- package/src/less/checkbox/stories/mixed.stories.js +1 -1
- package/src/less/checkbox/stories/unchecked.stories.js +1 -1
- package/src/less/combobox/combobox.less +4 -1
- package/src/less/combobox/stories/combobox.stories.js +1 -1
- package/src/less/confirm-dialog/confirm-dialog.less +5 -6
- package/src/less/confirm-dialog/stories/confirm-dialog.stories.js +1 -1
- package/src/less/cta-button/stories/cascade.stories.js +1 -1
- package/src/less/cta-button/stories/cta-button.stories.js +1 -1
- package/src/less/cta-button/stories/dimensions.stories.js +1 -1
- package/src/less/date-textbox/date-textbox.less +1 -1
- package/src/less/details/stories/cascade.stories.js +1 -1
- package/src/less/details/stories/details.stories.js +1 -1
- package/src/less/drawer-dialog/drawer-dialog.less +2 -2
- package/src/less/drawer-dialog/stories/drawer-dialog.stories.js +1 -1
- package/src/less/eek/eek.less +2 -2
- package/src/less/field/stories/stacked.stories.js +1 -1
- package/src/less/field/stories/unstacked.stories.js +1 -1
- package/src/less/filter-button/stories/button.stories.js +1 -1
- package/src/less/filter-button/stories/group.stories.js +1 -1
- package/src/less/filter-button/stories/link.stories.js +1 -1
- package/src/less/filter-menu/filter-menu.less +8 -4
- package/src/less/filter-menu/stories/filter-menu.stories.js +1 -1
- package/src/less/filter-menu-button/filter-menu-button.less +2 -1
- package/src/less/filter-menu-button/stories/filter-menu-button.stories.js +1 -1
- package/src/less/floating-label/stories/floating-label.stories.js +1 -1
- package/src/less/fullscreen-dialog/fullscreen-dialog.less +2 -2
- package/src/less/fullscreen-dialog/stories/fullscreen-dialog.stories.js +1 -1
- package/src/less/global/stories/global.stories.js +1 -1
- package/src/less/icon/generated/icon.less +17 -5
- package/src/less/icon/stories/icon.stories.js +1 -1
- package/src/less/icon-button/stories/alignment.stories.js +3 -3
- package/src/less/image-placeholder/image-placeholder.less +4 -0
- package/src/less/image-placeholder/stories/image-placeholder.stories.js +35 -0
- package/src/less/index.stories.js +1 -1
- package/src/less/infotip/infotip.less +1 -1
- package/src/less/infotip/stories/infotip.stories.js +1 -1
- package/src/less/inline-notice/stories/inline.stories.js +1 -1
- package/src/less/legacy-theme/legacy-theme.less +2 -2
- package/src/less/lightbox-dialog/lightbox-dialog.less +12 -9
- package/src/less/lightbox-dialog/stories/lightbox-dialog.stories.js +91 -1
- package/src/less/link/stories/link.stories.js +3 -2
- package/src/less/listbox/listbox.less +2 -1
- package/src/less/listbox/stories/cascade.stories.js +1 -1
- package/src/less/listbox/stories/listbox.stories.js +1 -1
- package/src/less/listbox-button/listbox-button.less +2 -1
- package/src/less/listbox-button/stories/base.stories.js +1 -1
- package/src/less/listbox-button/stories/cascade.stories.js +1 -1
- package/src/less/listbox-button/stories/dimensions.stories.js +1 -1
- package/src/less/listbox-button/stories/form.stories.js +1 -1
- package/src/less/marketsans/marketsans.less +12 -6
- package/src/less/menu/stories/fake-menu.stories.js +1 -1
- package/src/less/menu/stories/misc.stories.js +1 -1
- package/src/less/menu/stories/multiSelect.stories.js +1 -1
- package/src/less/menu-button/menu-button.less +2 -1
- package/src/less/menu-button/stories/base.stories.js +1 -1
- package/src/less/menu-button/stories/cascade.stories.js +1 -1
- package/src/less/menu-button/stories/dimensions.stories.js +1 -1
- package/src/less/menu-button/stories/fake-menu-button.stories.js +1 -1
- package/src/less/mixins/private/bubble-mixins.less +1 -4
- package/src/less/mixins/private/dialog-mixins.less +12 -10
- package/src/less/mixins/private/filter-menu-mixins.less +4 -1
- package/src/less/mixins/private/selection-list-mixins.less +0 -2
- package/src/less/mixins/private/token-mixins.less +2 -1
- package/src/less/mixins/public/utility-mixins.less +1 -4
- package/src/less/page-grid/page-grid.less +32 -10
- package/src/less/page-notice/page-notice.less +1 -1
- package/src/less/page-notice/stories/page-notice.stories.js +1 -1
- package/src/less/page-notice/stories/test.stories.js +1 -1
- package/src/less/pagination/stories/button-cascade.stories.js +1 -1
- package/src/less/pagination/stories/buttons.stories.js +1 -1
- package/src/less/pagination/stories/link-cascade.stories.js +1 -1
- package/src/less/pagination/stories/links.stories.js +1 -1
- package/src/less/pagination/stories/overflow.stories.js +1 -1
- package/src/less/panel-dialog/panel-dialog.less +5 -4
- package/src/less/panel-dialog/stories/panel-dialog.stories.js +1 -1
- package/src/less/progress-bar/progress-bar.less +1 -1
- package/src/less/progress-bar/stories/progress-bar.stories.js +10 -7
- package/src/less/progress-spinner/stories/progress-spinner.stories.js +1 -1
- package/src/less/progress-stepper/progress-stepper.less +29 -9
- package/src/less/progress-stepper/stories/progress-stepper.stories.js +1 -1
- package/src/less/radio/radio.less +8 -3
- package/src/less/radio/stories/checked.stories.js +1 -1
- package/src/less/radio/stories/unchecked.stories.js +1 -1
- package/src/less/section-notice/section-notice.less +1 -1
- package/src/less/section-notice/stories/rtl.stories.js +1 -1
- package/src/less/section-notice/stories/section-notice.stories.js +1 -1
- package/src/less/section-notice/stories/test.stories.js +1 -1
- package/src/less/section-title/section-title.less +1 -1
- package/src/less/section-title/stories/rtl.stories.js +1 -1
- package/src/less/section-title/stories/section-title.stories.js +1 -1
- package/src/less/select/stories/cascade.stories.js +1 -1
- package/src/less/select/stories/default.stories.js +1 -1
- package/src/less/select/stories/floating-label.stories.js +1 -1
- package/src/less/signal/stories/signal.stories.js +1 -1
- package/src/less/snackbar-dialog/snackbar-dialog.less +1 -1
- package/src/less/snackbar-dialog/stories/base.stories.js +1 -1
- package/src/less/snackbar-dialog/stories/font-size.stories.js +1 -1
- package/src/less/snackbar-dialog/stories/rtl.stories.js +1 -1
- package/src/less/split-button/stories/base.stories.js +1 -1
- package/src/less/split-button/stories/rtl.stories.js +1 -1
- package/src/less/split-button/stories/size.stories.js +1 -1
- package/src/less/square-corner-theme/square-corner-theme.less +3 -3
- package/src/less/star-rating/stories/star-rating.stories.js +1 -1
- package/src/less/star-rating-select/star-rating-select.less +6 -2
- package/src/less/star-rating-select/stories/star-rating-select.stories.js +1 -1
- package/src/less/switch/stories/form.stories.js +1 -1
- package/src/less/switch/stories/script.stories.js +1 -1
- package/src/less/switch/switch.less +12 -6
- package/src/less/tabs/stories/fake-tabs/block.stories.js +1 -1
- package/src/less/tabs/stories/fake-tabs/inlineBlock.stories.js +1 -1
- package/src/less/tabs/stories/tabs/block.stories.js +1 -1
- package/src/less/tabs/stories/tabs/inlineBlock.stories.js +1 -1
- package/src/less/textbox/stories/icon.stories.js +1 -1
- package/src/less/textbox/stories/rtl/icon.stories.js +1 -1
- package/src/less/textbox/stories/rtl/textbox.stories.js +1 -1
- package/src/less/textbox/stories/textbox.stories.js +1 -1
- package/src/less/toast-dialog/stories/toast-dialog.stories.js +1 -1
- package/src/less/toast-dialog/toast-dialog.less +1 -1
- package/src/less/tooltip/stories/pointer.stories.js +84 -78
- package/src/less/tooltip/stories/tooltip.stories.js +1 -1
- package/src/less/tooltip/tooltip.less +1 -1
- package/src/less/tourtip/stories/tourtip.stories.js +1 -1
- package/src/less/tourtip/tourtip.less +1 -1
- package/src/less/typography/typography.less +1 -1
- package/src/less/video/video.less +1 -4
- package/src/svg/icon/icon-bookmark-16.svg +7 -0
- package/src/svg/icon/icon-bookmark-24.svg +7 -0
- package/src/svg/icon/icon-play-filled-16-colored.svg +13 -0
- package/src/svg/icon/icon-play-filled-24-colored.svg +11 -0
- package/src/svg/icon/image-placeholder.svg +3 -0
- package/src/svg/icons.svg +49 -11
- package/src/tokens/evo-dark.css +2 -0
- package/src/tokens/evo-light.css +2 -0
- package/svg.svg +49 -11
- package/webpack.config.js +6 -6
- package/_cdn/skin/v16.0.0/skin-default.min.css +0 -6
- package/_cdn/skin/v16.0.0/skin-full.min.css +0 -6
- package/_cdn/skin/v16.0.0/skin-headless.min.css +0 -6
- package/_cdn/skin/v16.0.0/skin-legacy.min.css +0 -6
- package/dist/svg/icon/icon-image-placeholder.svg +0 -10
- package/src/svg/icon/icon-image-placeholder.svg +0 -10
- /package/dist/svg/icon/{icon-zoom-In-16.svg → icon-zoom-in-16.svg} +0 -0
- /package/src/svg/icon/{icon-zoom-In-16.svg → icon-zoom-in-16.svg} +0 -0
package/scripts/svgo.config.js
CHANGED
|
@@ -3,48 +3,48 @@ module.exports = {
|
|
|
3
3
|
multipass: true,
|
|
4
4
|
original: false,
|
|
5
5
|
plugins: [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
6
|
+
"cleanupAttrs",
|
|
7
|
+
"cleanupEnableBackground",
|
|
8
|
+
"cleanupListOfValues",
|
|
9
|
+
"cleanupNumericValues",
|
|
10
|
+
"collapseGroups",
|
|
11
|
+
"convertColors",
|
|
12
|
+
"convertEllipseToCircle",
|
|
13
|
+
"convertPathData",
|
|
14
|
+
"convertShapeToPath",
|
|
15
|
+
"convertStyleToAttrs",
|
|
16
|
+
"convertTransform",
|
|
17
|
+
"inlineStyles",
|
|
18
|
+
"mergePaths",
|
|
19
|
+
"mergeStyles",
|
|
20
|
+
"minifyStyles",
|
|
21
|
+
"moveElemsAttrsToGroup",
|
|
22
|
+
"moveGroupAttrsToElems",
|
|
23
|
+
"removeComments",
|
|
24
|
+
"removeDesc",
|
|
25
|
+
"removeDimensions",
|
|
26
|
+
"removeDoctype",
|
|
27
|
+
"removeEditorsNSData",
|
|
28
|
+
"removeEmptyAttrs",
|
|
29
|
+
"removeEmptyContainers",
|
|
30
|
+
"removeEmptyText",
|
|
31
|
+
"removeHiddenElems",
|
|
32
|
+
"removeMetadata",
|
|
33
|
+
"removeNonInheritableGroupAttrs",
|
|
34
|
+
"removeRasterImages",
|
|
35
|
+
"removeScriptElement",
|
|
36
|
+
"removeStyleElement",
|
|
37
|
+
"removeTitle",
|
|
38
|
+
"removeUnknownsAndDefaults",
|
|
39
|
+
"removeUnusedNS",
|
|
40
|
+
"removeUselessDefs",
|
|
41
|
+
"removeUselessStrokeAndFill",
|
|
42
|
+
"removeViewBox",
|
|
43
|
+
"removeXMLNS",
|
|
44
|
+
"removeXMLProcInst",
|
|
45
|
+
"reusePaths",
|
|
46
|
+
"sortAttrs",
|
|
47
|
+
"sortDefsChildren",
|
|
48
48
|
],
|
|
49
49
|
pretty: true,
|
|
50
50
|
};
|
package/scripts/util.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const { parse } = require(
|
|
2
|
-
const { serializeToString } = require(
|
|
3
|
-
const prettier = require(
|
|
4
|
-
const fs = require(
|
|
1
|
+
const { parse } = require("parse5");
|
|
2
|
+
const { serializeToString } = require("xmlserializer");
|
|
3
|
+
const prettier = require("prettier");
|
|
4
|
+
const fs = require("fs");
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Convert a standard HTML5 string to XHTML-compliant string
|
|
@@ -11,25 +11,29 @@ const fs = require('fs');
|
|
|
11
11
|
function html2xhtml(html, skipHeader) {
|
|
12
12
|
const bodyHtml = html.window.document.documentElement.outerHTML;
|
|
13
13
|
const dom = parse(bodyHtml);
|
|
14
|
-
const xmlHeader = skipHeader
|
|
14
|
+
const xmlHeader = skipHeader
|
|
15
|
+
? ""
|
|
16
|
+
: `<?xml version="1.0" encoding="utf-8"?>\n`;
|
|
15
17
|
const parsedString = `${xmlHeader}${serializeToString(
|
|
16
18
|
dom.childNodes[0].childNodes[1].childNodes[0]
|
|
17
19
|
)}\n`;
|
|
18
|
-
return prettier.format(parsedString, { parser:
|
|
20
|
+
return prettier.format(parsedString, { parser: "html" });
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
function html2xhtml2(html) {
|
|
22
24
|
const bodyHtml = html.outerHTML;
|
|
23
25
|
const dom = parse(bodyHtml);
|
|
24
|
-
const parsedString = `${serializeToString(
|
|
25
|
-
|
|
26
|
+
const parsedString = `${serializeToString(
|
|
27
|
+
dom.childNodes[0].childNodes[1].childNodes[0]
|
|
28
|
+
)}\n`;
|
|
29
|
+
return prettier.format(parsedString, { parser: "html" });
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
function rawSvgToHtml(data) {
|
|
29
33
|
return data
|
|
30
|
-
.replace(/<svg.*>/,
|
|
31
|
-
.replace(
|
|
32
|
-
.replace(/<\?xml.*\?>(?:\s|\S)/,
|
|
34
|
+
.replace(/<svg.*>/, "<div hidden>\n<svg>")
|
|
35
|
+
.replace("</svg>", "</svg>\n</div>")
|
|
36
|
+
.replace(/<\?xml.*\?>(?:\s|\S)/, "");
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
async function removeFile(file) {
|
package/scripts/verify-build.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const { spawn } = require(
|
|
1
|
+
const { spawn } = require("child_process");
|
|
2
2
|
|
|
3
3
|
async function executeProcess(cmd, arg) {
|
|
4
4
|
return new Promise((resolve, reject) => {
|
|
5
5
|
const resp = spawn(cmd, arg);
|
|
6
6
|
|
|
7
|
-
resp.stdout.on(
|
|
7
|
+
resp.stdout.on("data", (data) => {
|
|
8
8
|
console.log(data.toString());
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
resp.on(
|
|
11
|
+
resp.on("close", (code) => {
|
|
12
12
|
if (code !== 0) {
|
|
13
13
|
reject();
|
|
14
14
|
} else {
|
|
@@ -16,7 +16,7 @@ async function executeProcess(cmd, arg) {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
resp.on(
|
|
19
|
+
resp.on("exit", (code) => {
|
|
20
20
|
if (code !== 0) {
|
|
21
21
|
reject();
|
|
22
22
|
} else {
|
|
@@ -36,18 +36,18 @@ async function runCmd(cmd, arg, err) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
async function verifyBuild() {
|
|
39
|
-
await runCmd(
|
|
40
|
-
await runCmd(
|
|
39
|
+
await runCmd("npm", ["run", "build"], "Build failed");
|
|
40
|
+
await runCmd("npm", ["run", "postpublish"], "Postpublish failed");
|
|
41
41
|
|
|
42
42
|
await runCmd(
|
|
43
|
-
|
|
44
|
-
[
|
|
45
|
-
|
|
43
|
+
"git",
|
|
44
|
+
["update-index", "--refresh"],
|
|
45
|
+
"Failed to update index, unchecked files found"
|
|
46
46
|
);
|
|
47
47
|
await runCmd(
|
|
48
|
-
|
|
49
|
-
[
|
|
50
|
-
|
|
48
|
+
"git",
|
|
49
|
+
["diff-index", "--quiet", "HEAD", "--"],
|
|
50
|
+
"Unchecked-in files found in codebase"
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
src: url("MarketSans-Regular-WebS.eot"); /* IE9 Compat Modes */
|
|
4
4
|
src: url("MarketSans-Regular-WebS.eot?#iefix") format("embedded-opentype"),
|
|
5
5
|
/* IE6-IE8 */ url("MarketSans-Regular-WebS.woff2") format("woff2"),
|
|
6
|
-
/* Super Modern Browsers */ url("MarketSans-Regular-WebS.woff")
|
|
7
|
-
|
|
8
|
-
/*
|
|
6
|
+
/* Super Modern Browsers */ url("MarketSans-Regular-WebS.woff")
|
|
7
|
+
format("woff"),
|
|
8
|
+
/* Pretty Modern Browsers */ url("MarketSans-Regular-WebS.ttf")
|
|
9
|
+
format("truetype"),
|
|
10
|
+
/* Safari, Android, iOS */
|
|
11
|
+
url("MarketSans-Regular-WebS.svg#MarketSans-Regular-WebS")
|
|
9
12
|
format("svg"); /* Legacy iOS */
|
|
10
13
|
|
|
11
14
|
font-weight: normal;
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
src: url("MarketSans-SemiBold-WebS.eot"); /* IE9 Compat Modes */
|
|
4
4
|
src: url("MarketSans-SemiBold-WebS.eot?#iefix") format("embedded-opentype"),
|
|
5
5
|
/* IE6-IE8 */ url("MarketSans-SemiBold-WebS.woff2") format("woff2"),
|
|
6
|
-
/* Super Modern Browsers */ url("MarketSans-SemiBold-WebS.woff")
|
|
7
|
-
|
|
8
|
-
/*
|
|
6
|
+
/* Super Modern Browsers */ url("MarketSans-SemiBold-WebS.woff")
|
|
7
|
+
format("woff"),
|
|
8
|
+
/* Pretty Modern Browsers */ url("MarketSans-SemiBold-WebS.ttf")
|
|
9
|
+
format("truetype"),
|
|
10
|
+
/* Safari, Android, iOS */
|
|
11
|
+
url("MarketSans-SemiBold-WebS.svg#MarketSans-SemiBold-WebS")
|
|
9
12
|
format("svg"); /* Legacy iOS */
|
|
10
13
|
|
|
11
14
|
font-weight: bold;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
&.alert-dialog--mask-fade,
|
|
60
60
|
&.alert-dialog--mask-fade-slow {
|
|
61
|
-
background-color:
|
|
61
|
+
background-color: var(--dialog-scrim-color-hide);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.alert-dialog__window--fade {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
&.alert-dialog--mask-fade,
|
|
76
76
|
&.alert-dialog--mask-fade-slow {
|
|
77
|
-
background-color:
|
|
77
|
+
background-color: var(--dialog-scrim-color-show);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.alert-dialog__window--fade {
|
|
@@ -82,15 +82,14 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
@media (min-width: calc(@_screen-size-MD + 1px)) and (max-width: @_screen-size-LG) {
|
|
85
|
+
@media (min-width: @_screen-size-MD) {
|
|
87
86
|
.alert-dialog__window {
|
|
88
87
|
max-width: calc(88% - @spacing-400;);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
|
|
92
|
-
@media (min-width:
|
|
91
|
+
@media (min-width: @_screen-size-LG) {
|
|
93
92
|
.alert-dialog__window {
|
|
94
|
-
max-width:
|
|
93
|
+
max-width: var(--dialog-lightbox-max-width);
|
|
95
94
|
}
|
|
96
95
|
}
|
|
@@ -88,7 +88,10 @@ nav.breadcrumbs.breadcrumb--overflow {
|
|
|
88
88
|
|
|
89
89
|
nav.breadcrumbs .fake-menu-button__button,
|
|
90
90
|
nav.breadcrumbs .menu-button__button {
|
|
91
|
-
background-color: var(
|
|
91
|
+
background-color: var(
|
|
92
|
+
--icon-button-background-color,
|
|
93
|
+
var(--color-background-secondary)
|
|
94
|
+
);
|
|
92
95
|
height: @spacing-300;
|
|
93
96
|
min-height: @spacing-300;
|
|
94
97
|
min-width: @spacing-300;
|
|
@@ -110,7 +113,7 @@ nav.breadcrumbs .menu-button__menu {
|
|
|
110
113
|
transform: rotate(180deg);
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
@media (min-width:
|
|
116
|
+
@media (min-width: @_screen-size-SM) {
|
|
114
117
|
nav.breadcrumbs {
|
|
115
118
|
margin: 16px 0;
|
|
116
119
|
}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
@import "../signal/signal.less";
|
|
26
26
|
@import "../icon/icon.less";
|
|
27
27
|
@import "../icon-button/icon-button.less";
|
|
28
|
+
@import "../image-placeholder/image-placeholder.less";
|
|
28
29
|
@import "../infotip/infotip.less";
|
|
29
30
|
@import "../inline-notice/inline-notice.less";
|
|
30
31
|
@import "../lightbox-dialog/lightbox-dialog.less";
|
|
@@ -78,11 +78,6 @@ a.fake-btn--borderless .fake-btn__cell {
|
|
|
78
78
|
button.btn svg.icon,
|
|
79
79
|
a.fake-btn svg.icon {
|
|
80
80
|
.btn-icon-base();
|
|
81
|
-
|
|
82
|
-
flex-shrink: 0;
|
|
83
|
-
height: 100%;
|
|
84
|
-
max-height: @button-height-small - (@button-padding-vertical * 2);
|
|
85
|
-
width: 1em;
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
button.btn__cell--fixed-height svg.icon,
|
|
@@ -102,7 +97,9 @@ a.fake-btn--primary {
|
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
a.fake-btn--primary {
|
|
105
|
-
outline-color: var(
|
|
100
|
+
outline-color: var(
|
|
101
|
+
--color-foreground-primary
|
|
102
|
+
); // fixes invisible focus outline in Firefox
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
a.fake-btn--primary:visited {
|
|
@@ -225,7 +222,10 @@ a.fake-btn--secondary[href] {
|
|
|
225
222
|
|
|
226
223
|
button.btn--secondary.btn--destructive,
|
|
227
224
|
a.fake-btn--secondary.fake-btn--destructive {
|
|
228
|
-
background-color: var(
|
|
225
|
+
background-color: var(
|
|
226
|
+
--btn-secondary-destructive-background-color,
|
|
227
|
+
transparent
|
|
228
|
+
);
|
|
229
229
|
.border-color-token(btn-secondary-destructive-border-color, color-stroke-attention);
|
|
230
230
|
.color-token(btn-secondary-destructive-foreground-color, color-foreground-attention);
|
|
231
231
|
}
|
|
@@ -235,13 +235,17 @@ a.fake-btn--secondary.fake-btn--destructive[href] {
|
|
|
235
235
|
&:hover,
|
|
236
236
|
&:focus {
|
|
237
237
|
background-color: var(--color-state-primary-hover);
|
|
238
|
-
border-color: var(
|
|
238
|
+
border-color: var(
|
|
239
|
+
--color-state-hover-foreground-on-secondary-desctructive
|
|
240
|
+
);
|
|
239
241
|
color: var(--color-state-hover-foreground-on-secondary-desctructive);
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
&:active {
|
|
243
245
|
background-color: var(--color-state-primary-active);
|
|
244
|
-
border-color: var(
|
|
246
|
+
border-color: var(
|
|
247
|
+
--color-state-active-foreground-on-secondary-desctructive
|
|
248
|
+
);
|
|
245
249
|
color: var(--color-state-active-foreground-on-secondary-desctructive);
|
|
246
250
|
}
|
|
247
251
|
}
|
|
@@ -287,7 +291,9 @@ a.fake-btn--tertiary[href] {
|
|
|
287
291
|
}
|
|
288
292
|
|
|
289
293
|
button.btn--tertiary[disabled],
|
|
290
|
-
button.btn--tertiary[aria-disabled="true"]:not(
|
|
294
|
+
button.btn--tertiary[aria-disabled="true"]:not(
|
|
295
|
+
[aria-live="polite"][aria-disabled="true"]
|
|
296
|
+
),
|
|
291
297
|
a.fake-btn--tertiary:not([href]) {
|
|
292
298
|
.color-token(btn-tertiary-disabled-foreground-color, color-background-disabled);
|
|
293
299
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Base" };
|
|
2
2
|
|
|
3
3
|
export const textOnly = () => '<button class="btn">Button</button>';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export const formSlim = () =>
|
|
|
10
10
|
export const iconAndText = () => `
|
|
11
11
|
<button type="button" class="btn">
|
|
12
12
|
<span class="btn__cell">
|
|
13
|
-
<svg class="icon icon--settings-
|
|
13
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
14
14
|
<span>Button</span>
|
|
15
15
|
</span>
|
|
16
16
|
</button>
|
|
@@ -19,7 +19,7 @@ export const iconAndText = () => `
|
|
|
19
19
|
export const disabled = () => `
|
|
20
20
|
<button type="button" class="btn" disabled>
|
|
21
21
|
<span class="btn__cell">
|
|
22
|
-
<svg class="icon icon--settings-
|
|
22
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
23
23
|
<span>Button</span>
|
|
24
24
|
</span>
|
|
25
25
|
</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Borderless" };
|
|
2
2
|
|
|
3
3
|
export const base = () => `<button class="btn btn--borderless">
|
|
4
4
|
<span class="btn__cell">
|
|
@@ -9,7 +9,8 @@ export const base = () => `<button class="btn btn--borderless">
|
|
|
9
9
|
</span>
|
|
10
10
|
</button>`;
|
|
11
11
|
|
|
12
|
-
export const disabled =
|
|
12
|
+
export const disabled =
|
|
13
|
+
() => `<button class="btn btn--borderless" disabled="true">
|
|
13
14
|
<span class="btn__cell">
|
|
14
15
|
<span class="btn__text">Button</span>
|
|
15
16
|
<svg class="icon icon--chevron-down-12" focusable="false" height="8" width="8" aria-hidden="true">
|
|
@@ -18,7 +19,8 @@ export const disabled = () => `<button class="btn btn--borderless" disabled="tru
|
|
|
18
19
|
</span>
|
|
19
20
|
</button>`;
|
|
20
21
|
|
|
21
|
-
export const ariaDisabled =
|
|
22
|
+
export const ariaDisabled =
|
|
23
|
+
() => `<button class="btn btn--borderless" aria-disabled="true">
|
|
22
24
|
<span class="btn__cell">
|
|
23
25
|
<span class="btn__text">Button</span>
|
|
24
26
|
<svg class="icon icon--chevron-down-12" focusable="false" height="8" width="8" aria-hidden="true">
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Cascade" };
|
|
2
2
|
|
|
3
3
|
export const color = () => `
|
|
4
4
|
<button type="button" class="btn" style="color: red;">
|
|
5
5
|
<span class="btn__cell">
|
|
6
|
-
<svg class="icon icon--settings-
|
|
6
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
7
7
|
<span>Button</span>
|
|
8
8
|
</span>
|
|
9
9
|
</button>
|
|
@@ -13,7 +13,7 @@ export const fontSize = () => `
|
|
|
13
13
|
<div style="font-size: 200%;">
|
|
14
14
|
<button type="button" class="btn">
|
|
15
15
|
<span class="btn__cell">
|
|
16
|
-
<svg class="icon icon--settings-
|
|
16
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
17
17
|
<span>Button</span>
|
|
18
18
|
</span>
|
|
19
19
|
</button>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Dimensions" };
|
|
2
2
|
|
|
3
3
|
export const large = () => `
|
|
4
4
|
<button type="button" class="btn btn--large">
|
|
5
5
|
<span class="btn__cell">
|
|
6
|
-
<svg class="icon icon--settings-
|
|
6
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
7
7
|
<span>Button</span>
|
|
8
8
|
</span>
|
|
9
9
|
</button>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Primary" };
|
|
2
2
|
|
|
3
|
-
export const textOnly = () =>
|
|
3
|
+
export const textOnly = () =>
|
|
4
|
+
'<button class="btn btn--primary">Button</button>';
|
|
4
5
|
|
|
5
6
|
export const iconAndText = () => `
|
|
6
7
|
<button type="button" class="btn btn--primary">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Button/Secondary" };
|
|
2
2
|
|
|
3
|
-
export const textOnly = () =>
|
|
3
|
+
export const textOnly = () =>
|
|
4
|
+
'<button class="btn btn--secondary">Button</button>';
|
|
4
5
|
|
|
5
6
|
export const iconAndText = () => `
|
|
6
7
|
<button type="button" class="btn btn--secondary">
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Fake Button/Base" };
|
|
2
2
|
|
|
3
|
-
export const textOnly = () =>
|
|
3
|
+
export const textOnly = () =>
|
|
4
|
+
'<a href="http://www.ebay/com" class="fake-btn">Fake Button</a>';
|
|
4
5
|
|
|
5
6
|
export const iconAndText = () => `
|
|
6
7
|
<a class="fake-btn" href="http://www.ebay.com">
|
|
7
8
|
<span class="fake-btn__cell">
|
|
8
|
-
<svg class="icon icon--settings-
|
|
9
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
9
10
|
<span>Fake Button</span>
|
|
10
11
|
</span>
|
|
11
12
|
</a>
|
|
@@ -14,7 +15,7 @@ export const iconAndText = () => `
|
|
|
14
15
|
export const disabled = () => `
|
|
15
16
|
<a class="fake-btn">
|
|
16
17
|
<span class="fake-btn__cell">
|
|
17
|
-
<svg class="icon icon--settings-
|
|
18
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
18
19
|
<span>Fake Button</span>
|
|
19
20
|
</span>
|
|
20
21
|
</a>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Fake Button/Cascade" };
|
|
2
2
|
|
|
3
3
|
export const RTL = () => `
|
|
4
4
|
<div dir="rtl">
|
|
5
5
|
<a class="fake-btn" href="http://www.ebay.com">
|
|
6
6
|
<span class="fake-btn__cell">
|
|
7
|
-
<svg class="icon icon--settings-
|
|
7
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
8
8
|
<span>Fake Button</span>
|
|
9
9
|
</span>
|
|
10
10
|
</a>
|
|
@@ -15,7 +15,7 @@ export const color = () => `
|
|
|
15
15
|
<div style="color: red;">
|
|
16
16
|
<a class="fake-btn" href="http://www.ebay.com">
|
|
17
17
|
<span class="fake-btn__cell">
|
|
18
|
-
<svg class="icon icon--settings-
|
|
18
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
19
19
|
<span>Fake Button</span>
|
|
20
20
|
</span>
|
|
21
21
|
</a>
|
|
@@ -26,7 +26,7 @@ export const fontSize = () => `
|
|
|
26
26
|
<div style="font-size: 200%">
|
|
27
27
|
<a class="fake-btn" href="http://www.ebay.com">
|
|
28
28
|
<span class="fake-btn__cell">
|
|
29
|
-
<svg class="icon icon--settings-
|
|
29
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
30
30
|
<span>Fake Button</span>
|
|
31
31
|
</span>
|
|
32
32
|
</a>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default { title:
|
|
1
|
+
export default { title: "Fake Button/Dimensions" };
|
|
2
2
|
|
|
3
3
|
export const large = () => `
|
|
4
4
|
<a class="fake-btn fake-btn--large" href="http://www.ebay.com">
|
|
5
5
|
<span class="fake-btn__cell">
|
|
6
|
-
<svg class="icon icon--settings-
|
|
6
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
7
7
|
<span>Fake Button</span>
|
|
8
8
|
</span>
|
|
9
9
|
</a>
|